:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --bg-panel: #101010;
  --bg-panel-soft: rgba(255, 255, 255, 0.04);
  --bg-cream: #efe9dc;
  --bg-cream-strong: #f7f2e8;
  --text-light: #f6f2ea;
  --text-muted-light: rgba(246, 242, 234, 0.82);
  --text-dark: #111111;
  --text-muted-dark: rgba(17, 17, 17, 0.82);
  --line-light: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(17, 17, 17, 0.14);
  --accent-pink: #c35ccf;
  --accent-orange: #ff945e;
  --accent-violet: #924dff;
  --accent-blue: #5dcfff;
  --accent-gradient: linear-gradient(120deg, #b85fe7 0%, #f068a9 46%, #ff9b5e 100%);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.2);
  --radius-xl: 2.2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --site-max: 1440px;
  --content-max: 1160px;
  --page-gutter: 2.5rem;
  --page-gutter-mobile: 1.25rem;
  --display-font: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body-font: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --section-space: 6.25rem;
  --header-overlap: 7.5rem;
  --display-track: 0.08em;
  --display-track-tight: 0.055em;
  --eyebrow-track: 0.14em;
  --eyebrow-size: 1.125rem;
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-x2: 68%;
  --spot-y2: 38%;
  --spot-x3: 34%;
  --spot-y3: 72%;
  --splash-field-width: max(100vw, 90rem);
  --splash-field-height: max(78vh, 54rem);
  --splash-field-opacity: 0.52;
}

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

html {
  scroll-behavior: smooth;
}

body.site-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--body-font);
  font-size: 1.125rem;
  line-height: 1.72;
  overflow-x: clip;
}

body.site-page.nav-open,
body.site-page.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 600;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-cream-strong);
  color: var(--text-dark);
  transition: top 180ms ease;
}

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

.site-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 280;
  width: 100%;
  height: 4px;
  background: transparent;
}

.site-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(255, 132, 98, 0.4);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-frame {
  position: relative;
  z-index: 1;
}

.splash-cursor-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--splash-field-opacity);
}

.splash-cursor-layer canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  inline-size: max(100%, var(--splash-field-width));
  block-size: max(100%, var(--splash-field-height));
  min-inline-size: 100%;
  min-block-size: 100%;
  max-inline-size: none;
  max-block-size: none;
  width: max(100%, var(--splash-field-width));
  height: max(100%, var(--splash-field-height));
  transform: translate(-50%, -50%);
  display: block;
}

[data-splash-cursor] {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

[data-splash-cursor] > :not(.splash-cursor-layer) {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .intro-stack::before,
  .page-stack::before {
    opacity: 0.34;
  }

  [data-splash-cursor]::after {
    content: "";
    position: absolute;
    inset: -8%;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.24), rgba(5, 5, 5, 0.42)),
      radial-gradient(circle at 50% 18%, rgba(5, 5, 5, 0.14), transparent 36%),
      radial-gradient(circle at 50% 82%, rgba(5, 5, 5, 0.34), transparent 46%),
      url("./aberzmobilebg.webp") center / cover no-repeat;
    opacity: 1;
    filter: brightness(1.8) saturate(1.42) contrast(1.14);
  }

  .splash-cursor-layer {
    display: none;
  }
}

.section-shell,
.site-header,
.site-footer-inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--site-max));
  margin: 0 auto;
}

.section-shell--narrow {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
}

.section-dark,
.section-light {
  position: relative;
}

.section-dark {
  background: var(--bg);
  color: var(--text-light);
}

.section-light {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.intro-stack {
  position: relative;
  margin-top: 0;
  padding-top: calc(var(--header-overlap) + 0.35rem);
  overflow: clip;
  isolation: isolate;
  background: var(--bg);
}

.intro-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.92) 0%, rgba(5, 5, 5, 0.98) 100%);
}

.intro-stack.has-swirl {
  background:
    linear-gradient(rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.97)),
    url("./section-swirl.svg");
  background-position: center;
  background-size: cover;
}

.intro-stack > :not(.splash-cursor-layer) {
  position: relative;
  z-index: 1;
}

.page-stack {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: var(--bg);
}

.page-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.94) 0%, rgba(5, 5, 5, 0.985) 100%);
}

.page-stack > :not(.splash-cursor-layer) {
  position: relative;
  z-index: 1;
}

