:root {
  --paper: #f1efe8;
  --paper-soft: #e7e3d9;
  --ink: #171713;
  --muted: #68675f;
  --line: #c9c6bc;
  --accent: #ff4d2e;
  --lime: #d7ff38;
  --dark: #20211e;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  --mx: 50vw;
  --my: 50vh;
}

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

button {
  border-radius: 0;
  font: inherit;
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 300;
  background: #000;
  color: #fff;
  padding: 1rem;
}

.skip-link:focus {
  top: 1rem;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .03;
  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='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(115deg, #f1efe8 0%, #f7f2df 34%, #ffe4da 68%, #f1efe8 100%);
  background-size: 180% 180%;
  animation: paper-breath 13s ease-in-out infinite alternate;
}

.ambient-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at var(--mx) var(--my), #ff4d2e1f, transparent 24rem),
    radial-gradient(circle at calc(100% - var(--mx)) calc(100% - var(--my)), #d7ff3820, transparent 22rem);
  opacity: .95;
  transition: opacity .3s;
}

.ambient-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(82px);
  opacity: .24;
  will-change: transform;
}

.ambient-bg i:nth-child(1) {
  width: 52vw;
  height: 52vw;
  right: -22vw;
  top: -18vw;
  background: #ff4d2e;
  animation: ambient-one 18s ease-in-out infinite alternate;
}

.ambient-bg i:nth-child(2) {
  width: 45vw;
  height: 45vw;
  left: -20vw;
  top: 38vh;
  background: #d7ff38;
  animation: ambient-two 24s ease-in-out infinite alternate;
}

.ambient-bg i:nth-child(3) {
  width: 38vw;
  height: 38vw;
  right: 5vw;
  bottom: -20vw;
  background: #ffb39f;
  animation: ambient-three 21s ease-in-out infinite alternate;
}

@keyframes ambient-one {
  to { transform: translate(-9vw, 13vh) scale(.82); }
}

@keyframes ambient-two {
  to { transform: translate(15vw, -10vh) scale(1.18); }
}

@keyframes ambient-three {
  to { transform: translate(-16vw, -14vh) scale(.9); }
}

@keyframes paper-breath {
  to { background-position: 100% 72%; }
}

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

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 180;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.project-cursor {
  position: fixed;
  z-index: 190;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font: 500 .6rem "DM Mono";
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.project-cursor.active {
  transform: translate(-50%, -50%) scale(1);
}

.site-header,
.hero,
.statement,
.expertise,
.journey,
.contact,
.footer {
  position: relative;
}

.site-header {
  width: var(--shell);
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 500 .75rem "DM Mono";
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: .85rem;
}

.site-header a {
  transition: transform .2s, color .2s, opacity .2s;
}

.site-header nav a:hover {
  opacity: .5;
}

.pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: max-content;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.pill::before,
.contact-links .primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, #ffffff35 50%, transparent 65% 100%);
  transform: translateX(-120%);
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

.pill:hover::before,
.contact-links .primary:hover::before {
  transform: translateX(120%);
}

.pill span,
.hero-aside a span,
.contact-links a span,
.project-bottom b {
  font: 500 .62rem "DM Mono";
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero {
  padding-top: 4.2rem;
}

.availability {
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 100%;
  font: 500 .68rem "DM Mono";
  text-transform: uppercase;
  letter-spacing: .08em;
}

.availability span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4faf35;
  box-shadow: 0 0 0 5px #4faf3520;
  animation: availability-pulse 1.8s ease-in-out infinite;
}

@keyframes availability-pulse {
  50% { box-shadow: 0 0 0 9px #4faf350f; transform: scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, .72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
  margin: 3rem 0 2.2rem;
}

.kicker,
.index,
.meta {
  font: 500 .68rem "DM Mono";
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero h1,
.statement h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: Syne, sans-serif;
  letter-spacing: -.055em;
  line-height: .92;
}

.hero h1 {
  font-size: clamp(3.8rem, 8.1vw, 8rem);
}

.hero-title > span {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  animation: title-in .8s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-title > span:nth-child(2) {
  animation-delay: .1s;
}

.hero-title > span:nth-child(3) {
  animation-delay: .2s;
}

@keyframes title-in {
  to {
    opacity: 1;
    transform: none;
  }
}

em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-title em {
  display: inline-block;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  animation: chaos-call 3.2s ease-in-out infinite;
  transition: color .25s, transform .3s;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: .05em;
  height: .07em;
  background: var(--accent);
  transform: scaleX(.16);
  transform-origin: right;
  animation: chaos-underline 3.2s ease-in-out infinite;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.hero-title em:hover {
  color: var(--accent);
  transform: skewX(-5deg);
}

.hero-title em:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes chaos-call {
  0%, 72%, 100% { color: inherit; transform: none; }
  82% { color: var(--accent); transform: skewX(-5deg) translateY(-.025em); }
}

@keyframes chaos-underline {
  0%, 55%, 100% { transform: scaleX(.16); opacity: .7; }
  78% { transform: scaleX(1); opacity: 1; }
}

.hero-title em.dispersing {
  color: transparent !important;
}

.hero-title em:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 7px;
  border-radius: .08em;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: end;
  min-height: 17rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #f7f3eab5;
  padding: 1.4rem;
  line-height: 1.7;
  backdrop-filter: blur(10px);
}

.hero-aside p {
  margin: 0;
}

.hero-aside a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid;
  padding: 1.2rem 0 .6rem;
  font-weight: 700;
  transition: transform .2s, color .2s;
}

.hero-aside a:hover,
.contact-links a:not(.primary):hover {
  color: var(--accent);
}

.hero-stage {
  height: 340px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  background: var(--accent);
  color: var(--paper);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, #ffffff18, transparent),
    repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 13px);
  transform: translateX(-120%);
  animation: stage-scan 4.8s cubic-bezier(.16, 1, .3, 1) infinite;
}

.hero-stage::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: var(--stage-x, 50%);
  top: var(--stage-y, 50%);
  border-radius: 50%;
  background: #ffffff17;
  transform: translate(-50%, -50%);
  transition: width .35s, height .35s;
  pointer-events: none;
}

