:root {
  --paper: #f5f3ed;
  --paper-rgb: 245, 243, 237;
  --ink: #111210;
  --muted: #686a65;
  --accent: #20d34a;
  --accent-rgb: 32, 211, 74;
  --line: rgba(17, 18, 16, 0.14);
  --soft-line: rgba(17, 18, 16, 0.075);
  --pad: clamp(1.25rem, 3.3vw, 3.75rem);
  --radius: clamp(1.2rem, 2.4vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px),
    var(--paper);
  background-position: center;
  background-size: clamp(3.5rem, 8vw, 8rem) clamp(3.5rem, 8vw, 8rem);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: color 520ms ease, background-color 520ms ease;
}

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

.effect-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.effect-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.code-stream {
  position: absolute;
  top: -20%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.52rem, 0.7vw, 0.7rem);
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: code-drift var(--speed, 15s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.code-stream i {
  font-style: normal;
  white-space: nowrap;
}

body.effect-code .code-layer {
  opacity: 0.22;
}

body.effect-code .code-stream {
  opacity: var(--stream-opacity, 0.42);
}

.wordpress-system {
  position: absolute;
  top: 50%;
  left: 70%;
  width: clamp(18rem, 32vw, 34rem);
  aspect-ratio: 1.12;
  transform: translate(-50%, -50%);
}

.wp-core,
.wp-module {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 18, 16, 0.16);
  background: rgba(var(--paper-rgb), 0.88);
  box-shadow: 0 1rem 2.5rem rgba(17, 18, 16, 0.09);
  font-size: clamp(0.55rem, 0.8vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.wp-core {
  top: 37%;
  left: 38%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0.2) rotate(-30deg);
}

.wp-module {
  width: 31%;
  height: 23%;
  border-radius: 1.1rem;
  opacity: 0;
}

.wp-module:nth-child(2) { top: 2%; left: 8%; --wp-x: 120%; --wp-y: 90%; }
.wp-module:nth-child(3) { top: 7%; right: 2%; --wp-x: -100%; --wp-y: 80%; }
.wp-module:nth-child(4) { bottom: 3%; left: 1%; --wp-x: 120%; --wp-y: -90%; }
.wp-module:nth-child(5) { right: 5%; bottom: 8%; --wp-x: -105%; --wp-y: -80%; }

.wp-connector {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 31%;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform-origin: left center;
}

.wp-connector:nth-child(6) { transform: rotate(-140deg); }
.wp-connector:nth-child(7) { transform: rotate(-42deg); }
.wp-connector:nth-child(8) { transform: rotate(139deg); }
.wp-connector:nth-child(9) { transform: rotate(39deg); }

body.effect-wordpress .wordpress-layer {
  opacity: 0.72;
}

body.effect-wordpress .wp-core {
  animation: wp-core-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-wordpress .wp-module {
  animation: wp-module-in 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-wordpress .wp-module:nth-child(3) { animation-delay: 70ms; }
body.effect-wordpress .wp-module:nth-child(4) { animation-delay: 140ms; }
body.effect-wordpress .wp-module:nth-child(5) { animation-delay: 210ms; }
body.effect-wordpress .wp-connector { animation: connector-in 450ms 390ms ease both; }

.voice-orb {
  position: absolute;
  top: 50%;
  left: 70%;
  display: grid;
  width: clamp(9rem, 16vw, 16rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.06) 45%, transparent 72%);
  filter: drop-shadow(0 0 2rem rgba(var(--accent-rgb), 0.22));
  transform: translate(-50%, -50%);
}

.voice-ring {
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 50%;
  animation: voice-pulse 1.7s ease-out infinite;
}

.voice-ring:nth-child(2) { animation-delay: 560ms; }
.voice-ring:nth-child(3) { animation-delay: 1120ms; }

.voice-bars {
  display: flex;
  gap: 0.24rem;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 28%;
}

.voice-bars i {
  width: clamp(0.12rem, 0.25vw, 0.2rem);
  height: 20%;
  border-radius: 999px;
  background: var(--ink);
  animation: voice-bar 720ms ease-in-out infinite alternate;
}

.voice-bars i:nth-child(2) { height: 55%; animation-delay: -300ms; }
.voice-bars i:nth-child(3) { height: 95%; animation-delay: -520ms; }
.voice-bars i:nth-child(4) { height: 60%; animation-delay: -180ms; }
.voice-bars i:nth-child(5) { height: 30%; animation-delay: -410ms; }

body.effect-ai .ai-layer {
  opacity: 1;
}

.digital-network {
  position: absolute;
  top: 51%;
  left: 70%;
  width: clamp(21rem, 38vw, 39rem);
  aspect-ratio: 1.35;
  transform: translate(-50%, -50%);
}

.digital-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: clamp(4.2rem, 6vw, 6rem);
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem;
  place-items: center;
  border: 1px solid rgba(17, 18, 16, 0.16);
  border-radius: 0.65rem;
  background: rgba(var(--paper-rgb), 0.9);
  box-shadow: 0 0.7rem 1.5rem rgba(17, 18, 16, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.52rem, 0.75vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: scale(0.6);
}

.node-web { top: 36%; left: 39%; background: var(--accent); }
.node-social { top: 0; left: 5%; }
.node-landing { top: 5%; right: 0; }
.node-ux { bottom: 5%; left: 0; }
.node-shop { right: 7%; bottom: 0; }

.network-line {
  position: absolute;
  top: 48%;
  left: 48%;
  width: 43%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px);
  opacity: 0;
  transform-origin: left center;
}

.line-a { transform: rotate(-140deg); }
.line-b { transform: rotate(-39deg); }
.line-c { transform: rotate(143deg); }
.line-d { transform: rotate(38deg); }

body.effect-digital .digital-layer {
  opacity: 0.82;
}

body.effect-digital .digital-node {
  animation: node-online 540ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-digital .node-social { animation-delay: 80ms; }
body.effect-digital .node-landing { animation-delay: 160ms; }
body.effect-digital .node-ux { animation-delay: 240ms; }
body.effect-digital .node-shop { animation-delay: 320ms; }
body.effect-digital .network-line { animation: network-online 750ms 280ms ease both; }

.print-layer {
  inset: clamp(1rem, 2vw, 2rem);
  border: 1px solid rgba(17, 18, 16, 0.22);
  background-image:
    radial-gradient(circle, rgba(0, 174, 239, 0.22) 0 0.75px, transparent 0.9px),
    radial-gradient(circle, rgba(236, 0, 140, 0.18) 0 0.75px, transparent 0.9px),
    radial-gradient(circle, rgba(255, 242, 0, 0.17) 0 0.75px, transparent 0.9px);
  background-position: 0 0, 3px 2px, -2px 3px;
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

.print-layer::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(104deg, transparent 47%, rgba(0, 174, 239, 0.08) 48%, rgba(236, 0, 140, 0.08) 50%, transparent 51%);
  animation: print-pass 2.2s ease-in-out infinite alternate;
}

.crop-mark {
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  border-color: var(--ink);
  border-style: solid;
}

.crop-a { top: 1rem; left: 1rem; border-width: 1px 0 0 1px; }
.crop-b { top: 1rem; right: 1rem; border-width: 1px 1px 0 0; }
.crop-c { right: 1rem; bottom: 1rem; border-width: 0 1px 1px 0; }
.crop-d { bottom: 1rem; left: 1rem; border-width: 0 0 1px 1px; }

.colour-check {
  position: absolute;
  right: 2.2rem;
  bottom: 2.2rem;
  display: flex;
}

.colour-check i {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #00aeef;
  mix-blend-mode: multiply;
}

.colour-check i:nth-child(2) { margin-left: -0.18rem; background: #ec008c; }
.colour-check i:nth-child(3) { margin-left: -0.18rem; background: #fff200; }
.colour-check i:nth-child(4) { margin-left: -0.18rem; background: #111; }

.print-layer p {
  position: absolute;
  bottom: 2.05rem;
  left: 2.2rem;
  margin: 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body.effect-print .print-layer {
  opacity: 0.62;
}

.light-beam {
  position: absolute;
  top: -18%;
  left: var(--beam-left, 20%);
  width: clamp(12rem, 22vw, 24rem);
  height: 125%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.19), transparent);
  filter: blur(0.25rem);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  transform: rotate(var(--beam-angle, 12deg));
  transform-origin: top center;
  animation: beam-sweep 3.8s ease-in-out infinite alternate;
}

.beam-b { --beam-left: 48%; --beam-angle: -8deg; animation-delay: -1.4s; }
.beam-c { --beam-left: 73%; --beam-angle: 6deg; animation-delay: -2.7s; }

body.effect-events .events-layer {
  opacity: 1;
}

/* WordPress becomes a whole-page visual builder. */
.builder-toolbar {
  position: absolute;
  top: 5.2rem;
  left: 50%;
  display: flex;
  gap: 0.25rem;
  padding: 0.32rem;
  border: 1px solid rgba(17, 18, 16, 0.2);
  border-radius: 0.6rem;
  background: rgba(var(--paper-rgb), 0.92);
  box-shadow: 0 0.8rem 2rem rgba(17, 18, 16, 0.1);
  opacity: 0;
  transform: translate(-50%, -1rem);
}

.builder-toolbar span {
  padding: 0.55rem 0.8rem;
  border-radius: 0.35rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.builder-toolbar span:first-child {
  background: var(--accent);
}

.builder-code-panel {
  position: absolute;
  top: 48%;
  left: 71%;
  width: min(22rem, 31vw);
  overflow: hidden;
  border: 1px solid rgba(17, 18, 16, 0.2);
  border-radius: 0.85rem;
  background: rgba(17, 18, 16, 0.93);
  color: #e9eee9;
  box-shadow: 0 1.5rem 3.5rem rgba(17, 18, 16, 0.18);
  opacity: 0;
  transform: translate(-50%, -43%) scale(0.92);
}

.builder-code-panel p {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #a9afa9;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-code-panel pre {
  margin: 0;
  padding: 1.1rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.55rem, 0.72vw, 0.7rem);
  line-height: 1.6;
  white-space: pre-wrap;
}

.builder-code-panel b {
  color: var(--accent);
  font-weight: 700;
}

.builder-cursor {
  position: absolute;
  top: 40%;
  left: 58%;
  color: var(--ink);
  font-size: 1.5rem;
  opacity: 0;
  text-shadow: 0 0.25rem 0.7rem rgba(17, 18, 16, 0.2);
}

body.effect-wordpress {
  background-size: 3rem 3rem;
}

body.effect-wordpress .wordpress-layer {
  opacity: 1;
}

body.effect-wordpress .builder-toolbar {
  animation: builder-toolbar-in 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-wordpress .builder-code-panel {
  animation: builder-panel-in 760ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-wordpress .builder-cursor {
  animation: builder-cursor 2.6s 620ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

body.effect-wordpress .site-header,
body.effect-wordpress .hero-copy,
body.effect-wordpress .hero-action,
body.effect-wordpress .site-footer,
body.effect-wordpress .playground {
  outline: 1px dashed rgba(44, 102, 255, 0.75);
  outline-offset: 0.25rem;
}

body.effect-wordpress .site-header::before,
body.effect-wordpress .hero-copy::before,
body.effect-wordpress .hero-action::before,
body.effect-wordpress .site-footer::before {
  position: absolute;
  top: -0.8rem;
  left: 0;
  z-index: 15;
  padding: 0.2rem 0.35rem;
  content: attr(data-block);
  background: #2c66ff;
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

body.effect-wordpress .site-header::before {
  top: 0.2rem;
  left: var(--pad);
}

body.effect-wordpress .playground-hint::after {
  display: block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.35rem;
  content: "INTERACTIVE DIV";
  background: #2c66ff;
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.45rem;
}

body.effect-wordpress .skill-tag,
body.effect-wordpress .contact-button {
  border-radius: 0.25rem;
  box-shadow: 0 0 0 1px #2c66ff, 0.35rem 0.35rem 0 rgba(44, 102, 255, 0.12);
}

body.effect-wordpress .skill-tag::after {
  position: absolute;
  right: -0.23rem;
  bottom: -0.23rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid white;
  content: "";
  background: #2c66ff;
}

/* AI becomes a full-screen, responsive atmospheric field. */
.ai-cloud {
  position: absolute;
  width: clamp(30rem, 72vw, 74rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(clamp(2rem, 5vw, 5.5rem));
  opacity: 0;
  transform: translate(
    calc(-50% + (var(--pointer-x, 0) * var(--follow, 1) * 1px)),
    calc(-50% + (var(--pointer-y, 0) * var(--follow, 1) * 1px))
  );
  animation: ai-breathe var(--breathe, 5.8s) ease-in-out infinite alternate;
}

.cloud-a {
  top: 47%;
  left: 48%;
  --follow: 0.045;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.08) 45%, transparent 70%);
}

.cloud-b {
  top: 39%;
  left: 68%;
  --follow: -0.035;
  --breathe: 7.2s;
  background: radial-gradient(circle, rgba(32, 211, 74, 0.25), rgba(32, 211, 74, 0.07) 47%, transparent 72%);
  animation-delay: -2.4s;
}

.cloud-c {
  top: 67%;
  left: 28%;
  --follow: 0.025;
  --breathe: 8.4s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08) 52%, transparent 72%);
  animation-delay: -4.1s;
}

.voice-field {
  position: absolute;
  top: 50%;
  left: -3%;
  display: flex;
  width: 106%;
  height: 32vh;
  gap: clamp(0.25rem, 0.8vw, 0.85rem);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-50%);
}

.voice-field i {
  width: clamp(2px, 0.2vw, 3px);
  height: 76%;
  border-radius: 999px;
  background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.86), transparent);
  filter: drop-shadow(0 0 0.45rem rgba(var(--accent-rgb), 0.48));
  transform: scaleY(var(--voice-scale, 0.2));
  animation: voice-field-wave var(--wave-speed, 1.8s) ease-in-out infinite alternate;
  animation-delay: var(--wave-delay, 0s);
}

.voice-field::before,
.voice-field::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(56rem, 74vw);
  height: 68%;
  border: 1px solid rgba(var(--accent-rgb), 0.27);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 4rem rgba(var(--accent-rgb), 0.15), inset 0 0 3rem rgba(var(--accent-rgb), 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  animation: voice-field-pulse 3.4s ease-out infinite;
}

.voice-field::after {
  animation-delay: 1.7s;
}

body.effect-ai::before {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background: rgba(245, 243, 237, 0.12);
  backdrop-filter: blur(0.7px) saturate(0.9);
  animation: ai-frost-in 800ms ease both;
}

body.effect-ai .ai-layer {
  opacity: 1;
}

body.effect-ai .ai-cloud {
  opacity: 1;
}

body.effect-ai .voice-field {
  animation: voice-field-in 900ms 240ms ease both;
}

body.effect-ai .site-shell {
  filter: contrast(0.97) saturate(0.88);
}

/* Digital switches the whole page from paper to a live responsive screen. */
.digital-layer {
  background-image:
    radial-gradient(circle, rgba(255, 70, 70, 0.22) 0 0.65px, transparent 0.85px),
    radial-gradient(circle, rgba(70, 255, 130, 0.2) 0 0.65px, transparent 0.85px),
    radial-gradient(circle, rgba(70, 130, 255, 0.22) 0 0.65px, transparent 0.85px);
  background-position: 0 0, 2px 0, 1px 2px;
  background-size: 4px 4px;
}

.screen-scan {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 18%;
  background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.16), transparent);
  filter: blur(0.4rem);
  animation: screen-scan 4.8s linear infinite;
}

