/* Heartwood Development Partners */

:root {
  --espresso: #1c1815;
  --espresso-2: #241e1a;
  --espresso-3: #2e2621;
  --paper: #faf7f2;
  --cream: #f2ece3;
  --ink: #2a211b;
  --walnut: #4a3020;
  --tan: #a68060;
  --tan-light: #c8a682;
  --on-dark: #f1eae0;
  --on-dark-muted: #a89c90;
  --on-light-muted: #6e6258;
  --line-dark: rgba(241, 234, 224, 0.12);
  --line-light: rgba(42, 33, 27, 0.14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section-y: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--on-dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--on-dark); color: var(--espresso); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--tan-light); outline-offset: 4px; }

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

/* ---------- Section themes ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-dark { background: var(--espresso); color: var(--on-dark); }
.section-dark-2 { background: var(--espresso-2); color: var(--on-dark); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-cream { background: var(--cream); color: var(--ink); }

.section-paper, .section-cream { --line: var(--line-light); --muted: var(--on-light-muted); --accent: var(--tan); }
.section-dark, .section-dark-2, .site-footer, .hero { --line: var(--line-dark); --muted: var(--on-dark-muted); --accent: var(--tan-light); }

.muted { color: var(--muted); }

.eyebrow, .label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

h2 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; font-weight: 300; }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.lede { color: var(--muted); font-size: 18px; max-width: 460px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.split-head { align-self: start; position: sticky; top: 120px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-light { background: var(--on-dark); color: var(--espresso); }
.btn-light:hover { background: var(--tan-light); }

.link-arrow {
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease);
}
.link-arrow::after { content: "\2192"; margin-left: 10px; display: inline-block; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--tan-light); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 24, 21, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-dark); }
.brand-mark { width: 52px; height: auto; }
.brand-word { display: flex; align-items: center; padding: 3px 0 3px 14px; border-left: 1px solid var(--line-dark); }
.brand-word img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: rgba(241, 234, 224, 0.78); position: relative; padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--on-dark); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .nav-cta { border: 1px solid rgba(241, 234, 224, 0.4); padding: 10px 22px; color: var(--on-dark); }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--on-dark); color: var(--espresso); }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 60;
}
.nav-toggle .bar { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--on-dark); transition: transform 0.35s var(--ease); }
.nav-toggle .bar:nth-of-type(1) { top: 18px; }
.nav-toggle .bar:nth-of-type(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 16, 13, 0.72) 0%, rgba(20, 16, 13, 0.35) 55%, rgba(20, 16, 13, 0.1) 100%),
    linear-gradient(180deg, rgba(20, 16, 13, 0.7) 0%, rgba(20, 16, 13, 0.2) 28%, rgba(20, 16, 13, 0.35) 60%, rgba(20, 16, 13, 0.92) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { position: relative; padding-top: 140px; padding-bottom: clamp(72px, 10vh, 120px); }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 108px); line-height: 1; font-weight: 300; max-width: 13ch; letter-spacing: -0.015em;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 32px 64px;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 32px; border-top: 1px solid rgba(241, 234, 224, 0.22);
}
.hero-foot p { color: rgba(241, 234, 224, 0.82); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; width: 1px; height: 44px; overflow: hidden; transform: translateX(-50%);
}
.scroll-cue span { position: absolute; inset: 0; background: rgba(241, 234, 224, 0.6); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 7fr 5fr; gap: 48px 80px; align-items: end; }
.statement { font-family: var(--serif); font-size: clamp(28px, 3.3vw, 44px); line-height: 1.28; font-weight: 400; color: var(--ink); }
.statement em { font-style: italic; color: var(--walnut); }
.intro-body p + p { margin-top: 20px; }
.intro-body p:first-child { font-size: 18px; }

.clients { margin-top: clamp(80px, 10vw, 128px); padding-top: 48px; border-top: 1px solid var(--line); text-align: center; }
.marquee {
  overflow: hidden; padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: flex; align-items: center; height: 80px; padding: 0 clamp(28px, 3.4vw, 50px); }
.marquee-track img { height: var(--h); width: auto; opacity: 0.82; transition: opacity 0.4s var(--ease); }
.marquee-track li:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Rows (Focus / Engage) ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 5fr 6fr; gap: 16px 48px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.row p { color: var(--muted); }
.row .row-tag { color: var(--accent); font-size: 14px; letter-spacing: 0.02em; margin-top: 10px; }
.section-paper .row > p { color: var(--ink); opacity: 0.82; }
.footnote { margin-top: 32px; color: var(--muted); font-size: 15px; }

.focus-figure { margin-top: 56px; aspect-ratio: 4 / 5; overflow: hidden; max-width: 380px; }
.focus-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 28px; position: relative; }
.step .num { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--tan); display: block; margin-bottom: 28px; font-weight: 300; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.sector { padding: 56px 56px 0 0; }
.sector + .sector { padding: 56px 0 0 56px; border-left: 1px solid var(--line); }
.sector figure { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 40px; }
.sector figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector:hover figure img { transform: scale(1.03); }
.sector h3 { font-size: clamp(34px, 3.4vw, 46px); font-weight: 300; margin-bottom: 14px; }
.sector-lede { color: var(--muted); font-size: 17.5px; margin-bottom: 32px; max-width: 480px; }
.checklist li { padding: 16px 0 16px 30px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--tan);
}

/* ---------- Work ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px;
}
.project {
  grid-column: span 2; background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; position: relative;
}
.project-lg { grid-column: span 4; grid-row: span 2; }
.project:nth-child(2) { grid-column: span 2; }
.project-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--espresso-3); position: relative; }
.project-lg .project-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s var(--ease); }
.project-media::after {
  content: "View project"; position: absolute; left: 20px; bottom: 20px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark);
  background: rgba(28, 24, 21, 0.75); padding: 8px 14px; opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project:hover .project-media img, .project:focus-visible .project-media img { transform: scale(1.04); }
.project:hover .project-media::after, .project:focus-visible .project-media::after { opacity: 1; transform: none; }
.project-meta { display: block; padding-top: 18px; padding-right: 72px; }
.project-title { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.project-lg .project-title { font-size: 32px; }
.project-sub { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.project-count { position: absolute; right: 0; bottom: 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.project-lg .project-meta { padding-bottom: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-body .role { color: var(--accent); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin: 14px 0 40px; }
.about-lede { font-family: var(--serif); font-size: clamp(25px, 2.4vw, 32px); line-height: 1.35; margin-bottom: 24px; }
.about-body p:not(.eyebrow):not(.role):not(.about-lede) { color: rgba(241, 234, 224, 0.78); max-width: 560px; }

/* ---------- Inquire ---------- */
.inquire { display: grid; grid-template-columns: 5fr 7fr; gap: 64px clamp(48px, 8vw, 120px); }
.inquire-head h2 { margin-bottom: 24px; }
.contact-list { margin-top: 40px; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--tan-light); }

