@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #fbfbf8;
  --ink: #18191d;
  --muted: #64666d;
  --line: #dedfdc;
  --blue: #4f7fd4;
  --blue-deep: #315fae;
  --blue-soft: #e0e9f7;
  --violet: #9276ba;
  --violet-deep: #705499;
  --violet-soft: #e9e1f1;
  --coral: #d9828d;
  --coral-deep: #b95d6a;
  --coral-soft: #f4dfe2;
  --green: #78a98a;
  --green-deep: #4f8062;
  --green-soft: #e0ede3;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 3vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sora", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
a,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  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;
  inset: 1rem auto auto 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

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

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) auto;
  background: var(--paper);
  overflow: clip;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 max(var(--gutter), 5.5rem) 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: clamp(.65rem, 1.5vw, 1.5rem);
  font-size: clamp(.75rem, 1.25vw, 1rem);
  font-weight: 650;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand-slash {
  font-weight: 350;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3.3vw, 3.25rem);
}

.site-nav a {
  position: relative;
  padding: 1rem 0;
  font-size: .78rem;
  font-weight: 570;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .55rem;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="location"] {
  color: var(--blue-deep);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform .3s var(--ease);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr);
  gap: clamp(1.5rem, 2.8vw, 3.25rem);
  align-items: center;
  padding: clamp(2rem, 4.5vh, 4.5rem) var(--gutter) clamp(2.2rem, 5vh, 4.75rem);
}

.hero-title {
  align-self: center;
  margin: 0;
  font-size: clamp(4.3rem, 8.2vw, 8.75rem);
  font-weight: 430;
  line-height: .93;
  letter-spacing: -.064em;
}

.hero-title span {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-blue {
  color: var(--blue);
}

.project-index {
  position: relative;
  align-self: center;
  min-width: 0;
}

/* The companion is a small returning character, not a content control. */
#companion {
  position: fixed;
  top: 0;
  left: clamp(2px, .7vw, 10px);
  z-index: 8;
  width: 52px;
  height: 54px;
  pointer-events: none;
  will-change: transform;
}

.companion-scale {
  width: 72px;
  height: 74px;
  transform: scale(.68);
  transform-origin: top left;
}

#companion .sprite {
  width: 72px;
  height: 74px;
  background-repeat: no-repeat;
}

#companion .idle {
  background-image: url("assets/sprite-idle.png");
  background-size: 504px 74px;
  animation: companion-play-7 1.4s steps(7) infinite;
}

#companion .run-left {
  background-image: url("assets/sprite-run-left.png");
  background-size: 576px 74px;
  animation: companion-play-8 .55s steps(8) infinite;
}

#companion .run-right {
  background-image: url("assets/sprite-run-right.png");
  background-size: 576px 74px;
  animation: companion-play-8 .55s steps(8) infinite;
}

@keyframes companion-play-7 {
  to { background-position-x: -504px; }
}

@keyframes companion-play-8 {
  to { background-position-x: -576px; }
}

/* Peel.js supplies the curl geometry; these layers supply this site's paper and OS surfaces. */
#os-curl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 12;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 1;
  cursor: pointer;
  transition: opacity .3s ease;
}

#os-curl .curl-under {
  background: #202534 url("assets/corner-preview.webp") center / cover;
  will-change: clip-path;
}

#os-curl .curl-under::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(10, 11, 16, .28), rgba(10, 11, 16, .06) 46%, transparent 72%);
}

#os-curl .curl-page {
  background: transparent;
}

#os-curl .curl-page-back {
  background:
    linear-gradient(315deg, rgba(79, 127, 212, .3), transparent 42%),
    linear-gradient(135deg, #f8f8f4 0, #e8eae5 58%, #cbd3dd 100%);
}

#os-curl.peel-fallback .curl-page {
  clip-path: polygon(36% 0, 100% 0, 100% 64%);
  filter: drop-shadow(-8px 8px 14px rgb(24 25 29 / .16));
}

#os-curl .curl-hint {
  position: absolute;
  top: calc(100% + 7px);
  right: 10px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  color: var(--muted);
  font-size: .58rem;
  font-weight: 590;
  letter-spacing: .045em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .3s ease, transform .4s var(--ease);
}

#os-curl:hover .curl-hint,
#os-curl:focus-visible .curl-hint {
  opacity: 1;
  transform: none;
}

#os-curl .curl-hint em {
  color: var(--blue-deep);
  font-style: normal;
  font-weight: 660;
}

