/* =========================================================
   CONSULT NAMU — shared styles for index.html and about.html
   Colors and fonts are the brand. Please don't change them.
   ========================================================= */

/* ---------- Brand colors ---------- */
:root {
  --black: #0A0A0A;      /* page background */
  --white: #F5F5F5;      /* headings, buttons */
  --body: #C8C8C8;       /* paragraph text */
  --muted: #8A8A8A;      /* small labels */
  --faint: #6B6B6B;      /* numbers, placeholders */
  --line: #2A2A2A;       /* thin divider lines */
  --max: 1200px;         /* content width */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: 'Inter', sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 500; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 90px; }

.label { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.text { font-size: 17px; line-height: 1.7; color: var(--body); }

/* Fade-in on scroll (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Wordmark: CONSULT NAMU (NAMU in italics) ---------- */
.wordmark { font-family: 'Syne', sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.05em; text-decoration: none; color: var(--white); }

/* ---------- Header (stays on top, hides while scrolling down) ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(10,10,10,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .35s ease; }
.header.hide { transform: translateY(-100%); }
.header .wrap { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.nav { display: flex; flex-wrap: wrap; gap: 32px; }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; color: #A3A3A3; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; transition: opacity .2s, background .2s, color .2s; }
.btn:hover { opacity: .85; }
.btn-solid { background: var(--white); color: var(--black); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-email { letter-spacing: 0.1em; text-transform: none; }

/* =========================================================
   HOMEPAGE
   ========================================================= */

/* ---------- 1. Hero + 3D globe (globe.js) ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 82px); display: flex; }
.hero-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; padding-bottom: 48px; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-text { max-width: 560px; display: flex; flex-direction: column; gap: 28px; margin: auto 0; }
.hero h1 { font-size: clamp(52px, 7vw, 100px); line-height: .98; letter-spacing: -0.045em; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 460px; }
.route { margin-top: 48px; font-size: 11px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.route span { color: var(--faint); padding: 0 6px; }
.route b { font-weight: inherit; white-space: nowrap; }

.globe { position: absolute; top: 50%; right: -6vw; width: min(64vw, 900px); aspect-ratio: 1; transform: translateY(-50%); cursor: grab; opacity: 0; transition: opacity 1.4s ease .2s; }
.globe.ready { opacity: 1; }
.globe.grabbing { cursor: grabbing; }
.globe canvas { width: 100% !important; height: 100% !important; display: block; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.globe-labels span.at-l { padding: 0 12px 0 0; }
.globe-labels span.at-t, .globe-labels span.at-b { padding: 0; }
.globe-labels span { position: absolute; left: 0; top: 0; padding: 0 0 0 12px; margin-top: -6px; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--white); white-space: nowrap; transition: opacity .4s; }

/* ---------- 2. How we work + drag to compare ---------- */
.how { padding-top: 140px; padding-bottom: 160px; display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.how-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.visit { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.visit li { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.visit .num { flex: 0 0 28px; font-family: 'Syne', sans-serif; font-size: 14px; color: var(--faint); padding-top: 4px; }
.visit h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.visit p { font-size: 15px; color: var(--body); }
.founder { display: flex; align-items: center; gap: 14px; align-self: flex-start; padding: 10px 22px 10px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: border-color .2s; }
.founder:hover { border-color: var(--white); }
.founder img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.founder span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.founder strong { font-weight: 500; font-size: 15px; color: var(--white); }

.compare { --pos: 50%; position: relative; flex: 1 1 400px; max-width: 480px; margin: 0 auto 48px; aspect-ratio: 400 / 440; border: 1px solid var(--line); background: #111; user-select: none; touch-action: pan-y; }
.compare-layer { position: absolute; inset: 0; }
.compare-layer svg { width: 100%; height: 100%; display: block; }
.compare-good { background: #141414; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-bad { background: #101010; }
.compare .flag { fill: none; stroke: var(--white); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .85; }
.compare .flag-txt { font-family: Inter, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; fill: var(--white); }
.compare-tag { position: absolute; top: 16px; padding: 8px 10px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.compare-tag.left { left: 16px; background: var(--white); color: var(--black); }
.compare-tag.right { right: 16px; border: 1px dashed var(--muted); color: var(--muted); background: rgba(10,10,10,.75); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--white); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 0 8px rgba(245,245,245,.12); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare figcaption { position: absolute; top: 100%; left: 0; right: 0; margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 3. Services: sticky panel + list ---------- */
.services { padding-top: 140px; padding-bottom: 140px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.svc-side { flex: 1 1 380px; min-width: 0; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.svc-panel { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.svc-icon { width: 120px; height: 120px; }
.svc-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--white); stroke-width: .7; stroke-linejoin: round; stroke-linecap: round; animation: svc-in .5s ease; }
@keyframes svc-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.svc-count { font-family: 'Syne', sans-serif; font-size: 14px; color: var(--faint); }
.svc-count span { color: var(--white); }
.svc-ticks { display: flex; gap: 6px; }
.svc-ticks i { width: 28px; height: 2px; background: var(--line); transition: background .3s; }
.svc-ticks i.on { background: var(--white); }
.svc-list { flex: 1 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.svc-item { padding: 56px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 10px 0; transition: opacity .4s; }
.svc-item:first-child { padding-top: 0; }
.svc-item svg { display: none; }
.svc-item .num { grid-row: span 2; font-family: 'Syne', sans-serif; font-size: 14px; color: var(--faint); padding-top: 8px; }
.svc-item h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.svc-item p { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 520px; }
.js .svc-item { opacity: .28; }
.js .svc-item.active { opacity: 1; }

/* ---------- 4. Agencies + spec ticks ---------- */
.agency-section { background: #0E0E0E; }
.agency { padding-top: 140px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 72px; }
.agency-top { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.agency-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.spec { flex: 0 1 430px; min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--black); }
.spec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.spec-title { white-space: nowrap; font-family: 'Syne', sans-serif; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.spec-tag { white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.spec-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #1E1E1E; }
.spec-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-k { font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); }
.spec-v { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.chip { width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid #4A4A4A; }
.spec-ok { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; color: var(--faint); transition: color .3s; }
.spec-ok.done { color: var(--white); animation: tick .4s ease; }
@keyframes tick { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.spec figcaption { display: flex; align-items: center; gap: 10px; padding: 16px 24px; font-size: 12px; color: var(--muted); }
.spec-stamp { white-space: nowrap; padding: 4px 9px; border: 1px solid var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--faint); transition: all .4s; }
.spec.signed .spec-stamp { border-color: var(--white); color: var(--black); background: var(--white); }
.agency-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.agency-points h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.agency-points p { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- 5. FAQ (open / close) ---------- */
.faq { padding-top: 140px; padding-bottom: 140px; display: flex; flex-wrap: wrap; gap: 64px; }
.faq-head { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.faq-list { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.row-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.row-btn h3 { font-size: 20px; letter-spacing: -0.02em; transition: transform .3s; }
.row-btn:hover h3 { transform: translateX(6px); }
.plus { position: relative; flex: 0 0 16px; height: 16px; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: var(--white); transition: transform .3s; }
.plus::after { transform: rotate(90deg); }
.open > .row-btn .plus::after { transform: rotate(0); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.row-body > p { overflow: hidden; min-height: 0; max-width: 640px; font-size: 16px; line-height: 1.65; color: var(--body); }
.row-body > p::after { content: ''; display: block; height: 28px; }
.open > .row-body { grid-template-rows: 1fr; }
html:not(.js) .row-body { grid-template-rows: 1fr; }

/* ---------- 6. Contact ---------- */
.contact { padding-top: 160px; padding-bottom: 160px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.contact h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.contact p { max-width: 520px; font-size: 17px; line-height: 1.65; color: var(--body); }
.contact .buttons { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer .wordmark { font-size: 20px; }
.tagline { font-size: 9px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.footer .info { font-size: 12px; color: var(--muted); line-height: 1.8; }
.footer .copy { font-size: 11px; color: var(--faint); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.ab-hero { padding-top: 110px; padding-bottom: 130px; display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.ab-hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ab-name { font-size: clamp(60px, 10vw, 140px); line-height: .95; letter-spacing: -0.05em; }
.ab-lede { font-family: 'Syne', sans-serif; font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.02em; max-width: 620px; }
.ab-note { font-size: 17px; line-height: 1.6; color: var(--body); }
.ab-photo { position: relative; flex: 1 1 320px; min-width: 0; max-width: 420px; margin: 0 auto; padding: 18px; }
.ab-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ab-photo figcaption { position: absolute; left: 34px; bottom: 34px; padding: 9px 14px; background: rgba(10,10,10,.8); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.vf { position: absolute; width: 26px; height: 26px; border: 0 solid var(--white); }
.vf.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- The story: one route line, chapters are stops ---------- */
.story { --gut: 120px; --lx: 40px; position: relative; padding-left: calc(var(--gut) + 24px); padding-top: 40px; padding-bottom: 120px; }
.story-line { --prog: 0; position: absolute; left: calc(24px + var(--lx)); top: 0; bottom: 140px; width: 1px; background: var(--line); }
.story-line::after { content: ''; position: absolute; inset: 0; background: var(--white); transform-origin: top; transform: scaleY(var(--prog)); }
.chapter { position: relative; max-width: 820px; padding: 90px 0; display: flex; flex-direction: column; gap: 26px; }
.stop {
  position: absolute; top: 84px; left: calc(var(--lx) - var(--gut) - 18px);
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--black); border: 1px solid #4A4A4A; font-family: 'Syne', sans-serif; font-size: 12px; color: var(--muted);
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.chapter.lit .stop { background: var(--white); color: var(--black); border-color: var(--white); box-shadow: 0 0 0 8px rgba(245,245,245,.08); }
.ch-lead { font-family: 'Syne', sans-serif; font-weight: 500; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.035em; }
.ch-text { font-size: 18px; line-height: 1.65; color: var(--body); max-width: 620px; }

/* Lines get crossed out as they scroll in */
.strike-list { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.strike-list span {
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--white);
  background: linear-gradient(var(--muted), var(--muted)) no-repeat 0 55% / 0% 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .9s cubic-bezier(.6,0,.2,1) .5s, color .6s ease .9s;
}
.strike-list li.in span, html:not(.js) .strike-list span { background-size: 100% 1px; color: var(--faint); }

/* Engagement steps: small stops on the same line */
.mini-stops { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.mini-stops li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mini-stops li::before { content: ''; position: absolute; top: 9px; left: calc(var(--lx) - var(--gut) - 4.5px); width: 9px; height: 9px; border-radius: 50%; background: var(--black); border: 1px solid #4A4A4A; transition: background .3s, border-color .3s; }
.mini-stops li.lit::before { background: var(--white); border-color: var(--white); }
.mini-stops h3 { font-size: 22px; letter-spacing: -0.02em; }
.mini-stops p { font-size: 16px; line-height: 1.6; color: var(--body); }
.chapter-end { padding-bottom: 0; }
.stop-end { font-family: 'Inter', sans-serif; font-size: 14px; }

/* =========================================================
   PHONES
   ========================================================= */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  /* Hero stacks: text, then the globe in its own space, then the route */
  .hero { min-height: 0; flex-direction: column; }
  .hero-inner { display: contents; }
  .hero-text { order: 1; width: 100%; max-width: none; margin: 0; padding: 72px 24px 0; }
  .globe { order: 2; position: relative; top: auto; right: auto; width: min(100%, 560px); margin: 8px auto 0; transform: none; }
  .route { order: 3; margin: 0; padding: 0 24px 56px; text-align: center; font-size: 10px; letter-spacing: .18em; line-height: 2; }
  .route span { padding: 0 4px; }
  .svc-side { position: static; }
  .svc-panel { display: none; }
  .js .svc-item { opacity: 1; }
  .svc-item { grid-template-columns: 48px 1fr; }
  .svc-item svg { display: block; grid-column: 2; width: 34px; height: 34px; margin-bottom: 8px; fill: none; stroke: var(--white); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
}
@media (max-width: 640px) {
  .nav { gap: 10px 18px; }
  .nav a { font-size: 10px; letter-spacing: 0.18em; }

  .hero-text { padding-top: 48px; gap: 22px; }
  .hero .buttons .btn { flex: 1 1 100%; }

  .how, .agency { padding-top: 90px; padding-bottom: 110px; gap: 48px; }
  .compare-tag { top: 10px; padding: 6px 8px; font-size: 9px; letter-spacing: .12em; }
  .compare-tag.left { left: 10px; } .compare-tag.right { right: 10px; }

  .services { padding-top: 90px; padding-bottom: 90px; gap: 40px; }
  .svc-item { padding: 36px 0; }
  .agency-points { gap: 28px; }

  .spec-head, .spec-row, .spec figcaption { padding-left: 16px; padding-right: 16px; }
  .spec-head { flex-wrap: wrap; }
  .faq { padding-top: 90px; padding-bottom: 90px; gap: 32px; }
  .contact { padding-top: 110px; padding-bottom: 120px; }

  .ab-hero { padding-top: 56px; padding-bottom: 90px; gap: 48px; }
  .story { --gut: 44px; --lx: 10px; padding-bottom: 90px; }
  .chapter { padding: 64px 0; gap: 20px; }
  .stop { top: 58px; width: 30px; height: 30px; left: calc(var(--lx) - var(--gut) - 15px); font-size: 11px; }
  .mini-stops h3 { font-size: 19px; }

  .mobile-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
    min-height: 52px; background: var(--white); color: var(--black); text-decoration: none;
    font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
    transform: translateY(160%); transition: transform .35s ease;
  }
  .mobile-cta.show { transform: none; }
}
@media (max-width: 380px) {
  .nav { gap: 10px 14px; }
  .nav a { letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .header, .mobile-cta, .strike-list span, .globe, .svc-item, .row-body { transition: none; }
}