.hero-stage:hover::after {
  width: 390px;
  height: 390px;
}

@keyframes stage-scan {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.stage-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font: 800 clamp(5rem, 14vw, 12.5rem) / .72 Syne;
  letter-spacing: -.08em;
  opacity: .14;
  animation: stage-copy-drift 8s ease-in-out infinite alternate;
}

.stage-copy span:last-child {
  align-self: flex-end;
}

.monogram {
  z-index: 2;
  font: 800 clamp(5rem, 12vw, 10rem) Syne;
  letter-spacing: -.12em;
  animation: monogram-pulse 4.2s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px solid #fff9;
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: orbit-turn 9s linear infinite;
}

.orbit.one {
  width: 390px;
  height: 180px;
}

.orbit.two {
  width: 520px;
  height: 250px;
  animation-direction: reverse;
  animation-duration: 13s;
}

.hero-stage .monogram,
.hero-stage .orbit {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

@keyframes stage-copy-drift {
  to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.035); }
}

@keyframes monogram-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 #ffffff00); transform: scale(1); }
  50% { filter: drop-shadow(0 20px 35px #00000018); transform: scale(1.025); }
}

@keyframes orbit-turn {
  to { rotate: 360deg; }
}

.hero-stage p {
  position: absolute;
  right: 2rem;
  bottom: 1.5rem;
  max-width: 230px;
  text-align: right;
  font: .68rem / 1.5 "DM Mono";
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats div {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: 1.65rem 1rem;
  border-right: 1px solid var(--line);
  transition: background .25s, transform .25s;
}

.stats div:last-child {
  border-right: 0;
}

.stats div:hover {
  background: #fff7;
  transform: translateY(-4px);
}

.stats strong {
  font: 700 2.4rem Syne;
}

.stats span {
  font-size: .72rem;
  color: var(--muted);
}

.tools {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 1.15rem 0;
}

.tools-track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  font: 700 1rem Syne;
  text-transform: uppercase;
  animation: tools-marquee 32s linear infinite;
}

.tools-track i {
  width: 38px;
  height: 1px;
  background: var(--accent);
  font-style: normal;
}

.tools:hover .tools-track {
  animation-play-state: paused;
}

@keyframes tools-marquee {
  to { transform: translateX(-50%); }
}

.statement {
  display: grid;
  grid-template-columns: .22fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 9rem 0;
}

.statement > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .58fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  max-width: 100%;
  align-items: start;
}

