/* ============================================================
   OTTOMAN PROJEKTS — Website UI Kit styles
   Structural + component CSS. Tokens come from
   ../../colors_and_type.css (imported in index.html).
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--orange); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; padding: clamp(72px, 11vh, 150px) 0; border-top: 1px solid var(--line); }

/* ---- Headings ---- */
h1,h2,h3,h4,h5 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(46px, 7.5vw, 116px); font-weight: 400; }
h2 { font-size: clamp(34px, 5vw, 78px); }
h3 { font-size: clamp(23px, 2.3vw, 34px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); }
em { font-family: 'Roboto', var(--serif); font-style: italic; color: var(--orange); font-weight: 500; }
p { margin: 0; }

/* ---- Labels ---- */
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--orange); display: inline-block; }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---- Section head ---- */
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-label-row { display: grid; gap: 18px; }
.sec-deck { font-size: clamp(15px,1.3vw,18px); line-height: 1.6; color: var(--muted-2); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 860px){ .sec-head { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; background: transparent; color: var(--text); transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); transform: translateY(-2px); box-shadow: var(--glow-orange); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

/* ---- NAV ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px var(--pad); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(6,6,6,.72) 0%, rgba(6,6,6,0) 100%); transition: background .35s, backdrop-filter .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(6,6,6,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); position: relative; padding: 8px 0; opacity: .78; transition: opacity .2s; cursor: pointer; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: var(--orange); transition: width .35s; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff; padding: 12px 20px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border-radius: var(--r-pill); cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; }
.nav-cta:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: var(--glow-soft); }
.nav-cta .arrow { width: 14px; height: 1px; background: #fff; position: relative; transition: width .25s; }
.nav-cta .arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid #fff; border-top: 1px solid #fff; transform: rotate(45deg); }
.nav-cta:hover .arrow { width: 22px; }
@media (max-width: 860px){ .nav-links { display: none; } }

/* ---- BURGER + MOBILE MENU ---- */
.nav-burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  padding: 0;
  z-index: 102;
  transition: background .25s, border-color .25s;
}
.nav-burger:hover { border-color: var(--text); }
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: center;
  transition: transform .4s cubic-bezier(.5,.1,.2,1), opacity .25s, background .25s, width .3s;
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-burger span:nth-child(2) { transform: translate(-50%, -50%); width: 12px; }
.nav-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-burger:hover span:nth-child(2) { width: 18px; }
.nav-burger.is-open { border-color: var(--text); }
.nav-burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); width: 20px; }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); width: 20px; }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 101;
  background: rgba(6, 6, 6, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 75vw;
  max-width: 420px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 96px 28px 36px;
  background: rgba(10, 10, 10, .98);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-left: 1px solid var(--line-2);
  box-shadow: -40px 0 80px -20px rgba(0, 0, 0, .8);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.7,.05,.2,1);
}
.mobile-menu.is-open .mobile-menu-inner { transform: none; }

.mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-menu-list li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(60ms * var(--i));
}
.mobile-menu.is-open .mobile-menu-list li { opacity: 1; transform: none; }
.mobile-menu-list a {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 32px; line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: color .25s, padding-left .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu-list a:hover, .mobile-menu-list a.is-active { color: var(--orange); padding-left: 12px; }
.mm-ix {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .2em;
  color: var(--muted);
  align-self: flex-start;
  padding-top: 8px;
}
.mm-label { flex: 1; }
.mm-arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s, color .25s;
}
.mobile-menu-list a:hover .mm-arrow, .mobile-menu-list a.is-active .mm-arrow {
  opacity: 1; transform: none; color: var(--orange);
}

.mobile-menu-foot {
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(60ms * var(--i));
}
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; }
.mm-cta { align-self: flex-start; }
.mm-contact { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted-2); }
.mm-contact a { color: var(--text); }
.mm-contact a:hover { color: var(--orange); }

@media (max-width: 860px){
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav.is-menu-open { background: transparent; border-bottom-color: transparent; z-index: 102; }
}
@media (prefers-reduced-motion: reduce){
  .mobile-menu { transition: opacity .2s; }
  .mobile-menu-inner { transition: none; transform: none; }
  .mobile-menu:not(.is-open) .mobile-menu-inner { transform: translateX(100%); }
  .mobile-menu-list li, .mobile-menu-foot { transition: opacity .2s; transform: none; }
}

