/* FORM HOUSE — shared styles */

:root {
  --bone: #F4F0EA;
  --linen: #EAE3D9;
  --sand: #D8CCBC;
  --ink: #1E1915;
  --umber: #2B231D;
  --muted: #6F6358;
  --line: rgba(30, 25, 21, .14);
  --line-light: rgba(244, 240, 234, .28);
  --error: #9A3B2E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --text: 640px;
  --pad: clamp(56px, 9vw, 120px);
  --ease: cubic-bezier(.2, .6, .2, 1);
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--sand); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--pad) 0; }
.section.tight-top { padding-top: 0; }
.section.alt { background: var(--linen); }

/* Type */
.eyebrow {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 20px;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.005em;
}
.display em { font-style: italic; }
h1.display { font-size: clamp(38px, 5vw, 72px); }
h2.display { font-size: clamp(28px, 3.2vw, 44px); }
h3.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.4;
  font-weight: 300;
}
.prose { max-width: var(--text); color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose .lede { color: var(--ink); }
.small { font-size: 15px; }
.note { font-size: 14px; color: var(--muted); max-width: var(--text); }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--bone); }
.on-dark .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.on-dark .btn:hover { background: transparent; color: var(--bone); }
.on-dark .btn.outline { background: transparent; color: var(--bone); }
.on-dark .btn.outline:hover { background: var(--bone); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 6px 0;
  white-space: nowrap;
}
.link::after { content: ""; width: 32px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.link:hover::after { width: 56px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ink);
  background: rgba(244, 240, 234, .96);
  border-bottom: 1px solid var(--line);
  transition: background .5s, color .5s, border-color .5s;
}
.has-hero .site-header:not(.scrolled) { color: var(--bone); background: transparent; border-color: transparent; }
.site-header.scrolled { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hdr {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header);
}
.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .4em;
  white-space: nowrap;
  margin-right: auto;
}
.nav {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; 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; }
.hdr-cta {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.hdr-cta:hover { background: transparent; color: var(--ink); }
.has-hero .site-header:not(.scrolled) .hdr-cta { background: transparent; color: var(--bone); border-color: var(--bone); }
.has-hero .site-header:not(.scrolled) .hdr-cta:hover { background: var(--bone); color: var(--ink); }
.hdr-cta .short { display: none; }
.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  padding: 12px 0;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--umber);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--header) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a:not(.btn) { font-family: var(--serif); font-size: clamp(34px, 9vw, 48px); font-weight: 300; line-height: 1.3; }
.menu .btn { margin-top: 36px; align-self: flex-start; }
.menu-open { overflow: hidden; }
.menu-open .site-header { color: var(--bone) !important; background: transparent !important; border-color: transparent !important; }
.menu-open .site-header .hdr-cta { visibility: hidden; }

/* Home hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--bone);
  overflow: hidden;
  background: var(--umber);
  display: flex;
}
.hero > img {
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  animation: heroSettle 3s var(--ease) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 9, .62) 0%, rgba(18, 13, 9, .3) 55%, rgba(18, 13, 9, .12) 100%),
    linear-gradient(180deg, rgba(18, 13, 9, .35) 0%, rgba(18, 13, 9, 0) 25%, rgba(18, 13, 9, .45) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header) + 48px);
  padding-bottom: clamp(48px, 9vh, 112px);
}
.hero .eyebrow { color: rgba(244, 240, 234, .82); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 28px; max-width: 36ch; }
.hero .hero-body { margin-top: 18px; max-width: 54ch; color: rgba(244, 240, 234, .82); font-size: 16px; }

/* Inner page hero */
.page-hero { padding-top: calc(var(--header) + clamp(48px, 7vw, 104px)); padding-bottom: var(--pad); }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.page-hero h1 { max-width: 16ch; }
.page-hero .prose { margin-top: 32px; }
.page-hero-img { aspect-ratio: 4 / 5; overflow: hidden; }

/* Two-column intro */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split h2 { max-width: 14ch; }