.responsive-stage {
  position: absolute;
  top: 50%;
  left: 69%;
  width: min(44rem, 48vw);
  height: min(35rem, 68vh);
  transform: translate(-50%, -50%);
}

.device-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 0.45rem;
  background: rgba(9, 12, 15, 0.78);
  box-shadow: 0 0 2.5rem rgba(var(--accent-rgb), 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(2rem) scale(0.9);
}

.device-frame > span {
  display: block;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
  color: rgba(245, 243, 237, 0.7);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.frame-desktop {
  top: 5%;
  left: 3%;
  width: 72%;
  height: 55%;
}

.frame-tablet {
  right: 3%;
  bottom: 4%;
  width: 43%;
  height: 55%;
}

.frame-mobile {
  bottom: 0;
  left: 21%;
  width: 23%;
  height: 43%;
}

.device-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 7%;
  height: calc(100% - 1.6rem);
  padding: 8%;
}

.device-layout i {
  display: block;
  min-height: 0.35rem;
  border: 1px solid rgba(245, 243, 237, 0.18);
  background: rgba(245, 243, 237, 0.055);
}

.device-layout i:first-child {
  grid-column: 1 / -1;
  height: 18%;
  border: 0;
  background: var(--accent);
}

.device-layout i:last-child {
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.42);
}

