/* =========================================================
   AVH PROJECTS — Shared Stylesheet
   Edit this file to update styling across every page.
   ========================================================= */

:root {
  --bone: #fafaf9;          /* clean off-white canvas */
  --paper: #f0f0ef;          /* subtle paper layer for contrast */
  --ink: #0a0a0a;            /* near-black */
  --ink-soft: #1f1f1f;       /* soft black */
  --muted: #6b6b6b;          /* mid graphite */
  --muted-2: #a8a8a8;        /* light graphite */
  --rule: rgba(10, 10, 10, 0.10);
  --rule-strong: rgba(10, 10, 10, 0.22);
  --accent: #3d2c5f;         /* deep imperial purple — used sparingly as signature */
  --accent-soft: rgba(61, 44, 95, 0.12);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Grain overlay removed — keeping surfaces clean and sharp */

::selection { background: var(--ink); color: var(--bone); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img { display: block; max-width: 100%; }

/* ----------------------------- Layout ----------------------------- */

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }
section { position: relative; z-index: 2; }

/* ----------------------------- Typography ----------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144;
}
.display em { font-style: italic; font-weight: 300; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  transform: translateY(-1px);
  vertical-align: middle;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
}
.h-section em { font-style: italic; }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  max-width: 38ch;
}

/* ----------------------------- Nav ----------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.solid {
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 14px 0;
  border-bottom-color: var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand em { font-style: italic; font-weight: 300; }
.brand-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bone); }

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 14px; height: 1px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
}

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 60;
  padding: 90px 28px 32px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: block;
}
.mobile-panel a em { font-style: italic; }
.mobile-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 18px;
}

/* ----------------------------- Buttons ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid var(--ink);
  will-change: transform;
}
.btn .arr {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: currentColor;
  color: inherit;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.btn .arr::after {
  content: "→";
  color: var(--bone);
  font-size: 11px;
}
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover .arr { transform: translateX(3px); }
.btn-primary .arr::after { color: var(--ink); }
.btn-primary:hover .arr::after { color: var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost .arr { background: var(--ink); }
.btn-ghost .arr::after { color: var(--bone); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-ghost:hover .arr { background: var(--bone); }
.btn-ghost:hover .arr::after { color: var(--ink); }
.btn-ghost:hover .arr { transform: translateX(3px); }

/* ----------------------------- Section frame ----------------------------- */

.section {
  padding: 130px 0;
  position: relative;
}
@media (max-width: 720px) { .section { padding: 80px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 72px;
  align-items: end;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; margin-bottom: 48px; }
}
.section-head .eyebrow { padding-bottom: 6px; }
.section-head .head-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 860px) { .section-head .head-meta { text-align: left; } }

/* ----------------------------- Page Hero (subpages) ----------------------------- */

.page-hero {
  padding: 180px 0 90px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) { .page-hero { padding: 130px 0 60px; } }
.page-hero .crumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  gap: 20px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 36px;
}
.page-hero h1 em { font-style: italic; }
.page-hero .lede { max-width: 52ch; }

/* ----------------------------- Hero (Home) ----------------------------- */

.hero {
  padding: 180px 0 100px;
  position: relative;
}
@media (max-width: 720px) { .hero { padding: 130px 0 70px; } }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
  gap: 20px;
}
.hero-meta .meta-right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 28px;
}
@media (max-width: 720px) {
  .hero-meta .meta-right span:not(:last-child) { display: none; }
}

.hero-headline {
  font-size: clamp(3.4rem, 9vw, 9rem);
  margin-bottom: 56px;
  max-width: 16ch;
}
.hero-headline .indent { display: inline-block; width: 1.4em; }
.hero-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero-positioning { max-width: 44ch; }
.hero-positioning p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 860px) { .hero-actions { justify-self: start; } }

.hero-ornament {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 720px) { .hero-ornament { grid-template-columns: repeat(2, 1fr); } }
.hero-ornament > div {
  padding: 6px 18px 6px 0;
  border-right: 1px solid var(--rule);
}
.hero-ornament > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .hero-ornament > div:nth-child(2) { border-right: 0; }
  .hero-ornament > div:nth-child(-n+2) { padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
}
.hero-ornament .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-ornament .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 24ch;
}

/* ----------------------------- Marquee ----------------------------- */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.02);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after {
  content: "✦";
  font-size: 0.7em;
  color: var(--accent);
  font-style: normal;
  opacity: 0.85;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------------------- About ----------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 50px; } }

.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.about-portrait svg { width: 100%; height: 100%; display: block; }
.portrait-caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy h2 { margin-bottom: 36px; }
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 48ch;
}
.about-copy p.lead-para {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-copy p.lead-para::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 -2px;
  color: var(--accent);
}