.inquire-form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; align-content: start; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--on-dark); background: transparent;
  border: 0; border-bottom: 1px solid rgba(241, 234, 224, 0.28); border-radius: 0;
  padding: 10px 0; width: 100%; transition: border-color 0.3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8a682' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field select option { background: var(--espresso); color: var(--on-dark); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(241, 234, 224, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--tan-light); }
.field.has-error input { border-bottom-color: #d98c74; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-status { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: #151210; color: var(--on-dark); padding: 96px 0 40px; }
.footer-logo { width: min(280px, 70vw); height: auto; margin: 0 auto 72px; }
.footer-row {
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--on-dark); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #100d0b; color: var(--on-dark);
  display: none; flex-direction: column;
}
.lightbox[open] { display: flex; animation: fadeIn 0.3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; gap: 24px; padding: 20px var(--gutter); }
.lb-title { font-family: var(--serif); font-size: 24px; flex: 1; }
.lb-count { font-size: 13px; letter-spacing: 0.14em; color: var(--on-dark-muted); }
.lb-close { background: none; border: 0; font-size: 36px; line-height: 1; cursor: pointer; width: 44px; height: 44px; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 var(--gutter); min-height: 0; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; flex: 0 1 auto; min-width: 0; transition: opacity 0.25s var(--ease); }
.lb-img.is-loading { opacity: 0; }
.lb-nav {
  flex: none; width: 52px; height: 52px; border: 1px solid var(--line-dark); background: none; cursor: pointer; font-size: 20px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lb-nav:hover { background: var(--on-dark); color: var(--espresso); }
.lb-caption { padding: 18px var(--gutter) 28px; text-align: center; color: var(--on-dark-muted); font-size: 15px; min-height: 1.7em; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  .scroll-cue { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 16px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(2) { grid-column: span 1; }
  .project-lg { grid-column: 1 / -1; grid-row: auto; }
  .project-lg .project-media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 55; background: var(--espresso);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
    padding: 100px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--serif); font-size: 40px; letter-spacing: 0; text-transform: none; color: var(--on-dark); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { border: 0; padding: 6px 0; color: var(--tan-light); }
  .site-nav .nav-cta:hover { background: none; color: var(--on-dark); }
  .brand { position: relative; z-index: 60; }

  .section-head, .split, .intro, .about, .inquire { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split-head { position: static; }
  .focus-figure { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .sector, .sector + .sector { padding: 48px 0; border-left: 0; }
  .sector + .sector { border-top: 1px solid var(--line); }
  .about-figure { max-width: 460px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .brand-mark { width: 44px; }
  .brand-word img { height: 26px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
  .step .num { grid-row: span 2; font-size: 40px; margin: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .marquee-track img { height: calc(var(--h) * 0.78); }
  .inquire-form { grid-template-columns: 1fr; gap: 28px; }
  .form-foot .btn { width: 100%; }
  .hero-actions { gap: 24px; }
  .hero-actions .btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; }
  .lb-stage { padding: 0; position: relative; }
  .lb-nav { position: absolute; bottom: -64px; }
  .lb-prev { left: var(--gutter); }
  .lb-next { right: var(--gutter); }
  .lb-caption { padding-bottom: 88px; }
}
