﻿/* ============================================================
   Laneway Digital — v2
   Editorial · Warm · Fluid · Type-led
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Type — invariant */
  --serif:        'Instrument Serif', 'Times New Roman', serif;
  --sans:         'Geist', system-ui, sans-serif;
  --mono:         'Geist Mono', ui-monospace, monospace;

  /* Layout — invariant */
  --nav-h:        76px;
  --gutter:       clamp(20px, 4vw, 56px);
  --max-w:        1440px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  /* Default accent (Forest) — overridden by [data-accent] */
  --accent:       #2f5d4e;
  --accent-soft:  #4f8472;
}

/* ── Backgrounds ──────────────────────────────────────────── */
/* Each [data-bg] sets canvas + ink scale. Default = slate (cool blue-grey). */

:root,
:root[data-bg="slate"] {
  /* Slate — cool blue-grey, contemporary gallery */
  --bg:           #dde1e5;
  --bg-soft:      #cbd0d6;
  --paper:        #e6eaee;
  --bg-deep:      #14171c;
  --ink:          #0f1318;
  --ink-2:        #353a42;
  --ink-3:        #686d76;
  --ink-4:        #9aa0a8;
  --rule:         rgba(15,19,24,0.14);
  --rule-strong:  rgba(15,19,24,0.26);
  --on-deep:      #e4e7ec;
  --on-deep-2:    #8a8e95;
}

:root[data-bg="paper"] {
  /* Paper — near-pure off-white, editorial */
  --bg:           #f5f5f2;
  --bg-soft:      #e6e6e2;
  --paper:        #fafaf7;
  --bg-deep:      #14161a;
  --ink:          #14161a;
  --ink-2:        #383b40;
  --ink-3:        #6a6d72;
  --ink-4:        #9b9ea2;
  --rule:         rgba(20,22,26,0.12);
  --rule-strong:  rgba(20,22,26,0.22);
  --on-deep:      #ebebe6;
  --on-deep-2:    #8e8e89;
}

:root[data-bg="mist"] {
  /* Mist — pale icy blue-white */
  --bg:           #e6edf1;
  --bg-soft:      #d3dce2;
  --paper:        #eef4f7;
  --bg-deep:      #0f181e;
  --ink:          #0f181e;
  --ink-2:        #354048;
  --ink-3:        #687279;
  --ink-4:        #9ba2a8;
  --rule:         rgba(15,24,30,0.13);
  --rule-strong:  rgba(15,24,30,0.24);
  --on-deep:      #e4ebee;
  --on-deep-2:    #8a9197;
}

:root[data-bg="sage"] {
  /* Sage — cool greyish-green */
  --bg:           #d6ddd4;
  --bg-soft:      #c2c9c0;
  --paper:        #dee5dc;
  --bg-deep:      #161a14;
  --ink:          #131814;
  --ink-2:        #393d35;
  --ink-3:        #6b6e64;
  --ink-4:        #9c9f95;
  --rule:         rgba(22,26,20,0.14);
  --rule-strong:  rgba(22,26,20,0.26);
  --on-deep:      #e8ebde;
  --on-deep-2:    #8e9182;
}

:root[data-bg="lilac"] {
  /* Lilac — pale cool violet */
  --bg:           #e2e1ea;
  --bg-soft:      #cfceda;
  --paper:        #ebeaf2;
  --bg-deep:      #16141c;
  --ink:          #141220;
  --ink-2:        #3b3848;
  --ink-3:        #6d6a78;
  --ink-4:        #9d9aa6;
  --rule:         rgba(20,18,32,0.13);
  --rule-strong:  rgba(20,18,32,0.24);
  --on-deep:      #e7e4ee;
  --on-deep-2:    #8e8b95;
}

:root[data-bg="carbon"] {
  /* Carbon — dark mode, soft */
  --bg:           #1a1d20;
  --bg-soft:      #24272b;
  --paper:        #1f2226;
  --bg-deep:      #0d0e10;
  --ink:          #ebece8;
  --ink-2:        #b8bbb5;
  --ink-3:        #8c8f8a;
  --ink-4:        #5f6360;
  --rule:         rgba(235,236,232,0.13);
  --rule-strong:  rgba(235,236,232,0.25);
  --on-deep:      #ebece8;
  --on-deep-2:    #8c8f8a;
}

