/* =========================================================================
   GS Advisory PLT — Shared design system
   Apple-inspired: SF Pro system type, generous whitespace,
   alternating light / dark sections, single blue accent.
   ========================================================================= */

:root {
  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  /* neutrals */
  --white: #ffffff;
  --paper: #f5f5f7;       /* Apple's signature light gray */
  --paper-2: #fafafc;
  --ink: #1d1d1f;         /* near-black text */
  --ink-soft: #6e6e73;    /* secondary gray text */
  --line: #d2d2d7;        /* hairline borders */

  /* dark surfaces */
  --black: #000000;
  --char: #101012;
  --char-2: #1d1d1f;
  --on-dark: #f5f5f7;
  --on-dark-soft: #a1a1a6;

  /* accent */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-press: #006edb;

  --nav-h: 48px;
  --radius-card: 22px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

section { position: relative; }

/* tone blocks */
.bg-white { background: var(--white); color: var(--ink); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-dark  { background: var(--char); color: var(--on-dark); }
.bg-black { background: var(--black); color: var(--on-dark); }

.pad-xl { padding-top: 130px; padding-bottom: 130px; }
.pad-lg { padding-top: 96px; padding-bottom: 96px; }
.pad-md { padding-top: 72px; padding-bottom: 72px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--blue);
  margin: 0 0 10px;
}
.bg-dark .eyebrow, .bg-black .eyebrow { color: #2997ff; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; margin: 0; }

.display {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.03;
}
.h-hero { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -0.03em; line-height: 1.05; }
.h-sec  { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; text-wrap: balance; }
.h-card { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }

.lede {
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.bg-dark .lede, .bg-black .lede { color: var(--on-dark-soft); }

.body { font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.bg-dark .body, .bg-black .body { color: var(--on-dark-soft); }

.measure { max-width: 38ch; }
.measure-wide { max-width: 60ch; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 17px; font-weight: 400; letter-spacing: 0;
  padding: 12px 22px; border-radius: 980px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: #fff; }
.bg-dark .btn-ghost, .bg-black .btn-ghost { color: #2997ff; border-color: #2997ff; }
.bg-dark .btn-ghost:hover, .bg-black .btn-ghost:hover { background: #2997ff; color: #000; }

.btn-lg { font-size: 19px; padding: 15px 28px; }

/* chevron text link (Apple style) */
.tlink {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--blue); font-size: clamp(17px, 1.5vw, 21px);
  transition: gap .2s var(--ease);
}
.bg-dark .tlink, .bg-black .tlink { color: #2997ff; }
.tlink::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.tlink:hover { text-decoration: underline; }
.tlink:hover { gap: 5px; }

.linkrow { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background .3s var(--ease);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
  display: flex; align-items: baseline; gap: 7px;
}
.brand .plt { font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink);
  opacity: .85; transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 500; }
.nav-cta {
  font-size: 14px; font-weight: 400;
  background: var(--blue); color: #fff !important; opacity: 1 !important;
  padding: 7px 16px; border-radius: 980px;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--blue-hover); }

.nav-burger {
  display: none; width: 34px; height: 34px; border: none; background: none;
  cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-burger span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 12px 24px 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a { font-size: 26px; font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.nav-mobile a:last-child { border-bottom: none; }

/* spacer so fixed nav doesn't cover content */
.nav-spacer { height: var(--nav-h); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* product / service tile (full-bleed Apple style) */
.tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 56px 32px 0;
  min-height: 560px;
  position: relative;
}
.tile .tile-img { margin-top: auto; width: 100%; }
.tile-copy { max-width: 640px; }
.tile h2 { margin-bottom: 8px; }

/* feature card */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 40px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,0.10); }
.bg-paper .card { background: var(--white); }
.bg-dark .card, .bg-black .card { background: #1a1a1c; border-color: #2a2a2c; }

.num {
  font-size: 15px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.02em; margin-bottom: 18px;
}

/* check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; color: var(--ink); }
.bg-dark .checks li, .bg-black .checks li { color: var(--on-dark); }
.checks li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px;
  border-radius: 50%; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* marquee */
.marquee {
  overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.bg-dark .marquee, .bg-black .marquee { border-color: #2a2a2c; }
.marquee-track { display: inline-flex; gap: 0; animation: scroll 32s linear infinite; }
.marquee-track span {
  font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: -0.02em;
  padding: 0 30px; color: var(--ink);
}
.bg-dark .marquee-track span, .bg-black .marquee-track span { color: var(--on-dark); }
.marquee-track span.muted { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.bg-dark .marquee-track span.muted, .bg-black .marquee-track span.muted { color: var(--on-dark-soft); }
.marquee-track .star { color: var(--blue); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* stat */
.stat-num { font-size: clamp(48px, 7vw, 88px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-num .unit { color: var(--blue); }

/* footer */
.footer { background: var(--paper); color: var(--ink-soft); padding: 56px 0 40px; font-size: 14px; }
.footer .wrap { display: block; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 14px; color: var(--ink); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a:hover { color: var(--ink); }
.footer .f-brand { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- contact form ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--blue); }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 16px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236e6e73' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 22px;
  padding-right: 44px; cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}
.field .err { font-size: 13px; color: #d9362c; min-height: 0; display: none; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #d9362c; box-shadow: 0 0 0 4px rgba(217,54,44,0.12); }
.field.has-err .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-success {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 48px 40px; text-align: center;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.form-success.in { opacity: 1; transform: none; }
.form-success .tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue); margin: 0 auto 20px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/30px no-repeat;
  background-color: var(--blue);
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-item .k { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.info-item .v { font-size: 18px; color: var(--ink); line-height: 1.5; }
.info-item .v a:hover { color: var(--blue); }

/* utility */
.stack-sm > * + * { margin-top: 14px; }
.stack > * + * { margin-top: 22px; }
.stack-lg > * + * { margin-top: 34px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 980px;
}
.bg-dark .pill-tag, .bg-black .pill-tag { color: var(--on-dark-soft); border-color: #2a2a2c; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; display: inline-block; }

/* ---------- production media (replaces design-time <image-slot>) ---------- */
.media {
  width: 100%; display: block;
  object-fit: cover; background: #e8e8ed;
  border-radius: var(--radius-lg);
}
.media-22 { border-radius: 22px; }
.media-28 { border-radius: 28px; }
.media-rect { border-radius: 0; }

/* honeypot — hidden from humans, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- legal / long-form prose (privacy, terms) ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal-sec + .legal-sec { margin-top: 48px; }
.legal-sec h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.legal-sec h2 + * { margin-top: 16px; }
.legal-sec p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 0; }
.legal-sec ul { list-style: disc; padding-left: 22px; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.legal-sec li { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.legal-sec a { color: var(--blue); }
.legal-sec a:hover { text-decoration: underline; }
.legal-updated { font-size: 15px; color: var(--ink-soft); margin-top: 14px; }
