/* ==========================================================================
   ALEXANDAR PAVLOV PORTFOLIO - STYLES
   Design System + Components + Animations + Accessibility
   ========================================================================== */

/* ==========================================================================
   0. SELF-HOSTED FONTS
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  size-adjust: 102%;
  ascent-override: 96%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  size-adjust: 102%;
  ascent-override: 96%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* Metric-matched fallback so layout does not shift when Manrope swaps in */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 102%;
  ascent-override: 96%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* <picture> wrappers must not alter layout - the inner <img> is positioned
   by its container (absolute fills, object-fit covers). display:contents
   removes the picture's own box so the img behaves as a direct child. */
.about-page-photo picture,
.single-image picture,
.mobile-screen picture,
.mobile-screen--img picture,
.project-hero-image-frame picture,
.block-fullwidth .single-image picture {
  display: contents;
}

/* Mobile case-study tweaks */
@media (max-width: 768px) {
  /* Device blocks span full viewport width, no side padding */
  .case-block--device {
    overflow: visible;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(32px, 6vh, 64px) 0 clamp(40px, 8vh, 80px);
  }

  /* Tighter vertical rhythm between forma sections on mobile */
  .project-content-stream {
    gap: var(--space-10);
  }

  /* First device (hero macpro) fills full width */
  .case-blocks .content-image-block {
    width: 100%;
  }

  /* Carousel: kill inline 100vw break-out (case-block already spans full
     width); laptop slot auto-height, btn-track flows below inside block. */
  .case-block--device .carousel-outer {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: visible;
  }
  .case-block--device .single-block.block-device.block-padding-bottom {
    height: auto;
    padding-inline: 0;
  }
  /* Laptop near-full-width, centered, minimal side padding */
  .case-block--device .single-block.block-device.block-padding-bottom .device,
  .case-block--device .single-block.block-device.block-padding-bottom .device-mbp15 {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-inline: 0;
    transform: scale(1.04);
    transform-origin: center;
  }
  .case-block--device .carousel-outer .single-block.block-device {
    padding-inline: 0;
  }
  .carousel-btn-track {
    padding: 16px 8px 0;
    max-width: 100%;
  }
}

/* Craft-pass polish: selection, caret, body-copy text-wrap */
::selection {
  background: var(--color-accent, #0066ff);
  color: #ffffff;
}
input, textarea {
  caret-color: var(--color-accent, #0066ff);
}
p, li {
  text-wrap: pretty;
}
/* Balance headings so the last line never drops a single orphan word */
h1, h2, h3,
.hero-title, .section-title, .project-title,
.case-title, .about-page-title, .about-display-title,
.project-section-title {
  text-wrap: balance;
}

/* Craft-pass perf: skip layout/paint for off-screen long sections */
.services-section,
.faq-section,
.contact-section,
.project-dynamic-body-section,
.project-next-teaser-section,
.about-page-section .about-page-content {
  content-visibility: auto;
  contain-intrinsic-size: 0 1200px;
}

/* Form validation styling - only after user interaction, native-driven */
.form-input:user-invalid {
  border-color: var(--color-danger, #c93d2e);
  box-shadow: 0 0 0 4px rgba(201, 61, 46, 0.12);
}
.form-input:user-valid {
  border-color: rgba(46, 160, 110, 0.55);
}

/* Print stylesheet - clean text output, no chrome */
@media print {
  header, footer, .footer-outer, .navbar, .mobile-nav, .nav-toggle,
  .ambient-background, .image-marquee, .plates-counter, .skip-link,
  .case-live-cta, .live-site-btn, .button-primary, .button-secondary,
  .video-toggle video, .screen-video, .carousel-btn-track {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Georgia, serif;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
  }
  a {
    color: inherit;
    text-decoration: underline;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
  picture, img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  h1, h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colors - Primary */
  --color-background: #F7F5F0;
  --color-text: #29303d;
  --color-accent: #0066ff;
  --color-white: #ffffff;

  /* Colors - Secondary (WCAG 2.2-tuned) */
  --color-border: #8d97aa;                  /* was #c2c9d6 - bumped to UI 3:1 */
  --color-text-muted: rgba(41, 48, 61, 0.8);
  --color-text-soft: rgba(41, 48, 61, 0.75);
  --color-text-light: rgba(41, 48, 61, 0.72); /* ~5.3:1 on bg - passes AA for normal text */
  --color-border-subtle: rgba(41, 48, 61, 0.12);
  --color-about-bg: #f8f6f2;

  /* Colors - Semantic (WCAG 2.2-tuned) */
  --color-success: #1f9c44;  /* was #34c759 - passes UI 3:1 */
  --color-error:   #cf2820;  /* was #ff3b30 - passes AA normal text */
  --color-warning: #cc6b00;  /* was #ff9500 - passes UI + AA large */

  /* Typography - Fonts */
  --font-display: "Manrope", "Manrope Fallback", system-ui, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", system-ui, sans-serif;

  /* Typography - Sizes */
  --text-hero:    clamp(40px, calc(2.5vw + 32px), 96px);
  --text-section: clamp(36px, calc(2.25vw + 28.8px), 88px);
  --text-service: clamp(24px, calc(1vw + 20.8px), 48px);
  --text-project: 32px;
  --text-body-lg: 24px;
  --text-body: 20px;
  --text-body-sm: 16px;
  --text-button: 24px;
  --text-button-sm: 20px;

  /* Typography - Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --page-width: 1200px;
  --content-width: 1600px;
  --side-margin: 64px;
  --section-gap: 200px;

  /* Components */
  --card-padding: 32px;
  --card-gap: 28px;
  --button-padding: 20px 40px;
  --input-padding: 20px;
  --border-radius: 16px;
  --border-radius-button: 9999px;

  /* Animations */
  --duration-fast: 274ms;
  --duration-normal: var(--motion-tempo-primary);
  --duration-slow: 692ms;
  --ease-out: var(--motion-ease-primary);
  --ease-in-out: var(--motion-ease-accent);
  --motion-tempo-primary: 436ms;
  --motion-ease-primary: cubic-bezier(0.33, 0.06, 0.12, 0.97);
  --motion-ease-accent: cubic-bezier(0.38, 0.10, 0.16, 0.98);
  --motion-exit-ratio: 0.63;

  /* Glassmorphism */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.45) 100%);
  --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.55) 100%);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-blur: blur(3rem);
  --glass-shadow: 0 16px 40px rgba(0, 30, 80, 0.1), inset 0 2px 4px rgba(255, 255, 255, 1);
  --glass-accent-bg: rgba(255, 255, 255, 0.72);
  --glass-accent-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-accent-border: rgba(28, 29, 32, 0.12);
  --glass-accent-blur: blur(18px);
  --glass-accent-shadow: 0 18px 48px rgba(28, 29, 32, 0.08);
}

/* ==========================================================================
   2. BASE STYLES (Reset & Typography)
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* Defensive: prevent any wide child from causing page-level horizontal scroll
     on mobile. overflow-x: clip (vs hidden) does not break position: sticky. */
  overflow-x: clip;
  max-width: 100vw;
}

/* Ambient Background Animations */

body {
  overflow-x: clip;
  max-width: 100vw;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--motion-tempo-primary);
  animation-timing-function: var(--motion-ease-primary);
}

::view-transition-old(root) {
  animation-name: page-fade-out;
}

::view-transition-new(root) {
  animation-name: page-fade-in;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* Glassmorphism Panel */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
  box-shadow: 0 16px 48px rgba(0, 102, 255, 0.08); /* slightly stronger shadow */
}
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--color-background);
  pointer-events: none;
}

/* Reduce ambient blur cost on mobile - three large blurred orbs cost the
   GPU heavily during scroll. Smaller orbs + lighter blur ≈ same effect. */
@media (max-width: 768px) {
  .ambient-orb {
    filter: blur(48px);
    opacity: 0.35;
  }
  .orb-1 { width: 80vw; height: 80vw; }
  .orb-2 { width: 70vw; height: 70vw; }
  .orb-3 { width: 60vw; height: 60vw; }
}

@media (hover: none) and (pointer: coarse) {
  .ambient-orb { animation-duration: 60s !important; }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-orb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: rgba(0, 102, 255, 0.15); /* Accent Blue */
  top: -10vw;
  left: -10vw;
  animation-duration: 25s;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: rgba(52, 199, 89, 0.1); /* Soft Green */
  bottom: -20vw;
  right: -10vw;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: rgba(0, 200, 255, 0.1); /* Cyan */
  top: 40%;
  left: 30%;
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes float-orb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, 5%) scale(1.05);
  }
  66% {
    transform: translate(-5%, 8%) scale(0.95);
  }
  100% {
    transform: translate(2%, -5%) scale(1.1);
  }
}

/* ==========================================================================
   4. ACCESSIBILITY
   ========================================================================== */



/* Focus States */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

button:focus-visible,
.button-primary:focus-visible {
  outline-offset: 6px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  /* Transparent outline stays invisible normally but becomes a real focus ring
     in Windows high-contrast / forced-colors mode, where box-shadow is dropped. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.24);
}

/* Screen Reader Only */
.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;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 Buttons
   -------------------------------------------------------------------------- */

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--button-padding);
  border-radius: var(--border-radius-button);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  letter-spacing: 0.24px;
  line-height: var(--leading-normal);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button-primary::before,