:root[data-bg="ink"] {
  /* Ink — full dark */
  --bg:           #0c0d10;
  --bg-soft:      #16181b;
  --paper:        #131518;
  --bg-deep:      #050608;
  --ink:          #ebece8;
  --ink-2:        #b8bbb5;
  --ink-3:        #8c8f8a;
  --ink-4:        #5f6360;
  --rule:         rgba(235,236,232,0.13);
  --rule-strong:  rgba(235,236,232,0.25);
  --on-deep:      #ebece8;
  --on-deep-2:    #8c8f8a;
}

/* ── Accents (override --accent independently from --bg) ──── */
:root[data-accent="forest"]   { --accent: #2f5d4e; --accent-soft: #4f8472; }
:root[data-accent="pine"]     { --accent: #1f4a3e; --accent-soft: #3e6e60; }
:root[data-accent="moss"]     { --accent: #5e7a4a; --accent-soft: #7e9a6a; }
:root[data-accent="teal"]     { --accent: #1e6b6e; --accent-soft: #408b8e; }
:root[data-accent="cobalt"]   { --accent: #2b4f8e; --accent-soft: #5274b0; }
:root[data-accent="indigo"]   { --accent: #3a3f7a; --accent-soft: #5b6098; }
:root[data-accent="plum"]     { --accent: #7a3b5a; --accent-soft: #a26380; }
:root[data-accent="crimson"]  { --accent: #9c2a3a; --accent-soft: #be4f5e; }
:root[data-accent="ember"]    { --accent: #c25a3a; --accent-soft: #db7a5a; }
:root[data-accent="rose"]     { --accent: #c66578; --accent-soft: #d98697; }
:root[data-accent="ochre"]    { --accent: #b58341; --accent-soft: #cea069; }
:root[data-accent="graphite"] { --accent: #2c2c30; --accent-soft: #5a5a5e; }

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
* { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* ── Type ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9.5vw, 9.5rem); line-height: 0.92; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; }
h4 { font-size: 1.25rem; line-height: 1.2; }

em, .italic { font-style: italic; }

p { color: var(--ink-2); margin-bottom: 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.label,
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(80px, 12vw, 160px) 0; }

.gold-rule { display: none; }       /* retired */

.divider {
  height: 1px;
  background: var(--rule);
  width: 100%;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
  cursor: pointer;
  text-transform: none;
  white-space: nowrap;
}

.btn::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") center/contain no-repeat;
  transition: transform 0.4s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

.btn-gold,
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-gold:hover,
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 14px; }
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  will-change: transform;
  background: transparent;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              border-color 0.5s var(--ease), color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}

.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo:hover { opacity: 0.7; }
.nav__logo svg { color: var(--ink); flex-shrink: 0; opacity: 0.85; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  padding: 11px 20px;
  font-size: 13px;
  margin-left: 8px;
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 101;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--gutter);
  gap: 28px;
}
.nav__mobile a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav__mobile a:hover { font-style: italic; }
.nav__mobile.open { display: flex; }

body.nav-open { overflow: hidden; }
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 56px) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* Soft ambient — a slow-breathing tint of the accent behind the type */
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 38% at 18% 28%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 70%),
    radial-gradient(50% 45% at 82% 70%, color-mix(in oklab, var(--ink) 8%, transparent) 0%, transparent 72%);
  filter: blur(40px);
  opacity: 0.9;
  animation: heroDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 60%, transparent) 0%, var(--bg) 80%);
  pointer-events: none;
}
@keyframes heroDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero__bg,
.hero__overlay { display: none; }

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: left;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 40px;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  padding-bottom: 64px;
  margin-top: 12px;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-item .label { color: var(--ink-3); }
.hero__meta-item strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(3.2rem, 13vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero h1 .italic {
  font-style: italic;
  color: color-mix(in oklab, var(--accent) 70%, var(--ink-2));
}
.hero h1 .reveal-line { display: block; }

.hero__lede {
  max-width: 480px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.55;
}

.hero__media {
  position: relative;
  width: 100%;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.hero__media-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s var(--ease-out);
  transform: scale(1.08);
}
.hero__media-frame.loaded img { transform: scale(1); }
.hero__media-frame--tall { aspect-ratio: 3/4; }
.hero__media-frame--wide { aspect-ratio: 3/4; }
.hero__media-frame--lift { transform: translateY(-40px); }

/* page-hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 110px) 0 60px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.page-hero .label { margin-bottom: 0; }
.page-hero h1 {
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.9;
  margin-bottom: 0;
}
.page-hero p {
  max-width: 540px;
  color: var(--ink-3);
  font-size: 1.05rem;
}

/* ── Scroll reveal ────────────────────────────────────────── */
/* Approach: items are VISIBLE by default. JS adds `.pre` to hide
   them; observer (or load) removes `.pre` to animate them in. If JS
   fails or screenshot is taken early, everything still renders. */

.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fade-up.pre {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-mask {
  display: block;
  padding-bottom: 0.02em;
}
.reveal-mask > * {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(0);
  opacity: 1;
  transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out);
  will-change: transform, opacity;
}
.reveal-mask.pre > * {
  transform: translateY(40px);
  opacity: 0;
}

.reveal-image {
  position: relative;
  overflow: hidden;
}
.reveal-image img {
  transform: scale(1);
  transition: transform 1.6s var(--ease-out), filter 1.6s var(--ease-out);
  filter: brightness(1);
}
.reveal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.reveal-image.pre img { transform: scale(1.12); filter: brightness(0.92); }
.reveal-image.pre::after { transform: scaleX(1); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Marquee ──────────────────────────────────────────────── */
.marquee {
  display: flex;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.marquee__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.marquee__track .italic {
  font-style: italic;
  color: var(--ink-3);
}
.marquee__track .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Services (home — numbered list) ──────────────────────── */
.services-list {
  background: var(--bg);
}
.services-list__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}
.services-list__header h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}
.services-list__header p {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 460px;
  margin-left: auto;
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.5s var(--ease), color 0.4s var(--ease);
}
.svc-row:hover { padding-left: 24px; }
.svc-row__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.svc-row__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  transition: color 0.4s var(--ease), font-style 0.4s var(--ease);
}
.svc-row:hover .svc-row__title {
  font-style: italic;
  color: var(--accent);
}
.svc-row__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.svc-row__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc-row:hover .svc-row__arrow {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(-45deg);
}

/* Cursor-follow preview image */
.svc-preview {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 360px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  overflow: hidden;
  background: var(--bg-soft);
  display: none;
}
.svc-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-preview img.active { opacity: 1; }
@media (min-width: 1024px) { .svc-preview { display: block; } }

/* ── Recent Work ──────────────────────────────────────────── */
.work-strip {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg);
}
.work-strip__header {
  padding: 0 0 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.work-strip__header h2 {
  font-size: clamp(2.2rem, 6vw, 5rem);
}
.work-strip__images {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  padding: 0 var(--gutter);
}
.work-strip__img {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg);
}
.work-strip__img:nth-child(1) { grid-column: span 4; aspect-ratio: 3/4; }
.work-strip__img:nth-child(2) { grid-column: span 5; aspect-ratio: 4/3; transform: translateY(40px); }
.work-strip__img:nth-child(3) { grid-column: span 3; aspect-ratio: 3/4; }
.work-strip__img:nth-child(4) { grid-column: span 5; aspect-ratio: 4/3; transform: translateY(-30px); }
.work-strip__img:nth-child(5) { grid-column: span 4; aspect-ratio: 3/4; transform: translateY(20px); }
.work-strip__img:nth-child(6) { grid-column: span 3; aspect-ratio: 1/1; }
.work-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.95);
}
.work-strip__img:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.work-strip__caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-deep);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.work-strip__img:hover .work-strip__caption {
  opacity: 1;
  transform: translateY(0);
}
.work-strip__footer {
  padding: 60px 0 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* ── Section header used by pages ─────────────────────────── */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 60px;
}
.section-header .label { margin-bottom: 0; }
.section-header h2 { margin-bottom: 0; }
.section-header p {
  color: var(--ink-3);
  margin-top: 8px;
  max-width: 520px;
  font-size: 1.05rem;
}
.section-header.center { text-align: center; align-items: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ── Services Page (deep section) ─────────────────────────── */
.service-section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.service-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.service-section__inner.reverse { direction: rtl; }
.service-section__inner.reverse > * { direction: ltr; }
.service-section__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-soft);
}
.service-section__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.service-section__img:hover img { transform: scale(1.04); }
.service-section__img::after { display: none; }
.service-section__text .label { margin-bottom: 8px; }
.service-section__text h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}
.service-section__text p {
  color: var(--ink-2);
  margin-top: 16px;
  font-size: 1.02rem;
}
.service-section__text .btn { margin-top: 28px; }

