:root {
  --paper: #f1efe7;
  --ink: #151713;
  --muted: #64665f;
  --line: #c9c7bd;
  --accent: #c8ff00;
  --blue: #2734d8;
  --orange: #f05c2c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  background: var(--accent);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus { top: 1rem; }

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 0 3vw;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 239, 231, 0.9);
  backdrop-filter: blur(14px);
}

.wordmark {
  align-items: center;
  display: flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.7rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
  display: flex;
  font-family: var(--serif);
  font-size: 0.72rem;
  height: 2rem;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 2rem;
}

nav { align-items: center; display: flex; gap: 2rem; }

nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

nav a:hover { opacity: 0.55; }

.nav-cta {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
}

.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 78px);
  padding: clamp(2rem, 4vw, 4.5rem) 3vw 2.5rem;
}

.hero-meta { display: flex; justify-content: space-between; }

.eyebrow,
.edition,
.hero-foot,
.project-type {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--ink);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.42rem;
  margin-right: 0.55rem;
  width: 0.42rem;
}

.edition { color: var(--muted); text-align: right; }

.hero-copy { align-self: center; padding: 6vh 0; }

.hero-meta,
.hero-copy,
.hero-foot {
  animation: rise-in 700ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-copy { animation-delay: 80ms; }
.hero-foot { animation-delay: 160ms; }

h1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 10.8vw, 10.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.81;
  margin: 0;
  max-width: 11ch;
}

h1 em { color: var(--blue); font-weight: 400; }

.hero-intro {
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  margin: 3rem 0 0 auto;
  max-width: 32rem;
}

.hero-foot {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.hero-foot p { color: var(--muted); margin: 0; }

.primary-link {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  text-decoration: none;
}

.primary-link span {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-size: 1rem;
  height: 2rem;
  justify-content: center;
  transition: background 180ms ease, transform 180ms ease;
  width: 2rem;
}

.primary-link:hover span { background: var(--accent); transform: translateY(3px); }

.work-section,
.about-section,
.contact-section {
  border-top: 1px solid var(--ink);
  content-visibility: auto;
  contain-intrinsic-size: 900px;
  padding: clamp(4rem, 9vw, 9rem) 3vw;
}

.section-heading {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 3fr;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading h2,
.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0;
}

.project-list { border-top: 1px solid var(--ink); }

.project { border-bottom: 1px solid var(--line); }

.project > a {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 3rem 6rem 1fr 3rem;
  padding: 2.2rem 0;
  text-decoration: none;
  transition: padding 220ms ease;
}

.project > a:hover,
.project > a:focus-visible {
  padding-left: 1rem;
  padding-right: 1rem;
}

.project-number { font-family: var(--mono); font-size: 0.65rem; }

.project-mark {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 1rem;
  color: white;
  display: flex;
  font-family: var(--serif);
  font-size: 2.7rem;
  font-style: italic;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-radius 220ms ease, transform 220ms ease;
}

.project-mark::after {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  content: "";
  height: 75%;
  position: absolute;
  width: 75%;
}

.mark-aeris { background: #1c806b; }
.mark-teuhue { background: var(--orange); }
.mark-bloomly { background: var(--blue); }

.project-copy h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0.15rem 0 0.5rem;
}

.project-copy p { color: var(--muted); margin: 0; max-width: 34rem; }

.project-type { color: var(--muted); }

.project-arrow {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  height: 3rem;
  justify-content: center;
  transition: background 180ms ease, transform 180ms ease;
  width: 3rem;
}

.project a:hover .project-arrow,
.project a:focus-visible .project-arrow { background: var(--accent); transform: rotate(45deg); }

.project a:hover .project-mark,
.project a:focus-visible .project-mark {
  border-radius: 50%;
  transform: rotate(-4deg) scale(1.04);
}

.about-grid {
  display: grid;
  gap: 10vw;
  grid-template-columns: 1.5fr 1fr;
  margin-left: 25%;
}

.about-copy { color: var(--muted); line-height: 1.75; }
.about-copy .lead { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.5; }

.capabilities { margin: 0; }

.capabilities div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 2rem 1fr;
  padding: 1rem 0;
}

.capabilities div:last-child { border-bottom: 1px solid var(--line); }
.capabilities dt { color: var(--muted); font-family: var(--mono); font-size: 0.65rem; }
.capabilities dd { font-size: 0.9rem; margin: 0; }

.contact-section { background: var(--ink); color: var(--paper); }
.contact-section .eyebrow::before { background: var(--accent); }

.contact-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-top: clamp(5rem, 12vw, 10rem);
}

.contact-row h2 { max-width: 8ch; }

.contact-row > a {
  align-items: center;
  border-bottom: 1px solid var(--paper);
  display: flex;
  font-family: var(--mono);
  font-size: 0.75rem;
  gap: 3rem;
  padding: 0.9rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-row > a span { color: var(--accent); font-size: 1.2rem; }

footer {
  align-items: center;
  background: var(--ink);
  border-top: 1px solid #40413d;
  color: #a4a59e;
  display: grid;
  font-family: var(--mono);
  font-size: 0.62rem;
  grid-template-columns: 1fr auto 1fr;
  padding: 1.5rem 3vw;
  text-transform: uppercase;
}

.social-links { display: flex; gap: 1.5rem; }
.social-links a, .machine-link a { text-decoration: none; }
.social-links a:hover, .machine-link a:hover { color: var(--paper); }
.machine-link { text-align: right; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 68px; }
  .site-header { height: 68px; }
  nav > a:not(.nav-cta) { display: none; }
  .hero { min-height: calc(100svh - 68px); }
  .hero-meta .edition { display: none; }
  .hero-copy { padding: 4rem 0; }
  h1 { font-size: clamp(3.45rem, 17vw, 6.5rem); line-height: 0.86; }
  .hero-intro { margin: 2rem 0 0; }
  .hero-foot p { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .project > a { gap: 1rem; grid-template-columns: 2rem 4.5rem 1fr; }
  .project > a:hover,
  .project > a:focus-visible { padding-left: 0.5rem; padding-right: 0.5rem; }
  .project-arrow { display: none; }
  .project-mark { border-radius: 0.7rem; }
  .project-copy h3 { font-size: 2rem; }
  .project-copy p { font-size: 0.78rem; line-height: 1.5; }
  .about-grid { grid-template-columns: 1fr; margin-left: 0; }
  .contact-row { align-items: start; flex-direction: column; gap: 4rem; }
  footer { gap: 1.5rem; grid-template-columns: 1fr; }
  .machine-link { 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;
  }
}

@media (forced-colors: active) {
  .wordmark-mark,
  .project-mark { border: 1px solid currentColor; }
}
