﻿:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #12162A;
  --header-bg: rgba(15, 17, 32, 0.5);
  --header-h: 72px;
  --text-primary: #FFFFFF;
  --text-secondary: #B8BCC8;
  --text-muted: #9CA3AF;
  --accent: #8B7FE8;
  --accent-light: #A78BFA;
  --accent-deep: #6D5FD8;
  --lavender: #C4B5FD;
  --lavender-light: #E0D4FF;
  --cta-bg: #FFFFFF;
  --cta-text: #0A0E1A;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.08);
  --header-blur: blur(14px);
  --card-blur: blur(14px);
  --suit: #0D0D0F;
  --suit-panel: #E8E8E8;
  --hero-pad-x: clamp(24px, 5.5vw, 80px);
  --hero-word-pad-x: max(12px, 1.2vw);
  --color-text-heading: var(--text-primary);
  --color-text-dim: #3a3a3a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
}

a { color: inherit; }

h1, h2,
.section-title,
.project-card h3,
.service-block h3,
.services-heading,
.book-button,
.contact-name {
  font-weight: 800;
}

/* ---------- Header ---------- */

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 20px var(--hero-pad-x);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  animation: fadeSlideDown 0.6s ease both;
}

.header-bar {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  min-width: 0;
  justify-self: start;
}

.logo-mark {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.logo-word {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-primary);
}

.logo-designer {
  color: #8B5CF6;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-self: center;
}

.main-nav a {
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-light);
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav sup {
  font-size: 0.65em;
  margin-left: 2px;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 6px;
  border-radius: 50%;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  transition: opacity 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button svg {
  width: 12px;
  height: 12px;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.4);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0a0916 0%, #1c1436 50%, #0a0916 100%);
  padding: 0;
  margin: 0;
  --hero-word-size: 9.8vw;
  --hero-word-tracking: -0.02em;
  --hero-line: calc(var(--hero-word-size) * 1.02);
  --type-rise-duration: 0.8s;
  --marquee-duration: 36s;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(10 9 22 / 0.18) 32%,
    rgb(10 9 22 / 0.62) 68%,
    #0a0916 100%
  );
}

.hero-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}

/* marquee sits above the portrait, masked off the figure — original working setup */
.hero-marquee {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  visibility: hidden;
  display: none;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  -webkit-mask-image: radial-gradient(
    ellipse 42% 58% at 50% 44%,
    transparent 0%,
    transparent 52%,
    #000 78%
  );
  mask-image: radial-gradient(
    ellipse 42% 58% at 50% 44%,
    transparent 0%,
    transparent 52%,
    #000 78%
  );
}

.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  visibility: visible;
  opacity: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.hero-depth-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--hero-line) + 28px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(10 9 22 / 0.72) 0%,
    rgb(10 9 22 / 0.28) 42%,
    transparent 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}

.hero-marquee-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  animation: marqueeUp var(--marquee-duration) linear infinite;
}

.hero-marquee-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.hero-marquee-group span {
  display: block;
  width: 100%;
  padding: 0.12em 0;
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.18);
}

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

.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--hero-pad-x) 36px;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-ui-top,
.hero-bottom,
.hero-ui .contact-card,
.hero-ui a {
  pointer-events: auto;
}

.hero-ui-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hero-tags {
  list-style: none;
  margin: 0;
  padding: 2px 0 2px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1.1s;
}

.hero-tags li {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-blurb {
  margin: 0;
  max-width: 28ch;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: right;
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1.35s;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-heading {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.9s;
}

.contact-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow:
    0 0 28px rgb(139 127 232 / 0.22),
    0 8px 24px rgb(10 14 26 / 0.35);
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1.7s;
}

.contact-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-card-top > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
}

.mary-avatar {
  position: relative;
  overflow: visible;
  animation: maryFloat 4.5s ease-in-out infinite;
}

.mary-avatar-crop {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 42% 36%, rgb(139 92 246 / 0.4), transparent 58%),
    linear-gradient(165deg, #12162A 0%, #0B0E1A 58%, rgb(139 92 246 / 0.2) 100%);
}

.mary-avatar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  border: 1.5px solid rgb(196 181 253 / 0.9);
  box-shadow:
    0 0 5px rgb(196 181 253 / 0.55),
    0 0 10px rgb(139 92 246 / 0.4);
  animation: glowPulse 4s ease-in-out infinite;
}

