/* =====================================================
   AETHER — Minimal Portfolio
   Pure HTML/CSS/JS — no frameworks
   ===================================================== */

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- Design Tokens ---------- */
:root {
  /* palette — minimal warm-neutral */
  --bg: #faf8f4;
  --bg-elevated: #ffffff;
  --bg-inverse: #15140f;
  --text: #1a1916;
  --text-muted: #6b675e;
  --text-faint: #a8a299;
  --line: #e6e2d8;
  --line-soft: #efeae0;
  --accent: #b8945f;
  --accent-dark: #8a6b3e;
  --accent-soft: #f0e6d2;

  /* typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* layout */
  --container: 1320px;
  --container-narrow: 860px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.6s;

  /* header */
  --nav-h: 72px;
}

/* ---------- Typography Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

h4 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

/* Tighter bottom padding when a tight section (like stats) follows immediately */
.section.section-ends-tight {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin-block: 0;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--dur) var(--ease);
}

.text-link:hover::after {
  transform-origin: left;
  animation: linkSweep 0.8s var(--ease) forwards;
}

@keyframes linkSweep {
  0% { transform-origin: right; transform: scaleX(1); }
  50% { transform-origin: right; transform: scaleX(0); }
  51% { transform-origin: left; transform: scaleX(0); }
  100% { transform-origin: left; transform: scaleX(1); }
}

.arrow {
  transition: transform var(--dur) var(--ease);
}
.text-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-nav.scrolled {
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-soft);
}

.site-nav.on-dark.scrolled {
  background: rgba(21, 20, 15, 0.85);
}

.site-nav.on-dark .nav-link,
.site-nav.on-dark .brand {
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}

/* Image logo (preferred) — uses currentColor so it adapts to light/dark nav automatically */
.brand-logo {
  display: inline-block;
  height: clamp(28px, 4vw, 36px);
  width: auto;
  color: var(--text);
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  flex-shrink: 0;
  /* SVG sizing: height controls the box, width auto-fits via viewBox aspect ratio */
}

/* On dark hero sections, the logo uses white */
.site-nav.on-dark .brand-logo {
  color: #fff;
}

/* When the dark nav has scrolled (translucent dark bg), keep logo white */
.site-nav.on-dark.scrolled .brand-logo {
  color: #fff;
}

/* On light backgrounds (inner pages, light scrolled nav), logo is dark text */
.site-nav:not(.on-dark) .brand-logo,
.site-nav:not(.on-dark).scrolled .brand-logo {
  color: var(--text);
}

/* Hover: subtle lift */
.brand:hover .brand-logo {
  opacity: 0.85;
}

/* Mark-only version (for mobile or tight spaces) */
.brand-logo.mark-only {
  height: clamp(32px, 5vw, 40px);
}

/* Footer logo (always on dark background) */
.footer-brand .brand-logo {
  color: #fff;
  height: clamp(28px, 4vw, 36px);
}

/* Ensure the SVG itself fills its container */
.brand-logo:not([class*="mark-only"]) {
  width: auto;
  max-width: none;
}

/* Legacy text dot — kept for backward compatibility */
.brand .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  padding: 0.4em 0;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.site-nav.on-dark .nav-cta {
  background: #fff;
  color: var(--text);
}

.site-nav.on-dark .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: all var(--dur) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.open span:nth-child(1) {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Hero with Video ---------- */
.hero-video {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-inverse);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) brightness(0.55) contrast(1.05);
}

.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 20, 15, 0.55) 0%, rgba(21, 20, 15, 0.2) 35%, rgba(21, 20, 15, 0.85) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(184, 148, 95, 0.15), transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 8vw, 7rem);
  color: #fff;
}

.hero-content .eyebrow {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 11vw, 9rem);
  color: #fff;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: flex-end;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.5;
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--accent);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { top: -40px; }
  60%, 100% { top: 40px; }
}

/* ---------- Section Header ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.section-head .heading-block {
  max-width: 30ch;
}

.section-head .index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  align-items: center;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 1rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Portfolio Grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.work-card {
  grid-column: span 6;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--line-soft);
}

.work-card.wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.work-card.tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.work-card.square { aspect-ratio: 1 / 1; }

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter var(--dur) var(--ease);
}

.work-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.7);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.work-card:hover .work-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(21, 20, 15, 0.9) 100%);
  z-index: -1;
}

.work-card-cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #fff;
  margin-bottom: 0.25rem;
}

.work-card-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* always show title on touch devices */
@media (hover: none) {
  .work-card-overlay { opacity: 1; transform: none; }
}

/* ---------- Services Grid ---------- */
.service-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 2fr 0.5fr;
  align-items: start;
  gap: var(--space-md);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left var(--dur) var(--ease);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent-soft);
  transition: width var(--dur) var(--ease);
  z-index: -1;
}

.service-row:hover {
  padding-left: 1.5rem;
}

.service-row:hover::before {
  width: 100%;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-faint);
  padding-top: 0.25rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--text);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-arrow {
  text-align: right;
  font-size: 1.5rem;
  color: var(--accent);
  padding-top: 0.5rem;
  transition: transform var(--dur) var(--ease);
}

