@font-face {
  font-family: "Avenir Next Local";
  src: local("Avenir Next"), local("AvenirNext-Regular"), local("Avenir Next Regular");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-primary: "Avenir Next Local", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --bg: #000000;
  --bg-soft: #07090d;
  --surface: rgba(12, 14, 18, 0.82);
  --surface-strong: rgba(18, 21, 27, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.26);
  --text: #f4f6f8;
  --text-muted: #aab1bb;
  --accent: #f4f6f8;
  --accent-soft: #bdc4ce;
  --cursor-hue: 205;
  --cursor-saturation: 10%;
  --cursor-lightness: 88%;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --interaction-strength: 0;
  --header-height: 64px;
  --radius: 20px;
  --container-width: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-primary);
  font-synthesis: none;
  line-height: 1.55;
}

::selection {
  color: #080b10;
  background: var(--accent);
}

button,
input,
textarea {
  font: inherit;
}

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

/* Background — black with white stars; blue activates only near magnetic targets */
.space-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.space-background::before {
  content: "";
  position: absolute;
  left: var(--pointer-x);
  top: var(--pointer-y);
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: calc(var(--interaction-strength) * 0.72);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    hsl(var(--cursor-hue) var(--cursor-saturation) var(--cursor-lightness) / 0.14),
    hsl(var(--cursor-hue) var(--cursor-saturation) 58% / 0.05) 42%,
    transparent 72%
  );
  transition: opacity 120ms ease;
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.space-background__glow {
  display: none;
}

.space-background__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 72%, rgba(0, 0, 0, 0.3) 100%),
    radial-gradient(circle at center, transparent 0 58%, rgba(0, 0, 0, 0.24) 100%);
}

.cursor-aura {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(
    circle,
    hsl(var(--cursor-hue) var(--cursor-saturation) var(--cursor-lightness) / 0.15),
    hsl(var(--cursor-hue) var(--cursor-saturation) 58% / 0.045) 44%,
    transparent 72%
  );
  transition: opacity 120ms ease;
}

.cursor-aura.is-visible {
  opacity: calc(0.08 + var(--interaction-strength) * 0.38);
}

html[data-background-mode="static"] .starfield {
  opacity: 0.9;
}

/* Occasional shooting-star Easter egg */
.shooting-star {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 24;
  width: 104px;
  height: 44px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(223, 237, 255, 0.55));
  cursor: pointer;
}

.shooting-star.is-active {
  visibility: visible;
  pointer-events: auto;
}

.shooting-star:focus-visible {
  outline: 1px solid rgba(239, 246, 255, 0.85);
  outline-offset: 6px;
  border-radius: 999px;
}

.shooting-star__tail {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 82px;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(171, 203, 242, 0.12) 26%, rgba(224, 239, 255, 0.72) 78%, #ffffff 100%);
  box-shadow: 0 0 8px rgba(202, 225, 255, 0.38);
}

.shooting-star__tail::before,
.shooting-star__tail::after {
  content: "";
  position: absolute;
  right: 0;
  width: 68px;
  height: 1px;
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(218, 235, 255, 0.38));
}

.shooting-star__tail::before {
  transform: rotate(4deg);
}

.shooting-star__tail::after {
  transform: rotate(-4deg);
}

.shooting-star__core {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
  background: #ffffff;
  box-shadow:
    0 0 5px #ffffff,
    0 0 13px rgba(204, 226, 255, 0.95),
    0 0 26px rgba(148, 190, 240, 0.52);
}

.shooting-star__spark {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 2px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.95), transparent);
}