/* ── Process / features ───────────────────────────────────── */
.features-strip {
  background: var(--bg);
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--rule);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.feature__icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: none;
}
.feature__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.feature h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0;
}
.feature p {
  color: var(--ink-3);
  font-size: 0.96rem;
  margin: 0;
}

/* ── Quote / testimonial ──────────────────────────────────── */
.quote-section {
  padding: clamp(100px, 14vw, 180px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.quote-section blockquote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 1100px;
  color: var(--ink);
  margin: 0 auto 40px;
}
.quote-section blockquote .italic {
  color: var(--ink-3);
  font-style: italic;
}
.quote-section .quote-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quote-section .quote-attr::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(36% 50% at 78% 30%, color-mix(in oklab, var(--accent) 55%, transparent) 0%, transparent 70%),
    radial-gradient(40% 40% at 12% 88%, color-mix(in oklab, var(--accent-soft) 35%, transparent) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.5;
  animation: heroDrift 32s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.cta-banner .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.cta-banner .label { color: var(--on-deep-2); }
.cta-banner h2 {
  color: var(--on-deep);
  font-size: clamp(2.8rem, 9vw, 9rem);
  line-height: 0.92;
  margin-bottom: 0;
  letter-spacing: -0.035em;
}
.cta-banner h2 .italic {
  font-style: italic;
  color: var(--on-deep-2);
}
.cta-banner p {
  color: var(--on-deep-2);
  max-width: 560px;
  margin-top: 16px;
  font-size: 1.05rem;
}
.cta-banner .btn-gold {
  background: var(--bg);
  color: var(--ink);
  margin-top: 32px;
  align-self: flex-start;
  width: fit-content;
}
.cta-banner .btn-gold:hover { background: var(--accent); color: var(--bg); }

/* ── Portfolio Page ───────────────────────────────────────── */
.portfolio-grid {
  columns: 3;
  column-gap: clamp(12px, 1.6vw, 22px);
  padding: 60px 0 40px;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: clamp(12px, 1.6vw, 22px);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  background: var(--bg-soft);
}
.portfolio-item img {
  width: 100%;
  display: block;
  filter: saturate(0.95);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease-out);
}
.portfolio-item:hover img {
  filter: saturate(1.1);
  transform: scale(1.04);
}
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__zoom {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-left: auto;
}

.portfolio-disclaimer {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
  padding: 60px 0;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.portfolio-disclaimer a { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,22,18,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 28px; right: 32px;
  color: var(--on-deep);
  font-size: 2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--on-deep);
  font-size: 2.4rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 18px;
  cursor: pointer;
}
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--on-deep-2);
}

