/* =====================================================================
   YNS — Web Development Agency, Athens
   Layout concept: a marble-white editorial grid cut by ink "plates";
   every edge, wipe and button borrows the two slants of the YNS mark
   (the 47.8° bars and the 28.6° chevrons). Clay is reserved for signal
   moments: availability, the Agencies key, focus and hover.
   ===================================================================== */

:root {
  /* Color */
  --paper: #F0F1EE;          /* cool marble white */
  --paper-2: #E4E6E1;        /* recessed paper */
  --ink: #0E0E0D;            /* the mark's black */
  --ink-2: #1B1B19;          /* raised ink */
  --clay: #E8642C;           /* signal: Attic clay */
  --clay-deep: #C24E1C;
  --stone: #63645D;          /* muted text on paper */
  --ash: #9C9D96;            /* muted text on ink */
  --line: rgba(14, 14, 13, .14);
  --line-inv: rgba(240, 241, 238, .16);

  /* Type */
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-mega: clamp(2.8rem, min(11.4vw, 15svh), 12.5rem);
  --t-xl: clamp(2.6rem, 7.4vw, 7rem);
  --t-l: clamp(2rem, 4.4vw, 4rem);
  --t-m: clamp(1.35rem, 2.3vw, 2rem);
  --t-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-small: .875rem;
  --t-micro: .6875rem;

  /* Space & shape */
  --gutter: clamp(16px, 4.2vw, 64px);
  --section: clamp(96px, 13vw, 200px);
  --slant: 28.6deg;          /* chevron angle of the mark */
  --bar: 47.8deg;            /* bar angle of the mark */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 76px;

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { /* paints the band above a sticky header on phones */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }
::selection { background: var(--clay); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--clay); color: var(--ink);
  padding: 10px 16px; font-family: var(--f-mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em;
  transition: top .2s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" var(--wd, 100);
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .86;
}
.muted { color: var(--stone); }
.plate { background: var(--ink); color: var(--paper); }
.plate .muted { color: var(--ash); }
.clay-plate { background: var(--clay); color: var(--ink); }
.clay-plate .muted { color: rgba(14,14,13,.72); }

/* split text helpers (built by core.js) */
.split .w { display: inline-block; white-space: nowrap; }
.split .c { display: inline-block; font-variation-settings: "wdth" var(--wd, 100); will-change: transform; }
.mask-line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.mask-line > span { display: block; }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --fill: var(--clay); --fg-hover: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 30px 0 34px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transition: color .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0 -30px; z-index: -1; background: var(--fill);
  transform: translateX(-105%) skewX(calc(var(--slant) * -1));
  transition: transform .55s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--fg-hover); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(calc(var(--slant) * -1)); }
.btn--clay { --bg: var(--clay); --fg: var(--ink); --fill: var(--ink); --fg-hover: var(--paper); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); --fill: var(--clay); --fg-hover: var(--ink); }
.btn--soft { --bg: var(--paper-2); --fg: var(--ink); --fill: var(--ink); --fg-hover: var(--paper); }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.link-u:hover::after, .link-u:focus-visible::after { transform-origin: left; transform: scaleX(1); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
  transition: transform .6s var(--ease-out), background-color .4s, color .4s, box-shadow .4s;
}
.hdr.is-scrolled { background: rgba(240, 241, 238, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr.is-dark { color: var(--paper); }
.hdr.is-dark.is-scrolled { background: rgba(14, 14, 13, .82); box-shadow: 0 1px 0 var(--line-inv); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr__inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); height: var(--hdr-h); }
.hdr__logo { display: block; flex: none; }
.hdr__logo svg { height: 28px; width: auto; }
.hdr__logo .mk { transition: transform .6s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.hdr__logo:hover .mk-1 { transform: translateX(-6px); }
.hdr__logo:hover .mk-2 { transform: translateX(6px); }
.hdr__logo:hover .mk-3 { transform: translateY(-5px); }
.hdr__logo:hover .mk-4 { transform: translateY(5px); }
.hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr__nav a {
  position: relative; padding: 10px 14px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.hdr__nav a::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--clay);
  transform: scaleX(0) skewX(calc(var(--slant) * -1)); transform-origin: left; transition: transform .45s var(--ease-out);
}
.hdr__nav a:hover::before, .hdr__nav a[aria-current="page"]::before { transform: scaleX(1) skewX(calc(var(--slant) * -1)); }

.avail-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.avail-pill b { font-weight: 600; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--clay); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* the Agencies key: a slanted ink plate with a clay key-slot */
.agency-btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 26px 0 22px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 18px 100%);
  transition: color .4s var(--ease-out);
}
.agency-btn::before {
  content: ""; position: absolute; inset: 0 -20px; z-index: -1; background: var(--clay);
  transform: translateX(-104%) skewX(var(--slant)); transition: transform .55s var(--ease-out);
}
.agency-btn:hover, .agency-btn:focus-visible { color: var(--ink); }
.agency-btn:hover::before, .agency-btn:focus-visible::before { transform: translateX(0) skewX(var(--slant)); }
.agency-btn__slot {
  display: grid; place-items: center; width: 26px; height: 26px; background: var(--clay); color: var(--ink);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  transition: background .4s, color .4s;
}
.agency-btn:hover .agency-btn__slot { background: var(--ink); color: var(--clay); }
.agency-btn__slot svg { width: 13px; height: 13px; transition: transform .6s var(--ease-out); }
.agency-btn:hover .agency-btn__slot svg { transform: rotate(-90deg); }
.hdr.is-dark .agency-btn { --bg: var(--paper); --fg: var(--ink); }

