:root {
  --forest-950: #0b2f27;
  --forest-900: #103a30;
  --forest-800: #174c3f;
  --forest-700: #216351;
  --forest-100: #e8f1ee;
  --ink: #121918;
  --ink-70: #4d5a57;
  --ink-55: #6b7774;
  --paper: #ffffff;
  --mist: #f5f7f7;
  --mist-2: #eef2f1;
  --rule: #dde4e2;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4.5vw, 3.75rem);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest-800); text-underline-offset: .18em; }
a:hover { color: var(--forest-950); }
:focus-visible { outline: 2px solid var(--forest-700); outline-offset: 4px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: white; padding: .75rem 1rem; border: 1px solid var(--rule); }

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,228,226,.8);
}
.masthead__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.brand__mark { width: 30px; height: 30px; position: relative; flex: 0 0 30px; }
.brand__mark i { position: absolute; width: 18px; height: 7px; border: 1.7px solid var(--forest-800); border-radius: 3px; left: 6px; }
.brand__mark i:nth-child(1) { top: 3px; }
.brand__mark i:nth-child(2) { top: 11px; left: 4px; }
.brand__mark i:nth-child(3) { top: 19px; left: 8px; background: var(--forest-800); }
.brand__name span { color: var(--ink-55); font-weight: 550; }
.nav { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; font-size: .86rem; font-weight: 650; }
.nav a { text-decoration: none; color: var(--ink-70); padding: .25rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest-900); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--forest-800); }

/* Typography */
.eyebrow { margin: 0 0 1rem; color: var(--forest-700); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 480; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .98; max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.04; }
h3 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.02em; }
.lede { max-width: 56ch; margin: 1.5rem 0 0; color: var(--ink-70); font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.55; }
.small { font-size: .9rem; color: var(--ink-55); }

/* Hero */
.hero { padding-block: clamp(5rem, 10vw, 8.5rem) clamp(3rem, 7vw, 6rem); }
.hero--compact { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
.hero__aside { border-left: 1px solid var(--rule); padding-left: clamp(1.25rem, 3vw, 2rem); }
.hero__aside strong { display: block; color: var(--forest-900); margin-bottom: .35rem; }
.hero__aside p { color: var(--ink-70); margin: 0; font-size: .92rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: .7rem 1rem; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 750; border: 1px solid var(--forest-900); }
.button--primary { background: var(--forest-900); color: white; }
.button--primary:hover { background: var(--forest-950); color: white; }
.button--secondary { color: var(--forest-900); background: white; }
.button--secondary:hover { background: var(--mist); }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--rule); }
.section--mist { background: var(--mist); }
.section__head { display: grid; grid-template-columns: minmax(0, .75fr) minmax(280px, 1.25fr); gap: 2rem 5rem; align-items: start; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section__head p { margin: .35rem 0 0; color: var(--ink-70); max-width: 62ch; }

/* Trust record */
.record { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, 1fr); }
.record__item { padding: 1.4rem 1.4rem 1.5rem 0; min-width: 0; }
.record__item + .record__item { border-left: 1px solid var(--rule); padding-left: 1.4rem; }
.record__label { display: block; color: var(--ink-55); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; margin-bottom: .45rem; }
.record__value { color: var(--ink); font-size: .94rem; font-weight: 650; overflow-wrap: anywhere; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.card { background: white; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); min-height: 250px; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: #c6d3d0; }
.card__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.card__type { font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-700); background: var(--forest-100); padding: .28rem .5rem; border-radius: 999px; white-space: nowrap; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-70); margin: 1.15rem 0 1.4rem; max-width: 48ch; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 750; text-decoration: none; }
.card__link::after { content: "↗"; font-size: .9rem; }
.card--featured { background: var(--forest-950); border-color: var(--forest-950); color: white; }
.card--featured h3, .card--featured p, .card--featured .card__link { color: white; }
.card--featured p { opacity: .8; }
.card--featured .card__type { background: rgba(255,255,255,.11); color: #dcebe6; }

/* Content blocks */
.split { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 2rem 6rem; align-items: start; }
.split__label { color: var(--forest-700); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.prose { max-width: 72ch; }
.prose h2 { margin: 2.8rem 0 .8rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.prose h3 { margin: 2rem 0 .65rem; }
.prose p, .prose li { color: var(--ink-70); }
.prose p { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .45rem 0; }
.prose > :first-child { margin-top: 0; }
.note { border: 1px solid var(--rule); border-radius: 14px; background: var(--mist); padding: 1rem 1.15rem; color: var(--ink-70); font-size: .9rem; }

/* Contact / support */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.contact-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; background: white; }
.contact-card p { color: var(--ink-70); font-size: .92rem; }
.contact-card a { font-weight: 750; overflow-wrap: anywhere; }
.support-panel { border-radius: var(--radius); background: var(--forest-950); color: white; padding: clamp(1.6rem, 4vw, 2.5rem); }
.support-panel h2, .support-panel p, .support-panel a { color: white; }
.support-panel p { opacity: .82; max-width: 60ch; }
.support-panel .button--secondary { color: var(--forest-900); }
.support-list { margin: 1.25rem 0 0; padding-left: 1.15rem; color: rgba(255,255,255,.82); }

/* Legal */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 3rem 6rem; align-items: start; }
.legal-meta { position: sticky; top: 110px; color: var(--ink-55); font-size: .86rem; }
.legal-meta strong { display: block; color: var(--ink); margin-bottom: .35rem; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 3rem 4rem; }
.foot__top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: start; }
.foot__entity { color: var(--ink-55); font-size: .85rem; }
.foot__entity strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .35rem; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.2rem; font-size: .8rem; font-weight: 700; }
.foot__links a { color: var(--ink-70); text-decoration: none; }
.foot__bottom { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.25rem; color: var(--ink-55); font-size: .75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }



