/* ==========================================================================
   Straits Studio Creative — base styles
   Tokens, reset, typography, shared utilities.
   Sizing: 1rem = 1 design pixel on a 1920 (desktop) / 744 (tablet) / 390 (phone)
   artboard, so the whole layout scales with the viewport width.
   ========================================================================== */

:root {
  /* Brand palette — built from the Straits logo (charcoal, electric blue, cyan, red pixel) */
  --ink: #070b1f;          /* page + hero background, dark text */
  --ink-2: #0f1636;        /* raised dark surfaces */
  --ink-3: #1b2452;        /* dark borders / panels */
  --ice: #d4e2ff;          /* light sections, text on dark */
  --ice-2: #e9f0ff;        /* lighter tint */
  --white: #ffffff;
  --blue: #2a5ff0;         /* electric blue (logo gradient) */
  --indigo: #3a2cff;       /* deep violet-blue */
  --cyan: #2bd8ff;         /* cyan (logo gradient) */
  --red: #e61c3a;          /* the red "pixel" from the logo */
  --yellow: #ffd23f;       /* sunny pop */

  --accent: var(--cyan);   /* pen line, dots, highlights on dark */

  /* Type */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-wide: "Anybody", "Arial", sans-serif;
  --font-body: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;

  --h1: 250rem;
  --h2: 170rem;
  --h3: 65rem;
  --label: 22rem;
  --body: 19rem;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --radius-pill: 999rem;
  --gutter: 80rem;
  --vhx: 100svh;
}

/* Fluid rem: 1rem = 1px of the design artboard */
html { font-size: max(.5px, calc(1 / 1920 * 100vw)); }
@media screen and (max-width: 991px) { html { font-size: calc(1 / 744 * 100vw); } :root { --gutter: 24rem; } }
@media screen and (max-width: 743px) { html { font-size: calc(1 / 390 * 100vw); } :root { --gutter: 16rem; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
  overflow-anchor: none;          /* pinned/sticky sections confuse scroll anchoring */
  scroll-padding-bottom: 170rem;  /* keyboard focus never lands under the fixed dock */
}
@media (max-width: 743px) { html { scroll-padding-bottom: 90rem; } }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 3rem solid var(--focus, var(--cyan)); outline-offset: 4rem; }
/* cyan disappears on the light sections — use indigo there */
.s-about, .s-trust, .s-vibe, .s-footer { --focus: var(--indigo); }
main:focus { outline: none; }
@media (max-width: 991px) { :focus-visible { outline-width: 2px; } }

/* Lenis */
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; }

/* Custom cursor hides the native one on fine pointers */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

/* ---------- Layout ---------- */
.section { position: relative; }
.container {
  position: relative;
  width: 100%;
  max-width: 1920rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.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;
}

/* ---------- Typography ---------- */
.t-display, h2.section-title {
  font-family: var(--font-display);
  font-weight: 400;              /* Anton ships one heavy weight */
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: .005em;
}
h2.section-title { font-size: var(--h2); }
.subtitle {
  font-family: var(--font-body);
  font-size: 15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.5;
}
@media (max-width: 991px) { .subtitle { font-size: 16rem; } }
@media (max-width: 743px) { .subtitle { font-size: 12rem; } }

/* The "wide glyph" swap — one letter set in an ultra-expanded thin face,
   the Straits take on crency's decorative-letter trick. */
.wide {
  font-family: var(--font-wide);
  font-stretch: 150%;
  font-weight: 350;
  font-variation-settings: "wdth" 150, "wght" 350;
  text-transform: none;          /* lowercase e/o/s give the swashy shapes */
  display: inline-block;
  line-height: 1;
  /* Anybody's caps are shorter than Anton's: stretch vertically to the same
     cap height while keeping the advance width. Don't animate .wide's own
     transform — animate a parent instead. */
  transform: scaleY(1.36);
  transform-origin: 50% 100%;
}
.wide.caps { text-transform: uppercase; }
/* on light, body-font statements the swap is used without the stretch */
.wide.flat { transform: none; }

/* ---------- Buttons ---------- */
/* Pill button + round arrow — the "btn-bubble" pair */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-arrow-bg: var(--cyan);
  --btn-arrow-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20rem;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn__label {
  display: inline-flex;
  align-items: center;
  height: 58rem;
  padding: 0 30rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  overflow: hidden;
  position: relative;
  transition: transform .5s var(--ease-back);
}
.btn__arrow {
  width: 58rem;
  height: 58rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn-arrow-bg);
  color: var(--btn-arrow-fg);
  flex: none;
  transition: transform .5s var(--ease-back);
}
.btn__arrow svg { width: 80%; height: 80%; transition: transform .5s var(--ease-back); }
.btn:hover .btn__label { transform: translateX(4rem) scale(1.04); }
.btn:hover .btn__arrow { transform: translateX(-4rem) rotate(45deg) scale(1.08); }
/* rolling label text (two stacked copies) */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.15; height: 1.15em; }
.roll__stack { display: flex; flex-direction: column; transition: transform .45s var(--ease-out); }
.roll__stack > span { display: block; height: 1.15em; }
a:hover .roll__stack, button:hover .roll__stack, .roll-host:hover .roll__stack { transform: translateY(-50%); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--ice); }
.btn--cyan { --btn-bg: var(--cyan); --btn-fg: var(--ink); --btn-arrow-bg: var(--ink); --btn-arrow-fg: var(--ice); }
.btn--red { --btn-bg: var(--red); --btn-fg: var(--white); --btn-arrow-bg: var(--ink); --btn-arrow-fg: var(--white); }
@media (max-width: 991px) {
  .btn { font-size: 16rem; }
  .btn__label { height: 46rem; padding: 0 22rem; }
  .btn__arrow { width: 46rem; height: 46rem; }
}
@media (max-width: 743px) {
  .btn { font-size: 14rem; }
  .btn__label { height: 40rem; padding: 0 18rem; }
  .btn__arrow { width: 40rem; height: 40rem; }
}

/* ---------- Line reveal (see SS.reveal in core.js) ---------- */
[data-reveal="lines"] { visibility: hidden; }
html.is-ready [data-reveal="lines"].is-split { visibility: visible; }
html.reduced-motion [data-reveal="lines"] { visibility: visible; }
.reveal-line { display: block; will-change: transform, opacity; }

/* ---------- Placeholder marker ----------
   Anything tagged data-placeholder is sample content waiting for real info.
   Add ?placeholders to the URL to outline them all. */
html.show-placeholders [data-placeholder] { outline: 2px dashed var(--red); outline-offset: 2px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
