/* Ardium — single-page site
   Black & white with warm greys. Serif display (echoes the wordmark) + wide-tracked sans (echoes the tagline). */

:root {
  --ink: #0e0e0d;
  --ink-2: #1a1a18;
  --paper: #f7f6f3;
  --stone: #ebe9e4;
  --stone-2: #d9d6cf;
  --mute: #7d7a73;
  --mute-light: #a8a59e;
  --line: rgba(14, 14, 13, 0.14);
  --line-light: rgba(247, 246, 243, 0.18);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::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(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.dark { background: var(--ink); color: var(--paper); }

/* ---------- type primitives ---------- */
.label, .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}
.label.light { color: var(--mute-light); }
.eyebrow.light { color: rgba(247, 246, 243, 0.82); }
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.lead em { font-style: italic; }
.body { color: #4a4843; max-width: 60ch; font-size: 16.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap 0.35s var(--ease), opacity 0.3s;
}
.link-arrow::after { content: "→"; letter-spacing: 0; font-size: 14px; }
.link-arrow:hover { gap: 22px; }
.link-arrow.light { color: var(--paper); }

/* 12-col layout used for label + content rows */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.grid-12 > .label { grid-column: 1 / span 3; padding-top: 0.9em; }
.grid-12 > :not(.label) { grid-column: 4 / span 9; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--paper);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height 0.45s var(--ease); }
.brand img { width: 148px; height: auto; transition: filter 0.45s var(--ease); }
.nav { display: flex; gap: clamp(24px, 3vw, 44px); align-items: center; }
.nav a {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { border: 1px solid currentColor; padding: 10px 18px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: currentColor; }
.nav .nav-cta:hover { color: inherit; }
.site-header:not(.solid) .nav .nav-cta:hover { background: var(--paper); color: var(--ink); }
.site-header.solid .nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

.site-header.solid {
  background: rgba(247, 246, 243, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-header.solid .header-inner { height: 68px; }
.site-header.solid .brand img { filter: invert(1); }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--serif); font-size: 46px; line-height: 1.25; }
.menu-open .site-header, .site-header.menu-open { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.menu-open .brand img { filter: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero-media, .hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-video.ready { opacity: 1; }
.hero-poster { animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,13,0.55) 0%, rgba(14,14,13,0) 22%),
    linear-gradient(90deg, rgba(14,14,13,0.45) 0%, rgba(14,14,13,0) 60%),
    linear-gradient(0deg, rgba(14,14,13,0.82) 0%, rgba(14,14,13,0.35) 45%, rgba(14,14,13,0.15) 100%);
}
.hero-content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(36px, 6vh, 64px);
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6.6vw, 104px);
  line-height: 1.02; letter-spacing: -0.015em;
  margin: 22px 0 clamp(36px, 7vh, 72px);
  max-width: 15ch;
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-top: 22px; border-top: 1px solid var(--line-light);
}
.hero-caption { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(247,246,243,0.7); }
.hero .eyebrow, .hero-title, .hero-foot { animation: rise 1.2s var(--ease) both; }
.hero-title { animation-delay: 0.12s; }
.hero-foot { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- practice + services ---------- */
.practice-body { display: grid; gap: 36px; }
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
/* each card is a subgrid of 4 shared rows (number, title, text, list), so the lists line up across columns */
.service { padding: 36px 36px 8px 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.service + .service { padding-left: 36px; border-left: 1px solid var(--line); }
.service-no { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; color: var(--mute); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 42px); line-height: 1.1; margin: 44px 0 16px; }
.service p { color: #4a4843; max-width: 34ch; }
.service ul { margin-top: 28px; align-self: start; }
.service li { font-size: 13.5px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ---------- work ---------- */
.work { padding-top: clamp(40px, 6vw, 80px); background: var(--paper); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.count { font-family: var(--serif); font-size: 22px; color: var(--mute); }
.work-cover { position: relative; height: min(88vh, 900px); min-height: 440px; overflow: hidden; background: var(--ink); color: var(--paper); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.work-cover.in img { transform: scale(1); }
.work-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,14,13,0.7) 0%, rgba(14,14,13,0) 50%); }
.work-cover-title { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 64px); z-index: 1; margin: 0 auto; }
.work-cover-title h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 12vw, 190px); line-height: 0.9; letter-spacing: -0.02em; }
.work-cover-title p { margin-top: 14px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(247,246,243,0.78); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.facts > div { padding: 30px 24px 30px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.facts dd { font-family: var(--serif); font-size: 21px; line-height: 1.3; }

.story { padding: clamp(80px, 10vw, 150px) 0 0; }
.story-body { display: grid; gap: 30px; }

/* columns in the photos' own ratio (1:1 and 16:9) so both images come out the same height and the captions line up */
.compare { display: grid; grid-template-columns: 1fr 1.7778fr; gap: 24px; margin-top: clamp(64px, 8vw, 110px); align-items: start; }
.compare img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone); }
.compare figure:last-child img { aspect-ratio: 16 / 9; }
.compare figcaption { margin-top: 16px; font-size: 14px; color: #4a4843; max-width: 46ch; }
.compare figcaption span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }

