/* ============================================================
   Phase 32 — Production Stylesheet
   ============================================================ */

:root {
  --ink: #1a1612;
  --ink-soft: #4a4540;
  --ink-mute: #8a857c;
  --ivory: #f5f1ea;
  --ivory-warm: #ece8df;
  --ivory-cool: #f8f5ee;
  --border: rgba(26, 22, 18, 0.1);
  --border-soft: rgba(26, 22, 18, 0.06);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1100px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
dl, dd, dt { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden, .skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0;
  clip: auto;
  background: var(--ink); color: var(--ivory);
  z-index: 100;
  border-radius: 4px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
}
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: 26px; width: auto; }

.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}
.site-nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  border-top: 0.5px solid var(--border);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 0.5px solid var(--border-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   Coordinates
   ============================================================ */

.coordinates {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.coordinates .rule {
  flex: 1;
  height: 0.5px;
  background: rgba(26,22,18,0.15);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: clamp(40px, 8vw, 80px) 0 clamp(48px, 9vw, 96px);
  border-bottom: 0.5px solid var(--border);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* ============================================================
   Section meta (eyebrow)
   ============================================================ */

.section-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 28px;
}
.section-meta--dark {
  color: rgba(245, 241, 234, 0.55);
  border-bottom-color: rgba(245, 241, 234, 0.15);
}

/* ============================================================
   Projects (expandable card)
   ============================================================ */

.projects {
  padding: clamp(40px, 6vw, 64px) 0;
}

.project-card {
  position: relative;
}

.project-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  padding: 16px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  background: var(--ivory-cool);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project-card__head:hover {
  background: var(--ivory-warm);
  border-color: rgba(26,22,18,0.18);
}
.project-card__head:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.project-card__icon {
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink);
  flex-shrink: 0;
}
.project-card__icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}
.project-card__head:hover .project-card__icon img {
  transform: scale(1.05);
}

.project-card__title-group { min-width: 0; }
.project-card__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 6px;
}
.project-card__location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.project-card__location .sep {
  display: inline-block;
  transform: skew(-18deg);
  color: var(--ink);
  opacity: 0.5;
}

.project-card__chevron {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  color: var(--ink);
  transition: transform 0.35s var(--ease), background 0.2s var(--ease);
}
.project-card[data-expanded="true"] .project-card__chevron {
  transform: rotate(180deg);
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

/* Expandable body */
.project-card__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
  overflow: hidden;
}
.project-card[data-expanded="true"] .project-card__body {
  grid-template-rows: 1fr;
}
.project-card__body-inner {
  min-height: 0;
  padding-top: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.1s;
}
.project-card[data-expanded="true"] .project-card__body-inner {
  opacity: 1;
}

/* Photos inside expanded card */
.photo-hero {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
  margin-bottom: 8px;
}
.photo-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}
.photo-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
}
.photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Numbers strip */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 28px;
}
.numbers__cell {
  padding: 16px 14px;
  border-right: 0.5px solid var(--border-soft);
}
.numbers__cell:last-child { border-right: 0; }
.numbers__cell dt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.numbers__cell dd {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}
.numbers__cell dd .unit {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 3px;
  letter-spacing: 0.02em;
}

/* Phase indicator */
.phase-indicator__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.phase-indicator__track {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.phase-indicator__seg {
  flex: 1;
  height: 2px;
  background: rgba(26,22,18,0.15);
}
.phase-indicator__seg.active {
  background: var(--ink);
}
.phase-indicator__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(26,22,18,0.3);
}
.phase-indicator__labels span.active {
  color: var(--ink);
}

/* ============================================================
   Slash divider
   ============================================================ */

.slash-divider {
  background: var(--ink);
  line-height: 0;
}

/* ============================================================
   Approach (dark)
   ============================================================ */

.approach {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(56px, 9vw, 96px) 0;
}
.approach__logo {
  height: 30px;
  width: auto;
  margin-bottom: 28px;
  filter: invert(1) brightness(1.05);
}
.approach__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--ivory);
  max-width: 22ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.phase-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,241,234,0.45);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.phase-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ivory);
}
.phase-card p {
  font-size: 14px;
  color: rgba(245,241,234,0.7);
  line-height: 1.65;
  max-width: 32ch;
}

/* ============================================================
   About
   ============================================================ */

.about {
  padding: clamp(56px, 9vw, 96px) 0;
  background: var(--ivory);
}
.about__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4vw, 40px);
  max-width: 16ch;
}
.about__body {
  max-width: 56ch;
  display: grid;
  gap: 1.1em;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 17px);
  line-height: 1.7;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  padding: clamp(64px, 10vw, 112px) 0;
  text-align: center;
  background: var(--ivory-warm);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.contact__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}
.contact__lede {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  align-items: stretch;
}
.signup-form input[type="email"] {
  flex: 1;
  font: inherit;
  font-size: 14px;
  padding: 12px 16px;
  border: 0.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.signup-form input[type="email"]::placeholder {
  color: var(--ink-mute);
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-width: 1px;
  border-color: var(--ink);
  background: rgba(245,241,234,0.6);
}
.signup-form button {
  padding: 12px 22px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 0.5px solid var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.signup-form button:hover { background: var(--ivory); color: var(--ink); }
.signup-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.signup-form__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 1.2em;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ivory);
  padding: 36px 0;
  border-top: 0.5px solid var(--border);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.site-footer__brand img { height: 24px; width: auto; }
.site-footer__meta { display: grid; gap: 4px; }
.site-footer__meta a { color: inherit; transition: color 0.2s var(--ease); }
.site-footer__meta a:hover { color: var(--ink); }
.site-footer__coords { display: flex; gap: 8px; }

/* ============================================================
   (no entrance animations — content visible immediately)
   ============================================================ */

/* ============================================================
   Responsive: mobile
   ============================================================ */

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[data-open="true"] { display: flex; }

  .hero { padding: 56px 0 64px; }

  .section-meta { font-size: 10px; }

  .project-card__head {
    grid-template-columns: auto 1fr auto;
    padding: 14px;
    gap: 14px;
  }
  .project-card__location {
    font-size: 10px;
  }
  .project-card__location .coords { display: none; }

  .photo-grid { grid-template-columns: 1fr; }

  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers__cell {
    border-right: 0.5px solid var(--border-soft);
    border-bottom: 0.5px solid var(--border-soft);
  }
  .numbers__cell:nth-child(2n) { border-right: 0; }
  .numbers__cell:nth-last-child(-n+2) { border-bottom: 0; }

  .phases { grid-template-columns: 1fr; gap: 28px; }
  .phase-card p { max-width: none; }

  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; }

  .site-footer__inner { justify-content: flex-start; }
}