.mary-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 160%;
  height: 160%;
  max-width: none;
  left: -8%;
  top: -12%;
  object-fit: cover;
  object-position: 52% 6%;
  transform: scaleX(-1);
  border-radius: 0;
  pointer-events: none;
}

.contact-avatar.mary-avatar {
  border: none;
  box-shadow:
    0 0 6px rgb(167 139 250 / 0.45),
    0 0 12px rgb(139 92 246 / 0.22);
}

.contact-name {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}

.contact-role {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-button svg {
  width: 14px;
  height: 14px;
}

.book-button:hover,
.book-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ---------- Page sections ---------- */

.wrap {
  width: min(1120px, calc(100% - 2 * max(24px, var(--hero-word-pad-x))));
  margin-inline: auto;
}

.band {
  position: relative;
  isolation: isolate;
  padding: 88px 0 96px;
}

.band--alt {
  background: rgba(255, 255, 255, 0.025);
}

.band::before,
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Soft violet wash — ~7% opacity, one corner */
.band::before {
  background: radial-gradient(
    ellipse 72% 58% at 6% 8%,
    rgb(139 92 246 / 0.07),
    transparent 58%
  );
}

.band--alt::before {
  background: radial-gradient(
    ellipse 72% 58% at 94% 92%,
    rgb(167 139 250 / 0.08),
    transparent 58%
  );
}

#contact::before {
  background: radial-gradient(
    ellipse 70% 56% at 8% 88%,
    rgb(139 92 246 / 0.07),
    transparent 58%
  );
}

.hero-continue {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    #0a0916 0%,
    #1c1436 18%,
    #0a0916 40%,
    #1c1436 62%,
    #0a0916 82%,
    #1c1436 94%,
    #0a0916 100%
  );
}

.hero-continue::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgb(196 181 253 / 0.07) 1px,
    transparent 1.2px
  );
  background-size: 28px 28px;
}

.hero-continue-glow {
  position: absolute;
  z-index: 0;
  width: min(720px, 80vw);
  height: min(720px, 80vw);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.26;
}

.hero-continue-glow--tr {
  top: 4%;
  right: -12%;
  background: #8b5cf6;
}

.hero-continue-glow--ml {
  top: 38%;
  left: -16%;
  background: #c4b5fd;
}

.hero-continue-glow--mr {
  top: 62%;
  right: -14%;
  background: #8b5cf6;
}

.hero-continue-glow--bl {
  bottom: -6%;
  left: -12%;
  background: #c4b5fd;
}

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
  background: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-track .item {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  padding: 0 20px;
}

.marquee-track .sep {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
  color: #8B5CF6;
  padding: 0 10px;
}

@keyframes marquee-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.hero-continue > .band {
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-continue > .band::before,
.hero-continue > .band::after {
  content: none;
  background: none;
  background-image: none;
}

/* Barely-visible dot texture */
.band::after {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgb(196 181 253 / 0.06) 1px,
    transparent 1.2px
  );
  background-size: 28px 28px;
}

.band > * {
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 14px 14px 18px;
  border-radius: 20px;
  background: rgba(18, 22, 42, 0.72);
  border: 1px solid var(--card-border);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--card-border));
  box-shadow:
    0 0 32px rgb(139 127 232 / 0.28),
    0 16px 40px rgb(10 14 26 / 0.45);
}

.browser-frame {
  overflow: hidden;
  border-radius: 12px 12px 8px 8px;
  background: #0c101c;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  min-width: 0;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  aspect-ratio: 1024 / 487;
  background: #0c101c;
  overflow: hidden;
  line-height: 0;
}

.browser-screen img,
.project-card .browser-screen img,
.project-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-card--soon {
  cursor: default;
}

.project-card-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 16px 6px 2px;
}

.project-copy {
  min-height: 0;
}

.project-soon-slot {
  display: flex;
  align-items: center;
  min-height: 1.7rem;
  margin-top: 8px;
}

