/* ================================================================
   BLOK. — Structural Design System
   A living architectural interface
   ================================================================ */

/* ----- Tokens ----- */
:root {
  /* Concrete mode (default) */
  --bg: oklch(91% 0.004 85);
  --surface: oklch(95% 0.003 85);
  --surface-raised: oklch(97% 0.002 85);
  --fg: oklch(14% 0.01 85);
  --fg-mono: oklch(14% 0.01 85);
  --muted: oklch(48% 0.008 85);
  --border: oklch(76% 0.006 85);
  --accent: oklch(52% 0.21 28);
  --accent-dim: oklch(62% 0.14 28);
  --steel: oklch(62% 0.01 250);
  --steel-light: oklch(78% 0.008 250);
  --marker: oklch(55% 0.12 255);
  --grid-color: oklch(84% 0.004 85);
  --grid-color-bold: oklch(76% 0.006 85);
  --noise-opacity: 0.04;
  --viz-overlay: none;
  --annotation-opacity: 0.3;
  --block-top: oklch(95% 0.003 85);
  --block-left: oklch(88% 0.005 85);
  --block-right: oklch(82% 0.006 85);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --gutter: clamp(20px, 3.5vw, 48px);
  --section-space: clamp(80px, 12vh, 140px);
  --border-w: 2px;
}

/* Blueprint mode — architectural drawing */
:root[data-viz="blueprint"] {
  --bg: oklch(93% 0.025 100);
  --surface: oklch(90% 0.02 100);
  --surface-raised: oklch(96% 0.015 100);
  --fg: oklch(38% 0.12 260);
  --fg-mono: oklch(38% 0.12 260);
  --muted: oklch(58% 0.08 260);
  --border: oklch(72% 0.06 260);
  --accent: oklch(50% 0.2 25);
  --accent-dim: oklch(60% 0.12 25);
  --steel: oklch(38% 0.12 260);
  --steel-light: oklch(58% 0.08 260);
  --grid-color: oklch(78% 0.08 260);
  --grid-color-bold: oklch(58% 0.08 260);
  --noise-opacity: 0.01;
  --block-top: oklch(95% 0.02 100);
  --block-left: oklch(85% 0.03 100);
  --block-right: oklch(78% 0.04 100);
}

/* ----- LOT Free Font ----- */
@font-face {
  font-family: 'LOT Free';
  src: url('../fonts/LOT.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----- Concrete noise texture (parallax-ready) ----- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  background-position: var(--noise-x, 0px) var(--noise-y, 0px);
  mix-blend-mode: multiply;
  will-change: background-position;
}

/* ----- Structural grid background (parallax-ready) ----- */
body::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    /* Bold major grid lines every 400px */
    linear-gradient(var(--grid-color-bold) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color-bold) 1px, transparent 1px),
    /* Thin minor grid lines every 80px */
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size:
    400px 400px,
    400px 400px,
    80px 80px,
    80px 80px;
  background-position: var(--grid-x, 0px) var(--grid-y, 0px);
  will-change: background-position;
}

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

html {
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  cursor: crosshair;
  padding-left: 56px;
}

/* Main content wrapper pushes right to avoid nav overlap */
.main-content {
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 28px); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 12px;
}

/* ----- Structural frame ----- */
.frame {
  position: relative;
  border: var(--border-w) solid var(--border);
  padding: var(--gutter);
}

.frame::before,
.frame::after {
  content: '';
  position: absolute;
  background: var(--border);
}