.page-stack > .section {
  background: transparent;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: calc(var(--header-overlap) * -1);
  padding: 0.95rem 1.3rem;
  border: 1px solid var(--line-light);
  border-radius: 2rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
  overflow: visible;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  width: auto;
  height: clamp(1.65rem, 2vw, 2.3rem);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.site-nav a,
.site-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav button:hover,
.site-nav button:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.site-nav-item {
  position: relative;
}

.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav-toggle svg {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 180ms ease;
}

.site-nav-item.is-open .site-nav-toggle svg,
.site-nav-item:hover .site-nav-toggle svg,
.site-nav-item:focus-within .site-nav-toggle svg {
  transform: rotate(180deg);
}

.site-nav-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  z-index: 100;
  display: grid;
  gap: 0.35rem;
  min-width: 15rem;
  max-width: min(22rem, calc(100vw - (var(--page-gutter) * 2)));
  padding: 0.75rem;
  border: 1px solid var(--line-light);
  border-radius: 1.15rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-nav-item:hover .site-nav-dropdown,
.site-nav-item:focus-within .site-nav-dropdown,
.site-nav-item.is-open .site-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-nav-dropdown a {
  display: block;
  padding: 0.78rem 0.9rem;
  border-radius: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: normal;
  background: rgba(255, 255, 255, 0.02);
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.34rem;
  width: 3.1rem;
  height: 3.1rem;
  margin-left: 0;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--text-light);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 220ms ease,
    width 220ms ease,
    opacity 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateX(-0.12rem);
}

.menu-toggle span:last-child {
  transform: translateX(0.12rem);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle:hover span,
.menu-toggle:focus-visible span {
  width: 1.45rem;
  transform: translateX(0);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  width: 1.45rem;
  transform: translateY(0.25rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  width: 1.45rem;
  transform: translateY(-0.25rem) rotate(-45deg);
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.92rem 1.55rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  overflow: visible;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: -2;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: inherit;
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400%;
  filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
  animation: glowing 20s linear infinite;
}

.button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.76);
  outline-offset: 3px;
}

.button-primary,
.button-nav {
  color: #fff;
  background: linear-gradient(270deg, #954d98, #ec6384, #f1853b);
  border: none;
  box-shadow: 0 14px 36px rgba(225, 103, 147, 0.18);
}

.button-primary::after,
.button-nav::after {
  inset: 2px;
  background: linear-gradient(90deg, #954d98, #ec6384, #f1853b);
}

.button-secondary {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.button-secondary::after {
  background: linear-gradient(90deg, #954d98, #ec6384, #f1853b);
  opacity: 0;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #fff;
}

.button-secondary:hover::after,
.button-secondary:focus-visible::after {
  opacity: 1;
}

.button-secondary.section-light-button {
  color: #000;
  border-color: #000;
}

.button-secondary.section-light-button:hover,
.button-secondary.section-light-button:focus-visible {
  color: #fff;
}

.hero-section {
  padding: clamp(7.5rem, 13vh, 9.5rem) 0 clamp(4.5rem, 9vh, 7rem);
}

.intro-stack .hero-section,
.intro-stack .about-section {
  background: transparent;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 1.1rem;
  max-width: 58rem;
  display: inline-block;
  text-align: center;
  font-size: var(--eyebrow-size);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stage {
  width: 100%;
  overflow: visible;
}

.hero-wordmark {
  margin: 0;
  display: block;
  width: 100%;
  font-family: var(--display-font);
  font-size: clamp(9rem, 29vw, 27rem);
  line-height: 0.92;
  letter-spacing: 0.018em;
  text-transform: uppercase;
  color: var(--bg-cream-strong);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.hero-wordmark span {
  display: none;
}

.hero-support {
  max-width: 46rem;
  margin: 1.45rem auto 0;
  text-align: center;
}

.hero-support p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.62;
  font-weight: 700;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.section {
  padding: var(--section-space) 0;
}

.section-light-round {
  margin-top: -1px;
  padding-top: calc(var(--section-space) + 0.5rem);
  border-radius: 3rem 3rem 0 0;
}

.section-label {
  margin: 0 0 1rem;
  display: inline-block;
  font-size: var(--eyebrow-size);
  font-weight: 800;
  letter-spacing: var(--eyebrow-track);
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.hero-kicker,
.section-dark .section-label {
  background: linear-gradient(90deg, #954d98, #ec6384, #f1853b);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-intro {
  margin: 0 auto 3.4rem;
  max-width: 76rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-intro .hero-actions,
.page-hero .hero-actions,
.contact-panel .hero-actions {
  justify-content: center;
}

.section-intro .section-label,
.section-intro .display-title,
.section-intro .services-copy,
.section-intro .hero-actions,
.contact-panel .section-label,
.contact-panel .display-title,
.contact-panel .contact-copy,
.contact-panel .hero-actions {
  margin-left: auto;
  margin-right: auto;
}

.content-split > div:first-child,
.content-split-copy {
  text-align: left;
}

.content-split > div:first-child .section-label,
.content-split > div:first-child .display-title,
.content-split > div:first-child h2,
.content-split > div:first-child h3 {
  margin-left: 0;
  margin-right: 0;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.display-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
  text-wrap: balance;
}

.display-title--dark {
  color: var(--text-dark);
}

.prose {
  max-width: 58rem;
  margin: 1.7rem auto 0;
}

.terms-prose {
  max-width: 74rem;
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: 1.125rem;
  line-height: 1.72;
}

.section-dark .prose p,
.section-dark .prose li {
  color: rgba(246, 242, 234, 0.88);
}

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

.prose a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 4vw, 4.75rem);
}

.about-copy {
  max-width: 43rem;
}

.about-copy .display-title {
  text-align: left;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  margin-bottom: 2rem;
}

.about-copy .section-label {
  margin: 0 0 0.85rem;
  text-align: left;
}

.about-prose {
  max-width: 100%;
  margin: 0;
}

.about-prose p {
  text-align: left;
}

.about-actions {
  justify-content: flex-start;
  margin-top: 1.65rem;
}

.about-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(23rem, 38vw, 35rem);
}

.about-character {
  width: min(100%, clamp(22.5rem, 39vw, 35rem));
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: translateY(0.8rem);
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.4));
  user-select: none;
  pointer-events: none;
}

.services-section .section-intro {
  max-width: 60rem;
}

.services-copy {
  margin: 1rem auto 0;
  max-width: 52rem;
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text-muted-dark);
}

.section-dark .services-copy {
  color: var(--text-muted-light);
}

.service-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 4.25rem;
}

.service-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line-dark);
}

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

