/* Studio Morph: home opening sequence */

/* BDO Grotesk, the Studio Morph brand face (SIL OFL, github.com/LCTipografi/BDO-Grotesk) */
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("https://cdn.jsdelivr.net/gh/LCTipografi/BDO-Grotesk@main/Fonts/Webfont/BDOGrotesk-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #070707;
  --paper: #f2f2f0;
  /* Black and white only: the accent is the foreground colour of its surface */
  --accent: #f8f8f6;
  --mute: #7a7a78;
  --on-ink: #f8f8f6;

  --sans: "BDO Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, serif;

  --gutter: clamp(16px, 2.2vw, 36px);
  --frame-inset: clamp(6px, 0.6vw, 10px);
  --frame-radius: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #3a3a38 var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2, h3, p { margin: 0; }

/* Accent word: italic serif inside the heavy sans caps */
.intro__title em,
.belief__title em,
.frame__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 28;
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: -100px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--gutter);
  color: #fff;
  pointer-events: none;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(7 7 7 / 0.82), rgb(7 7 7 / 0));
  transition: opacity 0.3s var(--ease-out);
}
.site-header.is-on-paper { mix-blend-mode: difference; }
.site-header.is-on-paper::before { opacity: 0; }
.site-header.is-on-light { color: var(--ink); }
.site-header.is-on-light::before {
  background: linear-gradient(to bottom, rgb(242 242 240 / 0.92), rgb(242 242 240 / 0));
}
.site-header.is-on-light .brand img { filter: invert(1); }
.site-header a { pointer-events: auto; }

.brand img {
  width: 46px;
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.nav a:hover { text-decoration-line: underline; }

/* ---------- Cues ---------- */

.cue {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mute);
}

/* ---------- Intro ---------- */

.intro {
  position: relative;
  height: 200svh;
  background: var(--ink);
  isolation: isolate;
}

.intro__paper {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100svh;
  background: var(--paper);
}

.intro__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0 var(--gutter) clamp(28px, 7svh, 88px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  mix-blend-mode: difference;
}

.intro__title {
  font-size: clamp(3.4rem, 11.4vw, 13.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.intro__title .line { display: block; white-space: nowrap; }
.intro__title em { font-size: 1.04em; letter-spacing: -0.02em; }

.cue--intro {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 7svh, 88px);
  color: #fff;
}

/* ---------- Beliefs ---------- */

.beliefs {
  padding: 14svh var(--gutter) 0;
}

.belief {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.belief__title {
  font-size: clamp(2.5rem, 6.4vw, 7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- Reveal ---------- */

.reveal { position: relative; }

.reveal__stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.belief--last {
  position: absolute;
  inset: 0;
  padding: 0 var(--gutter);
  min-height: 0;
  gap: clamp(8px, 1.4vw, 20px);
}

.belief__turn {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 5.6rem);
  font-weight: 600;
  line-height: 1.1;
  padding-bottom: 0.08em;
  color: var(--on-ink);
  font-variation-settings: "opsz" 28;
}

.frame {
  position: absolute;
  inset: var(--frame-inset);
  overflow: hidden;
  border-radius: var(--frame-radius);
  background: #111;
}

.frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(1) contrast(1.08) brightness(0.72);
  transform-origin: 50% 55%;
}

.frame__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 48% at 50% 50%, rgb(7 7 7 / 0.46), transparent 72%),
    linear-gradient(to bottom, rgb(7 7 7 / 0.34), transparent 22%, transparent 70%, rgb(7 7 7 / 0.5));
}

.frame__copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3svh, 34px);
  padding: 0 var(--gutter);
  text-align: center;
}

