/* ============================================================
   Redress — V2 "Studio" edition. Awwwards-grade editorial.
   ============================================================ */

:root {
  --ink: #0e1b33;
  --ink-soft: #3a4660;
  --muted: #6b7488;
  --faint: #9aa2b4;
  --paper: #fdfdfc;
  --paper-warm: #f5f4f0;
  --line: #e6e7ec;
  --accent: #b4530a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --display: var(--serif);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.no-motion { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-headline="sans"] { --display: var(--sans); }
body[data-headline="sans"] .display { font-weight: 600; letter-spacing: -0.04em; font-style: normal; }
body[data-headline="sans"] .display em { font-style: normal; }
body[data-photos="mono"] img.tone { filter: grayscale(1) contrast(1.06); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }

::selection { background: var(--ink); color: #fff; }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, opacity 0.3s;
  display: grid;
  place-items: center;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.grow { width: 44px; height: 44px; background: var(--ink); }
.cursor .cl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.grow .cl { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }
body.no-motion .cursor { display: none; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 0.98; }
.display em { font-style: italic; color: var(--accent); }

.mono-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mono-label::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.mono-label.bare::before { display: none; }

/* line mask reveals */
.lm { display: block; overflow: hidden; }
.lm > .li { display: block; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-motion) .lm > .li {
    transform: translateY(115%);
    transition: transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  body:not(.no-motion) .in .lm > .li,
  body:not(.no-motion) .lm.in > .li { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.no-motion) [data-fade] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  body:not(.no-motion) [data-fade].in { opacity: 1; transform: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  mix-blend-mode: normal;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled,
.nav.open {
  background: rgba(253, 253, 252, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 56px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.4s var(--ease);
}
.nav.scrolled .nav-inner { height: 66px; }

.brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 28px; }
.menu-item { display: flex; }
.nav-right .nl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
}
.nav-right .nl .chev {
  font-size: 8px;
  transition: transform 0.3s var(--ease);
}
.menu-item.on .nl .chev { transform: rotate(180deg); }
.menu-item.on .nl { color: var(--ink); }
.nav-right .nl {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
}
/* ---------- mega menus ---------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 40px 80px -32px rgba(14, 27, 51, 0.28);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.mega.on { opacity: 1; transform: none; pointer-events: auto; }
.mega-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 56px 52px;
  display: grid;
  gap: 48px;
}
.mega-inner.cols-5 { grid-template-columns: 1.1fr 1.1fr 1fr 1.1fr 1fr; }
.mega-inner.cols-3 { grid-template-columns: 0.9fr 1.2fr 1.4fr; }
.mega-inner.cols-1 { grid-template-columns: repeat(4, 1fr); }
.mega h6 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mega ul { display: grid; gap: 4px; }
.mega ul.two-col { columns: 2; column-gap: 28px; display: block; }
.mega ul.two-col li { break-inside: avoid; margin-bottom: 4px; }
.mega a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.mega a:hover { color: var(--accent); transform: translateX(4px); }
.mega .mega-feature {
  background: var(--paper-warm);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega .mega-feature .mf-t { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.mega .mega-feature p { font-size: 13px; color: var(--muted); }
.mega .mega-feature a { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }
@media (max-width: 1040px) { .mega { display: none; } }

.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.3s;
  will-change: transform;
}
.pill-cta:hover { background: var(--accent); }
.pill-cta.big { padding: 22px 44px; font-size: 17px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: 120px;
}

.hero-head { margin-bottom: 56px; }

.hero h1 {
  font-size: clamp(58px, 8.6vw, 132px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.hero h1 .row { display: flex; align-items: center; gap: 0.18em; flex-wrap: wrap; }

.chip-img {
  display: inline-block;
  width: 1.9em;
  height: 0.78em;
  border-radius: 99px;
  overflow: hidden;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}
.chip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.chip-img:hover img { transform: scale(1.12); }

.hero-sub {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 64px;
}
.hero-sub .lede {
  max-width: 44ch;
  font-size: 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-sub .scroll-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint .vline { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-motion) .scroll-hint .vline::after {
    content: "";
    position: absolute;
    left: 0; top: -50%;
    width: 100%; height: 50%;
    background: var(--accent);
    animation: drip 2.2s var(--ease) infinite;
  }
}
@keyframes drip { to { top: 110%; } }

/* ---------- clients marquee ---------- */
.clients { padding: 88px 0 0; overflow: hidden; }
.clients .mono-label { margin-left: max(56px, calc((100vw - var(--maxw)) / 2 + 56px)); }
.client-track { margin-top: 38px; display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-motion) .client-track { animation: tickx 90s linear infinite; }
}
.client-track:hover { animation-play-state: paused; }
.client-set { display: flex; align-items: baseline; flex-shrink: 0; }
.client-set span {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.28;
  padding: 0 30px;
  transition: opacity 0.3s, color 0.3s;
}
.client-set span:hover { opacity: 1; color: var(--accent); }
.client-set i { font-style: normal; color: var(--accent); font-size: 14px; opacity: 0.6; }

/* outcome ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--paper);
}
.ticker-track { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-motion) .ticker-track { animation: tickx 36s linear infinite; }
}
@keyframes tickx { to { transform: translateX(-50%); } }
.ticker-set { display: flex; align-items: center; flex-shrink: 0; }
.ticker-set span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 0 28px;
}
.ticker-set b { color: var(--accent); font-weight: 600; }
.ticker-set i { font-style: normal; color: var(--faint); }

/* ---------- manifesto (scroll-highlight words) ---------- */
.manifesto { padding: 96px 0 84px; }
.manifesto .mono-label { margin-bottom: 32px; }
.manifesto p {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: pretty;
}
body[data-headline="sans"] .manifesto p { font-weight: 550; letter-spacing: -0.03em; }
.manifesto p .w { color: #cfd2da; transition: color 0.35s; }
.manifesto p .w.lit { color: var(--ink); }
.manifesto p .w.acc.lit { color: var(--accent); font-style: italic; }

/* ---------- sticky service stack ---------- */
.services { padding: 40px 0 120px; }
.services .sec-intro { margin-bottom: 90px; }
.services h2 { font-size: clamp(44px, 5.4vw, 84px); max-width: 14ch; }

.stack { position: relative; }
.stack-card {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 480px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(14, 27, 51, 0.25);
  margin-bottom: 28px;
  transform-origin: center top;
  will-change: transform;
}
.stack-card.alt { background: var(--ink); color: #fff; border-color: transparent; }

.sc-body { padding: 60px 64px; display: flex; flex-direction: column; }
.sc-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: auto;
}
.sc-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.02;
  margin: 28px 0 18px;
  letter-spacing: -0.015em;
}
body[data-headline="sans"] .sc-body h3 { font-weight: 600; letter-spacing: -0.03em; }
.sc-body p { font-size: 16.5px; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.stack-card.alt .sc-body p { color: rgba(255, 255, 255, 0.65); }

.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sc-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.stack-card.alt .sc-tags span { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.8); }

.sc-photo { position: relative; overflow: hidden; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; }
.sc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 27, 51, 0.08), transparent 40%);
}

