@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  --ink: #1c1d1f;
  --paper: #e9e8e5;
  --panel: #f3f2ef;
  --mute: #8e8d89;
  --line: #d6d4cf;
  --body: #454540;
  --img-bg: #dedcd7;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(233,232,229,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── Footer ── */
footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(48px,6vw,80px) clamp(24px,5vw,72px) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-wordmark {
  font-size: clamp(20px,2.4vw,30px);
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  color: var(--ink);
}
.footer-sub {
  font-size: 13px;
  color: var(--mute);
  margin-top: 12px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1340px;
  margin: clamp(36px,5vw,56px) auto 0;
  padding: 22px clamp(24px,5vw,72px) 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

/* ── Reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Card ── */
.card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-img-wrap {
  overflow: hidden;
  background: var(--img-bg);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.card:hover .card-img-wrap img { transform: scale(1.045); }

.card-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  gap: 12px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
}
.card-cat {
  font-size: 12.5px;
  color: var(--mute);
  text-align: right;
  white-space: nowrap;
}

/* ── Scroll cue ── */
@keyframes kn-cue {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(8px); opacity: 1; }
}
.scroll-cue {
  display: inline-block;
  width: 1px;
  height: 30px;
  background: var(--line);
  animation: kn-cue 2.4s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   HOME
───────────────────────────────────────── */
.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px clamp(24px,5vw,72px) 80px;
  position: relative;
}
.hero-eyebrow {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-intro {
  font-size: clamp(20px,1.9vw,26px);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 22ch;
}
.hero-actions {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta-primary,
.hero-cta-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .2s;
}
.hero-cta-primary:hover,
.hero-cta-secondary:hover { border-color: var(--ink); }

.hero-location {
  position: absolute;
  left: clamp(24px,5vw,72px);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}

.hero-right {
  position: relative;
  background: var(--img-bg);
  min-height: 100vh;
  overflow: hidden;
}
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* Selected work */
.selected-work {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(72px,10vw,130px) clamp(24px,5vw,72px) clamp(60px,8vw,100px);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: clamp(40px,5vw,64px);
  flex-wrap: wrap;
  gap: 12px;
}
.section-h2 {
  font-weight: 600;
  font-size: clamp(18px,1.8vw,22px);
  letter-spacing: -.01em;
  margin: 0;
}
.section-header-link {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.section-header-link:hover { color: var(--ink); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px,2vw,34px);
}
.feat-a { grid-column: 1 / 7; }
.feat-b { grid-column: 8 / 13; margin-top: clamp(48px,7vw,108px); }
.feat-c { grid-column: 2 / 7; margin-top: clamp(20px,3vw,52px); }
.feat-d { grid-column: 8 / 12; }

/* ─────────────────────────────────────────
   WORK INDEX
───────────────────────────────────────── */
.work-section {
  padding-top: 62px;
}
.work-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(52px,7vw,96px) clamp(24px,5vw,72px) clamp(70px,9vw,130px);
}
.work-header {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(40px,6vw,72px);
}
.page-h1 {
  font-weight: 600;
  font-size: clamp(28px,4vw,52px);
  margin: 0;
  line-height: 1;
  letter-spacing: -.02em;
}
.work-meta {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px,4vw,72px);
}
.work-grid .card:nth-child(even) {
  margin-top: clamp(40px,7vw,110px);
}
.work-grid .card .card-title {
  font-size: clamp(16px,1.4vw,19px);
}

