/* ==========================================================================
   Apple Keynote Layout, Visual Showcases & Scroll-Driven Motion System
   Zero raw code blocks. GPU-composited transforms & opacity only.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--dark-deep);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--dark-text-primary);
  background-color: var(--dark-deep);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

a,
button,
[role="button"],
input,
select,
textarea,
label,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--dark-accent);
  outline-offset: 2px;
}

.section-light :focus-visible {
  outline-color: var(--light-accent);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

.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;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Signature Keycaps */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-keycap);
  background: rgba(245, 245, 247, 0.08);
  border: 1px solid var(--dark-hairline-strong);
  color: var(--dark-text-secondary);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.site-header[data-surface="light"] .kbd,
.section-light .kbd {
  background: rgba(29, 29, 31, 0.05);
  border-color: var(--light-hairline-strong);
  color: var(--light-text-secondary);
  box-shadow: inset 0 -1px 0 rgba(29, 29, 31, 0.08);
}

/* Crisp Line Icons — 16/18px, stroke 1.5, currentColor */
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-md {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Navigation — Adaptive Translucent Apple Bar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(6, 6, 6, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--dark-hairline);
  color: var(--dark-text-primary);
  transition: background-color var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out);
}

.site-header[data-surface="light"] {
  background: rgba(251, 251, 253, 0.8);
  border-bottom-color: var(--light-hairline);
  color: var(--light-text-primary);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--dark-text-primary);
  color: var(--dark-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out);
}

.site-header[data-surface="light"] .brand-glyph {
  background: var(--light-text-primary);
  color: var(--light-bg);
}

.brand-mark:active .brand-glyph {
  transform: scale(0.95);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--dark-text-secondary);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--dark-text-primary);
  background-color: rgba(245, 245, 247, 0.07);
}

.site-header[data-surface="light"] .nav-link {
  color: var(--light-text-secondary);
}

.site-header[data-surface="light"] .nav-link:hover,
.site-header[data-surface="light"] .nav-link.is-active {
  color: var(--light-text-primary);
  background-color: rgba(29, 29, 31, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--dark-text-primary);
  color: var(--dark-deep);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

@media (min-width: 820px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-cta:active {
  transform: scale(0.97);
}

.site-header[data-surface="light"] .nav-cta {
  background: var(--light-text-primary);
  color: var(--light-bg);
}

/* Apple-style borderless 2-line morphing menu toggle */
.mobile-menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.mobile-menu-btn:hover {
  background: rgba(245, 245, 247, 0.08);
}

.site-header[data-surface="light"] .mobile-menu-btn:hover {
  background: rgba(29, 29, 31, 0.06);
}

.menu-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 260ms var(--ease-out);
}

.mobile-menu-btn[aria-expanded="true"] .menu-bar--top {
  transform: translateY(3.75px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-bar--bot {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (min-width: 820px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Scroll reading progress hairline */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--dark-accent);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  opacity: 0.9;
}

.site-header[data-surface="light"] .scroll-progress {
  background: var(--light-accent);
}

/* Full-Viewport Apple Mobile Navigation Sheet */
.mobile-drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 99;
  padding: var(--space-10) var(--space-8) var(--space-10);
  background: rgba(6, 6, 6, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--dark-text-primary);
  border-bottom: 1px solid var(--dark-hairline);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease-out),
              transform 320ms var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  transition-delay: var(--item-delay, 0ms);
}

.mobile-drawer.is-open .mobile-drawer-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer-links a:hover {
  color: var(--dark-accent-ink);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 340ms var(--ease-out) 180ms,
              transform 340ms var(--ease-out) 180ms;
}

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

.mobile-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary-dark {
  background: var(--dark-text-primary);
  color: var(--dark-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary-dark:hover {
  background: #ffffff;
}

.btn-secondary-dark {
  background: rgba(245, 245, 247, 0.07);
  color: var(--dark-text-primary);
  border-color: var(--dark-hairline-strong);
  box-shadow: var(--highlight-top-dark);
}

.btn-secondary-dark:hover {
  background: rgba(245, 245, 247, 0.13);
  border-color: rgba(245, 245, 247, 0.26);
}

.btn-accent {
  background: var(--light-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--light-accent-hover);
}

/* ==========================================================================
   Section 1: Cinematic Apple Keynote Hero
   ========================================================================== */

.hero-keynote {
  position: relative;
  min-height: 100svh;
  background-color: var(--dark-deep);
  background-image: radial-gradient(ellipse 70% 42% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 72%);
  color: var(--dark-text-primary);
  padding-top: calc(var(--nav-height) + clamp(24px, 4vh, 48px));
  padding-bottom: clamp(56px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vh, 32px);
  overflow: hidden;
}

.hero-keynote-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
  will-change: transform, opacity;
}

.hero-role {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark-text-secondary);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: clamp(1.6rem, 4.1vw, 3.65rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-4);
}

.hero-subhead {
  font-size: clamp(0.875rem, 1.25vw, 1.0625rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--dark-text-secondary);
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}

/* Scroll-reactive Hardware Stage */
.hero-stage-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  padding-inline: var(--space-4);
  will-change: transform;
}

.hero-stage-img {
  width: 100%;
  height: clamp(175px, 29vh, 300px);
  object-fit: cover;
  object-position: center 88%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%),
                      linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%),
              linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dark-text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.hero-scroll-cue:hover {
  color: var(--dark-text-primary);
}

