/* ==========================================================================
   KAV — Architecture Studio
   Concept: the drafting table. Paper-concrete palette, visible column grid,
   crop marks, dimension lines, and blueprint strokes that draw themselves.
   ========================================================================== */

:root {
  --paper: #efece6;
  --paper-2: #e5e1d8;
  --ink: #161615;
  --ink-2: #45433e;
  --muted: #868279;
  --line: rgba(22, 22, 21, 0.13);
  --line-strong: rgba(22, 22, 21, 0.32);
  --accent: #b4532a;
  --accent-soft: #d9a184;
  --night: #121211;
  --night-2: #1c1c1a;
  --night-line: rgba(239, 236, 230, 0.14);

  --sans: "IBM Plex Sans Hebrew", "Heebo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --header-h: 78px;
}

*, *::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: 17px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; position: relative; }

/* Drafting grid: 12 faint column guides behind everything */
.guides {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto;
  background-image: linear-gradient(to left, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-inline-end: 1px solid var(--line);
  opacity: 0.55;
}
main, footer, header { position: relative; z-index: 1; }

/* Mono annotation text — the "technical drawing" voice */
.mono, .label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  direction: ltr;
  unicode-bidi: isolate;
}
.label { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.label b { color: var(--accent); font-weight: 500; }
.he-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
}
.he-label .num { font-family: var(--mono); color: var(--accent); font-size: 0.74rem; }
.he-label::after { content: ""; width: 44px; height: 1px; background: var(--line-strong); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease), height 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.on-dark { color: var(--paper); }
.site-header.scrolled {
  height: 64px;
  background: rgba(239, 236, 230, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
  color: var(--ink);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark rect, .brand-mark line { fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand-mark .cut { stroke: var(--accent); stroke-width: 2; }
.brand-text { display: grid; line-height: 1; gap: 5px; }
.brand-text strong { font-size: 1.32rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-text span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; opacity: 0.7; direction: ltr; text-align: end; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  position: relative; font-size: 0.95rem; font-weight: 400; padding-block: 6px;
  display: inline-flex; gap: 7px; align-items: baseline;
}
.nav a .n { font-family: var(--mono); font-size: 0.64rem; opacity: 0.5; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] .n { color: var(--accent); opacity: 1; }
.nav .nav-cta {
  border: 1px solid currentColor; padding: 9px 18px; font-size: 0.88rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark:not(.scrolled) .nav .nav-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.menu-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute; inset-inline: 10px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; inset-inline-start: 18px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; inset-inline-start: 10px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px; font-size: 0.96rem; font-weight: 500;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), gap 0.5s var(--ease);
}
.btn .arrow { width: 22px; height: 10px; transition: transform 0.5s var(--ease); }
.btn:hover { gap: 20px; background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: gap 0.5s var(--ease), border-color 0.5s var(--ease);
}
.text-link:hover { gap: 16px; border-color: var(--accent); }
.text-link .arrow { width: 20px; height: 10px; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 1080px); color: var(--paper);
  display: grid; align-items: end; overflow: hidden; background: var(--night);
  cursor: crosshair;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.12); animation: hero-in 2.6s var(--ease) forwards;
  filter: saturate(0.85) contrast(1.05);
}
@keyframes hero-in { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(12, 12, 11, 0.88) 0%, rgba(12, 12, 11, 0.35) 45%, rgba(12, 12, 11, 0.25) 70%, rgba(12, 12, 11, 0.6) 100%);
}
.hero-blueprint {
  direction: ltr;
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none;
}
.hero-blueprint path, .hero-blueprint line, .hero-blueprint rect, .hero-blueprint circle {
  fill: none; stroke: rgba(239, 236, 230, 0.42); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.hero-blueprint .accent { stroke: var(--accent-soft); }
.hero-blueprint text { fill: rgba(239, 236, 230, 0.7); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 3.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade-late { opacity: 0; animation: fade 1.2s ease forwards 2.2s; }
@keyframes fade { to { opacity: 1; } }

.hero-content { position: relative; z-index: 3; padding-block: calc(var(--header-h) + 40px) clamp(40px, 7vh, 80px); }
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 8.4rem); font-weight: 200; line-height: 0.98; letter-spacing: -0.025em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero h1 em { font-style: normal; font-weight: 500; color: var(--accent-soft); }
@keyframes rise { to { transform: none; } }
.hero-bottom {
  margin-top: clamp(28px, 5vh, 56px); padding-top: 26px; border-top: 1px solid var(--night-line);
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: end;
  opacity: 0; animation: fade 1.2s ease forwards 0.8s;
}
.hero-bottom p { color: rgba(239, 236, 230, 0.8); max-width: 34em; font-size: 1.04rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: grid; gap: 6px; color: rgba(239, 236, 230, 0.6); text-align: end; }
.hero .label { color: rgba(239, 236, 230, 0.7); }

/* Crosshair that follows the pointer over the hero */
.crosshair { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.hero:hover .crosshair { opacity: 1; }
.crosshair .h, .crosshair .v { position: absolute; background: rgba(239, 236, 230, 0.28); }
.crosshair .h { inset-inline: 0; height: 1px; top: var(--y, 50%); }
.crosshair .v { top: 0; bottom: 0; width: 1px; left: var(--x, 50%); }
.crosshair .coords {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); transform: translate(12px, -26px);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: rgba(239, 236, 230, 0.8); white-space: nowrap;
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin-bottom: clamp(44px, 6vw, 80px); align-items: end; }
.section-head .he-label { grid-column: 1 / -1; margin-bottom: 26px; }
.section-head h2 { grid-column: 1 / span 7; font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.section-head p { grid-column: 9 / -1; color: var(--ink-2); }
.section-head .text-link { grid-column: 10 / -1; justify-self: end; }
h2 em, h1 em { font-style: normal; font-weight: 500; color: var(--accent); }

/* Manifesto */
.manifesto { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.manifesto .he-label { grid-column: 1 / -1; margin-bottom: 36px; }
.manifesto-text {
  grid-column: 1 / span 10; font-size: clamp(1.7rem, 3.4vw, 3.15rem); line-height: 1.32; font-weight: 300; letter-spacing: -0.01em;
}
.manifesto-text .dim { color: var(--muted); }
.manifesto-aside { grid-column: 8 / -1; margin-top: 48px; color: var(--ink-2); display: grid; gap: 22px; }

/* Stats with dimension lines */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 28px 0 0; padding-inline-end: 20px; position: relative; }
.stat::before {
  content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 1px; height: 9px; background: var(--ink);
}
.stat-num { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 200; line-height: 1; display: flex; align-items: baseline; gap: 4px; direction: ltr; justify-content: flex-end; }
.stat-num small { font-size: 0.4em; color: var(--accent); font-weight: 400; }
.stat p { margin-top: 12px; color: var(--ink-2); font-size: 0.95rem; }

/* Image frame with crop marks */
.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 2;
  border-color: var(--ink); border-style: solid; opacity: 0.6;
}
.crop::before { top: -10px; right: -10px; border-width: 1px 1px 0 0; }
.crop::after { bottom: -10px; left: -10px; border-width: 0 0 1px 1px; }

/* Projects grid (home) */
.projects-feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 5vw, 70px) 24px; }
.project-card { display: block; position: relative; }
.project-card .frame { aspect-ratio: 4 / 3; }
.project-card:hover .frame img { transform: scale(1.045); }
.project-card .frame::after {
  content: "צפייה בפרויקט"; position: absolute; inset: auto auto 18px 18px; z-index: 2;
  background: var(--paper); color: var(--ink); padding: 8px 14px; font-size: 0.82rem; font-weight: 500;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.project-card:hover .frame::after { opacity: 1; transform: none; }
.project-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 18px; }
.project-meta h3, .project-meta h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 400; }
.project-meta .where { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.project-meta .code { color: var(--muted); text-align: end; flex: none; padding-top: 6px; }
.project-meta .code b { color: var(--accent); font-weight: 500; display: block; }

.pf-1 { grid-column: 1 / span 7; }
.pf-1 .frame { aspect-ratio: 5 / 4; }
.pf-2 { grid-column: 9 / -1; align-self: end; }
.pf-2 .frame { aspect-ratio: 3 / 4; }
.pf-3 { grid-column: 2 / span 5; }
.pf-3 .frame { aspect-ratio: 1 / 1; }
.pf-4 { grid-column: 7 / -1; margin-top: clamp(40px, 10vw, 140px); }

/* Marquee of disciplines */
.marquee { border-block: 1px solid var(--line-strong); overflow: hidden; padding-block: 26px; position: relative; z-index: 1; background: var(--paper); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 200; white-space: nowrap; padding-inline: 34px;
  display: inline-flex; align-items: center; gap: 68px;
}
.marquee-track span::after { content: ""; width: 12px; height: 12px; border: 1px solid var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(50%); } }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 16px; inset-inline: 0; height: 1px; background: var(--line-strong);
  transform: scaleX(var(--progress, 0)); transform-origin: right; transition: transform 1.6s var(--ease);
}
.process.in { --progress: 1; }
.step { padding-top: 54px; position: relative; padding-inline-end: 12px; }
.step::before {
  content: ""; position: absolute; top: 10px; inset-inline-start: 0; width: 13px; height: 13px;
  background: var(--paper); border: 1px solid var(--ink); transform: rotate(45deg);
}
.step .mono { color: var(--accent); }
.step h3 { font-size: 1.45rem; font-weight: 400; margin: 12px 0 12px; }
.step p { color: var(--ink-2); font-size: 0.97rem; }