.hdr__burger { display: none; width: 46px; height: 46px; place-items: center; flex: none; }
.hdr__burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.hdr__burger span + span { margin-top: 7px; width: 18px; margin-left: 8px; }
.hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(-28.6deg); }
.hdr__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(28.6deg); width: 26px; margin-left: 0; }

@media (max-width: 1180px) { .hdr .avail-pill { display: none; } }
@media (max-width: 860px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: grid; margin-left: auto; }
  .hdr .agency-btn { height: 42px; padding: 0 18px 0 16px; }
  .hdr .agency-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr .agency-btn { gap: 0; }
}

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  visibility: hidden;
}
.menu.is-open { visibility: visible; }
.menu__links a {
  display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 6rem); line-height: .95; letter-spacing: -.01em;
  font-variation-settings: "wdth" 90; transition: font-variation-settings .5s var(--ease-out), color .3s;
}
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--clay); font-variation-settings: "wdth" 125; }
.menu__foot { display: grid; gap: 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-inv); }
.menu__foot .agency-btn { --bg: var(--clay); --fg: var(--ink); justify-self: start; }
.menu__foot .avail-pill { justify-self: start; }

/* ---------- login modal ---------- */
.login { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); height: 100vh; height: 100dvh; }
.login[hidden] { display: none !important; }
.login__backdrop { position: absolute; inset: 0; background: rgba(14, 14, 13, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.login__panel {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
}
.login__art {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; min-height: 520px;
}
.login__art svg.login__mark { position: absolute; width: 100%; right: -8%; top: 56%; translate: 0 -50%; opacity: 1; }
.login__art svg.login__mark polygon { fill: var(--ink-2); }
.login__art svg.login__mark polygon.lm-clay { fill: var(--clay); }
.login__art-top, .login__art-bottom { position: relative; z-index: 1; }
.login__art h3 { font-family: var(--f-display); font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: .9; text-transform: uppercase; font-variation-settings: "wdth" 112; margin-top: 18px; }
.login__art-bottom { display: grid; gap: 6px; }
.login__form { padding: clamp(28px, 4.4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.login__form h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); text-transform: uppercase; line-height: 1; font-variation-settings: "wdth" 100; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; }
.field input {
  width: 100%; height: 54px; padding: 0 16px; border: 0; border-bottom: 2px solid var(--ink);
  background: var(--paper-2); color: var(--ink); font: inherit; font-size: 1rem; border-radius: 0;
  transition: border-color .3s, background .3s;
}
.field input:focus { outline: none; border-color: var(--clay); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--clay-deep); }
.field .field__err { font-size: .8rem; color: var(--clay-deep); min-height: 1.2em; }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw__toggle { position: absolute; right: 8px; top: 50%; translate: 0 -50%; padding: 8px 10px; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--ink); margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 10px; background: var(--clay); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.btn-login { width: 100%; justify-content: center; margin-top: 4px; }
.btn-login.is-busy { pointer-events: none; }
.btn-login .busy { display: none; gap: 5px; }
.btn-login.is-busy .busy { display: inline-flex; }
.btn-login.is-busy .txt { display: none; }
.busy i { width: 8px; height: 16px; background: currentColor; transform: skewX(-28.6deg); animation: busy 0.9s var(--ease-out) infinite; }
.busy i:nth-child(2) { animation-delay: .12s; } .busy i:nth-child(3) { animation-delay: .24s; }
@keyframes busy { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.login__msg { font-size: .9rem; min-height: 1.4em; color: var(--stone); }
.login__msg.is-note { color: var(--ink); border-left: 3px solid var(--clay); padding-left: 12px; }
.login__close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; z-index: 2;
  color: var(--ink);
}
.login__close svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.login__close:hover svg { transform: rotate(90deg); }
@media (max-width: 760px) {
  .login__panel { grid-template-columns: 1fr; width: min(460px, 100%); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
  .login__art { min-height: 0; padding: 18px 20px; }
  .login__art svg.login__mark { width: 58%; right: -12%; top: 50%; }
  .login__art h3 { font-size: clamp(1.6rem, 8vw, 2.2rem); margin-top: 8px; }
  .login__art-bottom { display: none; }
  .login__form { padding: 22px 20px 20px; gap: 12px; }
  .login__form h2 { font-size: 1.6rem; }
  .field { gap: 6px; }
  .field input { height: 48px; font-size: 16px; }
  .field .field__err:empty { min-height: 0; }
  .login__msg:empty { min-height: 0; }
  .login__close { top: 6px; right: 8px; color: var(--paper); }
}
@media (max-width: 760px) and (max-height: 640px) {
  .login__art { padding: 12px 20px; }
  .login__art .label { display: none; }
  .login__art h3 { margin-top: 0; font-size: 1.5rem; }
  .login__form { padding-top: 16px; gap: 10px; }
}

/* ---------- page curtain (transitions) ---------- */
.curtain { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; visibility: hidden; }
.curtain.is-active { visibility: visible; pointer-events: auto; }
.curtain i { position: absolute; top: 0; height: 100%; left: -80%; width: 260%; background: var(--ink); }
.curtain i:nth-child(2) { background: var(--clay); }
.curtain i:nth-child(3) { background: var(--ink-2); }
html.is-arriving body::after { content: ""; position: fixed; inset: 0; z-index: 109; background: var(--ink); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--clay);
  display: grid; place-items: center; opacity: 0;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor__label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .25s; }
.cursor.is-hover .cursor__label { opacity: 1; }
html.touch .cursor, html.reduced .cursor { display: none; }

/* ---------- availability: split-flap ---------- */
.flap { display: inline-flex; gap: .08em; font-family: var(--f-mono); font-weight: 600; line-height: 1; perspective: 600px; }
.flap .gap { width: .32em; }
.fc {
  --fc-bg: var(--ink); --fc-fg: var(--paper);
  position: relative; display: inline-block; width: .9em; height: 1.34em; border-radius: .08em;
  background: var(--fc-bg); color: var(--fc-fg); text-align: center;
}
.fc > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--fc-bg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc > span > b { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-weight: 600; }
.fc .t, .fc .ft { top: 0; border-radius: .08em .08em 0 0; }
.fc .b, .fc .fb { bottom: 0; border-radius: 0 0 .08em .08em; }
.fc .t > b, .fc .ft > b { top: 0; }
.fc .b > b, .fc .fb > b { bottom: 0; }
.fc .ft { transform-origin: 50% 100%; z-index: 2; }
.fc .fb { transform-origin: 50% 0; z-index: 2; transform: rotateX(90deg); }
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); z-index: 3; }
.flap--clay .fc { --fc-bg: var(--clay); --fc-fg: var(--ink); }
.flap--paper .fc { --fc-bg: var(--paper); --fc-fg: var(--ink); }
.flap--paper .fc::after { background: rgba(14,14,13,.25); }