/* ==========================================================================
   Section 2: Apple Scroll-Illuminated Manifesto & Impact Strip
   ========================================================================== */

.section-manifesto {
  background-color: var(--dark-bg);
  color: var(--dark-text-primary);
  padding-block: var(--space-24);
  border-top: 1px solid var(--dark-hairline);
}

@media (min-width: 960px) {
  .section-manifesto {
    padding-block: var(--space-32);
  }
}

.manifesto-wrap {
  max-width: 920px;
}

.manifesto-kicker {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-text-muted);
  margin-bottom: var(--space-6);
}

.manifesto-text {
  font-size: clamp(1.625rem, 3.6vw, 2.875rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: rgba(245, 245, 247, 0.22);
}

.manifesto-word {
  display: inline;
  color: rgba(245, 245, 247, 0.22);
  transition: color 240ms var(--ease-out);
}

.manifesto-word.is-lit {
  color: var(--dark-text-primary);
}

.impact-strip {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--dark-hairline);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}

@media (min-width: 768px) {
  .impact-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .impact-item {
    padding-right: 24px;
  }

  .impact-item:not(:first-child) {
    padding-left: 24px;
    border-left: 1px solid var(--dark-hairline);
  }
}

.impact-value {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--dark-text-primary);
  white-space: nowrap;
}

.impact-label {
  font-size: 12px;
  line-height: 1.55;
  color: var(--dark-text-muted);
}

/* ==========================================================================
   Section 3: Apple "Get the Highlights" Horizontal Showcase Carousel
   ========================================================================== */

.section-highlights {
  background-color: var(--dark-stage);
  color: var(--dark-text-primary);
  padding-block: var(--space-20);
  scroll-margin-top: var(--nav-height);
  overflow: hidden;
}

@media (min-width: 960px) {
  .section-highlights {
    padding-block: var(--space-24);
  }
}

.highlights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.carousel-track-outer {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-inline: max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-8)));
  padding-bottom: var(--space-2);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.highlight-slide {
  position: relative;
  flex: 0 0 min(88vw, 900px);
  border-radius: var(--radius-panel);
  overflow: hidden;
  scroll-snap-align: center;
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-hairline-strong);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.highlight-slide--light {
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--light-text-primary);
}

.highlight-slide-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-bottom: 1px solid var(--dark-hairline);
  transition: transform 600ms var(--ease-out);
}

@media (min-width: 768px) {
  .highlight-slide-img {
    max-height: 360px;
  }
}

.highlight-slide--light .highlight-slide-img {
  border-bottom-color: var(--light-hairline);
}

.highlight-slide:hover .highlight-slide-img {
  transform: scale(1.015);
}

.highlight-scrim {
  display: none;
}

.highlight-slide-content {
  padding: var(--space-6);
  max-width: 680px;
  background: var(--dark-surface);
  position: relative;
  z-index: 1;
}

.highlight-slide--light .highlight-slide-content {
  background: #ffffff;
}

@media (min-width: 768px) {
  .highlight-slide-content {
    padding: var(--space-8) var(--space-10);
  }
}

.highlight-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-accent);
  margin-bottom: var(--space-2);
  display: block;
}

.highlight-slide--light .highlight-tag {
  color: var(--light-accent);
}