.statement > .index {
  margin: 0;
}

.statement h2 {
  max-width: 760px;
  overflow-wrap: normal;
}

.statement .body-copy {
  max-width: 560px;
  padding-top: .6rem;
}

.statement h2,
.section-heading h2 {
  font-size: clamp(3rem, 5.5vw, 5.8rem);
}

.body-copy {
  color: var(--muted);
  line-height: 1.8;
}

.body-copy p:first-child {
  color: var(--ink);
  font-size: 1.15rem;
}

.expertise,
.journey,
.credentials {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: .3fr 1fr;
  margin-bottom: 4.8rem;
  position: relative;
}

.section-heading h2 {
  grid-column: 2;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 0;
  bottom: -2rem;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}

.section-heading.visible::after {
  transform: scaleX(1);
}

.expertise-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 50px;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: border-color .25s;
}

.expertise-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}

.expertise-row:hover::after,
.expertise-row.open::after {
  transform: scaleX(1);
}

.expertise-row:last-child {
  border-bottom: 1px solid var(--line);
}

.expertise-row > span {
  font: .7rem "DM Mono";
  color: var(--muted);
}

.expertise-row h3 {
  margin: 0 0 .5rem;
  font: 700 clamp(1.5rem, 3vw, 2.7rem) Syne;
  transition: color .22s, transform .28s cubic-bezier(.16, 1, .3, 1);
}

.expertise-row p {
  margin: 0;
  color: var(--muted);
}

.expertise-row b {
  position: relative;
  width: 34px;
  height: 34px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .2s, border-color .2s;
}

.expertise-row b::before,
.expertise-row b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.expertise-row b::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.expertise-row.open {
  border-top-color: var(--accent);
}

.expertise-row:hover h3,
.expertise-row:focus-visible h3,
.expertise-row.open h3 {
  color: var(--accent);
  transform: translateX(.18em);
}

.expertise-row:hover b,
.expertise-row.open b {
  border-color: var(--accent);
}

.expertise-row.open b {
  transform: rotate(45deg);
}

.expertise-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: .86rem;
  line-height: 1.6;
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1), opacity .3s, margin .3s;
}

.expertise-row.open .expertise-detail {
  max-height: 100px;
  opacity: 1;
  margin-top: 1rem;
}

.projects {
  background: var(--dark);
  color: var(--paper);
  padding: 7rem 0;
}

.projects .index {
  color: #aaa;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1rem;
}

.project {
  position: relative;
  min-width: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: #dad8cf;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .25s, filter .25s;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 38%, #ffffff45 48%, transparent 58% 100%);
  transform: translateX(-130%);
  animation: card-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

.project:nth-child(2)::before { animation-delay: .8s; }
.project:nth-child(3)::before { animation-delay: 1.4s; }
.project:nth-child(4)::before { animation-delay: 2s; }

@keyframes card-sweep {
  0%, 62% { transform: translateX(-130%); }
  86%, 100% { transform: translateX(130%); }
}

.project .meta {
  transition: opacity .25s, transform .25s;
}

.project-main {
  grid-row: span 2;
  min-height: 856px;
  background: var(--lime);
}

.project:hover {
  transform: translateY(-6px);
  filter: brightness(1.04);
}

.project:hover .meta {
  opacity: .62;
  transform: translateY(-3px) translateZ(18px);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), #fff6, transparent 35%);
  opacity: .18;
  transition: opacity .25s;
  pointer-events: none;
}

.project:hover::after {
  opacity: .85;
}

.project .art,
.project .project-bottom,
.project .meta {
  transform: translateZ(18px);
}

.art {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 240px;
}

.art-jdis i {
  position: absolute;
  width: 60%;
  height: 20%;
  border: 2px solid;
  background: var(--lime);
  transform: skewY(-10deg);
  animation: jdis-layer 4.8s ease-in-out infinite alternate;
}

.art-jdis i:nth-child(2) {
  transform: translateY(35px) skewY(-10deg);
  animation-delay: .25s;
}

.art-jdis i:nth-child(3) {
  transform: translateY(70px) skewY(-10deg);
  animation-delay: .5s;
}

