/* ==========================================================================
   ICON Agency — public marketing site
   Quiet luxury: midnight and deep navy, restrained royal blue, silver. Editorial serif display type
   over a clean geometric sans body (Montserrat). Restrained motion. This is a deliberately
   separate design system from the operational app (app.css) — the public
   site is marketing/editorial, not a product UI.
   ========================================================================== */

/* ---- fonts: self-hosted (SIL OFL 1.1, see /fonts/OFL-*.txt), Latin subset ------------------ */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* ---- ICON brand colours: PROVISIONAL system, approved by the founder 2026-10-15.
     To be reviewed against the official logo / identity guide before it is final. ---- */
  --c-midnight: #080B14;   /* base background */
  --c-navy: #101832;       /* secondary background (alternate sections, footer, menus) */
  --c-royal: #4563FF;      /* primary interactive brand colour - used sparingly */
  --c-silver: #C5CAD4;     /* fine details, dividers, premium accents - never blanket decoration */
  --c-white: #F5F6FA;      /* headings and primary text */
  --c-gray: #A2A9BA;       /* secondary text */
  /* derived, approved: needed for accessibility and layering */
  --c-royal-text: #7C91FF;   /* small blue text / links on dark (Royal itself is 4.2:1 on Midnight) */
  --c-royal-hover: #3550F0;  /* primary button hover (darker keeps white-label contrast) */
  --c-on-royal: #FFFFFF;     /* text on Royal buttons (4.69:1; Soft White would be 4.34:1) */
  --c-surface: #0C1224;      /* cards, inputs, secondary surfaces */
  --c-ok: #2FB36D;           /* semantic success / completion only - not a brand accent */
  /* channel triplets, so translucent variants stay in sync: rgb(var(--c-royal-rgb) / .2) */
  --c-midnight-rgb: 8 11 20;
  --c-royal-rgb: 69 99 255;
  --c-royal-text-rgb: 124 145 255;
  --c-silver-rgb: 197 202 212;
  --c-white-rgb: 245 246 250;

  /* roles used by the components below */
  --bg: var(--c-midnight);
  --bg-alt: var(--c-navy);
  --surface: var(--c-surface);
  --text: var(--c-white);
  --text-2: var(--c-gray);
  --link: var(--c-royal-text);
  --line: rgb(var(--c-silver-rgb) / .14);
  --line-strong: rgb(var(--c-silver-rgb) / .24);
  --glow: rgb(var(--c-royal-rgb) / .22);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 550; }
p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 620px; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .16em; color: var(--link); margin-bottom: 14px; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(64px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

/* ---- nav ---------------------------------------------------------------- */
.pub-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); backdrop-filter: blur(10px); background: rgb(var(--c-midnight-rgb) / .78);
  border-bottom: 1px solid var(--line); }
.pub-nav__brand { display: flex; align-items: center; line-height: 0; }
.pub-nav__brand img { height: 44px; width: auto; }
.pub-nav__links { display: flex; align-items: center; gap: 6px; }
.pub-nav__links a { padding: 9px 15px; font-size: 14px; color: var(--text-2); text-decoration: none;
  border-radius: 999px; transition: color .15s, background .15s; }
.pub-nav__links a:hover, .pub-nav__links a[aria-current="page"] { color: var(--text); background: rgb(var(--c-white-rgb) / .06); }
.pub-nav__cta { padding: 10px 20px !important; background: var(--c-royal); color: var(--c-on-royal) !important; font-weight: 600;
  margin-left: 6px; }
.pub-nav__cta:hover { background: var(--c-royal-hover) !important; }
.pub-nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text);
  width: 38px; height: 38px; border-radius: 8px; align-items: center; justify-content: center; }

/* ---- buttons -------------------------------------------------------------- */
.btn-pub { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-strong);
  color: var(--text); transition: all .18s ease; }
.btn-pub--primary { background: var(--c-royal); border-color: var(--c-royal); color: var(--c-on-royal); }
.btn-pub--primary:hover { background: var(--c-royal-hover); border-color: var(--c-royal-hover); transform: translateY(-1px); }
.btn-pub--ghost:hover { background: rgb(var(--c-white-rgb) / .06); border-color: var(--line-strong); }