.highlight-title {
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.highlight-desc {
  font-size: var(--text-sm);
  line-height: 1.58;
  color: var(--dark-text-secondary);
}

@media (min-width: 768px) {
  .highlight-desc {
    font-size: var(--text-base);
  }
}

.highlight-slide--light .highlight-desc {
  color: var(--light-text-secondary);
}

/* Signature Apple Carousel Controls */
.carousel-controls {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--dark-hairline-strong);
  background: rgba(245, 245, 247, 0.07);
  color: var(--dark-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.carousel-arrow:hover:not(:disabled) {
  background: rgba(245, 245, 247, 0.14);
}

.carousel-arrow:active:not(:disabled) {
  transform: scale(0.94);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(245, 245, 247, 0.07);
  border: 1px solid var(--dark-hairline);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(245, 245, 247, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 320ms var(--ease-out),
              background-color 240ms var(--ease-out);
}

.carousel-dot[aria-selected="true"] {
  width: 28px;
  background: var(--dark-text-primary);
}

/* ==========================================================================
   Section Rhythm — Alternating Porcelain Light & Obsidian Dark
   ========================================================================== */

.section-light {
  background-color: var(--light-bg);
  color: var(--light-text-primary);
  padding-block: var(--space-20);
  scroll-margin-top: var(--nav-height);
}

.section-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text-primary);
  padding-block: var(--space-20);
  scroll-margin-top: var(--nav-height);
}

@media (min-width: 960px) {
  .section-light,
  .section-dark {
    padding-block: var(--space-32);
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section-head-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-kicker {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--light-text-muted);
}

.section-dark .section-kicker,
.section-highlights .section-kicker {
  color: var(--dark-text-muted);
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 20ch;
}

.section-lead {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--light-text-secondary);
  max-width: 38ch;
}

.section-dark .section-lead {
  color: var(--dark-text-secondary);
}

/* ==========================================================================
   Tactile Segmented Control (Apple Hardware Switcher)
   ========================================================================== */

.segmented {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  background: var(--light-recessed);
  border: 1px solid var(--light-hairline);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.section-dark .segmented {
  background: var(--dark-surface);
  border-color: var(--dark-hairline);
}

.segmented-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 8px;
  background: var(--light-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  transition: transform 300ms var(--ease-out),
              width 300ms var(--ease-out);
  will-change: transform, width;
}

.section-dark .segmented-thumb {
  background: var(--dark-raised);
  box-shadow: var(--highlight-top-dark), 0 0 0 1px var(--dark-hairline-strong);
}

.segmented-btn {
  position: relative;
  z-index: 1;
  height: 36px;
  padding: 0 14px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: center;
  border-radius: 8px;
  transition: color var(--dur-fast) var(--ease-out);
}

@media (max-width: 639px) {
  .segmented {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 4px;
    overflow-x: visible;
  }

  .segmented-thumb {
    display: none;
  }

  .segmented-btn {
    flex: 1 1 auto;
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
    text-align: center;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
  }

  .segmented-btn[aria-pressed="true"],
  .segmented-btn[aria-selected="true"] {
    background: var(--light-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  }

  .section-dark .segmented-btn[aria-pressed="true"],
  .section-dark .segmented-btn[aria-selected="true"] {
    background: var(--dark-raised);
    box-shadow: var(--highlight-top-dark), 0 0 0 1px var(--dark-hairline-strong);
  }
}

.segmented-btn[aria-pressed="true"],
.segmented-btn[aria-selected="true"] {
  color: var(--light-text-primary);
}

.section-dark .segmented-btn {
  color: var(--dark-text-secondary);
}

.section-dark .segmented-btn[aria-pressed="true"],
.section-dark .segmented-btn[aria-selected="true"] {
  color: var(--dark-text-primary);
}

/* ==========================================================================
   Section 4: Selected Work — Asymmetric Editorial Bento with Studio Visuals
   ========================================================================== */

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

@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-panel);
  background: var(--light-surface);
  border: 1px solid var(--light-hairline);
  box-shadow: var(--shadow-light-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}

.project-card:hover {
  border-color: var(--light-hairline-strong);
  box-shadow: var(--shadow-light-md);
  transform: translateY(-2px);
}

.project-card:active {
  transform: scale(0.992);
}

.project-card.is-hidden {
  display: none;
}

@media (min-width: 900px) {
  .project-card--lead {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    align-items: stretch;
  }

  .project-card--wide {
    grid-column: span 7;
  }

  .project-card--narrow {
    grid-column: span 5;
  }

  .project-card--half {
    grid-column: span 6;
  }
}

/* Anodized Obsidian Contrast Card with Subtle Pointer Specular Sheen */
.project-card--obsidian {
  background: var(--dark-surface);
  color: var(--dark-text-primary);
  border-color: var(--dark-hairline-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.project-card--obsidian::after,
.specular-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.065), transparent 62%);
  transition: opacity 260ms var(--ease-out);
}

.project-card--obsidian:hover::after,
.specular-surface:hover::after {
  opacity: 1;
}

.project-card--obsidian:hover {
  border-color: rgba(245, 245, 247, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.project-card--obsidian .project-category,
.project-card--obsidian .project-metric-label,
.project-card--obsidian .project-year {
  color: var(--dark-text-muted);
}

.project-card--obsidian .project-summary {
  color: var(--dark-text-secondary);
}

.project-card--obsidian .project-action {
  color: var(--dark-accent-ink);
}

.project-card--obsidian .project-metrics {
  border-top-color: var(--dark-hairline);
}

.project-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

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

.project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light-text-muted);
}

.project-name {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
}

.project-summary {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--light-text-secondary);
  max-width: 44ch;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--light-hairline);
}

.project-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-metric-val {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-metric-label {
  font-size: 12px;
  color: var(--light-text-muted);
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--light-accent);
  margin-top: var(--space-3);
}

.project-action .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

.project-card:hover .project-action .icon {
  transform: translateX(4px);
}

.project-media {
  position: relative;
  background: var(--light-recessed);
  overflow: hidden;
  min-height: 240px;
}

.project-card--obsidian .project-media {
  background: #14191e;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

/* ==========================================================================
   Section 5: Capabilities — Borderless Apple Editorial Stage
   Zero nested cards, zero fake charts, pure typography & 1px hairlines.
   ========================================================================== */

.craft-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--dark-hairline);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}

.craft-editorial.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

@media (min-width: 960px) {
  .craft-editorial {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-16);
    align-items: start;
  }
}

.craft-lead-title {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.craft-lead-summary {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--dark-text-secondary);
  max-width: 42ch;
}

.craft-callouts {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--dark-hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 540px) {
  .craft-callouts {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.craft-callout-figure {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark-text-primary);
  margin-bottom: 6px;
}

.craft-callout-caption {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--dark-text-muted);
}

.craft-pillars {
  list-style: none;
  border-top: 1px solid var(--dark-hairline);
}

@media (min-width: 960px) {
  .craft-pillars {
    border-top: none;
  }
}

.craft-pillar {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--dark-hairline);
}

.craft-pillar:first-child {
  padding-top: 0;
}

.craft-pillar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.craft-pillar-title {
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--dark-text-primary);
  margin-bottom: var(--space-2);
}

.craft-pillar-body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--dark-text-secondary);
  max-width: 46ch;
}