.project-card h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.project-sub {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.project-cat {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

.project-soon {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--lavender);
  background: rgb(12 10 24 / 0.72);
  border: 1px solid rgb(167 139 250 / 0.38);
  pointer-events: none;
}

.project-soon svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.project-live {
  color: var(--lavender-light);
  border-color: rgb(196 181 253 / 0.55);
  background: rgb(139 92 246 / 0.18);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 28px;
  row-gap: 28px;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.services-stage {
  margin: 44px 0 36px;
  padding: 52px 32px 60px;
  border-radius: 40px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgb(139 92 246 / 0.12), transparent 62%),
    rgba(10, 12, 28, 0.62);
  border: 1px solid rgb(167 139 250 / 0.28);
  box-shadow:
    0 0 0 1px rgb(139 92 246 / 0.1) inset,
    0 0 56px rgb(139 92 246 / 0.2),
    0 24px 56px rgb(10 14 26 / 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.service-block {
  --lift: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: span 2;
  padding: 26px 24px 28px;
  border-radius: 36px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(165deg, rgb(72 58 130 / 0.28), rgb(16 18 36 / 0.78));
  border: 2px solid rgb(167 139 250 / 0.72);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  box-shadow:
    0 0 0 1px rgb(224 212 255 / 0.18) inset,
    0 0 22px rgb(139 92 246 / 0.5),
    0 0 42px rgb(139 92 246 / 0.22);
  transform: translateY(var(--lift));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover,
.service-block:focus-visible {
  transform: translateY(calc(var(--lift) - 6px));
  box-shadow:
    0 0 0 1px rgb(224 212 255 / 0.28) inset,
    0 0 28px rgb(139 92 246 / 0.65),
    0 0 52px rgb(139 92 246 / 0.28);
}

.service-row .service-block:nth-child(1) { grid-column: 1 / 3; --lift: 0px; }
.service-row .service-block:nth-child(2) { grid-column: 3 / 5; --lift: 0px; }
.service-row .service-block:nth-child(3) { grid-column: 5 / 7; --lift: 0px; }
.service-row .service-block:nth-child(4) { grid-column: 2 / 4; --lift: 0px; }
.service-row .service-block:nth-child(5) { grid-column: 4 / 6; --lift: 0px; }

#services .services-stage,
#work .services-stage {
  margin: 44px 0 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.work-head {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
}

.work-head .section-lead {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.work-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(28px, 3.6vw, 44px);
}

#work .process-grid {
  width: 100%;
  gap: 28px;
}

.work-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 12px 8px;
  margin: 0 0 16px;
  border-radius: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  background: #111118;
}

.service-block:nth-child(even) .work-num {
  background: #8b5cf6;
}

.work-glow-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  margin: 0 0 14px;
  border-radius: 18px;
  background: #0c101c;
}

.service-block .project-soon {
  margin-top: 12px;
  width: auto;
  align-self: flex-start;
}

.services-intro {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.services-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18em;
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5.2vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--text-primary);
}

.services-heading-line {
  display: block;
}

.services-heading--left {
  align-items: flex-start;
}

.services-heading--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.16em 0.28em;
}

.heading-pill {
  display: inline-block;
  padding: 0.12em 0.48em 0.16em;
  border-radius: 999px;
  background: #8B5CF6;
  color: #fff;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16) inset,
    0 0 40px rgb(139 92 246 / 0.45),
    0 10px 28px rgb(10 14 26 / 0.35);
}

.services-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}

.services-cta-row {
  display: flex;
  justify-content: center;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 999px;
  background: #8B5CF6;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 0 28px rgb(139 92 246 / 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-cta:hover,
.service-cta:focus-visible {
  transform: translateY(-2px);
  background: #9D72F7;
  box-shadow: 0 0 40px rgb(139 92 246 / 0.58);
}

.service-icon {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #EDE9FE;
  background:
    radial-gradient(circle at 38% 32%, rgb(224 212 255 / 0.7), rgb(139 92 246 / 0.35) 42%, rgb(88 60 180 / 0.18) 72%);
  box-shadow:
    0 0 18px rgb(139 92 246 / 0.55),
    0 0 0 1px rgb(196 181 253 / 0.25);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-block h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.service-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.1fr);
  gap: clamp(20px, 3.2vw, 40px);
  align-items: stretch;
}

.about-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 560px;
  text-align: left;
}

#about .services-heading {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
}

#work .work-head .services-heading {
  justify-content: center;
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
}

#contact {
  overflow: visible;
  padding-bottom: 48px;
}

#contact .wrap {
  display: grid;
  align-items: start;
}

.about-bio {
  margin: 0;
}

.about-bio p {
  margin: 0 0 1.05em;
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-figure {
  position: relative;
  justify-self: stretch;
  align-self: stretch;
  width: min(100%, 560px);
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
  margin-left: -4%;
}

.about-figure::before {
  content: "";
  position: absolute;
  left: 8%;
  top: 10%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: rgb(139 92 246 / 0.26);
  filter: blur(90px);
  z-index: 0;
}

.about-figure img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 20px;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: none;
  mask-image: none;
}

