/* ==========================================================================
   McAnthony — Web design portfolio (dark)
   Brand: orange #F9B673, green #748F63, cream #FAF8EE
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colour */
  --bg: #0d0e0b;
  --surface: #151712;
  --surface-2: #1c1f18;
  --line: rgba(243, 239, 226, 0.12);
  --line-strong: rgba(243, 239, 226, 0.24);
  --text: #f3efe2;
  --muted: #a9a79b;
  --orange: #f9b673;
  --orange-deep: #f39a45;
  --on-orange: #1d1408;
  --green: #748f63;
  --green-light: #a3bf8f;
  --error: #ff9b8a;

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1320px;
  --radius: 20px;
  --radius-sm: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur: 600ms;
  --dur-slow: 1100ms;

  /* Layers */
  --z-cursor: 90;
  --z-header: 50;
  --z-menu: 40;
  --z-loader: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(5rem, 11vw, 9rem); }

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.375rem 1.375rem 0.375rem 0.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.9375rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--on-orange);
  color: var(--orange);
  overflow: hidden;
}
.btn-icon svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 450ms var(--ease-out);
}
.btn:hover .btn-icon svg { transform: translateX(3px) rotate(-45deg); }

.btn-orange { background: var(--orange); color: var(--on-orange); }
.btn-orange:hover { background: var(--orange-deep); }

