:root {
  color-scheme: light;
  --ink: #15120f;
  --ink-soft: #4d463e;
  --paper: #f7f4ed;
  --paper-strong: #fffdf8;
  --mist: #e8f0ed;
  --berry: #4f2f46;
  --teal: #255d54;
  --brass: #a8743a;
  --line: rgba(21, 18, 15, 0.14);
  --line-strong: rgba(21, 18, 15, 0.28);
  --radius: 8px;
  --shadow: 0 22px 60px rgba(21, 18, 15, 0.14);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(168, 116, 58, 0.28);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  background: rgba(21, 18, 15, 0.62);
  backdrop-filter: blur(18px);
  color: var(--paper-strong);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 18px 42px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(255, 253, 248, 0.5);
  display: inline-flex;
  font-family: var(--serif);
  font-size: 1.05rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--paper-strong);
}

.hero {
  background: var(--ink);
  color: var(--paper-strong);
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  padding: 132px 42px 68px;
  place-items: end start;
  position: relative;
}

#capital-map,
.hero-shade {
  inset: 0;
  position: absolute;
}

#capital-map {
  height: 100%;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.9) 0%, rgba(21, 18, 15, 0.68) 44%, rgba(21, 18, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(21, 18, 15, 0.82) 0%, rgba(21, 18, 15, 0) 42%);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 7.3rem;
  font-weight: 400;
  line-height: 0.9;
  margin: 0 0 30px;
}

.hero-kicker {
  font-size: 1.58rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 18px;
  max-width: 590px;
}

.hero-copy {
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.05rem;
  margin: 0;
  max-width: 600px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--paper-strong);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 253, 248, 0.42);
  color: var(--paper-strong);
}

.button-secondary:hover {
  background: rgba(255, 253, 248, 0.1);
}

.hero-meta {
  align-items: center;
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  bottom: 0;
  color: rgba(255, 253, 248, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  left: 42px;
  padding: 20px 0;
  position: absolute;
  right: 42px;
  z-index: 2;
}

.hero-meta span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 92px 42px;
}

.intro {
  background: var(--paper-strong);
}

.intro-grid,
.section-header,
.approach,
.contact-panel,
.site-footer {
  margin: 0 auto;
  max-width: 1180px;
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
}

h2 {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

.intro-grid p,
.section-header p,
.approach-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin: 0;
}

.principle-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px auto 0;
  max-width: 1180px;
}

.principle {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 220px;
  padding: 28px;
}

.principle span,
.project-index,
.approach-list span {
  color: var(--brass);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.principle h3,
.project-card h3 {
  font-size: 1.32rem;
  line-height: 1.15;
  margin: 0 0 14px;
}

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

.portfolio {
  background: var(--mist);
}

.section-header {
  align-items: end;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
}

.project-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 54px auto 0;
  max-width: 1180px;
}