.process-head {
  max-width: 640px;
  margin-bottom: 0;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
  grid-template-areas:
    ". head"
    "figure cards";
  column-gap: clamp(12px, 3vw, 36px);
  row-gap: 24px;
  align-items: stretch;
}

.how-layout .process-head {
  grid-area: head;
}

.how-figure {
  grid-area: figure;
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  pointer-events: none;
}

.how-figure::before {
  content: "";
  position: absolute;
  left: -18%;
  top: 8%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: rgb(139 92 246 / 0.32);
  filter: blur(70px);
  z-index: 0;
}

.how-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter:
    drop-shadow(0 0 18px rgb(139 92 246 / 0.28))
    drop-shadow(0 24px 40px rgb(10 8 24 / 0.55));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 5%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 5%,
    #000 92%,
    transparent 100%
  );
}

.how-layout .process-grid {
  grid-area: cards;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.process-card {
  --lift: 0px;
  grid-column: auto;
  height: 100%;
}

#work .process-card {
  padding: 0 14px 18px;
  align-items: stretch;
}

#work .work-glow-thumb {
  display: block;
  width: calc(100% + 28px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  margin: 0 -14px 14px;
  border-radius: 34px 34px 0 0;
  background: #0c101c;
  flex-shrink: 0;
}

#work a[href*="blake-salon"] .work-glow-thumb {
  object-position: 8% 6%;
}

#work .process-card h3 {
  font-size: 1rem;
}

#work .process-card p {
  font-size: 0.88rem;
}

.about-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
  overflow: visible;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow:
    0 0 28px rgb(139 127 232 / 0.22),
    0 8px 24px rgb(10 14 26 / 0.35);
}

.about-copy .section-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
}

.about-copy p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-inner {
  padding-top: calc(var(--header-h) + 12px);
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 75%, transparent);
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.text-link:hover,
.text-link:focus-visible {
  opacity: 0.7;
}

.touch-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "head ."
    "body form";
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 0;
  align-items: start;
  overflow: visible;
}

.touch-heading {
  grid-area: head;
}

.touch-col {
  grid-area: body;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  min-width: 0;
}

.touch-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 0;
  overflow: visible;
  pointer-events: none;
}

.touch-figure::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 8%;
  width: 70%;
  height: 84%;
  border-radius: 50%;
  background: rgb(139 92 246 / 0.3);
  filter: blur(72px);
  z-index: 0;
  pointer-events: none;
}

.touch-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter:
    drop-shadow(0 0 18px rgb(139 92 246 / 0.3))
    drop-shadow(0 22px 36px rgb(10 8 24 / 0.5));
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 100%);
}

.touch-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  text-align: left;
}

#contact .touch-heading {
  margin: 0 0 18px;
}

#contact .touch-heading .services-heading {
  margin: 0;
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  line-height: 1;
}

.touch-kicker {
  margin: 0 0 12px;
  color: var(--lavender);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
}

.touch-lead {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}

.touch-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.touch-mail:hover,
.touch-mail:focus-visible {
  color: var(--accent-light);
}

.touch-mail-icon {
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ede9fe;
  background:
    radial-gradient(circle at 38% 32%, rgb(224 212 255 / 0.7), rgb(139 92 246 / 0.35) 42%, rgb(88 60 180 / 0.18) 72%);
  box-shadow: 0 0 14px rgb(139 92 246 / 0.45);
}

.touch-mail-icon svg {
  width: 16px;
  height: 16px;
}

.touch-form {
  grid-area: form;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  margin-top: 0;
  padding-top: 0;
  gap: 18px;
}

.touch-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.touch-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.touch-field--full {
  grid-column: 1 / -1;
}

.touch-field span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.touch-field input,
.touch-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgb(167 139 250 / 0.45);
  border-radius: 14px;
  background: rgb(16 18 36 / 0.55);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 0 18px rgb(139 92 246 / 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.touch-field textarea {
  min-height: 140px;
  resize: vertical;
}

.touch-field input:focus,
.touch-field textarea:focus {
  border-color: rgb(167 139 250 / 0.85);
  box-shadow: 0 0 22px rgb(139 92 246 / 0.35);
}

.touch-send {
  align-self: end;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16) inset,
    0 0 24px rgb(139 92 246 / 0.45);
}

.touch-send:hover,
.touch-send:focus-visible {
  transform: translateY(-1px);
}