.button-secondary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.04) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.button-primary {
  background:
    linear-gradient(160deg, rgba(0, 102, 255, 1) 0%, rgba(0, 94, 236, 0.98) 52%, rgba(0, 78, 198, 0.96) 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 18px rgba(0, 102, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button-primary:hover {
  transform: translateY(-2px)
  scale(1.02);
  box-shadow:
    0 12px 24px rgba(0, 102, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-primary:active {
  transform: translateY(0);
  transition-duration: 80ms; /* press lands faster than the hover lift */
}

/* Button Text Slide Animation */
.btn-content {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
}

.btn-text,
.btn-hover-text {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-text {
  display: block;
}

.btn-hover-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
}

.button-primary:hover .btn-text {
  transform: translateY(-100%);
}

.button-primary:hover .btn-hover-text {
  transform: translateY(-100%);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(98.12% 191.19% at 50% 50.72%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.34) 75.96%);
  box-shadow:
    0 14px 30px rgba(16, 24, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: var(--color-text);
}

.button-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 36px rgba(16, 24, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button-secondary:active {
  transform: translateY(0);
  transition-duration: 80ms; /* press lands faster than the hover lift */
}

.button-secondary:hover .btn-text {
  transform: translateY(-100%);
}

.button-secondary:hover .btn-hover-text {
  transform: translateY(-100%);
}

/* --------------------------------------------------------------------------
   5.2 Navigation
   -------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 880px;
  max-width: calc(100% - 64px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 9999px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: transform var(--duration-normal) var(--ease-out);
}

.navbar--hidden {
  transform: translateX(-50%) translateY(calc(-100% - 42px));
}


.nav-logo {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  position: relative;
  transition: color var(--duration-normal) var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  font-size: var(--text-button-sm);
  padding: 12px 24px;
}

/* Mobile nav toggle button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
  background: rgba(41, 48, 61, 0.06);
}

.nav-toggle-close {
  display: none;
}

.nav-toggle.is-open .nav-toggle-open {
  display: none;
}

.nav-toggle.is-open .nav-toggle-close {
  display: flex;
}

/* Mobile Navigation Overlay - lightweight fade + staggered reveal */
.mobile-nav {
  --mobile-nav-duration: var(--mobile-nav-close-duration, var(--duration-normal));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 249, 250, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.985);
  transform-origin: top center;
  visibility: hidden;
  transition:
    opacity var(--mobile-nav-duration) var(--ease-out),
    transform var(--mobile-nav-duration) var(--motion-ease-primary),
    visibility 0s linear var(--mobile-nav-duration);
  will-change: opacity, transform;
}

.mobile-nav.is-open {
  --mobile-nav-duration: var(--mobile-nav-open-duration, var(--duration-normal));
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0ms;
}

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

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    color var(--duration-fast) var(--ease-out),
    opacity calc(var(--mobile-nav-duration) * 0.72) var(--motion-ease-primary),
    transform calc(var(--mobile-nav-duration) * 0.72) var(--motion-ease-primary);
  will-change: opacity, transform;
}

.mobile-nav.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav-link:nth-child(1) {
  transition-delay: 60ms;
}

.mobile-nav.is-open .mobile-nav-link:nth-child(2) {
  transition-delay: 120ms;
}

.mobile-nav.is-open .mobile-nav-link:nth-child(3) {
  transition-delay: 180ms;
}

.mobile-nav.is-open .mobile-nav-link:nth-child(4) {
  transition-delay: 240ms;
}

.mobile-nav.is-open .mobile-nav-link:nth-child(5) {
  transition-delay: 300ms;
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

.mobile-nav-cta {
  margin-top: var(--space-8);
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav-link {
    transition-duration: 1ms;
    transition-delay: 0ms;
  }

  .mobile-nav,
  .mobile-nav-link,
  .mobile-nav.is-open .mobile-nav-link {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   5.3 Form Elements
   -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-body);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--input-padding);
  font-family: var(--font-body);
  font-size: var(--text-body);
  background: var(--color-white);
  box-shadow:
    0 12px 28px rgba(0, 30, 80, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--color-text);
  transition:
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

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

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329303D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 50px;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-helper {
  text-align: center;
  color: var(--color-text-light);
  font-size: 16px;
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   5.4 Project Cards
   -------------------------------------------------------------------------- */

.project-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.project-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: 0 16px 48px rgba(0, 102, 255, 0.08);
}

/* Project Card Link Wrapper */
.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--space-6);
}

.project-image {
  width: 100%;
  aspect-ratio: 400 / 284;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

/* Placeholder gradient for images */
.project-image.placeholder,
.project-hero-image.placeholder,
.gallery-item .placeholder {
  background: linear-gradient(
    135deg,
    rgba(194, 201, 214, 0.3) 0%,
    rgba(41, 48, 61, 0.3) 50%,
    rgba(0, 102, 255, 0.15) 100%
  );
  object-fit: none;
}

.project-image.placeholder {
  aspect-ratio: 400 / 284;
  object-fit: cover;
}

.project-hero-image.placeholder {
  aspect-ratio: 16 / 9;
}

.gallery-item img.placeholder {
  aspect-ratio: 4 / 3;
  min-height: 300px;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title {
  font-family: var(--font-body);
  font-size: var(--text-project);
  font-weight: 700;
  letter-spacing: 0;
}

/* Arrow Slide Animation Container */
.arrow-content {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 28px;
  height: 20px;
  z-index: 1;
}

.project-arrow {
  width: 28px;
  height: 20px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.arrow-default {
  transform: translateX(0);
}

.arrow-hover {
  position: absolute;
  left: calc(-100% - 8px);
  top: 0;
  /* Accent color filter */
  filter: brightness(0) saturate(100%) invert(26%) sepia(98%) saturate(2097%) hue-rotate(210deg) brightness(102%) contrast(104%);
}

.project-card:hover .arrow-default {
  transform: translateX(calc(100% + 8px));
}

.project-card:hover .arrow-hover {
  transform: translateX(calc(100% + 8px));
}

.project-category {
  font-size: var(--text-body);
  color: var(--color-text-muted);
}

/* Upcoming Project Overlay */
.project-image-wrapper {
  position: relative;
}

.project-upcoming-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 2;
}

.project-upcoming-label {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
}

/* Disabled card (upcoming projects) */
.project-card--upcoming {
  cursor: default;
}

.project-card--upcoming:hover {
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

.project-card--upcoming:hover .project-image {
  transform: none;
}

.project-card-link--disabled {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   6.1 Hero Section
   -------------------------------------------------------------------------- */

.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-section--shader {
  isolation: isolate;
  background:
    radial-gradient(circle at 100% 18%, rgba(255, 255, 255, 0.94) 0%, rgba(204, 248, 255, 0.78) 20%, rgba(113, 225, 232, 0.3) 38%, rgba(244, 249, 250, 0) 58%),
    radial-gradient(circle at 18% 12%, rgba(185, 255, 229, 0.72) 0%, rgba(115, 237, 201, 0.28) 28%, rgba(244, 249, 250, 0) 56%),
    radial-gradient(circle at 74% 78%, rgba(205, 214, 255, 0.54) 0%, rgba(140, 174, 255, 0.22) 26%, rgba(244, 249, 250, 0) 52%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.hero-section--shader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(244, 249, 250, 0.16) 0%, rgba(244, 249, 250, 0.08) 20%, rgba(244, 249, 250, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.18) 28%, rgba(244, 249, 250, 0.08) 100%);
}


.hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(117, 235, 215, 0.22) 0%, rgba(102, 216, 255, 0.14) 22%, rgba(187, 171, 255, 0.1) 36%, rgba(244, 249, 250, 0) 62%);
}

.hero-shader__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity var(--duration-slow) var(--ease-out);
  mix-blend-mode: screen;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 2;
  padding: 0 var(--space-6);
  max-width: 1160px;
}

.hero-eyebrow {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-section--shader .hero-eyebrow {
  color: var(--color-accent);
  text-shadow: 0 8px 20px rgba(255, 255, 255, 0.52);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  letter-spacing: -1.6px;
  color: var(--color-text);
  text-align: center;
  margin-top: var(--space-4);
  max-width: 1280px;
}

.hero-section--shader .hero-title {
  color: var(--color-text);
  text-shadow: 0 16px 34px rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  letter-spacing: -0.24px;
  max-width: 512px;
  text-align: center;
  line-height: 1.6;
}

.hero-section--shader .hero-subtitle {
  color: var(--color-text-muted);
  text-shadow: 0 10px 22px rgba(255, 255, 255, 0.54);
  max-width: 480px;
}

.hero-cta {
  margin-top: var(--space-8);
}



.project-image--birse-cover {
  object-position: center center;
}

/* --------------------------------------------------------------------------
   6.2 Work Section
   -------------------------------------------------------------------------- */

.work-section {
  padding-top: var(--space-24);
  padding-bottom: var(--section-gap);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: var(--space-4);
}

.section-header-left {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 400;
  letter-spacing: -0.72px;
  text-transform: uppercase;
}



.project-count {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}







/* --------------------------------------------------------------------------
   6.3 About Section
   -------------------------------------------------------------------------- */

.about-section {
  padding-bottom: var(--section-gap);
}


.about-heading-content {
  display: flex;
  align-items: center;
  gap: var(--card-gap);
}

.about-photo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-radius var(--duration-normal) var(--ease-out);
}

.about-photo-circle--square {
  border-radius: 0;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-display-title {
  font-family: var(--font-display);
  font-size: 148px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.about-body-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  padding: var(--space-16) 0;
}

.about-col-left,
.about-col-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-bio-new {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: var(--color-text-soft);
  margin: 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-self: center;
}

.about-content .about-cta-btn {
  align-self: flex-start;
}

.hanger {
  position: relative;
  display: block;
  width: 220px;
  padding: var(--space-4) var(--space-4) var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  align-self: center;
  justify-self: end;
  color: var(--color-text);
  transform: rotate(-3deg);
  transform-origin: center;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.hanger:hover {
  transform: rotate(0deg);
  box-shadow: var(--glass-shadow), 0 16px 32px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.hanger-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: var(--space-4);
  border-radius: calc(var(--border-radius) - var(--space-1));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.hanger-eyebrow {
  margin: 0 0 var(--space-1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hanger-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: -0.2px;
  color: var(--color-text);
}

.hanger-globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.hanger-globe-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(30deg);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
  animation: hangerGlobe 5.4s var(--ease-out) infinite;
}

.hanger-globe-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 1.5px 0 0 1.5px var(--color-accent);
  animation: hangerCircle 2.7s linear infinite;
  transform: translate(-50%, -50%);
}

.hanger-globe-circle:nth-child(1) { animation-delay: -1.8s; }
.hanger-globe-circle:nth-child(2) { animation-delay: -0.9s; }

.hanger-globe-hor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 55%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.hanger-globe-hor-middle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 1.5px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
}

@keyframes hangerGlobe {
  0%   { transform: translate(-50%, -50%) rotate(15deg); }
  50%  { transform: translate(-50%, -50%) rotate(-15deg); }
  100% { transform: translate(-50%, -50%) rotate(15deg); }
}

@keyframes hangerCircle {
  0%   { border-radius: 50%; box-shadow: inset 1.5px 0 0 1.5px var(--color-accent); width: 100%; }
  49%  { border-radius: 50%; box-shadow: inset 1.5px 0 0 1.5px var(--color-accent); background: transparent; }
  50%  { border-radius: 0; width: 2px; background: var(--color-accent); }
  51%  { border-radius: 50%; box-shadow: inset -1.5px 0 0 1.5px var(--color-accent); background: transparent; }
  100% { border-radius: 50%; box-shadow: inset -1.5px 0 0 1.5px var(--color-accent); width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hanger-globe-wrap,
  .hanger-globe-circle {
    animation: none;
  }
}


.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 19px 49px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(98.12% 191.19% at 50% 50.72%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.34) 75.96%);
  box-shadow:
    0 14px 30px rgba(16, 24, 40, 0.14),
    inset 0 1px 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-family: var(--font-body);
  font-size: var(--text-button-sm);
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 30px;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.about-cta-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.04) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.about-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 36px rgba(16, 24, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.about-cta-btn:active {
  transform: translateY(0);
}

.about-cta-btn:hover .btn-text {
  transform: translateY(-100%);
}

.about-cta-btn:hover .btn-hover-text {
  transform: translateY(-100%);
}

.highlight-link {
  color: var(--color-accent);
  transition: opacity var(--duration-normal) var(--ease-out);
}

.highlight-link:hover {
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .about-display-title {
    font-size: clamp(64px, 10vw, 148px);
  }

  .about-photo-circle {
    width: clamp(72px, 10vw, 148px);
    height: clamp(72px, 10vw, 148px);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding-bottom: var(--space-20);
  }

  .about-heading-row {
    padding: var(--space-12) 0 var(--space-10);
  }

  .about-display-title {
    font-size: clamp(48px, 14vw, 148px);
  }

  .about-photo-circle {
    width: 64px;
    height: 64px;
  }

  .about-body-row {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: var(--space-10) 0;
  }

  .about-content {
    gap: var(--space-6);
    align-self: stretch;
    align-items: center;
    text-align: center;
  }

  .about-content .about-cta-btn {
    align-self: center;
  }

  .about-heading-content {
    gap: var(--space-4);
  }

  .hanger {
    width: min(220px, 70vw);
    justify-self: center;
    align-self: center;
    transform: rotate(-2deg);
  }
  .hanger:hover {
    transform: rotate(0deg);
  }

  .about-cta-row {
    padding-top: var(--space-10);
  }
}

@media (max-width: 480px) {
  .about-body-row {
    gap: var(--space-8);
    padding: var(--space-8) 0;
  }
  .hanger {
    width: min(200px, 64vw);
  }
}



/* --------------------------------------------------------------------------
   6.4 Services Section
   -------------------------------------------------------------------------- */

.services-section {
  padding-bottom: var(--section-gap);
}

.section-title-display {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 400;
  letter-spacing: -0.72px;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 24%, 280px);
  grid-template-areas:
    "title icon"
    "description icon";
  align-items: stretch;
  column-gap: clamp(var(--space-6), 5vw, var(--space-16));
  row-gap: var(--space-4);
  flex: 1;
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  padding: var(--space-8);
  overflow: hidden;
  cursor: pointer;
}

.service-item[role="button"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.service-title {
  grid-area: title;
  align-self: end;
  font-family: var(--font-body);
  font-size: var(--text-service);
  font-weight: 600;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.service-description {
  grid-area: description;
  align-self: start;
  font-size: var(--text-body);
  color: var(--color-text-muted);
  max-width: 100%;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-bg-icon {
  grid-area: icon;
  align-self: center;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  height: var(--service-icon-height, auto);
  max-width: 100%;
  max-height: 100%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.service-bg-icon-svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  overflow: visible;
}

.service-icon-shape {
  stroke: #464646;
  stroke-width: 12px;
  stroke-linecap: round;
  stroke-dasharray: 1 8;
  transition:
    stroke var(--duration-normal) var(--ease-out),
    stroke-width var(--duration-normal) var(--ease-out),
    stroke-dasharray var(--duration-normal) var(--ease-out);
}

.service-item.is-viewport-active .service-bg-icon {
  opacity: 1;
}

.service-item.is-viewport-active .service-icon-shape {
  stroke: #3b82f6;
  stroke-width: 18px;
  stroke-dasharray: 100 0;
}

.services-list.has-service-interaction .service-item .service-bg-icon {
  opacity: 0.5;
}

.services-list.has-service-interaction .service-item.is-interaction-active .service-bg-icon {
  opacity: 1;
}

.service-item:hover .service-icon-shape,
.service-item:focus-within .service-icon-shape {
  stroke: #3b82f6;
  stroke-width: 18px;
  stroke-dasharray: 100 0;
}

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

/* --------------------------------------------------------------------------
   6.5 Contact Section
   -------------------------------------------------------------------------- */

.contact-section {
  padding-top: var(--space-24);
  padding-bottom: var(--section-gap);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 522px;
  gap: var(--space-16);
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 400;
  letter-spacing: -0.72px;
  line-height: 1.1;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.contact-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-muted);
}

.contact-email {
  margin-top: var(--space-16);
}

.email-label {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.email-link {
  font-size: var(--text-body);
  color: var(--color-accent);
  transition: opacity var(--duration-normal) var(--ease-out);
}

.email-link:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Availability Signal
   -------------------------------------------------------------------------- */

.availability-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
  font-weight: 600;
  color: #34C759;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.availability-icon {
  flex-shrink: 0;
  display: block;
}

.contact-form {
  background: transparent;
}

/* --------------------------------------------------------------------------
   6.5.1 FAQ Section
   -------------------------------------------------------------------------- */

.faq-section {
  padding-top: var(--space-24);
  padding-bottom: var(--section-gap);
  background-color: var(--color-section-alt);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.faq-section .section-title-display {
  margin-bottom: var(--space-12);
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.faq-item:hover {
  background: var(--glass-bg-hover);
}

.faq-item.is-open {
  background: var(--glass-bg-hover);
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  min-height: 44px;
  padding: var(--space-6);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  text-align: left;
  transition: color var(--duration-normal) var(--ease-out);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: "";
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-item.is-open .faq-question {
  color: var(--color-accent);
}

/* FAQ Icon (+ to ×) with smooth rotation */
.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.faq-icon::before {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.faq-icon::after {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

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

/* Answer container - smooth height animation using grid */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-normal) var(--ease-out);
  padding: 0 var(--space-6);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

/* Text fade in with upward movement */
.faq-answer p {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  padding-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--duration-normal) var(--ease-out) 74ms,
              transform var(--duration-normal) var(--ease-out) 74ms;
}

.faq-item.is-open .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Mobile Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding-bottom: var(--space-16);
  }

  .faq-section .section-title-display {
    font-size: var(--text-section);
    margin-bottom: var(--space-8);
  }

  .faq-question {
    padding: var(--space-4) var(--space-5);
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 var(--space-5);
  }

  .faq-answer p {
    font-size: 16px;
    padding-bottom: var(--space-5);
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: var(--space-4);
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 var(--space-4);
  }

  .faq-answer p {
    font-size: 15px;
    padding-bottom: var(--space-4);
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-icon::before {
    height: 14px;
    top: 3px;
    left: 9px;
  }

  .faq-icon::after {
    width: 14px;
    top: 9px;
    left: 3px;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-question,
  .faq-icon,
  .faq-icon::before,
  .faq-icon::after,
  .faq-answer,
  .faq-answer p {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   6.6 Footer
   -------------------------------------------------------------------------- */

/* --- Footer Base --- */
.footer-outer {
  position: relative;
  overflow: hidden;
  background: #3a3a3a;
}

.footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  background: radial-gradient(42.5% 39.06% at 11.71% 68.84%, rgba(89, 91, 94, 0.80) 0%, #3C3D3E 100%);
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* --- Footer Nav (large links at top) --- */
.footer-nav {
  display: flex;
  align-items: start;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: -0.5px;
  transition: color var(--duration-normal) var(--ease-out);
}

.footer-link:hover {
  color: var(--color-accent);
}

/* --- Divider --- */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Footer Bottom Row (info + right) --- */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* Left side: avatar + info + CTAs */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.footer-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0px;
  font-size: 16px;
  font-weight: 600;
  color: #34c759;
}

.footer-status-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 28px;
  color: var(--color-white);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.3px;
}

.footer-location {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-ctas {
  display: flex;
  gap: var(--space-4);
}

.footer-cta-primary {
  font-size: 16px;
  padding: 12px 28px;
}

.footer-cta-secondary {
  font-size: 16px;
  padding: 12px 28px;
  color: var(--color-white);
}

/* Right side: copyright + social stacked */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-5);
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  text-align: right;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
  transition: background var(--duration-normal) var(--ease-out);
}

.social-icon {
  position: relative;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-normal) var(--ease-out), transform var(--duration-slow) var(--ease-out);
  z-index: 3;
}

.footer-social-link:hover {
  background: var(--color-accent);
}

.footer-social-link:hover .social-icon {
  color: var(--color-white);
  transform: rotateY(360deg);
}

/* --------------------------------------------------------------------------
   6.7 Project Detail Page
   -------------------------------------------------------------------------- */

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* Content stream reveal animation */
.content-text-block.reveal,
.content-image-block.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.content-text-block.reveal.visible,
.content-image-block.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .content-text-block.reveal,
  .content-image-block.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Back to Work link */
.back-to-work {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  transition: color var(--duration-normal) var(--ease-out);
}

.back-to-work:hover {
  color: var(--color-accent);
}

/* Project Hero */
.project-hero-section {
  padding-top: 160px;
  padding-bottom: var(--space-16);
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-6);
  margin-top: var(--space-16);
  margin-bottom: var(--space-8);
  max-width: 900px;
}

.project-eyebrow {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, var(--text-hero));
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

/* Lead paragraph below the hero title */
.project-lead {
  margin: 0;
  max-width: 39rem;
  font-size: clamp(1rem, 1.85vw, var(--text-body-lg));
  line-height: 1.55;
  color: var(--color-text-muted);
}

.project-hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.project-hero-full-section {
  padding-bottom: var(--space-16);
}

/* Frame wrapper for relative positioning of the logo overlay */
.project-hero-image-frame {
  position: relative;
  display: block;
  line-height: 0; /* removes inline gap under img */
}

/* Centered glassmorphic logo pill */
.project-hero-logo-wrap {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 11.11vw;
  height: 11.11vw;
  padding: 2.5vw;
  background: radial-gradient(circle, rgba(224, 224, 224, 0) 30%, rgba(255, 255, 255, 1) 100%);
  backdrop-filter: blur(3rem);
  -webkit-backdrop-filter: blur(3rem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  z-index: 4;
}

.project-hero-logo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
}

.project-hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

/* Hero spans the full viewport (desktop + mobile) - break out of .container */
.project-hero-full-section > .container {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}
.project-hero-image-frame { border-radius: 0; }
.project-hero-full-section .project-hero-image {
  border-radius: 0;
  object-fit: cover;
}
/* Desktop only: full-height hero. Mobile keeps its own 50vh rule. */
@media (min-width: 769px) {
  .project-hero-full-section .project-hero-image {
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .project-hero-image {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .project-hero-image {
    border-radius: 8px;
  }
}



/* Inline colour swatch (used inside rich text next to hex codes) */
.inline-color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 4px 1px 1px;
}

/* Rich Text Content */
.rich-text {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.rich-text p {
  margin-bottom: var(--space-4);
}

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

/* Project Content Sections (Challenge, Solution) */
.project-content-section {
  padding: var(--space-16) 0;
}

.project-section-title {
  font-family: var(--font-display);
  font-size: var(--text-service);
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.project-content-section .rich-text {
  /* ~70 chars/line - the comfortable reading measure for 20px body */
  max-width: 70ch;
}

/* Project Gallery */
.project-gallery-section {
  padding: var(--space-16) 0;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Project Brief & Concept Sections */
.project-brief-section,
.project-concept-section {
  padding: var(--space-24) 0;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
}

/* Meta Data Stylings */
.brief-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.brief-meta-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.meta-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: var(--text-body);
  color: var(--color-text);
  font-weight: 500;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 102, 255, 0.1);
  color: #0052cc; /* darkened accent for 5.59:1 AA on the 10% tinted bg */
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
}

/* Live site circular CTA button */
.live-site-btn {
  width: clamp(130px, 14.58vw, 280px);
  height: clamp(130px, 14.58vw, 280px);
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(0, 102, 255, 1) 0%, rgba(0, 94, 236, 0.98) 52%, rgba(0, 78, 198, 0.96) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(11px, 0.97vw, 16px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  box-shadow:
    0 18px 38px rgba(0, 102, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  will-change: transform;
  transition: box-shadow var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
}

.live-site-btn:hover {
  filter: brightness(1.08);
  box-shadow:
    0 22px 44px rgba(0, 102, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.live-site-btn:active {
  filter: brightness(0.94);
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-palette {
  display: flex;
  gap: 5px;
}

.palette-swatch {
  flex: 1;
  height: 40px;
  border-radius: 8px;
}

/* Badge Styling */
.project-badges {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-4);
}

.conceptual-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
}

/* Content Widths */
.brief-content,
.concept-content {
  max-width: 800px;
}

/* Single-column variant when the challenge text column is hidden (modern content mode) */
.brief-grid.brief-meta-only {
  grid-template-columns: 1fr;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.testimonial-content {
  background: #FFFFFF;
  border-left: 2px solid var(--color-accent);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.project-next-teaser-section {
  padding: clamp(6rem, 12vw, 10rem) 0;
}

.project-next-teaser {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  overflow: visible;
  row-gap: clamp(1.5rem, 2.8vw, 2.5rem);
  color: var(--color-text);
  text-decoration: none;
}

.project-next-teaser__label {
  display: block;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  justify-self: center;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.project-next-teaser__layout {
  display: grid;
  grid-template-columns: max-content clamp(180px, 18vw, 260px) max-content;
  position: relative;
  align-items: center;
  justify-content: center;
  column-gap: clamp(1rem, 2vw, 1.75rem);
}

.project-next-teaser__title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.8vw, 5.9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  color: var(--color-text);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.project-next-teaser__title:empty {
  display: none;
}

.project-next-teaser__title--left {
  text-align: right;
}

.project-next-teaser__title--right {
  text-align: left;
}

.project-next-teaser__media {
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(41, 48, 61, 0.18);
  transform-origin: center center;
  transition: transform var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform;
}

.project-next-teaser__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--duration-normal) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .project-next-teaser:hover .project-next-teaser__media {
    transform: scale(1.5);
    box-shadow: 0 2rem 4rem rgba(18, 24, 38, 0.12);
  }

  .project-next-teaser:hover .project-next-teaser__image {
    opacity: 1;
  }

  .project-next-teaser:hover .project-next-teaser__title {
    opacity: 0.28;
  }

  .project-next-teaser:hover .project-next-teaser__label {
    opacity: 0.28;
  }

  .project-next-teaser:hover .project-next-teaser__title--left {
    transform: translateX(-0.8rem);
  }

  .project-next-teaser:hover .project-next-teaser__title--right {
    transform: translateX(0.8rem);
  }
}

.project-next-teaser:focus-visible .project-next-teaser__media {
  transform: scale(1.08);
}

.project-next-teaser:focus-visible .project-next-teaser__image {
  opacity: 1;
}

.project-next-teaser:focus-visible .project-next-teaser__title {
  opacity: 0.72;
}

.project-next-teaser:focus-visible .project-next-teaser__label {
  opacity: 0.72;
}

@media (min-width: 901px) {
  .brief-grid.brief-meta-only .brief-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-16);
  }
}

/* Responsive Grid */
@media (max-width: 900px) {
  .brief-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .brief-meta {
    flex-direction: column-reverse;
  }

  .project-next-teaser__layout {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: var(--space-6);
    text-align: center;
  }

  .project-next-teaser__label {
    justify-self: center;
  }

  .project-next-teaser__title,
  .project-next-teaser__title--right {
    text-align: center;
    white-space: normal;
  }

  .project-next-teaser__media {
    width: min(100%, 320px);
  }
}




/* Project Navigation */
.project-navigation-section {
  padding: var(--space-16) 0;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}

.project-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--border-radius);
  transition: background var(--duration-normal) var(--ease-out);
}

.project-nav-link:hover {
  background: rgba(0, 102, 255, 0.05);
}

.project-nav-prev {
  align-items: flex-start;
}

.project-nav-next {
  align-items: flex-end;
  text-align: right;
}

.project-nav-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-nav-title {
  font-family: var(--font-display);
  font-size: var(--text-project);
  font-weight: 400;
  color: var(--color-text);
}

/* Project CTA */
.project-cta-section {
  padding: var(--space-24) 0;
  text-align: center;
  background-color: #e6e8eb;
}

.project-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.project-cta-eyebrow {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--color-text);
  max-width: 700px;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   6.8 About Page
   ========================================================================== */

body.about-page {
  background-color: var(--color-about-bg);
}

.about-page-section {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.about-page-photo {
  position: relative;
  flex-shrink: 0;
  width: 45%;
  overflow: hidden;
  align-self: stretch;
}

.about-page-photo img {
  position: absolute;
  top: -0.02%;
  left: 0;
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  display: block;
}

.about-page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-20) var(--space-16) var(--space-20) 72px;
}

.about-page-heading-block {
  padding-bottom: var(--space-12);
}

.about-page-title {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.about-page-body-block {
  padding-bottom: var(--space-16);
}

.about-page-body-border {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-page-para {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.1px;
  color: var(--color-text-soft);
  margin: 0;
}

.about-page-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--button-padding);
  min-width: 200px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(98.12% 191.19% at 50% 50.72%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.34) 75.96%);
  box-shadow:
    0 14px 30px rgba(16, 24, 40, 0.14),
    inset 0 1px 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 30px;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.about-page-cta-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.04) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.about-page-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 18px 36px rgba(16, 24, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.about-page-cta-btn:active {
  transform: translateY(0);
}

.about-page-cta-btn:hover .btn-text {
  transform: translateY(-100%);
}

.about-page-cta-btn:hover .btn-hover-text {
  transform: translateY(-100%);
}

.about-page-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
/* Buttons in about-page row share same dimensions */
.about-page-cta-row .button-primary,
.about-page-cta-row .button-secondary,
.about-page-cta-row .about-page-cta-btn {
  min-width: 200px;
  padding: var(--button-padding);
}

/* Unhide next-project teaser on about page (it's hidden globally
   pending more case studies, but on /about we use it as the closer) */
.about-page .project-next-teaser-section {
  display: block !important;
}

.about-page .nav-link[href="/about"] {
  color: var(--color-accent);
}

.about-work-section {
  padding: var(--space-20) 0 var(--section-gap);
}

.about-page .footer-outer {
  background-color: var(--color-background);
}

@media (max-width: 900px) {
  .about-page-section {
    flex-direction: column;
    min-height: auto;
  }

  .about-page-photo {
    width: 100%;
    height: 50vh;
    align-self: auto;
  }

  .about-page-photo img {
    position: absolute;
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
  }

  .about-page-content {
    padding: 56px var(--space-6) var(--space-20);
    justify-content: flex-start;
  }

  .about-page-title {
    font-size: clamp(40px, 14vw, 96px);
    letter-spacing: -1.5px;
  }

  .about-page-cta-row {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-page-photo {
    height: 50vh;
  }
}

/* ==========================================================================
   7. ANIMATIONS
   ========================================================================== */

/* Page Load Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) both;
}

/* Stagger children */
/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveal for project cards */
.project-card.reveal:nth-child(1) {
  transition-delay: 0ms;
}
.project-card.reveal:nth-child(2) {
  transition-delay: 74ms;
}
.project-card.reveal:nth-child(3) {
  transition-delay: 148ms;
}
.project-card.reveal:nth-child(4) {
  transition-delay: 222ms;
}
.project-card.reveal:nth-child(5) {
  transition-delay: 296ms;
}
.project-card.reveal:nth-child(6) {
  transition-delay: 370ms;
}

/* ==========================================================================
   8. REDUCED MOTION
   ========================================================================== */

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .project-sidebar {
    order: 2;
  }

  .project-overview-content {
    order: 1;
  }
}

@media (max-width: 900px) {
  :root {
    --section-gap: 120px;
  }

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

  .service-item {
    grid-template-columns: minmax(0, 1fr) clamp(132px, 26%, 200px);
    min-height: 0;
    padding: var(--space-6);
  }

  .service-bg-icon {
    height: var(--service-icon-height, auto);
  }

  .hero-section {
    padding-top: 140px;
  }

  .navbar {
    width: calc(100% - 48px);
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-metrics {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .metric-value {
    font-size: 40px;
  }

  .project-nav-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .project-nav-next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  :root {
    --text-body-lg: 20px;
    --text-body: 18px;
    
    /* Mobile Button Sizes */
    --text-button: 18px;
    --button-padding: 14px 24px;
    
    /* Spacing */
    --section-gap: 64px;
    --side-margin: 20px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 80px;
    -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
  }

  .hero-section--shader .hero-title {
    text-shadow: 0 12px 24px rgba(255, 255, 255, 0.6);
  }



  .hero-work-card__meta {
    font-size: 13px;
  }

  .project-hero-section {
    padding-top: 120px;
  }

  .service-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "description"
      "icon";
    gap: var(--space-4);
  }

  .service-bg-icon {
    align-self: center;
    justify-self: center;
    justify-content: center;
    width: auto;
    height: var(--service-icon-height, auto);
    max-width: 100%;
  }

  .navbar {
    top: 20px;
    padding: 10px 14px;
  }

  .nav-cta {
    font-size: 16px;
    padding: 10px 16px;
  }

  .footer-nav {
    gap: var(--space-6);
  }

  .footer-ctas {
    flex-wrap: wrap;
  }
}

@media (max-width: 661px) {
  .footer-nav {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }
  
  .footer-right {
    align-items: flex-start;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .footer-link {
    font-size: clamp(24px, 8vw, 56px);
  }

  .footer-nav {
    gap: clamp(var(--space-4), 3vw, var(--space-6));
  }
}

@media (max-width: 445px) {
  .footer-avatar {
    width: 14vw;
    height: 14vw;
    min-width: 48px;
  }

  .footer-tagline {
    font-size: clamp(18px, 5.5vw, 28px);
  }

  .footer-location {
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .footer-status {
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .footer-status-icon {
    width: clamp(28px, 8vw, 40px);
    height: clamp(28px, 8vw, 40px);
  }

  .footer-cta-primary,
  .footer-cta-secondary {
    font-size: clamp(13px, 3.5vw, 16px);
    padding: 10px 20px;
  }

  .footer-info {
    gap: var(--space-4);
  }
}
/* ==========================================================================
   MOBILE PROJECT CARDS OPTIMIZATION
   ========================================================================== */

@media (max-width: 768px) {
  /* Project Card - Reduced padding and spacing */
  .project-card {
    padding: 16px;
    border-radius: 12px;
  }

  .project-image-wrapper {
    border-radius: 6px;
    margin-bottom: var(--space-4);
  }

  .project-info {
    gap: var(--space-1);
  }

  .project-title {
    font-size: 20px;
  }

  .project-category {
    font-size: 16px;
  }

  /* Project Grid - Reduced gap */
  .project-grid {
    gap: var(--space-6);
  }

  /* Work Section - Reduced padding */
  .work-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-24);
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* Contact title - inline on tablet/mobile */
  .contact-title {
    display: block;
  }

  .contact-title span {
    display: inline;
  }
}

@media (max-width: 480px) {
  /* Project Card - Even smaller padding for small mobile */
  .project-card {
    padding: 12px;
    border-radius: 10px;
  }

  .project-image-wrapper {
    border-radius: 4px;
    margin-bottom: var(--space-3);
  }

  .project-title {
    font-size: 18px;
  }

  .project-category {
    font-size: 14px;
  }

  /* Arrow - Smaller on mobile */
  .arrow-content {
    width: 24px;
    height: 16px;
  }

  .project-arrow {
    width: 24px;
    height: 16px;
  }

  /* Project Grid - Smallest gap */
  .project-grid {
    gap: var(--space-4);
  }

  /* Work Section - Minimal padding */
  .work-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }

  .section-title {
    font-size: 32px;
  }

  .project-count {
    font-size: 16px;
  }

  .hero-section {
    padding-bottom: var(--space-16);
  }

}

/* ==========================================================================
   4K / ULTRA-WIDE (≥ 1920px)
   ========================================================================== */

@media (min-width: 1920px) {
  .navbar {
    width: min(1400px, calc(100% - 80px));
  }

  .container {
    max-width: 1600px;
  }
}

/* ==========================================================================
   BUTTON INTERACTIVE STATES
   ========================================================================== */

/* Loading State */
.button-primary.loading {
  background: var(--color-white);
  color: #2563eb;
  cursor: wait;
  position: relative;
  border: 1px solid #2563eb;
  pointer-events: none;
}

/* Success State */
.button-primary.success {
  background: var(--color-white);
  color: #2563eb;
  border: 1px solid #2563eb;
  cursor: default;
  pointer-events: none;
}

/* Loading & Success Elements */
.loading-container {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-checkmark {
  width: 8px;
  height: 14px;
  border: solid #2563eb;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  stroke: #2563eb;
  fill: transparent;
  stroke-width: 3;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: progress var(--duration-slow) var(--ease-out) forwards;
  stroke-linecap: round;
}

@keyframes progress {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 1rem 2rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Hide scrollbar for clean UI but keep functionality */
.hidden-scrollbar::-webkit-scrollbar {
  display: none;
}
.hidden-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* --------------------------------------------------------------------------
   8. PROJECT DETAIL: DYNAMIC LAYOUT SYSTEM
   Flexible content blocks for case studies
   -------------------------------------------------------------------------- */

.project-content-stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

/* Text block inside the content stream */
.content-text-block {
  max-width: 800px;
  margin: 0 auto;
}

/* Dynamic body section padding */
.project-dynamic-body-section {
  padding-bottom: 4rem;
}

.project-content-stream .rich-text > *:first-child {
  margin-top: 0;
}

.project-dynamic-body-section .rich-text h2,
.project-dynamic-body-section .rich-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.project-dynamic-body-section .rich-text h2 {
  font-size: var(--text-project);
}

.project-dynamic-body-section .rich-text h3 {
  font-size: 64px;
}

/* Image Block Overrides */
.image-layout-block {
  margin: 0;
}

.image-layout-block img,
.image-layout-block video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

/* Device mockup screen video - override the generic rule above */
.image-layout-block .screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Wide Video Block (.content-wide-video)
   Equivalent of the reference's device-nodevice section -
   full-width rounded video with a floating caption card */
.content-wide-video {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 28px 56px rgba(20, 21, 23, 0.10);
  background: #0f1012;
}

.content-wide-video::before {
  content: "";
  display: block;
  padding-top: 56.5%; /* 16:9-ish, matches reference */
}

/* Birsé: let an <img> (inside <picture>) fill the wide-video band like the video does */
.content-wide-video picture { display: contents; }

/* Birsé nav band: light UI screenshot - kill the dark bg + rounded-corner leak,
   and let the label overflow the frame instead of being clipped. */
.content-wide-video.cwv-birse {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* Show the whole image at natural aspect: width fills, height auto (no fixed band, no crop) */
.content-wide-video.cwv-birse::before { display: none; }
.content-wide-video.cwv-birse .screen-video {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: fill;
}

/* Birsé phones: stronger, phone-like corner radius that stays proportional
   across breakpoints (phone slot is ~20-25vw wide, so ~2.6vw ≈ 12% radius).
   clip-path mirrors it so the <img> rounds even inside a display:contents <picture>. */
/* Top-align the phones so a small per-image aspect-ratio difference can't
   stretch the shorter columns (which left fill gaps / clipped the taller ones). */
.block-mobile-devices.bmd-birse .mobile-devices-row {
  align-items: flex-start;
}
.block-mobile-devices.bmd-birse .mobile-screen {
  border-radius: 0;
}
.block-mobile-devices.bmd-birse .mobile-screen-img {
  clip-path: none;
}

/* Birsé static phone (forma's 2-static-1-scroll mix): fill the phone window, show the top, no motion */
.block-mobile-devices .mobile-screen .screen-static-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.content-wide-video .screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Floating label card - bottom-right corner */
.wide-video-label {
  position: absolute;
  right: clamp(1.2rem, 4vw, 2.4rem);
  bottom: clamp(1.2rem, 4vw, 2.4rem);
  z-index: 2;
  width: min(18rem, 38%);
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(20, 21, 23, 0.08);
}

.wide-video-label__icon {
  display: block;
  width: 16px;
  height: 16px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.wide-video-label__eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.wide-video-label__heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .wide-video-label {
    width: fit-content;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Fullwidth Parallax Image (.content-fullwidth-parallax) */
.content-fullwidth-parallax {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  width: 100%;
}

.content-fullwidth-parallax .single-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--color-background);
}

/* No ::before spacer - image natural height drives the container */

.content-fullwidth-parallax .fp-parallax-wrap {
  position: relative;
  width: 100%;
}

.content-fullwidth-parallax .fp-parallax-wrap .overlay-image {
  width: 100%;
  height: auto;
  display: block;
}

.content-fullwidth-parallax .fp-parallax-wrap .dark-overlay {
  background: linear-gradient(
    45deg,
    #d4d4d4,
    #ffffff,
    #ececec,
    #ffffff,
    #dadada
  );
  mix-blend-mode: multiply;
  position: absolute;
  inset: 0;
}

.image-block-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  font-style: italic;
}

/* 1. Full-width (single image, contained) */
.layout-full_width {
  width: 100%;
  overflow: hidden;
}

.layout-single_centered {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts (Asymmetric, Equal, Triple) */
.layout-asymmetric_pair,
.layout-equal_pair,
.layout-triple_row {
  display: grid;
  gap: var(--space-6);
}

.layout-asymmetric_pair {
  grid-template-columns: 60% 1fr;
}

.layout-asymmetric_pair.is-reversed {
  grid-template-columns: 1fr 60%;
}

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

.layout-triple_row {
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .layout-triple_row {
    /* Optional: 2x1 stack for tablets */
    grid-template-columns: 1fr 1fr;
  }
  .layout-triple_row > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .layout-asymmetric_pair,
  .layout-equal_pair,
  .layout-triple_row {
    grid-template-columns: 1fr !important;
  }
  .layout-single_centered {
    max-width: 100%;
  }
  .image-layout-block img,
  .image-layout-block video {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .image-layout-block img,
  .image-layout-block video {
    border-radius: 8px;
  }
}

/* ==========================================================================
   PARALLAX IMAGE COMPONENT (.parallax-img)
   Use as: <div class="parallax-img"><img srcset="..." data-scroll data-scroll-speed="-1" /></div>
   ========================================================================== */

.parallax-img {
  position: relative;
  overflow: hidden;
}

.parallax-img img {
  position: absolute;
  inset: -20%;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-img img {
    position: relative;
    inset: auto;
    height: 100%;
    will-change: auto;
  }
}

/* ==========================================================================
   DEVICE MOCKUP COMPONENT
   Ported from forma-device-mockup.html reference
   Usage: add device_mockup: "macpro" to an image_block in projects.json
   ========================================================================== */

/* Base device wrapper */
.device {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .device {
    max-width: 96%;
  }
  .content-image-block .device {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .device {
    max-width: 94%;
  }
  .content-image-block .device {
    max-width: 100%;
  }
}

/* The screen content area - video/image fills this */
.block-device .single-image,
.content-image-block .single-image {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.block-device .single-image::before,
.content-image-block .single-image::before {
  content: "";
  display: block;
  padding-top: 62.5%;
}

/* Video fills the screen area */
.screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  display: block;
}

/* The device frame image sits on top */
.overlay-device-image {
  width: 100%;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.overlay-device-image::before {
  content: "";
  display: block;
}

.overlay-device {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* MacBook Pro (Higher angle) variant */
.device-macprohigher .overlay-device-image::before {
  padding-top: 85.5%;
}

.device-macprohigher .single-image {
  width: 98.8%;
  top: 37%;
}

.device-macprohigher .overlay-device {
  background-image: url("images/Mockups/device-macpro-higher.png");
}

/* MacBook Pro 15 (no notch) variant */
.device-mbp15 {
  padding-inline: clamp(14px, 2vw, 26px);
}

.device-mbp15 .overlay-device-image::before {
  padding-top: 50.365%;
}

.device-mbp15 .single-image {
  width: 74.4%;
  left: 49.95%;
  top: 47.3%;
  border-radius: 5px 5px 0 0;
}

.device-mbp15 .overlay-device {
  background-image: url("images/Mockups/device-mbp-15-nonotch.png");
}

/* Frameless wide-card variant (device-nodevice) */
.block-device .device-nodevice .single-image {
  width: 100%;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 28px 56px rgba(20, 21, 23, 0.1);
}

.block-device .device-nodevice .single-image::before {
  padding-top: 56.5%;
}

.block-device .device-nodevice .overlay-device-image {
  display: none;
}

/* single-block layout helpers */
.single-block {
  margin-top: -1px;
  padding-top: 5rem;
  padding-bottom: 0;
}

.single-block.block-padding-bottom {
  padding-bottom: 5rem;
}

.single-block.block-device.block-padding-bottom {
  overflow: hidden;
  height: 100vh;
}
@media (max-width: 768px) {
  .single-block.block-device.block-padding-bottom {
    height: 70vh;
  }
}

/* Second instance - same wrap, less padding so logo reads larger */
.block-fullwidth .project-hero-logo-wrap {
  padding: 1.25vw;
}

/* Form a11y additions - error + live-status */
.form-error {
  display: block;
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-error);
  letter-spacing: 0;
}
.form-error[hidden] { display: none; }

.form-status {
  margin-top: var(--space-3);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-soft);
  min-height: 1.4em; /* prevent layout jump when status appears */
}
.form-status:empty { min-height: 0; }
.form-status[data-state="success"] { color: var(--color-success); }
.form-status[data-state="error"]   { color: var(--color-error); }

/* Full-width image block */
.block-fullwidth {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.block-fullwidth .single-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.block-fullwidth .single-image::before {
  content: "";
  display: block;
  padding-top: 66%;
}

.block-fullwidth .overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.block-fullwidth img.overlay,
.block-fullwidth video.overlay {
  display: block;
  object-fit: cover;
}

.block-fullwidth .single-image .overlay-image {
  height: 120%;
  top: -10%;
  bottom: auto;
}

.block-fullwidth .dark-overlay {
  background: #141517;
}



.block-fullwidth-logo {
  width: clamp(120px, 13.89vw, 240px);
  height: auto;
}




/* Metrics section */
.project-metrics-section {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 88%);
  padding: 6rem 0;
  background: var(--color-white);
}

.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* Carousel controls */
.carousel-btn-track {
  position: absolute;
  left: max(0px, calc(50% - 550px));
  right: max(0px, calc(50% - 550px));
  top: 0;
  bottom: 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

@media (min-width: 1440px) {
  .carousel-btn-track {
    left: max(0px, calc(50% - 550px - 10vw));
    right: max(0px, calc(50% - 550px - 10vw));
    padding: 0 2.525vw;
  }
}

.carousel-btn {
  width: clamp(52px, 5.05vw, 194px);
  height: clamp(52px, 5.05vw, 194px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  background: radial-gradient(circle, rgba(224, 224, 224, 0) 30%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 0 160px rgba(0, 0, 0, 0.10), 0 0 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.carousel-btn svg {
  width: clamp(21px, 2.08vw, 80px);
  height: clamp(21px, 2.08vw, 80px);
  flex-shrink: 0;
}

.carousel-btn:hover {
  transform: scale(1.08);
  color: #111;
}

.carousel-btn:active {
  transform: scale(0.95);
}

.case-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #ffffff;
  contain: paint;
}

.case-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms var(--motion-ease-primary), visibility 0s linear 320ms;
}

.case-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
  z-index: 1;
}

.case-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
}

@media (max-width: 540px) {
  .carousel-btn {
    width: clamp(32px, 8vw, 44px);
    height: clamp(32px, 8vw, 44px);
  }
  .carousel-btn svg {
    width: clamp(13px, 3.3vw, 18px);
    height: clamp(13px, 3.3vw, 18px);
  }
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .device-macprohigher .single-image {
    width: 98.7%;
    top: 37%;
  }
}

/* video-toggle: pause/play on click (handled by existing JS) */
.video-toggle {
  cursor: pointer;
}

/* Mobile devices block */
.block-mobile-devices {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.block-mobile-devices .mobile-devices-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 0 clamp(1.4em, 5vw, 5.25em);
}

.block-mobile-devices .mobile-col {
  width: 33.333%;
  padding-top: clamp(4.5em, 18vh, 11em);
  padding-bottom: clamp(4.5em, 18vh, 11em);
  display: flex;
  justify-content: center;
  position: relative;
}

.block-mobile-devices .mobile-device {
  width: 68%;
  position: relative;
  display: flex;
  justify-content: center;
}


.block-mobile-devices .mobile-screen {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.35em;
  background: var(--color-background);
  box-shadow: 0 22px 48px rgba(20, 21, 23, 0.08);
}

.block-mobile-devices .mobile-screen::before {
  content: "";
  display: block;
  padding-top: 203%;
}

.block-mobile-devices .mobile-screen--img::before {
  display: none;
}

.block-mobile-devices .mobile-screen-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .block-mobile-devices .mobile-devices-row { padding: 0; }
  .block-mobile-devices .mobile-device { width: 76%; }
}

@media (max-width: 540px) {
  .block-mobile-devices .mobile-col {
    padding-top: 9vh;
    padding-bottom: 9vh;
  }
}

/* ──────────────────────────────────────────────────────────────
   Image Marquee - scroll-linked horizontal parallax
   Mirrors Dennis Snellenberg .name-h1 with data-scroll-speed
   ────────────────────────────────────────────────────────────── */
.image-marquee {
  position: relative;
  width: 100%;
  padding: 12vh 0;
  overflow: visible;
}

.image-marquee__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.image-marquee__viewport.is-dragging {
  cursor: grabbing;
}

.image-marquee__item img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.image-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.image-marquee__row {
  display: flex;
  flex-shrink: 0;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.image-marquee__item {
  flex-shrink: 0;
  width: clamp(400px, 50vw, 820px);
  aspect-ratio: 3456 / 2234;
  margin: 0;
  padding: 10.5px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: visible;
  transform: translateZ(0);
}

.image-marquee__item picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 8px;
  transform: translateZ(0);
}

.image-marquee__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-marquee__item img {
  opacity: 0;
  transition: opacity 600ms ease;
}

.image-marquee__item img.is-loaded,
.image-marquee__item img[data-loaded="true"] {
  opacity: 1;
}

@media (max-width: 768px) {
  .image-marquee { padding: 7vh 0; }
  .image-marquee__row { gap: 1rem; padding-right: 1rem; }
  .image-marquee__item {
    /* Use min() so tile never exceeds viewport (no horizontal scroll feel). */
    width: min(78vw, 420px);
    padding: 7px;
    border-radius: 8px;
    /* Drop expensive backdrop blur on mobile - main cause of jank.
       Use opaque-ish gradient that approximates the glass look. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.70) 100%);
    box-shadow: 0 8px 20px rgba(0, 30, 80, 0.08);
  }
  .image-marquee__item picture { border-radius: 4px; }
}

@media (max-width: 480px) {
  .image-marquee { padding: 6vh 0; }
  .image-marquee__row { gap: 0.75rem; padding-right: 0.75rem; }
  .image-marquee__item {
    width: min(82vw, 340px);
    padding: 6px;
    border-radius: 8px;
  }
  .image-marquee__item picture { border-radius: 4px; }
}

/* Drop backdrop-filter on any touch/coarse-pointer device - the GPU cost of
   16 simultaneous backdrop blurs animating per frame kills mobile framerate. */
@media (hover: none) and (pointer: coarse) {
  .image-marquee__item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.70) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-marquee__track {
    transform: none !important;
  }
  .image-marquee__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .image-marquee__viewport::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   FORMA CASE STUDY - SNELLENBERG-INSPIRED EDITORIAL POLISH
   ========================================================================== */

/* Case header - minimal title block (replaces verbose hero) */
.case-header {
  padding: clamp(120px, 14vh, 200px) 0 clamp(48px, 6vh, 80px);
  text-align: center;
  position: relative;
}
.case-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}
.case-back {
  position: absolute;
  top: clamp(96px, 12vh, 160px);
  left: clamp(24px, 5vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.case-back:hover { color: var(--color-text); }
.case-back svg { transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1); }
.case-back:hover svg { transform: translateX(-3px); }

.case-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--color-text);
}

/* Desktop only: breathing room above the case title */
@media (min-width: 769px) {
  .case-title {
    margin-top: clamp(40px, 6vh, 96px);
  }
}

.case-header .conceptual-badge {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: transparent;
}

/* Case meta - 3-column metadata strip */
.case-meta {
  padding: clamp(32px, 4vh, 64px) 0 clamp(80px, 10vh, 140px);
}
.case-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}
.case-meta-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-meta-col h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.case-meta-stripe {
  height: 1px;
  background: rgba(0, 0, 0, 0.22);
  width: 100%;
}
.case-meta-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-meta-col li {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

/* Case palette strip */
.case-palette-section {
  padding: clamp(40px, 6vh, 88px) 0 clamp(56px, 8vh, 112px);
}
.case-palette-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  max-width: 1100px;
  margin: 0 auto;
}
.case-palette-row h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.case-palette-row .case-meta-stripe { flex: 1; }
.case-palette-row .project-palette {
  display: flex;
  gap: 6px;
}
.case-palette-row .palette-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
}
.case-live-url-row {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 56px);
}

/* Floating round CTA over hero image */
.project-hero-full-section {
  position: relative;
}
.project-hero-full-section .container {
  position: relative;
}
.case-live-cta {
  position: absolute;
  top: clamp(-32px, -3vw, -16px);
  right: clamp(24px, 5vw, 80px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 12vw, 180px);
  height: clamp(120px, 12vw, 180px);
  border-radius: 50%;
  background: #0F0E0B;
  color: #F5F2EB;
  text-decoration: none;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1),
              background 400ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.case-live-cta:hover {
  transform: scale(1.06);
  background: #B8956A;
}
.case-live-cta__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.case-live-cta__arrow { transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1); }
.case-live-cta:hover .case-live-cta__arrow {
  transform: translate(3px, -3px);
}

/* Case blocks - tinted backdrop per device showcase, break container to full bleed */
.case-block {
  padding: clamp(80px, 10vh, 160px) 0;
}
.case-block--device {
  background: var(--case-tint, #FFFFFF);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);


  padding: clamp(80px, 10vh, 160px) clamp(24px, 5vw, 80px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* First device block: no glass surface */
.case-back {
  position: absolute;
  top: clamp(96px, 12vh, 160px);
  left: clamp(24px, 5vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.case-back:hover { color: var(--color-text); }
.case-back svg { transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1); }
.case-back:hover svg { transform: translateX(-3px); }

.case-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--color-text);
}

/* Desktop only: breathing room above the case title */
@media (min-width: 769px) {
  .case-title {
    margin-top: clamp(40px, 6vh, 96px);
  }
}

.case-header .conceptual-badge {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: transparent;
}

/* Case meta - 3-column metadata strip */
.case-meta {
  padding: clamp(32px, 4vh, 64px) 0 clamp(80px, 10vh, 140px);
}
.case-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}
.case-meta-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-meta-col h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.case-meta-stripe {
  height: 1px;
  background: rgba(0, 0, 0, 0.22);
  width: 100%;
}
.case-meta-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-meta-col li {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

/* Case palette strip */
.case-palette-section {
  padding: clamp(40px, 6vh, 88px) 0 clamp(56px, 8vh, 112px);
}
.case-palette-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  max-width: 1100px;
  margin: 0 auto;
}
.case-palette-row h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.case-palette-row .case-meta-stripe { flex: 1; }
.case-palette-row .project-palette {
  display: flex;
  gap: 6px;
}
.case-palette-row .palette-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
}
.case-live-url-row {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 56px);
}

/* Floating round CTA over hero image */
.project-hero-full-section {
  position: relative;
}
.project-hero-full-section .container {
  position: relative;
}
.case-live-cta {
  position: absolute;
  top: clamp(-32px, -3vw, -16px);
  right: clamp(24px, 5vw, 80px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 12vw, 180px);
  height: clamp(120px, 12vw, 180px);
  border-radius: 50%;
  background: #0F0E0B;
  color: #F5F2EB;
  text-decoration: none;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1),
              background 400ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.case-live-cta:hover {
  transform: scale(1.06);
  background: #B8956A;
}
.case-live-cta__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.case-live-cta__arrow { transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1); }
.case-live-cta:hover .case-live-cta__arrow {
  transform: translate(3px, -3px);
}

/* Case blocks - tinted backdrop per device showcase, break container to full bleed */
.case-block {
  padding: clamp(80px, 10vh, 160px) 0;
}
.case-block--device {
  background: var(--case-tint, #FFFFFF);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(80px, 10vh, 160px) clamp(24px, 5vw, 80px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* First device block: no glass surface */
.case-block--device.case-block--bare {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.case-block--fullbleed {
  padding: clamp(40px, 6vh, 80px) 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Editorial proof blocks: each UX decision stays attached to its visual evidence */

.case-proof {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 56px);
}

.case-proof__text {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 64px) clamp(18px, 2vw, 32px);
}
.case-proof__kicker {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.project-dynamic-body-section .case-proof__text h2 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  scroll-margin-top: 120px;
}
.case-proof > .case-block {
  margin-top: clamp(24px, 3vw, 48px);
}
.case-proof--phones .mobile-col {
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}
.case-device-note {
  width: min(72%, 280px);
  text-align: center;
  color: var(--color-text);
}
.case-device-note h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}
.case-device-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* Peak-end CTA - restrained */
.case-cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(96px, 14vh, 180px) clamp(24px, 5vw, 64px);
  background: transparent;
}
.case-cta-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  max-width: 720px;
}
.case-cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.case-cta-btn { min-width: 220px; }

/* ==========================================================================
   FORMA CASE STUDY - "THE PLATES" original presentation system
   Drawing-board / architectural-monograph register. Each plate is a numbered
   exhibit with mono marker, media (device / cinematic / diptych / quote /
   triptych / fullbleed), and a caption strip. A floating counter tracks
   progress. The system is brand-driven via --case-tint and --case-accent.
   ========================================================================== */

.plates {
  --plate-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  --plate-tint: #E8E4DF;
  --plate-accent: #B8956A;     /* brass - FORMA project accent */
  --plate-paper: var(--color-background);
  --plate-ink:   var(--color-text);
  --plate-ink-muted: var(--color-text-muted);
  --plate-hairline: rgba(184, 149, 106, 0.45);
  --plate-ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  padding: 0 !important;
}
.plates > #project-content-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 120px);
}

/* Fixed page counter - drawing-board pill, top-right of viewport */
.plates-counter {
  position: fixed;
  top: clamp(20px, 3vh, 36px);
  right: clamp(20px, 4vw, 48px);
  z-index: 50;
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  padding: 8px 14px;
  font-family: var(--plate-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--plate-ink);
  background: rgba(245, 242, 235, 0.72);
  border: 1px solid var(--plate-hairline);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 400ms var(--plate-ease);
}
.plates-counter.is-visible { opacity: 1; }
.plates-counter__num {
  font-weight: 600;
  color: var(--plate-accent);
  font-variant-numeric: tabular-nums;
}
.plates-counter__total {
  color: var(--plate-ink-muted);
}

/* Plate base */
.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(64px, 9vh, 140px) clamp(24px, 5vw, 80px);
}

/* Plate marker - mono "01 / 06 - Desktop · Home" header */
.plate-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--plate-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plate-ink);
  line-height: 1;
}
.plate-marker__num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--plate-accent);
  font-variant-numeric: tabular-nums;
}
.plate-marker__sep {
  font-size: 18px;
  color: var(--plate-ink-muted);
  margin: 0 2px;
}
.plate-marker__total {
  font-size: 13px;
  color: var(--plate-ink-muted);
  font-variant-numeric: tabular-nums;
}
.plate-marker__rule {
  flex: 0 0 28px;
  height: 1px;
  background: var(--plate-hairline);
  margin: 0 6px;
}
.plate-marker__label {
  color: var(--plate-ink-muted);
}
.plate-marker--inverted {
  color: var(--plate-ink);
}
.plate-marker--dark,
.plate--quote .plate-marker {
  color: rgba(245, 242, 235, 0.9);
}
.plate-marker--dark .plate-marker__num,
.plate--quote .plate-marker__num { color: var(--plate-accent); }
.plate-marker--dark .plate-marker__total,
.plate--quote .plate-marker__total,
.plate-marker--dark .plate-marker__label,
.plate--quote .plate-marker__label { color: rgba(245, 242, 235, 0.6); }
.plate-marker--dark .plate-marker__rule,
.plate--quote .plate-marker__rule { background: rgba(184, 149, 106, 0.55); }

/* Plate media - wraps the visual content */
.plate-media {
  width: 100%;
}

/* Plate caption - hairline divider + mono sheet ref left + 1-line note right */
.plate-caption {
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding-top: clamp(14px, 2vh, 24px);
  border-top: 1px solid var(--plate-hairline);
}
.plate-caption__sheet {
  font-family: var(--plate-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plate-ink-muted);
  white-space: nowrap;
}
.plate-caption__rule { display: none; }
.plate-caption__note {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.32;
  color: var(--plate-ink);
}

/* Variant: device - tinted backdrop, full bleed */
.plate--device {
  background: var(--case-tint, var(--plate-tint));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(72px, 10vh, 140px) clamp(32px, 6vw, 96px);
}

/* Variant: cinematic - page substrate, full bleed video */
.plate--cinematic {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(48px, 7vh, 96px) clamp(24px, 5vw, 64px);
}
.plate--cinematic .plate-media .content-wide-video {
  margin: 0;
}

/* Variant: diptych - asymmetric 2-column with wide left, tall right */
.plate--diptych {
  background: var(--case-tint, var(--plate-tint));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(72px, 10vh, 140px) clamp(32px, 6vw, 96px);
}
.plate-media--diptych {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: end;
}
.plate-tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #d9d9d9;
}
.plate-tile--wide {
  aspect-ratio: 5 / 4;
}
.plate-tile--tall {
  aspect-ratio: 3 / 4;
}
.plate-tile > .plate-placeholder {
  position: absolute;
  inset: 0;
}
.plate-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 24px);
  gap: 6px;
}
.plate-placeholder::before {
  /* Subtle X-mark cross to read as "intentional placeholder" not "broken image" */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.5px), rgba(0, 0, 0, 0.06) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(0, 0, 0, 0.06) 50%, transparent calc(50% + 0.5px));
  pointer-events: none;
}
.plate-placeholder__label {
  position: relative;
  z-index: 1;
  font-family: var(--plate-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
}
.plate-placeholder__dim {
  position: relative;
  z-index: 1;
  font-family: var(--plate-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #777;
}

/* Variant: quote - dark inverted rhythm-break with display italic */
.plate--quote {
  background: #0F0E0B;
  color: rgba(245, 242, 235, 0.95);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(96px, 16vh, 200px) clamp(32px, 8vw, 120px);
  align-items: center;
  text-align: center;
}
.plate--quote .plate-marker {
  align-self: flex-start;
}
.plate-quote {
  margin: 0;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.plate-quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: rgba(245, 242, 235, 0.96);
  text-wrap: balance;
}
.plate-quote__cite {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.plate-quote__attr {
  font-family: var(--plate-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.55);
}
.plate-quote__attr::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--plate-accent);
  margin-right: 12px;
  vertical-align: middle;
}

/* Variant: mobile triptych - 3 phones, asymmetric vertical lift */
.plate--mobile-triptych {
  background: var(--case-tint, var(--plate-tint));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(72px, 10vh, 140px) clamp(32px, 6vw, 96px);
}
.plate-media--triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  justify-items: center;
}
.plate-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  background: #0F0E0B;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.plate-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  background: #1a1a17;
  border-radius: 999px;
  z-index: 2;
}
.plate-phone picture,
.plate-phone video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  object-fit: cover;
}
.plate-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}
.plate-phone__label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-family: var(--plate-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plate-ink-muted);
  white-space: nowrap;
}
.plate-phone--lift  { transform: translateY(-24px); }
.plate-phone--sink  { transform: translateY(24px); }

