:root {
  --paper: #ffffff;
  --ink: #11100e;
  --blue: #1d3fff;
  --yellow: #f4ff46;
  --hot: #ff5d3a;
  --rule: rgba(17, 16, 14, 0.8);
  --display: "Fraunces", Georgia, serif;
  --body: "abril-titling", "Abril Titling", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 700ms var(--ease), color 400ms var(--ease);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

a:hover {
  background: var(--yellow);
  color: var(--ink);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 8px 10px;
  background: var(--paper);
  transform: translateY(-180%);
}

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

.opening {
  position: relative;
  min-height: min(920px, 100svh);
  padding: 20px 24px 32px;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}

.nav {
  position: absolute;
  top: 25px;
  right: 24px;
  z-index: 5;
  display: flex;
  gap: 18px;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: lowercase;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.wordmark {
  position: absolute;
  top: 13%;
  left: 17px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.2rem, 16.1vw, 18rem);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
  letter-spacing: -0.085em;
  line-height: 0.75;
  white-space: nowrap;
}

.wordmark span {
  display: inline-block;
  min-width: 0;
  transform-origin: 50% 60%;
  transition: transform 850ms var(--ease), color 220ms ease, font-variation-settings 700ms var(--ease);
}

.wordmark span:hover {
  color: var(--blue);
  transform: translateY(-0.05em) rotate(var(--letter-turn, -3deg));
  font-variation-settings: "SOFT" 0, "opsz" 144, "wght" 650;
}

.wordmark span:nth-child(3n) {
  --letter-turn: 4deg;
}

.wordmark span:nth-child(6) {
  animation: quiet-slip 17s var(--ease) infinite;
}

@keyframes quiet-slip {
  0%, 72%, 100% { transform: translate(0, 0) rotate(0); }
  78% { transform: translate(0.12em, -0.08em) rotate(4deg); }
  86% { transform: translate(-0.035em, 0.02em) rotate(-1deg); }
}

.introduction {
  position: absolute;
  left: clamp(24px, 8vw, 124px);
  bottom: 14%;
  z-index: 2;
  width: min(620px, calc(100% - 48px));
  margin: 0;
  font-size: clamp(1.35rem, 2.35vw, 2.55rem);
  line-height: 1.27;
  text-wrap: balance;
}

.sam {
  cursor: url("/scl.png") 16 20, auto;
}

.small-disturbance {
  position: absolute;
  top: 0;
  left: var(--hand-rig-left, 17px);
  z-index: 3;
  width: var(--hand-rig-width, clamp(320px, 62vw, 620px));
  height: var(--hand-rig-height, 120px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  pointer-events: none;
}

.held-hands,
.released-hands {
  position: absolute;
  inset: 0;
}

.hand-unit {
  position: absolute;
  top: -10px;
  width: clamp(24px, 4.5%, 36px);
  height: auto;
  overflow: visible;
  fill: currentColor;
  translate: -50% 0;
  transform-origin: 50% 20%;
  pointer-events: auto;
  cursor: pointer;
}

.held-hands {
  display: block;
}

.released-hands {
  display: none;
}

.hand-unit--left {
  left: 18%;
}

.hand-unit--right {
  left: 82%;
}

body.is-straining .held-hands .hand-unit--left {
  animation: left-load-strain 760ms steps(1, end);
}

body.is-straining .held-hands .hand-unit--right {
  animation: right-load-strain 760ms steps(1, end);
}

body.is-straining .wordmark {
  animation: wordmark-load-strain 760ms steps(1, end);
}

body.is-straining .wordmark span:nth-child(6) {
  animation: none;
}

@keyframes left-load-strain {
  0%, 12%, 100% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(-0.3px, 0.35px) rotate(-0.18deg); }
  27% { transform: translate(0.25px, -0.45px) rotate(0.16deg); }
  39% { transform: translate(-0.2px, 0.2px) rotate(-0.12deg); }
  52% { transform: translate(0.3px, -0.35px) rotate(0.14deg); }
  66% { transform: translate(-0.18px, 0.18px) rotate(-0.1deg); }
  82% { transform: translate(0.12px, -0.15px) rotate(0.06deg); }
}

@keyframes right-load-strain {
  0%, 12%, 100% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(0.28px, 0.35px) rotate(0.17deg); }
  27% { transform: translate(-0.24px, -0.45px) rotate(-0.15deg); }
  39% { transform: translate(0.2px, 0.2px) rotate(0.11deg); }
  52% { transform: translate(-0.28px, -0.35px) rotate(-0.13deg); }
  66% { transform: translate(0.17px, 0.18px) rotate(0.09deg); }
  82% { transform: translate(-0.12px, -0.15px) rotate(-0.06deg); }
}