.about-credentials {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.about-credentials div {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-credentials strong {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ----------------------------- Differentiators ----------------------------- */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 860px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s var(--ease);
}
.diff-card:hover { background: rgba(10,10,10,0.03); }
.diff-card:nth-child(3n) { border-right: 0; }
@media (max-width: 860px) {
  .diff-card { border-right: 0; padding: 32px 0; }
}
.diff-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 28px;
}
.diff-card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.7rem;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 14ch;
}
.diff-card h3 em { font-style: italic; }
.diff-card p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32ch;
}

/* ----------------------------- Services ----------------------------- */

.services-list { border-top: 1px solid var(--rule-strong); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr 0.6fr 30px;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  cursor: pointer;
  position: relative;
  transition: padding 0.5s var(--ease);
}
@media (max-width: 860px) {
  .service-row {
    grid-template-columns: 40px 1fr 30px;
    gap: 16px;
    padding: 28px 0;
  }
  .service-row .s-tags, .service-row .s-outcome { display: none; }
}
.service-row:hover { padding-left: 16px; padding-right: 16px; }
@media (max-width: 860px) {
  .service-row:hover { padding-left: 6px; padding-right: 6px; }
}
.s-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 8px;
}
.s-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.018em;
  line-height: 1.04;
}
.s-title em { font-style: italic; }
.s-outcome {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-top: 8px;
  max-width: 38ch;
}
.s-tags {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  line-height: 1.8;
}
.s-icon {
  padding-top: 10px;
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 300;
  text-align: right;
  transition: transform 0.4s var(--ease);
}
.service-row:hover .s-icon { transform: translateX(6px) rotate(-45deg); }

/* ----------------------------- Track Divider (Services page) ----------------------------- */

.track-divider {
  padding: 100px 0 60px;
  border-top: 1px solid var(--rule-strong);
}
@media (max-width: 720px) { .track-divider { padding: 70px 0 40px; } }
.track-divider:first-of-type { border-top: 0; padding-top: 30px; }
.track-divider-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 860px) {
  .track-divider-inner { grid-template-columns: 1fr; gap: 24px; }
}
.track-divider .eyebrow { padding-bottom: 6px; }
.track-divider h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.0;
  max-width: 14ch;
}
.track-divider h2 em { font-style: italic; }
.track-divider .desc {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 50ch;
}

/* ----------------------------- Service Detail (Services page) ----------------------------- */

.service-detail {
  padding: 90px 0;
  border-bottom: 1px solid var(--rule);
}
.service-detail:last-child { border-bottom: 0; }
.service-detail-inner {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .service-detail-inner { grid-template-columns: 1fr; gap: 30px; }
}
.service-detail h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.service-detail h2 em { font-style: italic; }
.service-detail .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.service-detail p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 46ch;
}
.service-detail ul {
  list-style: none;
  padding: 0;
}
.service-detail ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.service-detail ul li::before {
  content: "—";
  color: var(--muted-2);
  font-family: var(--serif);
  font-style: italic;
}
.service-detail ul li:last-child { border-bottom: 0; }

/* ----------------------------- Work ----------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 60px;
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; gap: 50px; }
}
.work-item:nth-child(even) { margin-top: 80px; }
@media (max-width: 860px) { .work-item:nth-child(even) { margin-top: 0; } }

.work-thumb {
  aspect-ratio: 5 / 4;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.6s var(--ease);
}
.work-item:hover .work-thumb { transform: translateY(-6px); }
.work-thumb svg { width: 100%; height: 100%; display: block; }

/* Before/After hover transition */
.work-thumb-compare {
  position: relative;
  width: 100%;
  height: 100%;
}
.work-thumb-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.work-thumb-compare .after {
  opacity: 1;
  transition: opacity 0.7s var(--ease);
  z-index: 2;
}
.work-thumb-compare .before {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  z-index: 1;
}
.work-thumb-compare:hover .after { opacity: 0; }
.work-thumb-compare:hover .before { opacity: 1; }

/* Small editorial label that appears in the corner */
.work-thumb-compare .compare-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(10, 10, 10, 0.78);
  color: var(--bone);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 4px;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.work-thumb-compare .compare-label::before {
  content: "AFTER";
}
.work-thumb-compare:hover .compare-label::before {
  content: "BEFORE";
}

