:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --white: #fff;
  --ink: #090909;
  --gray: #757571;
  --line: rgba(9, 9, 9, 0.2);
  --pad: clamp(1.25rem, 3.6vw, 4.5rem);
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem .9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.35rem var(--pad);
  border-bottom: 1px solid rgba(9, 9, 9, .12);
}

.micro-mark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .7rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .17em;
}

.micro-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  overflow: visible;
}

.header-meta,
.header-link {
  font-size: .58rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--gray);
}

.header-meta i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.header-link { justify-self: end; }
.header-link span { display: inline-block; margin-left: .65rem; transition: transform 180ms ease; }
.header-link:hover span,
.header-link:focus-visible span { transform: translateY(.2rem); }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cloud {
  position: absolute;
  z-index: -2;
  inset: -8%;
  width: 116%;
  height: 116%;
  background-image: url("assets/clouds-light-v2.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}

.cloud-a {
  opacity: .72;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -5px), 0) scale(1.03);
  animation: cloud-a 34s ease-in-out infinite alternate;
}

.cloud-b {
  opacity: .22;
  filter: blur(10px);
  transform: scaleX(-1) translate3d(calc(var(--mx) * 5px), calc(var(--my) * 4px), 0) scale(1.08);
  animation: cloud-b 46s ease-in-out infinite alternate;
}

.small-lightning {
  position: absolute;
  z-index: 1;
  top: 26%;
  left: 67%;
  width: clamp(1rem, 1.4vw, 1.7rem);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: square;
  opacity: 0;
  pointer-events: none;
  animation: small-strike 10.8s linear infinite;
}

.seal-stage {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(96vw, 74rem);
  aspect-ratio: 1;
  transform: translate(calc(-50% + var(--mx) * -3px), calc(-49% + var(--my) * -2px));
}

.seal-layer,
.part-erase {
  position: absolute;
  display: block;
  pointer-events: none;
}

.seal-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.seal-base { z-index: 1; }

.part-erase {
  z-index: 2;
  background: #fff;
}

.kite-erase {
  top: 25.5%;
  left: 43.8%;
  width: 16%;
  height: 19%;
  clip-path: polygon(0 0, 76% 0, 100% 100%, 12% 100%);
}

.tails-erase {
  top: 51%;
  left: 2.8%;
  width: 18.8%;
  height: 18%;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.seal-fragment { z-index: 3; }

.kite-fragment {
  clip-path: polygon(43.5% 25%, 61% 25%, 61% 45%, 43.5% 45%);
  transform-origin: 48.5% 33.5%;
  animation: kite-breeze 4.8s ease-in-out infinite;
}

.tails-fragment {
  clip-path: polygon(2% 50%, 22% 50%, 22% 70%, 2% 70%);
  transform-origin: 18.5% 54%;
  animation: coat-breeze 3.4s ease-in-out infinite;
}

.hero-thesis {
  position: absolute;
  z-index: 9;
  left: var(--pad);
  bottom: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-thesis .rule {
  width: clamp(2.5rem, 6vw, 6rem);
  height: 1px;
  background: rgba(9, 9, 9, .45);
}

.hero-thesis p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.9rem, 1.15vw, 1.15rem);
  font-style: italic;
}

