/* Layout concept: a black screening room. Work is projected large; type is white,
   set big and sparse in Poppins like the logo, so the eye moves image → word → image. */
:root {
  --ink: #f3f2ee;        /* text: warm white */
  --paper: #0b0b0b;      /* the room */
  --mist: #161615;       /* quiet panels, placeholders */
  --stone: #8d8c86;      /* secondary text */
  --line: #262624;       /* hairlines */
  --smoke: #1b1b1a;      /* placeholder on black */

  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --t-label: 0.6875rem;                       /* 11px eyebrow/caption */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.25rem, 1.2vw + 0.9rem, 1.75rem);
  --t-h3: clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
  --t-h2: clamp(2.25rem, 4vw + 1rem, 4.5rem);
  --t-h1: clamp(3rem, 9vw + 0.5rem, 10rem);

  --gutter-x: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --pad: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 12vw, 180px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--paper); }
::selection { background: var(--ink); color: var(--paper); }

.wrap { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.dark { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.label { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--stone); }
.dark .muted { color: #9a9a95; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
.display { font-size: var(--t-h1); line-height: 0.92; letter-spacing: -0.045em; font-weight: 500; }
.h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.035em; }
.h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.02em; }
.lead { font-size: var(--t-lead); line-height: 1.45; font-weight: 400; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
.prose { max-width: 62ch; display: grid; gap: 1.1em; }
.prose p { margin: 0; text-wrap: pretty; }
.light { font-weight: 300; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  mix-blend-mode: difference; color: #fff; pointer-events: none;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }
.site-header a, .site-header button { pointer-events: auto; }
.logo { font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.logo span { font-weight: 300; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(env(safe-area-inset-top, 0px) + 22px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu .top { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-size: clamp(2.5rem, 11vw, 4.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.menu nav a[aria-current="page"] { font-weight: 300; font-style: italic; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Media frames & placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--mist); width: 100%; max-width: 100%; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: clamp(12px, 1.6vw, 20px);
  background-color: var(--mist);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(160deg, rgba(255,255,255,.55), rgba(0,0,0,.06));
  color: var(--stone);
}
.ph[data-tone="1"] { background-color: #e6e6e3; }
.ph[data-tone="2"] { background-color: #d6d6d2; }
.ph[data-tone="3"] { background-color: #2a2a28; color: #8e8e88; }
.ph[data-tone="4"] { background-color: #c9c9c4; color: #5f5f5a; }
.dark .ph { background-color: var(--smoke); color: #77776f; }
.ph .ph-label { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.ph .ph-icon { width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; flex: none; opacity: .8; }
.ph .ph-icon::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* ---------- Reveal on scroll (only for elements below the fold) ---------- */
.js .reveal-pending { transform: translateY(36px); }
.reveal-in { transform: none; transition: transform 1.2s var(--ease); }

/* ---------- Page transition ---------- */
body { animation: page-in .8s var(--ease) both; }
body.leaving { opacity: 0; transition: opacity .35s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Buttons / links ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.link-arrow .ar { display: inline-block; width: 34px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.link-arrow .ar::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.link-arrow:hover .ar { width: 56px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding-inline: 30px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; transition: background .4s var(--ease), color .4s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ---------- Generic sections ---------- */
.section { padding-block: var(--section); }
.page-head { padding-top: calc(76px + clamp(60px, 10vw, 150px)); padding-bottom: clamp(48px, 7vw, 100px); }
.page-head .label { margin-bottom: 28px; display: block; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.split > * { min-width: 0; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .hr { background: #2a2a28; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--section); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); }
.footer-cta { display: block; font-size: clamp(3rem, 11vw, 11rem); line-height: .9; letter-spacing: -0.05em; font-weight: 500; }
.footer-cta em { font-style: normal; font-weight: 300; }
.footer-cta .ar-big { display: inline-block; transition: transform .6s var(--ease); }
.footer-cta:hover .ar-big { transform: translateX(.15em) rotate(-45deg); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(64px, 9vw, 120px); padding-top: 28px; border-top: 1px solid #2a2a28; }
.footer-grid a { display: block; font-size: var(--t-small); padding-block: 2px; transition: opacity .3s; }
.footer-grid a:hover { opacity: .55; }
.footer-grid .label { margin-bottom: 14px; display: block; }
.footer-base { margin-top: 56px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.75rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cursor label (desktop) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; transform: scale(0); transition: transform .45s var(--ease); mix-blend-mode: difference; }
.cursor.on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; flex: none; align-items: center; gap: clamp(48px, 7vw, 112px); padding-right: clamp(48px, 7vw, 112px); padding-block: clamp(28px, 3.5vw, 44px); animation: logos 45s linear infinite; }
.client-item { display: flex; align-items: center; height: clamp(36px, 4.5vw, 56px); font-size: clamp(0.8125rem, 1.1vw, 1rem); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.client-item img { height: 100%; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .85; transition: opacity .3s, filter .3s; }
.client-item img:hover { opacity: 1; filter: none; }

/* ---------- Horizontal strip (behind the scenes) ---------- */
.strip { display: flex; gap: clamp(12px, 1.5vw, 24px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.strip > .media { flex: none; height: clamp(300px, 42vw, 560px); width: auto; scroll-snap-align: start; }
.strip-wrap { overflow: hidden; }

/* ======================================================================
   HOME
   ====================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero .media { position: absolute; inset: 0; height: 100%; }
.hero .media .ph { align-items: flex-start; justify-content: flex-end; padding-top: 110px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(32px, 5vw, 64px); display: grid; gap: clamp(28px, 4vw, 48px); }
.hero-title { font-size: clamp(3.25rem, 11.5vw, 13rem); line-height: .86; letter-spacing: -0.055em; font-weight: 500; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; animation: rise 1.3s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; font-weight: 300; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-meta p { margin: 0; max-width: 36ch; font-size: var(--t-small); }

.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); }
.intro .label { grid-column: 1 / span 3; }
.intro .statement { grid-column: 4 / -1; font-size: clamp(1.75rem, 3.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 400; text-wrap: balance; margin: 0; }
.intro .statement .muted { font-weight: 300; }
.intro .more { grid-column: 4 / -1; }
@media (max-width: 860px) { .intro .label, .intro .statement, .intro .more { grid-column: 1 / -1; } }

.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 72px); }

/* Featured work on home: offset staggered pairs */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 8vw, 140px); }
.featured > * { min-width: 0; }
.featured .card:nth-child(4n+1) { grid-column: 1 / span 7; }
.featured .card:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: clamp(80px, 16vw, 260px); }
.featured .card:nth-child(4n+3) { grid-column: 2 / span 4; }
.featured .card:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: clamp(60px, 10vw, 160px); }
@media (max-width: 760px) { .featured .card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; } }

/* Card used across Home + Work */
.card { display: block; cursor: pointer; }
.card .media { aspect-ratio: var(--r, 4/5); }
.card:hover .media > img, .card:hover .media > video { transform: scale(1.035); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.card .meta h3 { font-size: clamp(1.05rem, 1.2vw + .6rem, 1.5rem); letter-spacing: -0.02em; font-weight: 500; line-height: 1.2; }
.card .meta h3 .client { font-weight: 300; color: var(--stone); }
.card .meta .tags { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .card .meta { flex-direction: column; gap: 4px; } .card .meta .tags { text-align: left; white-space: normal; } }

.services-list { border-top: 1px solid #2a2a28; }
.services-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid #2a2a28; font-size: clamp(1.75rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; transition: padding .6s var(--ease), color .4s; }
.services-list a .sub { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #8a8a85; text-align: right; }
.services-list a:hover { padding-left: clamp(8px, 2vw, 32px); }
.services-list:hover a:not(:hover) { color: #555551; }
@media (max-width: 640px) { .services-list a .sub { display: none; } }

/* ======================================================================
   WORK
   ====================================================================== */
.work-head { display: grid; gap: clamp(32px, 5vw, 56px); }
.work-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.count { font-size: 0.4em; vertical-align: top; font-weight: 400; letter-spacing: 0; margin-left: .2em; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); background: var(--paper); z-index: 20; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.filters button, .views button { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); transition: color .3s; padding-block: 4px; }
.filters button sup { font-size: .7em; margin-left: 3px; }
.filters button:hover, .views button:hover { color: var(--ink); }
.filters button[aria-pressed="true"], .views button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.views { display: flex; gap: 18px; }
.controls-spacer { height: 0; }

/* Editorial grid */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 6vw, 110px); padding-top: clamp(40px, 5vw, 80px); }
.work-grid > * { min-width: 0; }
.work-grid .card { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.work-grid .card.size-full { grid-column: 1 / -1; }
.work-grid .card.size-full .media { aspect-ratio: 16/8; }
.work-grid .card.size-large { grid-column: span 7; }
.work-grid .card.size-medium { grid-column: span 5; }
.work-grid .card.size-small { grid-column: span 4; }
.work-grid .card.offset { margin-top: clamp(40px, 9vw, 160px); }
@media (min-width: 861px) {
  .work-grid .card.push.size-large { grid-column: 2 / span 7; }
  .work-grid .card.push.size-medium { grid-column: 2 / span 5; }
  .work-grid .card.push.size-small { grid-column: 2 / span 4; }
}
@media (max-width: 860px) {
  .work-grid .card.size-large, .work-grid .card.size-medium { grid-column: 1 / -1; }
  .work-grid .card.size-small { grid-column: span 6; }
  .work-grid .card.offset { margin-top: 0; }
  .work-grid .card.size-full .media { aspect-ratio: 4/3; }
}
@media (max-width: 560px) { .work-grid .card.size-small { grid-column: 1 / -1; } }

/* Index (list) view */
.work-index { padding-top: clamp(24px, 3vw, 40px); }
.work-index .row { display: grid; grid-template-columns: 56px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 60px; align-items: baseline; gap: 20px; padding-block: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--line); cursor: pointer; transition: color .3s, padding .5s var(--ease); }
.work-index .row .t { font-size: clamp(1.25rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.work-index .row .n, .work-index .row .y, .work-index .row .c, .work-index .row .k { font-size: var(--t-small); color: var(--stone); }
.work-index .row .n, .work-index .row .y { font-variant-numeric: tabular-nums; }
.work-index .row .y { text-align: right; }
.work-index:hover .row:not(:hover) { color: #b9b9b4; }
.work-index:hover .row:not(:hover) .t { color: #b9b9b4; }
.work-index .row:hover { padding-left: 12px; }
.work-index .thumb { display: none; }
@media (max-width: 760px) {
  .work-index .row { grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 4px 16px; }
  .work-index .row .thumb { display: block; grid-row: span 3; width: 88px; aspect-ratio: 1; }
  .work-index .row .n, .work-index .row .y { display: none; }
  .work-index .row .c, .work-index .row .k { grid-column: 2; }
  .work-index:hover .row:not(:hover), .work-index:hover .row:not(:hover) .t { color: inherit; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 22vw, 360px); pointer-events: none; opacity: 0; transform: scale(.9); transition: opacity .35s ease, transform .5s var(--ease); }
.peek.on { opacity: 1; transform: scale(1); }
.peek .media { aspect-ratio: 4/5; }
@media (hover: none) { .peek { display: none; } }

.empty { padding-block: 80px; color: var(--stone); }

/* Project overlay */
.project { position: fixed; inset: 0; z-index: 70; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); transition: transform .8s var(--ease); visibility: hidden; }
.project.open { transform: none; visibility: visible; }
.project-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 76px; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; background: var(--paper); }
.project-bar button { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.project-head { padding-top: clamp(32px, 6vw, 90px); padding-bottom: clamp(36px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); }
.project-head > * { min-width: 0; }
.project-head h2 { grid-column: 1 / span 8; font-size: clamp(2.75rem, 8vw, 8rem); line-height: .92; letter-spacing: -0.05em; font-weight: 500; }
.project-head .facts { grid-column: 10 / -1; align-self: end; display: grid; gap: 18px; }
.project-head .facts div { display: grid; gap: 4px; }
.project-head .facts dd { margin: 0; font-size: var(--t-small); }
.project-head .facts dt { color: var(--stone); }
.project-head .sum { grid-column: 1 / span 6; font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.01em; margin: 0; }
@media (max-width: 860px) { .project-head h2, .project-head .facts, .project-head .sum { grid-column: 1 / -1; } .project-head .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); padding-bottom: clamp(60px, 8vw, 120px); }
.project-media > .media { grid-column: span 6; }
.project-media > .media.wide { grid-column: 1 / -1; }
.project-media > .media.third { grid-column: span 4; }
.project-media > .media.half { grid-column: span 6; }
.project-media > .media.solo { grid-column: 4 / span 6; }
@media (max-width: 640px) { .project-media > .media.third, .project-media > .media.half { grid-column: span 6; } .project-media > .media.solo { grid-column: 1 / -1; } }
.work-grid .card.size-full .media { aspect-ratio: 16/8 !important; }
.project-next { display: block; padding-block: clamp(60px, 9vw, 140px); border-top: 1px solid var(--line); }
.project-next .h2 { margin-top: 16px; display: inline-flex; gap: .3em; align-items: baseline; }

/* ======================================================================
   ABOUT
   ====================================================================== */
.about-hero .split .portrait { grid-column: 1 / span 5; }
.about-hero .split .story { grid-column: 7 / -1; align-self: end; display: grid; gap: 40px; }
@media (max-width: 860px) { .about-hero .split .portrait, .about-hero .split .story { grid-column: 1 / -1; } }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts-row .big { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts-row p { margin: 10px 0 0; font-size: var(--t-small); color: var(--stone); }
@media (max-width: 560px) { .facts-row { grid-template-columns: 1fr; } }
.quote { font-size: clamp(2rem, 5vw, 5.25rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 400; max-width: 18ch; text-wrap: balance; margin: 0; }
.quote span { font-weight: 300; }

/* ======================================================================
   WHAT WE DO
   ====================================================================== */
.svc { border-top: 1px solid var(--line); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: clamp(24px, 3.2vw, 44px); }
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary h2 { font-size: clamp(1.75rem, 4.6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; transition: transform .6s var(--ease); }
.svc-item summary:hover h2 { transform: translateX(clamp(6px, 1.2vw, 18px)); }
.svc-item .plus { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; position: relative; flex: none; transition: transform .5s var(--ease), background .3s; }
.svc-item .plus::before, .svc-item .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.svc-item .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.svc-item[open] .plus { background: var(--ink); }
.svc-item[open] .plus::before, .svc-item[open] .plus::after { background: var(--paper); }
.svc-item[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px clamp(16px, 2vw, 32px); padding-bottom: clamp(32px, 4vw, 56px); }
.svc-body > * { min-width: 0; }
.svc-body .media { grid-column: 1 / span 5; aspect-ratio: 4/3; }
.svc-body .txt { grid-column: 7 / -1; display: grid; gap: 24px; align-content: start; }
.svc-body .txt p { margin: 0; font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.01em; }
.svc-body ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.svc-body li { padding-block: 12px; border-top: 1px solid var(--line); font-size: var(--t-small); font-weight: 500; }
@media (max-width: 760px) { .svc-body .media, .svc-body .txt { grid-column: 1 / -1; } .svc-body ul { grid-template-columns: 1fr; } }
.unsure { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); align-items: end; }
.unsure > div:first-child { grid-column: 1 / span 7; }
.unsure > div:last-child { grid-column: 9 / -1; display: grid; gap: 28px; }
.unsure p { margin: 0; }
@media (max-width: 860px) { .unsure > div:first-child, .unsure > div:last-child { grid-column: 1 / -1; } }

/* ======================================================================
   APPROACH
   ====================================================================== */
.pillars { display: grid; }
.pillar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); padding-block: clamp(48px, 7vw, 110px); border-top: 1px solid var(--line); align-items: center; }
.pillar > * { min-width: 0; }
.pillar .no { grid-column: 1 / span 1; font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--stone); align-self: start; padding-top: .6em; }
.pillar .body { grid-column: 2 / span 5; display: grid; gap: 22px; }
.pillar .body h2 { font-size: clamp(2.25rem, 5vw, 5rem); line-height: .98; letter-spacing: -0.045em; font-weight: 500; }
.pillar .body p { margin: 0; font-size: var(--t-lead); line-height: 1.45; max-width: 30ch; letter-spacing: -0.01em; }
.pillar .media { grid-column: 8 / -1; aspect-ratio: 4/3; }
.pillar:nth-child(even) .media { grid-column: 2 / span 5; grid-row: 1; aspect-ratio: 4/5; }
.pillar:nth-child(even) .body { grid-column: 8 / -1; }
@media (max-width: 860px) {
  .pillar .no { grid-column: 1 / -1; padding-top: 0; }
  .pillar .body, .pillar:nth-child(even) .body, .pillar .media, .pillar:nth-child(even) .media { grid-column: 1 / -1; grid-row: auto; }
}

/* ======================================================================
   CONTACT
   ====================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px clamp(16px, 2vw, 32px); }
.contact-grid > * { min-width: 0; }
.contact-grid .left { grid-column: 1 / span 5; display: grid; gap: 48px; align-content: start; }
.contact-grid .right { grid-column: 7 / -1; }
@media (max-width: 860px) { .contact-grid .left, .contact-grid .right { grid-column: 1 / -1; } }
.email-big { font-size: clamp(1.4rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; font-weight: 500; word-break: break-word; line-height: 1.1; }
.copy-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.copy-btn { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.socials { display: grid; border-top: 1px solid var(--line); }
.socials a, .socials span.item { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: var(--t-small); transition: padding .5s var(--ease); }
.socials a:hover { padding-left: 10px; }
.socials .h { color: var(--stone); }
form.enquiry { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.field input, .field textarea, .field select { font: inherit; font-size: var(--t-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #c9c9c4; border-radius: 0; padding: 10px 0 12px; width: 100%; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border: 1px solid #c9c9c4; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; transition: all .3s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--t-small); color: var(--stone); margin: 0; }
.form-status { font-size: var(--t-small); margin: 0; min-height: 1.5em; }
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.next-steps div { border-top: 1px solid #2a2a28; padding-top: 20px; display: grid; gap: 10px; }
.next-steps p { margin: 0; font-size: var(--t-small); }
@media (max-width: 760px) { .next-steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
.hp:focus{left:16px;top:16px;z-index:99;background:var(--paper);padding:8px 12px}

/* Play-with-sound button on films inside a project */
.sound-btn { position: absolute; left: clamp(12px, 1.6vw, 20px); bottom: clamp(12px, 1.6vw, 20px); display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-inline: 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; transition: background .3s, color .3s; }
.sound-btn:hover { background: var(--ink); color: var(--paper); }
.sound-btn span { font-size: 0.75rem; letter-spacing: 0; }

/* ======================================================================
   PORTFOLIO LAYER — knockout hero, stacked projects, outlined marquee
   ====================================================================== */
.hdr-cta { margin-left: clamp(8px, 1vw, 16px); padding: 9px 16px !important; border: 1px solid currentColor; border-radius: 999px; }
.hdr-cta::after { display: none; }
.hdr-cta:hover { background: #fff; color: #000; }

/* Hero: the showreel plays inside the letters */
.hero-k { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--paper); }
.hk-stage { position: relative; overflow: hidden; }
.hk-stage > .media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; background: #111; }
.hk-type { position: relative; margin: 0; background: var(--paper); color: #000; mix-blend-mode: screen; text-transform: uppercase; font-weight: 800; letter-spacing: -0.055em; line-height: 0.78; padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) 0.06em max(var(--pad), env(safe-area-inset-left, 0px)); display: block; }
.hk-the { display: block; font-size: clamp(0.875rem, 1.6vw, 1.5rem); letter-spacing: 0.4em; font-weight: 700; line-height: 1; padding-block: 0.6em 0.2em; }
.hk-line { display: block; font-size: 15vw; }
.hk-lab { line-height: 0.74; }
.hk-meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); padding-block: clamp(24px, 3vw, 40px) clamp(48px, 7vw, 100px); align-items: end; }
.hk-meta > * { min-width: 0; margin: 0; }
.hk-tag { grid-column: 1 / span 5; font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
.hk-tag .muted { font-weight: 300; font-size: 0.8em; }
.hk-list { grid-column: 7 / span 2; line-height: 1.9; }
.hk-mail { grid-column: 9 / -1; justify-self: end; display: grid; gap: 8px; text-align: right; font-size: clamp(1.05rem, 1.7vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.hk-mail span:last-child { border-bottom: 2px solid currentColor; padding-bottom: 4px; transition: opacity .3s; }
.hk-mail:hover span:last-child { opacity: .55; }
@media (max-width: 860px) {
  .hk-tag { grid-column: 1 / -1; }
  .hk-list { grid-column: 1 / span 6; }
  .hk-mail { grid-column: 7 / -1; }
}
@media (max-width: 560px) { .hk-list { display: none; } .hk-mail { grid-column: 1 / -1; justify-self: start; text-align: left; } }

/* Studio intro: offset collage */
.intro2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); align-items: start; }
.intro2 > * { min-width: 0; margin: 0; }
.i2-img { grid-column: 1 / span 3; margin-top: clamp(40px, 8vw, 140px); display: grid; gap: 12px; }
.i2-text { grid-column: 5 / span 6; display: grid; gap: 32px; align-content: start; }
.i2-text .statement { font-size: clamp(1.6rem, 3.2vw, 3.2rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.i2-img2 { grid-column: 11 / -1; margin-top: clamp(120px, 20vw, 340px); }
@media (max-width: 860px) {
  .i2-text { grid-column: 1 / -1; grid-row: 1; }
  .i2-img { grid-column: 1 / span 7; margin-top: 0; }
  .i2-img2 { grid-column: 9 / -1; margin-top: 40%; }
}

/* Selected work: full-screen panels that stack as you scroll */
.stack { position: relative; }
.stack-item { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; overflow: hidden; color: #fff; background: #000; }
.stack-item > .media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.stack-item > .media > img, .stack-item > .media > video { transition: transform 1.6s var(--ease); }
.stack-item:hover > .media > img, .stack-item:hover > .media > video { transform: scale(1.03); }
.stack-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 48%); pointer-events: none; }
.si-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(16px, 3vw, 48px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(24px, 4vw, 56px)); }
.si-num { font-size: clamp(5rem, 16vw, 15rem); font-weight: 800; line-height: .75; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.si-title { display: grid; gap: 12px; padding-bottom: .3em; }
.si-title h3 { font-size: clamp(1.75rem, 4.6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.si-go { padding-bottom: .9em; white-space: nowrap; }
@media (max-width: 640px) { .si-meta { grid-template-columns: 1fr; gap: 12px; } .si-go { display: none; } }

/* Outlined service marquee */
.big-marquee { display: block; overflow: hidden; white-space: nowrap; padding-block: clamp(48px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.bm-track { display: inline-flex; align-items: center; gap: 0.35em; font-size: clamp(3.5rem, 11vw, 11rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; animation: marquee 40s linear infinite; padding-right: .35em; }
.bm-track span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .4s; }
.bm-track i { font-style: normal; font-size: .4em; font-weight: 400; }
.big-marquee:hover .bm-track span { color: var(--ink); }
.big-marquee:hover .bm-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Project numbers */
.card .meta h3 .num { font-size: .55em; font-weight: 500; color: var(--stone); vertical-align: .35em; letter-spacing: 0; margin-right: .3em; }

/* Email as the call to action */
.footer-lead { margin: 18px 0 8px; font-size: var(--t-lead); font-weight: 300; max-width: 36ch; }
.site-footer .footer-cta { font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; margin-top: 12px; white-space: nowrap; transition: opacity .3s; }
.site-footer .footer-cta:hover { opacity: .6; }
.site-footer .copy-btn { color: #9a9a95; }
.contact-mail { display: block; margin-top: clamp(40px, 6vw, 80px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; white-space: nowrap; transition: opacity .3s; }
.contact-mail:hover { opacity: .55; }
.contact-photo { margin: 0; display: grid; gap: 12px; max-width: 380px; }

@keyframes logos { to { transform: translateX(-100%); } }

/* ---------- Brand logo + lockup (Poppins, matching the logo) ---------- */
.logo img { display: block; height: 64px; width: auto; }
@media (max-width: 560px) { .logo img { height: 52px; } .site-header .bar { height: 76px; } }
.menu .logo img { height: 52px; }
.project-bar .logo img { filter: invert(1); }
.hk-type { text-transform: none; letter-spacing: -0.02em; line-height: 0.92; padding-top: 0.04em; padding-bottom: 0.1em; }
.hk-lockup { display: block; }
.hk-lockup > span { display: block; width: max-content; max-width: none; }
.hk-lockup .t { font-weight: 300; }
.hk-lockup .m { font-weight: 600; letter-spacing: -0.025em; }

/* ---------- Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.ig-tile { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--mist); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ig-tile::after { content: "View on Instagram"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .35s; text-align: center; padding: 8px; }
.ig-tile:hover::after, .ig-tile:focus-visible::after { opacity: 1; }
.ig-tile:hover img { transform: scale(1.05); }
.ig-tile .ig-type { position: absolute; top: 10px; right: 10px; z-index: 1; color: #fff; font-size: 0.75rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
@media (max-width: 960px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-k { overflow: hidden; }


/* ======================================================================
   DARK EDITION
   ====================================================================== */
.dark { background: #000; color: var(--ink); }
.menu { background: #000; color: #fff; }
.cursor { background: #fff; }
.project-bar .logo img { filter: none; }
.ph, .ph[data-tone] { background-color: #161615; color: #6f6e69; }
.ph[data-tone="2"], .ph[data-tone="4"] { background-color: #1d1d1b; }
.work-index:hover .row:not(:hover), .work-index:hover .row:not(:hover) .t { color: #4a4a47; }
.field input, .field textarea, .field select { border-bottom-color: #3a3a37; }
.field select option { background: #111; color: #fff; }
.chips span { border-color: #3a3a37; }
.client-item img { filter: none; opacity: .8; }
.client-item img:hover { opacity: 1; filter: none; }
.marquee { border-color: var(--line); }

/* Hero knockout on black: white letters reveal the film */
.hero-k { background: var(--paper); position: relative; }
.hk-type { background: var(--paper); color: #fff; mix-blend-mode: multiply; }

/* Rotating email badge */
.badge { position: absolute; z-index: 5; right: max(var(--pad), env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 96px); width: clamp(104px, 11vw, 150px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .5s var(--ease); }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge text { font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; fill: currentColor; }
.badge .arrow { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1; }
.badge:hover { transform: scale(1.08) rotate(-8deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .badge { top: auto; bottom: 28px; width: 96px; } }

/* Services ribbon: light Poppins, like the logo */
.ribbon { display: block; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(14px, 1.8vw, 22px); }
.ribbon-track { display: inline-flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); padding-right: clamp(20px, 2.4vw, 40px); font-size: clamp(1.5rem, 3.4vw, 3.25rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; animation: marquee 32s linear infinite; }
.ribbon-track b { font-weight: 600; }
.ribbon-track i { font-style: normal; font-size: .45em; color: var(--stone); }
.ribbon:hover .ribbon-track { animation-play-state: paused; }

/* Selected work: framed at true size so films stay sharp */
.stack-item { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 72px); padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line); }
.stack-item::after { display: none; }
.stack-item > .media { position: relative; inset: auto; height: auto !important; aspect-ratio: var(--ratio) !important; width: min(60vw, calc(76vh * var(--ar)), calc(76svh * var(--ar))); grid-column: 2; grid-row: 1; justify-self: end; }
.si-meta { position: static; grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 32px); padding: 0; align-self: center; }
.si-num { color: var(--ink); -webkit-text-stroke: 0; font-weight: 200; font-size: clamp(4.5rem, 11vw, 11rem); letter-spacing: -0.06em; line-height: .8; }
.si-title h3 { font-size: clamp(1.75rem, 3.6vw, 3.75rem); font-weight: 600; }
.si-title .label { color: var(--stone); }
.si-go { padding: 0; display: inline-flex; gap: 12px; align-items: center; }
.si-go::after { content: ""; width: 40px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.stack-item:hover .si-go::after { width: 72px; }
@media (max-width: 760px) {
  .stack-item { grid-template-columns: 1fr; align-content: center; gap: 20px; }
  .stack-item > .media { grid-column: 1; grid-row: 1; justify-self: start; width: min(100%, calc(60svh * var(--ar))); }
  .si-meta { grid-row: 2; gap: 10px; }
  .si-num { font-size: 3.5rem; }
  .si-go { display: inline-flex; }
}

/* A little film grain over everything */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-2%); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } .badge svg { animation: none; } .ribbon-track { animation: none; } }
html { overflow-x: clip; }
.hk-stage > .media video, .hk-stage > .media img { filter: brightness(1.18) contrast(1.05) saturate(1.05); }
.hk-type.hk-ghost { position: absolute; top: 0; left: 0; right: 0; background: transparent; mix-blend-mode: normal; color: rgba(255,255,255,.16); pointer-events: none; }

/* Square "start a project" card (replaces the round badge) */
.badge { border-radius: 0; aspect-ratio: auto; width: clamp(170px, 15vw, 220px); display: grid; grid-template-rows: auto 1fr auto; gap: 18px; place-items: stretch; padding: 16px 16px 14px; text-align: left; background: var(--ink); color: var(--paper); transform: rotate(-4deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.badge svg { display: none; }
.badge .b-top { font-size: 0.625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.badge .b-main { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; }
.badge .b-main::first-line { font-weight: 600; }
.badge .b-bot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid currentColor; padding-top: 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.badge .b-arrow { font-size: 1.1rem; letter-spacing: 0; transition: transform .4s var(--ease); }
.badge:hover { transform: rotate(0deg) scale(1.04); }
.badge:hover .b-arrow { transform: translate(3px, -3px); }
@media (max-width: 560px) { .badge { width: 150px; top: auto; bottom: 24px; gap: 10px; } .hk-list { display: block !important; grid-column: 1 / -1; } .hk-mail { margin-top: 4px; } }
.hk-list { grid-column: 7 / span 3; }
.hk-mail { grid-column: 10 / -1; }
@media (max-width: 860px) { .hk-list { grid-column: 1 / span 6; } .hk-mail { grid-column: 7 / -1; } }
@media (max-width: 560px) { .badge { display: none; } .hk-mail { grid-column: 1 / -1; } }
@media (max-width: 560px) { .hk-list { grid-column: 1 / -1; } }
/* Hero intro line: bigger now the service list is gone */
.hk-tag { grid-column: 1 / span 8; font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; }
.hk-tag .muted { display: block; margin-top: .5em; font-size: .42em; line-height: 1.5; letter-spacing: 0; }
.hk-mail { grid-column: 10 / -1; }
@media (max-width: 860px) { .hk-tag { grid-column: 1 / -1; } .hk-mail { grid-column: 1 / -1; justify-self: start; text-align: left; } }
.ribbon-track { gap: clamp(36px, 4.5vw, 72px); padding-right: clamp(36px, 4.5vw, 72px); }

/* ======================================================================
   GALLERY — a messy pinboard of prints
   ====================================================================== */
.gal-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.gal-intro { margin: 0; max-width: 30ch; }
.gal-intro .muted { display: block; margin-top: .6em; font-size: .62em; line-height: 1.55; letter-spacing: 0; }
.gal-hint-touch { display: none !important; }
@media (hover: none), (pointer: coarse) { .gal-hint-mouse { display: none !important; } .gal-hint-touch { display: block !important; } }
.gal-controls { margin-bottom: clamp(28px, 4vw, 56px); }
.gal-actions { display: flex; gap: 10px; }
.gal-btn { height: 40px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: background .3s, color .3s, border-color .3s; }
.gal-btn span { font-size: 1rem; letter-spacing: 0; display: inline-block; transition: transform .6s var(--ease); }
.gal-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gal-btn:hover span { transform: rotate(-180deg); }
.gal-btn[aria-pressed="true"] { border-color: var(--ink); }
.gal-wrap .controls { position: sticky; }

.board { position: relative; min-height: 60vh; transition: height .9s var(--ease); }
.pin { position: absolute; left: 0; top: 0; padding: var(--pad, 9px) var(--pad, 9px) 0; background: #f4f2ec; color: #111; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: auto;
  box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 14px 30px -10px rgba(0,0,0,.65);
  transition: transform .9s var(--ease), box-shadow .3s, opacity .5s; will-change: transform; opacity: 0; }
.board.ready .pin { opacity: 1; }
.board.ready .pin:nth-child(3n) { transition-delay: 0s, 0s, .05s; }
.pin:hover { box-shadow: 0 2px 2px rgba(0,0,0,.25), 0 26px 50px -12px rgba(0,0,0,.8); }
.pin.dragging { cursor: grabbing; transition: box-shadow .3s; box-shadow: 0 4px 4px rgba(0,0,0,.25), 0 40px 70px -14px rgba(0,0,0,.85); }
.board.shuffling .pin { transition: transform 1s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s, opacity .5s; }
.pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pin-media { position: relative; overflow: hidden; background: #ddd; }
.pin-media img, .pin-media video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pin-play { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 10px; padding-left: 2px; }
.pin-cap { display: flex; align-items: center; height: var(--cap, 32px); font-size: clamp(0.625rem, .8vw, 0.75rem); font-weight: 500; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2a2a28; }
.tape { position: absolute; z-index: 2; width: 38%; height: 22px; background: rgba(240, 236, 222, .55); box-shadow: 0 1px 2px rgba(0,0,0,.12); backdrop-filter: blur(1px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%); }
.tape.t1 { top: -10px; left: 31%; transform: rotate(-4deg); }
.tape.t2 { top: -8px; left: -12px; width: 30%; transform: rotate(-38deg); }
.tape.t3 { top: -8px; right: -12px; width: 30%; transform: rotate(36deg); }

/* Sticky notes */
.pin.note { padding: 0; background: transparent; box-shadow: none; cursor: grab; }
.note-in { aspect-ratio: 1 / .86; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 1.6vw, 22px); background: #f6e35a; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 16px 30px -10px rgba(0,0,0,.6); }
.note-1 .note-in { background: var(--ink); }
.note-in p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: 1.15; font-weight: 300; letter-spacing: -0.02em; }
.note-in a { font-size: clamp(0.6875rem, .85vw, 0.8125rem); font-weight: 700; word-break: break-all; border-bottom: 1.5px solid currentColor; align-self: flex-start; }
.note-arrow { font-size: 1.6rem; line-height: 1; align-self: flex-end; }
@media (max-width: 760px) { .note-in p { font-size: 0.95rem; } .pin-cap { font-size: 0.5625rem; } .tape { height: 16px; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 75; background: rgba(5,5,5,.94); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 64px) max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 20px) max(12px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .35s ease; }
.lb.open { opacity: 1; }
.lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); right: max(var(--pad), env(safe-area-inset-right, 0px)); font-size: 0.75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.lb-nav { width: 48px; height: 48px; border: 1px solid #3a3a37; border-radius: 50%; font-size: 1.1rem; transition: background .3s, color .3s; }
.lb-nav:hover { background: var(--ink); color: var(--paper); }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lb-media { width: min(100%, calc((100svh - 190px) * var(--ar, 1))); aspect-ratio: var(--ar, 1); background: #111; transform: scale(.96); transition: transform .5s var(--ease); }
.lb.open .lb-media { transform: none; }
.lb-media img, .lb-media video { width: 100%; height: 100%; object-fit: contain; }
.lb-cap { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.lb-title { font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em; }
.lb-title .muted { font-weight: 300; }
.lb-meta { display: inline-flex; gap: 24px; align-items: center; font-size: var(--t-small); }
@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; align-content: center; }
  .lb-fig { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: start; } .lb-next { grid-row: 2; justify-self: end; }
  .lb-media { width: min(100%, calc((100svh - 260px) * var(--ar, 1))); }
}
@media (prefers-reduced-motion: reduce) { .pin, .board { transition: none !important; } }
.board { isolation: isolate; z-index: 1; }
.note-sig { align-self: flex-end; font-size: 0.75rem; font-weight: 500; opacity: .6; }
.lb { background: rgba(5,5,5,.97); }
.gal-dock { position: fixed; z-index: 40; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); height: 52px; padding-inline: 24px; border-radius: 999px; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 14px 34px rgba(0,0,0,.5); transform: translate(-50%, 140%); transition: transform .6s var(--ease); }
.gal-dock.on { transform: translate(-50%, 0); }
.gal-dock span { font-size: 1.1rem; letter-spacing: 0; display: inline-block; transition: transform .6s var(--ease); }
.gal-dock:hover span, .gal-dock:active span { transform: rotate(-180deg); }