@keyframes jdis-layer {
  to {
    translate: 0 -12px;
  }
}

.art-cdcrb {
  display: flex;
  justify-content: center;
  gap: .4rem;
}

.art-cdcrb i {
  padding: 2rem .7rem;
  background: var(--accent);
  color: white;
  font: 800 3rem Syne;
  transform: rotate(-8deg);
  animation: letter-breathe 3.8s ease-in-out infinite alternate;
}

.art-cdcrb i:nth-child(2) {
  background: var(--ink);
  transform: rotate(4deg);
  animation-delay: .2s;
}

.art-cdcrb i:nth-child(3) {
  transform: rotate(12deg);
  animation-delay: .4s;
}

@keyframes letter-breathe {
  to {
    translate: 0 -10px;
  }
}

.art-av {
  background: repeating-radial-gradient(circle, #ff4d2e 0 2px, transparent 2px 14px);
  background-size: 140% 140%;
  animation: field-drift 9s linear infinite;
}

.art-av i {
  color: #fff;
  font: 800 4rem Syne;
}

.art-phone i {
  position: absolute;
  width: 150px;
  height: 260px;
  border: 3px solid;
  border-radius: 25px;
  background: var(--paper);
  transform: rotate(-12deg);
  animation: phone-drift 4.5s ease-in-out infinite alternate;
}

.art-phone i:last-child {
  background: var(--accent);
  transform: translateX(90px) rotate(10deg);
  animation-delay: .25s;
}

@keyframes field-drift {
  to {
    background-position: 90px 60px;
  }
}

@keyframes phone-drift {
  to {
    translate: 0 -12px;
  }
}

.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.project-bottom small {
  display: block;
  font: .65rem "DM Mono";
  text-transform: uppercase;
}

.project-bottom strong {
  display: block;
  font: 700 1.6rem Syne;
}

.project-bottom b {
  color: var(--accent);
  white-space: nowrap;
}

.project-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.project-more button {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 1rem;
  border: 1px solid #ffffff25;
  border-radius: 1rem;
  background: #30312e;
  color: #fff;
  padding: 1.4rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, transform .25s, background .25s;
}

.project-more button::after {
  content: "";
  position: absolute;
  inset: auto 1.4rem 1rem 1.4rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.project-more button:hover {
  border-color: #ffffff55;
  background: #383936;
  transform: translateY(-3px);
}

.project-more button:hover::after {
  transform: scaleX(1);
}

.project-more span,
.project-more small {
  font: .65rem "DM Mono";
  color: #aaa;
}

.journey ol {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.journey li {
  display: grid;
  grid-template-columns: .25fr .45fr .3fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.journey time {
  font: .7rem "DM Mono";
  text-transform: uppercase;
}

.journey h3 {
  margin: 0 0 .4rem;
  font: 700 1.5rem Syne;
}

.journey p,
.journey li > span {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.credential-controls {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.credential-controls button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: .7rem 1rem;
  font: 500 .72rem "DM Mono";
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.credential-controls button.active,
.credential-controls button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.credential-controls sup {
  margin-left: .25rem;
  color: var(--accent);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.credential-grid article {
  min-height: 150px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: start;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s, transform .25s;
}

.credential-grid article:hover {
  background: var(--paper-soft);
  transform: translateY(-3px);
}

.credential-grid article.filtered-out {
  display: none;
}

.credential-grid article > span {
  font: .65rem "DM Mono";
  color: var(--muted);
}

.credential-grid h3 {
  margin: 0;
  font: 700 1rem / 1.25 Syne;
}

.credential-grid p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .72rem;
}

.credential-grid article > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: .65rem "DM Mono";
}

.contact {
  padding: 11rem 0 7rem;
}

.contact > div {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 8rem;
}

.contact h2 {
  margin: 2rem 0;
  font-size: clamp(3.6rem, 7vw, 7.5rem);
}

.contact p {
  max-width: 480px;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-self: end;
}

.contact-links a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  transition: transform .2s, color .2s;
}

.contact-links a:not(.primary)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.contact-links a:not(.primary):hover::after {
  transform: scaleX(1);
}

.contact-links .primary {
  margin-bottom: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 1.2rem 1.5rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font: .65rem "DM Mono";
  text-transform: uppercase;
}

dialog {
  width: min(680px, calc(100vw - 2rem));
  border: 0;
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  padding: 3rem;
  box-shadow: 0 30px 100px #0008;
}

dialog::backdrop {
  background: #111c;
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  border: 0;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}

dialog > p:first-of-type {
  color: var(--accent);
  font: .7rem "DM Mono";
  text-transform: uppercase;
}

dialog h2 {
  margin: 1rem 0;
  font: 700 2.8rem / 1 Syne;
}

#dialog-intro {
  font-size: 1.1rem;
  line-height: 1.7;
}

dialog li {
  margin: .8rem 0;
  line-height: 1.6;
}

.mini-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 210;
  font-family: Manrope, sans-serif;
}

.chat-toggle {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 55px #17171330;
  position: relative;
  overflow: hidden;
}

.chat-toggle span {
  position: relative;
  z-index: 2;
  font: 700 .72rem "DM Mono";
  text-transform: uppercase;
  letter-spacing: .08em;
}

.chat-toggle b {
  position: absolute;
  inset: 9px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  animation: orbit-turn 7s linear infinite;
}

.chat-toggle::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  right: -8px;
  bottom: -8px;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  width: min(390px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: #f7f3ebf2;
  color: var(--ink);
  box-shadow: 0 28px 90px #1717132b;
  backdrop-filter: blur(18px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity .28s, transform .32s cubic-bezier(.16, 1, .3, 1);
}

.mini-chat.open .chat-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
}

.chat-head span {
  display: block;
  margin-bottom: .25rem;
  color: #ffffff99;
  font: .62rem "DM Mono";
  text-transform: uppercase;
  letter-spacing: .09em;
}

.chat-head strong {
  font: 700 1.15rem Syne;
}

.chat-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  max-height: 320px;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.chat-messages p {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  border-radius: 1rem;
  padding: .78rem .9rem;
  font-size: .9rem;
  line-height: 1.45;
  animation: chat-pop .24s cubic-bezier(.16, 1, .3, 1);
}

.chat-messages .bot {
  align-self: flex-start;
  background: #e8e2d7;
}

.chat-messages .thinking {
  color: var(--muted);
  animation: chat-thinking 1s ease-in-out infinite alternate;
}

.chat-messages .user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

@keyframes chat-thinking {
  to {
    opacity: .55;
  }
}

@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}

.chat-suggestions {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
}

.chat-suggestions button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: .55rem .75rem;
  font: 500 .68rem "DM Mono";
  cursor: pointer;
}

