:root {
  --paper: #f3efe6;
  --paper-light: #fbfaf6;
  --ink: #172629;
  --ink-soft: #465355;
  --muted: #66716e;
  --line: rgba(23, 38, 41, 0.17);
  --mineral: #9b563d;
  --cobalt: #31576a;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --edge: clamp(1.25rem, 3.6vw, 3.75rem);
}

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

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 63% 46%, rgba(255, 255, 255, 0.76), transparent 31rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--paper-light);
  background: var(--mineral);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 0.8rem;
  transform: translateY(-170%);
}

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

.site-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--edge);
  isolation: isolate;
}

.site-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(23, 38, 41, 0.028) 1px, transparent 1px);
  background-size: 100% 4.5rem;
  content: "";
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: clamp(5.5rem, 12vh, 7.25rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.15;
}

.stage-label,
.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.copyright {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.stage-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stage-label span {
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--mineral);
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(155, 86, 61, 0.1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

#metal-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}

body.visual-ready #metal-field {
  opacity: 1;
}

.statement {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: center;
  width: min(38rem, 46vw);
  pointer-events: none;
  transform: translateY(-4vh);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.25rem, 7.7vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
}

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

.thesis {
  max-width: 31rem;
  margin: clamp(1.8rem, 3.5vh, 2.8rem) 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.element-tag {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 4.8rem;
  grid-template-columns: 1rem 1fr;
  grid-template-rows: auto auto;
  padding: 0.75rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(243, 239, 230, 0.72);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 600ms ease, transform 120ms linear;
}

.element-tag span {
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.49rem;
}

.element-tag strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.element-tag small {
  grid-column: 1 / -1;
  margin-top: 0.55rem;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.element-tag-nickel {
  top: 17%;
  right: 9%;
  transform: translate3d(calc(var(--parallax-x, 0px) * 0.7), calc(var(--parallax-y, 0px) * 0.7), 0);
}

.element-tag-cobalt {
  right: 39%;
  bottom: 16%;
  color: var(--cobalt);
  transform: translate3d(calc(var(--parallax-x, 0px) * -0.45), calc(var(--parallax-y, 0px) * -0.45), 0);
}

.site-footer {
  min-height: clamp(4.8rem, 10vh, 6.25rem);
  border-top: 1px solid var(--line);
}

.reach-out {
  margin: 0 0 0 auto;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.035em;
}

.reach-out a {
  display: inline-block;
  margin-left: 0.3rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--mineral);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.reach-out a:hover,
.reach-out a:focus-visible {
  color: var(--mineral);
  border-color: currentColor;
}

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 56% 39%, rgba(255, 255, 255, 0.78), transparent 22rem),
      var(--paper);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 54%) minmax(0, 46%);
  }

  .statement {
    grid-row: 2;
    align-self: start;
    width: min(35rem, 88vw);
    padding-top: clamp(1rem, 2.5vh, 2rem);
    transform: none;
  }

  h1 {
    font-size: clamp(4rem, 16vw, 6.8rem);
  }

  .thesis {
    max-width: 28rem;
    font-size: 1rem;
  }

  .element-tag-nickel {
    top: 9%;
    right: 4%;
  }

  .element-tag-cobalt {
    top: 35%;
    right: auto;
    bottom: auto;
    left: 3%;
  }

}

@media (max-width: 560px) {
  .site-header {
    min-height: 5rem;
  }

  .brand {
    gap: 0.6rem;
    font-size: 0.95rem;
  }

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

  .stage-label {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .thesis {
    max-width: 21rem;
    margin-top: 1.4rem;
    font-size: 0.9rem;
  }

  .element-tag {
    transform: scale(0.82);
  }

  .element-tag-nickel {
    top: 7%;
    right: -0.5rem;
  }

  .element-tag-cobalt {
    top: 34%;
    bottom: auto;
    left: -0.5rem;
  }

  .site-footer {
    display: block;
    min-height: 5rem;
  }

  .copyright {
    position: absolute;
    top: 50%;
    left: 0;
    font-size: 0.52rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .reach-out {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    font-size: 0.62rem;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .reach-out a {
    margin-left: 0;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  h1 {
    font-size: clamp(4rem, 7vw, 6.5rem);
  }

  .thesis {
    margin-top: 1.5rem;
  }
}

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