.frame-tablet .device-layout,
.frame-mobile .device-layout {
  grid-template-columns: 1fr;
}

body.effect-digital {
  --paper: #090c0f;
  --paper-rgb: 9, 12, 15;
  --ink: #f4f5ef;
  --muted: #aeb5ad;
  --line: rgba(244, 245, 239, 0.16);
  --soft-line: rgba(32, 211, 74, 0.075);
}

body.effect-digital .digital-layer {
  opacity: 0.82;
}

body.effect-digital .device-frame {
  animation: device-online 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-digital .frame-tablet { animation-delay: 180ms; }
body.effect-digital .frame-mobile { animation-delay: 340ms; }

body.effect-digital h1 {
  text-shadow: 0 0 1.7rem rgba(var(--accent-rgb), 0.13);
}

body.effect-digital .skill-tag {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(var(--accent-rgb), 0.04);
}

/* Motion is a slow, cinematic kinetic-type sequence. */
.motion-layer span {
  position: absolute;
  top: 0;
  left: -24%;
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), var(--accent), rgba(var(--accent-rgb), 0.18), transparent);
  filter: blur(0.35rem);
  transform: skewX(-12deg);
}

body.effect-motion .motion-layer {
  opacity: 0.34;
}

body.effect-motion .motion-layer span {
  animation: motion-light-pass 2.9s cubic-bezier(0.65, 0, 0.35, 1) both;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
  isolation: isolate;
  z-index: 1;
  transition: filter 520ms ease;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1.1rem, env(safe-area-inset-top)) var(--pad) 0;
}