.section-dark .service-row {
  border-top-color: var(--line-light);
}

.section-dark .service-row:last-child {
  border-bottom-color: var(--line-light);
}

.service-row-number {
  font-family: var(--display-font);
  font-size: clamp(3.4rem, 5vw, 5.8rem);
  line-height: 1;
  letter-spacing: var(--display-track-tight);
}

.service-row-copy h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
}

.service-row-copy p {
  margin: 0;
  max-width: 46rem;
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text-muted-dark);
}

.section-dark .service-row-copy p {
  color: var(--text-muted-light);
}

.service-row-pills,
.service-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.04);
  font-size: 0.9rem;
  font-weight: 700;
  color: inherit;
}

.section-dark .service-pill,
.portfolio-modal .service-pill,
.portfolio-card .service-pill {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.service-inline-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid rgba(17, 17, 17, 0.18);
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.service-inline-link:hover,
.service-inline-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.3);
}

.section-dark .service-inline-link {
  border-color: var(--line-light);
}

.section-dark .service-inline-link:hover,
.section-dark .service-inline-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
}

.projects-section .section-intro,
.work-hero .section-intro,
.contact-section .section-intro {
  max-width: 58rem;
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

.selected-work-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 4.25rem;
}

.work-archive-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 3rem;
}

.selected-work-grid > .portfolio-card,
.work-archive-grid > .portfolio-card {
  grid-column: span 2;
}

.portfolio-grid[data-grid-count="1"] > .portfolio-card {
  grid-column: 1 / -1;
}

.portfolio-grid[data-grid-count="2"] > .portfolio-card,
.portfolio-grid[data-grid-count="4"] > .portfolio-card {
  grid-column: span 3;
}

.portfolio-grid[data-grid-count="5"] > .portfolio-card:nth-child(-n + 3) {
  grid-column: span 2;
}

.portfolio-grid[data-grid-count="5"] > .portfolio-card:nth-child(n + 4) {
  grid-column: span 3;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(10, 10, 10, 0.96));
  overflow: clip;
}

.section-light .portfolio-card {
  border-color: var(--line-dark);
}

.portfolio-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: clip;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.portfolio-card-image,
.portfolio-card-image-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-image-empty {
  display: grid;
  place-items: center;
  color: var(--text-muted-light);
  font-weight: 700;
}

.portfolio-card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  gap: 0.45rem;
}

.work-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-source-badge-aberz {
  color: #ffffff;
}