/* Section heads */
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.head > div { max-width: var(--text); }
.head .prose { margin-top: 20px; }
.section-cta { margin-top: clamp(40px, 5vw, 64px); }

/* Capability rows */
.caps { display: grid; gap: clamp(32px, 4vw, 56px); margin-top: clamp(48px, 6vw, 88px); }
.cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.cap-img { aspect-ratio: 3 / 2; overflow: hidden; }
.cap:nth-child(even) .cap-img { order: 2; }
.cap .prose { margin-top: 14px; }

/* Three text columns */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.col { border-top: 1px solid var(--line); padding-top: 28px; }
.col .prose { margin-top: 14px; font-size: 16px; }
.col-num { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 16px; }

/* Cards (delivery models) */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.card-img { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 26px; }
.card-img img { transition: transform 1.4s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card .tagline { font-family: var(--serif); font-style: italic; font-size: 20px; margin-top: 6px; color: var(--ink); }
.card .prose { margin-top: 12px; font-size: 16px; }

/* Work tiles */
.work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.work-grid .stack { display: grid; gap: clamp(20px, 3vw, 40px); }
.tile { display: block; }
.tile .card-img { margin-bottom: 0; }
.work-grid > .tile .card-img { aspect-ratio: 4 / 5; }
.work-grid .stack .card-img { aspect-ratio: 16 / 11; }
.tile:hover .card-img img { transform: scale(1.04); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.tile-meta span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Enquiry banner */
.banner { position: relative; color: var(--bone); background: var(--umber); overflow: hidden; }
.banner > img { position: absolute; inset: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(22, 17, 13, .74); }
.banner .wrap { position: relative; z-index: 1; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.banner .eyebrow { color: rgba(244, 240, 234, .7); }
.banner .prose { color: rgba(244, 240, 234, .82); margin-top: 24px; }
.banner .base { margin-top: 28px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 240, 234, .7); }
.banner.plain::after { display: none; }

/* Values 2x2 */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(32px, 6vw, 96px); }
.value { border-top: 1px solid var(--line); padding-top: 28px; }
.value .prose { margin-top: 12px; font-size: 16px; }

/* Process steps */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  gap: 24px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step-num { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; font-weight: 300; color: var(--muted); }
.step p { color: var(--muted); max-width: 52ch; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.stage { padding: 32px 28px 8px 0; position: relative; }
.stage + .stage { padding-left: 28px; border-left: 1px solid var(--line); }
.stage::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.stage + .stage::before { left: -5px; }
.stage-num { font-family: var(--serif); font-size: clamp(44px, 4.4vw, 64px); line-height: 1; font-weight: 300; display: block; margin-bottom: 18px; }
.stage .prose { margin-top: 10px; font-size: 16px; }
.timeline-note { margin-top: 40px; }

/* Materials */
.category { padding-top: var(--pad); }
.category + .category { border-top: 1px solid var(--line); margin-top: var(--pad); }
.category-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 88px); }
.category-head .prose { margin-top: 24px; }
.rows { display: grid; gap: clamp(56px, 8vw, 120px); }
.row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.row:nth-child(even) .row-img { order: 2; }
.row-img { aspect-ratio: 4 / 5; overflow: hidden; }
.row-img.wide { aspect-ratio: 4 / 3; }
.row-text .prose { margin-top: 20px; }
.apps-label { margin: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }

/* Work page */
.project { padding-top: clamp(56px, 8vw, 112px); }
.project + .project { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 112px); }
.project-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px clamp(24px, 3vw, 40px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.project-head .eyebrow { margin-bottom: 0; }
.project-head .eyebrow:last-child { text-align: right; }
.gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(14px, 2vw, 28px);
  height: min(115vh, 1040px);
}
.gallery figure { overflow: hidden; }
.gallery figure:first-child { grid-row: span 2; }