/* ---------- reveal defaults ---------- */
.reduced [data-reveal], .no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   HOME
   ===================================================================== */
.hero {
  position: relative; min-height: max(520px, 100svh); overflow: hidden; background: var(--paper);
  padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
}
.hero__inner { position: relative; box-sizing: border-box; min-height: calc(max(520px, 100svh) - var(--hdr-h) - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(20px, 3vw, 40px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--stone); }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__title { font-size: var(--t-mega); margin-block: clamp(14px, 3.2svh, 56px); position: relative; color: var(--paper); mix-blend-mode: difference; }
.hero__title .ln { display: block; white-space: nowrap; }
.hero__title .ln-2 { padding-left: clamp(0px, 10vw, 220px); }
.hero__title .ln-3 { color: transparent; -webkit-text-stroke: clamp(1.5px, .22vw, 3px) var(--paper); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero__lede { max-width: 34ch; font-size: clamp(1.05rem, 1.25vw, 1.25rem); line-height: 1.5; }
.hero__lede strong { font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-avail { display: grid; gap: 12px; justify-items: end; text-align: right; }
.hero-avail .flap { font-size: clamp(1.4rem, 2.6vw, 2.5rem); }
.hero-avail__sub { display: flex; gap: 10px; align-items: center; }
.hero__mark {
  position: absolute; right: max(-2vw, -40px); top: 50%; width: min(54vw, 840px); translate: 0 -46%;
  pointer-events: none;
}
.hero__mark polygon { fill: var(--ink); }
.hero__mark .mk-3 { fill: var(--clay); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; z-index: 3; display: grid; justify-items: center; gap: 10px; translate: -50% 0; color: var(--stone); }
.hero__scroll i { display: block; width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease-out) infinite; }
@keyframes drip { to { top: 100%; } }
.hero__plate { position: absolute; inset: 0; z-index: 4; background: var(--ink); clip-path: polygon(0 0, 0 0, 0 0, 0 0); pointer-events: none; }
@media (max-width: 900px) {
  .hero__mark { width: 92vw; right: -30vw; top: 38%; opacity: .95; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero-avail { justify-items: start; text-align: left; }
  .hero__title .ln-2 { padding-left: 0; }
  .hero__scroll { display: none; }
}

/* manifesto */
.manifesto { padding-block: var(--section); position: relative; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.9vw, 4.8rem); line-height: 1.02;
  letter-spacing: -.02em; font-variation-settings: "wdth" 88; max-width: 25ch;
}
.manifesto__text .w { opacity: .18; transition: none; }
.manifesto__text em { font-style: normal; color: var(--clay); }
.manifesto__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line-inv); padding-top: 28px; }
.fact b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; font-variation-settings: "wdth" 70; margin-top: 10px; }
.reduced .manifesto__text .w, .no-js .manifesto__text .w { opacity: 1; }
@media (max-width: 640px) { .manifesto__facts { grid-template-columns: 1fr; } }