#os-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  background: var(--ink);
  clip-path: circle(0% at calc(100% - 28px) 28px);
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}

#os-overlay.open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 28px) 28px);
  transition: clip-path .7s var(--ease);
}

#os-frame {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
  background: #18191d;
  overscroll-behavior: contain;
}

#os-back {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  padding: 8px 14px;
  border: 1px solid rgba(251,251,248,.32);
  border-radius: 999px;
  background: rgba(24,25,29,.64);
  color: #f4f4f0;
  font-size: .66rem;
  font-weight: 620;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .35s ease .3s, transform .3s var(--ease);
}

#os-overlay.open #os-back {
  opacity: 1;
}

#os-back:hover {
  transform: translateX(-3px);
}

.attention-visual {
  margin: 0;
}

.attention-image {
  position: relative;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: var(--paper);
}

.attention-webgl {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.attention-webgl canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.attention-webgl-fallback {
  position: absolute;
  inset: 12% 8%;
  background:
    linear-gradient(170deg, transparent 0 11%, color-mix(in srgb, var(--violet) 36%, transparent) 11% 39%, transparent 39%),
    linear-gradient(350deg, transparent 0 56%, color-mix(in srgb, var(--green) 34%, transparent) 56% 78%, transparent 78%),
    linear-gradient(176deg, transparent 0 23%, var(--paper) 23% 76%, transparent 76%);
  filter: drop-shadow(0 18px 20px rgb(34 37 45 / .08));
  transform: rotate(-3deg) scale(.88);
  transition: opacity .35s ease;
}

.attention-webgl.is-ready .attention-webgl-fallback {
  opacity: 0;
}

.project-composition {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-rows: 126px 96px 76px;
  gap: 8px;
}

.project-scene {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.scene-drift { grid-column: 1 / -1; background: #1c2029; color: #fff; }
.scene-atlas { grid-row: 2 / 4; background: var(--green-soft); }
.scene-lexora { background: var(--violet); color: #fff; }
.scene-experiments { background: var(--coral-soft); }

.scene-heading {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  pointer-events: none;
}

.scene-heading h2 {
  margin: 0;
  font-size: .69rem;
  font-weight: 660;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.scene-heading span {
  font-size: .51rem;
  letter-spacing: .035em;
  opacity: .7;
  white-space: nowrap;
}

.scene-lexora .scene-heading span,
.scene-experiments .scene-heading span {
  display: none;
}

.project-scene .mini-demo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border: 0;
}

.scene-drift .demo-drift { top: 30px; }
.scene-atlas .demo-atlas { top: 32px; }
.scene-lexora .demo-lexora { top: 25px; }
.scene-experiments .demo-experiments { top: 22px; }

.scene-drift .drift-line {
  width: 76%;
}

.scene-drift .drift-light {
  animation-name: scene-trace-light;
}

@keyframes scene-trace-light {
  0%, 12% { left: 8%; opacity: .3; }
  58%, 82% { left: 82%; opacity: 1; }
  100% { left: 18%; opacity: .2; }
}

.mini-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 2.7 / 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--loop-color) 36%, var(--line));
  background: #fff;
}

.demo-drift {
  background-color: #1c2029;
  background-image:
    radial-gradient(circle at 12% 24%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 39% 68%, #b8cbee 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 32%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 76%, #8faee3 0 1px, transparent 1.5px);
  background-size: 31px 27px, 43px 36px, 37px 41px, 29px 33px;
  animation: drift-field 10s ease-in-out infinite alternate;
}

.drift-line {
  position: absolute;
  top: 58%;
  left: 8%;
  width: 66%;
  height: 1px;
  background: #adc4eb;
  transform-origin: left;
  animation: trace-grow 7s var(--ease) infinite;
}

.drift-light {
  position: absolute;
  top: calc(58% - 3px);
  left: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7f7f4;
  animation: trace-light 7s var(--ease) infinite;
}

@keyframes drift-field {
  to { background-position: 9px -5px, -8px 7px, 4px 10px, -5px -8px; }
}

@keyframes trace-grow {
  0%, 12% { transform: scaleX(.05); opacity: .2; }
  58%, 82% { transform: scaleX(1); opacity: .9; }
  100% { transform: scaleX(.15); opacity: .15; }
}

@keyframes trace-light {
  0%, 12% { left: 8%; opacity: .3; }
  58%, 82% { left: 73%; opacity: 1; }
  100% { left: 18%; opacity: .2; }
}

.demo-atlas {
  background: #f7fbf7;
}

.demo-atlas span {
  position: absolute;
  left: -10%;
  width: 115%;
  height: 26px;
  border-top: 1px solid #8fbea0;
  border-radius: 50%;
  animation: atlas-wave 8.6s ease-in-out infinite alternate;
}

.demo-atlas span:nth-child(1) { top: 22%; transform: rotate(5deg); }
.demo-atlas span:nth-child(2) { top: 48%; transform: rotate(-4deg); animation-delay: -2s; }
.demo-atlas span:nth-child(3) { top: 76%; transform: rotate(3deg); animation-delay: -4s; }

.demo-atlas b {
  position: absolute;
  left: 54%;
  top: 44%;
  width: 10px;
  height: 10px;
  background: var(--green);
  animation: atlas-point 8.6s var(--ease) infinite;
}

@keyframes atlas-wave {
  to { transform: translateX(12%) rotate(-3deg); }
}

@keyframes atlas-point {
  0%, 20% { transform: scale(.5); opacity: .4; }
  52%, 78% { transform: scale(1); opacity: 1; }
  100% { transform: translateX(26px) scale(.5); opacity: .4; }
}

.demo-lexora {
  background: var(--violet);
  color: #fff;
}

.lexora-word {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: word-cycle 6.8s ease-in-out infinite;
}

.lexora-line {
  position: absolute;
  left: 12px;
  height: 1px;
  background: rgba(255,255,255,.78);
  transform-origin: left;
  animation: lexora-type 6.8s var(--ease) infinite;
}

.lexora-line.one { top: 34px; width: 58%; }
.lexora-line.two { top: 44px; width: 34%; animation-delay: .28s; }

.lexora-cursor {
  position: absolute;
  right: 14%;
  bottom: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: cursor-breathe 1.7s ease-in-out infinite;
}

@keyframes word-cycle {
  0%, 10%, 100% { opacity: 0; transform: translateY(4px); }
  25%, 76% { opacity: 1; transform: none; }
}

@keyframes lexora-type {
  0%, 18%, 100% { transform: scaleX(0); }
  45%, 82% { transform: scaleX(1); }
}

@keyframes cursor-breathe {
  50% { opacity: .35; transform: scale(.7); }
}

.demo-experiments {
  background: #fff7f7;
}

.experiment-dark,
.experiment-color,
.experiment-trace {
  position: absolute;
}

.experiment-dark {
  top: 50%;
  left: 9%;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: translateY(-50%);
  animation: experiment-dark 9.2s var(--ease) infinite;
}

.experiment-color {
  top: 50%;
  left: 25%;
  width: 26%;
  height: 10px;
  background: var(--coral);
  transform: translateY(-50%);
  animation: experiment-color 9.2s var(--ease) infinite;
}

.experiment-trace {
  right: 8%;
  top: 50%;
  width: 34%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--coral-deep) 0 2px, transparent 2px 8px);
  animation: experiment-trace 9.2s ease-in-out infinite;
}

