/* ==========================================================================
   Nexora Social: redesign concept
   One line through the noise. The violet "ne" of the logo is a single stroke;
   the whole system is built around that line. See design-direction.md.
   ========================================================================== */

:root {
  /* palette: from the logo file and the live site's CSS */
  --violet: #B343F8;       /* the logo's "ne", the line, the cord. Large text only */
  --violet-ui: #9F37EA;    /* primary buttons: white text at 5:1 */
  --violet-deep: #7E22CE;  /* violet text and links at body size */
  --violet-light: #CF8BFF; /* violet text on Night */
  --ink: #231F20;          /* the logo's "xora" and body text */
  --night: #141016;        /* dark sections: a violet-tinted black */
  --night-2: #1F1A22;
  --sweep: #E6E5E2;        /* page ground: a studio's seamless paper */
  --paper: #F6F5F3;        /* raised surfaces */
  --haze: #EADCFD;         /* selection, the concept strip */
  --graphite: #5E5A5C;     /* secondary text on light grounds */
  --fog: #ADA7AA;          /* secondary text on Night */
  --rule: rgba(35, 31, 32, .14);
  --rule-light: rgba(255, 255, 255, .14);

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-stretch: 112%;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 6px;
  --radius-l: 14px;
  --shadow: 0 30px 60px -32px rgba(20, 16, 22, .55);
  --masthead-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: var(--masthead-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sweep) url(../img/tex-sweep.jpg) repeat;
  background-size: 400px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--haze); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .work :focus-visible, .cta :focus-visible, .footer :focus-visible, .menu :focus-visible { outline-color: var(--violet-light); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 {
  font-weight: 800;
  font-stretch: var(--display-stretch);
  letter-spacing: -0.035em;
  line-height: .96;
}
h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.lede { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--graphite); max-width: 36em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font); font-size: 1rem; font-weight: 600; font-stretch: 104%; line-height: 1.1;
  letter-spacing: -0.005em; text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--violet-ui); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--violet-deep); }
  .btn--ink:hover { background: #000; }
  .btn--outline:hover { background: var(--ink); color: var(--sweep); }
  .btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--night); }
}

/* links underline with a line that draws in from the left: the brand's line, small */
.link {
  font-weight: 600; color: var(--violet-deep); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .link { transition: background-size .5s var(--ease-out); }
  .link:hover { animation: redraw .7s var(--ease-out); }
}
@keyframes redraw {
  0% { background-size: 100% 1.5px; background-position: 100% 100%; }
  45% { background-size: 0 1.5px; background-position: 100% 100%; }
  46% { background-size: 0 1.5px; background-position: 0 100%; }
  100% { background-size: 100% 1.5px; background-position: 0 100%; }
}

.flag {
  display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 99px;
  background: #FFE7A3; color: #4D3B00; font-size: .75rem; font-weight: 600; line-height: 1.6; vertical-align: 1px;
}

/* ---------- concept note ---------- */
.concept-note {
  position: relative; z-index: 101;
  padding: 9px var(--gutter); background: var(--haze); color: var(--ink);
  font-size: .875rem; line-height: 1.4; text-align: center;
}
.concept-note a { font-weight: 600; color: var(--violet-deep); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  height: var(--masthead-h);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .45s var(--ease-drawer);
}
.masthead.is-scrolled { background: rgba(246, 245, 243, .96); box-shadow: 0 1px 0 var(--rule); }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.masthead__logo { display: block; flex: none; color: var(--ink); border-radius: 4px; }
.masthead__logo svg { width: clamp(118px, 10vw, 140px); height: auto; aspect-ratio: 1931.5 / 345; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__list a {
  position: relative; display: block; padding: 8px 0;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--violet); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .35s var(--ease-out);
}
.nav__list a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}
.menu-toggle { display: none; }