.frame__title {
  max-width: 19ch;
  font-size: clamp(2.1rem, 4.7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}
.frame__title em { font-size: 1.06em; white-space: nowrap; }

.cue--frame {
  color: #fff;
  text-decoration: none;
  text-underline-offset: 5px;
}
.cue--frame:hover { text-decoration-line: underline; }

/* ---------- What we do ---------- */

.services {
  padding: clamp(120px, 22svh, 240px) var(--gutter) clamp(72px, 12svh, 140px);
}

.services__inner {
  max-width: 904px;
  margin: 0 auto;
}

.services__label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.services__title {
  margin: clamp(20px, 2.4vw, 32px) 0 clamp(28px, 3vw, 40px);
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.services__title .x {
  margin: 0 0.08em;
  font-size: 0.6em;
  font-weight: 400;
  text-transform: none;
  color: rgb(248 248 246 / 0.62);
}

.services__intro p,
.service__body p {
  max-width: 62ch;
  text-wrap: pretty;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 300;
  line-height: 1.4;
}
.services__intro p + p,
.service__body p + p { margin-top: 1em; }

.services__list {
  margin-top: clamp(44px, 6svh, 64px);
  border-top: 1px solid rgb(248 248 246 / 0.28);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(36px, 5svh, 56px) 0;
  border-bottom: 1px solid rgb(248 248 246 / 0.28);
}

.service__name {
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.service__scope { color: rgb(248 248 246 / 0.62); }

/* ---------- Services in detail (Nubo-style: bar, rows, facts) ---------- */

.meta {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(248 248 246 / 0.6);
}

.svc {
  --cols: repeat(12, minmax(0, 1fr));
  --col-gap: clamp(16px, 2vw, 32px);
  --rule: 1px solid rgb(248 248 246 / 0.16);
  padding: clamp(72px, 12svh, 140px) var(--gutter) clamp(120px, 18svh, 200px);
}

.svc__bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: var(--rule);
}
.svc__bar .meta:first-child { color: var(--on-ink); }



/* Service rows */

.svc__list {
  margin: clamp(40px, 6svh, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: var(--rule);
}

.svc-row {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--col-gap);
  padding: clamp(28px, 4svh, 44px) 0;
  border-top: var(--rule);
}

.svc-row__num { grid-column: 1 / span 2; color: var(--on-ink); }

.svc-row__text {
  grid-column: 3 / span 4;
  display: flex;
  flex-direction: column;
}

.svc-row__name {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.svc-row__line {
  max-width: 36ch;
  margin-top: 16px;
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.4;
  color: rgb(248 248 246 / 0.82);
  text-wrap: pretty;
}

.svc-row__scope {
  margin: auto 0 0;
  padding: 32px 0 0;
  list-style: none;
}
.svc-row__scope li + li { margin-top: 6px; }

.svc-row__media {
  grid-column: 8 / span 5;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
}
/* One shared frame for every service image */
.svc-row__media { position: relative; }
.svc-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: grayscale(1) contrast(1.06) brightness(0.9);
}

/* Colour spotlight: a colour copy of the image, revealed in a soft circle at the cursor */
@property --spot {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
.svc-row__media,
.spot {
  --spot-x: 50%;
  --spot-y: 50%;
  --spot: 0px;
  transition: --spot 0.5s var(--ease-out);
}
.svc-row__media.is-lit,
.spot.is-lit { --spot: clamp(140px, 16vw, 220px); }

.svc-row__media .svc-row__color,
.spot .svc-row__color {
  position: absolute;
  inset: 0;
  filter: none;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--spot) at var(--spot-x) var(--spot-y), #000 0%, #000 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--spot) at var(--spot-x) var(--spot-y), #000 0%, #000 45%, transparent 100%);
}

@media (hover: none) {
  .svc-row__color { display: none; }
}

/* Studio facts table */

.facts {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--col-gap);
  margin-top: clamp(96px, 16svh, 180px);
}
.facts__label { grid-column: 1 / span 4; color: var(--on-ink); }

.facts__table {
  grid-column: 7 / span 6;
  margin: 0;
  border-top: var(--rule);
}
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: var(--rule);
}
.facts__row dt,
.facts__row dd {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.facts__row dt { color: rgb(248 248 246 / 0.6); }
.facts__row dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: var(--on-ink);
}

/* ---------- Our work (white panel) ---------- */

.work {
  padding: 0 var(--frame-inset) var(--frame-inset);
}

.work__panel {
  --ink-rule: 1px solid rgb(7 7 7 / 0.18);
  padding: clamp(28px, 3.4vw, 56px) clamp(20px, 2.6vw, 44px) clamp(40px, 5vw, 72px);
  border-radius: var(--frame-radius);
  background: var(--paper);
  color: var(--ink);
}
.work__panel, .ab-light { --accent: #070707; }
.work__panel ::selection { background: var(--accent); color: #fff; }

.work__title {
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(7 7 7 / 0.4);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: var(--ink-rule);
}

.case__media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}
.case__media img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out);
}
.case__media:hover img { transform: scale(1.025); }

.case__kind {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgb(7 7 7 / 0.66);
}