.project-card {
  background: var(--paper-strong);
  border: 1px solid rgba(21, 18, 15, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 0 0 rgba(21, 18, 15, 0);
  display: flex;
  flex-direction: column;
  min-height: 470px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(21, 18, 15, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-visual {
  background: #ece7dc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  height: 150px;
  margin: 0 0 28px;
  overflow: hidden;
  position: relative;
}

.runology .project-visual {
  background:
    linear-gradient(135deg, rgba(37, 93, 84, 0.14), rgba(168, 116, 58, 0.2)),
    #f6f0e5;
}

.track {
  border: 10px solid rgba(37, 93, 84, 0.62);
  border-left-color: rgba(79, 47, 70, 0.35);
  border-radius: 999px;
  height: 120px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  width: 78px;
}

.pulse {
  background: var(--brass);
  height: 10px;
  position: absolute;
  width: 10px;
}

.pulse.one {
  left: 33%;
  top: 34%;
}

.pulse.two {
  background: var(--berry);
  right: 30%;
  top: 60%;
}

.bitcannery .project-visual {
  background:
    linear-gradient(90deg, rgba(21, 18, 15, 0.06) 1px, transparent 1px) 0 0 / 18px 18px,
    #edf1ef;
}

.cipher-line {
  background: rgba(37, 93, 84, 0.72);
  display: block;
  height: 14px;
  left: 24px;
  position: absolute;
  right: 24px;
}

.cipher-line:nth-child(1) {
  top: 42px;
}

.cipher-line:nth-child(2) {
  background: rgba(79, 47, 70, 0.68);
  right: 68px;
  top: 68px;
}

.cipher-line:nth-child(3) {
  background: rgba(168, 116, 58, 0.72);
  left: 68px;
  top: 94px;
}

.medirad .project-visual {
  background:
    linear-gradient(0deg, rgba(21, 18, 15, 0.05) 1px, transparent 1px) 0 0 / 100% 18px,
    #f5f7f6;
}

.scan-ring {
  border: 2px solid rgba(37, 93, 84, 0.34);
  border-radius: 999px;
  height: 104px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 104px;
}

.scan-ring::after {
  border: 10px solid rgba(37, 93, 84, 0.56);
  border-right-color: rgba(168, 116, 58, 0.52);
  border-radius: inherit;
  content: "";
  inset: 18px;
  position: absolute;
}

.scan-line {
  background: rgba(79, 47, 70, 0.42);
  bottom: 0;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
}

.frigate .project-visual {
  background: #f4efe9;
}

.folio {
  background: var(--paper-strong);
  border: 1px solid rgba(21, 18, 15, 0.18);
  box-shadow: 12px 12px 0 rgba(79, 47, 70, 0.18);
  display: block;
  position: absolute;
}

.folio.large {
  height: 92px;
  left: 34px;
  top: 28px;
  width: 74px;
}

.folio.large::before {
  background: var(--brass);
  content: "";
  height: 16px;
  left: 14px;
  position: absolute;
  right: 14px;
  top: 18px;
}

.folio.large::after {
  background: rgba(37, 93, 84, 0.62);
  bottom: 18px;
  content: "";
  height: 28px;
  left: 14px;
  position: absolute;
  right: 28px;
}

.folio.small {
  background: rgba(37, 93, 84, 0.72);
  height: 62px;
  right: 38px;
  top: 50px;
  width: 50px;
}

.mirelle .project-visual {
  background:
    linear-gradient(135deg, rgba(79, 47, 70, 0.16), rgba(168, 116, 58, 0.14)),
    #f4eef1;
}

.bloom {
  height: 84px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
}

.bloom::before {
  border: 2px solid rgba(79, 47, 70, 0.6);
  border-radius: 0 100% 0 100%;
  content: "";
  inset: 12px;
  position: absolute;
  transform: rotate(45deg);
}

.bloom::after {
  background: var(--brass);
  border-radius: 999px;
  bottom: 20px;
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 7px;
}

.whenstars .project-visual {
  background:
    radial-gradient(circle at 70% 28%, rgba(168, 116, 58, 0.2), transparent 44%),
    linear-gradient(135deg, rgba(37, 93, 84, 0.1), rgba(21, 18, 15, 0.05)),
    #f3efe4;
}

.astro {
  height: 96px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
}

.astro::before {
  border: 1px solid rgba(37, 93, 84, 0.5);
  border-radius: 999px;
  content: "";
  inset: 4px;
  position: absolute;
}

.astro::after {
  background: var(--brass);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  content: "";
  height: 42px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
}

.orb {
  background: var(--berry);
  border-radius: 999px;
  height: 10px;
  position: absolute;
  right: 14px;
  top: 16px;
  width: 10px;
}

.project-type {
  color: var(--teal);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-link {
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: auto;
  overflow-wrap: anywhere;
  padding-top: 20px;
  text-transform: uppercase;
}

.project-link::after {
  content: "  ->";
}

.approach {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.approach-copy p {
  margin-top: 28px;
}

.approach-list {
  border-top: 1px solid var(--line-strong);
  list-style: none;
  margin: 0;
  padding: 0;
}

.approach-list li {
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  gap: 20px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 28px 0;
}

.approach-list span {
  margin: 0;
}

.approach-list strong {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
}

.contact {
  background: var(--berry);
  color: var(--paper-strong);
  padding-bottom: 72px;
  padding-top: 72px;
}

.contact .section-label {
  color: #e3b170;
}

.contact-panel {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.mail-link {
  border-bottom: 1px solid rgba(255, 253, 248, 0.48);
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}

address {
  color: rgba(255, 253, 248, 0.74);
  font-style: normal;
}

.site-footer {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 16px;
  justify-content: space-between;
  padding: 28px 42px 42px;
}

.site-footer a {
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 420px;
  }
}

@media (max-width: 880px) {
  .site-header {
    padding: 16px 22px;
  }

  .nav-links a:nth-child(1),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 116px;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .hero-kicker {
    font-size: 1.3rem;
  }

  .hero-meta {
    left: 22px;
    right: 22px;
  }

  .intro-grid,
  .section-header,
  .approach,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 2.45rem;
  }

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

  .approach-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-name {
    font-size: 0.82rem;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  .hero {
    min-height: 82svh;
    padding-bottom: 78px;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

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

  .project-card {
    min-height: 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