/* services rail (horizontal) */
.rail { position: relative; overflow: hidden; }
.rail__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hdr-h) + 24px) 40px; }
.rail__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); width: max-content; will-change: transform; }
.rail__intro { width: min(84vw, 520px); flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-right: 24px; }
.rail__intro h2 { font-family: var(--f-display); font-size: var(--t-xl); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.svc-card {
  position: relative; flex: none; width: min(78vw, 380px); min-height: min(64svh, 540px);
  background: var(--paper); color: var(--ink); padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 16px;
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
  transition: background .5s var(--ease-out), color .5s var(--ease-out);
}
.svc-card:hover { background: var(--ink); color: var(--paper); }
.svc-card:hover .svc-ico { color: var(--paper); }
.svc-card__top { display: flex; justify-content: space-between; align-items: baseline; }
.svc-ico { width: 100%; aspect-ratio: 4 / 3; color: var(--ink); margin-top: auto; }
.svc-card h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: .95; text-transform: uppercase; font-variation-settings: "wdth" 85; transition: font-variation-settings .6s var(--ease-out); }
.svc-card:hover h3 { font-variation-settings: "wdth" 115; }
.svc-card p { font-size: .98rem; line-height: 1.5; }
.rail__progress { margin-top: 36px; height: 2px; background: rgba(14,14,13,.2); position: relative; }
.rail__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.reduced .rail, .no-js .rail { overflow-x: auto; }
@media (max-width: 899px) {
  .rail__pin { min-height: 0; padding-block: var(--section); }
  .rail__track { width: auto; flex-direction: column; }
  .rail__intro, .svc-card { width: 100%; }
  .svc-card { min-height: 0; }
  .svc-ico { max-width: 360px; }
  .rail__progress { display: none; }
}

/* dealt cards (selected work) */
.dealt { position: relative; overflow: hidden; }
.dealt__pin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(var(--hdr-h) + 16px) 36px; }
.dealt__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.dealt__head h2 { font-family: var(--f-display); font-size: var(--t-xl); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 110; }
.dealt__stage { position: relative; min-height: 54svh; }
.deal {
  position: absolute; left: 50%; top: 50%; width: min(46vw, 640px); translate: -50% -50%;
  background: var(--paper); box-shadow: 0 30px 80px -30px rgba(14,14,13,.45); border: 1px solid var(--line);
}
.deal__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; }
.deal__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-2); }
.deal__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: .6rem; color: var(--stone); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.deal__cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 899px) {
  .dealt__pin { min-height: 0; padding-block: var(--section); }
  .dealt__stage { display: grid; gap: 20px; min-height: 0; margin-top: 36px; }
  .deal { position: relative; left: auto; top: auto; translate: none; width: 100%; }
  .deal:nth-child(n+4) { display: none; }
}

.reduced .dealt__pin, .no-js .dealt__pin { min-height: 0; padding-block: var(--section); }
.reduced .dealt__stage, .no-js .dealt__stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; min-height: 0; margin-top: 40px; }
.reduced .deal, .no-js .deal { position: relative; left: auto; top: auto; translate: none; width: 100%; }

/* velocity marquee */
.marquee { padding-block: clamp(40px, 6vw, 80px); overflow: hidden; border-block: 1px solid var(--line); }
.marquee__row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__row span {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.05;
  font-variation-settings: "wdth" 72; padding-right: .5em;
}
.marquee__row span::after { content: ""; display: inline-block; width: .28em; height: .5em; margin-left: .5em; background: var(--clay); transform: skewX(-28.6deg); vertical-align: .14em; }
.marquee__row--outline span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-variation-settings: "wdth" 120; }
.marquee__row--outline span::after { background: var(--ink); }

