:root {
  --bg: #fff;
  --text: #050505;
  --muted: #3f3f3f;
  --soft: #f7f7f7;
  --line: #cfcfcf;
  --line-dark: #101010;
  --accent: #0047ff;
  --accent-dark: #0034bd;
  --field: #fbfbfb;
  --display: "Bodoni Moda", Georgia, serif;
  --ui: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1560px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  line-height: 1.25;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.024) 1px, transparent 1px) 0 0 / 25vw 100%,
    #fff;
  opacity: 0.34;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

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

h1,
h2,
h3,
.brand,
.desktop-nav,
.mobile-nav,
.button,
.summary-action,
.contact-mail,
.mail-line {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header,
.mobile-nav,
main,
.site-footer {
  width: min(var(--max), calc(100vw - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #fff 91%, transparent);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand::after {
  content: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark span {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: clamp(34px, 4vw, 68px);
  margin-right: clamp(28px, 4vw, 64px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.desktop-nav a,
.header-link,
.mobile-nav a,
.site-footer a,
.mail-line,
.project-list h3 a {
  position: relative;
  transition: color 180ms var(--ease);
}

.desktop-nav a::after,
.header-link::after,
.site-footer a::after,
.project-list h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}

.desktop-nav a:hover,
.header-link:hover,
.mobile-nav a:hover,
.site-footer a:hover,
.mail-line:hover,
.project-list h3 a:hover {
  color: var(--accent);
}

.desktop-nav a:hover::after,
.header-link:hover::after,
.site-footer a:hover::after,
.project-list h3 a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
  place-items: center;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--text);
}

.menu-toggle span + span {
  margin-top: 6px;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px);
  gap: clamp(46px, 6vw, 108px);
  align-items: center;
  padding: clamp(52px, 6vw, 84px) 0;
  border-bottom: 1px solid var(--line);
}

.hero > *:not(.ambient),
.minimal-section > *:not(.ambient),
.contact-strip > *:not(.ambient) {
  position: relative;
  z-index: 1;
}

.hero-statement {
  max-width: 980px;
}

.studio-line {
  width: fit-content;
  margin: 0 0 clamp(26px, 3vw, 44px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.word-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 2vw, 34px);
  max-width: 10.8ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(62px, 7.6vw, 124px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: 0;
}

.word-title span {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  opacity: 0;
  animation: wordIn 980ms var(--ease) forwards;
  animation-delay: calc(120ms + var(--i) * 95ms);
  will-change: transform, opacity;
}

.blue-dot {
  color: var(--accent);
}

.hero p:not(.studio-line) {
  max-width: 560px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.38;
  font-weight: 500;
}

.mail-line {
  display: inline-block;
  margin-top: clamp(50px, 6vw, 82px);
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 68px);
  font-weight: 600;
  line-height: 1;
  overflow-wrap: normal;
}

.mail-line::before {
  content: "";
  display: block;
  width: min(180px, 36vw);
  height: 1px;
  margin-bottom: 22px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 980ms var(--ease) 820ms forwards;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

.social-row a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.social-row a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 420ms var(--ease);
}

.social-row a:hover {
  color: var(--accent);
  border-color: transparent;
}

.social-row a:hover::after {
  width: 100%;
}

.social-row span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.project-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 15px;
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(32px, 4vw, 64px);
  background: color-mix(in srgb, #fff 88%, transparent);
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.project-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 56px);
  font-weight: 600;
  line-height: 1;
}

.form-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #242424;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  padding: 15px 0;
  outline: none;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.4;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

::placeholder {
  color: #9a9a9a;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 0 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    transform 280ms var(--ease),
    background 280ms var(--ease),
    color 280ms var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
}

.minimal-section {
  position: relative;
  overflow: clip;
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.section-disclosure {
  scroll-margin-top: 92px;
}

.section-disclosure summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  min-height: clamp(112px, 12vw, 164px);
  padding: clamp(24px, 4vw, 46px) 0;
  border-top: 1px solid transparent;
  cursor: pointer;
  list-style: none;
  transition:
    border-color 220ms var(--ease),
    color 220ms var(--ease);
}

.section-disclosure summary::marker {
  content: "";
}

.section-disclosure summary::-webkit-details-marker {
  display: none;
}

.section-disclosure summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff);
  outline-offset: -3px;
}