.shooting-star__spark--two {
  transform: translateY(-50%) rotate(90deg);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(230, 239, 255, 0.09);
  background: rgba(6, 8, 13, 0.66);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.site-brand,
.header-nav a,
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 10px 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-brand:hover,
.header-nav a:hover,
.site-footer a:hover {
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

/* Shared layout */
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.page-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 76px) clamp(20px, 5vw, 72px) 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-inner {
  width: min(100%, var(--container-width));
  margin: 0 auto;
}

.section-copy {
  max-width: 580px;
}

h1,
h2,
h3 {
  font-family: var(--font-primary);
  color: var(--text);
  font-weight: 500;
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

p {
  color: var(--text-muted);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--accent-soft);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.typed-title {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.1em;
}

.typed-content {
  display: inline;
}

.typing-cursor {
  margin-left: 4px;
  color: var(--accent);
  font-weight: 300;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  animation: cursor-blink 760ms steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 44% { opacity: 1; }
  45%, 100% { opacity: 0; }
}

/* Hero */
.hero-section {
  text-align: center;
}

.hero-layout {
  display: grid;
  place-items: center;
}

.hero-copy {
  max-width: 980px;
  display: grid;
  justify-items: center;
}

.hero-copy h1 {
  max-width: 1000px;
  margin-bottom: 25px;
  font-size: clamp(2.7rem, 7vw, 7rem);
  line-height: 0.94;
}

.hero-description {
  max-width: 760px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.button--primary {
  color: #080b10;
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(195, 216, 248, 0.13);
}

.button--quiet {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

/* Portfolio */
.portfolio-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card {
  min-height: 238px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--surface-strong));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.portfolio-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), 0 0 34px rgba(255, 255, 255, 0.035);
}

.portfolio-preview-link,
.portfolio-preview-frame-wrap {
  width: 100%;
  height: 100%;
  min-height: 238px;
  display: block;
}

.portfolio-preview-frame-wrap {
  position: relative;
  overflow: hidden;
}

.portfolio-preview-frame {
  width: 125%;
  height: 125%;
  min-height: 300px;
  border: 0;
  pointer-events: none;
  transform: scale(0.8);
  transform-origin: top left;
  filter: saturate(0.78) contrast(1.03) brightness(0.82);
}

.portfolio-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 7, 11, 0.24) 60%, rgba(5, 7, 11, 0.94) 100%);
}

.project-meta {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: 5px;
}

.project-meta span,
.portfolio-card--placeholder span {
  color: var(--accent-soft);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-meta strong,
.portfolio-card--placeholder strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.portfolio-card--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 15%, rgba(78, 155, 255, 0.13), transparent 35%),
    linear-gradient(145deg, rgba(17, 22, 31, 0.74), rgba(11, 15, 22, 0.88));
}


/* Neutral depth; blue appears only during magnetic proximity */
.portfolio-card,
.testimonial,
.contact-form {
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.portfolio-card:hover,
.testimonial:hover {
  border-color: var(--line-bright);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.42);
}

.portfolio-card.is-magnetized,
.testimonial.is-magnetized,
.contact-form:focus-within {
  border-color: hsl(var(--cursor-hue) 100% 70% / calc(0.18 + var(--magnet-strength, 0) * 0.35));
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.46),
    0 0 34px hsl(var(--cursor-hue) 100% 58% / calc(var(--magnet-strength, 0) * 0.11));
}