@keyframes wordmark-load-strain {
  0%, 12%, 100% { transform: translate(0, 0); }
  18% { transform: translate(0, 0.22px); }
  27% { transform: translate(0, -0.32px); }
  39% { transform: translate(-0.12px, 0.14px); }
  52% { transform: translate(0.14px, -0.26px); }
  66% { transform: translate(-0.08px, 0.12px); }
  82% { transform: translate(0.05px, -0.09px); }
}

.small-disturbance:focus-visible {
  outline: 0;
  color: var(--blue);
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 24px;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(50px, 7vw, 110px);
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.5vw, 5.5rem);
  font-weight: 550;
  font-variation-settings: "SOFT" 60, "opsz" 100, "wght" 550;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.section-aside {
  font-family: var(--body);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0;
  text-align: left;
}

.askew {
  display: inline-block;
  transform: rotate(-7deg) translateY(0.05em);
}

.text-entry {
  position: relative;
  min-height: clamp(400px, 54vw, 760px);
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
  transition: background 600ms var(--ease), color 600ms var(--ease);
}

.text-entry::before,
.text-entry::after {
  position: absolute;
  z-index: 2;
  color: var(--hot);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.text-entry::before {
  content: "+";
  top: 12px;
  left: 12px;
}

.text-entry::after {
  content: "·";
  right: 22%;
  bottom: 18%;
}

.text-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: clamp(22px, 3vw, 48px);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
}

.text-kicker {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 38px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--ink);
  background: transparent;
}

.text-title {
  position: relative;
  z-index: 3;
  align-self: center;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 16rem);
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
  letter-spacing: -0.075em;
  line-height: 0.75;
  transform: translateX(-0.04em);
  transition: transform 900ms var(--ease), letter-spacing 900ms var(--ease);
}

.text-subtitle {
  position: relative;
  z-index: 4;
  grid-column: 1;
  font-size: clamp(1.05rem, 2vw, 1.8rem);
}

.text-image {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: clamp(72px, 8vw, 130px);
  width: clamp(240px, 31vw, 470px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background: var(--yellow);
  box-shadow: clamp(12px, 1.5vw, 22px) clamp(15px, 1.8vw, 28px) 0 var(--yellow);
  transform: rotate(1.25deg);
  transition: transform 900ms var(--ease), box-shadow 900ms var(--ease);
}

.text-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-arrow {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 3rem);
  transition: transform 700ms var(--ease);
}

.text-entry--ovo:hover {
  color: #17160f;
  background: #fff;
}

.text-entry--ovo:focus-within {
  color: #17160f;
  background: #fff;
}

.text-entry--ovo:hover .text-title {
  letter-spacing: -0.095em;
  transform: translateX(0.015em) skewX(-4deg);
}

.text-entry--ovo:focus-within .text-title {
  letter-spacing: -0.095em;
  transform: translateX(0.015em) skewX(-4deg);
}

.text-entry--ovo:hover .text-arrow {
  transform: translate(8px, -8px) rotate(13deg);
}

.text-entry--ovo:hover .text-image,
.text-entry--ovo:focus-within .text-image {
  box-shadow: 7px 13px 0 var(--yellow);
  transform: translate(8px, -7px) rotate(-1.6deg);
}


.text-entry--ovo:focus-within .text-arrow {
  transform: translate(8px, -8px) rotate(13deg);
}

.thoughts {
  max-width: 1500px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.25vw, 5.2rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 70, "opsz" 90, "wght" 500;
  letter-spacing: -0.036em;
  line-height: 1.08;
  text-wrap: pretty;
}

.thought {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 2px dotted currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: help;
  transition: color 120ms ease, background 120ms ease;
}

button.thought:hover,
button.thought[aria-expanded="true"] {
  color: var(--blue);
  background: var(--yellow);
}

.thought--plain {
  border-bottom: 0;
  cursor: default;
}

.thought[data-punct]::after {
  content: attr(data-punct);
  color: var(--ink);
  font-style: normal;
}

.thought-note {
  position: fixed;
  z-index: 1000;
  display: flex;
  align-items: baseline;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  margin: 0;
  padding: 8px 30px 9px 10px;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 4px 5px 0 var(--yellow);
  pointer-events: auto;
}

.thought-note[hidden],
.accent-detour[hidden] {
  display: none;
}

.thought-note__close,
.accent-detour__close {
  border: 0;
  background: transparent;
  color: inherit;
  font: 24px/1 var(--sans);
  cursor: pointer;
}

.thought-note__close {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 15px;
}

.accent-detour {
  width: min(840px, 100%);
  margin: 64px 0 0 auto;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: -14px 16px 0 var(--yellow);
}

.accent-detour__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}

.accent-detour__head p { margin: 0; }

.video-shell {
  aspect-ratio: 16 / 9;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
}

.contact-copy {
  width: min(980px, 100%);
  margin: auto 0 0 auto;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 5.6rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 60, "opsz" 90, "wght" 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.contact-copy p {
  margin: 0 0 0.65em;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 24px 32px;
  font-family: var(--sans);
  font-size: 11px;
}

.footer p { margin: 0; }

.mouse-remnant {
  position: fixed;
  z-index: 100;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hot);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
}