/* partners */
.partners { padding-block: var(--section); }
.partners__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.partners__head h2 { font-family: var(--f-display); font-size: var(--t-l); line-height: .95; text-transform: uppercase; font-variation-settings: "wdth" 90; }
.partners__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 150px; padding: 18px 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out);
}
.partner::before { content: ""; position: absolute; inset: 0 -40px; z-index: -1; background: var(--ink); transform: translateY(125%) skewY(-6deg); transition: transform .55s var(--ease-out); }
.partner:hover, .partner:focus-visible { color: var(--paper); }
.partner:hover::before, .partner:focus-visible::before { transform: translateY(0) skewY(0); }
.partner b { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 80; transition: font-variation-settings .6s var(--ease-out); }
.partner:hover b { font-variation-settings: "wdth" 125; }
.partner .label { display: flex; justify-content: space-between; }
@media (max-width: 900px) { .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .partners__head { grid-template-columns: 1fr; } }

/* big availability */
.avail { position: relative; overflow: hidden; padding-block: var(--section); }
.avail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.avail h2 { font-family: var(--f-display); font-size: var(--t-xl); line-height: .86; text-transform: uppercase; font-variation-settings: "wdth" 80; }
.avail__board { display: grid; gap: 22px; }
.avail__board .flap { font-size: clamp(1.45rem, 3.4vw, 3.3rem); flex-wrap: wrap; row-gap: .12em; }
.avail__count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; border-top: 2px solid var(--ink); }
.avail__count div { padding: 14px 0 0; }
.avail__count b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; font-variation-settings: "wdth" 70; font-variant-numeric: tabular-nums; }
.avail__weeks { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.avail__weeks i { width: 14px; height: 22px; background: var(--ink); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); opacity: .9; }
.avail__weeks i.is-free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; transform: skewX(-20deg); }
.avail__stripes { position: absolute; right: -10%; top: -20%; width: 46%; height: 140%; pointer-events: none; display: flex; gap: 6%; transform: skewX(-28.6deg); opacity: .14; }
.avail__stripes i { flex: 1; background: var(--ink); }
@media (max-width: 900px) { .avail__grid { grid-template-columns: 1fr; } .avail__stripes { display: none; } }

/* ---------- footer ---------- */
.ftr { position: relative; overflow: hidden; padding-top: var(--section); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.ftr__cta { display: block; }
.ftr__big {
  display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .82;
  font-size: clamp(4rem, 17vw, 17rem); letter-spacing: -.02em; white-space: nowrap;
  font-variation-settings: "wdth" var(--wd, 74);
}
.ftr__big .c { transition: color .3s; }
.ftr__cta:hover .ftr__big { color: var(--clay); }
.ftr__cta-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.ftr__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 8vw, 110px); padding-top: 30px; border-top: 1px solid var(--line-inv); }
.ftr__grid h3 { margin-bottom: 14px; color: var(--ash); font-weight: 500; }
.ftr__grid p, .ftr__grid li { font-size: 1rem; line-height: 1.7; }
.ftr__grid a { overflow-wrap: anywhere; }
.ftr__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-inv); color: var(--ash); }
.ftr__bottom svg { height: 22px; width: auto; color: var(--paper); }
.to-top { display: inline-flex; gap: 8px; align-items: center; }
.to-top svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   INNER PAGE HERO (services / projects / contact)
   ===================================================================== */