/* ── About Page ───────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(80px, 12vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.about-intro__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: transparent;
}
.about-intro__img img {
  width: 100%; height: 100%; object-fit: contain;
}
.about-intro__img::after { display: none; }
.about-intro__text .label { margin-bottom: 12px; }
.about-intro__text h2 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}
.about-intro__text p { color: var(--ink-2); margin-top: 0; margin-bottom: 14px; font-size: 1.02rem; }

/* Timeline */
.timeline-section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.timeline-section .section-header { margin-bottom: 80px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.timeline__item {
  position: relative;
  padding-top: 32px;
}
.timeline__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 1px; left: 0;
  outline: none;
  border: none;
}
.timeline__year {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 12px;
}
.timeline__title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.timeline__desc { color: var(--ink-3); font-size: 0.95rem; line-height: 1.55; }

/* ── Contact Page ─────────────────────────────────────────── */
.contact-section { padding: clamp(80px, 12vw, 140px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-bottom-color: var(--ink); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-4); }

.contact-details { padding-top: 8px; }
.contact-details .label { margin-bottom: 8px; }
.contact-details h2 { margin-bottom: 32px; font-size: clamp(2.2rem, 5vw, 4rem); }
.detail-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.detail-block h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-weight: 500;
}
.detail-block p {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0;
}
.detail-block a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; transition: border-color 0.3s; }
.detail-block a:hover { border-bottom-color: var(--ink); }