/* ==========================================================================
   Section 6: Experience & Capabilities (Porcelain Light Band)
   ========================================================================== */

.timeline {
  border-top: 1px solid var(--light-hairline);
  margin-bottom: var(--space-16);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--light-hairline);
}

@media (min-width: 768px) {
  .timeline-row {
    grid-template-columns: 180px 1fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--light-text-muted);
  padding-top: 3px;
}

.timeline-role {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--light-text-primary);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: var(--text-sm);
  color: var(--light-text-secondary);
}

.timeline-summary {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--light-text-secondary);
}

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

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-card {
  background: var(--light-surface);
  border: 1px solid var(--light-hairline);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-light-sm);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

.capability-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light-md);
}

.capability-title {
  font-size: var(--text-md);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.capability-desc {
  font-size: var(--text-sm);
  color: var(--light-text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-5);
}

.capability-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--light-hairline);
}

.capability-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--light-text-secondary);
}

.capability-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light-text-muted);
}

/* ==========================================================================
   Section 7: Contact & Footer (Dark Obsidian Band)
   ========================================================================== */

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

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

.contact-list {
  margin-top: var(--space-10);
  border-top: 1px solid var(--dark-hairline);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--dark-hairline);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.contact-row:hover {
  border-bottom-color: var(--dark-hairline-strong);
}

.contact-row-label {
  display: block;
  font-size: 13px;
  color: var(--dark-text-muted);
  margin-bottom: 4px;
}

.contact-row-value {
  display: block;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--dark-text-primary);
  word-break: break-word;
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-row:hover .contact-row-value {
  color: var(--dark-accent-ink);
}

.contact-row-arrow {
  width: 18px;
  height: 18px;
  color: var(--dark-text-muted);
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.contact-row:hover .contact-row-arrow {
  color: var(--dark-text-primary);
  transform: translate(2px, -2px);
}

.contact-form {
  background: var(--dark-surface);
  border: 1px solid var(--dark-hairline);
  border-radius: var(--radius-panel);
  padding: var(--space-8);
  box-shadow: var(--highlight-top-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

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

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text-secondary);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--dark-bg);
  border: 1px solid var(--dark-hairline-strong);
  color: var(--dark-text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dark-text-muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dark-accent);
  background: #0e1014;
}

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

.form-feedback {
  font-size: 13px;
  min-height: 20px;
  color: var(--dark-positive);
}

.form-feedback.is-error {
  color: #e5484d;
}

.site-footer {
  background: var(--dark-deep);
  border-top: 1px solid var(--dark-hairline);
  padding-block: var(--space-8);
  color: var(--dark-text-muted);
  font-size: 13px;
}

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

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Case Study Slide-Up Sheet Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 9, 0.76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
    padding: var(--space-6);
  }
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 92svh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #111114;
  color: var(--dark-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.72);
  transform: translateY(20px);
  transition: transform 340ms var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

@media (min-width: 768px) {
  .sheet-dialog {
    max-height: 90svh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 28px;
    transform: translateY(14px) scale(0.985);
  }
}

.modal-backdrop.is-open .sheet-dialog {
  transform: translateY(0) scale(1);
}

/* Floating sticky top overlay that transitions into a clean frosted bar on scroll */
.sheet-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 58px;
  margin-bottom: -58px;
  padding: 0 14px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transition: background-color 220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              backdrop-filter 220ms var(--ease-out);
}

@media (min-width: 768px) {
  .sheet-topbar {
    height: 64px;
    margin-bottom: -64px;
    padding: 0 18px 0 44px;
  }
}

.sheet-dialog.is-scrolled .sheet-topbar {
  background: rgba(17, 17, 20, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--dark-hairline);
  pointer-events: auto;
}

.sheet-topbar-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dark-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.sheet-dialog.is-scrolled .sheet-topbar-title {
  opacity: 1;
  transform: translateY(0);
}

.sheet-grabber {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}

.sheet-dialog.is-scrolled .sheet-grabber {
  opacity: 0;
}

@media (min-width: 768px) {
  .sheet-grabber {
    display: none;
  }
}

.sheet-close {
  pointer-events: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(17, 17, 20, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  color: rgba(245, 245, 247, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.sheet-close:hover {
  background: rgba(36, 36, 42, 0.92);
  color: #ffffff;
}

.sheet-close:active {
  transform: scale(0.94);
}

.sheet-close .icon {
  width: 15px;
  height: 15px;
}

.sheet-content {
  display: flex;
  flex-direction: column;
}

/* Full-bleed studio hero visual smoothly fading into obsidian canvas */
.sheet-hero {
  position: relative;
  width: 100%;
  height: 224px;
  overflow: hidden;
  background: #0a0a0d;
  margin: 0;
}

@media (min-width: 640px) {
  .sheet-hero {
    height: 310px;
  }
}

@media (min-width: 768px) {
  .sheet-hero {
    height: 380px;
  }
}

.sheet-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
}

.sheet-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 20, 0.36) 0%, rgba(17, 17, 20, 0) 34%, rgba(17, 17, 20, 0.72) 78%, #111114 100%);
  pointer-events: none;
}

.sheet-body {
  padding: 4px var(--space-5) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 640px) {
  .sheet-body {
    padding: 8px var(--space-8) var(--space-12);
  }
}

@media (min-width: 768px) {
  .sheet-body {
    padding: 8px 44px 48px;
  }
}