/* ---------- full-screen menu (phones) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  background: var(--night) url(../img/tex-night.jpg) repeat; background-size: 512px;
  color: #fff;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1) .14s, visibility 0s linear .7s;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--masthead-h); flex: none; }
.menu__logo { width: 118px; height: auto; color: #fff; }
.menu__close { position: relative; width: 44px; height: 44px; margin-right: -10px; border-radius: 50%; }
.menu__close span, .menu__close span::before {
  position: absolute; left: 12px; top: 21px; width: 20px; height: 2px; background: #fff; border-radius: 2px; transform: rotate(45deg);
}
.menu__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }
.menu__nav { flex: 1; display: flex; align-items: center; }
.menu__nav ul { display: grid; gap: 4px; }
.menu__nav li { opacity: 0; transform: translateY(26px); transition: opacity .2s, transform .2s; }
.menu.is-open .menu__nav li {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s), transform .75s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s);
}
.menu__nav a {
  display: block; padding: 2px 0;
  font-size: clamp(2.5rem, 11vw, 4rem); font-weight: 800; font-stretch: var(--display-stretch);
  letter-spacing: -0.035em; line-height: 1.08; text-decoration: none;
}
.menu__foot { display: grid; gap: 18px; padding-bottom: max(28px, env(safe-area-inset-bottom)); color: var(--fog); font-size: .9375rem; }
.menu__foot a { color: #fff; text-decoration: none; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--night) url(../img/tex-night.jpg) repeat; background-size: 512px;
  /* fail-safe: if scripts never arrive, the curtain still goes */
  animation: loader-failsafe .4s 9s forwards;
}
.is-static .loader { display: none; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__stage { width: min(540px, 70vw); color: #fff; }
.loader-logo { width: 100%; height: auto; overflow: visible; }
.loader-logo__stroke { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.loader-logo__l { transform: translateY(380px); }
body.is-loading { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: end;
  min-height: max(640px, 100svh);
  margin-top: calc(var(--masthead-h) * -1);
  padding: calc(var(--masthead-h) + 64px) 0 clamp(28px, 4vw, 52px);
  background: #C4C3C2;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img {
  position: absolute; left: 0; width: 100%;
  top: -10%; height: 120%;
  object-fit: cover; object-position: 70% 50%;
  will-change: transform;
}
.hero__content { padding-bottom: clamp(40px, 7vh, 96px); }
.hero__title {
  /* sized to clear the cord's loop, which sits in the right third of the photograph */
  font-size: clamp(3rem, 6.9vw, 7.5rem);
  line-height: .9; letter-spacing: -0.045em;
  max-width: 10em;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }
.hero__lede { margin-top: clamp(20px, 2.6vw, 32px); max-width: 33em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.hero__foot { font-size: .875rem; font-weight: 500; color: var(--ink); }

/* ---------- facts ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 28px); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts__list li { display: grid; gap: 4px; padding: 6px clamp(14px, 2vw, 28px); border-left: 1px solid var(--rule); }
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__list strong { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; font-stretch: var(--display-stretch); letter-spacing: -0.04em; line-height: 1; }
.facts__list span { color: var(--graphite); font-size: .9375rem; line-height: 1.35; }
.facts__note { margin-top: clamp(18px, 2vw, 24px); font-size: .8125rem; color: var(--graphite); }

/* ---------- statement ---------- */
.statement { padding-top: var(--section); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.statement__title { font-size: clamp(2.5rem, 5.4vw, 5.25rem); max-width: 11em; }
.statement__body { margin-top: clamp(20px, 2.4vw, 32px); max-width: 30em; font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--graphite); }
.statement__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.statement__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 72% 50%; }
.signal { margin-top: clamp(40px, 6vw, 88px); height: clamp(110px, 14vw, 220px); }
.signal__svg { width: 100%; height: 100%; overflow: visible; }
.signal__path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- services: one line threads all six ---------- */
.services { padding-block: clamp(48px, 6vw, 96px) var(--section); }
.services__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.services__head h2 { max-width: 9em; }
.services__body { position: relative; --rail: clamp(48px, 7vw, 112px); }
.services__list { margin-left: var(--rail); border-bottom: 1px solid var(--rule); }
.thread { position: absolute; top: 0; left: var(--gutter); width: var(--rail); height: 100%; overflow: visible; pointer-events: none; }
.thread__path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thread__tip { fill: var(--violet); opacity: 0; }
.has-motion .thread__tip { opacity: 1; }
.service {
  display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr);
  gap: 16px clamp(20px, 3vw, 48px); align-items: start;
  padding-block: clamp(28px, 3.4vw, 48px);
  border-top: 1px solid var(--rule);
}
.service__icon { width: 56px; height: 56px; color: #BDB8BA; transition: color .6s var(--ease-out); }
.service__icon svg { width: 100%; height: 100%; }
.service__name { font-size: clamp(1.75rem, 3vw, 2.75rem); color: #7F7A7C; transition: color .6s var(--ease-out); padding-top: 4px; }
.service.is-lit .service__icon { color: var(--violet); }
.service.is-lit .service__name { color: var(--ink); }
.no-thread .service__icon { color: var(--violet); }
.no-thread .service__name { color: var(--ink); }
.service__detail p { color: var(--graphite); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 5px 13px; border: 1px solid var(--rule); border-radius: 99px; font-size: .8125rem; font-weight: 500; line-height: 1.3; background: rgba(255, 255, 255, .45); }
.services__note {
  margin-top: clamp(48px, 6vw, 88px);
  max-width: 24em; margin-left: auto; margin-right: 0;
  font-size: clamp(1.375rem, 2.3vw, 2rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em;
}
.services__note-wrap { display: flex; justify-content: flex-end; }

/* ---------- night grounds ---------- */
.work, .cta, .footer { background: var(--night) url(../img/tex-night.jpg) repeat; background-size: 512px; color: #F2EFF3; }
.work .lede, .cta .lede { color: var(--fog); }
.work .link, .footer .link { color: var(--violet-light); }

/* ---------- work ---------- */
.work { padding-block: var(--section); overflow: hidden; }
.work__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.work__identities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.work__identities .piece:nth-child(even) { margin-top: clamp(48px, 10vw, 160px); }
.piece__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--night-2); }
.piece--tall .piece__frame { aspect-ratio: 9 / 16; }
.piece--feed .piece__frame { aspect-ratio: 3 / 4; }
.piece__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .piece:hover .piece__frame img { transform: scale(1.035); }
}
.piece figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 14px; font-size: .9375rem; }
.piece figcaption strong { font-weight: 600; }
.piece figcaption span { color: var(--fog); }
.work__feeds { margin-top: clamp(72px, 9vw, 140px); }
.work__feeds-track {
  display: flex; gap: clamp(16px, 2vw, 32px);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  width: max-content;
  will-change: transform;
}
.piece--feed { width: clamp(240px, 24vw, 360px); flex: none; }
.work__more { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- clients ---------- */
.clients { padding-block: clamp(72px, 9vw, 128px); }
.clients__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; gap: 12px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.clients__head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.clients__head p { color: var(--graphite); }
.marquee-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 99px; font-size: .875rem; font-weight: 500; }
.marquee-toggle__icon { position: relative; width: 10px; height: 12px; }
.marquee-toggle__icon::before, .marquee-toggle__icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; border-radius: 1px; }
.marquee-toggle__icon::before { left: 0; }
.marquee-toggle__icon::after { right: 0; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__icon::before { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.marquee-toggle[aria-pressed="true"] .marquee-toggle__icon::after { display: none; }
@media (hover: hover) and (pointer: fine) { .marquee-toggle:hover { border-color: var(--ink); } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee.is-running .marquee__track { animation: marquee var(--marquee-dur, 60s) linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__list { display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); padding-right: clamp(48px, 6vw, 88px); }
.marquee__list li { flex: none; display: flex; align-items: center; height: 72px; }
.marquee__list img { height: calc(48px * var(--h, 1)); width: auto; opacity: .86; }
/* no motion: the logos settle into calm rows */
.marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.marquee.is-static .marquee__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 24px; }
.marquee.is-static .marquee__list[aria-hidden="true"] { display: none; }

/* ---------- process ---------- */
.process { background: var(--paper); padding-block: var(--section); }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 112px); align-items: start; }
.process__media { position: sticky; top: calc(var(--masthead-h) + 24px); overflow: hidden; aspect-ratio: 6 / 5; border-radius: var(--radius); }
/* keep both the manousheh and the phone filming it, with its violet lanyard */
.process__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 72% 50%; }
.process__body h2 { max-width: 8em; }
.process__body .lede { margin-top: 24px; }
.steps { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); padding-bottom: clamp(32px, 4vw, 48px); }
.step:last-child { padding-bottom: 0; }
.step__num {
  grid-row: span 2; position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--rule); background: var(--paper);
  font-weight: 700; font-size: .9375rem; color: var(--graphite);
  transition: border-color .6s var(--ease-out), color .6s var(--ease-out), background-color .6s var(--ease-out);
}
.step::before { /* connector to the next step */
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--rule);
}
.step::after {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--violet);
  transform: scaleY(0); transform-origin: 50% 0;
}
.step:last-child::before, .step:last-child::after { display: none; }
.step.is-in .step__num { border-color: var(--violet); color: var(--violet-deep); background: #fff; }
.step.is-in::after { transform: scaleY(1); transition: transform .56s cubic-bezier(.45, 0, .25, 1) .22s; }
.step h3 { font-size: 1.375rem; padding-top: 12px; }
.step p { margin-top: 8px; color: var(--graphite); max-width: 32em; }

/* ---------- about ---------- */
.about { padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 112px); align-items: center; }
.about__text h2 { max-width: 8em; }
.about__text .lede { margin-top: 28px; color: var(--ink); }
.about__text p + p { margin-top: 18px; color: var(--graphite); max-width: 34em; }
.about__media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius); }
.about__media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 60% 50%; }
.philosophy { margin-top: clamp(80px, 10vw, 160px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.philosophy__lead { font-size: clamp(2.25rem, 4.8vw, 4.5rem); font-weight: 800; font-stretch: var(--display-stretch); letter-spacing: -0.04em; line-height: .98; max-width: 10em; }
.philosophy__body { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--graphite); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.value { padding-top: 24px; border-top: 1px solid var(--rule); }
.value svg { width: 48px; height: 48px; color: var(--violet); }
.value h3 { margin-top: 20px; font-size: 1.25rem; }
.value p { margin-top: 10px; color: var(--graphite); font-size: 1rem; }

/* ---------- voices ---------- */
.voices { background: var(--paper); padding-block: var(--section); }
.voices__title { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.voice__logo { height: 44px; width: auto; align-self: flex-start; margin-bottom: 24px; opacity: .9; }
.voice--lead { margin-top: clamp(40px, 5vw, 72px); max-width: 1040px; }
.voice--lead blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.375rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; }
.voice figcaption { display: grid; gap: 2px; margin-top: 24px; font-size: .9375rem; }
.voice figcaption strong { font-weight: 700; }
.voice figcaption span { color: var(--graphite); }
.voices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 7vw, 104px); }
.voices__grid .voice { padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; }
.voices__grid blockquote p { font-size: 1.125rem; line-height: 1.5; }
.voices__grid figcaption { margin-top: auto; padding-top: 20px; }