body.has-pointer .mouse-remnant {
  opacity: 0.8;
}

body.is-disordered .wordmark span {
  animation: none;
  transition-duration: 680ms;
  transition-delay: var(--release-delay, 0ms);
  transition-timing-function: cubic-bezier(0.18, 0.72, 0.24, 1);
  transform: translate(var(--release-x, 0), var(--release-y, 0.08em)) rotate(var(--release-turn, 0deg));
}

body.is-disordered .wordmark span:nth-child(1) { --release-x: -0.012em; --release-y: 0.07em; --release-turn: -2.8deg; --release-delay: 0ms; }
body.is-disordered .wordmark span:nth-child(2) { --release-x: 0.006em; --release-y: 0.11em; --release-turn: 4.5deg; --release-delay: 24ms; }
body.is-disordered .wordmark span:nth-child(3) { --release-x: -0.008em; --release-y: 0.08em; --release-turn: -1.4deg; --release-delay: 10ms; }
body.is-disordered .wordmark span:nth-child(4) { --release-x: 0.012em; --release-y: 0.13em; --release-turn: 2.2deg; --release-delay: 38ms; }
body.is-disordered .wordmark span:nth-child(5) { --release-x: -0.004em; --release-y: 0.09em; --release-turn: -3.6deg; --release-delay: 16ms; }
body.is-disordered .wordmark span:nth-child(6) { --release-x: 0.006em; --release-y: 0.12em; --release-turn: 1.8deg; --release-delay: 46ms; }
body.is-disordered .wordmark span:nth-child(7) { --release-x: -0.006em; --release-y: 0.075em; --release-turn: -2.3deg; --release-delay: 8ms; }
body.is-disordered .wordmark span:nth-child(8) { --release-x: 0.012em; --release-y: 0.105em; --release-turn: 3.1deg; --release-delay: 30ms; }
body.is-disordered .wordmark span:nth-child(9) { --release-x: -0.005em; --release-y: 0.085em; --release-turn: -1.7deg; --release-delay: 18ms; }
body.is-disordered .wordmark span:nth-child(10) { --release-x: 0.008em; --release-y: 0.12em; --release-turn: 2.6deg; --release-delay: 42ms; }

body.is-disordered .held-hands {
  display: none;
}

body.is-disordered .released-hands {
  display: block;
}

body.is-disordered .hand-unit {
  animation: none;
}

body[data-effect="online"] .wordmark span:nth-child(odd) { color: var(--blue); }
body[data-effect="offline"] .nav { transform: rotate(2deg) translate(-8px, 8px); }
body[data-effect="markets"] .text-entry { box-shadow: inset 0 0 0 8px var(--yellow); }
body[data-effect="commerce"] .text-title { transform: scaleX(1.08) translateX(0.02em); }
body[data-effect="ai"] .wordmark span:nth-child(5) { transform: rotate(180deg); }
body[data-effect="infrastructure"] .footer { box-shadow: inset 0 -7px 0 var(--ink); }
body[data-effect="urbanism"] .contact-copy { transform: translateX(-2vw); }
body[data-effect="dogs"] .sam { background: var(--yellow); }

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .opening {
    min-height: 780px;
    padding: 18px 18px 26px;
  }

  .nav {
    top: 18px;
    right: 18px;
    left: 18px;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
  }

  .wordmark {
    top: 18%;
    left: 14px;
    font-size: clamp(4.6rem, 22.2vw, 7.2rem);
  }

  .introduction {
    left: 18px;
    bottom: 19%;
    width: calc(100% - 36px);
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .section {
    padding: 66px 18px;
  }

  .section-head {
    margin-bottom: 52px;
  }

  .section-aside {
    text-align: left;
  }

  .text-entry {
    min-height: 540px;
  }

  .text-link {
    padding: 18px;
  }

  .text-title {
    align-self: center;
    font-size: clamp(5rem, 28vw, 8rem);
    line-height: 0.8;
  }

  .text-image {
    top: 76px;
    right: 20px;
    width: min(72vw, 310px);
    box-shadow: 12px 15px 0 var(--yellow);
  }

  .thoughts {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
    line-height: 1.09;
  }

  .thought-note {
    max-width: calc(100vw - 24px);
  }

  .accent-detour {
    margin-top: 46px;
    box-shadow: -7px 9px 0 var(--yellow);
  }

  .contact {
    min-height: 660px;
  }

  .contact-copy {
    margin-left: 0;
    font-size: clamp(2.2rem, 10.4vw, 3.5rem);
  }

  .footer {
    flex-wrap: wrap;
    padding: 15px 18px 24px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .thought-note {
    pointer-events: none;
  }

  .thought-note__close {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  body.is-straining .held-hands .hand-unit,
  body.is-straining .wordmark {
    animation: none !important;
  }
  .mouse-remnant { display: none; }
}
