:root {
  --paper: #f6f7f2;
  --paper-deep: #edf0e7;
  --ink: #17332d;
  --muted: #65736d;
  --line: rgba(23, 51, 45, 0.15);
  --maple: #db6b4c;
  --mint: #dce9df;
  --cream: #f3e8d7;
  --radius: 1.75rem;
  --shadow: 0 24px 70px rgba(41, 61, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.ambient--top {
  top: -22rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(219, 107, 76, 0.16), transparent 68%);
}

.ambient--bottom {
  bottom: -24rem;
  left: -18rem;
  background: radial-gradient(circle, rgba(95, 152, 129, 0.18), transparent 68%);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
  border-bottom: 1px solid var(--line);
}

.brand,
.header-link,
.scroll-cue {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.header-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--maple);
}

.hero {
  display: grid;
  min-height: calc(100vh - 6rem);
  min-height: calc(100svh - 6rem);
  padding: clamp(5rem, 12vh, 9rem) 0 3.5rem;
  align-content: center;
}

.eyebrow {
  margin: 0 0 1.6rem;
  color: var(--maple);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 2.3rem;
  font-size: clamp(3.7rem, 8.5vw, 8.4rem);
  font-weight: 520;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

h1 em {
  color: var(--maple);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy {
  display: grid;
  max-width: 720px;
  margin-left: min(13vw, 10rem);
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.hero-copy p[lang] {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.scroll-cue {
  display: inline-flex;
  width: max-content;
  margin-top: clamp(3rem, 10vh, 6.5rem);
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-line {
  position: relative;
  display: block;
  width: 4rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-line::after {
  position: absolute;
  inset: 0;
  background: var(--maple);
  content: "";
  transform: translateX(-100%);
  animation: travel 2.4s ease-in-out infinite;
}

.projects {
  padding: 8rem 0 9rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-heading .eyebrow {
  margin: 0 0 0.5rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  font-weight: 520;
  letter-spacing: -0.055em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 24rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(23, 51, 45, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}

.project-card::before {
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  right: -10rem;
  bottom: -12rem;
  border: 1px solid rgba(23, 51, 45, 0.12);
  border-radius: 50%;
  content: "";
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

a.project-card:hover::before,
a.project-card:focus-visible::before {
  transform: scale(1.65);
}

.project-card--icegear {
  background: var(--mint);
}

.project-card--lab {
  background: var(--cream);
}

.project-card--future {
  min-height: 17rem;
  grid-column: 1 / -1;
  background: transparent;
  border: 1px dashed rgba(23, 51, 45, 0.25);
  box-shadow: none;
}

.project-number {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.project-content {
  max-width: 24rem;
  margin-top: auto;
}

.project-status {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 520;
  letter-spacing: -0.055em;
}

.project-content p {
  max-width: 19rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.project-arrow,
.future-mark {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(23, 51, 45, 0.22);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

a.project-card:hover .project-arrow,
a.project-card:focus-visible .project-arrow {
  color: var(--paper);
  background: var(--ink);
  transform: rotate(8deg);
}

.future-mark {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(219, 107, 76, 0.45);
  outline-offset: 4px;
}

@keyframes travel {
  0%, 20% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1180px);
  }

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

  .hero {
    min-height: calc(100svh - 5rem);
    padding-top: 4.5rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.5rem);
  }

  .hero-copy {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-copy p[lang] {
    padding: 0;
    border: 0;
  }

  .projects {
    padding: 5.5rem 0 6rem;
  }

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

  .project-card,
  .project-card--future {
    min-height: 20rem;
    grid-column: auto;
  }

  .project-card--future {
    min-height: 16rem;
  }

  footer {
    gap: 1rem;
    flex-direction: column;
  }
}

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