.btn-ghost {
  padding-inline: 1.375rem;
  border-color: var(--line-strong);
  color: var(--text);
  justify-content: center;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-sm { min-height: 44px; font-size: 0.875rem; }
.btn-sm .btn-icon { width: 34px; height: 34px; }

.btn[disabled] { opacity: 0.5; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding: 1rem var(--gutter);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin-inline: auto;
}
.header-inner > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.625rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 23, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
.brand-name { font: 700 1rem/1 var(--font-body); letter-spacing: -0.01em; }
.brand-d { color: var(--orange); }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  padding: 0.3125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 23, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.6875rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.is-current { color: var(--text); background: var(--surface-2); }
.nav-num { display: none; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-cta { display: none; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    position: relative;
    z-index: calc(var(--z-menu) + 1);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(21, 23, 18, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 350ms var(--ease-out);
  }
  .nav-toggle-bar { position: relative; transform: translateY(-3px); }
  .nav-toggle-bar::before { content: ''; position: absolute; top: 6px; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bar::before { transform: translateY(-6px) rotate(-90deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    display: flex;
    align-items: flex-end;
    padding: 6rem var(--gutter) 3rem;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 700ms var(--ease-in-out), visibility 0s 700ms;
  }
  .site-nav.is-open {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path 700ms var(--ease-in-out);
  }
  .site-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav li { overflow: hidden; border-bottom: 1px solid var(--line); }
  .site-nav a {
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-radius: 0;
    font: 700 clamp(2.75rem, 13vw, 4.5rem)/1 var(--font-display);
    text-transform: uppercase;
    color: var(--text);
    transform: translateY(105%);
    transition: transform 600ms var(--ease-out), color var(--dur-fast);
  }
  .site-nav a:hover { background: none; color: var(--orange); }
  .site-nav.is-open a { transform: none; }
  .site-nav.is-open li:nth-child(2) a { transition-delay: 60ms; }
  .site-nav.is-open li:nth-child(3) a { transition-delay: 120ms; }
  .site-nav.is-open li:nth-child(4) a { transition-delay: 180ms; }
  .site-nav.is-open li:nth-child(5) a { transition-delay: 240ms; }
  .nav-num { display: inline; font: 600 0.875rem/1 var(--font-body); color: var(--orange); }
}

/* ---------- Preloader ---------- */
.preloader { display: none; }

.is-loading .preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  background: var(--surface);
  color: var(--text);
}
.is-loading body { overflow: hidden; }

.preloader-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.preloader-count {
  align-self: flex-end;
  font: 800 clamp(6rem, 26vw, 22rem)/0.8 var(--font-display);
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.preloader-bar { height: 2px; background: var(--line); }
.preloader-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.preloader.is-leaving {
  transform: translateY(-100%);
  transition: transform 900ms var(--ease-in-out);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 100svh;
  max-width: calc(var(--max) + 12rem);
  margin-inline: auto;
  padding: 7rem var(--gutter) 0;
  isolation: isolate;
}
.hero::before {
  /* Warm glow from the brand orange, kept very low */
  content: '';
  position: absolute;
  inset: 10% 20% auto;
  height: 60%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(249, 182, 115, 0.14), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: clamp(1rem, 8vh, 6rem);
  /* Text sits over the empty corners of the cut-out photo */
  position: relative;
  z-index: 3;
  grid-row: 1;
  align-self: start;
}
.hero-left { grid-column: 1; }
.hero-right { grid-column: 2; align-items: flex-start; max-width: 25rem; justify-self: end; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 0 rgba(163, 191, 143, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(163, 191, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 191, 143, 0); }
}

.hero-role {
  font: 600 clamp(1.75rem, 2.6vw, 2.5rem)/1.08 var(--font-body);
  letter-spacing: -0.03em;
}
.hero-role em { color: var(--orange); font-size: 1.12em; letter-spacing: -0.01em; }

.hero-intro { color: var(--muted); font-size: 1.0625rem; }

.hero-photo {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  /* The photo is the hero: as large as fits in one screen */
  width: min(58vw, 880px, calc((100svh - 8rem) * 1.046));
  margin-top: clamp(0rem, 4vh, 2rem);
  position: relative;
  z-index: 1;
  aspect-ratio: 1283 / 1226;
  overflow: hidden;
  /* Cut-out photo melts into the page at the bottom */
  -webkit-mask-image: linear-gradient(to bottom, #000 96%, transparent);
  mask-image: linear-gradient(to bottom, #000 96%, transparent);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom;
  /* Black and white until hovered (or touched on phones) */
  filter: grayscale(1) contrast(1.08);
  transition: filter 700ms var(--ease-out), transform 1600ms var(--ease-out);
}
.hero-photo:hover img,
.hero-photo.is-color img { filter: grayscale(0) contrast(1.02); }

.hero-name {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 0;
  margin: -0.86em -0.02em 0;
  font: 800 13vw/0.8 var(--font-display);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
  pointer-events: none;
}
/* Outline copy, stacked exactly on the solid name but in front of the photo:
   where the photo covers the solid letters, only this outline shows */
.hero-name-outline {
  z-index: 2;
  color: transparent;
  -webkit-text-stroke: max(1.5px, 0.007em) var(--text);
}
@supports not (-webkit-text-stroke: 1px black) {
  .hero-name-outline { display: none; }
}
@media (min-width: 1500px) {
  .hero-name { font-size: min(13vw, 14rem); }
}

/* Character split (JS) */
.char-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.char { display: inline-block; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding-top: 6.5rem;
    min-height: auto;
    row-gap: 1.75rem;
  }
  .hero-left, .hero-right { padding-top: 0; justify-self: stretch; max-width: none; }
  .hero-left { gap: 1.25rem; }
  .hero-photo {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 520px);
    margin: 0.5rem auto 0;
    align-self: start;
  }
  .hero-left { grid-row: 1; grid-column: 1; }
  .hero-photo { grid-row: 2; }
  .hero-name {
    grid-column: 1;
    grid-row: 3;
    margin-top: -1.55em;
    font-size: 15.5vw;
  }
  .hero-right { grid-row: 4; grid-column: 1; padding-bottom: 1rem; }
}

/* Hero entrance (after the loader) */
.js .hero-in { opacity: 0; transform: translateY(24px); }
.js .is-ready .hero-in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(500ms + var(--d, 0) * 110ms);
}

/* Photo opens from a thin line, as in the reference video */
.js .hero-photo { clip-path: inset(49.5% 0 49.5% 0); }
.js .hero-photo img { transform: scale(1.25); }
.js .is-ready .hero-photo {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1300ms var(--ease-in-out) 150ms;
}
.js .is-ready .hero-photo img { transform: none; }

.js .hero-name .char { transform: translateY(105%); }
.js .is-ready .hero-name .char {
  transform: none;
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(250ms + var(--i, 0) * 55ms);
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font: 700 clamp(1.5rem, 3.2vw, 2.5rem)/1 var(--font-display);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee span:nth-of-type(odd) { color: var(--text); }
.marquee i {
  font: 400 clamp(1.5rem, 3vw, 2.25rem)/1 var(--font-body);
  font-style: normal;
  color: var(--orange);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 1rem)); } }

/* ---------- Shared section bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.display {
  font: 800 clamp(3.25rem, 9vw, 8.5rem)/0.86 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
@supports not (-webkit-text-stroke: 1px black) {
  .outline { color: var(--orange); }
}

.section-lede {
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Masked line reveal */
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.mask > span { display: inline-block; }
.js .mask > span { transform: translateY(105%); }
.js .is-in .mask > span,
.js .mask.is-in > span {
  transform: none;
  transition: transform 1000ms var(--ease-out);
}
.js .is-in .mask + .mask > span { transition-delay: 120ms; }

/* Fade-up reveal */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 100ms);
}