.contact-email {
  color: var(--text-primary);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
  padding: 0;
  border: none;
  border-top: none;
  box-shadow: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: rgb(196 181 253 / 0.22);
}

.footer-bar,
.footer-copy-bar {
  position: relative;
  z-index: 1;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgb(196 181 253 / 0.08) 1px,
    transparent 1.2px
  );
  background-size: 28px 28px;
}

.footer-bar {
  padding: 28px 0 22px;
  background-color: rgb(255 255 255 / 0.035);
}

.footer-copy-bar {
  padding: 18px var(--hero-pad-x) 22px;
  background-color: rgb(8 7 18 / 0.28);
  border-top: 1px solid rgb(196 181 253 / 0.22);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text-muted);
  text-decoration: none;
  min-width: 0;
}

.footer-brand .logo-mark {
  height: 22px;
  filter: drop-shadow(none);
  opacity: 0.85;
}

.footer-brand span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: center;
}

.footer-nav a,
.footer-email {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.footer-email svg {
  flex-shrink: 0;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-email:hover,
.footer-email:focus-visible,
.footer-brand:hover,
.footer-brand:focus-visible {
  color: var(--lavender);
}

.footer-kicker {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding: 0 var(--hero-pad-x);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--lavender);
  opacity: 0.85;
}

.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.75;
}