/* ─────────────────────────────────────────
   PROJECT DETAIL
───────────────────────────────────────── */
.project-section {
  padding-top: 62px;
}
.project-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px,6vw,76px) clamp(24px,5vw,72px) clamp(70px,9vw,130px);
}
.project-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: clamp(34px,5vw,56px);
}
.back-link {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.back-link:hover { color: var(--ink); }
.project-index {
  font-size: 14px;
  color: var(--mute);
  font-weight: 500;
}
.project-h1 {
  font-weight: 600;
  font-size: clamp(30px,4.5vw,58px);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -.02em;
}
.project-intro {
  font-size: clamp(17px,1.6vw,21px);
  color: var(--body);
  max-width: 46ch;
  margin: 16px 0 clamp(38px,5vw,58px);
  line-height: 1.5;
  font-weight: 400;
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: clamp(40px,6vw,72px);
}
.meta-label {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.meta-value {
  font-size: 15px;
  font-weight: 500;
}
.project-lead {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(44px,6vw,72px);
}
.project-lead img {
  object-fit: cover;
  object-position: center 10%;
  background: var(--img-bg);
}
.project-desc {
  max-width: 600px;
  margin: 0 auto clamp(46px,6vw,78px);
}
.project-desc p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 20px;
  font-weight: 400;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: clamp(14px,2vw,28px);
}
.project-gallery figure {
  margin: 0;
}
.project-gallery figure.full { grid-column: 1 / -1; }
.project-gallery img {
  width: 100%;
  object-fit: cover;
  object-position: center 12%;
  background: var(--img-bg);
  display: block;
}
.project-gallery figcaption {
  font-size: 12px;
  color: var(--mute);
  margin-top: 10px;
  font-weight: 500;
}
.next-project {
  border-top: 1px solid var(--line);
  margin-top: clamp(52px,8vw,100px);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .2s;
}
.next-project:hover { opacity: .55; }
.next-label {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.next-title {
  font-size: clamp(18px,2vw,28px);
  font-weight: 600;
  text-align: right;
  letter-spacing: -.01em;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-section {
  padding-top: 62px;
}
.about-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(52px,7vw,96px) clamp(24px,5vw,72px) clamp(70px,9vw,130px);
}
.about-header {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: clamp(40px,6vw,64px);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px,6vw,90px);
  align-items: start;
}
.about-portrait {
  position: sticky;
  top: 94px;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: var(--img-bg);
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--mute);
  margin-top: 12px;
  font-weight: 500;
}
.about-statement {
  font-size: clamp(20px,2.1vw,28px);
  line-height: 1.38;
  margin: 0 0 28px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.about-bio p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--body);
  margin: 0 0 18px;
  max-width: 56ch;
  font-weight: 400;
}
.cv-block {
  margin-top: clamp(44px,6vw,72px);
}
.cv-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 38px;
}
.cv-label {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 4px;
  font-weight: 500;
}
.cv-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: none; }
.cv-title { font-size: 16px; font-weight: 500; }
.cv-sub { font-size: 13px; color: var(--mute); margin-top: 4px; }
.cv-date { font-size: 13px; color: var(--mute); white-space: nowrap; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 12.5px;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-section {
  padding-top: 62px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(56px,9vw,120px) clamp(24px,5vw,72px);
}
.contact-eyebrow {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 24px;
  font-weight: 500;
}
.contact-h1 {
  font-weight: 600;
  font-size: clamp(26px,3.4vw,44px);
  line-height: 1.08;
  margin: 0 0 clamp(40px,5vw,64px);
  max-width: 18ch;
  letter-spacing: -.02em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: clamp(28px,4vw,56px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.contact-block-label {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 11px;
  font-weight: 500;
}
.contact-link {
  text-decoration: none;
  font-size: clamp(16px,1.3vw,19px);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .2s;
  color: var(--ink);
}
.contact-link:hover { border-color: var(--ink); }
.contact-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 820px) {
  /* ── Mobile hero ── */
  .home-hero {
    display: flex;
    flex-direction: column;
    min-height: unset;
    grid-template-columns: unset;
  }
  .hero-right {
    flex: none;
    min-height: unset;
    aspect-ratio: unset;
    height: 56vw;
    order: -1;
    position: relative;
  }
  .hero-right img { position: absolute; }
  .hero-left {
    flex: none;
    padding: 32px 24px 36px;
    justify-content: flex-start;
  }
  .hero-location {
    position: static;
    margin-top: 20px;
  }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-intro { font-size: clamp(18px,5vw,24px); }
  .hero-actions { margin-top: 24px; gap: 20px; }

  /* ── Mobile home featured grid (editorial 2-col) ── */
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .feat-a {
    grid-column: 1 / -1;
    margin-top: 0;
    /* landscape crop for big opening card */
  }
  .feat-a .card-img-wrap { aspect-ratio: 3 / 2 !important; }
  .feat-b {
    grid-column: 1 / 2;
    margin-top: 22px;
  }
  .feat-c {
    grid-column: 2 / 3;
    margin-top: 0;
  }
  .feat-d {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .feat-d .card-img-wrap { aspect-ratio: 4 / 3 !important; }

  /* ── Selected work section top gap ── */
  .selected-work {
    padding-top: 36px;
  }

  /* ── Work index ── */
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .card:nth-child(even) { margin-top: 0; }

  /* ── About ── */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait { position: static; }
}
