/* ==========================================================================
   SPRYQ — main.css
   Design tokens, base elements, typography, layout, header and footer.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin-wght-normal.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: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* --------------------------------------------------------------- tokens */
:root {
  --bg: #F7F7F5;
  --ink: #171717;
  --muted: #777777;
  --line: #E5E5E3;
  --dark: #111111;
  --dark-2: #1A1A1A;
  --paper: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-dark: rgba(22, 22, 22, 0.82);
  --accent: #FD4D12;          /* used sparingly: capsule CTA, active states, focus */
  --accent-ink: #111111;
  --tint: #EAE9E5;            /* default backdrop behind thumbnails */

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 3.6vw, 84px);
  --maxw: 1840px;
  --header-h: 88px;
  --section: clamp(56px, 6vw, 112px);
  --gap: clamp(16px, 1.6vw, 32px);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: clamp(16px, 1.6vw, 26px);
  --r-xl: clamp(20px, 2vw, 32px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 20px 50px -24px rgba(17, 17, 17, 0.28), 0 2px 6px -2px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 30px 80px -40px rgba(17, 17, 17, 0.35);
  color-scheme: light;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 14.6px, 18px);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
table { border-collapse: collapse; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.icon { width: 1em; height: 1em; flex: none; }

/* ------------------------------------------------------------ typography */
.display-xxl, .display-xl, .display-l, .display-m { font-weight: 700; text-wrap: balance; }
.display-xxl {
  font-size: clamp(2.6rem, 8.4vw, 10.6rem);
  line-height: 0.9;
  letter-spacing: -0.052em;
  text-transform: uppercase;
}
.display-xl {
  font-size: clamp(2.8rem, 9.2vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.display-l {
  font-size: clamp(2.1rem, 5.2vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.display-m {
  font-size: clamp(1.8rem, 3.5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 640;
}
.statement {
  font-size: clamp(1.55rem, 3.15vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 380;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 1.1vw + 0.6rem, 1.45rem); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink); max-width: 38ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.75rem; line-height: 1.2; font-weight: 550; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.eyebrow--plain::before { display: none; }
.muted { color: var(--muted); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.5s var(--ease); display: inline-flex; align-items: center; gap: 0.3em; }
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }
.prose p + p { margin-top: 1.1em; }
.prose { color: #3c3c3c; max-width: 62ch; }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
/* two light sections in a row share one gap instead of stacking two paddings */
.section:not(.section--dark) + .section:not(.section--dark) { padding-top: 0; }
.marquee + .section { padding-top: calc(var(--section) * 0.7); }
.section--dark { background: var(--dark); color: #EDEDEB; }
.section--dark .muted, .section--dark .eyebrow { color: #8F8F8C; }
.section-head { display: grid; gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(32px, 4vw, 64px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4vw; }
  .section-head--split > :last-child { justify-self: end; max-width: 34ch; }
}
.section-index { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

/* --------------------------------------------------------------- buttons */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: rgba(23, 23, 23, 0.18);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.45em; border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 560; font-size: 0.98rem; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: color 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.5s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon-arrow-up-right { transform: translate(2px, -2px); }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--b-fill, var(--ink));
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--b-hover, var(--bg)); border-color: transparent; }
.btn:active { transform: scale(0.98); }
.btn--dark { --b-bg: var(--ink); --b-fg: var(--bg); --b-bd: var(--ink); --b-fill: #333; --b-hover: #fff; }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); --b-fill: var(--ink); --b-hover: var(--accent); }
.btn--glass {
  --b-bg: var(--glass); --b-bd: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow-glass);
}
.btn--light { --b-bg: transparent; --b-fg: #F2F2F0; --b-bd: rgba(255, 255, 255, 0.24); --b-fill: #F2F2F0; --b-hover: var(--ink); }
.btn--lg { min-height: 64px; padding: 0 2em; font-size: 1.06rem; }
.btn--block { width: 100%; }

.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); font-size: 0.8rem; font-weight: 520; letter-spacing: -0.005em; color: var(--ink);
}
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------- header */
.site-header {
  position: relative; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 1.6rem; letter-spacing: -0.06em; line-height: 1; }
.wordmark__mark { width: 30px; height: 30px; display: block; object-fit: contain; flex: none; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 40px); }
.main-nav a { position: relative; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.015em; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 4px rgba(59, 178, 115, 0.16); }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  align-items: center; justify-content: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* ----------------------------------------------------------- breadcrumbs */
.breadcrumbs { padding-top: 8px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ------------------------------------------------------------ page heads */
.page-hero { padding-top: clamp(48px, 7vw, 120px); padding-bottom: clamp(48px, 6vw, 96px); }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: clamp(20px, 3vw, 40px); font-size: 0.95rem; }
.page-hero__title { max-width: 16ch; }
.page-hero__foot { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); align-items: end; }
@media (min-width: 900px) { .page-hero__foot { grid-template-columns: 1fr auto; } }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #E9E9E6; padding-top: clamp(80px, 9vw, 160px); overflow: hidden; position: relative; }
.footer-top { display: grid; gap: 48px; padding-bottom: clamp(56px, 6vw, 100px); }
@media (min-width: 1000px) { .footer-top { grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)); gap: 3vw; } }
.footer-brand p { color: #9A9A96; max-width: 34ch; margin-top: 20px; }
.footer-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-col h2 { font-size: 0.75rem; font-weight: 550; letter-spacing: 0.14em; text-transform: uppercase; color: #7F7F7C; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #D8D8D5; transition: color 0.3s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .icon { width: 0.9em; height: 0.9em; opacity: 0.6; }
.footer-col address { font-style: normal; color: #D8D8D5; display: grid; gap: 10px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.86rem; color: #8A8A87;
}
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.footer-signature {
  font-weight: 800; font-size: clamp(5rem, 27.5vw, 34rem); line-height: 0.74; letter-spacing: -0.075em;
  color: #F2F2F0; text-align: center; margin: clamp(12px, 3vw, 40px) 0 -0.06em; user-select: none; white-space: nowrap;
}
.footer-signature span {
  display: inline-block; padding-bottom: 0.06em;
  background: linear-gradient(180deg, #F2F2F0 35%, rgba(242, 242, 240, 0.1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------------------------------------- legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 2.2em 0 0.6em; font-weight: 620; }
.legal p, .legal li { color: #3c3c3c; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; margin-top: 0.8em; }
.legal p + p { margin-top: 1em; }
