:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --white: #fffcf6;
  --ink: #1b2721;
  --muted: #4e5950;
  --green: #244a39;
  --green-dark: #18362a;
  --line: #d4d1c5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #9f4c2e; outline-offset: 5px; }
::selection { background: #cddcc7; color: #182e22; }

.wrap { width: min(100% - 112px, 1220px); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: .6rem;
  left: .6rem;
  padding: .6rem 1rem;
  transform: translateY(-200%);
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 680;
  font-size: .96rem;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: var(--green);
  color: var(--white);
  font: 400 .93rem/1 var(--serif);
  letter-spacing: -.045em;
}
.primary-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.2vw, 2.7rem); }
.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 620;
  text-decoration: none;
}
.primary-nav a:hover, .footer-inner a:hover { text-decoration: underline; }
.primary-nav .nav-contact { color: var(--green); }
.external-arrow { display: inline-block; flex: none; vertical-align: -.16em; }

.hero {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
  padding-block: clamp(3rem, 6vw, 5.1rem);
}
.eyebrow, .case-label, .art-index, .art-caption, .metric-header, .hero-portrait figcaption {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.15rem;
  color: var(--green);
}
.eyebrow-line { width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  font-size: clamp(3.3rem, 7.35vw, 7.6rem);
  letter-spacing: -.083em;
  line-height: .99;
  text-wrap: initial;
}
.hero-role {
  margin-top: .65rem;
  color: var(--green);
  font: italic 400 clamp(1.72rem, 3.4vw, 3.7rem)/1.12 var(--serif);
  letter-spacing: -.045em;
}
.hero-intro {
  max-width: 42ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.63;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid transparent;
  padding: .65rem 1rem;
  font-size: .87rem;
  font-weight: 660;
  line-height: 1.4;
  text-decoration: none;
}
.button span { flex: none; font-size: 1rem; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--green-dark); }
.button-outline { border-color: #aaa99b; color: var(--ink); }
.button-outline:hover { background: #eeeadf; }
.hero-portrait { min-width: 0; }
.portrait-frame {
  position: relative;
  aspect-ratio: 1.07;
  overflow: hidden;
  background: #d6d5c9;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding-top: .9rem;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .06em;
}
.location-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 .35rem .12rem 0;
  border-radius: 50%;
  background: #50775b;
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.work-section { border-block: 1px solid var(--line); background: var(--white); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.3rem 2rem;
  margin-bottom: 2rem;
}
.section-index { font-variant-numeric: tabular-nums; opacity: .78; }
.section-heading .eyebrow, .about-intro .eyebrow, .contact-inner .eyebrow { margin-bottom: .7rem; }
.section h2, .contact-section h2 {
  font-size: clamp(2.75rem, 5.15vw, 5.1rem);
  letter-spacing: -.065em;
}
.section-heading > p {
  max-width: 39ch;
  margin-bottom: .2rem;
  color: var(--muted);
}
.featured-case {
  display: grid;
  grid-template-columns: 1.17fr 1fr;
  border: 1px solid var(--line);
  background: #f0f1e9;
}
.featured-copy, .case-metric { padding: clamp(1.5rem, 4vw, 3.2rem); }
.case-label { color: var(--green); font-size: .67rem; letter-spacing: .07em; }
.featured-copy h3 {
  max-width: 20ch;
  margin: .75rem 0 .85rem;
  font-size: clamp(2.15rem, 3.8vw, 3.55rem);
  letter-spacing: -.052em;
}
.featured-copy > p:not(.case-label), .case-copy > p:not(.case-label) { color: var(--muted); }
.featured-copy > p:not(.case-label) { max-width: 47ch; }
.case-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--green-dark);
  color: var(--white);
}
.metric-header {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .72rem;
  border-bottom: 1px solid #759184;
  color: #d3e0d7;
}
.metric-value {
  margin-top: .95rem;
  font: 400 clamp(3.1rem, 6.1vw, 6rem)/.97 var(--serif);
  letter-spacing: -.06em;
  white-space: nowrap;
}
.metric-value > span { margin-right: .06em; color: #c0d7a9; }
.metric-value abbr {
  text-decoration: none;
  color: #c0d7a9;
  font: 500 .37em/1 var(--sans);
  letter-spacing: 0;
}
.metric-caption { margin-top: .55rem; color: #d3e0d7; font-size: .86rem; }
.metric-bars { display: grid; gap: .5rem; margin-top: 1.2rem; font-size: .78rem; }
.metric-bars div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.metric-bars dt { color: #d3e0d7; }
.metric-bars dd { display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem; align-items: center; gap: .7rem; }
.metric-bars dd > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.metric-track { height: 4px; background: #597466; }
.bar { display: block; height: 100%; }
.bar-baseline { width: 42.4%; background: #adbcad; }
.bar-followup { width: 59.1%; background: #c0d7a9; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.85rem, 2vw, 1.3rem);
  margin-top: 1.3rem;
}
.case-card { border: 1px solid var(--line); }
.case-art {
  position: relative;
  display: grid;
  min-height: 158px;
  padding: .85rem .9rem;
  place-items: center;
  overflow: hidden;
}
.case-art svg { max-width: 45%; }
.art-castor { background: #e1e9dd; color: #345846; }
.art-zakti { background: #f3e8d7; color: #765336; }
.art-piano { background: #e7e5ee; color: #4f4a66; }
.art-index, .art-caption {
  position: absolute;
  font-size: .62rem;
  letter-spacing: .05em;
}
.art-index { top: .65rem; left: .8rem; }
.art-caption { right: .8rem; bottom: .65rem; }
.case-copy { padding: clamp(1.15rem, 2.4vw, 1.6rem); }
.case-copy h3 {
  min-height: 2.15em;
  margin: .55rem 0 .8rem;
  font-size: clamp(1.45rem, 2.45vw, 2.2rem);
  letter-spacing: -.045em;
  text-wrap: initial;
}
.case-copy > p:not(.case-label) { min-height: 5.25em; font-size: .93rem; }
.case-details { margin-top: 1rem; border-top: 1px solid var(--line); }
.case-details summary {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .25rem;
  color: var(--green);
  cursor: pointer;
  font-size: .83rem;
  font-weight: 690;
  list-style: none;
}
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary:hover { text-decoration: underline; text-underline-offset: .25em; }
.toggle-icon {
  position: relative;
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  border: 1px solid #9aa89e;
  border-radius: 50%;
}
.toggle-icon::before, .toggle-icon::after {
  position: absolute;
  width: 9px;
  height: 1px;
  background: currentColor;
  content: "";
}
.toggle-icon::after { transform: rotate(90deg); }
.case-details[open] .toggle-icon::after { display: none; }
.case-detail-body { padding: .35rem 0 .25rem; color: var(--muted); font-size: .92rem; }
.case-detail-body h4 { color: var(--ink); font-size: .86rem; }
.case-detail-body p + h4 { margin-top: .85rem; }
.text-link { display: inline-block; color: var(--green); font-size: .88rem; font-weight: 680; }
.text-link:hover { text-decoration-thickness: 2px; }
.case-detail-body .text-link { margin-top: .85rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2.6rem, 8vw, 8rem);
}
.about-intro h2 { max-width: 13ch; }
.about-intro p:not(.eyebrow) { max-width: 51ch; margin-top: 1.15rem; color: var(--muted); }
.about-intro p a { color: var(--green); font-weight: 650; }
.about-intro .text-link { margin-top: 1.4rem; }
.about-record h3 { margin-bottom: .85rem; font-size: 1.72rem; letter-spacing: -.035em; }
.experience-list, .education-list { margin: 0; padding: 0; list-style: none; }
.experience-list li, .education-list li {
  padding-block: .7rem;
  border-top: 1px solid var(--line);
}
.experience-list li {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: .7rem;
}
.experience-list li > span {
  padding-top: .16rem;
  color: var(--muted);
  font: .74rem/1.7 var(--mono);
}
.experience-list li div, .education-list li { display: grid; }
.experience-list strong, .education-list strong { font-size: .92rem; font-weight: 690; }
.experience-list div span, .education-list span { color: var(--muted); font-size: .86rem; }
.education-list li { grid-template-columns: 1fr; }
.experience-list + h3 { margin-top: 1.7rem; }

.contact-section { padding-block: clamp(3.2rem, 6.3vw, 5.6rem); background: var(--green-dark); color: var(--white); }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem 2.5rem; }
.contact-inner .eyebrow { color: #d1e3c9; }
.contact-inner h2 { max-width: 16ch; }
.contact-inner p:not(.eyebrow) { max-width: 49ch; margin-top: .85rem; color: #e3e9df; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-bottom: .15rem; }
.button-light { background: var(--white); color: var(--green-dark); }
.button-light:hover { background: #e4e9dc; }
.button-contact-outline { border-color: #8ca598; color: var(--white); }
.button-contact-outline:hover { background: #2e5141; }
.contact-section :focus-visible { outline-color: #d6e5bd; }
.site-footer { color: var(--muted); font-size: .8rem; }
.footer-divider { padding-inline: .35rem; }
.footer-inner a { text-decoration: none; white-space: nowrap; }

@media (max-width: 1050px) {
  .wrap { width: min(100% - 72px, 1220px); }
  .hero { min-height: 0; }
  .case-copy h3 { min-height: 3.2em; }
  .case-copy > p:not(.case-label) { min-height: 6.5em; }
}

@media (max-width: 800px) {
  .wrap { width: min(100% - 48px, 690px); }
  .hero { gap: 2rem; align-items: start; }
  .hero h1 { font-size: clamp(2.9rem, 7.5vw, 4.2rem); }
  .hero-role { font-size: clamp(1.58rem, 3.6vw, 2.25rem); }
  .hero-actions .button { min-height: 46px; }
  .section-heading { align-items: start; flex-direction: column; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-copy h3 { min-height: 0; }
  .case-copy > p:not(.case-label) { min-height: 0; }
  .about-grid { gap: 2rem; }
  .experience-list li { grid-template-columns: 1fr; gap: .12rem; }
  .contact-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 5.1rem; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 61px; gap: .45rem; }
  .wordmark { gap: .46rem; font-size: .82rem; }
  .wordmark-icon { width: 29px; height: 29px; font-size: .81rem; }
  .primary-nav { gap: clamp(.48rem, 3vw, 1rem); }
  .primary-nav a { gap: .22rem; font-size: .79rem; }
  .nav-contact .external-arrow { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 2.65rem 2.15rem;
  }
  .hero h1 { font-size: clamp(3.35rem, 11vw, 5.25rem); }
  .hero-role { margin-top: .6rem; font-size: clamp(1.87rem, 6vw, 2.9rem); }
  .hero-intro { margin-top: 1.18rem; }
  .hero-actions { margin-top: 1.35rem; }
  .button { gap: .45rem; padding-inline: .75rem; font-size: .83rem; }
  .portrait-frame { aspect-ratio: 1.18; }
  .featured-case, .case-grid, .about-grid { grid-template-columns: 1fr; }
  .case-grid { margin-top: .85rem; }
  .case-art { min-height: 149px; }
  .about-grid { gap: 2.3rem; }
  .experience-list li { grid-template-columns: 7rem minmax(0, 1fr); gap: .45rem; }
  .footer-inner { min-height: 63px; gap: .45rem; font-size: .73rem; }
}

@media (max-width: 350px) {
  .wrap { width: calc(100% - 26px); }
  .hero h1 { font-size: 3.05rem; }
  .hero-actions { gap: .45rem; }
  .wordmark-icon { display: none; }
  .experience-list li { grid-template-columns: 1fr; }
}
