﻿:root {
  --black: #050606;
  --graphite: #2f3332;
  --graphite-soft: #4a4f4d;
  --ash: #d8d5cb;
  --paper: #f3f0e8;
  --paper-deep: #e7e1d5;
  --yellow: #d8c646;
  --yellow-soft: #efe272;
  --white: #ffffff;
  --header-height: 74px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--black); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  align-items: center;
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto 1fr;
  height: var(--header-height);
  left: 0;
  padding: 0 clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(243, 240, 232, 0.94);
  border-bottom: 1px solid rgba(5, 6, 6, 0.1);
  color: var(--black);
  backdrop-filter: blur(18px);
}

.brand { align-items: center; display: flex; line-height: 0; }
.brand img { filter: brightness(0) invert(1); height: clamp(24px, 3vw, 34px); width: auto; }
.site-header.is-scrolled .brand img { filter: none; }

.site-nav { align-items: center; display: flex; gap: clamp(18px, 2.8vw, 34px); justify-content: center; }
.site-nav a, .header-link { font-size: 0.82rem; font-weight: 800; }
.site-nav a { opacity: 0.78; transition: opacity 180ms ease; }
.site-nav a:hover { opacity: 1; }
.header-actions { align-items: center; display: flex; gap: 12px; justify-self: end; }
.language-switch {
  align-items: center;
  border: 1px solid rgba(255,255,255,0.34);
  display: inline-flex;
  padding: 3px;
}
.site-header.is-scrolled .language-switch { border-color: rgba(5, 6, 6, 0.18); }
.language-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  height: 30px;
  letter-spacing: 0;
  min-width: 34px;
  padding: 0 9px;
  transition: background 180ms ease, color 180ms ease;
}
.language-button.is-active { background: var(--yellow); color: var(--black); }
.header-link {
  border: 1px solid currentColor;
  padding: 11px 16px 12px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.header-link:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); transform: translateY(-1px); }

.hero { background: var(--black); color: var(--white); min-height: 100svh; overflow: hidden; position: relative; }
.hero-media, .hero-shade { inset: 0; position: absolute; }
.hero-media {
  background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=86") center / cover;
  filter: grayscale(0.12) saturate(0.72) contrast(1.05) brightness(0.78);
  transform: scale(1.02);
}
.hero-shade {
  background: linear-gradient(90deg, rgba(5, 6, 6, 0.92), rgba(5, 6, 6, 0.54) 44%, rgba(5, 6, 6, 0.12)), linear-gradient(180deg, rgba(5, 6, 6, 0.08), rgba(5, 6, 6, 0.42));
}
.hero::after {
  background: var(--yellow);
  bottom: clamp(26px, 5vw, 54px);
  content: "";
  height: 9px;
  left: clamp(20px, 5vw, 70px);
  position: absolute;
  width: clamp(42px, 7vw, 96px);
  z-index: 3;
}
.hero-content {
  align-content: end;
  display: grid;
  max-width: 860px;
  min-height: 100svh;
  padding: calc(var(--header-height) + 52px) clamp(20px, 5vw, 70px) clamp(78px, 9vw, 118px);
  position: relative;
  z-index: 2;
}