.section-disclosure summary:hover {
  color: var(--accent);
}

.section-disclosure[open] summary {
  border-color: var(--line-dark);
}

.section-copy {
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
  min-width: 0;
}

.section-note {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  font-weight: 500;
}

.summary-action {
  justify-self: end;
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-action::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent);
  font-size: 20px;
  line-height: 1;
}

.section-disclosure[open] .summary-action::after {
  content: "-";
}

.section-disclosure[open] .summary-action {
  color: var(--text);
}

.section-panel {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-bottom: clamp(58px, 7vw, 104px);
}

.ambient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: #dedede;
  mix-blend-mode: multiply;
}

.ambient-hero {
  right: clamp(18px, 5vw, 80px);
  bottom: clamp(22px, 6vw, 90px);
  width: min(46vw, 620px);
  height: 42%;
  opacity: 0.34;
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(13px, 1.4vw, 24px);
}

.ambient-hero span {
  position: absolute;
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  animation: ambientFloat 9s var(--ease) infinite alternate;
}

.ambient-hero span:nth-child(1) {
  left: 8%;
  top: 15%;
}

.ambient-hero span:nth-child(2) {
  right: 4%;
  top: 32%;
  animation-delay: -1.7s;
}

.ambient-hero span:nth-child(3) {
  left: 34%;
  bottom: 12%;
  animation-delay: -3.1s;
}

.ambient-hero span:nth-child(4) {
  right: 18%;
  bottom: 38%;
  animation-delay: -4.6s;
}

.ambient-code-bg {
  right: clamp(16px, 4vw, 80px);
  top: clamp(34px, 8vw, 110px);
  display: grid;
  gap: 12px;
  width: min(44vw, 620px);
  color: #d9d9d9;
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(17px, 2vw, 34px);
  line-height: 1.1;
  opacity: 0.26;
  transform: rotate(-2deg);
}

.ambient-code-bg span {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  animation: ambientCodeSlide 7s var(--ease) infinite alternate;
}

.ambient-code-bg span:nth-child(2) {
  margin-left: 8%;
  animation-delay: -1.2s;
}

.ambient-code-bg span:nth-child(3) {
  margin-left: 17%;
  animation-delay: -2.6s;
}

.ambient-code-bg span:nth-child(4) {
  animation-delay: -3.4s;
}

.ambient-project-bg {
  right: clamp(14px, 7vw, 120px);
  top: 18%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  opacity: 0.3;
}

.orbit {
  position: absolute;
  inset: 15%;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(12deg);
  animation: orbitSpin 18s linear infinite;
}

.orbit-b {
  inset: 28%;
  border-color: #e0e0e0;
  animation-duration: 11s;
  animation-direction: reverse;
}

.cube-mark {
  position: absolute;
  left: 42%;
  top: 42%;
  width: 62px;
  height: 62px;
  border: 1px solid #cfcfcf;
  transform: rotate(45deg);
  animation: cubePulse 4.5s var(--ease) infinite alternate;
}

.cube-mark::before,
.cube-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #dedede;
}

.cube-mark::after {
  inset: 26px;
}

.project-axis {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: #d8d8d8;
  transform: rotate(-18deg);
  animation: axisScan 6s var(--ease) infinite alternate;
}

.ambient-results-bg {
  inset: auto 0 -20px 0;
  display: flex;
  gap: clamp(42px, 7vw, 120px);
  width: max-content;
  color: #d8d8d8;
  font-family: var(--display);
  font-size: clamp(62px, 9vw, 160px);
  font-weight: 600;
  line-height: 0.8;
  opacity: 0.12;
  white-space: nowrap;
  animation: resultTicker 26s linear infinite;
}

.ambient-profile-bg {
  right: clamp(16px, 8vw, 130px);
  top: 18%;
  display: grid;
  gap: 18px;
  color: #d5d5d5;
  font-size: clamp(42px, 7vw, 112px);
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.85;
  opacity: 0.14;
}