.phero { position: relative; padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + clamp(40px, 7vw, 110px)); padding-bottom: clamp(48px, 7vw, 100px); overflow: hidden; }
.phero__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--stone); }
.phero__title { font-size: clamp(4rem, 15.5vw, 16rem); margin-top: clamp(20px, 3vw, 40px); }
.phero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.phero__lede { font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.4; max-width: 30ch; }
.phero__bars { position: absolute; right: -4%; top: 0; height: 100%; width: 30%; display: flex; gap: 10%; transform: skewX(-28.6deg); pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 72%); mask-image: linear-gradient(to bottom, #000 38%, transparent 72%); }
.phero__top > span:last-child { background: var(--paper); padding: 4px 8px; margin: -4px -8px; }
.phero__bars i { flex: 1; background: var(--paper-2); }
.phero__bars i:nth-child(2) { background: var(--clay); opacity: .9; }
@media (max-width: 900px) { .phero__row { grid-template-columns: 1fr; } .phero__bars { width: 46%; right: -18%; opacity: .7; } }

/* =====================================================================
   SERVICES PAGE
   ===================================================================== */
.svc-index { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-index a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--paper);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.svc-index a:hover { background: var(--ink); color: var(--paper); }
.chapters { position: relative; border-top: 1px solid var(--line); }
.chapters__grid { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); }
.toc { position: sticky; top: calc(var(--hdr-h) + 28px); align-self: start; padding-top: 40px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; color: var(--stone); font-size: .95rem; transition: color .3s, padding .4s var(--ease-out); }
.toc a .label { width: 4.4em; flex: none; }
.toc a.is-active { color: var(--ink); padding-left: 10px; }
.toc a.is-active::before { content: ""; width: 10px; height: 14px; background: var(--clay); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); flex: none; margin-left: -10px; align-self: center; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(56px, 8vw, 120px); border-bottom: 1px solid var(--line); align-items: center; scroll-margin-top: 80px; }
.chapter__copy { display: grid; gap: 18px; align-content: start; }
.chapter h2 { font-family: var(--f-display); font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 78; }
.chapter__line { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.35; font-weight: 500; max-width: 26ch; }
.chapter__body { color: var(--stone); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips li { padding: 7px 12px; background: var(--paper-2); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }
.chapter__art { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%); }
.chapter__art svg { width: 82%; height: auto; color: var(--ink); }
.chapter:nth-child(3n+2) .chapter__art { background: var(--ink); }
.chapter:nth-child(3n+2) .chapter__art svg { color: var(--paper); }
.chapter:nth-child(3n) .chapter__art { background: var(--clay); }
.seen { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.seen a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.seen a:hover { border-color: var(--ink); background: #fff; }
.seen img, .seen .art { width: 52px; height: 34px; object-fit: cover; object-position: top; }
.seen span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1000px) { .chapters__grid { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } .chapter__art { order: -1; } }

/* process */
.process { padding-block: var(--section); }
.process h2 { font-family: var(--f-display); font-size: var(--t-xl); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 100; max-width: 12ch; }
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 96px); }
.steps__line { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line-inv); }
.steps__line i { position: absolute; inset: 0; background: var(--clay); transform-origin: left; transform: scaleX(0); }
.step { position: relative; display: grid; gap: 12px; padding-top: 44px; }
.step::before { content: ""; position: absolute; top: 4px; left: 0; width: 18px; height: 20px; background: var(--paper); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.step h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 90; }
.step p { color: var(--ash); font-size: .95rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps__line { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* service illustrations (shared by home cards + services page) */
.ill { overflow: visible; }
.ill .s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .f { fill: currentColor; }
.ill .k { fill: var(--clay); }
.ill .ks { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; }
.chapter:nth-child(3n) .ill .k { fill: var(--ink); }
.chapter:nth-child(3n) .ill .ks { stroke: var(--ink); }
.ill .spin { transform-box: fill-box; transform-origin: center; }
.ill.is-live .spin { animation: spin 8s linear infinite; }
.ill.is-live .blink { animation: blink 1.2s steps(2, end) infinite; }
.ill.is-live .blink-2 { animation: blink 1.6s steps(2, end) .4s infinite; }
.ill.is-live .bob { animation: bob 2.8s ease-in-out infinite; }
.ill.is-live .bob-2 { animation: bob 3.2s ease-in-out .6s infinite; }
.ill.is-live .swing { animation: swing 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.ill.is-live .needle { animation: needle 5s var(--ease-out) infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.ill.is-live .pulse { animation: dash 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes needle { 0%, 100% { transform: rotate(-24deg); } 30% { transform: rotate(18deg); } 55% { transform: rotate(-6deg); } 75% { transform: rotate(4deg); } }
@keyframes dash { to { stroke-dashoffset: -60; } }
.reduced .ill * { animation: none !important; }

/* =====================================================================
   PROJECTS PAGE
   ===================================================================== */
.pbar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(240, 241, 238, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); transition: top .6s var(--ease-out); }
.hdr.is-hidden ~ main .pbar { top: env(safe-area-inset-top, 0px); }
.pbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s;
}
.filters button sup { font-size: .58rem; color: var(--stone); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-pressed="true"] sup { color: var(--clay); }
.views { display: inline-flex; border: 1px solid var(--ink); flex: none; }
@media (max-width: 760px) {
  .pbar__inner { flex-wrap: nowrap; gap: 10px; min-height: 56px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 24px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
}
.views button { padding: 9px 16px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* index view */
.pindex { border-top: 1px solid var(--line); }
.prow {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 13rem 11rem; align-items: center; gap: 24px;
  padding: clamp(14px, 1.8vw, 24px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.prow::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.prow:hover::before, .prow:focus-within::before { transform: scaleY(1); }
.prow:hover, .prow:focus-within { color: var(--paper); }
.prow:hover .muted, .prow:focus-within .muted { color: var(--ash); }
.prow__name {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: .95;
  font-variation-settings: "wdth" 72; transition: font-variation-settings .6s var(--ease-out), color .3s; overflow-wrap: anywhere;
}
.prow:hover .prow__name { font-variation-settings: "wdth" 118; color: var(--clay); }
.prow__desc { font-size: .95rem; line-height: 1.4; }
.prow__visit { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.prow__visit svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.prow:hover .prow__visit svg { transform: translate(3px, -3px); }
.prow__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prow__thumb { display: none; }
.prow.is-hidden { display: none; }
.preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: min(34vw, 460px); pointer-events: none;
  opacity: 0; transform-origin: 50% 50%; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
}
.preview__inner { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); clip-path: inset(0 0 0 0); }
.preview img, .preview .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.preview__tag { position: absolute; left: 0; bottom: -28px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; background: var(--clay); color: var(--ink); padding: 6px 10px; }
html.touch .preview { display: none; }
@media (max-width: 900px), (hover: none) {
  .prow { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 16px; }
  .prow__cat { display: none; }
  .prow__name { grid-column: 1; }
  .prow__desc { grid-column: 1; }
  .prow__visit { grid-column: 1; }
  .prow__thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: 96px; aspect-ratio: 16/10; object-fit: cover; object-position: top; align-self: center; position: relative; overflow: hidden; }
  .prow__thumb img, .prow__thumb .art { width: 100%; height: 100%; object-fit: cover; object-position: top; }
}

/* generated art for projects without a screenshot */
.art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: var(--paper); container-type: inline-size; }
.art b { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 800; font-size: 34cqw; line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 70; letter-spacing: -.02em; }
.art::before, .art::after { content: ""; position: absolute; top: -20%; height: 140%; width: 18%; background: var(--clay); transform: skewX(-28.6deg); }
.art::before { right: 22%; }
.art::after { right: 2%; background: var(--ink-2); }
.art--paper { background: var(--paper-2); color: var(--ink); }
.art--paper::after { background: #fff; }
.art--clay { background: var(--clay); color: var(--ink); }
.art--clay::before { background: var(--ink); }
.art--clay::after { background: var(--clay-deep); }


.pcta { padding-block: var(--section); }
.pcta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.pcta h2 { font-family: var(--f-display); font-size: var(--t-xl); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 84; }
@media (max-width: 900px) { .pcta__inner { grid-template-columns: 1fr; } }

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px !important; margin: 0 !important; border: 1px solid var(--ink); background: var(--paper); }
.status.is-closed .dot { background: var(--stone); }
.status.is-closed .dot::after { display: none; }
.lines { border-top: 1px solid var(--line); }
.cline {
  position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.cline::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--clay); clip-path: polygon(0 0, 0 0, -10% 100%, -10% 100%); transition: clip-path .7s var(--ease-out); }
.cline:hover::before { clip-path: polygon(0 0, 110% 0, 100% 100%, -10% 100%); }
.cline__value {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 5.4vw, 5.2rem); line-height: .95; letter-spacing: -.01em;
  font-variation-settings: "wdth" 76; transition: font-variation-settings .7s var(--ease-out); overflow-wrap: anywhere; min-width: 0;
}
.cline:hover .cline__value { font-variation-settings: "wdth" 104; }
.cline__value.lower { text-transform: none; }
.cline__value.upper { text-transform: uppercase; }
.cline__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: transparent;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s;
}
.chip-btn:hover { background: var(--ink); color: var(--paper); }
.chip-btn svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .cline { grid-template-columns: 1fr; gap: 10px; }
  .cline__acts { justify-content: flex-start; }
}