.eyebrow { color: var(--yellow); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.18em; margin: 0 0 18px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(4rem, 10vw, 9.2rem); letter-spacing: 0; line-height: 0.82; margin-bottom: 28px; max-width: 9ch; text-transform: uppercase; }
h2 { font-size: clamp(2.4rem, 6vw, 6.6rem); letter-spacing: 0; line-height: 0.94; margin-bottom: 0; }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.08; margin-bottom: 0; }
p { line-height: 1.65; }
.hero-content p:not(.eyebrow) { color: rgba(255,255,255,0.78); font-size: clamp(1.05rem, 1.8vw, 1.32rem); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.button { align-items: center; border: 1px solid transparent; cursor: pointer; display: inline-flex; font-weight: 900; justify-content: center; min-height: 52px; padding: 0 22px; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--black); }
.button-primary:hover { background: var(--yellow-soft); }
.button-ghost { border-color: rgba(255,255,255,0.42); color: var(--white); }
.button-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.section-inner { margin: 0 auto; max-width: 1240px; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.statement, .principle, .projects, .process, .partners, .contact { padding: clamp(76px, 10vw, 142px) 0; }
.statement { background: var(--paper); }
.statement-grid, .principle-layout, .process-grid, .partners-layout, .contact-grid { display: grid; gap: clamp(34px, 6vw, 88px); grid-template-columns: 0.82fr 1fr; }
.statement-title { align-self: start; position: sticky; top: 110px; }

.work-types { border-top: 1px solid rgba(5, 6, 6, 0.16); }
.work-type { border-bottom: 1px solid rgba(5, 6, 6, 0.16); display: grid; gap: 22px; grid-template-columns: 52px 1fr; padding: clamp(28px, 5vw, 52px) 0; }
.work-type span, .steps li::before { color: var(--yellow); font-size: 0.82rem; font-weight: 950; }
.work-type p, .principle-copy p, .steps p, .contact-copy p { color: var(--graphite-soft); margin: 14px 0 0; max-width: 660px; }

.principle { background: var(--graphite); color: var(--white); }
.principle-copy p, .principle-list { color: rgba(255,255,255,0.68); }
.principle-list { align-self: end; border-top: 1px solid rgba(255,255,255,0.16); list-style: none; margin: 0; padding: 0; }
.principle-list li { border-bottom: 1px solid rgba(255,255,255,0.16); font-size: clamp(1.05rem, 1.8vw, 1.34rem); line-height: 1.4; padding: 22px 0; }

.projects { background: var(--paper-deep); }
.section-heading { margin-bottom: clamp(34px, 6vw, 72px); max-width: 930px; }
.project-grid { display: grid; gap: 10px; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); }
.project-tile { background: var(--black); margin: 0; overflow: hidden; position: relative; }
.project-tile-large { grid-column: span 2; grid-row: span 2; }
.project-tile img { aspect-ratio: 1 / 1; filter: saturate(0.74) contrast(1.06) brightness(0.88) sepia(0.08); height: 100%; object-fit: cover; transition: filter 520ms ease, transform 520ms ease; width: 100%; }
.project-tile-large img { aspect-ratio: 1 / 1; }
.project-tile::after { background: linear-gradient(180deg, transparent 44%, rgba(5,6,6,0.72)), linear-gradient(90deg, rgba(216,198,70,0.16), transparent 48%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.project-tile figcaption { bottom: 18px; color: var(--white); font-weight: 900; left: 18px; position: absolute; right: 18px; z-index: 2; }
.project-tile:hover img { filter: saturate(0.86) contrast(1.08) brightness(0.96) sepia(0.04); transform: scale(1.035); }

.process { background: var(--paper); }
.steps { border-top: 1px solid rgba(5,6,6,0.16); counter-reset: steps; list-style: none; margin: 0; padding: 0; }
.steps li { border-bottom: 1px solid rgba(5,6,6,0.16); display: grid; gap: 18px; grid-template-columns: 52px 1fr; padding: 28px 0; }
.steps li::before { content: counter(steps, decimal-leading-zero); counter-increment: steps; }
.steps span { font-size: clamp(1.18rem, 2vw, 1.5rem); font-weight: 900; }
.steps p { grid-column: 2; margin-top: -8px; }

.partners { background: var(--black); color: var(--white); }
.partners .section-heading { margin-bottom: 0; }
.partner-logos { align-items: center; align-self: end; display: grid; gap: clamp(32px, 4vw, 54px); grid-template-columns: repeat(2, minmax(160px, 1fr)); list-style: none; margin: 0; padding: 0; }
.partner-logos li { align-items: center; border-bottom: 1px solid rgba(255,255,255,0.14); display: flex; min-height: 96px; padding: 8px 0; }
.partner-logos img { filter: grayscale(1) saturate(0) contrast(0.86) brightness(1.8); max-height: 60px; max-width: 220px; object-fit: contain; opacity: 0.7; }

.contact { background: var(--graphite); color: var(--white); }
.contact-copy p { color: rgba(255,255,255,0.68); }
.contact-methods { display: grid; gap: 14px; margin-top: 30px; }
.contact-methods a { border-top: 1px solid rgba(255,255,255,0.16); color: var(--white); display: grid; gap: 4px; padding-top: 16px; }
.contact-methods span { color: var(--yellow); font-size: 0.76rem; font-weight: 950; text-transform: uppercase; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { color: rgba(255,255,255,0.72); display: grid; font-size: 0.86rem; font-weight: 850; gap: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: var(--white); min-height: 52px; padding: 13px 14px; width: 100%; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select option { color: var(--black); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--yellow); outline: 2px solid rgba(216,198,70,0.22); }
.contact-form .button { border: 0; justify-self: start; }

.site-footer { background: var(--black); color: rgba(255,255,255,0.66); padding: 26px 0; }
.footer-inner { align-items: center; display: flex; justify-content: space-between; }
.footer-inner img { filter: brightness(0) invert(1); height: 26px; opacity: 0.78; width: auto; }
.footer-contact { align-items: flex-end; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { transition: color 180ms ease; }
.footer-contact a:hover { color: var(--white); }

.legal-page { background: var(--paper); color: var(--black); }
.legal-header { background: var(--black); color: var(--white); padding: 22px 0; }
.legal-header-inner { align-items: center; display: flex; justify-content: space-between; gap: 20px; }
.legal-brand img { filter: brightness(0) invert(1); height: clamp(24px, 3vw, 34px); width: auto; }
.back-link {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
}
.back-link:hover { border-color: var(--yellow); color: var(--yellow); }
.legal-shell { padding-bottom: 96px; }
.legal-hero { background: var(--paper-deep); padding: 58px 0 36px; }
.legal-hero-inner h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 0.94; margin-bottom: 18px; max-width: 12ch; text-transform: none; }
.legal-lead { color: var(--graphite-soft); font-size: 1.02rem; max-width: 720px; }
.legal-content-wrap { padding: 0 0 48px; }
.legal-content {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(5, 6, 6, 0.08);
  margin-top: 22px;
  padding: clamp(24px, 4vw, 48px);
}
.legal-content h1, .legal-content h2, .legal-content h3, .legal-content h4 { letter-spacing: 0; margin-bottom: 14px; text-transform: none; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; }
.legal-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; margin-top: 34px; }
.legal-content h3 { font-size: 1.08rem; margin-top: 24px; }
.legal-content h4 { font-size: 1rem; margin-top: 18px; }
.legal-content p, .legal-content li { color: var(--graphite); line-height: 1.7; }
.legal-content ul, .legal-content ol { margin: 10px 0 18px; padding-left: 20px; }
.legal-content code {
  background: rgba(5, 6, 6, 0.06);
  border: 1px solid rgba(5, 6, 6, 0.08);
  color: var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 920px) {
  :root { --header-height: 66px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .brand img { height: 24px; max-width: 186px; }
  .statement-grid, .principle-layout, .process-grid, .partners-layout, .contact-grid { grid-template-columns: 1fr; }
  .statement-title { position: static; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .site-header { gap: 12px; padding: 0 16px; }
  .header-actions { gap: 8px; }
  .language-switch { padding: 2px; }
  .language-button { font-size: 0.66rem; height: 28px; min-width: 29px; padding: 0 6px; }
  .header-link { display: none; }
  .brand img { height: 20px; max-width: 150px; }
  h1 { font-size: clamp(3.3rem, 17vw, 4.7rem); }
  .hero-content { padding-left: 18px; padding-right: 18px; }
  .button { width: 100%; }
  .work-type, .steps li { grid-template-columns: 1fr; }
  .steps p { grid-column: 1; }
  .project-grid, .partner-logos { grid-template-columns: 1fr; }
  .partner-logos li { min-height: 82px; }
  .partner-logos img { max-height: 52px; max-width: 210px; }
  .project-tile-large { grid-column: span 1; grid-row: span 1; }
  .project-tile img, .project-tile-large img { aspect-ratio: 4 / 5; }
  .footer-inner, .footer-contact { align-items: flex-start; flex-direction: column; gap: 12px; }
  .legal-header-inner { align-items: flex-start; flex-direction: column; }
}