.keywords { margin-top: 18px; border-top: 1px solid var(--line); }
.keywords li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.keywords h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.keywords p { color: #4a4843; max-width: 48ch; }

.materials { background: var(--stone); margin-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(80px, 10vw, 140px); }
.materials .story { padding-top: clamp(80px, 10vw, 140px); }
.material-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 96px); }
.material-feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.9s var(--ease); }
/* mouse: colour on hover. touch (no hover): colour fades in as the photo reaches the middle of the screen (main.js adds .in-colour) */
@media (hover: hover) { .material-feature figure:hover img { filter: none; } }
@media (hover: none) { .material-feature figure.in-colour img { filter: none; transition-duration: 1.4s; } }
.material-feature h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 22px 0 8px; }
.material-feature p { color: #4a4843; font-size: 15px; max-width: 40ch; }
.material-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.material-list li { border-top: 1px solid rgba(14,14,13,0.22); padding-top: 18px; }
.material-list h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 6px; }
.material-list p { font-size: 14.5px; color: #4a4843; }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 260px);
  grid-auto-flow: dense; gap: 14px;
  margin-top: clamp(80px, 10vw, 150px);
}
.g { position: relative; overflow: hidden; background: var(--stone); display: block; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s; }
.g:hover img { transform: scale(1.035); }
/* desktop: explicit 4 x 5 editorial layout, no holes */
@media (min-width: 1081px) {
  .gallery { grid-template-rows: repeat(5, clamp(150px, 17vw, 260px)); grid-auto-flow: row; }
  .gallery .g:nth-child(1)  { grid-area: 1 / 1 / 2 / 3; }  /* lounge */
  .gallery .g:nth-child(2)  { grid-area: 1 / 3 / 3 / 4; }  /* stone basin */
  .gallery .g:nth-child(3)  { grid-area: 1 / 4 / 2 / 5; }  /* majlis */
  .gallery .g:nth-child(4)  { grid-area: 2 / 1 / 4 / 2; }  /* terrace, valley */
  .gallery .g:nth-child(5)  { grid-area: 2 / 2 / 3 / 3; }  /* mud alcove */
  .gallery .g:nth-child(6)  { grid-area: 2 / 4 / 4 / 5; }  /* window seat */
  .gallery .g:nth-child(7)  { grid-area: 3 / 2 / 4 / 4; }  /* veranda */
  .gallery .g:nth-child(8)  { grid-area: 4 / 1 / 6 / 2; }  /* stone path */
  .gallery .g:nth-child(9)  { grid-area: 4 / 2 / 5 / 4; }  /* papier-mache */
  .gallery .g:nth-child(10) { grid-area: 4 / 4 / 6 / 5; }  /* terrace, night */
  .gallery .g:nth-child(11) { grid-area: 5 / 2 / 6 / 4; }  /* basins */
}
/* tablet / phone: two columns, the four landscape shots run full width */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g:nth-child(1), .gallery .g:nth-child(7), .gallery .g:nth-child(11) { grid-column: span 2; }
}

.outcome { padding: clamp(96px, 12vw, 180px) var(--gutter) var(--section); text-align: center; }
.outcome blockquote p { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 62px); line-height: 1.12; max-width: 22ch; margin: 0 auto; }
.credit { margin-top: 36px; font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); }

/* ---------- work 02: Desi's ---------- */
.work-desis { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 120px); }
.work-title { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 12vw, 190px); line-height: 0.9; letter-spacing: -0.02em; }
.work-sub { margin-top: 14px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); }

/* cover: title on the left, the vertical walkthrough film on the right (shown at its native 720 px or less) */
.desis-cover { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.desis-cover-text .lead { margin-top: clamp(32px, 4vw, 56px); max-width: 18ch; }
.desis-film { position: relative; height: min(78vh, 760px); aspect-ratio: 5 / 8; background: var(--ink); overflow: hidden; }
.desis-film img, .desis-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desis-film video { opacity: 0; transition: opacity 1.2s var(--ease); }
.desis-film video.ready { opacity: 1; }

/* two square photos side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(64px, 8vw, 110px); }
.pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone); }

/* four design details */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.details img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.details h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 20px 0 8px; }
.details p { color: #4a4843; font-size: 15px; }

/* identity strip on stone */
.identity { background: var(--stone); margin-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(80px, 10vw, 140px); }
.identity .story { padding-top: clamp(80px, 10vw, 140px); }
.identity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.identity-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone-2); }
.identity-grid figcaption { margin-top: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); }