/* corner markers */
.frame-corners {
  position: relative;
  padding: 32px;
}
.frame-corners + .frame-corners {
  margin-top: 24px;
}
.frame-corners::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: var(--border-w) solid var(--steel-light);
  pointer-events: none;
  z-index: 1;
}
.frame-corners::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background:
    linear-gradient(var(--steel) 0 0) 0 0 / 24px 2px no-repeat,
    linear-gradient(var(--steel) 0 0) 0 0 / 2px 24px no-repeat,
    linear-gradient(var(--steel) 0 0) 100% 0 / 24px 2px no-repeat,
    linear-gradient(var(--steel) 0 0) 100% 0 / 2px 24px no-repeat,
    linear-gradient(var(--steel) 0 0) 0 100% / 24px 2px no-repeat,
    linear-gradient(var(--steel) 0 0) 0 100% / 2px 24px no-repeat,
    linear-gradient(var(--steel) 0 0) 100% 100% / 24px 2px no-repeat,
    linear-gradient(var(--steel) 0 0) 100% 100% / 2px 24px no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* ----- Annotation style ----- */
.annotation {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: var(--annotation-opacity);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.annotation::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
}
.annotation::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

/* ----- Layout containers ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 56px;
}

.section-header h2 {
  max-width: 14ch;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ----- Structural navigation ----- */
.structural-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 56px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.structural-nav__floor {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding: 16px 0;
  cursor: pointer;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.3;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.structural-nav__floor:hover {
  opacity: 0.7;
  text-decoration: none;
}

.structural-nav__floor--active {
  opacity: 1;
  color: var(--fg);
}

/* Indicator line — absolute element that smoothly moves between floors */
.structural-nav__indicator {
  position: absolute;
  left: -1px;
  width: 2px;
  background: var(--accent);
  pointer-events: none;
  z-index: 1;
  will-change: top, height;
}

/* Natural easing with a subtle spring overshoot — activated after initial position */
.structural-nav--animated .structural-nav__indicator {
  transition: top 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----- Floor indicator (bottom of nav) ----- */
.floor-indicator {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 56px;
  text-align: center;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1;
}

.floor-indicator__num {
  font-size: 1.2rem;
  display: block;
  color: var(--fg);
  margin-bottom: 2px;
}

/* ----- View toggle (Structure / Blueprint) ----- */
.viz-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 0;
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  font-size: 0;
}

.viz-toggle__btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.viz-toggle__btn--active {
  background: var(--fg);
  color: var(--surface);
}

/* ----- Hero — Split Layout ----- */
.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 1;
}

.hero__split {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
}