.work-source-badge-agency {
  color: #f8dede;
}

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
}

.portfolio-card-body h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 1.85vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
}

.portfolio-meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted-light);
}

.portfolio-summary,
.work-attribution {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text-light);
}

.work-attribution {
  color: var(--text-muted-light);
}

.portfolio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.4rem;
}

.portfolio-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
  color: #ffffff;
}

.selected-work-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-section {
  padding-top: var(--section-space);
}

.testimonial-carousel {
  display: grid;
  gap: 1.35rem;
}

.testimonial-track {
  display: grid;
}

.testimonial-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.testimonial-card[hidden] {
  display: none;
}

.testimonial-card blockquote {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
}

.testimonial-meta {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted-light);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.testimonial-control {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
}

.testimonial-control:hover,
.testimonial-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-count {
  min-width: 4rem;
  text-align: center;
  color: var(--text-muted-light);
  font-size: 0.85rem;
  font-weight: 800;
}

.contact-panel {
  padding-bottom: clamp(4.5rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-copy {
  max-width: 44rem;
  margin: 0 auto 1.8rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted-dark);
}

.section-dark .contact-copy {
  color: var(--text-muted-light);
}

.contact-copy p {
  margin: 0 0 0.8rem;
}

.contact-copy p:last-child {
  margin-bottom: 0;
}

.page-hero {
  padding: clamp(11rem, 15vh, 14rem) 0 clamp(8rem, 10vw, 10rem);
}

.page-hero-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.page-hero[data-splash-cursor] {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.page-hero[data-splash-cursor] > :not(.splash-cursor-layer) {
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow {
  margin: 0 0 1rem;
  display: inline-block;
  font-size: var(--eyebrow-size);
  font-weight: 800;
  letter-spacing: var(--eyebrow-track);
  line-height: 1.38;
  text-transform: uppercase;
  background: linear-gradient(90deg, #954d98, #ec6384, #f1853b);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.page-hero-display {
  margin: 0;
  font-family: var(--display-font);
  width: min(100%, 82rem);
  max-width: 82rem;
  font-size: clamp(3.35rem, 6.2vw, 5.9rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
  text-wrap: balance;
}

.page-hero-copy {
  width: min(100%, 64rem);
  max-width: 64rem;
  margin: 1.65rem auto 0;
}

.page-hero-copy p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.72;
  color: rgba(246, 242, 234, 0.92);
}

.page-hero-copy p:last-child {
  margin-bottom: 0;
}

.service-page .page-hero .hero-actions,
.work-page .page-hero .hero-actions,
.terms-page .page-hero .hero-actions,
.landing-page .page-hero .hero-actions {
  justify-content: center;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: start;
}

.content-split .display-title {
  max-width: 18ch;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
}

.content-split-copy {
  min-width: 0;
  padding-top: clamp(2.35rem, 2.5vw, 3rem);
}

.service-page .section-intro .display-title,
.work-page .section-intro .display-title,
.terms-page .section-intro .display-title,
.landing-page .section-intro .display-title {
  max-width: 24ch;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  text-wrap: balance;
}

.service-page .content-split .display-title,
.work-page .content-split .display-title,
.terms-page .content-split .display-title,
.landing-page .content-split .display-title {
  max-width: 20ch;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  text-wrap: balance;
}

.content-split-copy .prose,
.content-split-copy .services-copy {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.content-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.content-split > .content-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.section-light .content-panel {
  border-color: transparent;
  background: transparent;
}

.section-light .content-split > .content-panel {
  background: transparent;
}

.content-panel > *:first-child {
  margin-top: 0;
}

.content-panel h2,
.content-panel h3 {
  margin: 0 0 0.9rem;
  font-family: var(--display-font);
  max-width: none;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.2;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
}

.content-panel p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.72;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.support-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-page .section-light .support-grid--two {
  width: min(100%, 58rem);
  margin-inline: auto;
}

.work-page .section-light .support-grid--two .support-card {
  text-align: center;
}

.support-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-grid--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timeline-grid--five > .timeline-step {
  grid-column: span 2;
}

.timeline-grid--five > .timeline-step:nth-child(4),
.timeline-grid--five > .timeline-step:nth-child(5) {
  grid-column: span 3;
}

.service-row--static {
  grid-template-columns: auto minmax(0, 1fr);
}

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

.section-dark .service-row--static:last-child {
  border-bottom-color: var(--line-light);
}

.service-row--static .service-row-copy {
  max-width: 100%;
}

.service-row--static .service-row-copy p {
  max-width: 54rem;
}

.callout-list,
.prose ul,
.prose ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.callout-list li,
.prose li {
  margin-bottom: 0.5rem;
}

.callout-list li:last-child,
.prose li:last-child {
  margin-bottom: 0;
}

.tag-cloud,
.location-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.75rem;
}

.faq-grid--single {
  grid-template-columns: 1fr;
}

.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.section-light .faq-item {
  border-color: var(--line-dark);
  background: rgba(17, 17, 17, 0.045);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-trigger span:first-child {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.faq-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-item:not(.is-open) .faq-panel {
  display: none;
}

.faq-panel {
  padding: 0 1.35rem 1.25rem;
}

.faq-panel[hidden] {
  display: none !important;
}

.faq-panel p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text-muted-light);
}

.section-light .faq-panel p {
  color: var(--text-muted-dark);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 3.25rem;
}

.support-grid:has(> :nth-child(4):last-child),
.mini-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid:has(> :nth-child(5):last-child),
.mini-grid:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.support-grid:has(> :nth-child(5):last-child) > *,
.mini-grid:has(> :nth-child(5):last-child) > * {
  grid-column: span 2;
}

.support-grid:has(> :nth-child(5):last-child) > :nth-child(n + 4),
.mini-grid:has(> :nth-child(5):last-child) > :nth-child(n + 4) {
  grid-column: span 3;
}

.support-grid:has(> :nth-child(6):last-child),
.mini-grid:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-card {
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.support-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}

.support-card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text-muted-light);
}

.section-light .support-card {
  border-color: var(--line-dark);
  background: rgba(17, 17, 17, 0.06);
}

.section-light .support-card strong {
  color: var(--text-dark);
}

.section-light .support-card p {
  color: rgba(17, 17, 17, 0.88);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.mini-card {
  padding: 1.35rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-lg);
}

.section-light .mini-card {
  border-color: var(--line-dark);
  background: rgba(17, 17, 17, 0.045);
}

.mini-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  line-height: 1.38;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.timeline-grid:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-step {
  padding: 1.35rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.section-dark .timeline-step {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
  line-height: 1.42;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-step p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.72;
}

.work-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.work-filter-chip {
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.work-filter-chip:hover,
.work-filter-chip:focus-visible,
.work-filter-chip.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.section-light .work-filter-chip {
  border-color: var(--line-dark);
  color: var(--text-dark);
  background: rgba(17, 17, 17, 0.03);
}

.section-light .work-filter-chip:hover,
.section-light .work-filter-chip:focus-visible,
.section-light .work-filter-chip.is-active {
  background: rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.2);
}

.is-hidden {
  display: none !important;
}

.empty-work {
  padding: 2rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.empty-work h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.empty-work p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted-light);
}

.section-light .empty-work {
  border-color: var(--line-dark);
  background: rgba(17, 17, 17, 0.045);
}

.section-light .empty-work p {
  color: var(--text-muted-dark);
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
}

.portfolio-modal[hidden] {
  display: none;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.portfolio-modal-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1320px);
  max-height: min(92vh, 960px);
  overflow: auto;
  border: 1px solid var(--line-light);
  border-radius: 2rem;
  background: #0c0c0c;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-modal.is-open .portfolio-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portfolio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
}

.portfolio-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(24rem, 0.82fr);
}