.sheet-intro {
  padding-bottom: 28px;
}

.sheet-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--dark-text-muted);
  margin-bottom: 10px;
}

.sheet-title {
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--dark-text-primary);
  margin-bottom: 12px;
}

.sheet-subtitle {
  font-size: 0.9375rem;
  color: var(--dark-text-secondary);
  line-height: 1.55;
  max-width: 56ch;
}

/* Borderless hairline pillar strip (stacked clean rows on mobile, 3-col spec bar on desktop) */
.sheet-pillars {
  margin: 0;
  border-top: 1px solid var(--dark-hairline);
  border-bottom: 1px solid var(--dark-hairline);
  display: grid;
  grid-template-columns: 1fr;
}

.sheet-pillar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sheet-pillar:first-child {
  border-top: none;
}

.sheet-pillar-val {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--dark-text-primary);
  white-space: nowrap;
}

.sheet-pillar-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dark-text-muted);
  text-align: right;
}

@media (min-width: 600px) {
  .sheet-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet-pillar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    padding: 20px 20px 20px 0;
    border-top: none;
  }

  .sheet-pillar:not(:first-child) {
    padding-left: 22px;
    border-left: 1px solid var(--dark-hairline);
  }

  .sheet-pillar-val {
    font-size: 17px;
    letter-spacing: -0.01em;
  }

  .sheet-pillar-label {
    text-align: left;
  }
}

/* Editorial 2-column hairline sections (Workflow, Problem, Built, Outcome, Stack) */
.sheet-editorial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--dark-hairline);
}

@media (min-width: 680px) {
  .sheet-editorial-row {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 32px;
    padding: 30px 0;
    align-items: baseline;
  }
}

.sheet-section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dark-text-muted);
  margin: 0;
  padding-top: 2px;
}

.sheet-prose {
  color: var(--dark-text-secondary);
  line-height: 1.68;
  margin: 0;
}

/* Borderless numbered workflow steps (replaces nested boxes & dangling arrows) */
.sheet-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sheet-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sheet-step:first-child {
  padding-top: 0;
  border-top: none;
}

.sheet-step:last-child {
  padding-bottom: 0;
}

.sheet-step-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-text-muted);
}

.sheet-step-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-text-primary);
}

.sheet-step-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dark-text-muted);
  text-align: right;
  white-space: nowrap;
}

/* Minimal translucent hairline stack tags */
.sheet-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--dark-text-secondary);
}

/* Closing Editorial CTA Band inside Sheet */
.sheet-cta-band {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 600px) {
  .sheet-cta-band {
    flex-direction: row;
    align-items: center;
  }
}

.sheet-cta-copy {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dark-text-primary);
  margin: 0;
}

.sheet-cta-btn {
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ==========================================================================
   Additional UX Polish — Counter, Sheet Nav, Form Actions & Micro-Motion
   ========================================================================== */

.highlights-counter {
  font-size: 13px;
  color: var(--dark-text-muted);
  white-space: nowrap;
  padding-bottom: 4px;
}

.form-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .form-actions-row {
    grid-template-columns: 1.35fr 1fr;
  }
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-top-link:hover {
  color: var(--dark-text-primary);
}

.footer-top-link .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

.footer-top-link:hover .icon {
  transform: translateY(-2px);
}

.sheet-footer {
  position: sticky;
  bottom: 0;
  z-index: 6;
  padding: 14px var(--space-5);
  border-top: 1px solid var(--dark-hairline);
  background: rgba(17, 17, 20, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .sheet-footer {
    padding: 16px 44px;
  }
}

.sheet-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--dark-text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  transition: color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.sheet-nav-prev {
  justify-self: start;
}

.sheet-nav-next {
  justify-self: end;
}

.sheet-nav-btn:hover {
  color: var(--dark-text-primary);
}

.sheet-nav-btn:active {
  transform: scale(0.97);
}

.sheet-nav-btn .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sheet-nav-full {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-nav-short {
  display: inline;
  white-space: nowrap;
}

@media (min-width: 680px) {
  .sheet-nav-short {
    display: none;
  }

  .sheet-nav-full {
    display: inline;
  }
}

.sheet-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dark-text-muted);
  white-space: nowrap;
}

.project-card.is-filtering {
  animation: filterFadeIn 280ms var(--ease-out) both;
}

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

.blueprint-detail {
  transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out);
}

.blueprint-detail.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--dark-raised);
  border: 1px solid var(--dark-hairline-strong);
  color: var(--dark-text-primary);
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 200ms var(--ease-out),
              transform 240ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   ALL CAPS Architectural Editorial Typography System
   ========================================================================== */