/* Left copy column */
.hero__copy {
  flex: 0 0 52%;
  padding: 120px 0 80px calc(56px + var(--gutter));
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.8vw, 0.8rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

.hero__title {
  font-family: 'LOT Free', 'Space Grotesk', var(--font-display);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero__title .dot {
  color: var(--accent);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 40ch;
  margin-top: 20px;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right discipline blocks column */
.hero__disciplines {
  flex: 0 0 48%;
  position: relative;
  height: 100vh;
  z-index: 1;
}

/* ----- Floating Discipline Blocks ----- */
.disc-block {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
  /* Entrance */
  opacity: 0;
  transition:
    left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    box-shadow 0.3s,
    z-index 0s;
  animation: discEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.disc-block:active {
  cursor: grabbing;
}

.disc-block__icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.3s;
}

.disc-block__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.3s;
  white-space: nowrap;
}

/* Hover lift */
.disc-block:hover {
  border-color: var(--fg);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.04);
}

.disc-block:hover .disc-block__icon,
.disc-block:hover .disc-block__label {
  color: var(--fg);
}

/* Color variants — accent borders */
.disc-block--accent {
  border-color: oklch(70% 0.14 28);
}
.disc-block--accent .disc-block__icon {
  color: oklch(55% 0.2 28);
}
.disc-block--accent:hover {
  border-color: oklch(50% 0.22 28);
}

.disc-block--cyan {
  border-color: oklch(72% 0.12 230);
}
.disc-block--cyan .disc-block__icon {
  color: oklch(58% 0.14 230);
}
.disc-block--cyan:hover {
  border-color: oklch(48% 0.16 230);
}

.disc-block--lime {
  border-color: oklch(75% 0.12 120);
}
.disc-block--lime .disc-block__icon {
  color: oklch(65% 0.14 120);
}
.disc-block--lime:hover {
  border-color: oklch(55% 0.16 120);
}

/* Base variant — no accent */
.disc-block--base {
  border-color: var(--border);
}
.disc-block--base .disc-block__icon {
  color: var(--muted);
}

/* Entrance keyframe */
@keyframes discEnter {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Blueprint mode */
:root[data-viz="blueprint"] .disc-block {
  border-style: dashed;
  border-color: oklch(55% 0.1 260) !important;
  background: oklch(92% 0.025 100);
}
:root[data-viz="blueprint"] .disc-block__icon,
:root[data-viz="blueprint"] .disc-block__label {
  color: oklch(42% 0.12 260) !important;
}
:root[data-viz="blueprint"] .disc-block:hover {
  border-color: oklch(35% 0.14 260) !important;
}

/* ----- Scroll indicator ----- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--steel), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: var(--border-w) solid var(--fg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.btn:hover {
  background: var(--fg);
  color: var(--surface);
  text-decoration: none;
}

.btn--primary {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.btn--ghost {
  border-color: var(--border);
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: var(--fg);
  color: var(--fg);
  background: transparent;
}

.btn--outline {
  border-color: var(--border);
  color: var(--fg);
}

.btn--outline:hover {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 0.8125rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----- Services (assembly floors) ----- */
.services-assembly {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Vertical rail with node markers */
.services-assembly__rail {
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 0;
  pointer-events: none;
}

.services-assembly__line {
  position: absolute;
  inset: 0;
  background: var(--border);
}

.services-assembly__node {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

/* Individual assembly floor */
.assembly-floor {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  padding: 40px 0;
  border-bottom: var(--border-w) solid var(--border);
}

.assembly-floor:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.assembly-floor:first-child {
  padding-top: 0;
}

.assembly-floor__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}

.assembly-floor__index {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.assembly-floor__level {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-light);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.assembly-floor__body {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
}

.assembly-floor__icon-col {
  display: flex;
  justify-content: center;
}

.assembly-floor__icon {
  font-size: 1.5rem;
  color: var(--steel);
  display: block;
  margin-top: 2px;
  transition: color 0.3s;
}

.assembly-floor:hover .assembly-floor__icon {
  color: var(--accent);
}

.assembly-floor__content h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 8px;
}

.assembly-floor__content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 55ch;
}

.assembly-floor__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.assembly-floor__specs .annotation {
  font-size: 0.6rem;
}

.assembly-floor__footing {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
}

.assembly-floor__footing strong {
  color: var(--fg);
  font-weight: 500;
}

@media (max-width: 700px) {
  .assembly-floor {
    grid-template-columns: 1fr;
  }

  .assembly-floor__marker {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 0;
    align-items: baseline;
  }

  .assembly-floor__level {
    writing-mode: horizontal-tb;
  }

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

  .assembly-floor__icon-col {
    justify-content: flex-start;
  }

  .assembly-floor__footing {
    flex-wrap: wrap;
    gap: 16px;
  }

  .services-assembly__rail {
    display: none;
  }
}

/* ----- Portfolio / Work ----- */
.work-filters {
  display: flex;
  gap: 0;
  border: var(--border-w) solid var(--border);
  margin-bottom: 40px;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

/* Sliding active indicator */
.work-filters__indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--fg);
  transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.work-filter {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
}

.work-filter:hover {
  color: var(--fg);
}

.work-filter--active {
  color: var(--surface);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

/* Featured items — first two hero pieces */
.work-item--featured {
  grid-column: span 2;
}
.work-item--featured .work-item__thumb {
  height: 300px;
}
.work-item--featured .work-item__title {
  font-size: 1.4rem;
}
.work-item--featured .work-item__desc {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .work-item--featured {
    grid-column: span 1;
  }
  .work-item--featured .work-item__thumb {
    height: 200px;
  }
}
@media (max-width: 600px) {
  .work-item--featured .work-item__thumb {
    height: 180px;
  }
}

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

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

.work-item,
a.work-item {
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  /* Filter animation — only opacity + transform, nothing else */
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  will-change: opacity, transform;
}

/* Hover — separate transition, fast and subtle */
@media (hover: hover) and (pointer: fine) {
  .work-item {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out,
                border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .work-item:hover {
    border-color: var(--fg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
}

/* Filter states — slide up + fade */
.work-item.filtering-out {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
}
.work-item.filtering-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-item__thumb {
  height: 200px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.work-item__thumb-label {
  position: relative;
  z-index: 1;
}

.work-item__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.work-item:hover .work-item__icon {
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.4s ease;
}

/* ── Contact: highlighted reply time ── */
.contact-info__detail--highlight {
  font-size: 0.85rem;
  padding: 12px 16px;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  margin-bottom: 8px;
}

/* ── Form: Coming Soon card ── */
.form-coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 52px 32px 32px;
  gap: 16px;
  min-height: 320px;
}

.form-coming-soon__icon {
  font-size: 2rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-coming-soon__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
}

.form-coming-soon__text {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.6;
}

.work-item__thumb-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(var(--fg) 1px, transparent 1px),
    linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 20px 20px;
}

.work-item__body {
  padding: 20px 24px 24px;
}

.work-item__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
  display: block;
}

.work-item__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-item__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Blueprint overlay on work items */
:root[data-viz="blueprint"] .work-item__thumb-grid {
  opacity: 0.3;
}

:root[data-viz="blueprint"] .work-item {
  border-style: dashed;
}

/* ----- Process — split layout with sticky header ----- */
.process-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.process-split__header {
  position: sticky;
  top: 80px;
  z-index: 1;
}

.process-split__header .section-header {
  margin-bottom: 0;
}

.process-split__header h2 {
  max-width: 10ch;
}

@media (max-width: 860px) {
  .process-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-split__header {
    position: static;
  }
}

/* ----- Process ----- */
.process-timeline {
  position: relative;
  padding-left: 60px;
  max-width: 620px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.process-step {
  position: relative;
  padding-bottom: 48px;
  border-left: 0;
}

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

.process-step__marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 38px;
  height: 38px;
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  z-index: 2;
  transition: background 0.3s, border-color 0.3s;
}

.process-step--active .process-step__marker {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--surface);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 50ch;
}

.process-step__meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--steel-light);
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

/* ----- Contact sections ----- */
.contact-structural {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}

@media (max-width: 700px) {
  .contact-structural {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info__text {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 45ch;
}

.contact-info__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
  margin-bottom: 12px;
}

.contact-info__detail i {
  color: var(--steel);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.contact-info__detail a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.contact-info__detail a:hover {
  color: var(--fg);
  text-decoration-color: var(--fg);
}

/* Contact form */
.form-structural {
  border: var(--border-w) solid var(--border);
  padding: 32px;
  background: var(--surface);
}

@media (max-width: 700px) {
  .form-structural {
    margin-top: 0;
  }
}

.form-structural__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-structural__title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

.form-structural__step {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--steel-light);
  border: 1px solid var(--border);
  padding: 2px 10px;
}

.form-structural .form-group {
  margin-bottom: 20px;
}

.form-structural .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-structural .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-structural label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-structural label .required {
  color: var(--accent);
}

.form-structural input,
.form-structural textarea,
.form-structural select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  color: var(--fg);
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-structural input:focus,
.form-structural textarea:focus,
.form-structural select:focus {
  outline: none;
  border-color: var(--fg);
}

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

.form-structural select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkbox group */
.form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--fg);
  cursor: pointer;
  padding: 8px 14px;
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  transition: all 0.15s;
  user-select: none;
}

.form-checkbox:hover {
  border-color: var(--fg);
}

.form-checkbox input[type="checkbox"] {
  display: none;
}

.form-checkbox input[type="checkbox"] + span::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: var(--border-w) solid var(--border);
  margin-right: 4px;
  vertical-align: middle;
  transition: all 0.15s;
}