.chat-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #f1efe8;
}

.chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8;
  color: var(--ink);
  padding: .85rem 1rem;
  font: inherit;
}

.chat-form button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: .85rem 1rem;
  font: 700 .68rem "DM Mono";
  text-transform: uppercase;
  cursor: pointer;
}

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

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

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

@media (max-width: 980px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .site-header {
    height: 76px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-grid,
  .statement,
  .statement > div,
  .section-heading,
  .contact > div {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-grid {
    margin: 2rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 6.2rem);
  }

  .hero-aside {
    max-width: 560px;
    min-height: auto;
  }

  .hero-stage {
    height: clamp(280px, 48vw, 360px);
  }

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

  .stats div {
    padding: 1.4rem;
  }

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(1),
  .stats div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .statement {
    padding: 7rem 0;
  }

  .statement .body-copy {
    max-width: 680px;
    padding-top: 0;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .section-heading h2 {
    grid-column: auto;
  }

  .expertise,
  .journey,
  .projects,
  .credentials {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

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

  .project,
  .project-main {
    grid-row: auto;
    min-height: 460px;
  }

  .project-more {
    grid-template-columns: 1fr;
  }

  .journey li {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

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

  .contact {
    padding: 8rem 0 5rem;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 24px);
  }

  .site-header {
    height: 68px;
    gap: .75rem;
  }

  .brand {
    gap: .55rem;
    font-size: .9rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .pill {
    padding: .65rem .85rem;
    font-size: .72rem;
  }

  .pill span {
    display: none;
  }

  .availability {
    align-items: flex-start;
    font-size: .61rem;
    line-height: 1.5;
  }

  .hero {
    padding-top: 2rem;
  }

  .kicker {
    margin-bottom: .8rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15.5vw, 4.3rem);
    line-height: .94;
    letter-spacing: -.065em;
  }

  .hero-title > span {
    transform: translateY(35%);
  }

  .hero-aside {
    font-size: .95rem;
    border-radius: 1rem;
    padding: 1rem;
  }

  .hero-aside a {
    padding-top: .9rem;
  }

  .hero-stage {
    height: 245px;
    border-radius: 1rem;
  }

  .stage-copy {
    font-size: clamp(4.2rem, 21vw, 7rem);
  }

  .monogram {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  .orbit.one {
    width: 260px;
    height: 120px;
  }

  .orbit.two {
    width: 340px;
    height: 165px;
  }

  .hero-stage p {
    right: 1rem;
    bottom: 1rem;
    max-width: 180px;
    font-size: .58rem;
  }

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

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.05rem 0;
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .stats strong {
    min-width: 74px;
    font-size: 2rem;
  }

  .tools {
    padding: .9rem 0;
  }

  .tools-track {
    gap: 1.15rem;
    font-size: .82rem;
    animation-duration: 24s;
  }

  .tools-track i {
    width: 24px;
  }

  .statement {
    padding: 5.5rem 0;
  }

  .statement h2,
  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
    line-height: .96;
  }

  .body-copy {
    font-size: .95rem;
  }

  .body-copy p:first-child {
    font-size: 1rem;
  }

  .expertise,
  .journey,
  .projects,
  .credentials {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }

  .expertise-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: .9rem;
    padding: 1.35rem 0;
  }

  .expertise-row:hover,
  .expertise-row:focus-visible,
  .expertise-row.open {
    border-top-color: var(--accent);
  }

  .expertise-row h3 {
    font-size: clamp(1.32rem, 7vw, 2rem);
  }

  .expertise-row p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .project,
  .project-main {
    min-height: 365px;
    padding: 1rem;
    border-radius: 1rem;
  }

  .art {
    min-height: 190px;
  }

  .art-cdcrb i {
    padding: 1.5rem .48rem;
    font-size: 2.15rem;
  }

  .art-phone i {
    width: 112px;
    height: 200px;
    border-radius: 20px;
  }

  .art-phone i:last-child {
    transform: translateX(62px) rotate(10deg);
  }

  .project-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-bottom strong {
    font-size: 1.35rem;
  }

  .project-bottom b {
    margin-top: .35rem;
  }

  .project-more button {
    grid-template-columns: 34px 1fr;
  }

  .project-more small {
    grid-column: 2;
  }

  .credential-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .credential-grid article {
    min-height: auto;
    grid-template-columns: 28px minmax(0, 1fr) 32px;
  }

  .contact {
    padding: 5.5rem 0 4rem;
  }

  .contact h2 {
    margin: 1.3rem 0;
  }

  .contact-links a {
    align-items: flex-start;
    overflow-wrap: anywhere;
    padding: 1rem 0;
  }

  .contact-links .primary {
    padding: 1rem 1.1rem;
  }

  dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    border-radius: 1rem;
    padding: 2.2rem 1.15rem 1.3rem;
  }

  dialog h2 {
    font-size: 2.1rem;
  }

  .mini-chat {
    right: .85rem;
    bottom: .85rem;
  }

  .chat-toggle {
    width: 64px;
    height: 64px;
  }

  .chat-panel {
    bottom: 78px;
    width: calc(100vw - 1.7rem);
  }

  .chat-messages {
    max-height: 280px;
  }
}

@media (pointer: coarse) {
  .project-cursor {
    display: none;
  }

  .project::after {
    display: none;
  }

  .project:hover {
    transform: none;
  }
}

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

  .ambient-bg,
  .scroll-progress {
    display: none;
  }

  .ambient-bg i,
  .ambient-bg,
  .availability span,
  .hero-title em,
  .hero-title em::after,
  .hero-stage::before,
  .stage-copy,
  .monogram,
  .orbit,
  .project::before,
  .art-jdis i,
  .art-cdcrb i,
  .art-av,
  .art-phone i,
  .tools-track {
    animation: none;
  }

  .reveal,
  .hero-title > span {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .project,
  .expertise-row,
  .expertise-row b,
  .chat-panel,
  .hero-stage .monogram,
  .hero-stage .orbit {
    transition: none;
  }
}