/* ---- HERO ---- */
.hero { min-height: 100vh; padding-top: 120px; padding-bottom: 64px; border-top: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(240,235,224,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(240,235,224,.03) 1px, transparent 1px); background-size: 80px 80px; background-position: center; -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 70%); mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { font-family: var(--serif); font-weight: 400; margin-top: 28px; }
.hero-copy h1 .frag { display: block; }
.hero-copy h1 .frag-2 { margin-left: .18em; }
.hero-tagline { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-top: 30px; }
.hero-tagline span + span::before { content: '·'; margin: 0 12px; color: var(--orange); }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
@media (max-width: 980px){ .hero-inner { grid-template-columns: 1fr; } .hero-video-stage { display: none; } .hero { min-height: auto; padding-bottom: 32px; } }

/* ---- Hero scroll-scrub video (cinematic) ---- */
.hero-video-stage { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 520px; margin-left: auto; display: flex; align-items: center; justify-content: center; }
.colosseum-glow { position: absolute; inset: 4%; background: radial-gradient(circle at 50% 55%, rgba(232,96,26,.28) 0%, rgba(232,96,26,.08) 38%, transparent 66%); filter: blur(8px); pointer-events: none; }

.hero-video-frame {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border: 1px solid var(--line-2);
  background: #000; isolation: isolate;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(232,96,26,.10);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: contrast(1.08) saturate(1.05) brightness(.94);
}
/* Cinematic vignette + slight warm grade */
.hero-video-vignette {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(6,6,6,.55) 78%, rgba(6,6,6,.9) 100%),
    linear-gradient(180deg, rgba(6,6,6,.25) 0%, transparent 22%, transparent 70%, rgba(6,6,6,.55) 100%);
}
/* Fine film grain (animated, very subtle) */
.hero-video-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift .5s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); } 33% { transform: translate(-6px,4px); }
  66% { transform: translate(5px,-5px); } 100% { transform: translate(0,0); }
}
/* Thin orange scrub-progress line — hints the scroll-driven playback */
.hero-video-scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(240,235,224,.08); }
.hero-video-scrub span { display: block; height: 100%; background: var(--orange); transform-origin: left center; transform: scaleX(0); box-shadow: 0 0 12px rgba(232,96,26,.7); }
.colosseum-caption { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hero-video-grain { animation: none; } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 30px; color: var(--muted); padding: 0 36px; position: relative; }
.marquee-track span::after { content: '·'; position: absolute; right: -4px; color: var(--orange); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 720px){
  .marquee { padding: 14px 0; }
  .marquee-track span { font-size: 22px; padding: 0 24px; }
  .hero { padding-bottom: 32px; min-height: auto; }
  section { padding: 48px 0; }
}

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-image { position: relative; }
.about-image .tag, .why-image .quote { position: absolute; z-index: 2; }
.about-image .tag { top: 16px; left: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.about-copy .lede { font-family: var(--serif); font-size: clamp(22px,2vw,30px); line-height: 1.25; color: var(--text); margin-bottom: 24px; }
.about-copy p { color: var(--muted-2); margin-bottom: 22px; }
.counters { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 28px; }
.counter .num { font-family: var(--serif); font-size: 48px; color: var(--orange); line-height: 1; display: flex; align-items: baseline; }
.counter .num .plus { font-size: 24px; }
.counter .label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px){ .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { position: relative; background: var(--bg); padding: 32px 28px 28px; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .35s; cursor: default; }
.services-grid .service:hover { background: var(--card); transform: scale(1.09); z-index: 3; box-shadow: var(--glow-orange); }
.service .num { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--orange); line-height: 1; }
.service h3 { margin: 18px 0 12px; }
.service p { font-size: 14px; color: var(--muted-2); margin-bottom: 20px; }
.service .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.service-image { margin: 12px 0 4px; }
@media (max-width: 860px){ .services-grid { grid-template-columns: 1fr; } }