/* Enquire */
.enquire-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 7vw, 112px);
  padding-top: calc(var(--header) + clamp(48px, 7vw, 104px));
  padding-bottom: var(--pad);
  align-items: start;
}
.enquire-intro { position: sticky; top: calc(var(--header) + 32px); }
.enquire-intro .prose { margin-top: 28px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; }
.form-error {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border: 1px solid var(--error);
  color: var(--error);
  font-size: 15px;
}
.form-error[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form > fieldset, .form .form-foot { grid-column: 1 / -1; }
.field label, .form legend {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
}
.req { color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(30, 25, 21, .3);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input[type="file"] { border: 1px dashed rgba(30, 25, 21, .3); padding: 16px; cursor: pointer; font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); }
.field-msg { font-size: 14px; color: var(--error); min-height: 0; }
.field-msg:empty { display: none; }
.invalid input, .invalid textarea, .invalid select { border-color: var(--error); }
.invalid label, .invalid legend { color: var(--error); }

.form fieldset { border: 0; }
.form legend { margin-bottom: 16px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; }
.check input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px; height: 18px;
  border: 1px solid rgba(30, 25, 21, .4);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.check input::after { content: ""; width: 10px; height: 10px; background: var(--ink); transform: scale(0); transition: transform .2s; }
.check input:checked::after { transform: scale(1); }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 8px; }
.privacy { font-size: 14px; color: var(--muted); max-width: 60ch; }
.hp { position: absolute; left: -9999px; }
a.hp:focus { left: 16px; top: 16px; z-index: 60; background: var(--bone); color: var(--ink); padding: 10px 16px; }

/* Footer */
.site-footer { background: var(--umber); color: var(--bone); padding: clamp(64px, 8vw, 112px) 0 36px; }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-light);
}
.foot-top .lede { max-width: 20ch; text-align: right; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 48px 0 64px; }
.foot-cols .eyebrow { color: rgba(244, 240, 234, .55); }
.foot-cols a:not(.btn), .foot-cols p { display: block; font-size: 15px; color: rgba(244, 240, 234, .85); line-height: 2; }
.foot-cols a:not(.btn):hover { color: var(--bone); }
.foot-cols .btn { margin-top: 16px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 24px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 240, 234, .55);
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(6% 0 0 0); transition: clip-path 1.5s var(--ease); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > img { animation: none; transform: none; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .card-img img { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hdr { gap: 20px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .stage:nth-child(3) { padding-left: 0; border-left: 0; }
  .stage:nth-child(3)::before { left: 0; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .project-head { grid-template-columns: auto 1fr; }
  .project-head .eyebrow:last-child { grid-column: 2; text-align: left; }
}

@media (max-width: 860px) {
  :root { --header: 68px; }
  body { font-size: 16px; }
  .wordmark { font-size: 16px; letter-spacing: .34em; }
  .hdr-cta { min-height: 38px; padding: 8px 14px; font-size: 12px; }
  .hdr-cta .long { display: none; }
  .hdr-cta .short { display: inline; }

  .split, .page-hero-grid, .row, .cap, .enquire-grid, .work-grid, .values { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-img, .cap:nth-child(even) .cap-img { order: 0; }
  .cols3, .cards3 { grid-template-columns: 1fr; gap: 48px; }
  .head { flex-direction: column; align-items: flex-start; }
  .enquire-intro { position: static; }

  .step { grid-template-columns: 56px 1fr; gap: 8px 20px; padding: 28px 0; }
  .step p { grid-column: 2; }
  .step-num { font-size: 32px; }

  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); margin-left: 4px; }
  .stage, .stage + .stage, .stage:nth-child(3) { padding: 0 0 40px 28px; border-left: 0; border-top: 0; margin-top: 0; }
  .stage::before, .stage + .stage::before, .stage:nth-child(3)::before { top: 8px; left: -5px; }
  .stage-num { font-size: 40px; margin-bottom: 10px; }

  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gallery figure { aspect-ratio: 4 / 5; }
  .gallery figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .project-head { grid-template-columns: 1fr; gap: 10px; }
  .project-head .eyebrow:last-child { grid-column: auto; }

  .form { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-top .lede { text-align: left; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .actions .btn, .section-cta .btn, .form-foot .btn { width: 100%; }
  .checks { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
}
