:root {
  --ink: #182321;
  --ink-soft: #53605d;
  --paper: #f5f2eb;
  --paper-raised: #fbf9f4;
  --accent: #173f3a;
  --accent-bright: #c9e8c7;
  --line: rgba(24, 35, 33, 0.16);
  --shadow: 0 28px 80px rgba(24, 35, 33, 0.08);
  --radius: 1.5rem;
  --shell: min(1180px, calc(100% - 3rem));
  --header-height: 5.5rem;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #76a99f;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.site-header {
  width: var(--shell);
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 2.6rem);
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-contact {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

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

.menu-toggle {
  display: none;
}

.hero {
  width: var(--shell);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.eyebrow,
.section-index {
  margin: 0 0 1.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-weight: 540;
  letter-spacing: -0.068em;
  line-height: 0.92;
}

.hero h1 {
  font-size: clamp(4.6rem, 10.5vw, 9.4rem);
}

.hero-intro {
  max-width: 39rem;
  margin: 2.2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  gap: 1.7rem;
  flex-wrap: wrap;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 34px rgba(23, 63, 58, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(23, 63, 58, 0.27);
}

.text-link {
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.text-link svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-panel {
  position: relative;
  min-height: 33rem;
  border-radius: calc(var(--radius) * 1.3);
  overflow: hidden;
  background: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.hero-orbit {
  position: absolute;
  width: 20rem;
  height: 20rem;
  top: 2rem;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 6rem;
}

.orbit-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 2.3rem;
  font-weight: 550;
  letter-spacing: -0.06em;
}

.orbit-dot {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 8px rgba(201, 232, 199, 0.08);
}

.dot-one {
  top: 1.3rem;
  left: 4rem;
}

.dot-two {
  right: 0.35rem;
  bottom: 6rem;
}

.disciplines {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 1.8rem;
}

.disciplines li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
}

.disciplines span {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 11rem) 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(3rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.section-heading h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.profile-lead {
  max-width: 48rem;
  margin: 0 0 clamp(3.5rem, 7vw, 6rem);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-grid article {
  background: var(--paper);
  padding: 2rem 1.6rem 2.2rem 0;
}

.profile-grid article:not(:first-child) {
  padding-left: 1.6rem;
}

.profile-number,
.project-type,
.footprint-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.profile-grid h3 {
  margin: 3rem 0 1rem;
  font-size: 1.15rem;
}

.profile-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card,
.footprint-card {
  min-height: 17rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.26);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover,
.footprint-card:hover {
  transform: translateY(-4px);
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.project-card-wide {
  grid-column: 1 / -1;
  min-height: 21rem;
  background: var(--ink);
  color: var(--paper);
}

.project-card-wide::after {
  content: "D";
  position: absolute;
  right: 1.5rem;
  bottom: -4.6rem;
  color: rgba(255, 255, 255, 0.055);
  font-size: 18rem;
  line-height: 1;
  font-weight: 800;
}

.project-card-wide:hover {
  background: #22302d;
}

.project-card-accent {
  background: var(--accent-bright);
  border-color: transparent;
}

.project-card h3 {
  max-width: 34rem;
  margin: 3.5rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.project-card p {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.project-card-wide p,
.project-card-wide .project-type {
  color: rgba(245, 242, 235, 0.68);
}

.external-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  opacity: 0.65;
}

.more-projects {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.more-projects summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.more-projects summary::-webkit-details-marker {
  display: none;
}

.more-projects summary span {
  transition: transform 180ms ease;
  font-size: 1.5rem;
  font-weight: 400;
}

.more-projects[open] summary span {
  transform: rotate(45deg);
}

.project-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.2rem 0 1.5rem;
}

.project-links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
}

.apps {
  background: var(--accent);
  color: var(--paper);
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100vw - 1180px) / 2));
  border: 0;
}

.apps .section-index {
  color: var(--accent-bright);
}

.app-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.platform-heading {
  min-height: 4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.platform-heading > span:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.platform-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--accent-bright);
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.app-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.6rem;
  color: var(--paper);
  text-decoration: none;
}

.app-list a:hover span {
  color: var(--accent-bright);
}

.app-list span {
  font-weight: 620;
  transition: color 180ms ease;
}

.app-list small {
  color: rgba(255, 255, 255, 0.52);
}

.app-list b {
  font-weight: 400;
  color: var(--accent-bright);
}

.footprint-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1rem;
}

.footprint-card {
  min-height: 20rem;
}

.footprint-card h3 {
  max-width: 24rem;
  margin: auto 0 0.7rem;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.footprint-card p {
  margin: 0;
  color: var(--ink-soft);
}

.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(6rem, 12vw, 11rem) 1.5rem;
}

.contact-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact .eyebrow {
  color: var(--accent-bright);
}

.contact h2 {
  font-size: clamp(3rem, 8vw, 7.5rem);
}

.contact-mail {
  width: min(620px, 100%);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-decoration: none;
}

.contact-mail:hover {
  color: var(--accent-bright);
}

.site-footer {
  min-height: 9rem;
  padding: 2rem max(1.5rem, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: rgba(245, 242, 235, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  font-size: 0.78rem;
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --shell: min(calc(100% - 2rem), 720px);
    --header-height: 4.8rem;
  }

  .brand-name {
    display: none;
  }

  .js .menu-toggle {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    position: relative;
    z-index: 22;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 1rem;
    height: 1px;
    background: var(--paper);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    background: var(--accent);
    color: var(--paper);
    padding: 7rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    color: var(--paper);
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .site-nav .nav-contact {
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    border-color: rgba(255,255,255,.35);
    font-size: 1rem;
  }

  html:not(.js) .site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 0.75rem 0;
    align-items: flex-start;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem 1rem;
  }

  html:not(.js) .site-nav a {
    font-size: 0.78rem;
  }

  html:not(.js) .site-nav .nav-contact {
    padding: 0;
    border: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 5rem 0 6rem;
    gap: 4rem;
  }

  .hero-panel {
    min-height: 31rem;
  }

  .section-shell {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .section-heading {
    position: static;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-grid article,
  .profile-grid article:not(:first-child) {
    padding: 1.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-grid article:last-child {
    border-bottom: 0;
  }

  .profile-grid h3 {
    margin: 1.5rem 0 0.6rem;
  }

  .apps {
    padding-inline: max(1rem, calc((100vw - 720px) / 2));
  }

  .app-columns {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 0.85rem;
    padding-block: 3rem;
  }

  .site-footer p:last-child {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(4rem, 21vw, 6.2rem);
  }

  .hero-intro {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
  }

  .text-link {
    width: fit-content;
    align-self: center;
  }

  .hero-panel {
    min-height: 26rem;
  }

  .hero-orbit {
    width: 17rem;
    height: 17rem;
  }

  .project-grid,
  .footprint-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .project-card,
  .project-card-wide,
  .footprint-card {
    min-height: 15rem;
  }

  .project-links {
    grid-template-columns: 1fr;
  }

  .app-list a {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
    padding: 0.9rem 0;
  }

  .app-list small {
    grid-column: 1;
  }

  .app-list b {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .contact {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