/* Founder / company facts */
.founder { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--rule); background: var(--mist); }
.founder__name { margin: 1rem 0 .2rem; font-family: var(--display); font-size: clamp(1.65rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; }
.founder__role { margin: 0 0 1.1rem; color: var(--forest-700); font-size: .86rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1rem; align-items: stretch; }
.fact-panel { background: white; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.8rem); }
.fact-panel--map { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100%; }
.fact-panel--map img { width: min(100%, 440px); height: auto; }
.fact-panel__caption { margin: 1rem 0 0; color: var(--ink-70); font-size: .9rem; text-align: center; }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { display: grid; grid-template-columns: minmax(110px, 140px) minmax(0, 1fr); gap: .85rem 1rem; padding: .9rem 0; border-top: 1px solid var(--rule); align-items: start; }
.fact-list li:first-child { border-top: 0; padding-top: 0; }
.fact-list span { color: var(--ink-55); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.fact-list strong, .fact-list strong a { color: var(--ink); font-size: .96rem; font-weight: 700; text-decoration: none; }
.fact-list strong a:hover { color: var(--forest-900); }

/* Simple 404 */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.center-page h1 { max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .55s cubic-bezier(.2,.7,.3,1) both; }
  .reveal--2 { animation-delay: .08s; }
  .reveal--3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 820px) {
  .masthead { position: static; }
  .masthead__inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .nav { gap: .35rem 1rem; }
  .hero__row, .section__head, .split, .legal-wrap, .founder, .facts-grid { grid-template-columns: 1fr; }
  .hero__aside { border-left: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0 0; }
  .record { grid-template-columns: repeat(2,1fr); }
  .record__item:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .record__item:nth-child(4) { border-top: 1px solid var(--rule); }
  .portfolio-grid, .contact-grid { grid-template-columns: 1fr; }
  .legal-meta { position: static; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .record { grid-template-columns: 1fr; }
  .record__item, .record__item + .record__item { border-left: 0; border-top: 1px solid var(--rule); padding: 1rem 0; }
  .record__item:first-child { border-top: 0; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
}