@keyframes experiment-dark {
  40%, 62% { transform: translate(24px, -50%) rotate(90deg); }
}

@keyframes experiment-color {
  0%, 100% { width: 26%; }
  48%, 68% { width: 12%; transform: translate(34px, -50%); }
}

@keyframes experiment-trace {
  50% { transform: translateX(-15px); opacity: .45; }
}

.section-portals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(92px, 11vh, 118px);
  padding: 1.25rem clamp(1.25rem, 3vw, 3.4rem);
  font-size: clamp(.82rem, 1.15vw, 1rem);
  font-weight: 580;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: filter .35s var(--ease);
}

.portal span:last-child {
  font-size: 1.5rem;
  font-weight: 350;
  transition: transform .35s var(--ease);
}

.portal:hover {
  filter: saturate(1.08) brightness(.98);
}

.portal:hover span:last-child {
  transform: translateX(7px);
}

.portal-blue { background: #79a4df; color: #13243e; }
.portal-violet { background: #a58bc6; color: #251b31; }
.portal-coral { background: #df929b; color: #341c21; }
.portal-green { background: #83b394; color: #173123; }

.content-section {
  padding: clamp(5.5rem, 10vw, 10rem) var(--gutter);
}

.section-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.section-heading h2,
.contact-intro h2 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 430;
  line-height: .9;
  letter-spacing: -.06em;
}

.section-heading p {
  max-width: 24rem;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.now-section {
  background: var(--blue-soft);
}

.now-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.now-layout .section-heading {
  display: block;
  margin: 0;
}

.now-layout .section-heading p {
  margin-top: 1.5rem;
}

.now-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: now;
}

.now-list li {
  position: relative;
  padding: 0 0 2.5rem 3.8rem;
  font-size: clamp(1.25rem, 2.15vw, 2rem);
  line-height: 1.3;
  counter-increment: now;
}

.now-list li + li {
  padding-top: 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--blue-deep) 22%, transparent);
}

.now-list li::before {
  content: "0" counter(now);
  position: absolute;
  left: 0;
  top: .15rem;
  color: var(--blue-deep);
  font-size: .85rem;
  letter-spacing: .08em;
}

.now-list li + li::before {
  top: 2.65rem;
}

.work-section {
  background: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-auto-flow: dense;
  gap: 1rem;
}

.work-item {
  --item-color: var(--blue-soft);
  position: relative;
  display: flex;
  min-height: 260px;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border: 0;
  border-radius: 0;
  background: var(--item-color);
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .4s var(--ease), filter .4s var(--ease);
}

.work-item:nth-child(4n + 2) { --item-color: var(--violet-soft); }
.work-item:nth-child(4n + 3) { --item-color: var(--coral-soft); }
.work-item:nth-child(4n + 4) { --item-color: var(--green-soft); }
.work-item:first-child { min-height: 300px; }
.work-item:last-child { grid-column: 1 / -1; min-height: 280px; }

.work-item:hover {
  transform: translateY(-5px);
  filter: saturate(1.08);
}

.work-item::after {
  content: "↗";
  position: absolute;
  right: 1.7rem;
  bottom: 1.45rem;
  font-size: 1.35rem;
  transition: transform .35s var(--ease);
}

.work-item:hover::after {
  transform: translate(5px, -5px);
}

.work-item-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.work-title {
  max-width: 16ch;
  margin: 0 0 1.2rem;
  font-size: clamp(1.45rem, 2.7vw, 2.75rem);
  font-weight: 460;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.work-desc {
  max-width: 42ch;
  margin: 0 2.5rem 0 0;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: .88rem;
}

.work-cta {
  width: fit-content;
  margin-top: 1.5rem;
  padding-bottom: .18rem;
  border-bottom: 1px solid currentColor;
  font-size: .76rem;
  font-weight: 620;
}

.thinking-section {
  background: var(--violet-soft);
}

.thinking-list {
  border-top: 1px solid color-mix(in srgb, var(--violet-deep) 28%, transparent);
}

.thinking-entry {
  border-bottom: 1px solid color-mix(in srgb, var(--violet-deep) 28%, transparent);
}

.thinking-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12rem, 1.3fr) minmax(14rem, .7fr) auto;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border: 0;
  padding-right: 3rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: padding .35s var(--ease), color .35s var(--ease);
}