body {
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

input,
textarea,
.contact-email-value,
.form-feedback {
  text-transform: none;
  letter-spacing: 0;
}

.brand-mark {
  letter-spacing: 0.04em;
  font-size: 14px;
}

.nav-link {
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.nav-cta,
.btn {
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.hero-role {
  font-size: 13px;
  letter-spacing: 0.09em;
}

.hero-title {
  font-size: clamp(1.38rem, 3.05vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}

.hero-subhead {
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.manifesto-text {
  font-size: clamp(1.375rem, 3vw, 2.45rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.section-kicker,
.manifesto-kicker,
.highlight-tag {
  font-size: 12px;
  letter-spacing: 0.09em;
}

.section-title {
  font-size: clamp(1.625rem, 3.2vw, 2.65rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.section-lead,
.project-summary,
.highlight-desc,
.craft-lead-summary,
.craft-pillar-body,
.timeline-summary,
.capability-desc,
.sheet-prose {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  line-height: 1.65;
}

.project-name,
.highlight-title,
.craft-lead-title {
  letter-spacing: -0.01em;
}

/* ==========================================================================
   3D Spatial Prism Centerpiece (Pure GPU CSS 3D preserve-3d)
   ========================================================================== */

main,
.section-manifesto,
.section-light,
.section-dark {
  overflow-x: clip;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 960px) {
  .manifesto-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: var(--space-12);
  }
}

.prism-stage {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 960px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

@media (min-width: 960px) {
  .prism-stage {
    height: 300px;
  }
}

.prism-stage:active {
  cursor: grabbing;
}

.prism-rig {
  --cube-size: 128px;
  --half: 64px;
  --core-size: 56px;
  --core-half: 28px;
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  transform-style: preserve-3d;
  will-change: transform;
}

@media (min-width: 960px) {
  .prism-rig {
    --cube-size: 156px;
    --half: 78px;
    --core-size: 68px;
    --core-half: 34px;
  }
}

.prism-outer,
.prism-core {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.prism-outer {
  animation: prismSpin 18s linear infinite;
}

.prism-core {
  width: var(--core-size);
  height: var(--core-size);
  margin: auto;
  animation: prismCoreSpin 11s linear infinite reverse;
}

.prism-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(245, 245, 247, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.015) 55%, rgba(41, 151, 255, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backface-visibility: visible;
}

.prism-face--front  { transform: translateZ(var(--half)); }
.prism-face--back   { transform: rotateY(180deg) translateZ(var(--half)); }
.prism-face--right  { transform: rotateY(90deg) translateZ(var(--half)); }
.prism-face--left   { transform: rotateY(-90deg) translateZ(var(--half)); }
.prism-face--top    { transform: rotateX(90deg) translateZ(var(--half)); }
.prism-face--bottom { transform: rotateX(-90deg) translateZ(var(--half)); }

.prism-core-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(41, 151, 255, 0.55);
  background: linear-gradient(145deg, rgba(41, 151, 255, 0.28), rgba(245, 245, 247, 0.08));
  box-shadow: inset 0 0 18px rgba(41, 151, 255, 0.22);
}

.prism-core-face--front  { transform: translateZ(var(--core-half)); }
.prism-core-face--back   { transform: rotateY(180deg) translateZ(var(--core-half)); }
.prism-core-face--right  { transform: rotateY(90deg) translateZ(var(--core-half)); }
.prism-core-face--left   { transform: rotateY(-90deg) translateZ(var(--core-half)); }
.prism-core-face--top    { transform: rotateX(90deg) translateZ(var(--core-half)); }
.prism-core-face--bottom { transform: rotateX(-90deg) translateZ(var(--core-half)); }

.prism-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 210px;
  margin-top: -105px;
  margin-left: -105px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 247, 0.14);
  transform: rotateX(72deg) rotateY(18deg);
  animation: ringOrbit 14s linear infinite;
  pointer-events: none;
}

@media (min-width: 960px) {
  .prism-ring {
    width: 252px;
    height: 252px;
    margin-top: -126px;
    margin-left: -126px;
  }
}

@keyframes prismSpin {
  0%   { transform: rotateX(-18deg) rotateY(0deg) rotateZ(0deg); }
  50%  { transform: rotateX(18deg) rotateY(180deg) rotateZ(6deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg) rotateZ(0deg); }
}

@keyframes prismCoreSpin {
  0%   { transform: rotateX(24deg) rotateY(0deg); }
  100% { transform: rotateX(384deg) rotateY(360deg); }
}

@keyframes ringOrbit {
  0%   { transform: rotateX(72deg) rotateY(16deg) rotateZ(0deg); }
  100% { transform: rotateX(72deg) rotateY(16deg) rotateZ(360deg); }
}

/* ==========================================================================
   3D Perspective Depth, Continuous 3D Scroll Choreography & Card Tilt
   ========================================================================== */

.hero-keynote,
.page-hero,
.closing-band {
  perspective: 1400px;
}

.hero-stage-wrap,
.page-hero-inner {
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.work-grid,
.capabilities-grid,
.carousel-track-outer,
.timeline,
.deliverables-list,
.principles-grid,
.home-services-grid,
.contact-grid {
  perspective: 1400px;
}

.project-card,
.capability-card {
  --s-rx: 0deg;
  --s-ry: 0deg;
  --s-ty: 0px;
  --s-sc: 1;
  --h-rx: 0deg;
  --h-ry: 0deg;
  --h-ty: 0px;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

.project-card.is-visible,
.capability-card.is-visible,
.scroll-3d-ready .project-card.is-visible,
.scroll-3d-ready .capability-card.is-visible {
  transform: perspective(1400px)
             translate3d(0, calc(var(--s-ty) + var(--h-ty)), 0)
             rotateX(calc(var(--s-rx) + var(--h-rx)))
             rotateY(calc(var(--s-ry) + var(--h-ry)))
             scale(var(--s-sc));
  transition: opacity 520ms var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card .project-body,
.capability-card > * {
  transform: translateZ(16px);
}

.project-card .project-media {
  overflow: hidden;
}

.project-card .project-media img {
  --media-ty: 0px;
  transform: translate3d(0, var(--media-ty), 0) scale(1.04);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-card:hover .project-media img {
  transform: translate3d(0, var(--media-ty), 0) scale(1.07);
}

.highlight-slide {
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 260ms var(--ease-out);
}

.timeline-row,
.deliverable-row,
.principle-item,
.home-service-item,
.closing-band-inner,
.contact-form {
  --s-rx: 0deg;
  --s-ty: 0px;
  --s-sc: 1;
  transform-origin: center top;
  will-change: transform;
}

.scroll-3d-ready .timeline-row,
.scroll-3d-ready .deliverable-row,
.scroll-3d-ready .principle-item,
.scroll-3d-ready .home-service-item,
.scroll-3d-ready .closing-band-inner.is-visible,
.scroll-3d-ready .contact-form.is-visible {
  transform: perspective(1300px)
             translate3d(0, var(--s-ty), 0)
             rotateX(var(--s-rx))
             scale(var(--s-sc));
  transition: opacity 520ms var(--ease-out),
              transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop {
  perspective: 1400px;
}

.sheet-dialog {
  transform: translateY(24px) rotateX(7deg) scale(0.97);
  transform-origin: center bottom;
}

.modal-backdrop.is-open .sheet-dialog {
  transform: translateY(0) rotateX(0deg) scale(1);
}

/* Choreographed 3D Scroll Unfold Reveals */
[data-reveal] {
  opacity: 0;
  transform: perspective(1200px) translateY(32px) rotateX(12deg) scale(0.965);
  transform-origin: center top;
  transition: opacity 560ms var(--ease-out),
              transform 680ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: perspective(1200px) translateY(0) rotateX(0deg) scale(1);
}

.hero-enter {
  opacity: 0;
  transform: perspective(1200px) translateY(18px) rotateX(7deg);
  animation: heroRise3D 620ms var(--ease-out) forwards;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes heroRise3D {
  to {
    opacity: 1;
    transform: perspective(1200px) translateY(0) rotateX(0deg);
  }
}

/* ==========================================================================
   Multi-Page Architecture — Subpage Heroes, Deliverables, FAQ & Editorial Footer
   ========================================================================== */

.page-hero {
  background: var(--dark-deep);
  color: var(--dark-text-primary);
  padding-top: calc(var(--nav-height) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
  border-bottom: 1px solid var(--dark-hairline);
  overflow-x: clip;
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--dark-text-muted);
  margin-bottom: 14px;
}

.page-hero-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark-text-primary);
  margin-bottom: 18px;
}

.page-hero-lead {
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  color: var(--dark-text-secondary);
  line-height: 1.65;
  max-width: 58ch;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mobile-drawer a[aria-current="page"] {
  color: var(--dark-text-primary);
}

.mobile-drawer a[aria-current="page"] span::before {
  content: '· ';
  color: var(--dark-accent);
}

/* Home Services Preview Strip (6 Core Commercial Services) */
.home-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--dark-hairline);
  border-top: 1px solid var(--dark-hairline);
  border-bottom: 1px solid var(--dark-hairline);
}

@media (min-width: 768px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-service-item {
  padding: 28px 24px;
  background: var(--dark-deep);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .home-service-item {
    padding: 32px 28px;
  }
}

/* Executive B2B Services Grid (6 Core Commercial Offerings on services.html) */
.b2b-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .b2b-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.b2b-service-card {
  background: #ffffff;
  border: 1px solid var(--light-hairline-strong);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.28s var(--ease-apple), box-shadow 0.28s var(--ease-apple), border-color 0.28s var(--ease-apple);
}

.b2b-service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 29, 31, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
}

.b2b-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.b2b-service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--light-accent);
}

.b2b-service-title {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--light-text-primary);
}

.b2b-service-tagline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--light-accent);
}

.b2b-service-overview {
  font-size: 14px;
  line-height: 1.62;
  color: var(--light-text-secondary);
}

.b2b-service-deliverables {
  list-style: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--light-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b2b-service-deliverables li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--light-text-primary);
}

.b2b-service-deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--light-accent);
}

/* Impact Strip — 3 Core Value Highlights */
@media (min-width: 768px) {
  .impact-strip--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dark-text-muted);
}

.home-service-title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark-text-primary);
}

