/* =================================================================
   Heartwood — Renovation & Remodeling Studio
   Inspired-by demo. Standalone (no Tailwind, no shared deps).
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --canvas: #F2F0EC;       /* warm cream — primary background */
  --surface: #E4E2DE;      /* sand — section accents, cards */
  --surface-2: #ECEAE5;    /* between canvas & surface */
  --paper: #FFFFFF;        /* card whites */
  --ink: #1B1C1A;          /* near-black body */
  --ink-2: #30312E;        /* slightly lighter ink */
  --ink-muted: #5E5E5C;    /* secondary text */
  --ink-dim: #ACABA8;      /* tertiary text */
  --line: #C8C6C3;         /* hairlines */
  --line-soft: #D9D7D2;    /* softer divider */

  /* Brand */
  --accent: #296B3F;       /* forest green primary */
  --accent-2: #438456;     /* lighter forest */
  --accent-3: #1F5230;     /* deeper forest hover */

  /* Inverse (dark sections) */
  --night: #181817;        /* near-black warm */
  --night-2: #242421;

  /* Type */
  --ff-display: "Bricolage Grotesque", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing */
  --max: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 9vw, 128px);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--canvas);
  padding: 10px 16px; border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- 3. Type system ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.display--sm {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 22px 0 0;
}
.mono {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.4);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.eyebrow--inverse {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.eyebrow--inverse .eyebrow__dot { background: var(--accent-2); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-3); transform: translateY(-1px); }

.btn--ink {
  background: var(--ink);
  color: var(--canvas);
}
.btn--ink:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn--ink .btn__arrow { background: rgba(255, 255, 255, 0.16); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.02); }

.btn--ghost-inverse {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost-inverse:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 236, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(242, 240, 236, 0.92);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 8px;
}
.brand--lg { font-size: 28px; gap: 12px; }
.brand--lg .brand__mark { width: 44px; height: 44px; }
.brand--lg .brand__mark svg { width: 28px; height: 28px; }

.nav__links {
  justify-self: center;
  display: flex; gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover { background: var(--ink); color: var(--canvas); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; gap: 12px; }
  .nav__inner .btn { padding: 0 14px; height: 42px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: 0;
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; align-items: stretch; }
}
.hero__copy { padding-bottom: 24px; }
.hero__copy .display { margin-top: 24px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__trust {
  list-style: none;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}
.hero__trust strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
}
.hero__media video, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  background: rgba(24, 24, 23, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
}
.hero__media-tag .mono { color: rgba(255, 255, 255, 0.7); }

.hero__marquee {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  padding: 22px 0;
}
.hero__marquee-track {
  display: flex; gap: 36px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero__marquee-track i {
  color: var(--accent);
  font-style: normal;
  font-size: 0.7em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 7. Stats ---------- */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 8px;
}
.stats__item:last-child { border-right: none; }
.stats__item strong {
  font-family: var(--ff-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-top: 4px;
}
.stats__item span:last-child {
  color: var(--ink-muted);
  font-size: 14px;
}
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- 8. Section heads ---------- */
.section-head {
  max-width: 64ch;
  padding-bottom: clamp(32px, 4vw, 56px);
}
.section-head .display { margin-top: 16px; }
.section-head__lede {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 56ch;
}
.section-head--center {
  max-width: 64ch;
  margin: 0 auto;
  text-align: center;
}
.section-head--center .eyebrow { display: inline-flex; }
.section-head--row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(32px, 4vw, 56px);
}
@media (max-width: 700px) { .section-head--row { flex-direction: column; align-items: flex-start; } }

/* ---------- 9. About ---------- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__photo figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(24, 24, 23, 0.72);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.about__copy .display { margin-top: 16px; }
.about__copy > p {
  margin-top: 22px;
  color: var(--ink-muted);
  max-width: 56ch;
}
.about__pillars {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.about__pillars > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.about__pillars h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.about__pillars p { margin: 0; color: var(--ink-muted); font-size: 15px; max-width: 52ch; }

/* ---------- 10. Services ---------- */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  background: var(--canvas);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: background 0.35s var(--ease);
  min-height: 240px;
}
.service:hover { background: var(--paper); }
.service__num { color: var(--accent); font-size: 11px; }
.service h3 {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.service p { color: var(--ink-muted); font-size: 15px; margin: 0; flex: 1; }
.service__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px;
  color: var(--ink);
  margin-top: 12px;
}
.service__link span { transition: transform 0.3s var(--ease); }
.service:hover .service__link span { transform: translateX(4px); color: var(--accent); }