/* ---- PROJECTS ---- */
.projects-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.filter-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted-2); background: transparent; cursor: pointer; transition: all .25s; }
.filter-chip:hover { color: var(--text); border-color: var(--text); }
.filter-chip.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.project { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.project .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: linear-gradient(180deg, transparent 30%, rgba(6,6,6,.82) 100%); opacity: 0; transition: opacity .35s; }
.project:hover .overlay { opacity: 1; }
.project .cat { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.project .title { font-family: var(--serif); font-size: 19px; color: var(--text); line-height: 1.2; }
.project.p-wide { grid-column: span 2; }
.project.p-tall { grid-row: span 2; }
.project.p-2-1 { grid-column: span 2; }
@media (max-width: 860px){ .projects-grid { grid-template-columns: 1fr 1fr; } .project.p-wide, .project.p-2-1 { grid-column: span 2; } }

/* ---- PORTFOLIO (circular) ---- */
.pf-filters { margin-bottom: 10px; }
.pf-arena { position: relative; margin-top: 26px; display: flex; flex-direction: column; align-items: center; }

.pf-stage { position: relative; width: 100%; max-width: 1180px; aspect-ratio: 1 / 1; margin: 0 auto; touch-action: none; --cw: 150px; cursor: grab; }
.pf-stage.is-grabbing { cursor: grabbing; }

.pf-orbit-ring { position: absolute; left: 50%; top: 50%; width: 75.6%; height: 75.6%; transform: translate(-50%,-50%); border: 1px dashed var(--line); border-radius: 50%; pointer-events: none; }

.pf-center { position: absolute; left: 50%; top: 50%; width: 25.4%; height: 25.4%; transform: translate(-50%,-50%); display: grid; place-items: center; z-index: 6; pointer-events: none; }
.pf-center-static { position: relative; left: auto; top: auto; transform: none; width: 230px; height: 230px; }
.pf-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pf-ring-ivory { stroke: #F1EEE8; }
.pf-ring-orange { stroke: var(--orange); }

.pf-head { position: absolute; inset: 0; display: grid; place-items: center; }
.pf-head-glow { position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; transform: translate(-50%,-50%); background: radial-gradient(circle at 50% 42%, rgba(232,96,26,.12), rgba(6,6,6,0) 60%); }
.pf-head-img { position: absolute; left: 50%; top: 53%; width: 80%; transform: translate(-50%,-50%); will-change: transform; filter: drop-shadow(0 26px 44px rgba(0,0,0,.65)); }
.pf-head-gl { position: absolute; inset: 0; }
@media (max-width: 720px){ .pf-center, .pf-center-static { display: none !important; } }

.pf-card { position: absolute; left: 0; top: 0; width: var(--cw); height: calc(var(--cw) / var(--ratio)); cursor: pointer; will-change: transform, opacity; }
.pf-card-media { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.pf-card:hover .pf-card-media, .pf-card:focus-visible .pf-card-media { transform: scale(1.045); box-shadow: 0 20px 44px rgba(0,0,0,.55); border-color: rgba(240,235,224,.28); }
.pf-card:focus-visible { outline: none; }
.pf-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.6) saturate(.92) contrast(1.03); transition: filter .45s; }
.pf-card:hover .pf-card-media img, .pf-card:focus-visible .pf-card-media img { filter: brightness(.95) saturate(1); }
.pf-card-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,6,.08) 0%, rgba(6,6,6,.6) 100%); transition: opacity .45s; }
.pf-card:hover .pf-card-veil { opacity: .5; }
.pf-card-ix { position: absolute; top: 9px; left: 10px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--orange); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pf-card-foot { position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; gap: 3px; }
.pf-card-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.pf-card-title { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted-2); }
.pf-hint { margin-top: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* mobile carousel */
.pf-mobile { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
.pf-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pf-track::-webkit-scrollbar { display: none; }
.pf-card.is-carousel { position: relative; flex: 0 0 auto; width: 230px; height: calc(230px / var(--ratio)); scroll-snap-align: center; opacity: 1; transform: none; }

/* detail modal */
.pf-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(6,6,6,.82); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); display: grid; place-items: center; padding: 24px; animation: pfFade .25s ease; }
.pf-modal-card { position: relative; width: min(980px, 94vw); max-height: 90vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; grid-template-columns: 1.05fr 1fr; animation: pfRise .32s cubic-bezier(.2,.7,.2,1); }
.pf-modal-media { background: var(--card); min-height: 320px; }
.pf-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-modal-body { padding: 44px 44px 38px; display: flex; flex-direction: column; gap: 14px; }
.pf-modal-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.pf-modal-body h3 { font-size: clamp(24px, 2.4vw, 33px); }
.pf-modal-loc { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pf-modal-body p { font-size: 15px; line-height: 1.65; color: var(--muted-2); max-width: 46ch; }
.pf-modal-foot { margin-top: 10px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pf-modal-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pf-modal-x { position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6,6,6,.55); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.pf-modal-x:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
@keyframes pfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pfRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px){ .pf-modal-card { grid-template-columns: 1fr; } .pf-modal-media { min-height: 220px; height: 240px; } .pf-modal-body { padding: 30px 26px; } }

@media (prefers-reduced-motion: reduce){ .pf-modal, .pf-modal-card { animation: none; } }

/* ---- LEGAL MODAL (Impressum / Datenschutz) ---- */
.legal-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(6,6,6,.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; animation: pfFade .25s ease; }
.legal-card { position: relative; width: min(720px, 96vw); max-height: 88vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); animation: pfRise .35s cubic-bezier(.2,.7,.2,1); }
.legal-card-wide { width: min(820px, 96vw); }
.legal-prose { display: flex; flex-direction: column; gap: 24px; margin-top: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-prose section { display: flex; flex-direction: column; gap: 8px; }
.legal-prose h4 { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.legal-prose p { font-size: 14.5px; line-height: 1.7; color: var(--text); max-width: 68ch; }
.legal-prose a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.legal-prose a:hover { color: var(--orange); border-color: var(--orange); }
.legal-card::before { content: ''; position: absolute; top: 0; left: 0; width: 64px; height: 3px; background: var(--orange); }
.legal-body { padding: 56px 56px 44px; display: flex; flex-direction: column; gap: 18px; }
.legal-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.legal-body h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }
.legal-lede { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-block h4 { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-block p { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.legal-block a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.legal-block a:hover { color: var(--orange); border-color: var(--orange); }
.legal-foot { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.legal-x { position: absolute; top: 16px; right: 16px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6,6,6,.55); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.legal-x:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-bottom a { cursor: pointer; transition: color .2s; }
.footer-bottom a:hover { color: var(--orange); }
@media (max-width: 640px){
  .legal-body { padding: 40px 26px 30px; }
  .legal-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce){ .legal-modal, .legal-card { animation: none; } }

/* ---- PROCESS ---- */
.process-timeline { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.process-step { background: var(--bg); padding: 30px 24px; }
.process-step .marker { font-family: var(--serif); font-size: 34px; color: var(--orange); line-height: 1; margin-bottom: 18px; }
.process-step h4 { margin-bottom: 10px; }
.process-step p { font-size: 13px; color: var(--muted-2); }
@media (max-width: 860px){ .process-timeline { grid-template-columns: 1fr; } }

/* ---- WHY ---- */
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.why-image { position: relative; }
.why-image .quote { bottom: 20px; left: 20px; right: 20px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--text); }
.usp-list { display: grid; }
.usp { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); transition: padding-left .3s; cursor: default; }
.usp:hover { padding-left: 10px; }
.usp:last-child { border-bottom: 1px solid var(--line); }
.usp .roman-big { font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--orange); line-height: 1; }
.usp h4 { margin-bottom: 6px; }
.usp p { font-size: 13px; color: var(--muted-2); }
.usp .icon-arrow { color: var(--muted); transition: color .3s, transform .3s; }
.usp:hover .icon-arrow { color: var(--orange); transform: translateX(4px); }
@media (max-width: 860px){ .why-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; }
.contact-info h2 { margin: 16px 0 22px; }
.contact-info .response { color: var(--muted-2); margin-bottom: 36px; max-width: 44ch; }
.contact-meta { display: grid; gap: 0; }
.contact-meta .row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-meta .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-meta .v { font-size: 14px; color: var(--text); }
.form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field select, .field textarea { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 14px 16px; color: var(--text); font-family: var(--sans); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; }
.field .err { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--orange); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #8a3a1a; }
.field.invalid .err { display: block; }
.field.prefilled select { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); animation: pfFlash 1.6s ease; }
@keyframes pfFlash { 0%,100% { box-shadow: 0 0 0 3px var(--orange-soft); } 30% { box-shadow: 0 0 0 5px rgba(232,96,26,.32); } }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.privacy { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted); max-width: 40ch; }
.field .req { color: var(--orange); margin-left: 4px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.form-error-banner { margin-top: 4px; padding: 12px 14px; border: 1px solid #8a3a1a; background: rgba(138,58,26,.12); color: #f0d8cc; font-size: 13px; }
.form-error-banner a { color: var(--orange); border-bottom: 1px solid var(--orange); }
.form-success { text-align: center; padding: 40px; background: var(--card); border: 1px solid var(--line); }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success h4 { margin-bottom: 8px; }
.form-success p { color: var(--muted-2); font-size: 14px; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; gap: 32px; } .row-2 { grid-template-columns: 1fr; } }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 38px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted-2); font-size: 14px; max-width: 36ch; }
.footer h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a, .footer ul li { font-size: 14px; color: var(--muted-2); transition: color .2s; }
.footer ul a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--orange); }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- IMAGE PLACEHOLDER ---- */
.img-ph { position: relative; width: 100%; height: 100%; min-height: 100px; background: repeating-linear-gradient(135deg, #121212 0 12px, #0e0e0e 12px 24px); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-ph::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(232,96,26,.06), transparent 60%); }
.img-ph span { position: relative; z-index: 1; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0 16px; line-height: 1.6; }
.img-ph.has-img { background: #0e0e0e; }
.img-ph.has-img::after { display: none; }
.img-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.about-image .img-ph.has-img { background: transparent; border: none; aspect-ratio: auto; min-height: 0; }
.about-image .img-ph.has-img img { position: static; width: 100%; height: auto; object-fit: contain; }
.about-image .img-ph { aspect-ratio: 4/5; }
.service-image .img-ph { aspect-ratio: 16/10; }
.service-image .img-ph.has-img { background: transparent; border: none; }
.service-image .img-ph.has-img::after { display: none; }
.service-image .img-ph.has-img img { object-fit: contain; }
.why-image .img-ph { aspect-ratio: 4/5; }
.why-image .img-ph.has-img { background: transparent; border: none; }
.why-image .img-ph.has-img::after { display: none; }
.why-image .img-ph.has-img img { object-fit: contain; }

/* ---- Cookie ---- */
.cookie { position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 720px; margin: 0 auto; z-index: 200; background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cookie span { font-size: 12px; color: var(--muted-2); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.cookie-actions .accept { background: var(--orange); border-color: var(--orange); color: #fff; }
@media (max-width: 560px){
  .cookie { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px; bottom: 12px; left: 12px; right: 12px; }
  .cookie-actions { width: 100%; gap: 8px; }
  .cookie-actions button { flex: 1; padding: 12px 8px; text-align: center; justify-content: center; }
}

/* ---- reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   BLUEPRINT → BUILD — pinned, layered, GPU-light intro hero
   A single --p (0→1) progress var, set by a rAF/lerp loop in JS,
   drives every layer through transform/opacity only. No video
   seeking, no filters or layout properties animated on scroll.
   ============================================================ */
.bp-hero { position: relative; height: 360vh; background: #07090C; }
.bp-stage {
  --p: 0; /* @kind other */
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; background: #07090C;
  contain: layout paint style;
}

/* ---- Layered build frames (opacity crossfade + gentle scale) ---- */
.bp-frames {
  position: absolute; inset: 0; z-index: 0;
  transform: scale(calc(1 + 0.07 * var(--p)));
  transform-origin: 58% 56%;
  will-change: transform;
}
.bp-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  user-select: none; will-change: opacity; backface-visibility: hidden;
}
.bp-frame-1 { opacity: 1; }
.bp-frame-2 { opacity: clamp(0, calc(var(--p) / 0.25), 1); }
.bp-frame-3 { opacity: clamp(0, calc((var(--p) - 0.25) / 0.25), 1); }
.bp-frame-4 { opacity: clamp(0, calc((var(--p) - 0.50) / 0.25), 1); }
.bp-frame-5 { opacity: clamp(0, calc((var(--p) - 0.75) / 0.25), 1); }
.bp-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  user-select: none; backface-visibility: hidden;
}

/* ---- Animated SVG blueprint lines (stroke-dashoffset) ---- */
.bp-lines {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none;
  opacity: clamp(0, calc(1 - (var(--p) - 0.40) / 0.30), 1);
}
.bp-lines path, .bp-lines line, .bp-lines rect {
  fill: none; stroke: rgba(150,185,222,.55); stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: clamp(0, calc(1 - var(--p) / 0.42), 1);
}
.bp-lines .accent { stroke: rgba(232,140,70,.7); }

/* ---- Blueprint grid (parallax via transform; fades with build) ---- */
.bp-grid {
  position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  transform: translate3d(0, calc(var(--p) * -42px), 0);
  opacity: clamp(0, calc(1 - var(--p) * 1.7), 1);
  will-change: transform, opacity;
  background-image:
    linear-gradient(rgba(120,160,205,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,205,.15) 1px, transparent 1px),
    linear-gradient(rgba(120,160,205,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,205,.06) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
}

/* ---- Static legibility layers (not animated on scroll) ---- */
.bp-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,9,12,.80) 0%, rgba(7,9,12,.32) 22%, rgba(7,9,12,.34) 58%, rgba(7,9,12,.86) 100%),
              linear-gradient(90deg, rgba(7,9,12,.78) 0%, rgba(7,9,12,.26) 46%, transparent 80%); }
.bp-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(130% 120% at 56% 46%, transparent 52%, rgba(7,9,12,.55) 86%, rgba(7,9,12,.92) 100%); }

/* ---- Phase labels (discrete active state, soft cross-fade) ---- */
.bp-phases { position: absolute; z-index: 3; left: clamp(20px,4vw,64px); bottom: clamp(96px,16vh,150px); display: grid; pointer-events: none; }
.bp-phase { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--text); opacity: 0; transition: opacity .45s ease; white-space: nowrap; }
.bp-phase .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px rgba(232,96,26,.7); display: inline-block; }
.bp-stage[data-phase="0"] .bp-phase[data-i="0"],
.bp-stage[data-phase="1"] .bp-phase[data-i="1"],
.bp-stage[data-phase="2"] .bp-phase[data-i="2"],
.bp-stage[data-phase="3"] .bp-phase[data-i="3"] { opacity: 1; }