/* Quote over image */
.quote-band { position: relative; color: var(--paper); background: var(--night); overflow: hidden; }
.quote-band .bg { position: absolute; inset: -12% 0; }
.quote-band .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: grayscale(0.3); }
.quote-band .wrap { padding-block: clamp(110px, 16vw, 220px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.quote-band blockquote { margin: 0; grid-column: 2 / span 9; }
.quote-band blockquote p { font-size: clamp(1.8rem, 3.8vw, 3.5rem); font-weight: 200; line-height: 1.28; }
.quote-band cite { display: block; margin-top: 34px; font-style: normal; color: rgba(239, 236, 230, 0.75); }
.quote-band cite b { font-weight: 500; color: var(--paper); }

/* CTA band */
.cta-band { background: var(--night); color: var(--paper); position: relative; overflow: hidden; }
.cta-band .wrap { padding-block: clamp(90px, 12vw, 160px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(2.5rem, 6.4vw, 6.2rem); font-weight: 200; line-height: 1; }
.cta-band h2 em { color: var(--accent-soft); }
.cta-band p { color: rgba(239, 236, 230, 0.72); margin-bottom: 30px; max-width: 28em; }
.cta-band .plan {
  position: absolute; inset-inline-start: -4%; top: 50%; transform: translateY(-50%); width: 46%; opacity: 0.12; pointer-events: none;
}
.cta-band .plan * { fill: none; stroke: var(--paper); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(60px, 9vw, 120px)); padding-bottom: clamp(50px, 7vw, 90px); position: relative; }
.breadcrumbs { margin-bottom: 34px; }
.breadcrumbs ol { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: 0.6; }
.breadcrumbs a:hover { color: var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.page-hero h1 { grid-column: 1 / span 8; font-size: clamp(3rem, 8vw, 7.6rem); font-weight: 200; line-height: 0.98; letter-spacing: -0.025em; }
.page-hero .intro { grid-column: 9 / -1; color: var(--ink-2); font-size: 1.06rem; }
.dimension {
  display: flex; align-items: center; gap: 14px; margin-top: clamp(40px, 6vw, 70px); color: var(--muted);
}
.dimension::before, .dimension::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.dimension span { position: relative; }
.dim-ends { position: relative; }
.dim-ends::before, .dim-ends::after { content: ""; position: absolute; top: 50%; width: 1px; height: 11px; background: var(--ink); transform: translateY(-50%); }
.dim-ends::before { right: 0; }
.dim-ends::after { left: 0; }

/* Wide feature image on inner pages */
.wide-figure { margin: 0; }
.wide-figure .frame { aspect-ratio: 21 / 9; }
.wide-figure figcaption { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 0.88rem; }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 60px); }
.filter {
  background: transparent; border: 1px solid var(--line-strong); padding: 10px 20px; font-size: 0.92rem;
  display: inline-flex; gap: 10px; align-items: baseline; transition: all 0.4s var(--ease);
}
.filter sup { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: var(--accent-soft); }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(44px, 6vw, 80px) 24px; }
.projects-grid .project-card { grid-column: span 6; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.projects-grid .project-card:nth-child(3n + 1) { grid-column: span 7; }
.projects-grid .project-card:nth-child(3n + 2) { grid-column: span 5; margin-top: clamp(0px, 8vw, 110px); }
.projects-grid .project-card:nth-child(3n + 3) { grid-column: 3 / span 8; }
.projects-grid .project-card:nth-child(3n + 3) .frame { aspect-ratio: 16 / 8; }
.projects-grid .project-card.is-hidden { display: none; }
.project-specs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; }
.project-specs span b { font-weight: 500; color: var(--ink); }
.tag { display: inline-block; font-size: 0.78rem; border: 1px solid var(--line-strong); padding: 2px 10px; color: var(--ink-2); }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.split .media { grid-column: 1 / span 5; position: sticky; top: 100px; }
.split .media .frame { aspect-ratio: 2 / 3; }
.split .body { grid-column: 7 / -1; display: grid; gap: 26px; }
.split .body h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 8px; }
.split .body p { color: var(--ink-2); }
.split .body .lead { font-size: 1.32rem; color: var(--ink); line-height: 1.6; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.principle { padding: 38px 0 0; padding-inline-end: 34px; }
.principle + .principle { padding-inline-start: 34px; border-inline-start: 1px solid var(--line); }
.principle svg { width: 64px; height: 64px; margin-bottom: 26px; }
.principle svg * { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.principle svg .a { stroke: var(--accent); }
.principle h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: 14px; }
.principle p { color: var(--ink-2); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.member .mono-box {
  aspect-ratio: 1; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 18px; position: relative;
  font-size: 3.2rem; font-weight: 200; color: var(--ink-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
.member:hover .mono-box { background-color: var(--ink); color: var(--paper); }
.member h3 { font-size: 1.2rem; font-weight: 500; }
.member p { color: var(--muted); font-size: 0.92rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.timeline li {
  display: grid; grid-template-columns: 140px 1fr 1.4fr; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}
.timeline li:hover { background: var(--paper-2); padding-inline: 18px; }
.timeline .year { font-family: var(--mono); color: var(--accent); font-size: 0.9rem; padding-top: 6px; }
.timeline h3 { font-size: 1.3rem; font-weight: 400; }
.timeline p { color: var(--ink-2); }

/* ---------- Services page ---------- */
.services-list { border-top: 1px solid var(--line-strong); counter-reset: svc; }
.service {
  display: grid; grid-template-columns: 90px 1fr 1.25fr 220px; gap: 28px; padding-block: 44px;
  border-bottom: 1px solid var(--line-strong); align-items: start; position: relative;
}
.service::before {
  content: ""; position: absolute; inset-inline-start: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.9s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service .mono { color: var(--accent); padding-top: 12px; }
.service h3, .service h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 300; }
.service p { color: var(--ink-2); }
.service ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 0.94rem; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; width: 10px; height: 1px; background: var(--ink); flex: none; transform: translateY(-4px); }
.service .thumb { aspect-ratio: 4 / 3; }

.process-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--night-line); }
.process-full .step-card { padding-block: 40px 46px; padding-inline: 0 34px; border-bottom: 1px solid var(--night-line); }
.process-full .step-card:not(:nth-child(3n)) { border-inline-end: 1px solid var(--night-line); }
.process-full .step-card:not(:nth-child(3n + 1)) { padding-inline-start: 34px; }
.process-full .big { font-size: 4.4rem; font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(239, 236, 230, 0.5); font-family: var(--mono); }
.process-full h3 { font-size: 1.5rem; font-weight: 400; margin: 24px 0 12px; }
.process-full p { color: rgba(239, 236, 230, 0.68); font-size: 0.97rem; }
.process-full .dur { margin-top: 18px; color: var(--accent-soft); }
.dark-section { background: var(--night); color: var(--paper); }
.dark-section .he-label { color: rgba(239, 236, 230, 0.85); }
.dark-section .he-label::after { background: var(--night-line); }
.dark-section .section-head p { color: rgba(239, 236, 230, 0.68); }
.dark-section h2 em { color: var(--accent-soft); }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 22px; height: 22px; position: relative; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; top: 50%; inset-inline: 0; height: 1px; background: var(--ink); transition: transform 0.5s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details[open] summary { color: var(--accent); }
.faq .answer { padding-bottom: 30px; color: var(--ink-2); max-width: 52em; }
.faq-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq-wrap .section-head { grid-column: 1 / span 4; display: block; }
.faq-wrap .section-head h2 { margin-top: 0; }
.faq-wrap .faq { grid-column: 6 / -1; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact-form { grid-column: 1 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.field { display: grid; gap: 8px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.08rem; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--line-strong); padding: 10px 0 12px; border-radius: 0; outline: none;
  transition: border-color 0.4s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: 8px 55%, 14px 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line-strong); padding: 8px 16px; font-size: 0.92rem; transition: all 0.35s var(--ease); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 0.84rem; }
.form-status { grid-column: 1 / -1; padding: 18px 22px; border: 1px solid var(--accent); color: var(--ink); display: none; }
.form-status.show { display: block; }

.contact-info { grid-column: 9 / -1; display: grid; gap: 34px; align-content: start; }
.info-block { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.info-block h2 { font-size: 0.86rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; letter-spacing: 0; line-height: 1.5; }
.info-block p, .info-block a { font-size: 1.12rem; }
.info-block a:hover { color: var(--accent); }
.map-frame { aspect-ratio: 21 / 8; border: 0; width: 100%; filter: grayscale(1) contrast(1.05) opacity(0.9); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--paper); padding-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.site-footer address { font-style: normal; }
.footer-grid h2 { font-size: 0.8rem; font-weight: 500; color: rgba(239, 236, 230, 0.5); margin-bottom: 18px; line-height: 1.4; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(239, 236, 230, 0.85); transition: color 0.3s; }
.footer-grid a:hover { color: var(--accent-soft); }
.footer-lead { font-size: 1.5rem; font-weight: 200; line-height: 1.4; max-width: 16em; }
.footer-word {
  font-size: clamp(6rem, 26vw, 26rem); font-weight: 600; line-height: 0.75; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 236, 230, 0.22); direction: ltr; text-align: center;
  user-select: none; margin-bottom: -0.06em;
}
.footer-bottom {
  border-top: 1px solid var(--night-line); padding-block: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.84rem; color: rgba(239, 236, 230, 0.55);
}

.footer-bottom .credit { color: rgba(239, 236, 230, 0.85); border-bottom: 1px solid rgba(239, 236, 230, 0.3); transition: color 0.3s, border-color 0.3s; }
.footer-bottom .credit:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.form-status a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Discreet "concept" tag — this is a portfolio demo */
.concept-tag {
  position: fixed; bottom: 16px; left: 16px; z-index: 40;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; direction: ltr;
  padding: 7px 12px; color: var(--ink-2);
  background: rgba(239, 236, 230, 0.82); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.concept-tag span { color: var(--accent); text-transform: uppercase; }
.concept-tag:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-open .concept-tag { display: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
.reveal-img .frame img { transform: scale(1.15); }
.reveal-img.in .frame { clip-path: inset(0 0 0 0); }
.reveal-img.in .frame img { transform: scale(1); }
.reveal-img.in:hover .frame img { transform: scale(1.045); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service { grid-template-columns: 60px 1fr 1fr; }
  .service .thumb { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .guides { background-size: calc(100% / 4) 100%; }
  .menu-toggle { display: block; z-index: 3; }
  .nav {
    position: fixed; inset: 0; z-index: 2; background: var(--night); color: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 0 var(--gutter);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease); visibility: hidden;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu-open .site-header { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav a { font-size: 2.3rem; font-weight: 200; }
  .nav a .n { font-size: 0.8rem; }
  .nav .nav-cta { font-size: 1.1rem; margin-top: 24px; padding: 14px 26px; font-weight: 400; }
  .brand { position: relative; z-index: 3; }

  .hero-bottom { grid-template-columns: 1fr; gap: 26px; }
  .hero-meta { display: none; }
  .hero-blueprint { opacity: 0.35; }
  .hero::before { background: linear-gradient(to top, rgba(12, 12, 11, 0.92) 0%, rgba(12, 12, 11, 0.55) 55%, rgba(12, 12, 11, 0.45) 100%); }
  .hero .label { font-size: 0.66rem; letter-spacing: 0.06em; }
  .hero .label::before { display: none; }
  .crosshair { display: none; }

  .section-head h2, .section-head p, .section-head .text-link { grid-column: 1 / -1; }
  .section-head p { margin-top: 20px; }
  .section-head .text-link { justify-self: start; margin-top: 22px; }
  .manifesto-text, .manifesto-aside { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; border-top: 0; }
  .stat { border-top: 1px solid var(--line-strong); }

  .pf-1, .pf-2, .pf-3, .pf-4 { grid-column: 1 / -1; margin-top: 0; }
  .pf-2 .frame { aspect-ratio: 4 / 3; }
  .process { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .process::before { display: none; }
  .quote-band blockquote { grid-column: 1 / -1; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .plan { width: 90%; }

  .page-hero h1, .page-hero .intro { grid-column: 1 / -1; }
  .wide-figure .frame { aspect-ratio: 4 / 3; }
  .projects-grid .project-card,
  .projects-grid .project-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .projects-grid .project-card:nth-child(3n + 3) .frame { aspect-ratio: 4 / 3; }

  .split .media, .split .body { grid-column: 1 / -1; position: static; }
  .split .media .frame { aspect-ratio: 4 / 3; }
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 34px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }

  .service { grid-template-columns: 1fr; gap: 12px; padding-block: 34px; }
  .service .mono { padding-top: 0; }
  .process-full { grid-template-columns: 1fr; }
  .process-full .step-card, .process-full .step-card:nth-child(n) { padding: 32px 0; border-inline-end: 0; }
  .faq-wrap .section-head, .faq-wrap .faq { grid-column: 1 / -1; }

  .contact-form, .contact-info { grid-column: 1 / -1; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-info { margin-top: 50px; }
  .map-frame { aspect-ratio: 4 / 3; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 520px) {
  .team { grid-template-columns: 1fr 1fr; gap: 16px; }
  .process { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; padding-inline: 16px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-img .frame { opacity: 1; transform: none; clip-path: none; }
  .marquee-track { animation: none; }
}

/* Screenshot mode: final state, no motion */
.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }
.static .hero h1 .line > span, .static .hero-media img { transform: none; }
.static .draw { stroke-dashoffset: 0; }
.static .fade-late, .static .hero-bottom { opacity: 1; }