/* ---------- numbers band ---------- */
.numbers {
  background: var(--ink);
  color: #fff;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.numbers::after {
  content: "REDRESS";
  position: absolute;
  right: -2%;
  bottom: -10%;
  font-family: var(--serif);
  font-size: 24vw;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.numbers .mono-label { color: rgba(255, 255, 255, 0.5); }
.num-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  position: relative;
  z-index: 1;
}
.num-cell { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 28px; }
.num-cell .nv {
  font-family: var(--serif);
  font-size: clamp(54px, 5vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.num-cell .nv sup { font-size: 0.45em; color: var(--accent); filter: brightness(1.6); }
.num-cell .nl2 { margin-top: 14px; font-size: 14.5px; color: rgba(255, 255, 255, 0.55); max-width: 24ch; }

/* ---------- vendors hover list ---------- */
.vendors { padding: 160px 0 140px; position: relative; }
.v-list { margin-top: 70px; border-top: 1px solid var(--line); }
.v-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: baseline;
  gap: 32px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.45s var(--ease);
}
.v-row:hover { padding-left: 28px; }
.v-row .vi {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.v-row .vn {
  font-family: var(--display);
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.3s, font-style 0.3s;
}
body[data-headline="sans"] .v-row .vn { font-weight: 600; letter-spacing: -0.03em; }
.v-row:hover .vn { color: var(--accent); font-style: italic; }
.v-row .vf {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.v-preview {
  position: fixed;
  z-index: 90;
  width: 250px;
  height: 166px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) rotate(-3deg);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  box-shadow: 0 40px 80px -20px rgba(14, 27, 51, 0.45);
}
.v-preview.on { opacity: 1; transform: scale(1) rotate(0deg); }
.v-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- results rail ---------- */
.results { padding: 0 0 160px; }
.results .sec-intro { margin-bottom: 70px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.results h2 { font-size: clamp(44px, 5vw, 76px); max-width: 14ch; }
.drag-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

.rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 56px 48px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }

.r-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  user-select: none;
}
.r-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(14, 27, 51, 0.3); }
.r-card .rv {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.r-card .rv em { font-style: italic; color: var(--accent); }
.r-card h4 { font-size: 19px; font-weight: 600; }
.r-card p { font-size: 15px; color: var(--muted); text-wrap: pretty; }
.r-card .rm {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.r-card.dark { background: var(--ink); color: #fff; border-color: transparent; }
.r-card.dark p { color: rgba(255, 255, 255, 0.6); }
.r-card.dark .rm { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.15); }

/* ---------- quote ---------- */
.quote2 { padding: 40px 0 180px; text-align: center; }
.quote2 .qmark { font-family: var(--serif); font-size: 110px; line-height: 0.3; color: var(--accent); display: block; }
.quote2 blockquote {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 44px auto 40px;
  text-wrap: balance;
}
body[data-headline="sans"] .quote2 blockquote { font-weight: 550; letter-spacing: -0.03em; }
.quote2 cite { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.quote2 cite strong { display: block; color: var(--ink); margin-bottom: 6px; }

/* ---------- CTA / footer ---------- */
.endcap {
  background: var(--ink);
  color: #fff;
  padding: 160px 0 0;
  position: relative;
  overflow: hidden;
}
.endcap .mono-label { color: rgba(255, 255, 255, 0.5); }
.endcap h2 {
  font-size: clamp(54px, 7.4vw, 116px);
  line-height: 0.98;
  margin: 30px 0 36px;
  max-width: 12ch;
}
.endcap h2 em { color: var(--accent); filter: brightness(1.5); }
.endcap .lede { color: rgba(255, 255, 255, 0.6); max-width: 50ch; font-size: 18px; margin-bottom: 52px; }

.endcap .pill-cta { background: #fff; color: var(--ink); }
.endcap .pill-cta:hover { background: var(--accent); color: #fff; }
.endcap .mail-line { margin-top: 22px; font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.endcap .mail-line a { color: #fff; border-bottom: 1px solid var(--accent); }

.giant-wordmark {
  margin-top: 120px;
  font-family: var(--serif);
  font-size: clamp(90px, 17.5vw, 300px);
  line-height: 0.78;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  letter-spacing: 0.01em;
  user-select: none;
  transition: color 1s var(--ease);
}
.giant-wordmark:hover { color: rgba(255, 255, 255, 0.06); }

.foot2 {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: -2px;
  padding: 34px 0 40px;
}
.foot2-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}
.foot2-inner a:hover { color: #fff; }
.foot2-links { display: flex; gap: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .wrap { padding: 0 26px; }
  .nav-inner { padding: 0 26px; }
  .nav-right .nl { display: none; }
  .hero { padding-top: 130px; }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
  .scroll-hint { display: none; }
  .stack-card { grid-template-columns: 1fr; top: 90px; }
  .sc-photo { order: -1; aspect-ratio: 16 / 8; }
  .sc-body { padding: 36px 30px; }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .v-row { grid-template-columns: 40px 1fr; }
  .v-row .vf { grid-column: 2; }
  .v-preview { display: none; }
  .rail { padding: 8px 26px 40px; }
  .r-card { flex-basis: 320px; min-height: 340px; }
  .r-card .rv { font-size: 56px; }
  .results .sec-intro { flex-direction: column; align-items: flex-start; }
}