.site-header {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

/* About — intentionally open, with no background panels */
.about-section {
  overflow: hidden;
}

.about-layout {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.about-heading {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.about-heading h2 {
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.about-heading > p:last-child {
  max-width: 60ch;
}

.about-people {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 400px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  perspective: 1400px;
}

.about-person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 30px;
}

.about-line {
  width: 88px;
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, transparent, rgba(235, 243, 255, 0.9), transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.about-role {
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.about-name {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.about-person > p:last-child {
  max-width: 38ch;
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-person--darren {
  align-items: flex-end;
  text-align: right;
}

.about-person--heath {
  align-items: flex-start;
  text-align: left;
}

.about-model {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  transform-style: preserve-3d;
}

.model-halo {
  position: absolute;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 44%, transparent 70%);
  filter: blur(4px);
  animation: halo-breathe 6s ease-in-out infinite;
}

.scan-shell {
  width: 100%;
  min-height: 410px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-model {
  width: 100%;
  height: 410px;
  z-index: 1;
  cursor: grab;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-bar-height: 0;
}

.hero-model:active {
  cursor: grabbing;
}

.hero-model::part(default-progress-bar),
.hero-model::part(default-ar-button) {
  display: none;
}

.model-caption {
  position: absolute;
  bottom: 8px;
  z-index: 2;
  color: rgba(222, 231, 244, 0.58);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.68; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Model loading */
.model-poster {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.model-poster__orb {
  width: 82px;
  aspect-ratio: 1;
  border: 1px solid rgba(225, 237, 255, 0.27);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.32), rgba(164, 193, 232, 0.07) 38%, transparent 68%);
  box-shadow: 0 0 38px rgba(181, 210, 249, 0.14), inset 0 0 24px rgba(255, 255, 255, 0.05);
  animation: model-loader 1.8s ease-in-out infinite;
}

.model-status {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 7px 11px;
  border: 1px solid rgba(230, 239, 252, 0.13);
  border-radius: 999px;
  background: rgba(5, 8, 13, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(224, 234, 248, 0.72);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 240ms ease, color 240ms ease;
}

.model-status__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(212, 230, 255, 0.82);
  box-shadow: 0 0 12px rgba(190, 220, 255, 0.55);
  animation: status-blink 1.1s ease-in-out infinite;
}

.model-status.is-loaded {
  opacity: 0;
  pointer-events: none;
}

.model-status.is-error {
  color: #ffd8d8;
  border-color: rgba(255, 180, 180, 0.25);
  white-space: normal;
}

.model-status.is-error .model-status__dot {
  background: #ff9e9e;
  animation: none;
}

@keyframes model-loader {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes status-blink {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* Testimonials */
.testimonial-shell {
  display: grid;
  gap: 38px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimonial {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 22, 31, 0.74), rgba(10, 14, 21, 0.88));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.23);
}

.testimonial p {
  color: #dce3ee;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.testimonial strong {
  color: var(--accent-soft);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 239, 255, 0.1);
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-source::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
}

.review-source svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-source--word::before {
  display: none;
}

/* Contact */
.contact-form {
  display: grid;
  gap: 15px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 12, 16, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #dce3ee;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(230, 239, 255, 0.15);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(4, 7, 11, 0.7);
  padding: 12px 13px;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(224, 237, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(199, 220, 250, 0.07);
}

.contact-form button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #080a0d;
  background: linear-gradient(180deg, #f4f6f8, #cfd5dc);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form button.is-magnetized,
.button.is-magnetized,
.header-nav a.is-magnetized,
.site-brand.is-magnetized,
.site-footer a.is-magnetized {
  border-color: hsl(var(--cursor-hue) 100% 72% / 0.62);
  box-shadow: 0 0 24px hsl(var(--cursor-hue) 100% 58% / calc(var(--magnet-strength, 0) * 0.22));
  text-shadow: 0 0 14px hsl(var(--cursor-hue) 100% 70% / calc(var(--magnet-strength, 0) * 0.3));
}


.form-message {
  min-height: 1.4em;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 6, 10, 0.72);
  
}

.site-footer p {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Reveal and magnetic motion */
.magnetic,
[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 0px;
  --reveal-scale: 1;
  --reveal-rotate: 0deg;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --magnet-strength: 0;
  --warp-x: 0px;
  --warp-y: 0px;
  --warp-rotate: 0deg;
  transform:
    translate3d(
      calc(var(--reveal-x) + var(--magnet-x) + var(--warp-x)),
      calc(var(--reveal-y) + var(--magnet-y) + var(--warp-y)),
      0
    )
    rotate(calc(var(--reveal-rotate) + var(--warp-rotate)))
    scale(var(--reveal-scale));
}

.magnetic {
  transition: transform 420ms var(--ease-out), color 180ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.magnetic.is-magnetized {
  will-change: transform;
}

.reveal-ready [data-reveal]:not(.is-visible) {
  will-change: transform, opacity;
}

.magnetic.is-magnetized {
  transition-duration: 100ms, 180ms, 220ms, 220ms;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  --reveal-y: 34px;
  transition: opacity 760ms var(--ease-out), transform 900ms var(--ease-out);
}

.reveal-ready [data-reveal="left"] {
  --reveal-x: -52px;
  --reveal-y: 0px;
}

.reveal-ready [data-reveal="right"] {
  --reveal-x: 52px;
  --reveal-y: 0px;
}

.reveal-ready [data-reveal="top"] {
  --reveal-y: -36px;
}

.reveal-ready [data-reveal="card"] {
  --reveal-y: 44px;
  --reveal-scale: 0.97;
}

.reveal-ready [data-reveal="person-left"] {
  --reveal-x: -110px;
  --reveal-y: 14px;
  --reveal-rotate: -2deg;
}

.reveal-ready [data-reveal="person-right"] {
  --reveal-x: 110px;
  --reveal-y: 14px;
  --reveal-rotate: 2deg;
}

.reveal-ready [data-reveal="model"] {
  --reveal-y: 64px;
  --reveal-scale: 0.82;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  --reveal-x: 0px;
  --reveal-y: 0px;
  --reveal-scale: 1;
  --reveal-rotate: 0deg;
}

/* Responsive */
@media (max-width: 960px) {
  .portfolio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    max-width: 720px;
  }

  .about-people {
    max-width: 720px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-person {
    align-items: center;
    text-align: center;
  }

  .about-person > p:last-child {
    max-width: 54ch;
  }

  .about-model {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .about-person--darren { order: 1; }
  .about-model { order: 2; }
  .about-person--heath { order: 3; }
}

@media (max-width: 720px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding-inline: 13px;
  }

  .site-brand {
    font-size: 0.59rem;
    letter-spacing: 0.12em;
  }

  .header-nav a {
    padding: 9px 6px;
    font-size: 0.51rem;
    letter-spacing: 0.07em;
  }

  .page-section {
    min-height: auto;
    padding: calc(var(--header-height) + 72px) 18px 80px;
  }

  .hero-section {
    min-height: 100svh;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4.7rem);
  }

  .portfolio-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 42px;
  }

  .about-person {
    padding-block: 20px;
  }

  .about-heading h2 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .about-model,
  .scan-shell,
  .hero-model {
    min-height: 350px;
    height: 350px;
  }

  .cursor-aura {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    padding-block: 8px;
  }

  .site-brand {
    width: 100%;
    text-align: center;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
  }

  .page-section {
    padding-top: 122px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}

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

  .space-background__glow,
  .shooting-star,
  .model-halo,
  .model-poster__orb,
  .model-status__dot,
  .typing-cursor {
    animation: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    --reveal-x: 0px;
    --reveal-y: 0px;
    --reveal-scale: 1;
    --reveal-rotate: 0deg;
    transition: none;
  }

  .magnetic {
    transform: none;
    transition: none;
  }

  .cursor-aura {
    display: none;
  }
}


/* Hidden dinosaur page */
.dinosaur-page {
  min-height: 100vh;
}

.dino-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(230, 239, 255, 0.1);
  background: rgba(6, 8, 13, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dino-brand,
.dino-back {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dino-brand {
  color: var(--text-muted);
}

.dino-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 180ms ease, transform 180ms ease;
}

.dino-back:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.dino-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 72px) 24px 64px;
}

.dino-content {
  width: min(100%, 980px);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.dino-content h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.dino-intro {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.dino-scene {
  position: relative;
  width: min(100%, 820px);
  aspect-ratio: 16 / 9;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.dino-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 72%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(156, 193, 236, 0.2), transparent 68%);
  filter: blur(14px);
}

.dino-moon {
  position: absolute;
  left: 14%;
  top: 10%;
  width: clamp(88px, 15vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 35%, rgba(255, 255, 255, 0.98), rgba(218, 232, 250, 0.88) 38%, rgba(134, 167, 209, 0.34) 68%, transparent 70%);
  box-shadow: 0 0 48px rgba(198, 222, 255, 0.22);
  opacity: 0.82;
}

.dino-illustration {
  position: relative;
  z-index: 2;
  width: min(92%, 760px);
  overflow: visible;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
  animation: dinosaur-breathe 4.8s ease-in-out infinite;
}

.dino-eye {
  animation: dinosaur-blink 5.5s steps(1) infinite;
  transform-origin: center;
}

.dino-ground {
  position: absolute;
  left: 50%;
  bottom: 13%;
  z-index: 1;
  width: 66%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(211, 230, 253, 0.34), transparent);
}

.dino-actions {
  display: flex;
  justify-content: center;
}

@keyframes dinosaur-breathe {
  0%, 100% { transform: translateY(0) rotate(-0.2deg); }
  50% { transform: translateY(-7px) rotate(0.35deg); }
}

@keyframes dinosaur-blink {
  0%, 47%, 51%, 100% { transform: scaleY(1); }
  48%, 50% { transform: scaleY(0.12); }
}

@media (max-width: 640px) {
  .dino-header {
    padding-inline: 18px;
  }

  .dino-brand {
    display: none;
  }

  .dino-scene {
    min-height: 250px;
  }
}

/* Functional contact form states */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.field-optional {
  color: var(--text-soft, rgba(255, 255, 255, 0.48));
  font-size: 0.76em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none !important;
}

.form-message.is-success {
  color: #b8f5d0;
}

.form-message.is-error {
  color: #ffb8b8;
}

/* About biography hover illumination — open layout, no background panel */
.about-person > p:last-child {
  position: relative;
  isolation: isolate;
  transition:
    color 260ms ease,
    text-shadow 320ms ease,
    transform 360ms var(--ease-out);
}

.about-person > p:last-child::before {
  content: "";
  position: absolute;
  inset: -28px -34px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  background: radial-gradient(
    circle at center,
    rgba(93, 185, 255, 0.16),
    rgba(68, 139, 226, 0.055) 42%,
    transparent 72%
  );
  filter: blur(12px);
  transition: opacity 280ms ease, transform 420ms var(--ease-out);
}

.about-person .about-name,
.about-person .about-line {
  transition:
    color 260ms ease,
    text-shadow 320ms ease,
    width 380ms var(--ease-out),
    background 280ms ease,
    box-shadow 280ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-person:hover > p:last-child {
    color: #f2f8ff;
    text-shadow: 0 0 22px rgba(111, 197, 255, 0.2);
    transform: translateY(-2px);
  }

  .about-person:hover > p:last-child::before {
    opacity: 1;
    transform: scale(1);
  }

  .about-person:hover .about-name {
    color: #ffffff;
    text-shadow: 0 0 26px rgba(101, 190, 255, 0.2);
  }

  .about-person:hover .about-line {
    width: 112px;
    background: linear-gradient(90deg, transparent, rgba(117, 201, 255, 0.96), transparent);
    box-shadow: 0 0 18px rgba(83, 178, 255, 0.28);
  }
}


/* Cursor lens: a restrained visual cue for the local warp field */
.cursor-warp {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.82);
  border: 1px solid hsl(var(--cursor-hue) 82% 76% / 0.08);
  background: radial-gradient(
    circle,
    hsl(var(--cursor-hue) 86% 72% / 0.045),
    transparent 64%
  );
  box-shadow: inset 0 0 24px hsl(var(--cursor-hue) 85% 68% / 0.035);
  transition: opacity 120ms ease, transform 160ms var(--ease-out), border-color 160ms ease;
}

.cursor-warp.is-visible {
  opacity: calc(0.08 + var(--interaction-strength) * 0.2);
  transform: translate3d(-50%, -50%, 0) scale(calc(0.88 + var(--interaction-strength) * 0.18));
}

/* Dual-profile 3D stage */
.about-people {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px) minmax(0, 1fr);
}

.about-person {
  cursor: default;
  outline: none;
}

.about-person[role="button"] {
  cursor: pointer;
}

.about-person:focus-visible {
  outline: 1px solid rgba(158, 215, 255, 0.58);
  outline-offset: 12px;
  border-radius: 12px;
}

.about-profile-hint {
  margin-top: 18px;
  color: rgba(220, 231, 244, 0.48);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 220ms ease, opacity 220ms ease;
}

.about-person:hover .about-profile-hint,
.about-person:focus-visible .about-profile-hint,
.about-person.is-profile-active .about-profile-hint {
  color: rgba(159, 216, 255, 0.88);
}

.dual-model-stage {
  position: relative;
  width: 100%;
  min-height: 470px;
  overflow: visible;
  isolation: isolate;
}

.dual-model-stage .model-halo {
  width: min(44vw, 470px);
  opacity: 0.76;
}

.person-model {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 410px);
  height: 440px;
  transform-origin: 50% 74%;
  transition:
    transform 720ms var(--ease-out),
    opacity 420ms ease,
    filter 420ms ease;
  will-change: transform;
}

.person-model .hero-model {
  width: 100%;
  height: 100%;
}

.person-model--darren {
  z-index: 2;
  transform: translate3d(-76%, -50%, 0) scale(0.7) rotateY(8deg);
}

.person-model--heath {
  z-index: 2;
  transform: translate3d(-24%, -50%, 0) scale(0.7) rotateY(-8deg);
}

.person-model__label {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(226, 235, 247, 0.58);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 240ms ease, opacity 240ms ease;
}

.about-people[data-active-person="darren"] .person-model--darren,
.about-people[data-active-person="heath"] .person-model--heath {
  z-index: 4;
  opacity: 1;
  filter: saturate(1.04) brightness(1.04);
  transform: translate3d(-50%, -50%, 40px) scale(1.03) rotateY(0deg);
}

.about-people[data-active-person="darren"] .person-model--heath {
  z-index: 1;
  opacity: 0.56;
  filter: saturate(0.72) brightness(0.78);
  pointer-events: none;
  transform: translate3d(12%, -46%, -30px) scale(0.46) rotateY(-13deg);
}

.about-people[data-active-person="heath"] .person-model--darren {
  z-index: 1;
  opacity: 0.56;
  filter: saturate(0.72) brightness(0.78);
  pointer-events: none;
  transform: translate3d(-112%, -46%, -30px) scale(0.46) rotateY(13deg);
}

.about-people[data-active-person="darren"] .person-model--darren .person-model__label,
.about-people[data-active-person="heath"] .person-model--heath .person-model__label {
  color: rgba(210, 236, 255, 0.94);
}

.about-person.is-profile-active .about-name {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(98, 187, 255, 0.3);
}

.about-person.is-profile-active .about-line {
  width: 118px;
  background: linear-gradient(90deg, transparent, rgba(123, 203, 255, 0.98), transparent);
  box-shadow: 0 0 22px rgba(81, 176, 255, 0.34);
}

.dual-model-stage .model-status {
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
}

.dual-model-stage .model-caption {
  bottom: 8px;
  width: 100%;
  text-align: center;
}

@media (max-width: 960px) {
  .about-people {
    grid-template-columns: 1fr;
  }

  .dual-model-stage {
    width: min(100%, 520px);
    min-height: 430px;
    margin-inline: auto;
  }

  .person-model {
    height: 405px;
  }

  .person-model--darren {
    transform: translate3d(-73%, -50%, 0) scale(0.64);
  }

  .person-model--heath {
    transform: translate3d(-27%, -50%, 0) scale(0.64);
  }
}

@media (max-width: 620px) {
  .dual-model-stage {
    min-height: 370px;
  }

  .person-model {
    width: 94%;
    height: 350px;
  }

  .about-people[data-active-person="darren"] .person-model--heath {
    transform: translate3d(6%, -45%, -30px) scale(0.4);
  }

  .about-people[data-active-person="heath"] .person-model--darren {
    transform: translate3d(-106%, -45%, -30px) scale(0.4);
  }

  .about-profile-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .person-model,
  .cursor-warp {
    transition: none;
  }
}