.ambient-profile-bg span {
  animation: profileDrift 8s var(--ease) infinite alternate;
}

.ambient-profile-bg span:nth-child(2) {
  animation-delay: -1.4s;
}

.ambient-profile-bg span:nth-child(3) {
  animation-delay: -2.8s;
}

.ambient-profile-bg span:nth-child(4) {
  animation-delay: -4.2s;
}

.section-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.minimal-section h2,
.contact-strip h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 3.7vw, 72px);
  font-weight: 600;
  line-height: 0.92;
  overflow-wrap: normal;
  word-break: normal;
}

.minimal-section h2::after,
.contact-strip h2::after,
.skill-list h3::after,
.project-list h3::after,
.result-list h3::after {
  content: ".";
  color: var(--accent);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  border-top: 1px solid var(--line-dark);
}

.skill-list article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 34px;
  padding: 34px clamp(28px, 3vw, 46px) 34px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    color 280ms var(--ease),
    transform 280ms var(--ease);
}

.skill-list article::before,
.project-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 520ms var(--ease);
}

.skill-list article::after {
  content: none;
}

.skill-list article > * {
  position: relative;
  z-index: 1;
}

.skill-video::after {
  font-family: var(--display);
}

.skill-video {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, 0.055) 18px 19px, transparent 19px 32px),
    linear-gradient(180deg, transparent 0 68%, rgba(0, 0, 0, 0.035) 68% 69%, transparent 69%);
  background-position: 0 100%, 0 0;
  background-size: 100% 62px, 100% 100%;
  animation: videoTrack 9s linear infinite;
}

.skill-admin {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 38px, 76px 100%;
  animation: ledgerScan 8s var(--ease) infinite alternate;
}

.skill-list article:hover,
.project-list article:hover {
  color: var(--accent);
}

.skill-list article:hover::before,
.project-list article:hover::before {
  width: 100%;
}

.skill-list article + article {
  padding-left: clamp(28px, 3vw, 46px);
}

.skill-list article:nth-child(even),
.skill-list article:last-child {
  border-right: 0;
}

.skill-list article:nth-child(3),
.skill-list article:nth-child(4) {
  border-bottom: 0;
}

.skill-list h3,
.project-list h3,
.result-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 2.7vw, 52px);
  font-weight: 600;
  line-height: 0.98;
}

.skill-list p,
.project-list p,
.result-list p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

.skill-card p {
  align-self: end;
}

.code-visual {
  align-self: end;
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: var(--text);
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1.25;
}

.code-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  color: #333;
}

.motion-ready .code-line {
  opacity: 0;
  transform: translateY(8px);
}

.code-line b {
  color: var(--text);
  font-weight: 500;
}

.accent-code {
  position: relative;
  color: var(--accent);
}

.accent-code::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 6px;
  background: var(--accent);
  transform: translateY(2px);
  animation: codeCursor 960ms steps(1) infinite;
}

.motion-ready .is-visible .code-line {
  animation: codeReveal 760ms var(--ease) forwards;
}

.motion-ready .is-visible .code-line:nth-child(1) {
  animation-delay: 220ms;
}

.motion-ready .is-visible .code-line:nth-child(2) {
  animation-delay: 420ms;
}

.motion-ready .is-visible .code-line:nth-child(3) {
  animation-delay: 620ms;
}

.project-list {
  border-top: 1px solid var(--line-dark);
}

.project-list article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 72px minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: baseline;
  min-height: 146px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.project-list article::after {
  content: none;
}

.project-list article > * {
  position: relative;
  z-index: 1;
}

.project-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.project-list .secondary-project {
  color: #505050;
}

.project-list .secondary-project h3 {
  font-size: clamp(28px, 2.2vw, 42px);
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  border-top: 1px solid var(--line-dark);
}