/* Image reveal: wipes up, inner content settles from a zoom */
.js .reveal-img { clip-path: inset(100% 0 0 0 round var(--radius)); }
.js .reveal-img > * { transform: scale(1.18); }
.js .reveal-img.is-in {
  clip-path: inset(0 0 0 0 round var(--radius));
  transition: clip-path 1200ms var(--ease-in-out);
}
.js .reveal-img.is-in > * {
  transform: none;
  transition: transform 1600ms var(--ease-out);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

.about-statement {
  font: 600 clamp(1.75rem, 3.6vw, 3.25rem)/1.15 var(--font-body);
  letter-spacing: -0.035em;
}
.about-statement .word {
  color: rgba(243, 239, 226, var(--o, 0.18));
  transition: color 120ms linear;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.stat dd {
  font: 800 clamp(2.5rem, 5vw, 4rem)/0.9 var(--font-display);
  color: var(--orange);
}
.stat dt { font-size: 0.9375rem; color: var(--muted); }

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 700ms var(--ease-out);
}
.about-photo:hover img { filter: grayscale(0); }
.about-photo figcaption {
  position: absolute;
  inset: auto 0.75rem 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(13, 14, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.9375rem;
}
.about-photo figcaption em { color: var(--orange); font-size: 1.1em; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding-block: 1rem; }
  .stat dt { max-width: 60%; text-align: right; }
}

/* ---------- Work ---------- */
.work { border-top: 1px solid var(--line); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.work-card:nth-child(even) { margin-top: clamp(0rem, 10vw, 9rem); }

.work-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}
.work-meta h3 {
  font: 700 clamp(1.75rem, 3vw, 2.5rem)/1 var(--font-display);
  text-transform: uppercase;
}
.work-meta p { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tags li {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.work-result { margin-top: 1rem; color: var(--muted); }
.work-result b { color: var(--green-light); font-weight: 700; }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { margin-top: 0; }
}

/* Live site previews: each card shows the real homepage, scaled down.
   Hovering scrolls through the page; clicking opens it. */
.work-link { display: block; text-decoration: none; }
.work-link:focus-visible { outline-offset: 6px; border-radius: var(--radius); }

.site { display: flex; flex-direction: column; }

.site-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  background: #22251e;
}
.site-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3e34; }
.site-bar i:first-child { background: var(--orange); }
.site-bar span {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #2d3127;
  font-size: 11px;
  color: #a19f94;
}

.site-view {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: #fff;
}
.site-view iframe {
  position: absolute;
  top: 0; left: 0;
  width: 1440px;
  height: calc(100% / var(--s, 0.4));
  border: 0;
  transform: scale(var(--s, 0.4));
  transform-origin: 0 0;
  pointer-events: none;
}
.site-view::after {
  /* Hint that the preview scrolls on hover */
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(13, 14, 11, 0.35));
  pointer-events: none;
  transition: opacity 400ms;
}
.work-card:hover .site-view::after { opacity: 0; }

.work-card:hover .work-meta h3 { color: var(--orange); }
.work-meta h3 { transition: color var(--dur-fast); }

/* ---------- Services ---------- */
.services { background: var(--surface); }

.service-list { border-top: 1px solid var(--line-strong); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr 1.1fr 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2rem) 1rem;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
}
.service::before {
  /* Orange fill that sweeps up on hover */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 500ms var(--ease-out);
}
.service-num { font-size: 0.875rem; font-weight: 700; color: var(--orange); transition: color 300ms; }
.service-name {
  font: 700 clamp(1.875rem, 4.2vw, 3.5rem)/1 var(--font-display);
  text-transform: uppercase;
  transition: color 300ms, transform 500ms var(--ease-out);
}
.service-desc { color: var(--muted); transition: color 300ms; }
.service-arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 300ms, border-color 300ms, transform 500ms var(--ease-out);
}
.service-arrow svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (hover: hover) {
  .service:hover::before { transform: scaleY(1); }
  .service:hover .service-num,
  .service:hover .service-name,
  .service:hover .service-desc,
  .service:hover .service-arrow { color: var(--on-orange); }
  .service:hover .service-name { transform: translateX(0.5rem); }
  .service:hover .service-arrow { background: var(--on-orange); border-color: var(--on-orange); color: var(--orange); transform: rotate(45deg); }
}
.service:focus-visible { outline-offset: -2px; border-radius: 0; }

