:root {
  color-scheme: light;
  --paper: #f9f9f7;
  --white: #ffffff;
  --ink: #141c14;
  --ink-soft: rgba(20, 28, 20, 0.7);
  --muted: rgba(20, 28, 20, 0.5);
  --line: rgba(20, 28, 20, 0.1);
  --accent: #b8860b;
  --radius: 24px;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

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

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
}

.brand-wordmark {
  font-family: Outfit, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-wordmark span {
  color: var(--accent);
}

.brand-lab {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 34px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.header-nav a,
.tiny-button {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-nav a:hover {
  color: var(--accent);
}

.tiny-button {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 20px rgba(20, 28, 20, 0.03);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tiny-button:hover {
  border-color: rgba(184, 134, 11, 0.35);
  color: var(--accent);
}

.hero {
  display: flex;
  min-height: min(790px, calc(100svh - 96px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0 56px;
  text-align: center;
}

.hero-kicker,
.eyebrow {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(20, 28, 20, 0.8);
  box-shadow: 0 4px 18px rgba(20, 28, 20, 0.03);
  backdrop-filter: blur(8px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184, 134, 11, 0.08);
}

.hero h1 {
  max-width: 1240px;
  margin: 42px auto 36px;
  font-family: Outfit, sans-serif;
  font-size: clamp(60px, 8.2vw, 118px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 span {
  color: #435441;
}

.hero-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 16px;
}

.hero-footer p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.65;
}

.circle-link {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.circle-link:hover {
  transform: translateY(4px);
  background: var(--ink);
  color: white;
}

.circle-link svg,
.dialog-link svg,
.search svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid rgba(20, 28, 20, 0.06);
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  animation: marquee 30s linear infinite;
  color: rgba(20, 28, 20, 0.55);
  font-family: Outfit, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.marquee-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

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

.showcase {
  padding: 140px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.about h2 {
  margin: 14px 0 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(45px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.project-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 54px 0 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.filter:hover,
.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.search {
  display: flex;
  width: min(260px, 100%);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  color: var(--muted);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 300;
}

.search input::placeholder {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(20, 28, 20, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 38px rgba(20, 28, 20, 0.05);
  cursor: pointer;
  isolation: isolate;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.project-card:nth-child(1),
.project-card:nth-child(6n + 1) {
  grid-column: span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(6n + 2) {
  grid-column: span 5;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 134, 11, 0.24);
  box-shadow: 0 20px 60px rgba(20, 28, 20, 0.09);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--card-bg, #eef0eb);
}

.card-visual::before,
.card-visual::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(1px);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.card-visual::before {
  width: 70%;
  aspect-ratio: 1;
  top: -22%;
  right: -15%;
  background: var(--orb-a, var(--accent));
  opacity: 0.72;
}

.card-visual::after {
  width: 50%;
  aspect-ratio: 1;
  right: 22%;
  bottom: -24%;
  background: var(--orb-b, #819079);
  opacity: 0.62;
}

.project-card:hover .card-visual::before {
  transform: translate(-12%, 10%) scale(1.1);
}

.project-card:hover .card-visual::after {
  transform: translate(18%, -12%) scale(1.08);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(20, 28, 20, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 28, 20, 0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.visual-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  color: rgba(20, 28, 20, 0.7);
  font-family: Outfit, sans-serif;
  font-size: clamp(78px, 9vw, 134px);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.card-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(to bottom, rgba(249, 249, 247, 0.03) 35%, rgba(249, 249, 247, 0.94) 100%);
}

.card-top,
.card-bottom,
.dialog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-type,
.card-status,
.dialog-meta span {
  border: 1px solid rgba(20, 28, 20, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-status[data-status="live"]::before,
.card-status[data-status="soon"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #667c5e;
  content: "";
}

.card-status[data-status="soon"]::before {
  background: var(--accent);
}

.card-copy h3 {
  margin: 0 0 8px;
  font-family: Outfit, sans-serif;
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.card-copy p {
  max-width: 400px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.card-index {
  align-self: flex-end;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
}

.empty-state span {
  font-family: Outfit, sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9vw;
  border-top: 1px solid var(--line);
  padding: 140px 0;
}

.about h2 {
  max-width: 780px;
}

.about-copy {
  align-self: end;
}

.about-copy > p {
  margin: 0 0 54px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.72;
}

.principles {
  display: flex;
  flex-direction: column;
}

.principles span {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  font-size: 13px;
  font-weight: 400;
}

.principles span:last-child {
  border-bottom: 1px solid var(--line);
}

.principles b {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 54px 0 42px;
}

.footer-mark {
  font-family: Outfit, sans-serif;
  font-size: clamp(50px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
  text-transform: uppercase;
}

.footer-mark span {
  color: var(--accent);
}

.site-footer > div:last-child {
  color: var(--muted);
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 6px 0;
}

.project-dialog {
  width: min(920px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 100px rgba(20, 28, 20, 0.22);
}

.project-dialog[open] {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  animation: dialog-in 220ms ease both;
}

.project-dialog::backdrop {
  background: rgba(20, 28, 20, 0.55);
  backdrop-filter: blur(9px);
}

@keyframes dialog-in {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}

.dialog-visual {
  min-height: 430px;
  background: var(--dialog-bg, #eef0eb);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 46px;
}

.dialog-meta {
  justify-content: flex-start;
}

.dialog-content h2 {
  margin: 30px 0 16px;
  font-family: Outfit, sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.dialog-content > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.dialog-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: 38px;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 500;
}

.dialog-link[aria-disabled="true"] {
  background: rgba(20, 28, 20, 0.08);
  color: var(--muted);
  pointer-events: none;
}

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

@media (max-width: 900px) {
  .project-card,
  .project-card:nth-child(n) {
    grid-column: span 6;
  }

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

  .about-copy {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .brand-lab {
    padding-left: 10px;
  }

  .tiny-button {
    padding: 10px 14px;
    letter-spacing: 0.08em;
  }

  .hero {
    min-height: calc(100svh - 96px);
    padding-top: 52px;
  }

  .hero h1 {
    margin-top: 38px;
    font-size: clamp(56px, 17vw, 88px);
  }

  .hero-footer {
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 400px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .project-dialog[open] {
    display: block;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
  }

  .dialog-visual {
    min-height: 230px;
  }

  .dialog-content {
    padding: 40px 24px 34px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 34px;
  }

  .site-footer > div:last-child {
    text-align: left;
  }
}

@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;
  }
}
