/* Light monochrome — #0A0A0A … #FFFFFF; canvas = cool off-white, #FFF = lift only */
:root {
  /* Page wash: easier on eyes than pure white; grid sits on this */
  --canvas: #fafafb;
  /* Lifted panels (hero copy, strip specs, chrome): crisp white */
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --bg-elevated: #ffffff;
  --surface: #eef0f3;
  --surface-deep: #e6e9ed;

  --line: #e0e0e0;

  /* Type: ink + cool gray; muted = same hue, lower contrast */
  --ink-strong: #0a0a0a;
  --ink: #0d0d0d;
  --text: #1a1c1e;
  --text-muted: rgba(26, 28, 30, 0.55);

  --link: #1a1c1e;
  --link-hover: #0d0d0d;

  /* Primary actions: ink field + white type (no chroma accent) */
  --on-primary: #ffffff;

  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 2px;
  --max: 1120px;
  --header-h: 64px;
  --grid-unit: 24px;
  --grid-line: rgba(13, 15, 18, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-unit) var(--grid-unit);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow { max-width: 52ch; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.site-header.is-scrolled {
  /* Frosted lift: matches --bg so header reads clearly over --canvas */
  background: rgba(255, 255, 255, 0.93);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__cluster {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  min-width: 0;
}

.status-operational {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: var(--text);
  padding: 0.35em 0.65em;
  border-radius: var(--radius);
  border: 1px solid var(--text);
  white-space: nowrap;
}

.logo {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--text); text-decoration: none; }
.logo span { color: var(--link-hover); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover { color: var(--text); border-color: var(--text-muted); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-primary a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-primary {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }
  .nav-primary.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-primary a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-primary li:last-child a { border-bottom: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-primary);
  border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.06);
}

.btn-primary:hover {
  text-decoration: none;
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 2px 8px rgba(13, 13, 13, 0.08);
}

a.btn-primary,
a.btn-primary:hover {
  color: var(--on-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-soft);
}

a.btn:hover {
  text-decoration: none;
}

/* ----- Hero: 50 / 50, one focal CTA ----- */
.hero--minimal {
  border-bottom: 1px solid var(--line);
}

.hero-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - var(--header-h));
}

.hero-panel {
  position: relative;
  min-height: calc(100svh - var(--header-h));
}

.hero-panel--text {
  display: flex;
  align-items: center;
  padding: calc(var(--grid-unit) * 2);
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.hero-panel__inner {
  max-width: 36ch;
}

.hero-panel--text h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: var(--ink-strong);
}

.hero-lede {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.hero-lede--secondary {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.hero-panel--visual {
  background: var(--surface-deep);
}

.hero-panel__media {
  position: absolute;
  inset: 0;
}

.hero-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.45s ease;
}

.hero-panel__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.82);
  pointer-events: none;
  transition: opacity 0.45s ease, background 0.45s ease;
}

@media (hover: hover) {
  .hero-panel--visual:hover .hero-panel__shade {
    opacity: 0;
  }

  .hero-panel--visual:hover .hero-panel__media img {
    filter: saturate(1) contrast(1);
  }
}

@media (max-width: 900px) {
  .hero-panels {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-panel { min-height: auto; }
  .hero-panel--text {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: calc(var(--grid-unit) * 2.5) calc(var(--grid-unit) * 1.5);
    min-height: auto;
  }
  .hero-panel--visual {
    min-height: 48vw;
    aspect-ratio: 16 / 10;
  }
}

/* ----- Museum strips ----- */
.projects-museum {
  margin: 0;
  padding: 0;
}

.project-strip {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.65s ease;
}

.project-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-strip--featured {
  min-height: 78vh;
}

.project-strip:not(.project-strip--featured) {
  min-height: 62vh;
}

.project-strip__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}

.project-strip__link:hover { text-decoration: none; }

.project-strip__link:hover .project-strip__title {
  color: var(--ink);
}

.project-strip__link:hover .project-strip__spec {
  background: var(--bg-soft);
}

.project-strip--media-right .project-strip__link {
  direction: rtl;
}

.project-strip--media-right .project-strip__spec,
.project-strip--media-right .project-strip__media {
  direction: ltr;
}

.project-strip__media {
  position: relative;
  min-height: inherit;
  background: var(--surface-deep);
}

.project-strip--featured .project-strip__spec {
  box-shadow: inset 4px 0 0 0 var(--ink);
}

.project-strip--featured.project-strip--media-right .project-strip__spec {
  box-shadow: inset -4px 0 0 0 var(--ink);
}

.project-strip__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.project-strip__spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--grid-unit) * 2.5);
  border-left: 1px solid var(--line);
  background: var(--bg);
}

.project-strip--media-right .project-strip__spec {
  border-left: 0;
  border-right: 1px solid var(--line);
}

.project-strip__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--text);
}

.project-strip--featured .project-strip__title {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
}

.project-strip__bullets {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.project-strip__bullets li { margin-bottom: 0.65rem; }

.project-strip__cta {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-strip__link:hover .project-strip__cta {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

@media (max-width: 900px) {
  .project-strip--featured,
  .project-strip:not(.project-strip--featured) {
    min-height: auto;
  }
  .project-strip__link {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }
  .project-strip__spec {
    border-left: 0;
    border-right: 0 !important;
    border-top: 1px solid var(--line);
    padding: calc(var(--grid-unit) * 2) calc(var(--grid-unit) * 1.5);
  }
  .project-strip__media {
    min-height: 42vw;
    aspect-ratio: 16 / 10;
  }

  .project-strip--featured .project-strip__spec,
  .project-strip--featured.project-strip--media-right .project-strip__spec {
    box-shadow: inset 0 4px 0 0 var(--ink);
  }
}

/* ----- Simple sections ----- */
.section--simple {
  padding: calc(var(--grid-unit) * 3) 0;
  border-top: 1px solid var(--line);
}

.section--simple h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section--simple p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.section--simple .btn { margin-top: 0.5rem; }

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: calc(var(--grid-unit) * 1.5) 0 calc(var(--grid-unit) * 2);
  margin-top: 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--link-hover); }

.footer-sep { margin: 0 0.35rem; color: var(--line); }

.footer-logs {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  max-width: min(100%, 36rem);
}

.footer-logs summary {
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  user-select: none;
  list-style: none;
}

.footer-logs summary::-webkit-details-marker { display: none; }

.footer-logs__body {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.58rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 10rem;
  overflow: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  z-index: 300;
}

.skip-link:focus { top: 1rem; }

/* ----- Project pages (case studies) ----- */
.page-hero { padding: clamp(2rem, 5vw, 3rem) 0 1.5rem; }

.page-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.page-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 2rem;
  aspect-ratio: 21 / 9;
  max-height: 380px;
  background: var(--surface);
}

.page-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { max-width: 65ch; }

.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 2rem 0 0.65rem;
  color: var(--ink);
}

.prose p { color: var(--text-muted); margin: 0 0 1rem; }
.prose ul { color: var(--text-muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.back-link:hover { text-decoration: none; color: var(--link-hover); }

.gallery { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery figcaption {
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