.scroll-cue {
  position: absolute;
  z-index: 9;
  right: var(--pad);
  bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.scroll-cue svg {
  width: .7rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  animation: arrow-bob 1.9s ease-in-out infinite;
}

.invention {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 9rem);
  min-height: 100svh;
  align-items: center;
  padding: clamp(8rem, 13vw, 12rem) var(--pad) clamp(7rem, 11vw, 10rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.invention::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-number {
  position: absolute;
  z-index: 1;
  top: 2rem;
  left: var(--pad);
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: .56rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.mark-story,
.work-thesis { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 clamp(2rem, 3vw, 3rem);
  font-size: clamp(.6rem, .7vw, .72rem);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .23em;
}

.mark-story h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6.6vw, 8rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.06em;
}

.mark-story h2 em { font-weight: 400; }

.mark-note {
  max-width: 28rem;
  margin: clamp(3rem, 5vw, 5rem) 0 0 auto;
  padding-left: 1.1rem;
  border-left: 1px solid rgba(9, 9, 9, .35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.98rem, 1.2vw, 1.2rem);
  line-height: 1.55;
}

.work-thesis {
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 6rem);
  border-left: 1px solid var(--line);
}

.big-thesis {
  margin: 0;
  font-size: clamp(3.1rem, 5.7vw, 7rem);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.big-thesis em {
  display: block;
  margin-top: .1em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.attitude {
  margin: clamp(3rem, 5vw, 5rem) 0 0;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .21em;
}

.prototype-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem 1.5rem;
  align-items: end;
  max-width: 34rem;
  margin-top: clamp(2.4rem, 4vw, 4rem);
  padding: 1.15rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: padding 180ms ease, background 180ms ease;
}

.prototype-cta span {
  grid-column: 1 / -1;
  color: var(--gray);
  font-family: "Courier New", monospace;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.prototype-cta strong {
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.prototype-cta i {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
  font-weight: 400;
}

.prototype-cta:hover,
.prototype-cta:focus-visible {
  padding-right: .75rem;
  padding-left: .75rem;
  background: rgba(9, 9, 9, .05);
}

footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 2.6rem var(--pad);
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: .56rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .14em;
}

footer p { margin: 0; color: var(--gray); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.footer-brand img {
  width: 2.9rem;
  height: 2.9rem;
  object-fit: cover;
  object-position: 12% 50%;
  mix-blend-mode: multiply;
}

.footer-signal { display: flex; align-items: center; gap: .6rem; color: var(--gray); }

.footer-signal i {
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--ink);
  animation: signal 2.4s ease-in-out infinite;
}

.copyright { text-align: right; }

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 800ms cubic-bezier(.2,.75,.25,1), transform 800ms cubic-bezier(.2,.75,.25,1);
}

.js .reveal.visible { opacity: 1; transform: none; }

@keyframes cloud-a {
  from { transform: translate3d(calc(var(--mx) * -8px - 2%), calc(var(--my) * -5px), 0) scale(1.03); }
  to { transform: translate3d(calc(var(--mx) * -8px + 3%), calc(var(--my) * -5px - 1%), 0) scale(1.055); }
}

@keyframes cloud-b {
  from { transform: scaleX(-1) translate3d(-3%, 0, 0) scale(1.08); }
  to { transform: scaleX(-1) translate3d(3%, 1%, 0) scale(1.12); }
}

@keyframes kite-breeze {
  0%, 100% { transform: translate3d(-1px, 1px, 0) rotate(-.45deg); }
  45% { transform: translate3d(2px, -3px, 0) rotate(.65deg); }
  72% { transform: translate3d(1px, -1px, 0) rotate(.2deg); }
}

@keyframes coat-breeze {
  0%, 100% { transform: rotate(-.15deg) translateY(0); }
  50% { transform: rotate(.5deg) translateY(-2px); }
}

@keyframes small-strike {
  0%, 57%, 58.5%, 100% { opacity: 0; }
  57.25% { opacity: .22; }
  57.45% { opacity: .04; }
  57.75% { opacity: .16; }
}

@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(.3rem); }
}

@keyframes signal {
  0%, 100% { opacity: .25; }
  50% { opacity: .85; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  .header-meta { display: none; }

  .seal-stage {
    width: min(116vw, 58rem);
    transform: translate(-52%, -50%);
  }

  .invention {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .work-thesis {
    padding: clamp(3rem, 8vw, 5rem) 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer { grid-template-columns: 1fr 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 620px) {
  .site-header { padding-top: 1.05rem; padding-bottom: 1.05rem; }
  .micro-mark span { font-size: 0; }
  .micro-mark span::after { content: "WPS"; font-size: .58rem; }
  .header-link span { margin-left: .3rem; }

  .hero { min-height: 88svh; }

  .seal-stage {
    top: 47%;
    width: 110vw;
    transform: translate(-50%, -50%);
  }

  .cloud { inset: -3% -30%; width: 160%; height: 106%; background-size: auto 100%; }

  .small-lightning { top: 23%; left: 77%; }

  .hero-thesis {
    left: var(--pad);
    right: var(--pad);
    bottom: 2.1rem;
  }

  .hero-thesis .rule { width: 2rem; }
  .hero-thesis p { font-size: .85rem; }

  .scroll-cue { display: none; }

  .invention {
    min-height: auto;
    gap: 4.5rem;
    padding-top: 7.5rem;
    padding-bottom: 6.5rem;
  }

  .mark-story h2 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .mark-note { margin-top: 2.7rem; }

  .big-thesis { font-size: clamp(3rem, 15vw, 4.7rem); }
  .attitude { margin-top: 2.5rem; }

  footer { grid-template-columns: 1fr; gap: 1.5rem; }
}

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