.home-service-desc {
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  line-height: 1.6;
}

/* Editorial Deliverables Hairline List (services.html) */
.deliverables-list {
  border-top: 1px solid var(--light-hairline);
}

.deliverable-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--light-hairline);
}

@media (min-width: 768px) {
  .deliverable-row {
    grid-template-columns: 56px 260px minmax(0, 1fr);
    gap: 28px;
    align-items: baseline;
    padding: 32px 0;
  }
}

.deliverable-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light-text-muted);
}

.deliverable-title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--light-text-primary);
}

.deliverable-desc {
  font-size: 0.875rem;
  color: var(--light-text-secondary);
  line-height: 1.65;
}

/* Principles 2x2 Architectural Grid (about.html) */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--dark-hairline);
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.principle-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--dark-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .principle-item {
    padding: 34px 34px 34px 0;
  }

  .principle-item:nth-child(even) {
    padding-left: 34px;
    padding-right: 0;
    border-left: 1px solid var(--dark-hairline);
  }
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dark-text-muted);
}

.principle-title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark-text-primary);
}

.principle-body {
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  line-height: 1.65;
}

/* Interactive FAQ Hairline Accordion (about.html) */
.faq-list {
  border-top: 1px solid var(--dark-hairline);
}

.faq-item {
  border-bottom: 1px solid var(--dark-hairline);
}