/* Variant: fullbleed - large closing image with overlaid logo */
.plate--fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(48px, 7vh, 96px) clamp(24px, 5vw, 64px);
}
.plate-fullbleed-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.plate-fullbleed-frame picture,
.plate-fullbleed-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.plate-fullbleed-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 14vw, 220px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}

/* Variant: CTA - restrained close */
.plate--cta {
  align-items: center;
  text-align: center;
  padding: clamp(96px, 16vh, 200px) clamp(24px, 5vw, 64px);
  gap: clamp(20px, 3vw, 36px);
}
.plate-cta__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--plate-ink);
  max-width: 780px;
  text-wrap: balance;
}
.plate-cta__btn { min-width: 240px; }
.plate-cta__signature {
  margin-top: 8px;
  font-family: var(--plate-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plate-ink-muted);
}
.plate-cta__signature::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--plate-accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* Plate entrance choreography - fade up + scale */
.plate {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--plate-ease),
    transform 700ms var(--plate-ease);
}
.plate.is-in-view {
  opacity: 1;
  transform: translateY(0);
}
.plate.is-in-view .plate-marker__rule {
  animation: plate-rule-draw 600ms var(--plate-ease) both 120ms;
  transform-origin: left center;
}
@keyframes plate-rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .plate { opacity: 1; transform: none; transition: none; }
  .plate-phone--lift, .plate-phone--sink { transform: none; }
}

