@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --paper: #e8e2d6;
  --paper-2: #ddd5c7;
  --ink: #161310;
  --ink-soft: #5c564e;
  --line: #cfc6b8;
  --orange: #d45212;
  --orange-deep: #b33e08;
  --white: #f6f1e8;
  --black: #111110;
  --header: rgba(232, 226, 214, 0.92);
  --cta-bg: #161310;
  --cta-text: #e8e2d6;
  --cta-muted: #cfc6ba;
  --tag-bg: #e8e2d6;
}
html[data-theme="dark"] {
  --paper: #12110f;
  --paper-2: #1b1a17;
  --ink: #ece7de;
  --ink-soft: #b3aaa0;
  --line: #2c2a26;
  --orange: #e26528;
  --orange-deep: #ff7a3a;
  --white: #1a1916;
  --black: #ece7de;
  --header: rgba(18, 17, 15, 0.9);
  --cta-bg: #1c1b18;
  --cta-text: #ece7de;
  --cta-muted: #b3aaa0;
  --tag-bg: #12110f;
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, .serif { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.02em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand b { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.84rem; letter-spacing: 0.08em; }
.brand b span { display: block; color: var(--orange); font-size: 0.64rem; letter-spacing: 0.22em; font-weight: 600; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a { text-decoration: none; font-size: 0.92rem; color: var(--ink-soft); }
nav.main a:hover, nav.main a.active { color: var(--ink); }
nav.main a.active { box-shadow: inset 0 -1px 0 var(--orange); }
.lang { display: flex; gap: 8px; font-size: 0.78rem; letter-spacing: 0.08em; }
.lang button { border: 0; background: none; cursor: pointer; color: var(--ink-soft); padding: 0; }
.lang button[aria-pressed="true"] { color: var(--ink); }

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--orange); }
.menu-toggle { display: none; border: 1px solid var(--line); background: none; width: 40px; height: 40px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; border: 0; cursor: pointer;
  padding: 13px 20px; font-size: 0.88rem; letter-spacing: 0.04em;
}
.btn:hover { background: var(--orange-deep); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: calc(100vh - 82px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: clamp(40px, 8vh, 90px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  line-height: 0.92; margin: 0 0 22px; max-width: 9ch;
}
.hero .lede { max-width: 38ch; color: var(--ink-soft); margin: 0 0 32px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; min-height: 420px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-photo .tag {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--tag-bg); padding: 8px 12px; font-size: 0.75rem; letter-spacing: 0.06em;
}

.band {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-soft);
}
.band strong { color: var(--ink); font-weight: 600; }

section { padding: 92px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split img { width: 100%; height: 520px; object-fit: cover; }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.02; margin: 0 0 16px; }
.lede { color: var(--ink-soft); max-width: 46ch; }
.rule { width: 48px; height: 2px; background: var(--orange); border: 0; margin: 0 0 22px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 22px 32px; border-right: 1px solid var(--line); }
.step:first-child { border-left: 1px solid var(--line); }
.step em { font-style: normal; color: var(--orange); font-size: 0.78rem; letter-spacing: 0.14em; }
.step h3 { font-size: 1.7rem; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.work-grid .tall { grid-row: span 2; }
.work-grid a, .work-grid figure { margin: 0; display: block; position: relative; overflow: hidden; background: #ddd; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; transition: transform .8s ease; }
.work-grid .tall img { min-height: 560px; }
.work-grid a:hover img { transform: scale(1.04); }
.work-grid span {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--tag-bg); padding: 6px 10px; font-size: 0.75rem;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: 380px; object-fit: cover; }
.pair figcaption { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.quote { margin: 0; padding-left: 18px; border-left: 2px solid var(--orange); }
.quote p { font-family: "Instrument Serif", serif; font-size: 1.55rem; line-height: 1.25; margin: 0 0 16px; }
.quote b { font-family: "IBM Plex Sans", sans-serif; font-weight: 500; font-size: 0.88rem; }

.cta {
  background: var(--cta-bg); color: var(--cta-text);
  padding: 72px 0;
}
.cta .wrap { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.cta h2 { margin: 0 0 10px; max-width: 14ch; }
.cta p { margin: 0; color: var(--cta-muted); }
.cta .btn { background: var(--orange); color: #fff; }
.cta .btn:hover { background: var(--orange-deep); }

.filters { display: flex; gap: 18px; flex-wrap: wrap; margin: 28px 0 22px; padding: 0; }
.filters button {
  background: none; border: 0; border-bottom: 1px solid transparent;
  padding: 0 0 4px; cursor: pointer; color: var(--ink-soft); letter-spacing: 0.06em; font-size: 0.88rem;
}
.filters button.on, .filters button:hover { color: var(--ink); border-bottom-color: var(--orange); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; cursor: zoom-in; position: relative; overflow: hidden; }
.gallery figure.hide { display: none; }
.gallery img { width: 100%; height: 280px; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: 0.82rem; color: var(--ink-soft); padding: 8px 0 4px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(17,17,16,.92);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 90vw); max-height: 80vh; }
.lightbox button {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border: 0; background: var(--paper); cursor: pointer;
}
.lightbox .navbtn { top: 50%; transform: translateY(-50%); right: auto; }
.lightbox .prev { left: 18px; }
.lightbox .next { right: 18px; }
.lightbox p { position: absolute; bottom: 16px; color: #ddd; margin: 0; font-size: 0.85rem; }

.page-hero { padding: 72px 0 8px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin: 0 0 12px; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list a { color: var(--orange-deep); }
form.quote { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }
input, textarea, select {
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  padding: 12px; border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: 1px solid var(--ink); }
textarea { min-height: 130px; resize: vertical; }

footer { border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 0.88rem; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer strong { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(16px); animation: up .7s ease forwards; animation-play-state: paused; }
.reveal.in { animation-play-state: running; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
@keyframes up { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero, .split, .steps, .work-grid, .pair, .quotes, .contact-grid, .gallery { grid-template-columns: 1fr; }
  .work-grid .tall { grid-row: auto; }
  .work-grid .tall img, .split img, .pair img { height: 320px; min-height: 0; }
  .hero { min-height: 0; }
  .hero-photo { min-height: 52vh; }
  .step { border: 0; border-bottom: 1px solid var(--line); }
  .cta .wrap { flex-direction: column; align-items: start; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 24px 22px; gap: 14px;
  }
  nav.main.open { display: flex; }
  
.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--orange); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* —— high-impact layer —— */
body.has-hero header.site {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
body.has-hero header.site .brand b,
body.has-hero header.site nav.main a,
body.has-hero header.site .lang button,
body.has-hero header.site .theme-toggle,
body.has-hero header.site .menu-toggle {
  color: #f4efe8;
}
body.has-hero header.site .theme-toggle,
body.has-hero header.site .menu-toggle {
  border-color: rgba(255,255,255,.28);
}
body.has-hero header.site .btn {
  background: var(--orange);
  color: #fff;
}
body.has-hero header.site.scrolled {
  background: var(--header);
  border-bottom-color: var(--line);
}
body.has-hero header.site.scrolled .brand b,
body.has-hero header.site.scrolled nav.main a,
body.has-hero header.site.scrolled .lang button,
body.has-hero header.site.scrolled .theme-toggle,
body.has-hero header.site.scrolled .menu-toggle {
  color: var(--ink);
}
body.has-hero header.site.scrolled .btn {
  background: var(--ink);
  color: var(--paper);
}

.hero.full {
  display: block;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  border-bottom: 0;
}
.hero.full .hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,10,8,.35) 0%, rgba(12,10,8,.55) 42%, rgba(12,10,8,.82) 100%),
    url("../images/hero-photo.png") center/cover no-repeat;
}
.hero.full .hero-copy {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 72px;
  justify-content: flex-end;
  color: #f4efe8;
}
.hero.full .lede { color: #d8d0c4; }
.hero.full .btn.line { color: #f4efe8; border-color: rgba(255,255,255,.45); }
.hero.full .btn.line:hover { background: #f4efe8; color: #161310; }

.compare {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  height: min(62vh, 560px);
  background: #111;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare .after {
  clip-path: inset(0 0 0 50%);
}
.compare .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}
.compare .handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}
.compare-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.service-blocks { display: grid; gap: 18px; }
.service-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 340px;
  background: var(--paper-2);
  overflow: hidden;
}
.service-block.reverse { grid-template-columns: 0.9fr 1.1fr; }
.service-block.reverse .copy { order: 2; }
.service-block img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.service-block .copy { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }

.sq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 900px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .copy { order: 0; }
  body.has-hero header.site { position: sticky; }
}

.steps.three { grid-template-columns: repeat(3, 1fr); }
.service-block .lede { max-width: none; }
.service-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
@media (max-width: 900px) {
  .steps.three { grid-template-columns: 1fr; }
}