.service-row:hover .service-arrow {
  transform: translateX(8px);
}

/* ---------- Feature Cards (icon-grid) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}

.feature-card:hover {
  border-color: var(--text);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* ---------- About Block ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(21, 20, 15, 0.4));
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.about-quote em {
  font-style: italic;
  color: var(--accent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  text-align: center;   /* center text in each grid cell */
}

/* Each stat wrapper (the <div> around a stat) — center its content */
.stats-row > div,
.stats-row > .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontally center number + label */
  justify-content: flex-start;
}

/* Stats section (homepage) — tight padding to avoid excessive whitespace below work grid */
.stats-section {
  padding-block: clamp(2rem, 4vw, 3rem);
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.stats-section .stats-row {
  margin: 0;
  padding: 0;
  border: none;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text);
  line-height: 1;
  display: block;
  text-align: center;   /* center the number text itself */
}

.stat-num em {
  color: var(--accent);
  font-style: normal;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.5rem;
  text-align: center;   /* center the label text */
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-card {
  display: block;
  transition: transform var(--dur) var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: var(--line-soft);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.blog-card-meta .cat {
  color: var(--accent);
}

.blog-card h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color var(--dur) var(--ease);
}

.blog-card:hover h3 {
  color: var(--accent-dark);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Blog Post Page ---------- */
.post-hero {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.post-hero .eyebrow {
  margin-bottom: 1rem;
}

.post-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-inline: auto;
  max-width: 18ch;
  line-height: 1.1;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-meta .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.post-meta .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  background: var(--line-soft);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.post-body p,
.post-body ul,
.post-body blockquote {
  margin-bottom: 1.5rem;
}

.post-body p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 70ch;
}

.post-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.post-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

.post-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.4;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

.post-body ul {
  list-style: none;
  padding-left: 0;
}

.post-body ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.post-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.post-body figure {
  margin: 2.5rem 0;
}

.post-body figure img {
  border-radius: var(--radius-md);
  width: 100%;
}

.post-body figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

.post-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.tag {
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  background: var(--line-soft);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.tag:hover {
  background: var(--text);
  color: var(--bg);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.post-nav-item {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}

.post-nav-item:hover {
  border-color: var(--text);
  background: var(--bg-elevated);
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.post-nav-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.3;
}

/* ---------- Contact Page ---------- */
.contact-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.contact-headline {
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin-inline: auto;
  max-width: 18ch;
}

.contact-headline em {
  font-style: italic;
  color: var(--accent);
}

.contact-cta-block {
  text-align: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.contact-email-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.contact-email-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  z-index: 0;
}

.contact-email-link:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(184, 148, 95, 0.3);
}

.contact-email-link:hover::before {
  opacity: 1;
}

.contact-email-link > * {
  position: relative;
  z-index: 1;
}

.contact-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
  transition: all var(--dur) var(--ease);
}

.contact-email-link:hover .contact-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}

.contact-email-link:hover .contact-email {
  color: var(--accent-dark);
}

.contact-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* contact info grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.contact-info-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--dur) var(--ease);
}

.contact-info-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.contact-info-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.contact-info-value {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--text);
  line-height: 1.3;
  display: block;
}

.contact-info-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* social links */
.social-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}

.social-link:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

/* Social icons — shared between footer and contact page */
.social-icon {
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.social-link:hover .social-icon,
.social-link-footer:hover .social-icon {
  transform: scale(1.15);
}

/* Footer "Follow" column — inline icon + text */
.social-link-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
  padding: 0.2em 0;
}

.social-link-footer:hover {
  color: var(--accent);
}

.social-link-footer .social-icon {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.social-link-footer:hover .social-icon {
  color: var(--accent);
  transform: scale(1.1);
}

/* Footer list items get a bit more vertical space */
.footer-col ul li:has(.social-link-footer) {
  margin-bottom: 0.75rem;
}

/* ---------- FAQ / accordion ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

.faq-q:hover {
  color: var(--accent-dark);
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.faq-icon::before {
  width: 12px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 12px;
}

.faq-item.open .faq-icon::after {
  transform: rotate(90deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a p {
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--bg-inverse);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(184, 148, 95, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-strip h2 {
  color: #fff;
  max-width: 16ch;
  margin-inline: auto;
  text-align: center;
}

.cta-strip h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta-strip .lead {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-inline: auto;
  margin-top: var(--space-sm);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-inverse);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-col h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 50ch;
}

/* ---------- Animations / Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 200;
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work-grid .work-card,
  .work-grid .work-card.wide,
  .work-grid .work-card.tall {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links .nav-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .work-grid .work-card,
  .work-grid .work-card.wide,
  .work-grid .work-card.tall {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }

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

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

  .about-image {
    aspect-ratio: 4 / 3;
    order: -1;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .service-num,
  .service-arrow {
    display: none;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-item.next {
    text-align: left;
  }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-email {
    font-size: 1.25rem;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