.thinking-item:hover {
  padding-left: 1.25rem;
  color: var(--violet-deep);
}

.thinking-item[aria-expanded="true"] {
  padding-left: 1.25rem;
  color: var(--violet-deep);
}

.thinking-title {
  font-size: clamp(1.25rem, 2.25vw, 2.2rem);
  font-weight: 480;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.thinking-excerpt {
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  font-size: .88rem;
}

.thinking-year {
  font-size: .72rem;
  font-weight: 620;
}

.thinking-marker {
  position: absolute;
  top: 50%;
  right: .25rem;
  font-size: 1.45rem;
  font-weight: 360;
  transform: translateY(-50%);
  transition: transform .3s var(--ease);
}

.thinking-item[aria-expanded="true"] .thinking-marker {
  transform: translateY(-50%) rotate(45deg);
}

.thinking-detail {
  max-width: 56rem;
  padding: 0 3rem 3rem 1.25rem;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  line-height: 1.85;
}

.thinking-detail p {
  margin: 0;
}

.thinking-detail p + p {
  margin-top: 1rem;
}

.notes-section {
  background: var(--coral-soft);
}

.notes-layout {
  display: grid;
  grid-template-columns: .72fr 1.1fr .78fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.notes-layout .section-heading {
  display: block;
  margin: 0;
}

.notes-layout .section-heading p {
  margin-top: 1.5rem;
}

.note-space,
.type-space {
  min-width: 0;
}

.note-copy {
  min-height: 180px;
  padding-top: 1.4rem;
  border-top: 2px solid var(--coral-deep);
}

.note-copy p:first-child {
  margin: 0 0 1.2rem;
  max-width: 29ch;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 420;
  line-height: 1.34;
  letter-spacing: -.025em;
}

.note-copy p:last-child {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.text-button {
  margin-top: 2rem;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.type-space label {
  display: block;
  margin-bottom: .85rem;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.type-space textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 1rem 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.8;
}

.type-space textarea:focus {
  outline: 0;
  border-top-color: var(--coral-deep);
}

.type-space p {
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font-size: .76rem;
}

.contact-section {
  padding-bottom: 0;
  background: var(--green-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.contact-intro p {
  max-width: 26rem;
  margin: 1.6rem 0 0;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: clamp(.92rem, 1.15vw, 1.02rem);
  line-height: 1.7;
}

.contact-list {
  border-top: 1px solid color-mix(in srgb, var(--green-deep) 36%, transparent);
}

.contact-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--green-deep) 36%, transparent);
  background: transparent;
  text-align: left;
}

a.contact-row,
button.contact-row {
  cursor: pointer;
}

.contact-row:hover .contact-action {
  transform: translateX(5px);
}

.contact-label {
  font-size: .72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-value {
  overflow-wrap: anywhere;
}

.contact-action {
  color: var(--green-deep);
  transition: transform .35s var(--ease);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(7rem, 12vw, 12rem);
  padding: 2rem var(--gutter);
  border-top: 1px solid color-mix(in srgb, var(--green-deep) 35%, transparent);
  font-size: .76rem;
  font-weight: 580;
  letter-spacing: .04em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-body {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 4rem;
  }

  .hero-title {
    font-size: clamp(4rem, 11vw, 7rem);
  }

  .project-index {
    width: min(600px, 100%);
    margin-left: auto;
  }

  .now-layout,
  .notes-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .now-layout .section-heading,
  .notes-layout .section-heading {
    margin-bottom: 3rem;
  }

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

  .work-item:first-child {
    grid-row: auto;
  }

  .thinking-item {
    grid-template-columns: 1fr auto;
  }

  .thinking-excerpt {
    grid-column: 1 / -1;
    max-width: 48rem;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-rows: 68px auto auto;
  }

  .site-header {
    position: relative;
    padding-right: var(--gutter);
  }

  .brand {
    font-size: .7rem;
    gap: .65rem;
  }

  .menu-toggle {
    display: block;
    margin-right: 3rem;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    z-index: 10;
    top: 58px;
    right: var(--gutter);
    left: var(--gutter);
    display: grid;
    gap: 0;
    padding: .5rem 1.25rem;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero-body {
    gap: 4.5rem;
    padding: 3.25rem var(--gutter) 3rem;
  }

  .hero-title {
    font-size: clamp(3.1rem, 15vw, 5.1rem);
    line-height: .96;
  }

  .project-index {
    width: 100%;
  }

  #companion {
    right: 2px;
    left: auto;
  }

  .companion-scale {
    margin-left: -20px;
    transform: scale(.56);
    transform-origin: top right;
  }

  #os-curl {
    top: 0;
    right: 0;
    width: 78px;
    height: 78px;
  }

  #os-curl .curl-hint {
    display: none;
  }

  .attention-image {
    aspect-ratio: 1.4 / 1;
  }

  .section-portals {
    grid-template-columns: 1fr 1fr;
  }

  .portal {
    min-height: 86px;
    padding: 1.1rem var(--gutter);
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 1.5rem;
  }

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

  .work-item,
  .work-item:first-child,
  .work-item:last-child {
    grid-column: auto;
    min-height: 260px;
  }

  .thinking-item {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .thinking-excerpt {
    grid-column: auto;
  }

  .contact-row {
    grid-template-columns: 5.5rem 1fr;
  }

  .contact-action {
    grid-column: 2;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand span:nth-child(2),
  .brand span:nth-child(3) {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.75rem, 14vw, 3.7rem);
  }

  .section-portals {
    grid-template-columns: 1fr;
  }
}

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

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

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

  #companion .idle,
  #companion .run-left,
  #companion .run-right {
    animation: none;
  }

  #os-overlay,
  #os-overlay.open,
  #os-curl,
  #os-curl .peel-layer {
    transition: none;
  }
}