.form-checkbox input[type="checkbox"]:checked + span::before {
  background: var(--fg);
  border-color: var(--fg);
  content: '✓';
  color: var(--surface);
  font-size: 10px;
  text-align: center;
  line-height: 14px;
}

.form-checkbox input[type="checkbox"]:checked + span {
  color: var(--fg);
}

/* Field error */
.form-field__error {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--accent);
  margin-top: 4px;
}

/* Field footer (char count) */
.form-field__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.form-field__count {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--steel-light);
  margin-left: auto;
}

/* Form buttons */
.form-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-buttons .btn {
  flex: 1;
  justify-content: center;
}

.form-buttons .btn--ghost {
  flex: 0 1 auto;
}

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

.ph-spin {
  animation: spin 0.8s linear infinite;
}

/* Success state */
.form-success {
  border: var(--border-w) solid var(--border);
  padding: 48px 32px;
  background: var(--surface);
  text-align: center;
}

.form-success__icon {
  font-size: 3rem;
  color: var(--green);
  margin-bottom: 16px;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 8px;
}

.form-success__text {
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.form-success__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto 24px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.form-success__detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg);
}

.form-success__detail i {
  color: var(--green);
  font-size: 1rem;
}

.form-success .btn {
  display: inline-flex;
  width: auto;
  margin: 0 auto;
}

