:root {
  color-scheme: light;
  --ink: #17241d;
  --ink-soft: #445149;
  --paper: #e9dfcc;
  --paper-light: #f6f0e3;
  --citron: #d7ef56;
  --line: rgba(23, 36, 29, 0.2);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 36, 29, 0.07) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header {
  min-height: 6.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
}

.brand-mark rect {
  fill: var(--ink);
}

.brand-mark path {
  fill: var(--paper-light);
}

.site-header > p,
.site-footer {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header > p {
  margin: 0;
}

main {
  display: grid;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  grid-template-rows: minmax(24rem, 1fr) auto;
  min-height: calc(100svh - 11.5rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 4vw, 4.5rem);
}

.eyebrow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 clamp(1.7rem, 4vh, 3.2rem);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.4rem;
  height: 2px;
  background: var(--ink);
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 10.4vw, 10.8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.76;
}

.thesis {
  max-width: 29ch;
  margin: clamp(2.4rem, 6vh, 4.6rem) 0 0 clamp(0rem, 7vw, 8rem);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.15vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.flow-field {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.citron-disc {
  position: absolute;
  top: clamp(2.4rem, 9vh, 6rem);
  right: clamp(-9rem, -8vw, -3rem);
  width: clamp(18rem, 34vw, 33rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--citron);
  box-shadow: 0 0 0 1px rgba(215, 239, 86, 0.2);
}

.flow-field svg {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 112%;
  height: 100%;
  transform: translateX(-6%);
}

.flow {
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.flow-a { opacity: 0.94; }
.flow-b { opacity: 0.72; }
.flow-c { opacity: 0.52; }
.flow-d { opacity: 0.34; }
.flow-e { opacity: 0.18; }

.field-caption {
  position: absolute;
  z-index: 3;
  right: clamp(1.4rem, 4vw, 3.5rem);
  bottom: 2.2rem;
  max-width: 19ch;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.project-intro {
  position: relative;
  z-index: 4;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  border-top: 1px solid var(--line);
}

.project-intro > p {
  max-width: 61ch;
  margin: 0;
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1.25rem, 4vw, 4.5rem);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.62;
}

.project-intro strong {
  font-weight: 750;
}

.primary-action {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 3.6rem);
  color: var(--paper-light);
  background: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.primary-action svg {
  width: 1.8rem;
  height: 1.8rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.primary-action:hover {
  color: var(--ink);
  background: var(--citron);
}

.primary-action:hover svg {
  transform: translateX(0.35rem);
}

.primary-action:focus-visible {
  outline: 3px solid var(--citron);
  outline-offset: 4px;
}

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

.site-footer {
  min-height: 5rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.js .site-header,
.js .hero-copy,
.js .project-intro,
.js .site-footer {
  opacity: 0;
  transform: translateY(1rem);
  animation: arrive 700ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.js .hero-copy { animation-delay: 100ms; }
.js .project-intro { animation-delay: 210ms; }
.js .site-footer { animation-delay: 300ms; }
.js .flow-field svg { animation: drift 16s ease-in-out infinite alternate; }

@keyframes arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translateX(-6%) translateY(-0.5%); }
  to { transform: translateX(-3%) translateY(1.5%); }
}

@media (max-width: 860px) {
  .page-shell {
    background: var(--paper);
  }

  .site-header {
    min-height: 5rem;
  }

  .site-header > p {
    display: none;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-copy {
    min-height: 31rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(4.1rem, 18vw, 7.8rem);
    line-height: 0.82;
  }

  .thesis {
    max-width: 25ch;
    margin-left: 0;
  }

  .flow-field {
    min-height: min(72vw, 32rem);
  }

  .project-intro {
    display: block;
  }

  .primary-action {
    min-height: 6.5rem;
    padding-inline: clamp(1.25rem, 4vw, 4.5rem);
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    margin-inline: 1rem;
  }

  .hero-copy,
  .project-intro > p,
  .primary-action {
    padding-inline: 1rem;
  }

  .hero-copy {
    min-height: 29rem;
  }

  .eyebrow {
    margin-bottom: 2.3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.4rem);
    letter-spacing: -0.065em;
  }

  .thesis {
    margin-top: 2.4rem;
    font-size: 1.35rem;
  }

  .flow-field {
    min-height: 22rem;
  }

  .field-caption {
    right: 1rem;
    bottom: 1.25rem;
  }

  .site-footer {
    align-items: flex-start;
    min-height: 6.5rem;
    padding-block: 1.5rem;
    line-height: 1.5;
  }

  .site-footer p {
    max-width: 25ch;
  }
}

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

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

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #26352d;
    --line: rgba(23, 36, 29, 0.5);
  }
}