/* Hide legacy CMS-driven text blocks should they reappear */
.plates .content-text-block { display: none; }

/* ==========================================================================
   FORMA CASE STUDY - GLOBAL OVERRIDES (all breakpoints)
   ========================================================================== */
.carousel-outer {
  background: transparent;
}
/* Keep glass bg on .single-block.block-device.block-padding-bottom but neutralize clip-path */
.single-block.block-device.block-padding-bottom {
  clip-path: none !important;
  -webkit-clip-path: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 56px) clamp(24px, 5vw, 80px);
}
.single-block.block-device.block-padding-bottom .row,
.single-block.block-device.block-padding-bottom .flex-col {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-block.block-device.block-padding-bottom .device {
  max-width: min(1200px, 78%);
  width: 78%;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .single-block.block-device.block-padding-bottom .device {
    max-width: 92%;
    width: 92%;
  }
}

/* Content text block - owns its own padding (was inline) */
.project-content-stream .content-text-block {
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Solution list - semantic, scannable */
.solution-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0 0;
  display: grid;
  gap: var(--space-6);
  counter-reset: solution;
}
.solution-list li {
  position: relative;
  padding: var(--space-5) 0 var(--space-5) var(--space-12);
  border-top: 1px solid var(--color-border-subtle);
  display: grid;
  gap: var(--space-2);
}
.solution-list li:last-child {
  border-bottom: 1px solid var(--color-border-subtle);
}
.solution-list li::before {
  counter-increment: solution;
  content: counter(solution, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-5);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  line-height: 1.4;
}
.solution-list li strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.solution-list li span {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.solution-list li em {
  font-style: italic;
  color: var(--color-text);
}

/* Peak-end CTA block - full-bleed white panel, single primary action */
.project-cta-block {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--space-12);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  display: grid;
  gap: var(--space-6);
}
.project-cta-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}
.project-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (max-width: 768px) {
  .solution-list li {
    padding-left: var(--space-10);
  }
  .project-cta-block {
    padding: var(--space-12) var(--space-6);
  }
  .project-cta-actions .button-primary,
  .project-cta-actions .button-secondary {
    width: 100%;
    max-width: 360px;
  }
}