.result-list article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 270px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.2vw, 34px) clamp(30px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
  background: color-mix(in srgb, #fff 94%, transparent);
}

.result-list article + article {
  padding-left: clamp(22px, 2.2vw, 34px);
}

.result-list article:last-child {
  border-right: 0;
}

.result-list article:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.result-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 520ms var(--ease);
}

.result-list article::after {
  content: none;
}

.result-list article > * {
  position: relative;
  z-index: 1;
}

.result-list article:hover::before {
  width: 100%;
}

.motion-ready .reveal .result-list article {
  opacity: 0;
  transform: translateY(22px);
}

.motion-ready .reveal.is-visible .result-list article {
  animation: resultCardIn 820ms var(--ease) forwards;
}

.motion-ready .reveal.is-visible .result-list article:nth-child(1) {
  animation-delay: 80ms;
}

.motion-ready .reveal.is-visible .result-list article:nth-child(2) {
  animation-delay: 160ms;
}

.motion-ready .reveal.is-visible .result-list article:nth-child(3) {
  animation-delay: 240ms;
}

.motion-ready .reveal.is-visible .result-list article:nth-child(4) {
  animation-delay: 320ms;
}

.motion-ready .reveal.is-visible .result-list article:nth-child(5) {
  animation-delay: 400ms;
}

.result-list article > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.result-list h3 {
  max-width: none;
  font-size: clamp(27px, 2.05vw, 38px);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

.metric-number {
  display: inline-block;
  min-width: 0;
  color: var(--accent);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.profile-minor {
  padding-bottom: clamp(62px, 7vw, 96px);
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-content: start;
}

.signal-list span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #303030;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 500;
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}

.blog-list article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: 240px;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #fff 94%, transparent);
}

.blog-list article + article {
  padding-left: clamp(24px, 3vw, 44px);
}

.blog-list article:last-child {
  border-right: 0;
}

.blog-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.blog-list h3 {
  max-width: none;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 2.2vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

.blog-list h3::after {
  content: ".";
  color: var(--accent);
}

.blog-list p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.signal-list span:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-strip {
  position: relative;
  overflow: hidden;
  min-height: 42vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) 1fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  padding: clamp(74px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line);
}

.ambient-contact-bg {
  right: 2%;
  top: 50%;
  color: #d8d8d8;
  font-family: var(--display);
  font-size: clamp(150px, 24vw, 380px);
  font-weight: 600;
  line-height: 0.7;
  opacity: 0.42;
  transform: translateY(-50%);
  animation: contactArrow 5.5s var(--ease) infinite alternate;
}

.contact-actions {
  display: grid;
  gap: 26px;
  align-content: center;
}

.contact-mail {
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 84px);
  line-height: 1;
  font-weight: 600;
  overflow-wrap: normal;
}

.contact-mail span {
  font-family: var(--ui);
  font-size: 0.58em;
}

.social-row-contact {
  margin-top: 0;
}

.site-footer {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 850ms var(--ease),
    transform 850ms var(--ease);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes lineGrow {
  to {
    transform: scaleX(1);
  }
}

@keyframes codeReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes codeCursor {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes resultCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skillSignal {
  from {
    opacity: 0.48;
    transform: translate3d(16px, 12px, 0);
  }

  to {
    opacity: 0.9;
    transform: translate3d(-8px, -4px, 0);
  }
}

@keyframes videoTrack {
  from {
    background-position: 0 100%, 0 0;
  }

  to {
    background-position: 92px 100%, 0 0;
  }
}

@keyframes ledgerScan {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 38px, 76px 0;
  }
}

@keyframes projectGhost {
  from {
    opacity: 0.34;
    transform: translateX(38px);
  }

  to {
    opacity: 0.58;
    transform: translateX(0);
  }
}

@keyframes signalPulse {
  from {
    opacity: 0.35;
    transform: translateY(8px);
  }

  to {
    opacity: 0.88;
    transform: translateY(0);
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-18px, -22px, 0);
  }
}

@keyframes ambientCodeSlide {
  from {
    clip-path: inset(0 38% 0 0);
    transform: translateX(0);
  }

  to {
    clip-path: inset(0 0 0 0);
    transform: translateX(-18px);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotateX(62deg) rotateZ(372deg);
  }
}