/* ---------- journal ---------- */
.journal { padding-block: var(--section); }
.journal__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; gap: 12px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.journal__head p { color: var(--graphite); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.post a { display: grid; gap: 14px; height: 100%; padding-top: 24px; border-top: 2px solid var(--ink); text-decoration: none; }
.post__icon { width: 44px; height: 44px; color: var(--violet); transition: transform .6s var(--ease-out); }
.post__date { font-size: .875rem; color: var(--graphite); }
.post__title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) {
  .post a:hover .post__icon { transform: rotate(-8deg) translateY(-2px); }
  .post a:hover .post__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
}

/* ---------- closing call to action ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; min-height: max(620px, 92svh); display: grid; align-items: center; padding-block: var(--section); }
.cta__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 78% 50%; opacity: .95; }
.cta h2 { font-size: clamp(3rem, 8vw, 8rem); line-height: .92; letter-spacing: -0.045em; max-width: 7em; }
.cta .lede { margin-top: 28px; max-width: 30em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); }
.cta__contact dt { font-size: .8125rem; color: var(--fog); }
.cta__contact dd a { font-size: 1.125rem; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cta__contact dd a:hover { color: var(--violet-light); } }

/* ---------- footer ---------- */
.footer { padding-top: clamp(72px, 8vw, 112px); border-top: 1px solid var(--rule-light); }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px clamp(24px, 3vw, 48px); }
.footer__line { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; max-width: 14em; }
.footer__col h2 { font-size: .875rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--fog); margin-bottom: 14px; line-height: 1.4; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { text-decoration: none; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--violet-light); } }
.footer__mark { margin-top: clamp(64px, 9vw, 140px); color: #fff; }
.footer-logo { width: 100%; height: auto; overflow: visible; }
.footer-logo__stroke { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px;
  margin-top: clamp(32px, 4vw, 56px); padding-block: 24px 32px; border-top: 1px solid var(--rule-light);
  font-size: .8125rem; color: var(--fog);
}
.footer__legal a { color: #fff; }
.footer__cookie { text-decoration: underline; text-underline-offset: 3px; color: #fff; font-size: .8125rem; }
.footer__concept { flex-basis: 100%; max-width: 70em; }

/* ---------- floating cord pieces (cut from a lightbox photograph) ----------
   Two only, on light grounds, drifting slower than the page. */
.services, .voices { position: relative; }
.float {
  position: absolute; z-index: 0; pointer-events: none; height: auto;
  filter: drop-shadow(0 22px 18px rgba(20, 16, 22, .2)) drop-shadow(0 4px 4px rgba(20, 16, 22, .12));
}
.float--curve { width: clamp(84px, 8vw, 132px); right: clamp(16px, 6vw, 110px); top: clamp(-40px, -2vw, -10px); transform: rotate(18deg); }
.float--knot { width: clamp(80px, 7.5vw, 124px); right: clamp(20px, 8vw, 150px); top: clamp(48px, 7vw, 110px); transform: rotate(-16deg); }
.services__head, .services__body, .voices > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .float { display: none; } }

/* ---------- reveals (only when motion runs) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w__i { display: inline-block; }

/* ==========================================================================
   COOKIE CONSENT (from the website-redesign-proposal skill, re-tokened)
   ========================================================================== */
.consent {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 90;
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 24px; border-radius: var(--radius-l);
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(35, 31, 32, .08), 0 28px 56px -24px rgba(20, 16, 22, .5);
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: 100% 100%;
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-open { opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 560ms var(--ease-drawer); }
.consent.is-leaving { opacity: 0; transform: translateY(40px); transition: opacity 440ms cubic-bezier(.4, 0, .2, 1), transform 560ms cubic-bezier(.4, 0, .2, 1); }
.consent__head, .consent__text, .consent__manage, .consent__actions { opacity: 0; transform: translateY(8px); }
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions),
.consent.is-leaving :is(.consent__head, .consent__text, .consent__manage, .consent__actions) { opacity: 1; transform: none; }
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  transition: opacity 360ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms), transform 480ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms);
}
.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* the "ne" mark draws a quarter turn into place */
.consent__star { flex: none; width: 26px; height: 14px; color: var(--violet); opacity: 0; transform: translateX(-6px); }
.consent.is-open .consent__star, .consent.is-leaving .consent__star { opacity: 1; transform: none; }
.consent.is-open .consent__star { transition: transform 720ms var(--ease-out) 150ms, opacity 280ms var(--ease-out) 150ms; }
.consent__title { font-size: 1.25rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.2; }
.consent__title:focus { outline: none; }
.consent__close { display: none; position: relative; flex: none; width: 36px; height: 36px; margin: -6px -10px -6px auto; border-radius: 50%; color: var(--graphite); transition: background-color .2s, transform 160ms var(--ease-out); }
.consent.can-dismiss .consent__close { display: block; }
.consent__close:active { transform: scale(.92); }
.consent__close span, .consent__close span::before { position: absolute; left: 11px; top: 17px; width: 14px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.consent__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }
.consent__text { font-size: .9375rem; line-height: 1.55; color: var(--graphite); }
.consent__text a { color: var(--violet-deep); }
.consent__manage { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 0; font-size: .9375rem; font-weight: 600; color: var(--violet-deep); }
.consent__manage svg { width: 12px; height: 12px; transition: transform 260ms var(--ease-in-out); }
.consent.is-expanded .consent__manage svg { transform: rotate(180deg); }
.consent__prefs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-in-out); }
.consent.is-expanded .consent__prefs { grid-template-rows: 1fr; transition-duration: 380ms; }
.consent__prefs-inner { min-height: 0; overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.consent__row, .consent__save { opacity: 0; transform: translateY(6px); transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
.consent.is-expanded :is(.consent__row, .consent__save) { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms), transform 420ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms); }
.consent__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.consent__label { font-size: 1rem; font-weight: 600; }
label.consent__label { cursor: pointer; }
.consent__row p { grid-column: 1 / -1; font-size: .875rem; line-height: 1.5; color: var(--graphite); }
.consent__always { font-size: .875rem; font-weight: 600; color: var(--violet-deep); }
.consent__save { padding: 6px 0 4px; }
.consent__switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: #C9C4C7; cursor: pointer; transition: background-color 200ms var(--ease-out); }
.consent__switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(20, 16, 22, .3); transition: transform 220ms var(--ease-out), width 160ms var(--ease-out); }
.consent__switch:checked { background: var(--violet-ui); }
.consent__switch:checked::before { transform: translateX(18px); }
.consent__switch:active::before { width: 24px; }
.consent__switch:checked:active::before { transform: translateX(14px); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent__actions .btn { min-height: 46px; padding: 10px 14px; }
.btn--outline.btn--block { border-color: var(--rule); }
@media (hover: hover) and (pointer: fine) {
  .consent__manage:hover { color: var(--ink); }
  .consent__close:hover { background: var(--sweep); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__line { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --masthead-h: 64px; }
  .nav, .masthead__cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 4px 0 12px; font-size: .9375rem; font-weight: 600;
  }
  .menu-toggle__bars { position: relative; width: 22px; height: 12px; }
  .menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
  .menu-toggle__bars span:first-child { top: 0; }
  .menu-toggle__bars span:last-child { bottom: 0; width: 70%; left: 30%; }
  .statement__grid, .services__head, .work__head, .about__grid, .philosophy, .process__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__media { aspect-ratio: 4 / 3; }
  .process__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .about__media { order: -1; }
  .clients__head, .journal__head { grid-template-columns: minmax(0, 1fr) auto; }
  .clients__head p, .journal__head p { grid-column: 1; }
  .clients__head .marquee-toggle, .journal__head .link { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .work__identities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__identities .piece:nth-child(even) { margin-top: clamp(40px, 8vw, 80px); }
  .voices__grid, .posts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero {
    min-height: 0; align-content: start;
    padding-top: calc(var(--masthead-h) + 32px); padding-bottom: 0;
  }
  .hero__content { padding-bottom: 0; }
  .hero__media { position: relative; inset: auto; order: 2; z-index: 0; margin-top: 36px; aspect-ratio: 4 / 5; }
  .hero__media img { object-position: 84% 50%; }
  .hero__foot { order: 3; padding-block: 14px; font-size: .8125rem; }
  .hero { display: flex; flex-direction: column; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .facts__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .service { grid-template-columns: 44px minmax(0, 1fr); }
  .service__icon { width: 44px; height: 44px; }
  .service__detail { grid-column: 1 / -1; }
  .services__body { --rail: 36px; }
  .work__identities { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; scrollbar-width: none; }
  .work__identities::-webkit-scrollbar { display: none; }
  .work__identities .piece { flex: none; width: 64vw; scroll-snap-align: start; }
  .work__identities .piece:nth-child(even) { margin-top: 0; }
  .work__feeds { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .work__feeds::-webkit-scrollbar { display: none; }
  .work__feeds-track { transform: none !important; }
  .piece--feed { width: 64vw; scroll-snap-align: start; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { min-height: 0; align-items: start; padding-top: clamp(72px, 18vw, 120px); padding-bottom: 72vw; }
  .cta__media img { object-position: 80% 100%; top: auto; bottom: -6%; height: 70%; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
  .cta__contact { display: grid; }
  .clients__head .marquee-toggle { grid-row: auto; grid-column: 1; justify-self: start; }
}

@media (max-width: 600px) {
  .consent { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; padding: 18px 20px 20px; transform: translateY(calc(100% + 24px)); transform-origin: 50% 100%; }
  .consent.is-leaving { transform: translateY(calc(100% + 24px)); }
}

/* reduced motion: gentler, not zero. Fades stay; nothing travels */
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open { transition: opacity .3s, visibility 0s linear .3s; clip-path: none; opacity: 0; }
  .menu.is-open { opacity: 1; transition: opacity .3s, visibility 0s; }
  .menu__nav li { transform: none !important; }
  .consent, .consent :is(.consent__head, .consent__text, .consent__manage, .consent__actions, .consent__star, .consent__row, .consent__save) { transform: none !important; }
  .piece__frame img { transition: none; }
}