/* ==========================================================================
   FORMA CASE STUDY - MOBILE OVERRIDES (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Case header mobile */
  .case-header {
    padding: clamp(96px, 18vh, 160px) 24px clamp(32px, 5vh, 56px);
  }
  .case-back {
    position: static;
    align-self: flex-start;
  }
  .case-header .container {
    gap: clamp(24px, 5vw, 40px);
  }
  .case-title {
    font-size: clamp(40px, 14vw, 88px);
  }

  /* Case meta - stack on mobile */
  .case-meta-row {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 40px);
  }
  .case-meta {
    padding: 24px 24px clamp(64px, 10vh, 96px);
  }

  /* Case palette mobile */
  .case-palette-section { padding: 32px 24px 56px; }

  /* Live site CTA - smaller, no overhang */
  .case-live-cta {
    width: 96px;
    height: 96px;
    top: 16px;
    right: 16px;
  }
  .case-live-cta__inner { font-size: 11px; gap: 4px; }

  /* Case blocks - tighter mobile padding */
  body.birse-page .project-content-stream {
    gap: var(--space-10);
  }
  .case-block--device {
    padding: clamp(48px, 8vh, 88px) 16px;
  }
  body.birse-page .case-block--device.case-block--bare {
    padding-top: clamp(16px, 3vh, 32px);
    padding-bottom: clamp(16px, 3vh, 32px);
  }
  .case-cta-eyebrow {
    font-size: clamp(24px, 7vw, 36px);
  }
  .case-proof {
    gap: clamp(16px, 4vh, 32px);
  }
  .case-proof__text {
    padding: clamp(32px, 8vw, 56px) 24px 18px;
  }
  .case-proof__kicker {
    font-size: 11px;
  }
  .case-proof--phones .block-mobile-devices .mobile-devices-row {
    flex-direction: column;
    gap: clamp(32px, 7vh, 56px);
  }
  .case-proof--phones .block-mobile-devices .mobile-col {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
  .case-proof--phones .block-mobile-devices .mobile-device {
    width: min(72%, 280px);
  }
  .case-device-note {
    width: min(86%, 340px);
  }
  .case-device-note h3 {
    font-size: 28px;
  }

  /* Plates - mobile tightening */
  .plates > #project-content-stream { gap: clamp(32px, 5vh, 64px); }
  .plate { padding: clamp(48px, 8vh, 88px) 20px; gap: clamp(16px, 2.5vh, 24px); }
  .plate--device,
  .plate--diptych,
  .plate--mobile-triptych {
    padding: clamp(48px, 8vh, 88px) 16px;
  }
  .plate--quote { padding: clamp(64px, 14vh, 140px) 24px; }
  .plate--cta { padding: clamp(72px, 14vh, 140px) 24px; }
  .plate-caption {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .plate-caption__note { font-size: 16px; }
  .plate-media--diptych { grid-template-columns: 1fr; }
  .plate-media--triptych { grid-template-columns: 1fr; gap: 48px; }
  .plate-phone { max-width: 240px; }
  .plate-phone--lift, .plate-phone--sink { transform: none; }
  .plate-quote__text { font-size: clamp(24px, 7vw, 40px); }
  .plate-cta__eyebrow { font-size: clamp(24px, 7vw, 36px); }
  .plates-counter {
    top: auto;
    bottom: 16px;
    right: 16px;
    margin: 0;
    font-size: 11px;
    padding: 6px 10px;
  }

  /* 1. Hero frame: kill side padding + image height 50vh */
  .project-hero-full-section > .container {
    padding-left: 0;
    padding-right: 0;
  }
  .project-hero-image-frame {
    border-radius: 0;
  }
  .project-hero-image {
    border-radius: 0;
    height: 50vh;
    width: 100%;
    object-fit: cover;
  }
  .block-fullwidth .single-image {
    height: 50vh;
  }
  .block-fullwidth .single-image::before {
    display: none;
  }
  .block-fullwidth .single-image .overlay-image {
    border-radius: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    top: 0;
  }

  /* 2. Logo wrap 1.512× bigger (1.4 + 8%) */
  .project-hero-logo-wrap {
    width: calc(11.11vw * 1.512);
    height: calc(11.11vw * 1.512);
    padding: calc(2.5vw * 1.512);
  }
  .project-hero-logo-wrap.hero-logo--birse {
    padding: calc(1.6vw * 1.512);
  }
  .block-fullwidth-logo {
    width: clamp(168px, 19.45vw, 336px);
  }

  /* 3. Brief grid (meta-only): full-bleed + centered meta blocks */
  .project-brief-section > .container {
    padding-left: 0;
    padding-right: 0;
  }
  .brief-grid.brief-meta-only {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: var(--space-6) !important;
    padding-right: var(--space-6) !important;
  }
  .brief-grid.brief-meta-only .brief-meta,
  .brief-grid.brief-meta-only .brief-meta-left {
    align-items: center;
    text-align: center;
  }
  .brief-grid.brief-meta-only .meta-block {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .brief-grid.brief-meta-only .project-tags,
  .brief-grid.brief-meta-only .project-palette {
    justify-content: center;
  }
  /* Palette: was collapsing because flex:1 children w/ basis:0 in centered narrow container */
  .brief-grid.brief-meta-only .project-palette {
    width: 100%;
    max-width: 360px;
    display: flex;
    gap: 6px;
  }
  .brief-grid.brief-meta-only .palette-swatch {
    flex: 1 1 0;
    min-width: 40px;
    height: 40px;
    display: block;
  }

  /* 4. Wide video: no rounded corners, full-bleed (parallax label kept) */
  .content-wide-video {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
  .content-wide-video .screen-video {
    border-radius: 0;
  }

  /* 5. Device: near-full-bleed. Parent .case-block--device already spans
        100vw, so .content-image-block must NOT break out again - just fill
        it with minimum side padding. Device stays centered. */
  .content-image-block {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .device,
  .content-image-block .device {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    height: auto;
  }
  .device-mbp15 {
    padding-inline: 0;
  }
  .device.device-macprohigher {
    padding-inline: 0;
  }
  .carousel-outer .single-block.block-device {
    margin-left: 0;
    margin-right: 0;
  }

  /* 6 + 7. Carousel arrows sit BELOW the device, 1.25rem gap.
        Bg + clip-path removal handled globally above. */
  .carousel-outer {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
  }
  .carousel-outer .single-block.block-device.block-padding-bottom {
    padding-bottom: 0;
    margin: 0;
  }
  .carousel-btn-track {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 0;
    margin: 1.25rem 0 0 0;
    gap: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    transform: none !important;
  }
  .carousel-btn {
    pointer-events: auto;
  }

  /* Carousel buttons: min 52px each on mobile (override the 540px rule) */
  .carousel-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    min-height: 52px;
  }
  .carousel-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* 8. Parallax: KEEP original effect on overlay-image, wide-video-label,
        meta-block, and project-hero-logo-wrap. Do NOT kill transform
        globally - JS-driven parallax stays alive on mobile too. */
  /* (intentionally empty - previous blanket transform kill removed) */
}

/* ==========================================================================
   prefers-contrast: more - honour OS high-contrast requests
   (low-vision users; EU Accessibility Act). Only active when requested.
   ========================================================================== */
@media (prefers-contrast: more) {
  :root {
    --color-text: #000000;
    --color-text-muted: rgba(0, 0, 0, 0.92);
    --color-text-soft: rgba(0, 0, 0, 0.9);
    --color-text-light: rgba(0, 0, 0, 0.85);
    --color-border: #000000;
    --color-border-subtle: rgba(0, 0, 0, 0.45);
  }
  a:not(.button-primary):not(.button-secondary),
  .nav-link {
    text-decoration: underline;
  }
  .glass-panel,
  .project-card,
  .form-input {
    border: 1px solid var(--color-text);
  }
}

/* ───────────────────────────────────────────────────────────────
   Birsé case study — auto-scrolling screenshots
   Tall full-page screenshots sit in a fixed device window and
   slowly scroll to mimic a walkthrough. Each image carries its own
   --scroll-end (computed from its aspect vs the window aspect) and
   --scroll-dur. Static for reduced-motion users.
   ─────────────────────────────────────────────────────────────── */

/* Phone window: clamp a tall image to a ~100vh phone aspect (375:812). */
.block-mobile-devices .mobile-screen--scroll {
  overflow: hidden;
}
.block-mobile-devices .mobile-screen--scroll::before {
  content: "";
  display: block;
  padding-top: 216%;
}
.block-mobile-devices .mobile-screen--scroll .screen-scroll-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* Desktop laptop window: tall screenshot scrolls inside the .single-image clip. */
.device .single-image .screen-scroll-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  transform: translate(-50%, 0);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .block-mobile-devices .mobile-screen--scroll .screen-scroll-img {
    animation: birse-scroll-y var(--scroll-dur, 22s) linear infinite;
  }
  .device .single-image .screen-scroll-img {
    animation: birse-scroll-yx var(--scroll-dur, 28s) linear infinite;
  }
}

@keyframes birse-scroll-y {
  0%, 5% { 
    transform: translateY(0); 
    animation-timing-function: ease-in-out;
  }
  85%, 90% { 
    transform: translateY(var(--scroll-end, 0%)); 
    animation-timing-function: ease-in-out;
  }
  100% { 
    transform: translateY(0); 
  }
}
@keyframes birse-scroll-yx {
  0%, 5% { 
    transform: translate(-50%, 0); 
    animation-timing-function: ease-in-out;
  }
  85%, 90% { 
    transform: translate(-50%, var(--scroll-end, 0%)); 
    animation-timing-function: ease-in-out;
  }
  100% { 
    transform: translate(-50%, 0); 
  }
}

/* ───────────────────────────────────────────────────────────────
   Birsé — varied editorial rows (forma foundation + Snellenberg
   per-row stacking). Mixed 1/2/3-up rows, unequal widths, offsets,
   frameless clean shots. Tall shots reuse the auto-scroll mechanic.
   ─────────────────────────────────────────────────────────────── */
.case-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.5vw, 64px);
  align-items: flex-start;
  width: 100%;
}
.case-row--center { justify-content: center; }
.case-row--phones { justify-content: center; align-items: flex-start; }

