@font-face {
  font-family: 'Inter Tight';
  src: url('/assets/InterTight.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --mute: #6a6a68;
  --line: #dcdcd9;
  --tile: #efefed;
  --paper: #fff;
  --pad: clamp(16px, 1.6vw, 28px);
  --gap: clamp(10px, 1vw, 16px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.4 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, p, figure, dl, dd, fieldset { margin: 0; padding: 0; border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: 8px; z-index: 30; background: var(--ink); color: #fff; padding: 8px 12px; }

.display {
  font-size: clamp(44px, 7.6vw, 124px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.lead {
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1.16;
  letter-spacing: -.022em;
}
.section-name { font-size: 15px; font-weight: 400; color: var(--mute); }
.text-link { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.mark {
  padding: 8px 11px; font-size: 16px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2;
  background: rgba(238, 238, 236, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
}
.nav {
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  background: rgba(238, 238, 236, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  font-size: 14px;
}
.nav a { padding: 6px 11px; border-radius: 5px; transition: background .2s ease, color .2s ease; }
.nav a:not(.nav-cta) { color: var(--mute); }
.nav a:not(.nav-cta):hover, .nav a[aria-current]:not(.nav-cta) { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff; }
.nav-cta:hover { background: #3a3a3a; }

/* Home */
.intro { padding: clamp(20px, 3vw, 44px) var(--pad) 0; }
.intro p {
  max-width: 24em;
  margin-left: calc((100% + var(--gap)) / 4);
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1.16;
  letter-spacing: -.022em;
  color: var(--mute);
}
.work { padding: clamp(90px, 15vw, 230px) var(--pad) 0; }
.controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin: clamp(32px, 5vw, 72px) 0 clamp(40px, 7vw, 110px);
}
.control { display: grid; grid-template-columns: subgrid; grid-column: span 2; }
.control:last-child { grid-column: 3 / span 2; }
.control-name { font-size: 14px; }
.control-opts { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
.control-opts button { padding: 1px 0; transition: color .2s ease; }
.control-opts button[aria-pressed='false'] { color: var(--mute); }
.control-opts button[aria-pressed='true'] { color: var(--ink); }
.control-opts button[aria-pressed='true']::before { content: '• '; }
.control-opts button:hover { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 4vw, 60px) var(--gap);
  align-items: end;
}
.tile[hidden] { display: none; }
.label { display: block; margin-bottom: 7px; font-size: 13px; }
.label::before { content: '• '; }
.frame { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--tile); }
.tile-tall .frame { aspect-ratio: 4 / 5.4; }
.tile-square .frame { aspect-ratio: 1 / 1; }
.laptop { position: relative; display: block; width: 90%; aspect-ratio: 400 / 230; transition: transform .4s ease; }
.tile a:hover .laptop { transform: scale(1.025); }
/* Screen opening in laptop.svg: x 40-360, y 9-203 of a 400 x 230 viewBox */
.screen { position: absolute; left: 10%; top: 3.9%; width: 80%; height: 84.4%; overflow: hidden; background: #111; }
/* Pages start just below the notch (bottom of notch = y 15 of the viewBox, 3.1% of the screen). */
.screen img, .screen video { position: absolute; left: 0; top: 3.1%; width: 100%; height: 96.9%; object-fit: cover; object-position: 50% 0; }
.screen .fit { object-fit: contain; object-position: 50% 50%; }
.screen video { opacity: 0; transition: opacity .3s ease; }
.screen.playing video { opacity: 1; }
.laptop-shell { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tile a:hover .label { color: var(--mute); }

.rows { border-top: 1px solid var(--line); }
.rows a {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.rows:hover a { color: var(--mute); }
.rows a:hover { color: var(--ink); }
.row-name { grid-column: span 2; font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.row-year { text-align: right; }

.about {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: clamp(100px, 14vw, 210px) var(--pad) 0;
}
.about-body { grid-column: 2 / -1; max-width: 860px; }
.about-body > p + p { margin-top: 22px; max-width: 34em; font-size: 17px; line-height: 1.4; color: var(--mute); }
.steps { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.steps span { color: var(--ink); }

.closer { padding: clamp(100px, 14vw, 210px) var(--pad) clamp(60px, 8vw, 110px); }
.closer a, .next a { transition: opacity .2s ease; }
.closer a:hover, .next a:hover { opacity: .55; }

/* Footer */
.foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: 16px var(--pad) 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot-mark { font-weight: 600; letter-spacing: -.02em; }
.foot ul { grid-column: 3 / -1; }
.foot a:hover { color: var(--mute); }

/* Case study */
.study { padding: clamp(60px, 9vw, 140px) var(--pad) 0; }
.study-head { margin-bottom: 0; }
.study-head .lead { margin-top: 18px; color: var(--mute); max-width: 26em; }
.shot { display: grid; place-items: center; padding: clamp(28px, 6vw, 96px) clamp(16px, 5vw, 80px); background: var(--tile); }
.shot .laptop { width: 100%; max-width: min(1040px, 115vh); }
.shot-small .laptop { max-width: 640px; }
.screen-white { background: #fff; }
.study-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: clamp(36px, 5vw, 72px) 0;
}
.meta { font-size: 14px; display: grid; gap: 14px; align-content: start; }
.meta dt { color: var(--mute); }
.meta a { text-decoration: underline; text-underline-offset: 3px; }
.study-text { grid-column: 2 / -1; max-width: 780px; }
.study-text > p:not(.credit) { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.22; letter-spacing: -.015em; }
.study-text > p + p:not(.credit) { margin-top: 18px; }
.study-text .section-name { margin: clamp(32px, 4vw, 52px) 0 10px; }
.delivered { border-top: 1px solid var(--line); }
.delivered li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.credit { margin-top: 14px; color: var(--mute); }
.gallery { margin-top: var(--gap); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gallery .shot:last-child:nth-child(odd) { grid-column: 1 / -1; }
.next { margin-top: clamp(80px, 11vw, 160px); padding: 16px var(--pad) clamp(60px, 8vw, 110px); }
.next .label { margin-bottom: 14px; }
.next .display { display: block; }

/* Enquiry */
.enquire {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 5vw, 72px) var(--gap);
  padding: clamp(60px, 9vw, 140px) var(--pad) clamp(70px, 9vw, 130px);
}
.enquire > header { grid-column: 1 / -1; }
.enquire > header .lead { margin-top: 18px; color: var(--mute); }
form { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gap); max-width: 860px; }
.field-wide { grid-column: 1 / -1; }
.trap { position: absolute; left: -9999px; }
.field legend { padding: 0; }
.field label, .field legend { display: flex; justify-content: space-between; width: 100%; font-size: 14px; margin-bottom: 4px; }
.opt { color: var(--mute); }
.field input:not([type='radio'], [type='checkbox']), .field textarea {
  width: 100%;
  padding: 8px 0;
  font: inherit;
  font-size: 18px;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid #8d8d8a;
  border-radius: 0;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field ::placeholder { color: #767674; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: block !important; width: auto !important; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 7px 12px; border-radius: 5px; background: var(--tile); transition: background .2s ease, color .2s ease; }
.chip:hover span { background: #e0e0dd; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.submit {
  display: inline-block; padding: 13px 20px;
  background: var(--ink); color: #fff; border-radius: 6px; font-size: 16px;
  transition: background .2s ease;
}
.submit:hover { background: #3a3a3a; }
.thanks { min-height: 62vh; display: block; }
.thanks .lead { margin: 18px 0 22px; color: var(--mute); }

/* Tablet */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .intro p { margin-left: 0; }
  .about, .study-body, .enquire { grid-template-columns: 1fr; }
  .about-body, .study-text, form { grid-column: 1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot ul { grid-column: 2; }
  .controls { grid-template-columns: 1fr 1fr; }
  .control, .control:last-child { grid-column: auto; display: block; }
  .control-name { display: block; margin-bottom: 6px; color: var(--mute); }
  .rows a { grid-template-columns: 1fr auto; }
  .row-name { grid-column: 1; }
  .row-service { grid-row: 2; color: var(--mute); }
  .row-year { grid-column: 2; grid-row: 1; }
}

/* Phone */
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .tile-tall .frame, .tile-square .frame { aspect-ratio: 1 / 1; }
  form { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 2px; }
  .foot { grid-template-columns: 1fr; }
  .foot ul { grid-column: 1; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