.radar-sec { padding-block: var(--section); }
.radar-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.radar { position: relative; width: 100%; max-width: 720px; aspect-ratio: 1; justify-self: center; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line-inv); stroke-width: 1; }
.radar .ring-lbl { fill: var(--ash); font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; }
.radar .axis { stroke: var(--line-inv); stroke-width: 1; stroke-dasharray: 2 5; }
.radar .lm circle { fill: var(--paper); }
.radar .lm text { fill: var(--paper); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.radar .lm text.d { fill: var(--ash); font-size: 10px; }
.radar .lm line { stroke: var(--line-inv); }
.radar .home circle.core { fill: var(--clay); }
.radar .home circle.halo { fill: none; stroke: var(--clay); }
.radar .sweep { transform-origin: 0 0; }
.radar .compass { fill: var(--ash); font-family: var(--f-mono); font-size: 10px; }
.radar__panel { display: grid; gap: 22px; }
.radar__panel h2 { font-family: var(--f-display); font-size: var(--t-l); line-height: .92; text-transform: uppercase; font-variation-settings: "wdth" 90; }
.radar__dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; border-top: 1px solid var(--line-inv); padding-top: 20px; }
.radar__dl dt { color: var(--ash); }
.radar__dl dd { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .radar-grid { grid-template-columns: 1fr; } }

.hours { padding-block: var(--section); }
.hours__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hours h2 { font-family: var(--f-display); font-size: var(--t-l); line-height: .92; text-transform: uppercase; font-variation-settings: "wdth" 90; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: grid; gap: 12px; padding: 14px 10px; border: 1px solid var(--line); min-height: 190px; align-content: space-between; }
.day b { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 80; }
.day .bar { height: 96px; position: relative; background: var(--paper-2); }
.day .bar i { position: absolute; left: 0; right: 0; background: var(--ink); top: calc(9 / 24 * 100%); bottom: calc(7 / 24 * 100%); }
.day.is-off .bar i { display: none; }
.day.is-off { color: var(--stone); }
.day.is-today { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.day.is-today .bar i { background: var(--clay); }
.day .now { position: absolute; left: -4px; right: -4px; height: 2px; background: var(--ink); }
@media (max-width: 760px) { .hours__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } .day { padding: 10px 4px; min-height: 120px; } .day .label { font-size: .56rem; } }