.case-cell { flex: 1 1 0; min-width: 0; }
.case-cell--wide   { flex: 1.7 1 0; }
.case-cell--narrow { flex: 0.72 1 0; }
.case-cell--mid    { flex: 0 1 min(840px, 84%); }     /* contained single */
.case-cell--phone  { flex: 0 1 min(300px, 46%); }     /* a single phone in a row */
.case-cell--offset { margin-top: clamp(48px, 9vw, 150px); }

@media (max-width: 768px) {
  .case-row { flex-direction: column; align-items: stretch; gap: clamp(40px, 11vw, 72px); }
  .case-cell,
  .case-cell--wide,
  .case-cell--narrow,
  .case-cell--mid { flex: 1 1 auto; }
  .case-cell--phone { flex: 1 1 auto; max-width: 320px; margin-inline: auto; }
  .case-cell--offset { margin-top: 0; }
}

/* Frameless clean shot — no device bezel. Fixed window aspect + overflow clip. */
.case-shot {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.case-shot--desktop::before { content: ""; display: block; padding-top: 62.5%; }
.case-shot--phone::before   { content: ""; display: block; padding-top: 216%; }
.case-shot--wide::before    { content: ""; display: block; padding-top: 53%; }
/* Inside a full-bleed block the shot goes edge-to-edge: no radius, no shadow */
.case-block--fullbleed .case-shot { border-radius: 0; box-shadow: none; }
.case-shot .screen-scroll-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .case-shot .screen-scroll-img {
    animation: birse-scroll-y var(--scroll-dur, 24s) linear infinite;
  }
}
/* Static fill for shots whose image is shorter than the window (no scroll) */
.case-shot .case-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Optional caption under a shot */
.case-shot-caption {
  margin-top: clamp(12px, 1.4vw, 20px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft, #6b6560);
}

/* Contained full image on a tint backdrop (whole UI screen, no crop, no parallax) */
.case-figure { max-width: 1100px; margin-inline: auto; }
.case-figure-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* Birsé hero logo pill — softer gradient + slightly larger wordmark (frame size unchanged) */
.project-hero-logo-wrap.hero-logo--birse {
  background: radial-gradient(circle, rgba(224, 224, 224, 0.35) 30%, rgba(255, 255, 255, 1) 100%);
  padding: 1.6vw;
}

/* Link with arrow and accent color */
.case-meta-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.case-meta-link .inline-arrow {
  transition: transform 0.2s ease;
}
.case-meta-link:hover .inline-arrow {
  transform: translateX(3px);
}