.case__name {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.case__name a { text-decoration: none; }
.case__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.case__notes { margin: 0; }
.case__notes > div + div { margin-top: 18px; }
.case__notes dt {
  font-size: 0.875rem;
  font-weight: 600;
}
.case__notes dd {
  max-width: 44ch;
  margin: 4px 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgb(7 7 7 / 0.78);
  text-wrap: pretty;
}

.case__link {
  display: inline-block;
  margin-top: 28px;
  padding-top: 14px;
  min-width: min(100%, 280px);
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.case__link:hover { opacity: 0.6; }

/* Split: image left, notes right */
.case--split .case__media { grid-column: 1 / span 8; align-self: start; }
.case--split .case__info {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
}
.case--split .case__name { margin: 8px 0 28px; }

/* Wide: image offset right, three columns below */
.case--wide .case__media { grid-column: 4 / span 9; }
.case--wide .case__cols {
  grid-column: 4 / span 9;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-top: 28px;
}
.case--wide .case__name { margin-bottom: 14px; }

/* Pair: two smaller cases, same frame */
.case-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  border-bottom: var(--ink-rule);
}
.case--small {
  display: block;
  border-bottom: 0;
}
.case--small .case__media { aspect-ratio: 3 / 2; margin-bottom: 18px; }
.case--small .case__media img { height: 100%; object-fit: cover; }
.case--small .case__name { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: 4px; }

.work__all {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.work__all:hover { opacity: 0.6; }

/* ---------- FAQ (Nubo-style accordion) ---------- */

.faq {
  padding: clamp(120px, 20svh, 220px) var(--gutter) clamp(96px, 14svh, 160px);
  text-align: center;
}

.faq__title {
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.faq__turn { color: inherit; }

.faq__sub { margin-top: 24px; }

.faq__list {
  max-width: 920px;
  margin: clamp(48px, 7svh, 80px) auto 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.faq__item {
  border-radius: 10px;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgb(248 248 246 / 0.06);
  interpolate-size: allow-keywords;
}
.faq__item[open] { background: #181818; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #fff; }
.faq__q:focus-visible { outline-offset: -2px; border-radius: 10px; }

/* Plus that turns into a minus */
.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

.faq__a {
  max-width: 68ch;
  padding: 0 24px 24px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgb(248 248 246 / 0.74);
  text-wrap: pretty;
}

/* ---------- Contact (two panels) ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--frame-inset);
  padding: 0 var(--frame-inset) var(--frame-inset);
}

.contact__pitch,
.contact__form {
  border-radius: var(--frame-radius);
  background: #121212;
  box-shadow: inset 0 0 0 1px rgb(248 248 246 / 0.06);
  padding: clamp(28px, 3.4vw, 56px);
}

.contact__pitch { display: flex; flex-direction: column; }

.contact__ghost {
  font-size: clamp(3.2rem, 6.6vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgb(248 248 246 / 0.1);
}

.contact__title {
  margin-top: clamp(32px, 5svh, 56px);
  max-width: 12ch;
  font-size: clamp(2.2rem, 3.8vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.contact__turn { color: inherit; }
.contact__title--first { margin-top: 0; }

.contact__lead {
  max-width: 40ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
}

.contact__not {
  max-width: 46ch;
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(248 248 246 / 0.6);
}

.contact__trap { position: absolute; left: -9999px; }

/* Numbered fields */
.field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding-bottom: 28px;
}
.field + .field { padding-top: 8px; }
.field__num { grid-row: 1 / span 3; padding-top: 4px; color: rgb(248 248 246 / 0.4); }
.field > :not(.field__num) { grid-column: 2; }

.field__label {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.field__help { margin-top: 4px; }

.field__input {
  width: 100%;
  margin-top: 10px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgb(248 248 246 / 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--on-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  caret-color: var(--accent);
  transition: border-color 0.25s var(--ease-out);
}
.field__input:hover { border-bottom-color: rgb(248 248 246 / 0.5); }
.field__input:focus { outline: none; border-bottom-color: var(--on-ink); }
.field__input:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--on-ink); }
textarea.field__input { resize: vertical; min-height: 96px; line-height: 1.5; }

.field__select { position: relative; }
.field__select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
  pointer-events: none;
}
.field__select select { appearance: none; padding-right: 28px; cursor: pointer; }
.field__select option { background: #121212; color: var(--on-ink); }

.field.is-invalid .field__input { border-bottom: 2px solid var(--on-ink); }
.field__error {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-ink);
}

.contact__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-left: 48px;
  margin-top: 8px;
}

.contact__send {
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--on-ink);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.contact__send:hover { background: #cfcfcc; color: var(--ink); }
.contact__send:active { transform: scale(0.97); }
.contact__send:disabled { opacity: 0.5; cursor: progress; }

.contact__status {
  font-size: 0.9375rem;
  color: rgb(248 248 246 / 0.74);
}
.contact__status.is-error { color: var(--on-ink); font-weight: 600; }

/* ---------- Footer (Nubo-style: giant wordmark, columns, base line) ---------- */

.footer {
  --rule: 1px solid rgb(248 248 246 / 0.16);
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(80px, 12svh, 140px) var(--gutter) 28px;
  overflow: hidden;
}

.footer__mark {
  margin: 0 0 clamp(40px, 6vw, 88px) -0.04em;
  font-size: 30.5vw;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: var(--on-ink);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgb(0 0 0 / 0.15) 100%);
          mask-image: linear-gradient(to bottom, #000 45%, rgb(0 0 0 / 0.15) 100%);
  user-select: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: clamp(24px, 3vw, 48px);
  padding-top: 28px;
  border-top: var(--rule);
}

.footer__col ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.footer__col li {
  padding: 5px 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgb(248 248 246 / 0.82);
}
.footer__col a {
  text-decoration: none;
  text-underline-offset: 4px;
}
.footer__col a:hover { color: #fff; text-decoration: underline; }

.footer__sign {
  padding-left: clamp(24px, 3vw, 48px);
  border-left: var(--rule);
}
.footer__motto {
  font-size: clamp(2.2rem, 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.footer__mo { color: inherit; }
.footer__note {
  max-width: 34ch;
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(248 248 246 / 0.62);
}

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 8svh, 96px);
  padding-top: 18px;
  border-top: var(--rule);
}
.footer__top { flex: none; white-space: nowrap; text-decoration: none; }
.footer__top:hover { color: var(--on-ink); }

.svc__more {
  display: inline-block;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.svc__more:hover { opacity: 0.6; }

/* ==========  Services page  ========== */

.nav a[aria-current="page"] { text-decoration-line: underline; }

.sp-turn { color: inherit; }

.sp-hero {
  padding: clamp(112px, 16svh, 168px) var(--gutter) clamp(96px, 14svh, 160px);
}
.sp-hero__title {
  max-width: 18ch;
  margin: clamp(48px, 8svh, 96px) 0 clamp(48px, 7svh, 80px);
  font-size: clamp(2.6rem, 5.8vw, 6.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sp-hero__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}
.sp-hero__lead {
  grid-column: 1 / span 5;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.sp-index {
  grid-column: 7 / span 6;
  margin: 0;
  border-top: 1px solid rgb(248 248 246 / 0.16);
}
.sp-index > div {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(248 248 246 / 0.16);
}
.sp-index dt { flex: 0 0 56px; }
.sp-index dd { margin: 0; font-size: 1.0625rem; }
.sp-index a { text-decoration: none; text-underline-offset: 5px; }
.sp-index a:hover { text-decoration: underline; }

/* Service chapters */
.chapter {
  padding: clamp(56px, 8svh, 96px) var(--gutter);
  border-top: 1px solid rgb(248 248 246 / 0.16);
  margin: 0 var(--gutter);
  padding-left: 0;
  padding-right: 0;
  scroll-margin-top: 72px;
}
.chapter__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: baseline;
  margin-bottom: clamp(32px, 5svh, 56px);
}
.chapter__num { grid-column: 1 / span 2; color: var(--on-ink); }
.chapter__name {
  grid-column: 3 / -1;
  font-size: clamp(2.6rem, 7vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.chapter__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 32px;
  align-items: start;
}
.chapter__media {
  grid-column: 3 / span 4;
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
}
.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.9);
}
.chapter__text { grid-column: 8 / span 5; }
.chapter__lead {
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.chapter__label { margin-top: clamp(32px, 5svh, 48px); }
.chapter__list,
.chapter__seen {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(248 248 246 / 0.16);
}
.chapter__list li,
.chapter__seen li {
  padding: 12px 0;
  border-bottom: 1px solid rgb(248 248 246 / 0.16);
  font-size: 1rem;
  font-weight: 300;
  color: rgb(248 248 246 / 0.82);
}
.chapter__seen { display: flex; flex-wrap: wrap; column-gap: 28px; border-bottom: 1px solid rgb(248 248 246 / 0.16); }
.chapter__seen li { border-bottom: 0; }
.chapter__seen a { font-weight: 400; color: var(--on-ink); text-underline-offset: 5px; }
.chapter__seen a:hover { opacity: 0.6; }

/* Process */
.process {
  padding: clamp(120px, 18svh, 200px) var(--gutter) clamp(96px, 14svh, 160px);
  scroll-margin-top: 40px;
}
.process__list {
  margin: clamp(40px, 6svh, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgb(248 248 246 / 0.16);
}
.step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 16px;
  padding: clamp(28px, 4svh, 44px) 0;
  border-top: 1px solid rgb(248 248 246 / 0.16);
}
.step__num { grid-column: 1 / span 2; color: var(--on-ink); }
.step__name {
  grid-column: 3 / span 3;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
.step__desc {
  grid-column: 6 / span 4;
  max-width: 44ch;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(248 248 246 / 0.82);
  text-wrap: pretty;
}
.step__list {
  grid-column: 10 / span 3;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step__list li + li { margin-top: 6px; }

/* What we don't do */
.sp-dont {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  padding: clamp(96px, 14svh, 160px) var(--gutter) clamp(120px, 18svh, 200px);
}
.sp-dont__title {
  grid-column: 1 / span 9;
  font-size: clamp(2.4rem, 5.2vw, 5.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sp-dont__body { grid-column: 7 / span 5; }
.sp-dont__body p {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.45;
  color: rgb(248 248 246 / 0.82);
  text-wrap: pretty;
}
.sp-dont__body p + p { margin-top: 1em; color: var(--on-ink); }

/* Closing CTA */
.sp-cta { padding: 0 var(--frame-inset); }
.sp-cta__frame {
  position: relative;
  height: min(88svh, 860px);
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--frame-radius);
  background: #111;
}
.sp-cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(1) contrast(1.08) brightness(0.62);
}
.sp-cta__copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4svh, 40px);
  padding: 0 var(--gutter);
  text-align: center;
}
.sp-cta__title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6.4vw, 6.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sp-cta__btn {
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--on-ink);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.sp-cta__btn:hover { background: #cfcfcc; color: var(--ink); }

/* ==========  Work page  ========== */

.wk-hero {
  padding: clamp(112px, 16svh, 168px) var(--gutter) clamp(56px, 8svh, 96px);
}
.wk-hero__title {
  max-width: 14ch;
  margin: clamp(48px, 8svh, 96px) 0 clamp(28px, 4svh, 40px);
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.wk-hero__lead {
  max-width: 46ch;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  color: rgb(248 248 246 / 0.82);
  text-wrap: pretty;
}

/* Cases (after twenty-eighty.jp/cases-2026): wide, split, pair */
.cases {
  --rule: 1px solid rgb(248 248 246 / 0.14);
  padding: 0 var(--gutter);
}
.cs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(48px, 7svh, 88px) 0;
  border-top: var(--rule);
}
.cs__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #151515;
}
.cs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.cs__media:hover img { transform: scale(1.025); }

.cs__kicker {
  font-size: 0.875rem;
  color: rgb(248 248 246 / 0.6);
}
.cs__name {
  margin-top: 6px;
  font-size: clamp(1.625rem, 2.3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.cs__tags {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgb(248 248 246 / 0.74);
}
.cs__notes { margin: 0; }
.cs__notes > div + div { margin-top: 18px; }
.cs__notes dt { font-size: 0.875rem; font-weight: 600; }
.cs__notes dd {
  max-width: 44ch;
  margin: 4px 0 0;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(248 248 246 / 0.78);
  text-wrap: pretty;
}
.cs__link {
  display: inline-block;
  min-width: min(100%, 260px);
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--on-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.cs__link:hover { opacity: 0.6; }

/* Wide: image set right, three columns beneath */
.cs--wide .cs__media { grid-column: 4 / -1; }
.cs--wide .cs__cols {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin-top: 28px;
}

/* Split: image left, text column right */
.cs--split .cs__media { grid-column: 2 / span 7; align-self: start; }
.cs--split .cs__side { grid-column: 10 / -1; }
.cs--split .cs__notes { margin-top: 28px; }

/* Pair: two cases, the second set lower */
.cs-pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(48px, 7svh, 88px) 0;
  border-top: var(--rule);
}
.cs--half {
  display: block;
  padding: 0;
  border-top: 0;
}
.cs--half:first-child { grid-column: 1 / span 5; }
.cs--half:last-child { grid-column: 7 / span 5; margin-top: clamp(40px, 6vw, 96px); }
.cs--half .cs__media { margin-top: 20px; }
.cs--half .cs__notes { margin-top: 22px; }

/* Let's talk */
.talk {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 32px;
  margin: 0 var(--gutter);
  padding: clamp(96px, 14svh, 160px) 0 clamp(120px, 16svh, 180px);
  border-top: 1px solid rgb(248 248 246 / 0.14);
}
.talk__title {
  grid-column: 1 / span 6;
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.talk__body { grid-column: 8 / -1; align-self: end; }
.talk__body p {
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.45;
  color: rgb(248 248 246 / 0.82);
}
.talk__body p + p { margin-top: 1em; color: var(--on-ink); }
.talk__btn { display: inline-block; margin-top: 32px; }

.wk-cta { margin-top: var(--frame-inset); }

/* ==========  Case pages (/work/*.html, built by tools/build_cases.py)  ========== */

.cp-hero { padding: clamp(112px, 16svh, 168px) var(--gutter) clamp(48px, 7svh, 80px); }
.cp-back { color: var(--on-ink); text-decoration: none; }
.cp-back:hover { opacity: 0.6; }
.cp-hero__title {
  margin: clamp(40px, 7svh, 88px) 0 clamp(32px, 5svh, 56px);
  /* Sized to the name's length so it always sits on one line */
  font-size: min(12rem, 11vw, calc((100vw - 2 * var(--gutter)) / (var(--chars, 8) * 0.72)));
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cp-hero__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 32px;
}
.cp-hero__lead {
  grid-column: 1 / span 5;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.cp-facts {
  grid-column: 7 / span 6;
  margin: 0;
  border-top: 1px solid rgb(248 248 246 / 0.16);
}
.cp-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(248 248 246 / 0.16);
}
.cp-facts dd {
  margin: 0;
  max-width: 34ch;
  text-align: right;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.cp-facts a { text-underline-offset: 4px; }
.cp-facts a:hover { opacity: 0.6; }

.cp-cover { margin: 0 var(--frame-inset); overflow: hidden; border-radius: var(--frame-radius); }
.cp-cover img { width: 100%; height: auto; }

.cp-brief {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 20px;
  padding: clamp(80px, 12svh, 140px) var(--gutter);
}
.cp-brief__label { grid-column: 1 / span 3; color: var(--on-ink); }
.cp-brief__text { grid-column: 5 / span 7; }
.cp-brief__text p {
  max-width: 34ch;
  font-size: clamp(1.375rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.cp-brief__text p + p {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgb(248 248 246 / 0.78);
}

/* Chapters */
.cp-ch {
  margin: 0 var(--gutter);
  padding: clamp(56px, 8svh, 96px) 0;
  border-top: 1px solid rgb(248 248 246 / 0.14);
}
.cp-ch__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 16px;
  margin-bottom: clamp(32px, 4svh, 48px);
}
.cp-ch__title {
  grid-column: 1 / span 4;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.cp-ch__text { grid-column: 5 / span 6; }
.cp-ch__meta { margin-bottom: 10px; }
.cp-ch__text p:not(.meta) {
  max-width: 56ch;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(248 248 246 / 0.82);
  text-wrap: pretty;
}

/* Galleries: images keep their own shape */
.cp-g {
  display: grid;
  gap: clamp(8px, 1vw, 16px);
}
.cp-g + .cp-g { margin-top: clamp(8px, 1vw, 16px); }
.cp-g__item { margin: 0; overflow: hidden; border-radius: 6px; background: #151515; }
.cp-g__item img { width: 100%; height: auto; }
.cp-g--slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-g--slides .cp-g__item:first-child { grid-column: 1 / -1; }
.cp-g--grid, .cp-g--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.cp-g--phones { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
.cp-g--posts { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.cp-g--carousel { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
.cp-g--portrait { grid-template-columns: minmax(0, 560px); justify-content: end; }
.cp-g--phones .cp-g__item, .cp-g--posts .cp-g__item, .cp-g--carousel .cp-g__item { border-radius: 10px; }

.cp-social__btn {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--on-ink);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.cp-social__btn:hover { background: #cfcfcc; color: var(--ink); }

/* What we did */
.cp-did {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 20px;
  margin: 0 var(--gutter);
  padding: clamp(56px, 8svh, 96px) 0;
  border-top: 1px solid rgb(248 248 246 / 0.14);
}
.cp-did__label { grid-column: 1 / span 4; color: var(--on-ink); }
.cp-did__list { grid-column: 5 / -1; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(16px, 2vw, 32px); }
.cp-did__list dt { font-size: 1rem; font-weight: 600; }
.cp-did__list dd {
  max-width: 40ch;
  margin: 6px 0 0;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(248 248 246 / 0.78);
}

/* Next case */
.cp-next {
  display: block;
  margin: 0 var(--gutter);
  padding: clamp(56px, 8svh, 96px) 0 clamp(80px, 12svh, 140px);
  border-top: 1px solid rgb(248 248 246 / 0.14);
  text-decoration: none;
}
.cp-next__name {
  display: block;
  margin-top: 16px;
  font-size: min(9.5rem, 9vw, calc((100vw - 2 * var(--gutter)) / (var(--chars, 8) * 0.72)));
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgb(248 248 246 / 0.3);
  transition: color 0.35s var(--ease-out);
}
.cp-next:hover .cp-next__name,
.cp-next:focus-visible .cp-next__name { color: var(--on-ink); }

/* Lightbox */
.cp-g__item img, .cp-cover img { cursor: zoom-in; }
.cp-g__item img:focus-visible, .cp-cover img:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-ink);
}
.lb::backdrop { background: rgb(7 7 7 / 0.94); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb[open] .lb__img { animation: lb-in 0.35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lb__img {
  max-width: calc(100vw - 160px);
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  border-radius: 6px;
}
.lb__count { position: fixed; left: var(--gutter); bottom: 24px; color: rgb(248 248 246 / 0.7); }
.lb__btn {
  position: fixed;
  border: 0;
  background: rgb(248 248 246 / 0.08);
  color: var(--on-ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
.lb__btn:hover { background: rgb(248 248 246 / 0.18); }
.lb__close {
  top: 18px;
  right: var(--gutter);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.lb__prev, .lb__next {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
}
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__prev span, .lb__next span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.lb__prev span { transform: translateX(2px) rotate(-135deg); }
.lb__next span { transform: translateX(-2px) rotate(45deg); }
@media (max-width: 767px) {
  .lb__img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 160px); }
  .lb__prev, .lb__next { top: auto; bottom: 16px; margin-top: 0; }
  .lb__prev { left: auto; right: 84px; }
  .lb__next { right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .lb[open] .lb__img { animation: none; } }

/* ==========  About page (light, after nubo.framer.website/about)  ========== */

body:has(.ab-light) { background: var(--paper); }
.ab-light {
  --rule: 1px solid rgb(7 7 7 / 0.14);
  background: var(--paper);
  color: var(--ink);
}
.ab-light ::selection { background: var(--accent); color: #fff; }
.ab-light .meta { color: rgb(7 7 7 / 0.6); }
.ab-turn { color: inherit; }

.ab-label { color: var(--ink) !important; }
.ab-label--center { text-align: center; }

.ab-intro { padding: clamp(140px, 20svh, 220px) var(--gutter) clamp(72px, 10svh, 120px); }
.ab-intro__title {
  max-width: 20ch;
  margin-top: 20px;
  font-size: clamp(2.4rem, 5.4vw, 5.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.ab-intro__cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  margin-top: clamp(40px, 6svh, 72px);
}
.ab-intro__lead {
  grid-column: 1 / span 5;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.ab-intro__note {
  grid-column: 7 / span 5;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgb(7 7 7 / 0.66);
  text-wrap: pretty;
}

.ab-details {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 20px;
  padding: 0 var(--gutter) clamp(96px, 14svh, 160px);
}
.ab-details__label { grid-column: 1 / span 4; color: var(--ink) !important; }
.ab-facts { grid-column: 7 / -1; margin: 0; border-top: var(--rule); }
.ab-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: var(--rule);
}
.ab-facts dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ab-story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: center;
  padding: 0 var(--gutter) clamp(96px, 14svh, 160px);
}
.ab-story__media {
  grid-column: 1 / span 5;
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}
.ab-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.ab-story__text { grid-column: 7 / span 5; }
.ab-story__title {
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ab-story__lead {
  margin-top: 28px;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.ab-story__copy {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(7 7 7 / 0.68);
  text-wrap: pretty;
}

.ab-principles { padding: 0 var(--gutter) clamp(96px, 14svh, 160px); }
.ab-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: var(--rule);
}
.ab-bar .meta:first-child { color: var(--ink); }
.ab-p__list { margin: 0; padding: 0; list-style: none; }
.ab-p {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(32px, 5svh, 52px) 0;
  border-bottom: var(--rule);
}
.ab-p__num { grid-column: 5 / span 1; padding-top: 6px; }
.ab-p__body { grid-column: 7 / span 5; }
.ab-p__title {
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ab-p__text {
  max-width: 50ch;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgb(7 7 7 / 0.68);
  text-wrap: pretty;
}

.ab-clients { padding: 0 var(--gutter) clamp(96px, 14svh, 160px); }
.ab-clients__title {
  margin-top: 16px;
  font-size: clamp(2.6rem, 6vw, 6.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
}
.ab-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: clamp(40px, 6svh, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.ab-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 732 / 504;
  overflow: hidden;
  border-radius: 8px;
  background: #e6e6e3;
}
.ab-logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ab-logo--own img { width: 58%; height: 46%; filter: grayscale(1) contrast(1.2); opacity: 0.85; }
.ab-logo--invert img { filter: invert(1) grayscale(1); }
.ab-logo--next { background: var(--ink); }
.ab-logo--next a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--on-ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}
.ab-logo--next a:hover { background: #2a2a2a; }

.ab-cta { padding: 0 var(--frame-inset) var(--frame-inset); }
.ab-cta__frame {
  position: relative;
  height: min(86svh, 820px);
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--frame-radius);
  background: #111;
}
.ab-cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: grayscale(1) contrast(1.05) brightness(0.6);
}
.ab-cta__copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 var(--gutter);
  text-align: center;
  color: #fff;
}
.ab-cta__copy .meta { color: rgb(255 255 255 / 0.75); }
.ab-cta__title {
  max-width: 13ch;
  font-size: clamp(2.6rem, 6.4vw, 6.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ==========  Contact page  ========== */

.ct-hero { padding: clamp(112px, 16svh, 168px) var(--gutter) clamp(48px, 7svh, 80px); }
.ct-hero__title {
  margin: clamp(40px, 7svh, 88px) 0 clamp(20px, 3svh, 32px);
  font-size: clamp(3.4rem, 12vw, 13rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.ct-hero__lead {
  max-width: 40ch;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  color: rgb(248 248 246 / 0.82);
  text-wrap: pretty;
}

/* ==========  Motion (see main.js). Hidden states apply only once JS is running.  ========== */

html.js [data-m="rise"] {
  opacity: 0;
  transform: translateY(14px);
}
html.js [data-m="rise"].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.62s var(--ease-out) var(--d, 0ms), transform 0.62s var(--ease-out) var(--d, 0ms);
}

/* Kinetic headlines: each word rises from behind its own mask, a line at a time */
.kw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Room for descenders and italic overhang, so the mask never shears them */
  padding: 0 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
}
.kw__i { display: inline-block; }
html.js [data-m="kinetic"] .kw__i { transform: translateY(112%); }
html.js [data-m="kinetic"].is-in .kw__i {
  transform: none;
  transition: transform 0.95s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* Image wipes */
html.js [data-m^="wipe"] { transition: clip-path 1.15s var(--ease-out) var(--d, 0ms); }
html.js [data-m="wipe-up"] { clip-path: inset(100% 0 0 0); }
html.js [data-m="wipe-left"] { clip-path: inset(0 100% 0 0); }
html.js [data-m="wipe-right"] { clip-path: inset(0 0 0 100%); }
html.js [data-m="wipe-iris"] { clip-path: circle(0% at 50% 50%); transition-duration: 1.4s; }
html.js [data-m^="wipe"].is-in { clip-path: inset(0); }
html.js [data-m="wipe-iris"].is-in { clip-path: circle(75% at 50% 50%); }
html.js .footer__mark[data-m].is-in { clip-path: inset(0 0 -20% 0); }

/* Reduced motion: fewer and gentler, not none. A short fade, no travel, no wipes. */
html.calm [data-m="rise"] { transform: none; }
html.calm [data-m="rise"].is-in { transition: opacity 0.3s linear; }
html.calm [data-m="kinetic"] .kw__i { transform: none; }
html.calm [data-m="kinetic"] { opacity: 0; }
html.calm [data-m="kinetic"].is-in { opacity: 1; transition: opacity 0.3s linear; }
html.calm [data-m^="wipe"] { clip-path: none; opacity: 0; }
html.calm [data-m^="wipe"].is-in { clip-path: none; opacity: 1; transition: opacity 0.3s linear; }

.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.nf-links .sp-cta__btn { display: inline-block; }

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  .site-header { height: 60px; }
  .brand img { width: 40px; }

  .intro__title { font-size: clamp(2.6rem, 12.6vw, 6rem); }
  .intro__stage { padding-bottom: 100px; }
  .cue--intro { left: var(--gutter); right: auto; bottom: 64px; }

  .belief { min-height: 60svh; }
  .belief__title { font-size: clamp(2.3rem, 11.5vw, 4rem); }
  .belief__turn { font-size: clamp(1.8rem, 9.5vw, 3.4rem); }

  .frame__title { font-size: clamp(1.9rem, 8.6vw, 3.2rem); max-width: 14ch; }

  .services { padding-top: 96px; padding-bottom: 56px; }
  .service { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }

  .svc { padding-top: 56px; padding-bottom: 96px; }
  .svc__bar .meta:last-child { display: none; }
  .svc__list { margin-top: 32px; }
  .svc-row { row-gap: 20px; padding: 28px 0 32px; }
  .svc-row__num, .svc-row__text, .svc-row__media { grid-column: 1 / -1; }
  .svc-row__scope { padding-top: 20px; }
  .svc-row__media { justify-self: stretch; width: 100%; }
  .facts { margin-top: 72px; row-gap: 16px; }
  .facts__label, .facts__table { grid-column: 1 / -1; }

  .case { row-gap: 20px; }
  .case--split .case__media, .case--split .case__info,
  .case--wide .case__media, .case--wide .case__cols { grid-column: 1 / -1; }
  .case--wide .case__cols { grid-template-columns: 1fr; gap: 24px; margin-top: 4px; }
  .case-pair { grid-template-columns: 1fr; }
  .case--small { padding-bottom: 8px; }

  .faq { padding-top: 96px; padding-bottom: 72px; }
  .faq__q { padding: 18px; }
  .faq__a { padding: 0 18px 20px; }

  .contact { grid-template-columns: 1fr; }
  .contact__not { padding-top: 32px; }
  .field { grid-template-columns: 36px minmax(0, 1fr); }
  .contact__actions { padding-left: 36px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }

  .sp-hero__lead, .sp-index { grid-column: 1 / -1; }
  .chapter__head, .chapter__body { display: block; }
  .chapter__name { margin-top: 10px; }
  .chapter__media { margin-bottom: 28px; }
  .step { row-gap: 12px; }
  .step__num, .step__name, .step__desc, .step__list { grid-column: 1 / -1; }
  .sp-dont__title, .sp-dont__body { grid-column: 1 / -1; }

  .cs, .cs-pair { row-gap: 20px; }
  .cs--wide .cs__media, .cs--wide .cs__cols,
  .cs--split .cs__media, .cs--split .cs__side,
  .cs--half:first-child, .cs--half:last-child { grid-column: 1 / -1; }
  .cs--wide .cs__cols { grid-template-columns: 1fr; gap: 22px; margin-top: 4px; }
  .cs--half:last-child { margin-top: 40px; }
  .talk__title, .talk__body { grid-column: 1 / -1; }

  .cp-hero__lead, .cp-facts, .cp-brief__label, .cp-brief__text,
  .cp-ch__title, .cp-ch__text, .cp-did__label, .cp-did__list { grid-column: 1 / -1; }
  .cp-did__list { grid-template-columns: 1fr; }

  .ab-intro__lead, .ab-intro__note, .ab-details__label, .ab-facts,
  .ab-story__media, .ab-story__text, .ab-p__num, .ab-p__body { grid-column: 1 / -1; }
  .ab-p { row-gap: 10px; }
  .ab-bar .meta:last-child { display: none; }
  .ab-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-hero__title { font-size: min(18vw, calc((100vw - 2 * var(--gutter)) / (var(--chars, 8) * 0.72))); }
  .cp-g--slides { grid-template-columns: 1fr; }
  .cp-g--phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-g--posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-g--carousel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .cp-g--carousel .cp-g__item { scroll-snap-align: start; }
  .footer__sign { grid-column: 1 / -1; padding: 28px 0 0; border-left: 0; border-top: var(--rule); }
  .service { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }

}

/* ---------- Reduced motion: no pin, frame sits in flow ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal__stage { height: auto; overflow: visible; }
  .belief--last { position: relative; min-height: 72svh; }
  .frame { position: relative; inset: auto; height: calc(100svh - 2 * var(--frame-inset)); margin: var(--frame-inset); }
}