/* Mobile: no hover, so slowly auto-cycle to show both versions */
@media (hover: none) {
  .work-thumb-compare .after,
  .work-thumb-compare .before {
    animation: comparePulse 6s ease-in-out infinite;
  }
  .work-thumb-compare .before { animation-delay: 3s; }
  @keyframes comparePulse {
    0%, 40%, 100% { opacity: 1; }
    50%, 90% { opacity: 0; }
  }
  .work-thumb-compare .before { opacity: 0; }
  .work-thumb-compare .compare-label { display: none; }
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}
.work-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}
.work-title em { font-style: italic; font-weight: 300; }
.work-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.work-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 44ch;
}
.work-tags {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-tags span:not(:last-child)::after {
  content: " / ";
  color: var(--rule-strong);
}

/* ----------------------------- Testimonial ----------------------------- */

.testimonial {
  padding: 140px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(10,10,10,0.02);
}
@media (max-width: 720px) { .testimonial { padding: 80px 0; } }

.quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote::before {
  content: "“";
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 30px;
  opacity: 0.7;
}
.quote-meta {
  text-align: center;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-meta strong {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ----------------------------- CTA / Contact (dark) ----------------------------- */

.cta {
  padding: 160px 0 120px;
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .cta { padding: 90px 0 70px; } }
/* Grain overlay removed from CTA — clean black surface */
.cta .eyebrow { color: rgba(247,247,245,0.6); }
.cta .eyebrow .dot { background: #b8a8d4; box-shadow: 0 0 0 3px rgba(184, 168, 212, 0.15); }
.cta-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 28px 0 56px;
  max-width: 14ch;
}
.cta-headline em { font-style: italic; }

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; gap: 50px; } }

.cta-actions { display: flex; flex-direction: column; gap: 18px; }
.cta .btn { border-color: var(--bone); color: var(--bone); }
.cta .btn-primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cta .btn-primary .arr { background: var(--ink); }
.cta .btn-primary .arr::after { color: var(--bone); }
.cta .btn-primary:hover { background: #b8a8d4; color: var(--ink); border-color: #b8a8d4; }
.cta .btn-primary:hover .arr { background: var(--ink); }
.cta .btn-primary:hover .arr::after { color: #b8a8d4; }
.cta .btn-ghost { color: var(--bone); border-color: rgba(247,247,245,0.4); }
.cta .btn-ghost .arr { background: var(--bone); }
.cta .btn-ghost .arr::after { color: var(--ink); }
.cta .btn-ghost:hover { background: var(--bone); color: var(--ink); }

.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(247,247,245,0.18);
  margin-top: 80px;
}
@media (max-width: 720px) { .contact-list { grid-template-columns: 1fr; gap: 28px; } }
.contact-list .field {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,247,245,0.55);
  margin-bottom: 8px;
}
.contact-list .val {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.012em;
}
.contact-list .val em { font-style: italic; }
.contact-list a.val {
  border-bottom: 1px solid rgba(247,247,245,0.25);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease);
}
.contact-list a.val:hover { border-color: #b8a8d4; color: #b8a8d4; }

/* ----------------------------- Contact page form ----------------------------- */

.contact-page {
  padding: 60px 0 140px;
}
@media (max-width: 720px) { .contact-page { padding: 40px 0 80px; } }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}
@media (max-width: 980px) { .contact-page-grid { grid-template-columns: 1fr; gap: 60px; } }

.contact-aside h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.contact-aside h3 em { font-style: italic; }
.contact-aside .info-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-aside .info-block:last-child { border-bottom: 0; }
.contact-aside .info-block .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-aside .info-block .val {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
}
.contact-aside .info-block .val em { font-style: italic; }
.contact-aside .info-block a.val:hover { border-bottom: 1px solid var(--ink); }

.contact-form {
  border-top: 1px solid var(--rule-strong);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form .field {
  padding: 22px 0;
  position: relative;
}
.contact-form .field + .field {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
@media (max-width: 720px) {
  .contact-form .field + .field {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
  }
}
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  padding: 4px 0;
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-2);
  font-style: italic;
}
.contact-form textarea {
  min-height: 140px;
  line-height: 1.4;
}
.contact-form .full {
  grid-column: 1 / -1;
  padding: 22px 0;
}
.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 14px, calc(100% - 6px) 14px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.contact-form select optgroup {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form select option {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}
.contact-form .submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form .note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------- Footer ----------------------------- */

.foot {
  background: var(--ink);
  color: rgba(247,247,245,0.6);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(247,247,245,0.12);
  position: relative;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(247,247,245,0.12);
  margin-bottom: 28px;
}
@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .foot-top { grid-template-columns: 1fr; }
}
.foot-top h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,247,245,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-top a, .foot-top p {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  padding: 4px 0;
  transition: opacity 0.3s var(--ease);
}
.foot-top a:hover { opacity: 0.6; }
.foot-top em { font-style: italic; }
.foot-brand h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 16px;
}
.foot-brand h3 em { font-style: italic; }
.foot-brand p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(247,247,245,0.6);
  max-width: 32ch;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------- Reveal ----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-line {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.reveal-line.in > span { transform: translateY(0); }

.hero .reveal-line:nth-child(1) > span { transition-delay: 0.05s; }
.hero .reveal-line:nth-child(2) > span { transition-delay: 0.15s; }
.hero .reveal-line:nth-child(3) > span { transition-delay: 0.25s; }

/* Cursor blink for hero status */
.blink {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: pulse 1.8s ease-in-out infinite;
  vertical-align: middle;
  transform: translateY(-1px);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 44, 95, 0.45); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(61, 44, 95, 0); }
}
