:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e1d4;
  --ink: #13221d;
  --muted: #5d6761;
  --line: rgba(19, 34, 29, 0.18);
  --green: #174e3b;
  --green-light: #2e7258;
  --signal: #d9ff63;
  --signal-soft: #eaffad;
  --white: #fffef9;
  --shell: 86rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --radius: 1.25rem;
  --shadow: 0 1.5rem 4rem rgba(19, 34, 29, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(19, 34, 29, 0.15) 0.75px, transparent 0.75px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 44rem);
  content: "";
  pointer-events: none;
}

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

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

::selection { color: var(--ink); background: var(--signal); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--green);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.9);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img { width: 2.25rem; height: 2.25rem; }

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

.site-nav a {
  border-bottom: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.site-nav .workspace-link {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.site-nav .workspace-link:hover { color: var(--paper); background: var(--ink); }

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  width: 1.1rem;
  height: 1px;
  display: block;
  margin: 0.26rem auto;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  color: var(--green-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before { width: 2.25rem; height: 2px; background: currentColor; content: ""; }

.hero {
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
  display: grid;
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
}

.hero h1, .page-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.4rem, 8.5vw, 8.6rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 em {
  display: block;
  color: var(--green-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero__intro {
  max-width: 45rem;
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.hero__actions, .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  min-height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button::after { content: "↗"; }
.button:hover { transform: translateY(-2px); }
.button--signal { color: var(--ink); border-color: var(--signal); background: var(--signal); }
.button--ghost { color: var(--ink); background: transparent; }
.button--ghost::after { content: "→"; }

.hero__panel {
  position: relative;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero__panel::after {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  mix-blend-mode: screen;
}

.hero__panel-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.hero__panel-list { display: grid; gap: 0.85rem; margin: 3rem 0 5rem; padding: 0; list-style: none; }
.hero__panel-list li { border-bottom: 1px solid rgba(255,255,255,0.22); padding-bottom: 0.7rem; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.hero__panel-meta { max-width: 12rem; margin: 0; color: rgba(255,255,255,0.7); font-size: 0.83rem; }

.ticker { border-block: 1px solid var(--line); overflow: hidden; }
.ticker__track { width: max-content; display: flex; gap: 2rem; padding: 1.05rem 0; animation: ticker 28s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 2rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.ticker span::after { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--green-light); content: ""; }

@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--ink { color: var(--paper); background: var(--ink); }
.section--green { color: var(--white); background: var(--green); }
.section--paper-deep { background: var(--paper-deep); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 5.4rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.section-heading p { max-width: 36rem; margin: 0; color: var(--muted); font-size: 1.1rem; }
.section--ink .section-heading p, .section--green .section-heading p { color: rgba(255,255,255,0.7); }
.section--ink .eyebrow, .section--green .eyebrow { color: var(--signal); }

.project-list { border-top: 1px solid rgba(255,255,255,0.2); }

.project-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.project-row__number { color: var(--signal); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; }
.project-row h3 { max-width: 18ch; margin: 0; font-size: clamp(1.8rem, 3.7vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; }
.project-row__tag { display: block; margin-bottom: 0.8rem; color: rgba(255,255,255,0.58); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.project-row__copy { margin: 0 0 1.2rem; color: rgba(255,255,255,0.76); }
.project-row__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.project-row__meta li { border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.32rem 0.7rem; font-size: 0.72rem; }
.project-row__tech { display: grid; gap: 0.25rem; margin: 1.25rem 0 0; color: rgba(255,255,255,0.72); font-size: 0.8rem; }
.project-row__tech strong { color: var(--signal); font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; }
.project-row a { text-underline-offset: 0.3em; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { min-height: 29rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.8rem); background: rgba(255,255,255,0.38); }
.project-card:nth-child(3n+1) { background: var(--signal-soft); }
.project-card:nth-child(3n+2) { color: var(--white); background: var(--green); }
.project-card__top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.project-card:nth-child(3n+2) .project-card__top { color: rgba(255,255,255,0.65); }
.project-card h2 { max-width: 13ch; margin: 4rem 0 1rem; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.06em; line-height: 0.95; }
.project-card p { max-width: 34rem; color: var(--muted); }
.project-card:nth-child(3n+2) p { color: rgba(255,255,255,0.72); }
.project-card ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.project-card li { border: 1px solid currentColor; border-radius: 999px; padding: 0.3rem 0.65rem; font-size: 0.72rem; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { padding: 2rem 2rem 2rem 0; }
.principle:not(:last-child) { border-right: 1px solid var(--line); margin-right: 2rem; }
.principle__number { color: var(--green-light); font-size: 0.75rem; font-weight: 800; }
.principle h3 { margin: 4rem 0 1rem; font-size: 1.5rem; letter-spacing: -0.035em; }
.principle p { margin: 0; color: var(--muted); }

.profile { display: grid; grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr); align-items: stretch; gap: clamp(2rem, 7vw, 7rem); }
.profile__image { min-height: 35rem; border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); }
.profile__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.04); }
.profile__copy { display: flex; flex-direction: column; justify-content: center; }
.profile__copy h2 { max-width: 14ch; margin: 0 0 2rem; font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -0.06em; line-height: 0.96; }
.profile__copy > p { max-width: 42rem; color: var(--muted); font-size: 1.12rem; }
.profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.profile__fact { border-top: 1px solid var(--line); padding-top: 1rem; }
.profile__fact strong { display: block; margin-bottom: 0.35rem; }
.profile__fact span { color: var(--muted); font-size: 0.88rem; }

.contact-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr); align-items: end; gap: 3rem; }
.contact-card h2 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -0.075em; line-height: 0.88; }
.contact-card p { color: rgba(255,255,255,0.72); }
.contact-card a:not(.button) { font-size: clamp(1.1rem, 2vw, 1.5rem); text-underline-offset: 0.28em; }

.page-hero { padding-block: clamp(5rem, 10vw, 9rem); }
.page-hero h1 { max-width: 14ch; }
.page-hero__intro { max-width: 52rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.page-hero__meta span { border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.8rem; font-size: 0.75rem; font-weight: 700; }

.legal { max-width: 52rem; padding-bottom: clamp(5rem, 10vw, 9rem); }
.legal h2 { margin-top: 3rem; font-size: 1.8rem; letter-spacing: -0.03em; }
.legal h3 { margin-top: 2.5rem; font-size: 1.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-underline-offset: 0.2em; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { min-height: 8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer__identity { display: flex; align-items: center; gap: 0.8rem; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer__identity img { width: 2rem; height: 2rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer__nav a { color: var(--muted); font-size: 0.82rem; text-underline-offset: 0.2em; }

[data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity 700ms ease, transform 700ms ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 64rem) {
  .hero__grid, .section-heading, .profile, .contact-card { grid-template-columns: 1fr; }
  .hero__panel { width: min(100%, 32rem); min-height: 24rem; }
  .project-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .project-row__detail { grid-column: 2; }
  .profile__image { min-height: 30rem; max-height: 50rem; }
}

@media (max-width: 48rem) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 5rem;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.9rem 0; }
  .site-nav .workspace-link { justify-content: center; margin-top: 0.5rem; }
  .project-grid, .principles, .profile__facts { grid-template-columns: 1fr; }
  .project-card { min-height: 24rem; }
  .principle { border-bottom: 1px solid var(--line); padding-right: 0; }
  .principle:not(:last-child) { border-right: 0; margin-right: 0; }
  .principle h3 { margin-top: 2rem; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; padding-block: 2rem; }
}

@media (max-width: 34rem) {
  .brand span { display: none; }
  .hero h1, .page-hero h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .hero__actions, .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-row { grid-template-columns: 1fr; }
  .project-row__detail { grid-column: auto; }
}

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