@keyframes cubePulse {
  from {
    transform: rotate(45deg) scale(0.92);
  }

  to {
    transform: rotate(45deg) scale(1.12);
  }
}

@keyframes axisScan {
  from {
    transform: rotate(-18deg) translateX(-18px);
  }

  to {
    transform: rotate(-18deg) translateX(18px);
  }
}

@keyframes resultTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-42%);
  }
}

@keyframes profileDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-28px);
  }
}

@keyframes contactArrow {
  from {
    transform: translateY(-50%) translateX(0);
  }

  to {
    transform: translateY(-50%) translateX(28px);
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-link {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 180ms ease;
  }

  .mobile-nav.is-open {
    grid-template-rows: 1fr;
  }

  .mobile-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
  }

  .hero,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .project-card {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding: 34px 0 0;
  }

  .section-disclosure summary {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 138px;
  }

  .section-copy {
    grid-column: 2;
  }

  .section-note {
    max-width: 680px;
  }

  .summary-action {
    grid-column: 2;
    justify-self: start;
  }

  .section-panel {
    margin-left: 0;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

  .skill-list article,
  .skill-list article + article {
    padding-left: 0;
    border-right: 0;
  }

  .result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-list article:nth-child(even) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }

  body::before {
    background-size: 50vw 100%;
  }

  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 76px;
  }

  .ambient {
    opacity: 0.26;
  }

  .ambient-hero,
  .ambient-code-bg,
  .ambient-project-bg,
  .ambient-profile-bg {
    right: 0;
    width: 100%;
  }

  .ambient-code-bg {
    font-size: 22px;
  }

  .ambient-results-bg {
    font-size: 78px;
  }

  .word-title {
    gap: 0 14px;
    font-size: clamp(50px, 16vw, 76px);
  }

  .hero p:not(.studio-line) {
    font-size: 18px;
  }

  .mail-line {
    font-size: clamp(26px, 8vw, 40px);
    overflow-wrap: normal;
  }

  .form-head {
    align-items: start;
  }

  .section-disclosure {
    scroll-margin-top: 76px;
  }

  .section-disclosure summary {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    min-height: 118px;
    padding: 28px 0;
  }

  .summary-action {
    grid-column: 2;
    justify-self: start;
    min-width: 88px;
  }

  .section-disclosure summary .summary-action {
    grid-column: 2;
  }

  .summary-action::after {
    width: 30px;
    height: 30px;
  }

  .section-panel {
    margin-left: 0;
    margin-bottom: 58px;
  }

  .section-note {
    grid-column: 2;
    font-size: 15px;
  }

  .skill-list,
  .result-list,
  .blog-list {
    grid-template-columns: 1fr;
  }

  .skill-list article,
  .skill-list article + article,
  .result-list article,
  .result-list article + article {
    min-height: 200px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-list article:last-child,
  .result-list article:last-child,
  .blog-list article:last-child {
    border-bottom: 0;
  }

  .blog-list article,
  .blog-list article + article {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .code-visual {
    min-height: 82px;
    font-size: 12px;
  }

  .project-list article {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
  }

  .contact-strip {
    min-height: 0;
    overflow: hidden;
    padding: 56px 0;
  }

  .contact-strip h2 {
    font-size: clamp(38px, 11.5vw, 50px);
    line-height: 1;
  }

  .contact-mail {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.02;
  }

  .ambient-contact-bg {
    display: none;
  }

  .social-row-contact {
    display: grid;
    gap: 14px;
  }

  .social-row-contact a {
    width: fit-content;
    max-width: 100%;
    font-size: 13px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .social-row-contact a span {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .site-footer {
    display: grid;
    gap: 14px;
    align-items: start;
    padding: 24px 0;
  }
}

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

  .word-title span,
  .motion-ready .reveal,
  .code-line,
  .motion-ready .reveal .result-list article {
    opacity: 1;
    transform: none;
  }

  .accent-code::after {
    animation: none;
  }

  .ambient,
  .ambient * {
    animation: none !important;
  }
}
