/* ==========================================================================
   ICON Agency — public marketing site
   Quiet luxury: dark navy, royal blue, silver. Editorial serif display type
   over a clean sans body. 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.
   ========================================================================== */

:root {
  --navy-950: #05070d;
  --navy-900: #0a0f1c;
  --navy-800: #0f1526;
  --navy-700: #161d33;
  --navy-600: #212a47;
  --royal: #3b5bff;
  --royal-bright: #6b84ff;
  --silver: #aeb4c4;
  --silver-dim: #8b93a8;   /* AA contrast on the navy background */
  --ink: #f3f4f8;
  --hairline: rgba(174, 180, 196, .14);
  --hairline-strong: rgba(174, 180, 196, .24);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -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(--navy-950);
  color: var(--ink);
  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: #fff;
}
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(--silver); max-width: 620px; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .16em; color: var(--royal-bright); 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-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: 20px var(--gutter); backdrop-filter: blur(10px); background: rgba(5, 7, 13, .78);
  border-bottom: 1px solid var(--hairline); }
.pub-nav__brand { font-family: var(--serif); font-size: 19px; letter-spacing: .01em; color: #fff; text-decoration: none; }
.pub-nav__links { display: flex; align-items: center; gap: 6px; }
.pub-nav__links a { padding: 9px 15px; font-size: 14px; color: var(--silver); text-decoration: none;
  border-radius: 999px; transition: color .15s, background .15s; }
.pub-nav__links a:hover, .pub-nav__links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.pub-nav__cta { padding: 10px 20px !important; background: var(--royal); color: #fff !important; font-weight: 600;
  margin-left: 6px; }
.pub-nav__cta:hover { background: var(--royal-bright) !important; }
.pub-nav__toggle { display: none; background: none; border: 1px solid var(--hairline-strong); color: #fff;
  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(--hairline-strong);
  color: #fff; transition: all .18s ease; }
.btn-pub--primary { background: var(--royal); border-color: var(--royal); }
.btn-pub--primary:hover { background: var(--royal-bright); border-color: var(--royal-bright); transform: translateY(-1px); }
.btn-pub--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--hairline-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, rgba(59, 91, 255, .22), 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(--hairline); border-radius: 18px; padding: 32px 28px; background: var(--navy-800);
  transition: border-color .2s, transform .2s; }
.pcard:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.pcard__num { font-family: var(--serif); font-size: 30px; color: var(--royal-bright); margin-bottom: 14px; }
.pcard h3 { margin-bottom: 10px; }
.pcard p { color: var(--silver); font-size: 14.5px; margin: 0; }

.work-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline); background: var(--navy-800); }
.work-card__media { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center; color: var(--silver-dim); font-size: 13px; }
.work-card__body { padding: 20px 22px; }
.work-card h3 { font-size: 17px; margin-bottom: 4px; }
.work-card p { color: var(--silver-dim); font-size: 13px; margin: 0; }

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

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

/* ---- footer ------------------------------------------------------------------ */
.pub-footer { border-top: 1px solid var(--hairline); padding: 56px 0 32px; }
.pub-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.pub-footer__brand { font-family: var(--serif); font-size: 19px; color: #fff; margin-bottom: 10px; }
.pub-footer p { color: var(--silver-dim); font-size: 13.5px; max-width: 280px; }
.pub-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-dim); 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(--silver); text-decoration: none; font-size: 14px; }
.pub-footer a:hover { color: #fff; }
.pub-footer__bottom { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; justify-content: space-between;
  color: var(--silver-dim); 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(--silver); margin-bottom: 7px; font-weight: 550; }
.pform input, .pform select, .pform textarea { width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--hairline-strong); background: var(--navy-800); color: #fff; font: inherit; font-size: 14.5px; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; border-color: var(--royal-bright);
  box-shadow: 0 0 0 3px rgba(107, 132, 255, .25); }
.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(--navy-900); border-bottom: 1px solid var(--hairline); 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; }
  .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(--royal-bright); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #05070d; 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 .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(--hairline-strong); border-radius: 18px; background: var(--navy-800); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  background: var(--navy-900); }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-600); }
.mock__bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--silver-dim); }
.mock__body { padding: 22px 22px 8px; }
.mock__title { font-family: var(--serif); font-size: 20px; color: #fff; 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(--silver-dim); }
.mstep i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--navy-600); display: grid; place-content: center;
  font-style: normal; font-size: 11px; color: #fff; flex-shrink: 0; }
.mstep.done { color: var(--ink); } .mstep.done i { background: #2fb36d; border-color: #2fb36d; }
.mstep.now { color: #fff; font-weight: 600; } .mstep.now i { background: var(--royal); border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(59, 91, 255, .25); }
.mock__banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #2f45d6, var(--royal)); }
.mock__banner small { display: block; font-size: 10.5px; letter-spacing: .1em; opacity: .85; margin-bottom: 2px; }
.mock__banner b { font-size: 13.5px; font-weight: 600; }
.mock__btn { background: #fff; color: #2f45d6; font-size: 12.5px; font-weight: 650; padding: 7px 14px; border-radius: 999px; flex-shrink: 0; }
.mock__actions { display: flex; gap: 10px; margin: 14px 0 6px; }
.mock__actions span { font-size: 12.5px; font-weight: 650; padding: 8px 16px; border-radius: 8px; }
.mock__actions .ok { background: #2fb36d; color: #fff; }
.mock__actions .no { border: 1.5px solid #e5675e; color: #f08f88; }
.mock__caption { font-size: 11.5px; color: var(--silver-dim); padding: 10px 22px 16px; }

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