.portfolio-modal-media {
  display: grid;
  min-height: min(72vw, 44rem);
  border-right: 1px solid var(--line-light);
  background: #050505;
}

.portfolio-modal-carousel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100%;
}

.portfolio-modal-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: calc(min(92vh, 960px) - 4.5rem);
  padding: clamp(0.85rem, 1.6vw, 1.5rem);
  background: #050505;
}

.portfolio-modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-modal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 1.25rem 1.25rem;
}

.portfolio-modal-control {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
}

.portfolio-modal-control:hover,
.portfolio-modal-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.portfolio-modal-count {
  min-width: 4rem;
  text-align: center;
  color: var(--text-muted-light);
  font-size: 0.85rem;
  font-weight: 800;
}

.portfolio-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem 2rem 2rem;
}

.portfolio-modal-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: var(--display-track-tight);
  text-transform: uppercase;
}

.portfolio-modal-summary p,
.portfolio-modal-result-copy p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted-light);
}

.portfolio-modal-summary p:last-child,
.portfolio-modal-result-copy p:last-child {
  margin-bottom: 0;
}

.portfolio-tag-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.work-tag,
.credit-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-modal-result span {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.site-footer {
  padding: clamp(2.2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer[data-splash-cursor] {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.site-footer[data-splash-cursor] > :not(.splash-cursor-layer) {
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.3rem;
  background: transparent;
}

.footer-top {
  display: block;
}

.footer-wordmark {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(6.4rem, 13vw, 10rem);
  line-height: 0.98;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--text-muted-light);
}

.section-light .button-secondary {
  color: #000;
  border-color: #000;
}

.section-light .button-secondary:hover,
.section-light .button-secondary:focus-visible {
  color: #fff;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--line-light);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.page-intro-section {
  padding-top: 1rem;
}

.section-light .content-split-copy .prose p,
.section-light .content-panel p,
.section-light .service-row-copy p,
.section-light .services-copy,
.section-light .timeline-step p,
.section-light .mini-card p,
.section-light .contact-copy,
.section-light .contact-copy p,
.section-light .portfolio-summary,
.section-light .work-attribution,
.section-light .faq-panel p,
.section-light .prose p,
.section-light .prose li {
  color: rgba(17, 17, 17, 0.86);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.footer-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.footer-link {
  justify-self: end;
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.82;
}

.footer-link:hover,
.footer-link:focus-visible {
  opacity: 1;
}

.prose-dark p,
.prose-dark li {
  color: var(--text-muted-dark);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.footer-links a {
  font-size: 0.98rem;
  color: var(--text-light);
  opacity: 0.82;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 540ms ease,
    transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (max-width: 1240px) {
  .selected-work-grid,
  .work-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid--four,
  .timeline-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-work-grid > .portfolio-card,
  .work-archive-grid > .portfolio-card,
  .support-grid--four > .support-card,
  .timeline-grid--five > .timeline-step,
  .portfolio-grid[data-grid-count] > .portfolio-card {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .hero-wordmark {
    font-size: clamp(8rem, 27vw, 20rem);
  }

  .hero-support {
    max-width: 34rem;
  }

  .hero-support p {
    font-size: 1.125rem;
  }

  .about-shell {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.8fr);
    gap: clamp(2rem, 4vw, 3rem);
  }

  .about-copy .display-title {
    font-size: clamp(3rem, 5.2vw, 4.9rem);
  }

  .about-character {
    width: min(100%, clamp(18rem, 32vw, 25.5rem));
  }
}

@media (max-width: 980px) {
  :root {
    --header-overlap: 7rem;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    column-gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 4;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--line-light);
    border-radius: 1.4rem;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
    text-align: left;
    font-size: 0.92rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav button:hover,
  .site-nav button:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
  }

  .site-nav-item {
    width: 100%;
  }

  .site-nav-dropdown {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.4rem;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(255, 255, 255, 0.02);
  }

  .site-nav-item:hover .site-nav-dropdown,
  .site-nav-item:focus-within .site-nav-dropdown,
  .site-nav-item.is-open .site-nav-dropdown {
    transform: none;
  }

  .site-nav-item.is-open .site-nav-dropdown {
    display: grid;
  }

  .site-nav-dropdown a {
    width: 100%;
    max-width: 100%;
    transform: none;
    overflow-wrap: anywhere;
  }

  .button-nav {
    grid-column: 3;
    justify-self: end;
  }

  .page-hero {
    padding: clamp(9rem, 12vw, 11rem) 0 clamp(6.25rem, 9vw, 8rem);
  }

  .page-hero-display {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 7vw, 4.9rem);
    line-height: 1.2;
  }

  .page-hero-copy {
    max-width: 42rem;
  }

  .hero-wordmark {
    font-size: clamp(6.8rem, 24vw, 15rem);
  }

  .hero-support {
    max-width: 30rem;
  }

  .hero-support p {
    font-size: 1.125rem;
  }

  .about-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .about-visual {
    order: -1;
    margin-bottom: 0.35rem;
  }

  .about-copy {
    max-width: 100%;
  }

  .about-copy .display-title,
  .about-prose p {
    text-align: center;
  }

  .about-copy .section-label {
    display: table;
    width: auto;
    margin: 0 auto 0.85rem;
    text-align: center;
  }

  .about-actions {
    justify-content: center;
  }

  .about-visual {
    min-height: auto;
  }

  .about-character {
    width: min(76vw, 28rem);
    transform: none;
  }

  .service-row {
    grid-template-columns: auto 1fr;
  }

  .service-inline-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.35rem;
  }

  .portfolio-modal-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-modal-media {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .portfolio-modal-frame {
    max-height: none;
  }

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-link {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .hero-wordmark {
    font-size: clamp(6.2rem, 28vw, 12rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
  }

  .hero-support {
    max-width: 24rem;
  }

  .hero-support p {
    font-size: 1rem;
  }

  .about-copy .display-title {
    font-size: clamp(3rem, 10vw, 4.9rem);
  }

  .page-hero-display {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 9vw, 4.6rem);
    line-height: 1.2;
  }
}

@media (max-width: 720px) {
  :root {
    --header-overlap: 6.6rem;
    --section-space: 5rem;
    --splash-field-width: max(170vw, 56rem);
    --splash-field-height: max(120vh, 42rem);
    --splash-field-opacity: 0.5;
  }

  .section-shell,
  .site-header,
  .site-footer-inner {
    width: min(calc(100% - (var(--page-gutter-mobile) * 2)), var(--site-max));
  }

  .section-shell--narrow {
    width: min(calc(100% - (var(--page-gutter-mobile) * 2)), var(--content-max));
  }

  .site-header {
    column-gap: 0.55rem;
    padding: 0.72rem 0.78rem;
  }

  .button-nav {
    min-height: 2.85rem;
    padding: 0.78rem 0.95rem;
    font-size: clamp(0.84rem, 2.9vw, 0.92rem);
    white-space: nowrap;
  }

  .menu-toggle {
    width: 3.35rem;
    height: 3.35rem;
  }

  .hero-kicker {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-stage {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-wordmark {
    font-size: clamp(6.4rem, 34vw, 10.8rem);
    line-height: 0.94;
    letter-spacing: 0.02em;
  }

  .hero-support {
    width: min(100%, 38rem);
    max-width: 38rem;
    margin-top: 1rem;
    padding-inline: 0.85rem;
  }

  .hero-support p {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .about-section {
    padding-top: 3rem;
  }

  .about-copy .display-title {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .about-character {
    width: min(84vw, 24rem);
  }

  .about-copy .section-label {
    display: table;
    width: auto;
    margin: 0 auto 1rem;
    text-align: center;
  }

  .display-title,
  .page-hero-display {
    letter-spacing: var(--display-track-tight);
  }

  .page-hero {
    padding: 8.5rem 0 6rem;
  }

  .page-hero-inner {
    max-width: 100%;
  }

  .page-hero-display {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.85rem, 11vw, 4rem);
    line-height: 1.16;
  }

  .section-intro p:not(.section-label),
  .hero-support p,
  .prose p,
  .services-copy,
  .service-row-copy p,
  .portfolio-summary,
  .work-attribution,
  .contact-copy,
  .contact-copy p,
  .page-hero-copy p,
  .support-card p,
  .mini-card p,
  .timeline-step p {
    font-size: 1.125rem;
  }

  .section-intro p:not(.section-label),
  .hero-support p,
  .page-hero-copy p,
  .about-prose p,
  .prose p,
  .services-copy,
  .service-row-copy p,
  .portfolio-summary,
  .work-attribution,
  .contact-copy,
  .contact-copy p,
  .support-card p,
  .mini-card p,
  .timeline-step p,
  .faq-panel p {
    text-align: left;
  }

  .section-intro .section-label,
  .contact-panel .section-label,
  .page-hero-eyebrow,
  .hero-kicker {
    text-align: center;
  }

  .selected-work-grid,
  .work-archive-grid,
  .support-grid,
  .mini-grid,
  .timeline-grid,
  .faq-grid,
  .support-grid--two,
  .support-grid--four,
  .timeline-grid--five,
  .content-split {
    grid-template-columns: 1fr;
  }

  .content-split {
    gap: 2rem;
  }

  .content-split-copy {
    padding-top: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-inline-link {
    grid-column: auto;
  }

  .portfolio-card-media {
    aspect-ratio: 1.12 / 1;
  }

  .portfolio-card-body {
    padding: 1.15rem;
  }

  .portfolio-card-body h3 {
    font-size: 1.85rem;
  }

  .contact-panel {
    padding-bottom: 4rem;
  }

  .footer-wordmark {
    font-size: clamp(5.6rem, 24vw, 7.2rem);
    letter-spacing: 0.08em;
  }

  .page-intro-section {
    padding-top: 1rem;
  }
}

@media (max-width: 430px) {
  .site-header {
    column-gap: 0.45rem;
    padding-inline: 0.62rem;
  }

  .site-brand img {
    height: 1.9rem;
  }

  .button-nav {
    min-height: 2.7rem;
    padding: 0.72rem 0.78rem;
    font-size: 0.8rem;
  }

  .menu-toggle {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 640px) {
  .display-title,
  .service-page .section-intro .display-title,
  .work-page .section-intro .display-title,
  .terms-page .section-intro .display-title,
  .landing-page .section-intro .display-title,
  .service-page .content-split .display-title,
  .work-page .content-split .display-title,
  .terms-page .content-split .display-title,
  .landing-page .content-split .display-title {
    max-width: 100%;
    font-size: clamp(2.85rem, 12vw, 3.85rem);
    line-height: 1.13;
  }

  .hero-support,
  .page-hero-copy,
  .contact-section .contact-copy {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-support p,
  .page-hero-copy p,
  .contact-section .contact-copy,
  .contact-section .contact-copy p {
    text-align: center;
  }

  .page-hero .hero-actions,
  .contact-section .hero-actions {
    justify-content: center;
  }
}

/* Final grid guardrails: keep card layouts predictable across every page. */
.selected-work-grid,
.work-archive-grid,
.support-grid:not(.support-grid--two):not(.support-grid--four),
.mini-grid,
.timeline-grid,
.blog-grid,
.blog-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid.support-grid--two,
.support-grid.support-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selected-work-grid > .portfolio-card,
.work-archive-grid > .portfolio-card,
.portfolio-grid[data-grid-count] > .portfolio-card,
.support-grid > *,
.mini-grid > *,
.timeline-grid > *,
.blog-grid > *,
.blog-card-grid > * {
  min-width: 0;
  grid-column: auto;
}

.timeline-grid--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timeline-grid--five > .timeline-step {
  min-width: 0;
  grid-column: span 2;
}

.timeline-grid--five > .timeline-step:nth-child(4),
.timeline-grid--five > .timeline-step:nth-child(5) {
  grid-column: span 3;
}

.portfolio-card,
.support-card,
.mini-card,
.timeline-step,
.blog-card,
.post-card {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 1240px) {
  .selected-work-grid,
  .work-archive-grid,
  .support-grid,
  .support-grid.support-grid--two,
  .support-grid.support-grid--four,
  .mini-grid,
  .timeline-grid,
  .timeline-grid--five,
  .blog-grid,
  .blog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid--five > .timeline-step,
  .timeline-grid--five > .timeline-step:nth-child(4),
  .timeline-grid--five > .timeline-step:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .selected-work-grid,
  .work-archive-grid,
  .support-grid,
  .support-grid.support-grid--two,
  .support-grid.support-grid--four,
  .mini-grid,
  .timeline-grid,
  .timeline-grid--five,
  .blog-grid,
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .service-page main .section:not(.page-hero) .section-intro {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .service-page main .section:not(.page-hero) .section-intro .section-label,
  .service-page main .section:not(.page-hero) .section-intro .display-title,
  .service-page main .section:not(.page-hero) .section-intro .services-copy,
  .service-page main .section:not(.page-hero) .content-panel .section-label,
  .service-page main .section:not(.page-hero) .content-panel h2,
  .service-page main .section:not(.page-hero) .content-split > div:first-child .section-label,
  .service-page main .section:not(.page-hero) .content-split > div:first-child .display-title,
  .service-page main .section:not(.page-hero) .content-split > div:first-child h2 {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .service-page main .support-grid.support-grid--four {
    grid-template-columns: 1fr;
  }
}

/* Work grids: desktop/laptop 3 columns, tablet 2 columns, mobile 1 column. */
.selected-work-grid,
.work-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selected-work-grid > .portfolio-card,
.work-archive-grid > .portfolio-card,
.portfolio-grid[data-grid-count] > .portfolio-card,
.portfolio-grid[data-grid-count="1"] > .portfolio-card,
.portfolio-grid[data-grid-count="2"] > .portfolio-card,
.portfolio-grid[data-grid-count="4"] > .portfolio-card,
.portfolio-grid[data-grid-count="5"] > .portfolio-card:nth-child(-n + 3),
.portfolio-grid[data-grid-count="5"] > .portfolio-card:nth-child(n + 4) {
  grid-column: auto;
}

@media (max-width: 1024px) {
  .selected-work-grid,
  .work-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .selected-work-grid,
  .work-archive-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
