/* ==========================================================================
   Nexora Social v2: "In frame"
   Everything Nexora makes lands in a frame: a 1:1 post, a 4:5 feed image, a 9:16 story.
   Images sit in true publishing ratios, corner marks show intention, and the Lebanese
   triple-arched window is used twice. See v2/design-direction.md.
   ========================================================================== */

:root {
  --violet: #B343F8;        /* the logo's "ne"; decorative frames only */
  --violet-field: #8A2BE2;  /* flood sections and violet buttons, white text at 6:1 */
  --violet-ink: #7A1FC9;    /* violet text and links at body size */
  --lilac: #D8B4FE;         /* links on Aubergine */
  --ink: #231F20;           /* text and the logo's "xora" */
  --aubergine: #2A0F45;     /* dark sections */
  --aubergine-2: #3A1860;
  --mist: #EDEFF2;          /* page ground: a screen at rest */
  --white: #FFFFFF;
  --guide: #B9BEC8;         /* marks and hairlines only, never text */
  --slate: #4F5563;         /* secondary text */
  --sun: #FFC83D;           /* one highlight: ratio tags, the live dot, selection */

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1400px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 176px);
  --gap: 4px;               /* the feed's gutter */
  --masthead-h: 72px;

  --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; background: var(--mist); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
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(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 3px; }
.work :focus-visible, .cta :focus-visible, .footer :focus-visible, .menu :focus-visible, .loader :focus-visible { outline-color: var(--sun); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .9; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
h3 { font-size: 1.625rem; line-height: 1; letter-spacing: 0; }
.lede { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--slate); max-width: 34em; }
.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: 500; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ---------- the frame kit: corner marks and ratio tags ---------- */
.marks {
  --c: var(--mark, var(--guide)); --l: 16px; --t: 1.5px; --o: 8px;
  position: absolute; inset: calc(var(--o) * -1); pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--l) no-repeat;
  transition: inset .55s var(--ease-out), opacity .4s var(--ease-out);
}
.ratio {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 7px 2px; border-radius: 2px;
  background: var(--sun); color: var(--ink);
  font: 700 .75rem/1.3 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.frame { position: relative; }
.frame__img { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 5); background: #DADDE3; }
.frame__img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.frame figcaption { margin-top: 14px; font-size: .9375rem; }
.frame figcaption strong { font-weight: 700; margin-right: 6px; }
/* images open from their marks, once */
.has-motion [data-crop] .frame__img { clip-path: inset(7%); }
.has-motion [data-crop] .marks { opacity: 0; inset: -28px; }
.has-motion [data-crop].is-in .frame__img { clip-path: inset(0); transition: clip-path 1.2s var(--ease-out); }
.has-motion [data-crop].is-in .marks { opacity: 1; inset: calc(var(--o) * -1); transition: inset .9s var(--ease-out) .25s, opacity .5s var(--ease-out) .25s; }

.icon { display: block; width: 52px; height: 52px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon--identity { --icon: url(../icons/identity.svg); }
.icon--marketing { --icon: url(../icons/marketing.svg); }
.icon--advertising { --icon: url(../icons/advertising.svg); }
.icon--photo-video { --icon: url(../icons/photo-video.svg); }
.icon--web-app { --icon: url(../icons/web-app.svg); }
.icon--business { --icon: url(../icons/business.svg); }
.icon--strategy { --icon: url(../icons/strategy.svg); }
.icon--partnership { --icon: url(../icons/partnership.svg); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 3px;
  font: 700 1rem/1.1 var(--body); letter-spacing: .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 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--violet { background: var(--violet-field); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn--violet:hover { background: var(--violet-ink); }
  .btn--sun:hover { background: #FFD76E; }
  .btn--ink:hover { background: #000; }
  .btn--line:hover { background: var(--ink); color: #fff; }
  .btn--line-light:hover { background: #fff; color: var(--violet-field); border-color: #fff; }
}
.link { font-weight: 700; color: var(--violet-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--sun); } }

.flag { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 2px; font-size: .75rem; font-weight: 700; line-height: 1.6; vertical-align: 1px; }

/* ---------- concept note ---------- */
.concept-note { position: relative; z-index: 101; padding: 8px var(--gutter); background: var(--sun); color: var(--ink); font-size: .875rem; line-height: 1.4; text-align: center; }
.concept-note a { font-weight: 700; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 100; height: var(--masthead-h); background: var(--white); box-shadow: 0 1px 0 rgba(35, 31, 32, .08); transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .45s var(--ease-drawer); }
.masthead.is-scrolled { box-shadow: 0 1px 0 rgba(35, 31, 32, .12); }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.masthead__logo { flex: none; display: block; }
.masthead__logo img { width: clamp(112px, 9vw, 128px); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__list a { position: relative; display: block; padding: 8px 2px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
/* the current section gets framed, small */
.nav__list a::before, .nav__list a::after { content: ""; position: absolute; width: 6px; height: 6px; border: 1.5px solid var(--violet-ink); opacity: 0; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
.nav__list a::before { left: -6px; top: 2px; border-right: 0; border-bottom: 0; transform: translate(-3px, -3px); }
.nav__list a::after { right: -6px; bottom: 2px; border-left: 0; border-top: 0; transform: translate(3px, 3px); }
.nav__list a.is-current::before, .nav__list a.is-current::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .nav__list a:hover::before, .nav__list a:hover::after { opacity: 1; transform: none; } }
.menu-toggle { display: none; }

/* ---------- menu (phones) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column;
  background: var(--aubergine) url(../img/tex-aubergine.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: 112px; }
.menu__close { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu__close span, .menu__close span::before { position: absolute; left: 12px; top: 21px; width: 20px; height: 2px; background: #fff; 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 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; font: 800 clamp(3rem, 15vw, 5rem)/1 var(--display); text-decoration: none; }
.menu__foot { display: grid; gap: 18px; padding-bottom: max(28px, env(safe-area-inset-bottom)); color: #CFC3DD; font-size: .9375rem; }
.menu__foot a { color: #fff; text-decoration: none; }

/* ---------- loader: a frame steps through the formats, then becomes the screen ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 400; display: block; overflow: hidden; animation: loader-failsafe .4s 9s forwards; }
.is-static .loader { display: none; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__frame {
  --fh: min(52vh, 460px);
  position: absolute; left: 50%; top: 50%;
  width: var(--fh); height: var(--fh);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 200vmax var(--aubergine);
}
.loader__frame .marks { --mark: #fff; --o: 12px; --l: 22px; --t: 2px; }
.loader__logo { position: absolute; left: 50%; top: calc(50% - min(26vh, 230px) - 64px); width: 132px; transform: translateX(-50%); }
.loader__ratio { position: absolute; left: 50%; top: calc(50% + min(26vh, 230px) + 26px); transform: translateX(-50%); overflow: hidden; height: 1.5em; color: #fff; font: 700 1rem/1.5 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.loader__ratio span { display: block; }
body.is-loading { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-content: end;
  /* the masthead is a solid bar, so the hero fills the rest of the first screen */
  min-height: max(600px, calc(100svh - var(--masthead-h) - 36px));
  padding: 48px 0 clamp(40px, 7vh, 88px);
  background: #E8DECD;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__layer { position: absolute; left: 0; right: 0; top: -3%; height: 106%; will-change: transform; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 0%; }
.arches { position: absolute; inset: 0; pointer-events: none; }
.arch { position: absolute; }
.arch .marks { --mark: rgba(255, 255, 255, .95); --o: 10px; --l: 20px; --t: 2px; }
.has-motion .arch .marks { opacity: 0; inset: -46px; }
.has-motion .arches.is-in .arch .marks { opacity: 1; inset: -10px; transition: inset 1s var(--ease-out) calc(var(--i) * .14s), opacity .5s var(--ease-out) calc(var(--i) * .14s); }
.hero__content { max-width: calc(var(--wrap) + var(--gutter) * 2); }
/* sized and broken to stay on the plain wall, left of the arches */
.hero__title { font-size: clamp(3.75rem, 7.4vw, 8.25rem); line-height: .84; letter-spacing: -0.01em; }
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line > span { display: block; }
.hero__lede { margin-top: clamp(20px, 2.4vw, 28px); max-width: min(28em, 40vw); font-size: clamp(1.0625rem, 1.25vw, 1.2rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.8vw, 32px); }

/* ---------- profile ---------- */
.profile { background: var(--white); padding-block: clamp(28px, 3.5vw, 44px) clamp(18px, 2vw, 24px); }
.profile__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.profile__id { display: flex; align-items: center; gap: 18px; }
.profile__avatar { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--violet); }
.profile__avatar img { width: 44px; }
.profile__id p { display: grid; gap: 2px; line-height: 1.35; }
.profile__id strong { font-weight: 700; }
.profile__id span { color: var(--slate); font-size: .9375rem; }
.profile__stats { display: grid; grid-template-columns: repeat(4, auto); align-items: start; gap: 8px clamp(24px, 4vw, 64px); }
.profile__stats div { display: flex; flex-direction: column-reverse; }
.profile__stats dd { font: 800 clamp(2.25rem, 3.6vw, 3.25rem)/1 var(--display); }
.profile__stats dt { color: var(--slate); font-size: .875rem; line-height: 1.3; max-width: 12em; }
.profile__note { margin-top: 18px; color: var(--slate); font-size: .8125rem; }

/* ---------- statement ---------- */
.statement { position: relative; padding-block: var(--section) clamp(56px, 7vw, 112px); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.statement__title { font-size: clamp(3rem, 7vw, 6.75rem); line-height: .88; max-width: 7.5em; }
.statement__text .lede { margin-top: 28px; }
.statement__media { --ar: 4 / 5; }

/* ---------- floating mat-board frames ---------- */
.float { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 22px 22px rgba(42, 15, 69, .2)); }
.float--mat-a { width: clamp(90px, 9vw, 150px); left: clamp(8px, 3vw, 48px); bottom: 2%; }
.float--mat-b { width: clamp(80px, 8vw, 132px); right: clamp(8px, 4vw, 64px); top: 6%; }

/* ---------- services: the profile grid ---------- */
.services { padding-block: clamp(48px, 6vw, 96px) var(--section); }
.services__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 6vw, 112px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.services__head h2 { max-width: 4.85em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  aspect-ratio: 4 / 5; padding: clamp(24px, 2.6vw, 40px);
  background: var(--white);
}
.tile .icon { color: var(--ink); }
.tile h3 { font-size: clamp(1.875rem, 2.6vw, 2.5rem); margin-top: clamp(40px, 5vw, 88px); }
.tile p { color: var(--slate); font-size: 1rem; line-height: 1.55; }
.tile .marks { --o: -14px; --mark: var(--violet-ink); opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .tile .icon { transition: color .4s var(--ease-out); }
  .tile:hover .marks { opacity: 1; --o: -10px; }
  .tile:hover .icon { color: var(--violet-ink); }
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border: 1px solid #D5D8DE; border-radius: 2px; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.services__note { margin-top: clamp(40px, 5vw, 72px); max-width: 26em; font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 500; line-height: 1.3; }

/* ---------- work ---------- */
.work { position: relative; padding-block: var(--section); background: var(--aubergine) url(../img/tex-aubergine.jpg) repeat; background-size: 512px; color: #F5F0FA; overflow: hidden; }
.work .lede { color: #CFC3DD; }
.work .link { color: var(--lilac); }
.work__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 6vw, 112px); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }

.player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.player__stage { position: relative; }
.player__frame { position: relative; height: min(76vh, 720px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: #160822; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.player__stage .ratio { top: auto; bottom: -32px; left: 0; }
.player__bars { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.player__bars li { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.player__bars span { display: block; height: 100%; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.player__slides li { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease-out); }
.player__slides li.is-current { opacity: 1; }
.player__slides img { width: 100%; height: 100%; object-fit: cover; }
.player__hit { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; }
.player__hit--prev { left: 0; cursor: w-resize; }
.player__hit--next { right: 0; cursor: e-resize; }
.player__hit:focus-visible { outline-offset: -6px; }
.player__list { display: grid; border-top: 1px solid rgba(255, 255, 255, .16); }
.player__list button { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); text-align: left; color: #9C8BB0; transition: color .3s var(--ease-out); }
.player__list strong { font: 800 clamp(2rem, 4vw, 3.5rem)/1 var(--display); }
.player__list span { font-size: .875rem; }
.player__list button[aria-current="true"] { color: #fff; }
.player__list button[aria-current="true"] span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--sun); vertical-align: 1px; }
@media (hover: hover) and (pointer: fine) { .player__list button:hover { color: #fff; } }
.player__controls { display: flex; gap: 8px; margin-top: 28px; }
.player__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 3px; font-size: .9375rem; font-weight: 700; transition: border-color .25s, background-color .25s, color .25s, transform 160ms var(--ease-out); }
.player__btn svg { width: 16px; height: 16px; }
.player__btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .player__btn:hover { border-color: #fff; background: #fff; color: var(--aubergine); } }
.player__pause-icon { position: relative; width: 10px; height: 12px; }
.player__pause-icon::before, .player__pause-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.player__pause-icon::before { left: 0; }
.player__pause-icon::after { right: 0; }
.player__btn[aria-pressed="true"] .player__pause-icon::before { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.player__btn[aria-pressed="true"] .player__pause-icon::after { display: none; }

.feeds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(88px, 10vw, 160px); }
.frame--feed { --ar: 3 / 4; --mark: rgba(255, 255, 255, .5); }
.frame--feed .frame__img img { top: 0; height: 100%; }
.frame--feed figcaption { color: #CFC3DD; }
.frame--feed figcaption strong { color: #fff; display: block; }
.work__more { margin-top: clamp(40px, 5vw, 64px); }
/* the viewfinder: on desktop the marks snap to the image under the pointer */
@media (hover: hover) and (pointer: fine) {
  .frame--feed .marks { transition: inset .45s var(--ease-out), opacity .3s; }
  .feeds:hover .frame--feed .marks { opacity: .25; }
  .feeds .frame--feed:hover .marks { --mark: var(--sun); opacity: 1; inset: -4px; }
}

/* ---------- clients: a contact sheet ---------- */
.clients { padding-block: var(--section) clamp(72px, 9vw, 128px); }
.clients__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(32px, 6vw, 112px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.clients__head p { color: var(--slate); }
.sheet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.sheet li { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--white); }
.sheet img { height: calc(clamp(30px, 3.2vw, 46px) * var(--h, 1)); width: auto; max-width: 74%; object-fit: contain; }
.sheet .marks { --o: -12px; --mark: var(--violet-ink); --l: 12px; opacity: 0; }
@media (hover: hover) and (pointer: fine) { .sheet li:hover .marks { opacity: 1; --o: -8px; } }

/* ---------- process ---------- */
.process { padding-bottom: var(--section); }
.process__media { --ar: 21 / 9; width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); margin-inline: auto; }
.process__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 6vw, 112px); align-items: end; margin-top: clamp(56px, 7vw, 104px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.step { padding-top: 18px; border-top: 2px solid var(--ink); }
.step__num { display: block; font: 800 clamp(3rem, 5vw, 4.5rem)/1 var(--display); color: var(--violet-ink); }
.step h3 { margin-top: 18px; }
.step p { margin-top: 10px; color: var(--slate); font-size: 1rem; }

/* ---------- about ---------- */
.about { padding-block: var(--section); background: var(--white); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 128px); align-items: center; }
.about__media { --ar: 4 / 5; }
.about__text h2 { max-width: 6em; }
.about__text .lede { margin-top: 28px; color: var(--ink); }
.about__text p + p { margin-top: 18px; color: var(--slate); max-width: 34em; }
.philosophy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 112px); align-items: end; margin-top: clamp(80px, 10vw, 160px); }
.philosophy__lead { font: 800 clamp(3rem, 6.4vw, 6rem)/.88 var(--display); max-width: 8em; }
.philosophy__body { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--slate); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 7vw, 96px); background: var(--mist); border: var(--gap) solid var(--mist); }
.value { padding: clamp(24px, 2.4vw, 36px); background: var(--white); }
.value .icon { width: 44px; height: 44px; color: var(--violet-ink); }
.value h3 { margin-top: 28px; font-size: 1.75rem; }
.value p { margin-top: 10px; color: var(--slate); font-size: 1rem; }

/* ---------- voices: quote posts ---------- */
.voices { padding-block: var(--section); }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(36px, 4.5vw, 64px); }
.qpost { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; aspect-ratio: 1 / 1; padding: clamp(28px, 3.4vw, 56px); background: var(--white); }
.qpost::before { content: "\201C"; font: 800 6rem/.6 var(--display); color: var(--violet-ink); height: .4em; }
.qpost blockquote p { font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.qpost--ink { background: var(--ink); color: #fff; }
.qpost--ink::before { color: var(--sun); }
.qpost--ink blockquote p { font-size: clamp(1.125rem, 1.5vw, 1.4rem); }
.qpost--sun { background: var(--sun); }
.qpost--sun::before { color: var(--ink); }
.qpost figcaption { display: grid; gap: 2px; font-size: .9375rem; }
.qpost figcaption strong { font-weight: 700; }
.qpost figcaption span { opacity: .78; }

/* ---------- journal ---------- */
.journal { padding-bottom: 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(32px, 4vw, 56px); }
.journal__head p { color: var(--slate); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; aspect-ratio: 4 / 5; padding: clamp(24px, 2.6vw, 40px); background: var(--white); text-decoration: none; }
.card .icon { width: 44px; height: 44px; color: var(--ink); margin-bottom: auto; }
.card time { color: var(--slate); font-size: .875rem; }
.card__title { font: 800 clamp(1.75rem, 2.5vw, 2.375rem)/1 var(--display); }
.card .marks { --o: -14px; --mark: var(--violet-ink); opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card a:hover .marks { opacity: 1; --o: -10px; }
  .card a:hover .icon { color: var(--violet-ink); }
}

/* ---------- closing call to action ---------- */
.cta { position: relative; overflow: hidden; padding-block: var(--section); background: var(--violet-field); color: #fff; }
.cta .lede { color: #F3E8FF; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: end; }
.cta h2 { font-size: clamp(4rem, 10vw, 10rem); line-height: .84; max-width: 5em; }
.cta .lede { margin-top: 28px; max-width: 28em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.cta__contact dt { font-size: .875rem; color: #F3E8FF; }
.cta__contact dd a { font-size: 1.125rem; font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cta__contact dd a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: end; }
.triptych .frame { --mark: rgba(255, 255, 255, .8); }
.triptych__a { --ar: 9 / 16; }
.triptych__b { --ar: 1 / 1; }
.triptych__c { --ar: 4 / 5; }
.triptych .frame__img img { top: 0; height: 100%; }
.triptych__c .frame__img img { object-position: 72% 50%; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding-top: clamp(64px, 8vw, 112px); }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px clamp(24px, 3vw, 48px); }
.footer__brand img { width: 150px; }
.footer__brand p { margin-top: 22px; max-width: 18em; font-size: 1.25rem; line-height: 1.35; }
.footer__col h2 { margin-bottom: 14px; font: 700 .875rem/1.4 var(--body); color: #B5AFB2; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { font-size: .9375rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--sun); } }
.footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-top: clamp(56px, 7vw, 104px); padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: #B5AFB2; }
.footer__legal a, .footer__cookie { color: #fff; }
.footer__cookie { text-decoration: underline; text-underline-offset: 3px; font-size: .8125rem; }
.footer__concept { flex-basis: 100%; max-width: 70em; }

/* reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.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: 4px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(35, 31, 32, .1), 0 28px 56px -24px rgba(42, 15, 69, .45); 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; }
.consent__star { flex: none; width: 28px; 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: 800 1.625rem/1 var(--display); }
.consent__title:focus { outline: none; }
.consent__close { display: none; position: relative; flex: none; width: 36px; height: 36px; margin: -6px -10px -6px auto; color: var(--slate); }
.consent.can-dismiss .consent__close { display: block; }
.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(--slate); }
.consent__text a { color: var(--violet-ink); }
.consent__manage { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 0; font-size: .9375rem; font-weight: 700; color: var(--violet-ink); }
.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 #E1E3E8; }
.consent__label { font-size: 1rem; font-weight: 700; }
label.consent__label { cursor: pointer; }
.consent__row p { grid-column: 1 / -1; font-size: .875rem; line-height: 1.5; color: var(--slate); }
.consent__always { font-size: .875rem; font-weight: 700; color: var(--violet-ink); }
.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: #C7CBD3; 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(0, 0, 0, .25); transition: transform 220ms var(--ease-out), width 160ms var(--ease-out); }
.consent__switch:checked { background: var(--violet-field); }
.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; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feeds .frame:nth-child(n+4) { display: none; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .profile__stats { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 960px) {
  :root { --masthead-h: 64px; }
  .nav, .masthead__cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1.5px solid currentColor; border-radius: 3px; font-size: .9375rem; font-weight: 700; }
  .statement__grid, .services__head, .work__head, .about__grid, .philosophy, .process__head, .clients__head, .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .player { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .player__side { width: 100%; }
  .player__frame { height: min(72vh, 620px); }
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts-grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .qpost, .card a { aspect-ratio: auto; min-height: 320px; }
  .journal__head { grid-template-columns: minmax(0, 1fr) auto; }
  .journal__head p { grid-column: 1; }
  .journal__head .link { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 28px 0 0; background: #EFE7D9; }
  .hero__lede { max-width: 34em; }
  .hero__content { order: 1; }
  .hero__media { position: relative; inset: auto; order: 2; z-index: 0; margin-top: 32px; aspect-ratio: 4 / 5; }
  .hero__layer img { object-position: 74% 50%; }
  .hero__title { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: auto; }
  .tile h3 { margin-top: 32px; }
  .feeds { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; scrollbar-width: none; }
  .feeds::-webkit-scrollbar { display: none; }
  .feeds .frame { flex: none; width: 68vw; scroll-snap-align: start; }
  .feeds .frame:nth-child(n+4) { display: block; }
  .profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .values { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .triptych { gap: 8px; }
  .float { display: none; }
  .player__list strong { font-size: 2rem; }
  .cta__contact { display: grid; }
}

@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)); }
}

@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; }
  .player__slides li { transition: opacity .2s; }
}