.map-placeholder {
  margin-top: 40px;
  aspect-ratio: 16/9;
  border: 1px solid var(--rule);
  overflow: hidden;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: 96px 0 0;
  border-top: 1px solid var(--ink-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(237,229,212,0.12);
}
.footer__brand .nav__logo {
  margin-bottom: 24px;
  display: inline-flex;
  color: var(--on-deep);
}
.footer__brand .nav__logo svg { color: var(--on-deep); opacity: 0.9; }
.footer__brand p {
  color: var(--on-deep-2);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-deep);
  border-bottom: 1px solid rgba(237,229,212,0.3);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.footer__social a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-deep-2);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col p,
.footer__col address {
  font-style: normal;
  color: var(--on-deep);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer__col .badge {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid rgba(237,229,212,0.2);
  padding: 6px 10px;
  color: var(--on-deep-2);
  letter-spacing: 0.08em;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  color: var(--on-deep);
  font-size: 0.95rem;
  transition: color 0.3s, padding 0.3s;
}
.footer__links a:hover { color: var(--accent-soft); padding-left: 6px; }

.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(4rem, 18vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--on-deep);
  padding: 64px 0;
  user-select: none;
  text-align: center;
  overflow: hidden;
  display: block;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--on-deep) 0%, color-mix(in oklab, var(--on-deep) 35%, var(--bg-deep)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__wordmark .italic { font-style: italic; color: color-mix(in oklab, var(--accent-soft) 90%, var(--on-deep-2)); -webkit-text-fill-color: currentColor; }

.footer__bottom {
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(237,229,212,0.12);
}
.footer__bottom p {
  color: var(--on-deep-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a {
  color: var(--on-deep-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer__bottom-links a:hover { color: var(--on-deep); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .service-section__inner { gap: 48px; }
  .about-intro { gap: 48px; }
  .contact-grid { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .portfolio-grid { columns: 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .timeline::before { display: none; }
  .timeline__item { padding-top: 0; }
  .timeline__dot { position: static; margin-bottom: 12px; }
  .work-strip__images { grid-template-columns: repeat(6, 1fr); }
  .work-strip__img:nth-child(1) { grid-column: span 3; }
  .work-strip__img:nth-child(2) { grid-column: span 3; transform: none; }
  .work-strip__img:nth-child(3) { grid-column: span 2; }
  .work-strip__img:nth-child(4) { grid-column: span 4; transform: none; }
  .work-strip__img:nth-child(5) { grid-column: span 3; transform: none; }
  .work-strip__img:nth-child(6) { grid-column: span 3; }
  .hero__media { grid-template-columns: 1fr 1fr; }
  .hero__media-frame:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
  .nav__logo { font-size: 1.25rem; }

  .hero { padding: calc(var(--nav-h) + 40px) 0 0; min-height: auto; }
  .hero__content { gap: 32px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5.5rem); }
  .hero__media { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__media-frame--lift { transform: none; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 18px; }

  .services-list__header { grid-template-columns: 1fr; gap: 20px; padding-bottom: 48px; }
  .services-list__header p { margin-left: 0; }
  .svc-row { grid-template-columns: 48px 1fr auto; gap: 16px; padding: 24px 0; }
  .svc-row__meta { display: none; }
  .svc-row:hover { padding-left: 0; }

  .service-section__inner,
  .service-section__inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .feature { padding: 32px 20px; }
  .work-strip__images {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-strip__img { grid-column: span 1 !important; aspect-ratio: 3/4 !important; transform: none !important; }
  .work-strip__img:nth-child(n+5) { display: none; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
  .portfolio-grid { columns: 1; }
  .work-strip__header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .quote-section blockquote { font-size: clamp(1.6rem, 6vw, 2.6rem); }
}