/* ---------- 11. Work / Projects ---------- */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}
.work__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.work__grid > .work__card--lg:first-child { grid-row: span 1; }
.work__grid > .work__card:nth-child(2),
.work__grid > .work__card:nth-child(3) {
  grid-column: 2;
}
.work__grid > .work__card--lg:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 800px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__grid > .work__card:nth-child(2),
  .work__grid > .work__card:nth-child(3),
  .work__grid > .work__card--lg:last-child { grid-column: auto; }
}

.work__card {
  display: flex; flex-direction: column;
  gap: 16px;
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 12px;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work__card:hover { transform: translateY(-3px); border-color: var(--ink); }
.work__img {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/11;
}
.work__card--lg .work__img { aspect-ratio: 16/10; }
.work__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work__card:hover .work__img img { transform: scale(1.04); }
.work__meta { padding: 8px 8px 12px; }
.work__meta h3 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}
.work__meta p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
}
.tag--accent { background: var(--accent); color: #fff; }

/* ---------- 12. Process ---------- */
.process {
  background: var(--night);
  color: #fff;
  padding: var(--section-y) 0;
}
.process__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.process .display { color: #fff; }
.process .display em { color: var(--accent-2); }
.process__list {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process__list { grid-template-columns: 1fr; } }
.process__list li {
  background: var(--night);
  padding: 32px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
}
.process__num {
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.process__list h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #fff;
}
.process__list p { color: rgba(255, 255, 255, 0.62); font-size: 15px; margin: 0; }

/* ---------- 13. Testimonials ---------- */
.quotes {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}
.quotes__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } }

.quote {
  margin: 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  gap: 28px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quote blockquote em { font-style: italic; color: var(--accent); }
.quote figcaption {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
}
.quote figcaption img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote figcaption strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 2px;
}
.quote--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quote--accent blockquote { color: #fff; }
.quote--accent blockquote em { color: var(--canvas); }
.quote--accent figcaption strong { color: #fff; }
.quote--accent figcaption .mono { color: rgba(255, 255, 255, 0.72); }

/* ---------- 14. Service areas ---------- */
.areas {
  background: var(--surface);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.areas__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .areas__inner { grid-template-columns: 1fr; } }
.areas .display { margin-top: 14px; }
.areas > .areas__inner > div > p {
  margin-top: 18px;
  color: var(--ink-muted);
  max-width: 48ch;
}
.areas__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 700px) { .areas__list { grid-template-columns: repeat(2, 1fr); } }
.areas__list li {
  background: var(--surface);
  padding: 14px 16px;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.areas__list li:hover { background: var(--accent); color: #fff; }

/* ---------- 15. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 144px) 0;
  color: #fff;
}
.cta__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,24,23,0.85), rgba(24,24,23,0.55));
}
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.cta .display { color: #fff; margin-top: 18px; }
.cta .display em { color: var(--accent-2); }
.cta__inner > p {
  margin: 22px auto 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 52ch;
}
.cta__buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ---------- 16. FAQ ---------- */
.faq {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  flex-shrink: 0;
}
.faq details[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq details p {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 64ch;
}

/* ---------- 17. Journal ---------- */
.journal {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
}
.journal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .journal__grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: 14px; }
.post__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-md);
}
.post__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { color: var(--accent); font-size: 11px; margin-top: 8px; }
.post h3 {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

/* ---------- 18. Contact ---------- */
.contact {
  background: var(--surface);
  padding: var(--section-y) 0;
}
.contact__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__copy .display { margin-top: 16px; }
.contact__copy > p {
  margin-top: 18px;
  color: var(--ink-muted);
  max-width: 44ch;
}
.contact__details {
  list-style: none;
  margin: 32px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.contact__details li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.contact__details a {
  color: var(--ink);
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact__details a:hover { color: var(--accent); }

.contact__form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact__form label {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--ff-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact__form .contact__full { grid-column: 1 / -1; }
.contact__form input, .contact__form select, .contact__form textarea {
  font-family: var(--ff-body);
  font-size: 15px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}
.contact__submit { grid-column: 1 / -1; justify-self: start; }
.contact__success {
  grid-column: 1 / -1;
  color: var(--accent);
  margin: 0;
}

/* ---------- 19. Footer ---------- */
.footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(56px, 7vw, 96px) 0 24px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__mark { background: var(--accent); color: #fff; }
.footer__brand p {
  margin-top: 16px;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 600px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
.footer__cols h4 {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__cols ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.footer__cols a {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}
.footer__cols a:hover { color: var(--accent-2); }
.footer__bar {
  max-width: var(--max);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bar .mono { color: rgba(255, 255, 255, 0.4); }
@media (max-width: 700px) { .footer__bar { flex-direction: column; } }

/* ---------- 20. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__marquee-track { animation: none; }
}