@media (max-width: 760px) {
  .service {
    grid-template-columns: 2.5rem 1fr 48px;
    grid-template-areas: 'num name arrow' '. desc desc';
    gap: 0.5rem 1rem;
    padding-inline: 0;
  }
  .service-num { grid-area: num; }
  .service-name { grid-area: name; }
  .service-arrow { grid-area: arrow; }
  .service-desc { grid-area: desc; font-size: 0.9375rem; }
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur-fast), translate 500ms var(--ease-out);
}
.price-card:hover { border-color: var(--line-strong); translate: 0 -4px; }
.price-card h3 { font-size: 1.125rem; font-weight: 700; }
.price {
  margin-top: 1.25rem;
  font: 800 clamp(3rem, 5vw, 4.25rem)/0.9 var(--font-display);
}
.price small {
  display: block;
  margin-bottom: 0.375rem;
  font: 600 0.875rem/1 var(--font-body);
  color: var(--muted);
}
.price-note { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.price-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
}
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.3em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: rgba(163, 191, 143, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3bf8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.price-card .btn { align-self: stretch; justify-content: center; }
.price-card .btn-orange { justify-content: flex-start; }

.price-card-featured {
  border-color: var(--orange);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(249, 182, 115, 0.14), transparent 60%),
    var(--surface);
}
.price-card-featured:hover { border-color: var(--orange); }
.price-card-featured .price { color: var(--orange); }
.price-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* ---------- Testimonials + tools ---------- */
.testimonials { border-top: 1px solid var(--line); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stars svg { width: 104px; height: 18px; fill: var(--orange); }
.quote blockquote { flex: 1; font-size: 1.0625rem; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--text); font-size: 0.9375rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--text);
  font-weight: 700;
  font-size: 0.875rem;
}
.quote:nth-child(2) .avatar { background: var(--orange); color: var(--on-orange); }

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; max-width: 560px; }
}

.tools {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem 3rem;
  align-items: start;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.tools-title {
  font: 700 1.75rem/1 var(--font-display);
  text-transform: uppercase;
}
.tool-list { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.tool-list li {
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.tool-list li:hover { border-color: var(--green-light); color: var(--green-light); }
.tool-list .reveal:nth-child(n) { --d: 0; }
.tool-list .reveal:nth-child(2) { --d: 0.4; }
.tool-list .reveal:nth-child(3) { --d: 0.8; }
.tool-list .reveal:nth-child(4) { --d: 1.2; }
.tool-list .reveal:nth-child(5) { --d: 1.6; }
.tool-list .reveal:nth-child(6) { --d: 2; }
.tool-list .reveal:nth-child(7) { --d: 2.4; }
.tool-list .reveal:nth-child(8) { --d: 2.8; }
.tool-list .reveal:nth-child(9) { --d: 3.2; }
.tool-list .reveal:nth-child(10) { --d: 3.6; }

@media (max-width: 760px) {
  .tools { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(116, 143, 99, 0.18), transparent 70%),
    var(--bg);
}
.contact-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 2rem;
  font: 800 clamp(5rem, 21vw, 19rem)/0.8 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.contact-title .outline { -webkit-text-stroke-width: 2px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.contact-intro p { color: var(--muted); font-size: 1.125rem; max-width: 24rem; }
.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font: 700 clamp(1.375rem, 2.4vw, 2rem)/1.2 var(--font-body);
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size 500ms var(--ease-out), color var(--dur-fast);
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--orange); background-size: 100% 2px; }

.contact-links { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 2rem; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.contact-links a:hover { border-color: var(--orange); color: var(--orange); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a79b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 182, 115, 0.25);
}
.field [aria-invalid='true'] { border-color: var(--error); }
.field-error { margin-top: 0.375rem; font-size: 0.875rem; color: var(--error); }

.form-status { margin-top: 1rem; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green-light); }
.form-status.is-error { color: var(--error); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .brand { color: var(--text); }
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.to-top:hover { color: var(--orange); }

/* ---------- Cursor follower (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-cursor);
    width: 14px; height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--orange);
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out), opacity 300ms;
  }
  .js .cursor.is-visible { opacity: 1; }
  .js .cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .js .cursor.is-view {
    display: grid;
    place-items: center;
    width: 92px; height: 92px;
    margin: -46px 0 0 -46px;
    mix-blend-mode: normal;
  }
  .js .cursor::after {
    content: attr(data-label);
    font: 700 0.8125rem/1 var(--font-body);
    color: var(--on-orange);
    opacity: 0;
    transition: opacity 200ms;
  }
  .js .cursor.is-view::after { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .hero-in, .js .reveal { opacity: 1; transform: none; }
  .js .hero-photo, .js .reveal-img { clip-path: none; }
  .js .hero-photo img, .js .reveal-img > * { transform: none; }
  .js .hero-name .char, .js .mask > span { transform: none; }
  .about-statement .word { color: var(--text); }
  .marquee-track { animation: none; }
  .js .cursor { display: none; }
}