.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.social {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(180px, 22vw, 280px); padding: 24px clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color .4s var(--ease-out);
}
.social:last-child { border-right: 0; }
.social::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease-out); }
.social:hover, .social:focus-visible { color: var(--paper); }
.social:hover::before, .social:focus-visible::before { transform: translateY(0); }
.social b { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 4.6rem); line-height: .9; text-transform: uppercase; font-variation-settings: "wdth" 74; transition: font-variation-settings .6s var(--ease-out); }
.social:hover b { font-variation-settings: "wdth" 120; }
.social__top { display: flex; justify-content: space-between; align-items: center; }
.social__top svg { width: 22px; height: 22px; transition: transform .5s var(--ease-out); }
.social:hover .social__top svg { transform: translate(4px, -4px) rotate(0deg); }
@media (max-width: 760px) { .socials { grid-template-columns: 1fr; } .social { border-right: 0; min-height: 150px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 140; translate: -50% 140%;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  transition: translate .5s var(--ease-out); pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { translate: -50% 0; }

/* section heads shared */
.shead { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 600px) {
  .hero__meta span:nth-child(n+2) { display: none; }
  .hero__lede { font-size: 1rem; }
  .hero__cta { margin-top: 16px; gap: 10px; }
  .hero__cta .btn { min-height: 46px; padding: 0 22px 0 26px; }
  .hero__foot { gap: 18px; }
  .hero-avail { gap: 8px; }
  .hero-avail .flap { font-size: 1.25rem; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .hero__lede { display: none; }
  .hero__cta { margin-top: 0; }
}
.hero-avail > .label, .hero-avail__sub { background: var(--paper); padding: 3px 8px; margin-right: -8px; }

/* =====================================================================
   404 + MAINTENANCE
   ===================================================================== */
.err { position: relative; overflow: hidden; min-height: max(560px, 100svh); padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); display: flex; align-items: center; }
.err__inner { position: relative; z-index: 1; display: grid; gap: clamp(14px, 2.4vh, 26px); justify-items: start; padding-block: clamp(32px, 6vh, 80px); }
.err__code { font-size: clamp(7rem, min(34vw, 42svh), 26rem); line-height: .8; }
.err__flap { font-size: clamp(1rem, 2.6vw, 2rem); flex-wrap: wrap; row-gap: .12em; max-width: 100%; }
.err__lede { max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.45; }
.err__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.err__mark { position: absolute; right: -4vw; top: 50%; width: min(58vw, 820px); translate: 0 -50%; pointer-events: none; overflow: visible; }
.err__mark polygon { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.err__mark .mk-3 { fill: var(--clay); }
@media (max-width: 760px) { .err__mark { width: 110vw; right: -40vw; top: 26%; opacity: .16; } }

.mnt { position: relative; overflow: hidden; min-height: 100svh; display: flex; }
.mnt__mark { position: absolute; right: -8vw; bottom: -6vh; width: min(70vw, 1000px); pointer-events: none; overflow: visible; }
.mnt__mark polygon { fill: var(--ink-2); transform-box: fill-box; transform-origin: center; }
.mnt__mark .mk-3 { fill: var(--clay); }
.mnt__inner { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 32px; min-height: 100svh; padding-block: calc(24px + env(safe-area-inset-top, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)); }
.mnt__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mnt__logo svg { height: 28px; width: auto; color: var(--paper); }
.mnt__mid { align-self: center; display: grid; gap: clamp(16px, 2.6vh, 28px); justify-items: start; }
.mnt__mid .flap { font-size: clamp(1.2rem, 3vw, 2.4rem); }
.mnt__title { font-size: clamp(3.2rem, min(12vw, 18svh), 12rem); line-height: .84; max-width: 9ch; }
.mnt__lede { max-width: 42ch; color: var(--ash); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.45; }
.mnt__count { display: grid; gap: 6px; border-top: 2px solid var(--clay); padding-top: 12px; }
.mnt__count b { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3rem); font-variation-settings: "wdth" 70; line-height: 1; font-variant-numeric: tabular-nums; }
.mnt__contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line-inv); padding-top: 22px; }
.mnt__contact > div { display: grid; gap: 8px; align-content: start; justify-items: start; min-width: 0; }
.mnt__contact a { font-size: 1.05rem; overflow-wrap: anywhere; }
.mnt__contact .chip-btn { border-color: var(--line-inv); color: var(--paper); }
.mnt__contact .chip-btn:hover { background: var(--paper); color: var(--ink); }
.mnt__social { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .mnt__contact { grid-template-columns: 1fr; } .mnt__mark { width: 120vw; right: -50vw; opacity: .6; } }
.mnt__count[hidden], [hidden] { display: none !important; }
.login__panel:focus { outline: none; }