.work-desis .outcome { padding-top: clamp(48px, 6vw, 80px); }

@media (max-width: 1080px) {
  .details { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 860px) {
  .desis-cover { grid-template-columns: 1fr; }
  .desis-film { height: auto; width: 100%; max-width: 480px; }
  .pair { grid-template-columns: 1fr; gap: 12px; }
  .identity-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 520px) {
  .details { grid-template-columns: 1fr; }
}

/* ---------- approach ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line-light); }
.principles article { padding: 44px 40px 0 0; }
.principles article + article { padding-left: 40px; border-left: 1px solid var(--line-light); }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6vw, 92px); line-height: 1; letter-spacing: -0.01em; margin-bottom: 28px; }
.principles p { color: rgba(247,246,243,0.66); max-width: 34ch; }

/* ---------- contact ---------- */
.contact-body { display: grid; gap: clamp(56px, 7vw, 96px); }
.contact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -0.012em; max-width: 17ch; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.contact-grid > div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-grid > div:nth-child(odd) { padding-right: 24px; }
.contact-grid > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-grid .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.contact-grid .v { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }

.copy { display: inline-flex; align-items: baseline; gap: 14px; text-align: left; position: relative; }
.copy-text { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; border-bottom: 1px solid transparent; transition: border-color 0.3s; word-break: break-all; }
.copy:hover .copy-text { border-color: currentColor; }
.copy-hint {
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute);
  padding: 4px 8px; border: 1px solid var(--line); white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.copy:hover .copy-hint { border-color: var(--ink); color: var(--ink); }
.copy.copied .copy-hint { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.socials { display: flex; gap: 40px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(72px, 9vw, 120px) 0 40px; }
.footer-logo { width: min(560px, 100%); height: auto; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 12px; letter-spacing: 0.08em; color: rgba(247,246,243,0.55); }
.to-top:hover { color: var(--paper); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(14,14,13,0.96); color: var(--paper); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade 0.35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 2 * var(--gutter) - 120px); max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox button { position: absolute; font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; padding: 12px; opacity: 0.75; transition: opacity 0.3s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 20px; right: var(--gutter); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 22px !important; letter-spacing: 0 !important; }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 12px 20px; box-shadow: 0 0 0 1px rgba(247, 246, 243, 0.22); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-12 > .label { grid-column: 1 / -1; padding: 0 0 22px; }
  .grid-12 > :not(.label) { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* tablet: three columns stay, with tighter gutters so the text gets the width */
@media (min-width: 861px) and (max-width: 1180px) {
  .service { padding-right: 24px; }
  .service + .service { padding-left: 24px; }
  .principles article { padding-right: 24px; }
  .principles article + article { padding-left: 24px; }
  .service p, .principles p { max-width: none; }
}

/* phones held sideways and other short screens: the hero fits the screen instead of running past it */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .header-inner, .site-header.solid .header-inner { height: 56px; }
  .hero-title { font-size: clamp(30px, 9.5vh, 52px); margin: 10px 0 18px; max-width: 22ch; }
  .hero-foot { padding-top: 14px; flex-direction: row; align-items: center; }
  .hero-content { padding-bottom: 18px; }
  .mobile-menu a { font-size: 32px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-inner, .site-header.solid .header-inner { height: 64px; }
  .brand img { width: 120px; }
  .services, .principles { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service h3 { margin-top: 20px; }
  .principles article, .principles article + article { padding: 40px 0; border-left: 0; }
  .principles article + article { border-top: 1px solid var(--line-light); }
  .principles h3 { margin-bottom: 16px; }
  .compare { grid-template-columns: 1fr; }
  .material-feature, .material-list { grid-template-columns: 1fr; }
  .material-feature { gap: 48px; }
  .material-feature img { aspect-ratio: 4 / 3; }
  .keywords li { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div:nth-child(n) { padding: 24px 0; border-left: 0; }
  .gallery { grid-auto-rows: 42vw; gap: 8px; }
  .lightbox img { max-width: calc(100vw - 32px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .br-wide { display: none; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 0.2em; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .work-cover { height: 70vh; }
  .socials { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Desi's gallery: keep the mural in the wide crop of the sofa photo */
.work-desis .gallery .g:nth-child(7) img { object-position: 50% 30%; }