/* ---- hero ----------------------------------------------------------------- */
.hero { padding: clamp(90px, 14vw, 160px) 0 clamp(60px, 8vw, 100px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero .btn-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ---- grids / cards ---------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pcard { border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; background: var(--surface);
  transition: border-color .2s, transform .2s; }
.pcard:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pcard__num { font-family: var(--serif); font-size: 30px; color: var(--link); margin-bottom: 14px; }
.pcard h3 { margin-bottom: 10px; }
.pcard p { color: var(--text-2); font-size: 14.5px; margin: 0; }

.work-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.work-card__media { aspect-ratio: 4/3; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 13px; }
.work-card__body { padding: 20px 22px; }
.work-card h3 { font-size: 17px; margin-bottom: 4px; }
.work-card p { color: var(--text-2); font-size: 13px; margin: 0; }

.quiet-note { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 28px; color: var(--text-2);
  font-size: 14.5px; text-align: center; }

/* ---- stats row -------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 56px; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; color: var(--text); }
.stat span { color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* ---- footer ------------------------------------------------------------------ */
.pub-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 32px; }
.pub-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.pub-footer__logo { height: 56px; width: auto; margin-bottom: 14px; }
.pub-footer p { color: var(--text-2); font-size: 13.5px; max-width: 280px; }
.pub-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 14px; font-family: var(--sans); }
.pub-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.pub-footer a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.pub-footer a:hover { color: var(--text); }
.pub-footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between;
  color: var(--text-2); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ---- forms -------------------------------------------------------------------- */
.pform { display: grid; gap: 18px; max-width: 560px; }
.pform label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 550; }
.pform input, .pform select, .pform textarea { width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; border-color: var(--link);
  box-shadow: 0 0 0 3px rgb(var(--c-royal-text-rgb) / .3); }
.pform .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---- reveal-on-scroll (restrained) ---------------------------------------------- */
/* Content is visible by default. It is only pre-hidden once a tiny inline script has
   confirmed JavaScript is running (adds .js to <html>), so no-JS visitors, crawlers and
   link-preview bots always see everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pub-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pub-nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; gap: 2px; }
  .pub-nav__links.is-open { display: flex; }
  .pub-nav__links a { width: 100%; padding: 12px 14px; }
  .pub-nav__toggle { display: flex; }
  .pub-nav__brand img { height: 38px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .pub-footer__grid { grid-template-columns: 1fr 1fr; }
  .pform .row-2 { grid-template-columns: 1fr; }
  .hero { text-align: left; }
}


/* ---- accessibility ---------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-white); color: var(--c-midnight); padding: 10px 16px;
  border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; }

/* ---- generic button row (outside the hero too) ------------------------------------------ */
.btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---- hero artwork ----------------------------------------------------------------------------- */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center;
  position: relative; z-index: 1; }
.hero__art { justify-self: end; width: min(460px, 100%); }
.hero__art svg { width: 100%; height: auto; display: block; }
.hero__art .art-glow-stop { stop-color: var(--c-royal); }
.hero__art .art-ring-a { stop-color: var(--c-royal-text); } .hero__art .art-ring-b { stop-color: var(--c-royal); }
.hero__art .art-curve { stroke: var(--c-silver); }
.hero__art .art-done { fill: var(--c-midnight); stroke: var(--c-ok); } .hero__art .art-done-mark { stroke: var(--c-ok); }
.hero__art .art-now { fill: var(--c-royal); stroke: var(--c-royal-text); } .hero__art .art-halo { stroke: var(--c-royal-text); }
.hero__art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .5s cubic-bezier(.4,.1,.2,1) forwards; }
.hero__art .pop { opacity: 0; animation: fadein .6s ease forwards; }
.hero__art .pop:nth-of-type(1) { animation-delay: .5s; } .hero__art .pop:nth-of-type(2) { animation-delay: 1.4s; }
.hero__art .pop:nth-of-type(3) { animation-delay: 2.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero__art .draw { animation: none; stroke-dashoffset: 0; } .hero__art .pop { animation: none; opacity: 1; }
}

/* ---- illustrative portal mock ("how we work") ------------------------------------------------ */
.mock { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); overflow: hidden;
  box-shadow: 0 30px 80px rgb(var(--c-midnight-rgb) / .6); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-alt); }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c-silver-rgb) / .22); }
.mock__bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--text-2); }
.mock__body { padding: 22px 22px 8px; }
.mock__title { font-family: var(--serif); font-size: 20px; color: var(--text); margin-bottom: 18px; }
.mock__steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.mstep { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.mstep i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-content: center;
  font-style: normal; font-size: 11px; color: var(--text); flex-shrink: 0; }
.mstep.done { color: var(--text); } .mstep.done i { background: var(--c-ok); border-color: var(--c-ok); color: var(--c-midnight); }
.mstep.now { color: var(--text); font-weight: 600; } .mstep.now i { background: var(--c-royal); border-color: var(--c-royal);
  box-shadow: 0 0 0 4px rgb(var(--c-royal-rgb) / .25); }
.mock__caption { font-size: 11.5px; color: var(--text-2); padding: 10px 22px 16px; }

@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { display: none; } }