/* ---- Content ---- */
.bp-content { position: absolute; z-index: 4; left: clamp(20px,6vw,120px); top: 50%; transform: translateY(-50%); max-width: min(820px, 60vw); display: flex; flex-direction: column; align-items: flex-start; }
.bp-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); margin: 0 0 26px; }
.bp-eyebrow .ln { width: 30px; height: 1px; background: var(--orange); display: inline-block; }
.bp-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 96px); line-height: 1.03; letter-spacing: -.015em; margin: 0; color: #F2F0EA; }
.bp-title .ln1, .bp-title .ln2 { display: block; }
.bp-title em { font-family: 'Roboto', var(--serif); font-style: italic; font-weight: 500; color: var(--orange); }
.bp-sub { margin: 30px 0 0; max-width: 44ch; font-size: clamp(16px,1.5vw,20px); line-height: 1.6; color: #D6D2C8; }
.bp-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.bp-actions .btn { cursor: pointer; }

/* ---- Catch frames — punchy claims that scrub through the hero before the title takes over.
   Three windows along --p, each fading in/out with a soft Y-drift. Pointer-events off so
   they never block the underlying actions when they happen to overlap the safe zone. */
.bp-catches { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: grid; place-items: center; padding: 0 6vw; }
.bp-catch { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 22px; opacity: 0; will-change: opacity, transform; max-width: 1100px; }
.bp-catch-num { font-family: var(--mono); font-size: 12px; font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 12px; }
.bp-catch-num::before { content: ""; width: 28px; height: 1px; background: var(--orange); display: inline-block; }
.bp-catch-line { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8.6vw, 132px); line-height: .98; letter-spacing: -.02em; color: #F2F0EA; text-align: center; text-wrap: balance; }
.bp-catch-line i { font-family: 'Roboto', var(--serif); font-style: italic; font-weight: 500; color: var(--orange); }

.bp-stage {
  --c0-in:  clamp(0, calc((var(--p) - 0.06) * 18), 1);
  --c0-out: clamp(0, calc((var(--p) - 0.20) * 18), 1);
  --c1-in:  clamp(0, calc((var(--p) - 0.28) * 18), 1);
  --c1-out: clamp(0, calc((var(--p) - 0.42) * 18), 1);
  --c2-in:  clamp(0, calc((var(--p) - 0.48) * 18), 1);
  --c2-out: clamp(0, calc((var(--p) - 0.62) * 18), 1);
}
.bp-catch[data-i="0"] { opacity: calc(var(--c0-in) - var(--c0-out)); transform: translateY(calc((1 - var(--c0-in)) * 28px - var(--c0-out) * 22px)); }
.bp-catch[data-i="1"] { opacity: calc(var(--c1-in) - var(--c1-out)); transform: translateY(calc((1 - var(--c1-in)) * 28px - var(--c1-out) * 22px)); }
.bp-catch[data-i="2"] { opacity: calc(var(--c2-in) - var(--c2-out)); transform: translateY(calc((1 - var(--c2-in)) * 28px - var(--c2-out) * 22px)); }

/* ---- Content reveal driven by --p (scroll progress 0→1).
   Each line cracks in at a slightly later threshold for a soft stagger. */
.bp-content {
  --r0: clamp(0, calc((var(--p) - 0.72) * 8), 1);
  --r1: clamp(0, calc((var(--p) - 0.76) * 8), 1);
  --r2: clamp(0, calc((var(--p) - 0.80) * 8), 1);
  --r3: clamp(0, calc((var(--p) - 0.84) * 8), 1);
}
.bp-eyebrow { opacity: var(--r0); transform: translateY(calc((1 - var(--r0)) * 22px)); will-change: opacity, transform; }
.bp-title   { opacity: var(--r1); transform: translateY(calc((1 - var(--r1)) * 26px)); will-change: opacity, transform; }
.bp-sub     { opacity: var(--r2); transform: translateY(calc((1 - var(--r2)) * 22px)); will-change: opacity, transform; }
.bp-actions { opacity: var(--r3); transform: translateY(calc((1 - var(--r3)) * 22px)); will-change: opacity, transform; }

/* ---- Scroll hint + progress rail (driven by --p) ---- */
.bp-hint { position: absolute; z-index: 5; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-2); opacity: clamp(0, calc(1 - var(--p) * 16), 1); }
.bp-hint-track { width: 1px; height: 44px; background: var(--line-2); position: relative; overflow: hidden; }
.bp-hint-track::after { content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--orange); animation: bpDrop 2s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes bpDrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(300%); } }
.bp-rail { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(240,235,224,.07); }
.bp-rail span { display: block; height: 100%; transform-origin: left center; transform: scaleX(var(--p)); background: var(--orange); box-shadow: 0 0 12px rgba(232,96,26,.7); will-change: transform; }