/* ----- Foundation Footer ----- */
.footer-foundation {
  position: relative;
  z-index: 1;
  border-top: var(--border-w) solid var(--fg);
  background: var(--surface);
}

/* ----- Tension Monitor (interactive footer) ----- */
.footer-content {
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gutter);
}

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

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

.brand-lot {
  font-family: 'LOT Free', var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.footer-brand {
  font-family: 'LOT Free', var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.footer-brand .dot {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 30ch;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--fg);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__text {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--fg);
}

/* ----- CTA section ----- */
.cta-frame {
  padding: 64px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-frame h2 {
  margin-bottom: 16px;
}

.cta-frame p {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

/* Narrow container */
.container--narrow {
  max-width: 700px;
}

/* Centered section header */
.section-header--center {
  text-align: center;
}

/* Inline subtitle after section-header */
.section-subtitle {
  color: var(--muted);
  margin-top: 8px;
  max-width: 50ch;
}

/* Grid-3 without the structural beam gap */
.grid-3--flush {
  margin-top: 0;
  border-top: none;
}

/* Service grid padding grows as cards expand — gives reading room */
#serviceGrid {
  transition: padding-bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Service Cards (expandable What We Build section) ----- */
.service-card {
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-color: var(--steel-light);
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 2;
  transition: background 0.2s ease;
}

.service-card__header:hover {
  background: var(--surface-raised);
}

.service-card__header h3 {
  flex: 1;
  font-size: clamp(16px, 1.5vw, 20px);
}

.service-card__icon {
  font-size: 1.4rem;
  color: var(--steel);
  transition: color 0.3s ease;
}

.service-card:hover .service-card__icon {
  color: var(--accent);
}

.service-card__toggle {
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.service-card__body {
  overflow: hidden;
}

.service-card__body-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.service-card__body-inner p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.85rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__list li i {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Blueprint mode overrides */
:root[data-viz="blueprint"] .service-card {
  border-style: dashed;
}

/* ----- Scroll reveal animations ----- */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }

.reveal-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Marquees ----- */
.marquee-structural {
  overflow: hidden;
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
  padding: 20px 0;
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.marquee-structural__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-structural__track span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee-structural__track span::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* ----- Error / edge case protection ----- */
.no-js .disc-block {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
.no-js [data-reveal-stagger] > * {
  opacity: 1;
  transform: none;
}


/* ── Hide mobile-only elements on desktop (defensive — HTML may contain
   .mobile-bar from previous builds. Once deployed, these elements are
   not even present in the HTML, but the rule prevents visual regressions
   if a future build reintroduces them without the matching desktop styles.) ── */
.mobile-bar,
.mobile-menu { display: none; }

/* ================================================================
   Mobile — standalone mobile-first layout, not a scaled desktop.
   Same brutalist style, reimagined for thumb-driven navigation.
   ================================================================ */

/* ── Hide mobile-only nav on desktop ── */
.bottom-tabs,
.floor-pill,
.bottom-sheet,
.sheet-overlay,
.hero__discipline-blocks,
.hero__scroll-hint { display: none; }

@media (max-width: 768px) {
  body {
    padding-left: 0;
    padding-top: 48px;
  }

  /* ── Hide desktop chrome ── */
  .structural-nav,
  .floor-indicator,
  .viz-toggle { display: none; }

  /* ── Mobile top bar ── */
  .mobile-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 48px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .mobile-bar__btn {
    width: 36px; height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 5;
  }

  .mobile-bar__btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-radius: 0;
    transform-origin: center;
  }

  .mobile-bar__btn--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-bar__btn--open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-bar__btn--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-bar__brand {
    font-family: 'LOT Free', var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-bar__brand .dot { color: var(--accent); }

  .mobile-bar__viz {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
  }

  /* ── Mobile full-screen menu overlay ── */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

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

  .mobile-menu__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 60px var(--gutter) 24px;
  }

  .mobile-menu__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu__close {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: var(--border-w) solid var(--border);
    color: var(--fg);
    font-size: 1rem;
    cursor: pointer;
  }

  .mobile-menu__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--muted);
    transition: all 0.2s;
  }

  .mobile-menu__item:hover { text-decoration: none; }

  .mobile-menu__item--active {
    border-color: var(--border);
    background: var(--surface);
    color: var(--fg);
  }

  .mobile-menu__num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--steel-light);
    width: 36px;
    text-align: right;
  }

  .mobile-menu__item--active .mobile-menu__num {
    color: var(--accent);
  }

  .mobile-menu__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .mobile-menu__label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .mobile-menu__sub {
    font-size: 0.6rem;
    color: var(--steel-light);
  }

  .mobile-menu__arrow {
    color: var(--border);
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
  }

  .mobile-menu__item--active .mobile-menu__arrow {
    color: var(--fg);
  }

  .mobile-menu__foot {
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border);
  }

  .mobile-menu__viz-toggle {
    display: flex;
    gap: 0;
    border: var(--border-w) solid var(--border);
    width: fit-content;
  }

  .mobile-menu__viz-toggle .viz-toggle__btn {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-menu__viz-toggle .viz-toggle__btn--active {
    background: var(--fg);
    color: var(--surface);
  }

  /* ── Hide hero decorations ── */
  .hero__disciplines, .scroll-indicator, .hero__eyebrow { display: none; }

  .hero {
    min-height: calc(100vh - 48px);
  }

  .hero__split {
    flex-direction: column;
    min-height: calc(100vh - 48px);
    justify-content: center;
  }

  .hero__copy {
    flex: none;
    padding: 24px var(--gutter);
  }

  .hero__title {
    font-size: clamp(56px, 16vw, 88px);
    margin-bottom: 0;
  }

  .hero__tagline {
    margin-top: 12px;
    font-size: 15px;
    max-width: 100%;
  }

  .hero__actions {
    margin-top: 28px;
    flex-direction: column;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 0.7rem;
  }

  /* ── Section tuning ── */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { max-width: 100%; font-size: clamp(24px, 6vw, 32px); }

  /* ── Marquee ── */
  .marquee-structural { padding: 10px 0; }
  .marquee-structural__track { animation-duration: 20s; gap: 32px; }
  .marquee-structural__track span { gap: 32px; font-size: 0.65rem; }
  .marquee-structural__track span::after { width: 4px; height: 4px; }

  /* ── Services ── */
  .structural-beam { display: none; }
  .service-card__header { padding: 14px; }
  .service-card__header h3 { font-size: 15px; }
  .service-card__icon { font-size: 1.1rem; }
  .service-card__body-inner { padding: 0 14px 14px; }
  .service-card__body-inner p { font-size: 0.82rem; }

  /* ── Work ── */
  .work-filters { margin-bottom: 16px; }

  .work-item__thumb { height: 140px; }

  .work-item__iframe { display: none; }

  .work-item__body { padding: 12px 14px; }

  .work-item__desc { display: none; }

  .work-item__title { font-size: 0.95rem; margin-bottom: 0; }

  .work-item__tag { font-size: 0.55rem; margin-bottom: 4px; }

  /* ── Process ── */
  .process-timeline {
    padding-left: 36px;
    max-width: 100%;
  }

  .process-step { padding-bottom: 24px; }

  .process-step__marker {
    left: -36px;
    width: 22px; height: 22px;
    font-size: 0.5rem;
  }

  .process-step__title { font-size: 0.95rem; }

  .process-step__desc { display: none; }

  /* ── CTA ── */
  .cta-frame {
    padding: 28px 16px;
  }

  .cta-frame h2 { font-size: clamp(22px, 5vw, 28px); }
  .cta-frame h2 br { display: none; }
  .cta-frame p { font-size: 0.82rem; margin-bottom: 20px; }

  .cta-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.7rem;
  }

  /* ── Contact ── */
  .contact-structural {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-structural {
    padding: 16px;
    margin-top: 0;
  }

  .form-structural__header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .form-structural input,
  .form-structural textarea,
  .form-structural select {
    padding: 12px 14px;
    font-size: 16px;
  }

  .form-structural .form-group { margin-bottom: 12px; }

  .form-buttons { flex-direction: column; gap: 8px; }
  .form-buttons .btn--ghost { flex: 1; }

  .form-checkboxes { gap: 6px; }
  .form-checkbox { padding: 8px 12px; font-size: 0.72rem; }

  /* ── Footer ── */
  .footer-content { padding: 24px 0; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-tagline { display: none; }
  .footer-brand { font-size: 1.1rem; }
  .footer-heading { margin-bottom: 10px; font-size: 0.55rem; }
  .footer-links a { font-size: 0.78rem; }

  .footer-bottom { margin-top: 16px; padding-top: 14px; }
  .footer-bottom__text { font-size: 0.6rem; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  .section { padding: 32px 0; }
  .section-header { margin-bottom: 16px; }

  .hero__copy { padding: 16px var(--gutter); }
  .hero__title { font-size: clamp(42px, 14vw, 60px); }
  .hero__tagline { font-size: 14px; }

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

  .work-grid { gap: 10px; }
  .work-item__thumb { height: 110px; }

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

  .work-filters { width: 100%; }
  .work-filter {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.5rem;
  }

  .frame-corners { padding: 20px 14px; }
  .frame-corners::before { inset: -4px; }
}

/* ── Touch polish ── */
@media (hover: none) and (pointer: coarse) {
  .btn, .work-filter, .viz-toggle__btn { cursor: default; }
  .work-item__iframe { pointer-events: none; }
  .form-checkbox { padding: 10px 14px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .disc-block { animation: none !important; opacity: 1 !important; transform: translateY(0) !important; }
  .marquee-structural__track { animation: none; }
  .scroll-indicator__line { animation: none; }
  .structural-nav__indicator { transition: none !important; }
  .stat-block__meter-fill { transition: none !important; }
  .reveal-stagger > * { transition: none !important; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; }
}