:root {
  --ink: #13201d;
  --muted: #61706b;
  --paper: #f7f6f1;
  --white: #ffffff;
  --forest: #0d1f1b;
  --green: #1e5d48;
  --green-soft: #dfe9e3;
  --line: #d9ddd8;
  --sand: #ebe7dc;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(13, 31, 27, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  background: var(--white);
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-tint { background: #eef0eb; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 241, 0.88);
  border-bottom: 1px solid rgba(217, 221, 216, 0.9);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; font-weight: 650; }
.site-nav a:not(.nav-cta) { color: #394642; }
.site-nav a:not(.nav-cta):hover { color: var(--green); }
.nav-cta { padding: 10px 16px; border-radius: 999px; background: var(--forest); color: var(--white); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-weight: 700; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
h1 { font-size: clamp(3.35rem, 7.2vw, 6.85rem); margin-bottom: 28px; }
h1 span { color: var(--green); }
h2 { font-size: clamp(2.45rem, 5vw, 4.4rem); margin-bottom: 0; }
h3 { line-height: 1.18; }

.hero { padding-top: 108px; padding-bottom: 100px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 0.75fr; gap: 72px; align-items: end; }
.hero-text { max-width: 760px; color: #4f5d58; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 0.93rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--white); }
.button-ghost { border-color: #b8c1bc; background: transparent; }
.button-light { background: var(--white); color: var(--forest); }
.button-outline-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.hero-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 0.92rem; }
.hero-links a { text-decoration: underline; text-decoration-color: #b4beb8; text-underline-offset: 4px; }

.hero-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card-label, .mini-label, .terminal-label { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.metric-row strong { display: block; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.metric-row span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.mini-rule { height: 1px; background: var(--line); margin: 26px 0; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid #eef0ed; font-size: 0.91rem; }
.plain-list li:last-child { border-bottom: 0; }

.proof-strip { background: var(--forest); color: var(--white); }
.proof-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.proof-grid > div { display: flex; align-items: center; gap: 14px; padding: 22px; border-right: 1px solid rgba(255,255,255,.12); }
.proof-grid > div:first-child { padding-left: 0; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid span { color: #83a597; font-family: Georgia, serif; }
.proof-grid strong { font-size: .92rem; }

.section-heading { display: grid; grid-template-columns: 1.25fr .65fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading > p { color: var(--muted); max-width: 470px; margin-bottom: 5px; }
.section-heading.compact { display: block; margin-bottom: 0; }

.featured-project {
  display: grid;
  grid-template-columns: .18fr 1fr 1fr;
  gap: 32px;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.project-index { color: #78837e; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.project-kicker { margin-bottom: 11px; color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.featured-copy h3, .project-card h3 { font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; margin-bottom: 18px; letter-spacing: -.025em; }
.featured-copy > p:not(.project-kicker), .project-card > p:not(.project-kicker) { color: var(--muted); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tag-row span, .status-pill { padding: 7px 11px; border-radius: 999px; background: #eef2ee; border: 1px solid #dce2dd; font-size: .75rem; font-weight: 700; }
.project-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.text-link { font-weight: 800; color: var(--green); }
.text-link.muted { color: var(--muted); font-weight: 650; }
.project-visual { background: var(--forest); color: var(--white); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; justify-content: center; min-height: 320px; }
.terminal-label { color: #88aa9c; margin-bottom: 22px; }
.model-flow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.model-flow.second { margin-top: 22px; }
.model-flow span { padding: 9px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; font-size: .82rem; background: rgba(255,255,255,.04); }
.model-flow i { color: #89a99c; font-style: normal; }
.visual-note { margin-top: 28px; color: #aab9b3; font-size: .82rem; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.project-card { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.5); }
.status-pill { display: inline-block; margin-top: 12px; color: var(--muted); }

.timeline { border-top: 1px solid #ced4cf; }
.timeline-item { display: grid; grid-template-columns: .36fr 1fr; gap: 56px; padding: 34px 0; border-bottom: 1px solid #ced4cf; }
.timeline-date { color: var(--muted); font-size: .85rem; }
.timeline-item h3 { margin-bottom: 4px; font-size: 1.2rem; }
.company { color: var(--green); font-weight: 700; margin-bottom: 10px; }
.timeline-item div:last-child > p:last-child { color: var(--muted); max-width: 760px; margin-bottom: 0; }

.skills-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.skill-groups { display: grid; gap: 0; border-top: 1px solid var(--line); }
.skill-groups > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.skill-groups h3 { margin-bottom: 7px; font-size: .92rem; }
.skill-groups p { margin-bottom: 0; color: var(--muted); }

.about-section { padding-top: 30px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-top: 72px; border-top: 1px solid var(--line); }
.about-copy { font-size: 1.05rem; color: #4f5c58; }
.about-copy p:last-child { margin-bottom: 0; }

.contact-card { padding: 52px; border-radius: 28px; background: var(--forest); color: var(--white); display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.contact-card .eyebrow { color: #8daf9f; }
.contact-card h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 12px; }
.contact-card p { max-width: 660px; color: #b8c6c1; margin-bottom: 0; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.site-footer { padding: 26px 0 36px; color: var(--muted); font-size: .8rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }

/* Project page */
.project-hero { padding-top: 92px; padding-bottom: 76px; }
.project-hero-grid { display: grid; grid-template-columns: 1.4fr .55fr; gap: 72px; align-items: end; }
.project-hero h1 { font-size: clamp(3.2rem, 6.6vw, 6.25rem); }
.project-meta-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.project-meta-card dl { margin: 0; }
.project-meta-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #eceeeb; }
.project-meta-card dl div:last-child { border-bottom: 0; }
.project-meta-card dt { color: var(--muted); font-size: .78rem; }
.project-meta-card dd { margin: 0; font-weight: 750; font-size: .82rem; text-align: right; }
.case-strip { background: var(--forest); color: var(--white); }
.case-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.case-strip-grid > div { padding: 30px; border-right: 1px solid rgba(255,255,255,.12); }
.case-strip-grid > div:first-child { padding-left: 0; }
.case-strip-grid > div:last-child { border-right: 0; }
.case-strip-grid span { display: block; color: #8aab9d; font-family: Georgia, serif; margin-bottom: 10px; }
.case-strip-grid strong { display: block; font-size: .95rem; }
.case-strip-grid small { color: #aebcb7; }
.case-grid { display: grid; grid-template-columns: .48fr 1.25fr; gap: 90px; }
.case-sidebar h2 { font-size: clamp(2.05rem, 4vw, 3.5rem); }
.case-content { color: #4c5a55; }
.case-content .lead { font-size: 1.23rem; color: #34433e; }
.callout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.callout-grid > div { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.callout-grid strong { display: block; color: var(--ink); margin-bottom: 8px; }
.callout-grid span { display: block; font-size: .82rem; line-height: 1.45; }
.sector-card, .forecast-card { margin-top: 32px; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.card-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 28px; }
.card-head h3 { color: var(--ink); font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; margin: 5px 0 0; }
.disclosure-badge, .forecast-highlight { display: inline-block; padding: 7px 10px; border-radius: 999px; background: #f2ece1; color: #705d3b; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 52px; gap: 14px; align-items: center; font-size: .78rem; }
.bar-track { height: 8px; background: #e8ebe7; border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.bar-row strong { color: var(--ink); text-align: right; }
.figure-note { margin: 18px 0 0; font-size: .76rem; color: #77827e; }
.holdings-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.holdings-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.55); }
.holdings-table th, .holdings-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #e4e7e3; font-size: .78rem; }
.holdings-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .67rem; }
.holdings-table tr:last-child td { border-bottom: 0; }
.holdings-table td:first-child { font-weight: 800; color: var(--green); }
.dashboard-mock { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.dash-kpi { min-height: 126px; padding: 22px; border-radius: 16px; background: var(--forest); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.dash-kpi small { color: #98aca4; }
.dash-kpi strong { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.forecast-bars { height: 330px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; align-items: end; padding-top: 34px; border-bottom: 1px solid var(--line); }
.forecast-bars > div { height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 7px; align-items: end; text-align: center; }
.forecast-bars i { display: block; width: 72%; max-width: 42px; margin: 0 auto; background: #9eada7; border-radius: 5px 5px 0 0; min-height: 16px; }
.forecast-bars .estimate i { background: var(--green); }
.forecast-bars strong { color: var(--ink); font-size: .7rem; }
.forecast-bars span { color: var(--muted); font-size: .66rem; }
.forecast-highlight { background: var(--green-soft); color: var(--green); }
.assumption-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.assumption-grid > div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); }
.assumption-grid span, .assumption-grid small { display: block; color: var(--muted); font-size: .7rem; }
.assumption-grid strong { display: block; margin: 3px 0; color: var(--green); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.lessons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lessons-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5); }
.lessons-grid article > span { color: var(--green); font-family: Georgia, serif; }
.lessons-grid h3 { color: var(--ink); margin: 25px 0 10px; font-size: 1.05rem; }
.lessons-grid p { margin-bottom: 0; font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero-grid, .project-hero-grid, .skills-grid, .about-grid, .case-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 76px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .featured-project { grid-template-columns: 1fr; }
  .project-index { margin-bottom: -10px; }
  .project-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid > div { border-bottom: 1px solid rgba(255,255,255,.12); }
  .proof-grid > div:nth-child(2) { border-right: 0; }
  .case-strip-grid { grid-template-columns: 1fr; }
  .case-strip-grid > div { padding-left: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .case-strip-grid > div:last-child { border-bottom: 0; }
  .callout-grid, .lessons-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .nav-toggle { display: block; }
  .site-nav:not(.project-nav) {
    position: absolute;
    top: 73px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav:not(.project-nav) a { padding: 12px 10px; }
  .site-nav:not(.project-nav) .nav-cta { margin-top: 6px; text-align: center; }
  .project-nav { gap: 10px; }
  .project-nav a:first-child { display: none; }
  .metric-row { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div { padding-left: 0; border-right: 0; }
  .featured-project { padding: 28px; }
  .project-visual { min-height: 280px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .about-grid { padding-top: 52px; }
  .contact-card { padding: 32px; }
  .footer-row { flex-direction: column; }
  .bar-row { grid-template-columns: 120px 1fr 44px; gap: 8px; }
  .sector-card, .forecast-card { padding: 20px; }
  .card-head { flex-direction: column; }
  .dashboard-mock, .assumption-grid { grid-template-columns: 1fr; }
  .forecast-bars { gap: 5px; height: 285px; }
  .forecast-bars strong { font-size: .6rem; }
  .forecast-bars span { font-size: .58rem; }
}