.reveal .label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal .services-heading-line,
.reveal .section-title {
  background-image: linear-gradient(
    90deg,
    var(--color-text-heading) 50%,
    var(--color-text-dim) 50%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.1s ease;
}

.reveal .heading-pill {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.12s, transform 0.7s ease 0.12s;
}

.reveal p:not(.label) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.reveal.in-view .label,
.reveal.in-view .heading-pill,
.reveal.in-view p:not(.label) {
  opacity: 1;
  transform: translateY(0);
}

.reveal.in-view .services-heading-line,
.reveal.in-view .section-title {
  background-position: 0 0;
}

/* ---------- Motion ---------- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes marqueeUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes glowPulse {
  0%, 100% {
    border-color: rgb(196 181 253 / 0.85);
    box-shadow:
      0 0 5px rgb(196 181 253 / 0.5),
      0 0 10px rgb(139 92 246 / 0.35);
  }
  50% {
    border-color: rgb(216 204 255);
    box-shadow:
      0 0 7px rgb(196 181 253 / 0.65),
      0 0 14px rgb(139 92 246 / 0.45);
  }
}

@keyframes maryFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .contact-card,
  .cta-button,
  .hero-tags,
  .hero-heading,
  .hero-blurb,
  .project-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .hero-marquee-track,
  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
  .mary-avatar,
  .mary-avatar::before {
    animation: none !important;
  }
  .mary-avatar {
    transform: none !important;
  }
  .service-block {
    --lift: 0px;
  }
  .hero {
    background-image: none;
  }
  html { scroll-behavior: auto; }
  .reveal .label,
  .reveal .heading-pill,
  .reveal p:not(.label) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal .services-heading-line,
  .reveal .section-title {
    background-image: none;
    color: var(--color-text-heading);
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .main-nav { gap: 36px; }

  .service-row {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 24px;
    padding: 0;
  }

  .service-row .service-block:nth-child(n) {
    grid-column: auto;
  }

  .service-row .service-block:nth-child(1),
  .service-row .service-block:nth-child(2),
  .service-row .service-block:nth-child(3),
  .service-row .service-block:nth-child(4),
  .service-row .service-block:nth-child(5) {
    --lift: 0px;
  }
}

@media (max-width: 980px) {
  .touch-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "body"
      "form";
    gap: 32px;
  }

  .touch-figure {
    margin: 20px 0 0;
    justify-content: flex-start;
    max-width: 360px;
  }

  .touch-figure img {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .site-header { padding-inline: 24px; }
  .nav-burger { display: grid; }
  .logo-word { font-size: 0.72rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 16px;
    background: var(--header-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
  }
  .nav-toggle:checked ~ .site-header .main-nav { display: flex; }

  .hero { --hero-word-size: 11vw; }

  .hero-tags {
    display: none;
  }

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

  .service-row {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 16px;
  }

  .services-stage {
    margin: 32px 0 28px;
    padding: 0;
    border-radius: 0;
  }

  #services .services-stage,
  #work .services-stage {
    padding: 0;
  }

  .service-row .service-block,
  .service-row .service-block:nth-child(n) {
    grid-column: 1;
    --lift: 0px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #work .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .process-card--wide {
    grid-column: 1;
  }

  .how-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .how-figure {
    max-width: 280px;
    margin-inline: auto;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-copy-col {
    max-width: none;
    justify-content: flex-start;
    gap: 0;
  }

  .about-figure {
    display: none;
  }

  #about .services-heading,
  #work .work-head .services-heading {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .about-bio p {
    font-size: 1.05rem;
  }

  .band {
    padding: 64px 0 72px;
  }

  .about-photo {
    max-width: 360px;
  }

  .touch-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .touch-figure {
    margin: 16px 0 0;
    max-width: 320px;
  }

  .touch-figure img {
    width: 100%;
    max-width: 320px;
  }

  .touch-fields {
    grid-template-columns: 1fr;
  }

  .touch-send {
    align-self: stretch;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
    margin-bottom: 0;
  }

  .footer-brand,
  .footer-nav,
  .footer-email {
    justify-self: start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 1024px) {
  .touch-figure {
    display: none;
  }

  .hero-tags {
    display: none;
  }

  .hero .contact-card {
    padding: 14px 16px;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    height: auto;
    max-height: none;
    flex-shrink: 0;
    background: var(--card-bg);
  }

  .hero .contact-card-top {
    gap: 12px;
  }

  .hero .contact-card-top > div {
    gap: 6px;
  }

  .hero .contact-avatar {
    width: 40px;
    height: 40px;
  }

  .hero .contact-avatar.mary-avatar {
    box-shadow:
      0 0 5px rgb(167 139 250 / 0.4),
      0 0 10px rgb(139 92 246 / 0.18);
  }

  .hero .mary-avatar::before {
    inset: -1px;
    border-width: 1.5px;
    border-color: rgb(196 181 253 / 0.85);
    box-shadow:
      0 0 4px rgb(196 181 253 / 0.55),
      0 0 8px rgb(139 92 246 / 0.35);
    animation: none;
  }

  .hero .contact-name,
  .hero .contact-role {
    font-size: 0.82rem;
  }

  .hero .contact-role {
    opacity: 1;
    color: var(--text-secondary);
    font-weight: 400;
  }

  .hero .book-button {
    padding: 10px 16px;
    font-size: 0.82rem;
    gap: 8px;
  }

  .hero .book-button svg {
    width: 13px;
    height: 13px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-ui {
    padding: calc(var(--header-h) + 8px) var(--hero-pad-x) 28px;
  }

  .hero-ui-top {
    justify-content: flex-end;
    align-items: flex-start;
  }

  .hero-blurb {
    font-size: 15px;
    line-height: 1.35;
    max-width: 22ch;
    text-align: right;
    align-self: flex-end;
    white-space: normal;
    word-spacing: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero-blurb br {
    display: none;
  }

  .hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(10, 9, 20, 0.65) 0%,
      rgba(10, 9, 20, 0.1) 35%,
      transparent 55%
    );
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
  }

  .hero::after {
    height: 120px;
  }

  .hero-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: 50vh;
    height: 50dvh;
    max-height: 50dvh;
    flex-shrink: 0;
  }

  .hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(10, 9, 20, 0.75) 0%,
      rgba(10, 9, 20, 0.15) 25%,
      rgba(10, 9, 20, 0.15) 60%,
      rgba(10, 9, 20, 0.85) 100%
    );
  }

  .hero-portrait {
    object-position: center 16%;
  }

  .hero-depth-fade {
    display: none;
  }

  .hero-marquee-group span {
    font-size: clamp(3.25rem, 18vw, 5.5rem);
    color: rgb(255 255 255 / 0.16);
  }

  .hero-ui {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    padding: 28px var(--hero-pad-x) 40px;
  }

  .hero-ui-top,
  .hero-bottom {
    display: contents;
  }

  .hero-heading {
    order: 1;
    max-width: none;
    font-size: clamp(2.5rem, 11vw, 3rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.03em;
  }

  .hero-blurb {
    order: 2;
    margin: 0;
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: left;
    color: var(--text-secondary);
  }

  .contact-card {
    order: 3;
    width: max-content;
    max-width: 100%;
    align-self: start;
    position: relative;
    right: auto;
    bottom: auto;
  }

  .hero .contact-avatar.mary-avatar {
    box-shadow: 0 0 6px rgb(139 92 246 / 0.28);
  }

  .hero .mary-avatar::before {
    inset: 0;
    border-width: 1.5px;
    box-shadow: 0 0 4px rgb(139 92 246 / 0.4);
  }

  #work .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
