:root {
  --bg: #eee4d4;
  --bg-2: #f7f2e8;
  --surface: rgba(255, 250, 242, 0.76);
  --surface-strong: rgba(255, 252, 247, 0.9);
  --line: rgba(36, 59, 49, 0.12);
  --text: #18231f;
  --muted: #5b6c61;
  --accent: #2f6a4f;
  --accent-2: #8bb8b4;
  --accent-3: #c8924c;
  --glow: rgba(139, 184, 180, 0.16);
  --shadow: 0 20px 60px rgba(24, 35, 31, 0.12);
  --radius: 26px;
  --radius-sm: 18px;
  --max: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 164, 104, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(102, 156, 145, 0.16), transparent 24%),
    linear-gradient(180deg, #ece0d0 0%, #f6f2ea 36%, #f2ede5 100%);
  line-height: 1.65;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 50, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 50, 43, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 88%);
  pointer-events: none;
  opacity: 0.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page-shell { position: relative; z-index: 1; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(246, 242, 234, 0.76); border-bottom: 1px solid rgba(36, 59, 49, 0.08); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; flex-direction: column; gap: 0.18rem; }
.brand strong { font-size: 0.96rem; text-transform: uppercase; letter-spacing: 0.18em; }
.brand span { font-size: 0.94rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.nav-link, .nav-cta { padding: 0.72rem 1rem; border-radius: 999px; color: var(--muted); border: 1px solid transparent; transition: background 180ms ease, transform 180ms ease, border-color 180ms ease, color 180ms ease; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-current { color: var(--text); background: rgba(255, 252, 247, 0.8); border-color: rgba(47, 106, 79, 0.08); }
.nav-cta { color: #fef9f2; background: linear-gradient(135deg, #2f6a4f, #234837); box-shadow: 0 12px 28px rgba(35, 72, 55, 0.18); }
.nav-cta:hover, .nav-cta:focus-visible, .button:hover, .button:focus-visible { transform: translateY(-1px); }
main { padding: 4rem 0 3rem; }
.hero, .panel, .page-card, .project-card, .contact-card, .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.hero { padding: clamp(1.8rem, 3vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 1.5rem; }
.hero-copy { animation: rise 720ms ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(47, 106, 79, 0.12); background: rgba(255, 252, 247, 0.82); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.84rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
h1, h2, h3 { margin: 0; line-height: 1.04; font-family: var(--serif); font-weight: 700; }
h1 { margin-top: 1rem; font-size: clamp(3rem, 7vw, 5.8rem); max-width: 11ch; }
.hero-subtitle { margin-top: 1.2rem; max-width: 28ch; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: #2f463b; }
.hero-text, .lead, .section-text, .project-card p, .contact-card p, .note, .timeline p, .list li, .stat-card span { color: var(--muted); }
.hero-text { margin-top: 1.2rem; max-width: 58ch; }
.button-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.2rem; border-radius: 999px; font-weight: 600; border: 1px solid transparent; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button-primary { color: #fef9f2; background: linear-gradient(135deg, #2f6a4f, #1d4333); }
.button-secondary { background: rgba(255, 252, 247, 0.84); border-color: rgba(47, 106, 79, 0.14); }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.meta-pill { padding: 0.7rem 0.95rem; border-radius: 999px; background: rgba(255, 252, 247, 0.76); border: 1px solid rgba(47, 106, 79, 0.08); color: var(--muted); font-size: 0.92rem; }
.hero-side { display: grid; gap: 1rem; animation: rise 820ms ease 120ms both; }
.panel { padding: 1.35rem; position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; width: 220px; height: 220px; right: -15%; bottom: -24%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 184, 180, 0.24), transparent 70%); }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-top strong { font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.18em; }
.signal { width: 11px; height: 11px; border-radius: 50%; background: #52a16f; box-shadow: 0 0 0 9px rgba(82, 161, 111, 0.12); }
.quote { margin: 1rem 0 0; max-width: 13ch; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.24; }
.grid-two, .grid-three, .contact-grid, .project-grid, .stat-grid, .story-grid, .timeline-grid { display: grid; gap: 1rem; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 1.05fr 0.95fr; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { margin-top: 1.5rem; }
.page-card, .contact-card, .project-card, .stat-card { padding: clamp(1.4rem, 2vw, 2rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1rem; align-items: start; }
.section-label { color: var(--accent); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; margin-bottom: 0.9rem; display: inline-block; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 12ch; }
.lead { font-size: 1.05rem; }
.stat-card strong, .project-card strong, .contact-card strong, .timeline strong { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.84rem; margin-bottom: 0.8rem; }
.stat-card h3, .project-card h3, .contact-card h3 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: 0.7rem; }
.note-card, .timeline { padding: 1.2rem 1.25rem; border-radius: var(--radius-sm); background: rgba(255, 252, 247, 0.78); border: 1px solid rgba(47, 106, 79, 0.1); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.list-mark { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 0.55rem; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
.project-card { position: relative; overflow: hidden; }
.project-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,0.22), transparent 46%); pointer-events: none; }
.project-link, .inline-link, .contact-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.15rem; color: var(--accent); font-weight: 700; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.tag { padding: 0.9rem 1rem; border-radius: 18px; background: rgba(255, 252, 247, 0.76); border: 1px solid rgba(47, 106, 79, 0.1); font-weight: 600; }
.site-footer { padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) { .hero, .section-head, .grid-two, .grid-three, .contact-grid, .project-grid, .story-grid, .timeline-grid { grid-template-columns: 1fr; } .nav { flex-direction: column; align-items: flex-start; padding: 1rem 0; } main { padding-top: 3.4rem; } }
@media (max-width: 720px) { .wrap { width: min(calc(100% - 1.25rem), var(--max)); } .button, .nav-cta { width: 100%; } .button-row { flex-direction: column; } h1 { max-width: none; } }


/* === Home enhancement: unique typography + subtle motion === */
.home-page {
  --home-display: "Cormorant Garamond", var(--serif);
  --home-sans: "Manrope", var(--sans);
  --home-accent: "Plus Jakarta Sans", var(--sans);
  font-family: var(--home-sans);
}
.home-page .brand strong,
.home-page .section-label,
.home-page .panel-top strong,
.home-page .meta-pill,
.home-page .button,
.home-page .project-link {
  font-family: var(--home-accent);
  letter-spacing: 0.05em;
}
.home-page h1,
.home-page h2,
.home-page .quote {
  font-family: var(--home-display);
  letter-spacing: 0.01em;
}
.home-page h1 {
  line-height: 0.98;
  text-wrap: balance;
  animation: titleRise 900ms cubic-bezier(.2,.8,.2,1) both;
}
.home-page .hero {
  position: relative;
  overflow: hidden;
}
.home-page .hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 56%;
  background: radial-gradient(circle at 25% 35%, rgba(139, 184, 180, 0.22), transparent 58%),
              radial-gradient(circle at 75% 30%, rgba(200, 146, 76, 0.18), transparent 56%);
  pointer-events: none;
  animation: driftGlow 8s ease-in-out infinite alternate;
}
.home-page .signal {
  animation: pulseBeacon 2.2s ease-in-out infinite;
}
.home-page .stat-card,
.home-page .project-card,
.home-page .panel {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.home-page .stat-card:hover,
.home-page .project-card:hover,
.home-page .panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(24, 35, 31, 0.15);
  border-color: rgba(47, 106, 79, 0.2);
}
.home-page .section .page-card {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUpSoft 760ms ease forwards;
}
.home-page .wrap > .section:nth-of-type(1) .page-card { animation-delay: 120ms; }
.home-page .wrap > .section:nth-of-type(2) .page-card { animation-delay: 260ms; }

@keyframes titleRise {
  from { opacity: 0; transform: translateY(24px) scale(0.99); filter: blur(1px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes driftGlow {
  from { transform: translateY(-4%) translateX(-1%); opacity: .75; }
  to   { transform: translateY(2%) translateX(1%); opacity: 1; }
}
@keyframes pulseBeacon {
  0%,100% { box-shadow: 0 0 0 8px rgba(82, 161, 111, 0.14); transform: scale(1); }
  50%     { box-shadow: 0 0 0 14px rgba(82, 161, 111, 0.06); transform: scale(1.08); }
}
@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