.identity {
  padding: 0.7rem 0;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.utilities {
  display: flex;
  gap: 0.55rem;
}

.utility-button {
  position: relative;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(var(--paper-rgb), 0.78);
  box-shadow: 0 0.35rem 0.9rem rgba(17, 18, 16, 0.07);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.utility-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-2px);
}

.utility-button:active {
  transform: translateY(0) scale(0.96);
}

.linkedin-link span {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.motion-icon {
  position: relative;
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: orbit-spin 3.8s linear infinite;
}

.motion-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.motion-icon i:nth-child(2) { top: 4%; }
.motion-icon i:nth-child(3) { top: 96%; }

.motion-toggle[aria-pressed="true"] .motion-icon {
  animation: none;
}

.motion-toggle[aria-pressed="true"] .motion-icon::after {
  position: absolute;
  top: -0.12rem;
  left: 50%;
  width: 1px;
  height: 1.45rem;
  content: "";
  background: currentColor;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(26rem, 0.92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0 clamp(1rem, 3vw, 3rem);
  align-items: center;
  min-height: 0;
  padding: clamp(1rem, 2.2vh, 2rem) var(--pad) clamp(1rem, 2.5vh, 2.4rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

h1,
.hero-copy p,
.playground-hint,
.site-footer,
.dialog-header p,
h2,
.form-note,
.form-status {
  margin: 0;
}

h1 {
  max-width: 62rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: clamp(3.25rem, 6.35vw, 7.9rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.83;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:first-child {
  font-size: 0.645em;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 35rem;
  margin-top: clamp(1.4rem, 3vh, 2.5rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.playground {
  position: relative;
  align-self: stretch;
  min-height: clamp(25rem, 66vh, 45rem);
  touch-action: none;
}

.playground::before {
  position: absolute;
  inset: 8% 2% 6%;
  border: 1px dashed rgba(17, 18, 16, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
}

.playground::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0, rgba(var(--accent-rgb), 0.08) 36%, transparent 72%);
  transform: translate(-50%, -50%);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

.playground.is-active::after {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(2.4);
}

.playground-hint {
  position: absolute;
  top: 2%;
  left: 50%;
  z-index: 3;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hint-mobile {
  display: none;
}

.skill-tag {
  --x: 0px;
  --y: 0px;
  --orbit-x: 0px;
  --orbit-y: 0px;
  --rotation: 0deg;
  --orbit-rotation: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  min-width: clamp(6rem, 8vw, 8.2rem);
  min-height: clamp(3.7rem, 5.4vw, 5.4rem);
  padding: 0.75rem 1.3rem;
  place-items: center;
  border: 1px solid rgba(17, 18, 16, 0.15);
  border-radius: 1.75rem;
  background: rgba(var(--paper-rgb), 0.92);
  box-shadow:
    0 0.8rem 1.3rem rgba(17, 18, 16, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(0.85rem, 1.15vw, 1.15rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  transform:
    translate(-50%, -50%)
    translate3d(
      calc(var(--x) + var(--orbit-x)),
      calc(var(--y) + var(--orbit-y)),
      0
    )
    rotate(calc(var(--rotation) + var(--orbit-rotation)));
  transform-origin: center;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.skill-tag:hover,
.skill-tag:focus-visible {
  z-index: 8;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1.1rem 2rem rgba(17, 18, 16, 0.18);
}

.skill-tag.is-dragging {
  z-index: 12;
  cursor: grabbing;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 1.5rem 2.5rem rgba(var(--accent-rgb), 0.28);
}

.skill-tag[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18), 0 1rem 2rem rgba(17, 18, 16, 0.13);
}

.skill-tag.is-arriving {
  animation: tag-arrive 620ms var(--arrival-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tag-design { --rotation: -7deg; }
.tag-wordpress { --rotation: 7deg; min-width: clamp(9.5rem, 13vw, 13rem); }
.tag-code { --rotation: -4deg; }
.tag-ai { --rotation: 6deg; }
.tag-motion { --rotation: 5deg; min-width: clamp(7.5rem, 10vw, 10rem); }
.tag-digital { --rotation: -5deg; min-width: clamp(8rem, 11vw, 11rem); }
.tag-print { --rotation: 5deg; }
.tag-events { --rotation: 2deg; }

.hero-action {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  justify-self: center;
}

.contact-button,
.send-button {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  min-width: min(22rem, calc(100vw - (2 * var(--pad))));
  padding: 1.1rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0.8rem 2rem rgba(var(--accent-rgb), 0.18);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: gap 250ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-button:hover,
.send-button:hover {
  gap: 3rem;
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}

.contact-button:active,
.send-button:active {
  transform: translateY(0) scale(0.98);
}

.site-footer {
  position: relative;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad) max(0.9rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-footer span[aria-hidden="true"] {
  color: var(--accent);
  font-size: 0.45rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.contact-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.contact-dialog::backdrop {
  background: rgba(17, 18, 16, 0.55);
  backdrop-filter: blur(8px);
  animation: fade-in 220ms ease both;
}

.dialog-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(46rem, 100%);
  min-height: 100%;
  padding: max(1.2rem, env(safe-area-inset-top)) clamp(1.25rem, 4vw, 4rem) max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    linear-gradient(var(--soft-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-line) 1px, transparent 1px),
    var(--paper);
  background-size: 5rem 5rem;
  animation: panel-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 8vh, 6rem);
}

.dialog-header p {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.dialog-close {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0 0 0.15rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 220ms ease;
}

.dialog-close:hover {
  background: var(--ink);
  color: white;
  transform: rotate(90deg);
}

#contact-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.contact-form-view {
  display: flex;
  flex: 1;
  flex-direction: column;
}

h2 {
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#contact-form label {
  display: block;
  margin-bottom: 1.4rem;
}

#contact-form label > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  resize: vertical;
  transition: border-color 180ms ease;
}

#contact-form textarea {
  min-height: 6.8rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.website-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.send-button {
  width: 100%;
  min-width: 0;
  margin-top: auto;
}

.form-note,
.form-status {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.form-status {
  min-height: 1.2rem;
  color: #a11616;
  font-size: 0.8rem;
}

.form-status.is-success {
  color: #087a2b;
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-success {
  position: relative;
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  outline: 0;
}

#contact-form.is-sent .contact-form-view {
  display: none;
}

#contact-form.is-sent .form-success {
  display: flex;
  animation: success-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-glow {
  width: clamp(6rem, 18vw, 9rem);
  aspect-ratio: 1;
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.95) 0 14%, rgba(var(--accent-rgb), 0.48) 42%, rgba(var(--accent-rgb), 0) 72%);
  filter: blur(1px);
  animation: success-pulse 2.8s ease-in-out infinite;
}

.success-kicker {
  margin-bottom: 0.8rem;
  color: #087a2b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.form-success h2 {
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(4.5rem, 10vw, 7.5rem);
}

.success-copy {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}

.success-close-button {
  width: 100%;
  margin-top: auto;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes success-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.screen-reader-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.effect-code {
  background-size: 2.1rem 2.1rem;
}

body.effect-print::after {
  opacity: 0.16;
  mix-blend-mode: multiply;
}

body.effect-print h1 {
  text-shadow: 1.5px 0 rgba(0, 174, 239, 0.5), -1.5px 0 rgba(236, 0, 140, 0.42);
}

body.effect-digital .skill-tag {
  border-radius: 0.4rem;
}

body.effect-design h1 {
  font-style: italic;
  animation: design-shift 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.effect-ai {
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
}

body.effect-events .playground::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(3.5);
}

body.effect-motion h1 span:first-child {
  transform-origin: left center;
  animation: cinematic-title-a 2.85s cubic-bezier(0.65, 0, 0.35, 1) both;
}

body.effect-motion h1 span:last-child {
  transform-origin: right center;
  animation: cinematic-title-b 2.85s 80ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

body.effect-motion .hero-copy p {
  animation: cinematic-subtitle 2.85s 100ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.motion-paused .effect-stage *,
.motion-paused .motion-icon,
.motion-paused .skill-tag.is-arriving {
  animation-play-state: paused !important;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes builder-toolbar-in {
  from { opacity: 0; transform: translate(-50%, -1rem); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes builder-panel-in {
  from { opacity: 0; transform: translate(-50%, -43%) scale(0.92) rotate(2deg); }
  to { opacity: 0.82; transform: translate(-50%, -43%) scale(1) rotate(0); }
}

@keyframes builder-cursor {
  0% { opacity: 0; transform: translate(-6rem, 5rem); }
  18% { opacity: 1; }
  55% { opacity: 1; transform: translate(3rem, -2rem); }
  72% { transform: translate(5rem, 1rem) scale(0.78); }
  100% { opacity: 0; transform: translate(7rem, -4rem); }
}

@keyframes ai-breathe {
  0% { scale: 0.92; filter: blur(clamp(2rem, 5vw, 5.5rem)); }
  100% { scale: 1.09; filter: blur(clamp(2.8rem, 6vw, 6.5rem)); }
}

@keyframes voice-field-wave {
  0% { transform: scaleY(0.12); opacity: 0.3; }
  100% { transform: scaleY(var(--voice-scale, 0.2)); opacity: 0.9; }
}

@keyframes voice-field-in {
  from { opacity: 0; transform: translateY(-50%) scaleX(0.82); }
  to { opacity: 0.74; transform: translateY(-50%) scaleX(1); }
}

@keyframes voice-field-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  12% { opacity: 0.58; }
  76%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes ai-frost-in {
  from { opacity: 0; backdrop-filter: blur(0) saturate(1); }
  to { opacity: 1; backdrop-filter: blur(0.7px) saturate(0.9); }
}

@keyframes screen-scan {
  from { transform: translateY(-15vh); }
  to { transform: translateY(130vh); }
}

@keyframes device-online {
  0% { opacity: 0; transform: translateY(2rem) scale(0.9); filter: blur(0.25rem); }
  70% { transform: translateY(-0.25rem) scale(1.015); }
  100% { opacity: 0.88; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes motion-light-pass {
  0% { transform: translateX(0) skewX(-12deg); opacity: 0; }
  18% { opacity: 0.7; }
  72% { opacity: 0.7; }
  100% { transform: translateX(920%) skewX(-12deg); opacity: 0; }
}

@keyframes code-drift {
  0% { transform: translateY(-12vh); }
  100% { transform: translateY(145vh); }
}

@keyframes wp-core-in {
  0% { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  70% { transform: scale(1.12) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes wp-module-in {
  from { opacity: 0; transform: translate(var(--wp-x), var(--wp-y)) scale(0.65) rotate(12deg); }
  to { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
}

@keyframes connector-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 0.7; clip-path: inset(0); }
}

@keyframes voice-pulse {
  0% { opacity: 0.8; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(2.1); }
}

@keyframes voice-bar {
  to { height: 100%; }
}

@keyframes node-online {
  0% { opacity: 0; transform: scale(0.6); }
  65% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes network-online {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 0.48; clip-path: inset(0); }
}

@keyframes print-pass {
  from { transform: translateX(-30%); }
  to { transform: translateX(30%); }
}

@keyframes beam-sweep {
  0% { transform: rotate(calc(var(--beam-angle, 12deg) - 12deg)); opacity: 0.4; }
  100% { transform: rotate(calc(var(--beam-angle, 12deg) + 14deg)); opacity: 1; }
}

@keyframes tag-arrive {
  from { opacity: 0; filter: blur(0.35rem); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes design-shift {
  0% { transform: skewX(0); letter-spacing: -0.045em; }
  48% { transform: skewX(-8deg) scaleX(1.07); letter-spacing: -0.065em; }
  100% { transform: skewX(-4deg); letter-spacing: -0.045em; }
}

@keyframes cinematic-title-a {
  0%, 10% { opacity: 1; transform: translateX(0) skewX(0); clip-path: inset(0); letter-spacing: -0.035em; }
  32% { opacity: 0; transform: translateX(38%) skewX(-10deg); clip-path: inset(0 0 0 100%); letter-spacing: 0.01em; }
  48% { opacity: 0; transform: translateX(-28%) skewX(8deg); clip-path: inset(0 100% 0 0); }
  82% { opacity: 1; transform: translateX(0) skewX(0); clip-path: inset(0); letter-spacing: -0.02em; }
  100% { opacity: 1; transform: translateX(0); letter-spacing: -0.035em; }
}

@keyframes cinematic-title-b {
  0%, 12% { opacity: 1; transform: translateX(0); clip-path: inset(0); letter-spacing: -0.045em; }
  34% { opacity: 0; transform: translateX(-42%) skewX(8deg); clip-path: inset(0 100% 0 0); letter-spacing: 0.02em; }
  49% { opacity: 0; transform: translateX(30%) skewX(-7deg); clip-path: inset(0 0 0 100%); }
  84% { opacity: 1; transform: translateX(0); clip-path: inset(0); letter-spacing: -0.025em; }
  100% { opacity: 1; transform: translateX(0); letter-spacing: -0.045em; }
}

@keyframes cinematic-subtitle {
  0%, 20% { opacity: 1; transform: translateY(0); }
  35%, 54% { opacity: 0; transform: translateY(0.8rem); }
  82%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes panel-in {
  from { transform: translateX(100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@media (min-width: 1180px) and (min-height: 760px) {
  .hero {
    padding-top: 0;
    padding-bottom: 1.25rem;
  }

  .hero-copy {
    padding-left: 1.5vw;
  }
}

@media (max-width: 980px) {
  .builder-code-panel {
    top: 68%;
    left: 66%;
    width: min(22rem, 43vw);
  }

  .responsive-stage {
    top: 68%;
    left: 50%;
    width: min(42rem, 78vw);
    height: min(31rem, 47vh);
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    padding-top: clamp(2.8rem, 8vh, 5.5rem);
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(4.2rem, 11.6vw, 7rem);
  }

  h1 span:first-child {
    font-size: min(0.6em, 6.5vw);
  }

  .hero-copy p {
    max-width: 30rem;
  }

  .playground {
    width: min(100%, 47rem);
    min-height: clamp(25rem, 50vh, 34rem);
    margin: 1rem auto 0;
  }

  .hero-action {
    margin-top: 0.75rem;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: clamp(1.1rem, 5vw, 1.55rem);
  }

  body {
    background-size: 4.25rem 4.25rem;
  }

  .site-shell {
    overflow: hidden;
  }

  .site-header {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .identity {
    font-size: 0.74rem;
  }

  .utilities {
    gap: 0.4rem;
  }

  .utility-button {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }

  .builder-toolbar {
    top: 4.6rem;
    max-width: calc(100vw - (2 * var(--pad)));
  }

  .builder-toolbar span {
    padding: 0.5rem 0.63rem;
    font-size: 0.46rem;
  }

  .builder-code-panel {
    top: 67%;
    left: 50%;
    width: min(20rem, 86vw);
  }

  .builder-code-panel pre {
    padding: 0.85rem;
    font-size: 0.54rem;
    line-height: 1.45;
  }

  .builder-cursor {
    top: 57%;
    left: 45%;
  }

  .voice-field {
    left: -14%;
    width: 128%;
    height: 40vh;
    gap: clamp(0.18rem, 1.25vw, 0.45rem);
  }

  .voice-field::before,
  .voice-field::after {
    width: 112vw;
    height: 72%;
  }

  .ai-cloud {
    width: clamp(30rem, 130vw, 44rem);
  }

  .responsive-stage {
    top: 66%;
    width: 94vw;
    height: min(27rem, 46vh);
  }

  .frame-desktop {
    top: 2%;
    left: 1%;
    width: 73%;
  }

  .frame-tablet {
    right: 1%;
  }

  .frame-mobile {
    left: 18%;
    width: 25%;
  }

  .print-layer {
    inset: 0.55rem;
  }

  .print-layer p {
    bottom: 1.45rem;
    left: 1.5rem;
  }

  .colour-check {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .light-beam {
    width: 12rem;
  }

  .hero {
    gap: 0;
    padding-top: clamp(3.7rem, 8vh, 5.5rem);
    padding-bottom: 1.25rem;
  }

  h1 {
    width: 100%;
    font-size: clamp(4rem, 20vw, 6.1rem);
    line-height: 0.84;
  }

  h1 span:first-child {
    font-size: min(0.47em, 9.2vw);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .hero-copy p {
    max-width: 21rem;
    margin-top: 1.55rem;
    font-size: clamp(1rem, 4.6vw, 1.18rem);
    line-height: 1.18;
  }

  .desktop-break {
    display: none;
  }

  .playground {
    min-height: clamp(24rem, 51svh, 30rem);
    margin-top: clamp(2.2rem, 6vh, 3.8rem);
  }

  .playground::before {
    inset: 4% 0 5%;
  }

  .playground-hint {
    top: -0.5rem;
  }

  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }

  .skill-tag {
    min-width: 5.8rem;
    min-height: 3.55rem;
    padding: 0.65rem 1rem;
    border-radius: 1.35rem;
    font-size: 0.78rem;
  }

  .tag-wordpress { min-width: 9rem; }
  .tag-motion { min-width: 7.2rem; }
  .tag-digital { min-width: 7.6rem; }

  .hero-action {
    width: 100%;
    margin-top: 1.5rem;
  }

  .contact-button {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.3rem;
  }

  .site-footer {
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .dialog-panel {
    width: 100%;
  }

  .dialog-header {
    margin-bottom: clamp(2rem, 7vh, 4rem);
  }

  h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 620px) {
    body {
      padding-bottom: max(8rem, 20svh, env(safe-area-inset-bottom));
    }

    .site-shell {
      min-height: -webkit-fill-available;
    }
  }
}

@media (max-width: 380px) {
  h1 span:first-child {
    font-size: 8.8vw;
  }

  .skill-tag {
    min-width: 5.2rem;
    min-height: 3.25rem;
    padding-inline: 0.85rem;
    font-size: 0.72rem;
  }

  .tag-wordpress { min-width: 8.2rem; }
}

@media (max-height: 720px) and (max-width: 620px) {
  .hero {
    padding-top: 2.1rem;
  }

  .hero-copy p {
    margin-top: 1rem;
  }

  .playground {
    min-height: 21rem;
    margin-top: 1.5rem;
  }
}

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