.faq-trigger {
  width: 100%;
  padding: 22px 0;
  background: transparent;
  border: none;
  color: var(--dark-text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-trigger:hover {
  color: #ffffff;
}

.faq-trigger .icon {
  flex-shrink: 0;
  color: var(--dark-text-muted);
  transition: transform 240ms var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.faq-item.is-open .faq-trigger .icon {
  transform: rotate(45deg);
  color: var(--dark-text-primary);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease-out);
}

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

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

.faq-answer {
  padding-bottom: 22px;
  max-width: 66ch;
  font-size: 0.875rem;
  color: var(--dark-text-secondary);
  line-height: 1.68;
}

/* Closing Editorial CTA Band (Shared across Home, Work, Services, Process) */
.closing-band {
  background-color: var(--dark-deep);
  background-image: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 72%);
  color: var(--dark-text-primary);
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-top: 1px solid var(--dark-hairline);
}

.closing-band .section-kicker {
  color: var(--dark-text-muted);
}

.closing-band .section-lead {
  color: var(--dark-text-secondary);
  max-width: 48ch;
}

.page-hero {
  background-image: radial-gradient(ellipse 68% 48% at 25% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
}

/* Tactile Micro-Interactions & Keyboard Focus Craft */
.project-card:hover .project-action .icon {
  transform: translateX(4px);
}

.project-action .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

.project-card:hover {
  border-color: rgba(29, 29, 31, 0.16);
}

.project-card--obsidian:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

:focus-visible {
  outline: 2px solid var(--dark-accent);
  outline-offset: 3px;
}

main {
  animation: pageFadeIn 240ms var(--ease-out) both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.closing-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

@media (min-width: 840px) {
  .closing-band-inner {
    flex-direction: row;
    align-items: flex-end;
  }
}

.closing-band-copy {
  max-width: 600px;
}

.closing-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Contact Page Inquiry Topic Selector & Copy Utility */
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--dark-hairline-strong);
  background: transparent;
  color: var(--dark-text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.topic-pill:hover {
  color: var(--dark-text-primary);
  border-color: rgba(255, 255, 255, 0.28);
}

.topic-pill[aria-pressed="true"] {
  background: var(--dark-text-primary);
  color: var(--dark-deep);
  border-color: var(--dark-text-primary);
}

.contact-utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-expectations {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--dark-hairline);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 768px) {
  .contact-expectations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-expectation {
  padding: 24px 0;
  border-bottom: 1px solid var(--dark-hairline);
}

@media (min-width: 768px) {
  .contact-expectation {
    padding: 28px 24px 0 0;
    border-bottom: none;
  }

  .contact-expectation:not(:first-child) {
    padding-left: 24px;
    border-left: 1px solid var(--dark-hairline);
  }
}

.contact-expectation-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-text-primary);
  margin-bottom: 6px;
}

.contact-expectation-desc {
  font-size: 12px;
  color: var(--dark-text-muted);
  line-height: 1.6;
}

/* Multi-Page Architectural Site Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.25rem) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark-hairline);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dark-text-primary);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 12px;
  color: var(--dark-text-muted);
  line-height: 1.65;
  max-width: 34ch;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dark-text-muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--dark-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--dark-text-primary);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  .hero-enter,
  .prism-outer,
  .prism-core,
  .prism-ring {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .manifesto-word {
    color: var(--dark-text-primary) !important;
    transition: none !important;
  }

  .segmented-thumb,
  .project-media img,
  .highlight-slide-img,
  .sheet-dialog {
    transition: none !important;
  }
}

body.reduce-motion [data-reveal],
body.reduce-motion .hero-enter,
body.reduce-motion .prism-outer,
body.reduce-motion .prism-core,
body.reduce-motion .prism-ring {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

body.reduce-motion .manifesto-word {
  color: var(--dark-text-primary) !important;
}

/* Tactile Mobile Touch Feedback (:active states without browser blue tap flash) */
.mobile-menu-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.08);
}

.site-header[data-surface="light"] .mobile-menu-btn:active {
  background: rgba(29, 29, 31, 0.08);
}

.mobile-drawer-links a:active {
  opacity: 0.72;
  transform: translateX(3px);
}

.nav-link:active,
.brand-mark:active,
.site-footer a:active,
.text-link:active {
  opacity: 0.72;
}

.segmented-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.faq-trigger:active {
  opacity: 0.78;
}

.carousel-dot:active {
  transform: scale(0.88);
}

.contact-row:active {
  opacity: 0.84;
  background: rgba(255, 255, 255, 0.04);
}

/* Print Stylesheet */
@media print {
  .site-header,
  .mobile-drawer,
  .modal-backdrop,
  .toast,
  .contact-form,
  .carousel-controls,
  .prism-stage {
    display: none !important;
  }

  body,
  .section-dark,
  .section-light,
  .section-manifesto,
  .section-highlights,
  .hero-keynote {
    background: #ffffff !important;
    color: #111111 !important;
    padding-block: 24px !important;
    min-height: auto !important;
  }

  .manifesto-word {
    color: #111111 !important;
  }
}