/* ---- Mobile: scrub still runs, decorative overlay simplified ---- */
.bp-hero.is-mobile { height: 100vh; }
.bp-stage[data-mobile="1"] .bp-lines,
.bp-stage[data-mobile="1"] .bp-grid,
.bp-stage[data-mobile="1"] .bp-phases,
.bp-stage[data-mobile="1"] .bp-hint { display: none; }
.bp-stage[data-mobile="1"] .bp-frames { transform: none; }
@media (max-width: 820px){
  .bp-hero { height: 280vh; }
  .marquee { position: relative; z-index: 2; background: var(--bg); }
  .bp-content { left: clamp(20px,7vw,40px); right: 20px; max-width: none; top: auto; bottom: 14vh; transform: none; }
  /* Catches: smaller type, parked in the upper third so they don't overlap the
     bottom-pinned content; brought above the content layer. */
  .bp-catches { z-index: 5; padding: 0 22px; place-items: start center; padding-top: 18vh; }
  .bp-catch { gap: 14px; }
  .bp-catch-num { font-size: 10px; letter-spacing: .26em; }
  .bp-catch-num::before { width: 18px; }
  .bp-catch-line { font-size: clamp(34px, 9.4vw, 52px); line-height: 1; }
}
@media (prefers-reduced-motion: reduce){
  .bp-hint-track::after { animation: none; }
  .bp-eyebrow, .bp-title, .bp-sub, .bp-actions { opacity: 1 !important; transform: none !important; }
  .bp-catch { opacity: 0 !important; transform: none !important; }
}
