/* ════════════════════════════════════════════════════════════════
   BLENDR .COM  ·  site.css
   Site-specific styles. Theme-aware via the design-system semantic
   tokens (--bl-bg / --bl-fg / --bl-accent / --bl-hairline …) so light
   and dark "just work". Loads after colors_and_type.css.
   ════════════════════════════════════════════════════════════════ */

:root { --site-ease: cubic-bezier(0.25,0.46,0.45,0.94); --nav-h: 96px; }

html { scroll-behavior: smooth; }
body {
  background: var(--bl-bg);
  color: var(--bl-fg);
  font-family: var(--bl-font-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .6s var(--site-ease), color .6s var(--site-ease);
}
.container { max-width: var(--bl-max-w); margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px){ .container { padding: 0 22px; } }

/* surfaces (alternate, theme-aware) */
.surface      { background: var(--bl-bg); }
.surface-alt  { background: var(--bl-bg-alt); }

/* ── shared display type ── */
.eyebrow {
  font-family: var(--bl-font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--bl-accent);
  display: inline-flex; align-items: center; gap: 14px;
}


.mixed { font-family: var(--bl-font-display); line-height: 1.02; letter-spacing: 0; }
.mixed .b { font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bl-fg); }
.mixed .s { font-weight: 300; font-style: italic; text-transform: lowercase; color: var(--bl-accent); margin-left: 0.1em; }

.lead { color: var(--bl-fg-muted); font-weight: 300; font-size: 1.08rem; line-height: 1.8; }
.muted { color: var(--bl-fg-muted); }

/* ── section frame ── */
.section { position: relative; padding: 100px 0; overflow: hidden; }
@media (max-width: 760px){ .section { padding: 70px 0; } }
.section > .container { position: relative; z-index: 2; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-bottom: 18px; }
.section-head p { max-width: 56ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ── wave fx layer ── */
.wavefx { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.wavefx svg { width: 100%; height: 100%; display: block; }
.wavefx.top   { bottom: auto; height: 46%; }
.wavefx.bottom{ top: auto; height: 46%; }

/* a thin full-width wave divider that sits on a section seam */
.wave-divider { position: relative; height: 150px; margin: -75px 0; z-index: 5; pointer-events: none; }
.wave-divider .wavefx { inset: 0; }
@media (max-width: 760px){ .wave-divider { height: 90px; margin: -45px 0; } }

/* ════════ NAV ════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 60;
  display: flex; align-items: center;
  transition: background .4s var(--site-ease), height .4s var(--site-ease), border-color .4s var(--site-ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 74px;
  background: color-mix(in srgb, var(--bl-bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bl-hairline);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { height: 30px; width: auto; transition: opacity .3s; }
.nav-logo.dark-only { display: var(--logo-dark, block); }
.nav-logo.light-only { display: var(--logo-light, none); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--bl-font-display); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bl-fg-muted);
  text-decoration: none; position: relative; transition: color .25s var(--site-ease);
}
.nav-links a::after { content:""; position:absolute; left:0; bottom:-7px; height:1px; width:0; background: var(--bl-accent); transition: width .3s var(--site-ease); }
.nav-links a:hover { color: var(--bl-fg); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; font-family: var(--bl-font-display); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--bl-r-pill); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .3s var(--site-ease), color .3s var(--site-ease), border-color .3s var(--site-ease), transform .25s var(--site-ease);
  will-change: transform;
}
.btn--primary { background: var(--bl-accent); color: var(--bl-bg); border-color: var(--bl-accent); }
.btn--primary:hover { background: transparent; color: var(--bl-fg); border-color: var(--bl-accent); }
.btn--ghost { background: transparent; color: var(--bl-fg); border-color: var(--bl-hairline); }
.btn--ghost:hover { border-color: var(--bl-accent); color: var(--bl-accent); }
.btn--sm { padding: 11px 22px; font-size: 0.68rem; }

.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--bl-hairline); border-radius: var(--bl-r-pill); background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--bl-fg); }
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 940px){
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ════════ MOBILE MENU OVERLAY ════════ */
.menu-overlay {
  position: fixed; inset: 0; z-index: 80; background: var(--bl-bg);
  display: flex; flex-direction: column; padding: 28px 22px 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--site-ease);
  pointer-events: none;
}
.menu-overlay.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu-overlay .wavefx { z-index: 0; opacity: .9; }
.menu-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.menu-close { width: 42px; height: 42px; border: 1px solid var(--bl-hairline); border-radius: var(--bl-r-pill); background: transparent; color: var(--bl-fg); display: grid; place-items: center; cursor: pointer; }
.menu-close svg { width: 20px; height: 20px; }
.menu-links { position: relative; z-index: 2; margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  font-family: var(--bl-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 13vw, 4.6rem); line-height: 1.04; letter-spacing: 0.02em;
  color: var(--bl-fg); text-decoration: none;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--site-ease), color .25s;
}
.menu-links a .idx { font-size: 0.9rem; vertical-align: super; color: var(--bl-accent); font-weight: 700; margin-right: 12px; letter-spacing: 0.1em; }
.menu-links a:hover { color: var(--bl-accent); }
.menu-overlay.open .menu-links a { opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-links a:nth-child(1){ transition-delay:.12s }
.menu-overlay.open .menu-links a:nth-child(2){ transition-delay:.18s }
.menu-overlay.open .menu-links a:nth-child(3){ transition-delay:.24s }
.menu-overlay.open .menu-links a:nth-child(4){ transition-delay:.30s }
.menu-overlay.open .menu-links a:nth-child(5){ transition-delay:.36s }
.menu-foot { position: relative; z-index: 2; display: flex; gap: 22px; flex-wrap: wrap; }
.menu-foot a { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bl-fg-muted); text-decoration: none; }

/* ════════ HERO ════════ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: var(--nav-h) 0 60px; overflow: hidden; }
.hero .wavefx { z-index: 0; }
.hero-inner { position: relative; z-index: 3; max-width: 980px; }
.hero h1 { font-family: var(--bl-font-display); line-height: 0.92; margin: 26px 0 0; }
.hero h1 .l1 { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(3.6rem, 13vw, 11rem); color: var(--bl-fg); }
.hero h1 .l2 { display: block; font-weight: 300; font-style: italic; text-transform: lowercase; font-size: clamp(3rem, 11vw, 9rem); color: var(--bl-accent); margin-top: -0.06em; }
.hero-sub { max-width: 520px; margin-top: 32px; font-size: 1.15rem; line-height: 1.75; color: var(--bl-fg-muted); font-weight: 300; }
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-scroll { position: absolute; left: 40px; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 12px; font-family: var(--bl-font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bl-fg-muted); }
.hero-scroll .bar { width: 1px; height: 40px; background: var(--bl-accent); transform-origin: top; animation: scrollbar 2.4s var(--site-ease) infinite; }
@keyframes scrollbar { 0%,100%{ transform: scaleY(.3);} 50%{ transform: scaleY(1);} }
@media (max-width: 760px){ .hero-scroll { left: 22px; } }

/* ════════ ABOUT ════════ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; gap: 40px; } }
.about-copy p + p { margin-top: 18px; }
.about-figure { position: relative; border-radius: var(--bl-r-md); overflow: hidden; aspect-ratio: 4/5; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.95); transition: transform 1.2s var(--site-ease); }
.about-figure:hover img { transform: scale(1.05); }
.about-figure .wavefx { z-index: 2; mix-blend-mode: soft-light; opacity: .8; }
.about-stats { display: flex; gap: 44px; margin-top: 36px; flex-wrap: wrap; }
.about-stats .stat .num { font-family: var(--bl-font-display); font-weight: 900; font-size: 2.6rem; color: var(--bl-fg); line-height: 1; letter-spacing: 0.02em; }
.about-stats .stat .lab { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bl-accent); margin-top: 8px; }

/* ════════ SERVICES ════════ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px){ .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; overflow: hidden; border: 1px solid var(--bl-hairline);
  border-radius: var(--bl-r-md); padding: 30px 28px 28px; min-height: 280px;
  display: flex; flex-direction: column; background: var(--bl-bg);
  transition: border-color .35s var(--site-ease), transform .35s var(--site-ease), background .35s;
}
.svc .wavefx { height: 130px; top: auto; bottom: 0; opacity: .55; z-index: 0; transition: opacity .4s, transform .6s var(--site-ease); }
.svc:hover { transform: translateY(-4px); border-color: var(--bl-accent); }
.svc:hover .wavefx { opacity: .9; transform: translateY(-6px); }
.svc > * { position: relative; z-index: 1; }
.svc .num { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.2em; color: var(--bl-accent); }
.svc h3 { font-family: var(--bl-font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.5rem; color: var(--bl-fg); margin: 16px 0 12px; }
.svc p { color: var(--bl-fg-muted); font-size: 0.92rem; line-height: 1.65; font-weight: 300; }
.svc .svc-arrow { margin-top: auto; padding-top: 18px; font-family: var(--bl-font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bl-fg-muted); display: inline-flex; align-items: center; gap: 9px; transition: gap .3s, color .3s; }
.svc:hover .svc-arrow { gap: 16px; color: var(--bl-accent); }

/* ════════ PORTFOLIO RAIL ════════ */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 40px 28px; margin: 0 -40px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
@media (max-width: 760px){ .rail { padding: 8px 22px 24px; margin: 0 -22px; } }
.work {
  flex: 0 0 clamp(300px, 42vw, 560px); scroll-snap-align: center;
  border-radius: var(--bl-r-md); overflow: hidden; position: relative;
  background: var(--bl-bg-alt); border: 1px solid var(--bl-hairline);
}
.work-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--site-ease); }
.work:hover .work-img img { transform: scale(1.06); }
.work-img::after { content:""; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(13,36,38,0) 40%, rgba(13,36,38,0.78) 100%); }
.work-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 28px; }
.work-cat { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bl-sky); }
.work-title { font-family: var(--bl-font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.7rem; color: #fff; margin-top: 8px; }
.work-desc { color: rgba(255,255,255,0.74); font-size: 0.9rem; font-weight: 300; margin-top: 8px; max-width: 40ch; opacity: 0; max-height: 0; transition: opacity .4s var(--site-ease), max-height .4s var(--site-ease); }
.work:hover .work-desc { opacity: 1; max-height: 80px; }
.rail-hint { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bl-fg-muted); display: flex; align-items: center; gap: 10px; }

/* ════════ PARTNERS ════════ */
.marquee { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 30px; }
.mq-row { display: flex; gap: 70px; width: max-content; align-items: center; }
.mq-row.a { animation: mq 42s linear infinite; }
.mq-row.b { animation: mq 38s linear infinite reverse; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.mq-row img { height: 38px; width: auto; object-fit: contain; opacity: .5; transition: opacity .3s, filter .3s; }
[data-theme="light"] .mq-logo--invert { filter: none; }
.mq-logo--invert { filter: brightness(0) invert(1); }
.mq-row img:hover { opacity: 1; }
.marquee::before, .marquee::after { content:""; position:absolute; top:0; bottom:0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { left:0; background: linear-gradient(90deg, var(--bl-bg-alt), transparent); }
.marquee::after { right:0; background: linear-gradient(-90deg, var(--bl-bg-alt), transparent); }

/* ════════ PROCESS ════════ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--bl-hairline); }
@media (max-width: 880px){ .steps { grid-template-columns: 1fr; } }
.step { padding: 32px 26px 36px; border-right: 1px solid var(--bl-hairline); position: relative; }
.step:last-child { border-right: none; }
@media (max-width: 880px){ .step { border-right: none; border-bottom: 1px solid var(--bl-hairline); } }
.step .sn { font-family: var(--bl-font-display); font-weight: 900; font-size: 3.2rem; color: transparent; -webkit-text-stroke: 1px var(--bl-accent); letter-spacing: 0.02em; line-height: 1; opacity: .9; }
.step h4 { font-family: var(--bl-font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.15rem; color: var(--bl-fg); margin: 18px 0 12px; }
.step p { color: var(--bl-fg-muted); font-size: 0.88rem; line-height: 1.6; font-weight: 300; }

/* ════════ TESTIMONIALS ════════ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px){ .quotes { grid-template-columns: 1fr; } }
.quote { border: 1px solid var(--bl-hairline); border-radius: var(--bl-r-md); padding: 34px 30px; background: var(--bl-bg); display: flex; flex-direction: column; transition: border-color .35s, transform .35s; }
.quote:hover { border-color: var(--bl-accent); transform: translateY(-4px); }
.quote .mark { font-family: var(--bl-font-display); font-weight: 900; font-size: 3.4rem; line-height: 0.6; color: var(--bl-accent); height: 28px; }
.quote blockquote { font-family: var(--bl-font-display); font-weight: 300; font-size: 1.22rem; line-height: 1.5; color: var(--bl-fg); margin: 18px 0 26px; letter-spacing: 0.005em; }
.quote .who { margin-top: auto; }
.quote .who .nm { font-family: var(--bl-font-display); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--bl-fg); text-transform: uppercase; }
.quote .who .rl { color: var(--bl-fg-muted); font-size: 0.8rem; font-weight: 300; margin-top: 4px; }

/* ════════ CONTACT ════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-lead h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.contact-offices { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.office .ol { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bl-accent); margin-bottom: 8px; }
.office .od { color: var(--bl-fg); font-weight: 300; }
.office .od a { color: var(--bl-fg-muted); text-decoration: none; transition: color .25s; }
.office .od a:hover { color: var(--bl-accent); }
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bl-fg-muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--bl-font-body); font-size: 0.95rem;
  color: var(--bl-fg); background: color-mix(in srgb, var(--bl-fg) 5%, transparent);
  border: 1.5px solid var(--bl-hairline); border-radius: var(--bl-r-md); outline: none;
  transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--bl-fg-muted); opacity: .6; }
.field input:focus, .field textarea:focus { border-color: var(--bl-accent); background: color-mix(in srgb, var(--bl-fg) 8%, transparent); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--bl-fg-muted); font-weight: 300; }

/* ════════ FOOTER ════════ */
.footer { position: relative; padding: 90px 0 40px; border-top: 1px solid var(--bl-hairline); overflow: hidden; }
.footer .wavefx { z-index: 0; opacity: .5; height: 60%; top: auto; bottom: 0; }
.footer > .container { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--bl-hairline); }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 34px; margin-bottom: 20px; }
.footer-brand p { color: var(--bl-fg-muted); font-weight: 300; max-width: 34ch; font-size: 0.92rem; }
.footer-col h5 { font-family: var(--bl-font-display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bl-fg-muted); margin-bottom: 18px; }
.footer-col a, .footer-col .ln { display: block; color: var(--bl-fg); text-decoration: none; font-weight: 300; font-size: 0.92rem; margin-bottom: 10px; transition: color .25s; }
.footer-col a:hover { color: var(--bl-accent); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--bl-hairline); border-radius: 50%; display: grid; place-items: center; color: var(--bl-fg-muted); transition: color .25s, border-color .25s, transform .25s; }
.socials a:hover { color: var(--bl-accent); border-color: var(--bl-accent); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; }
.footer-bottom .cp { font-size: 0.78rem; color: var(--bl-fg-muted); font-weight: 300; }
.footer-bottom .lg { display: flex; gap: 22px; }
.footer-bottom .lg a { font-size: 0.78rem; color: var(--bl-fg-muted); text-decoration: none; font-weight: 300; }
.footer-bottom .lg a:hover { color: var(--bl-accent); }

/* ════════ REVEAL ════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--site-ease), transform .8s var(--site-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
/* masked text reveal */
.mask-rise { display: inline-block; overflow: hidden; vertical-align: bottom; }
.mask-rise > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--site-ease); }
.mask-rise.in > span { transform: none; }

@media (prefers-reduced-motion: reduce){
  .reveal, .mask-rise > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mq-row, .hero-scroll .bar { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════════
   CONTINUOUS FLOW  ·  one wave composition, no boxed sections
   ════════════════════════════════════════════════════════════════ */
html { background: var(--bl-bg); }
body { position: relative; background: transparent; }
/* one tonal journey down the whole page (replaces per-section blocks) */
.page-tone {
  position: absolute; inset: 0; height: 100%; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg,
    var(--bl-bg) 0%, var(--bl-bg-alt) 20%, var(--bl-bg) 40%,
    var(--bl-bg-alt) 60%, var(--bl-bg) 80%, var(--bl-bg-alt) 100%);
  transition: background .6s var(--site-ease);
}
/* dissolve the rectangular section blocks */
.surface, .surface-alt { background: transparent !important; }
.section { overflow: visible; padding: 140px 0; }
@media (max-width: 760px){ .section { padding: 88px 0; } }
.wave-divider { display: none !important; }
.marquee::before, .marquee::after { background: linear-gradient(90deg, var(--bl-bg), transparent); }
.marquee::after { background: linear-gradient(-90deg, var(--bl-bg), transparent); }

/* the page-spanning wave canvas */
.flow { position: absolute; inset: 0; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.flow-wave { position: absolute; left: -14%; width: 128%; will-change: transform; }
.flow-wave .wavefx { position: absolute; inset: 0; }

/* keep content reading clearly above the canvas */
main { position: relative; z-index: 1; }
footer.footer { position: relative; z-index: 1; }

/* cards float over the flow instead of boxing it */
.svc { background: color-mix(in srgb, var(--bl-bg) 60%, transparent); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.quote { background: color-mix(in srgb, var(--bl-bg) 56%, transparent); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.work { background: color-mix(in srgb, var(--bl-bg-alt) 62%, transparent); }
.field input, .field textarea { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.about-figure { box-shadow: 0 40px 90px -50px rgba(0,0,0,.55); }
.steps { border-top: none; }
.step { border-color: var(--bl-hairline); }

/* nav floats — soft, not a hard glassy bar */
.nav.scrolled { background: color-mix(in srgb, var(--bl-bg) 64%, transparent); border-bottom-color: transparent; }

/* ── sun / moon theme toggle ── */
.theme-toggle {
  width: 70px; height: 36px; padding: 0; position: relative; overflow: visible; cursor: pointer;
  border-radius: var(--bl-r-pill); border: 1px solid var(--bl-hairline);
  --tgl-track: #11343a;
  background: var(--tgl-track);
  box-shadow: 0 0 16px -3px rgba(178,212,222,.5), inset 0 0 0 1px rgba(178,212,222,.06);
  transition: background .55s var(--site-ease), box-shadow .55s var(--site-ease), border-color .55s;
}
[data-theme="light"] .theme-toggle {
  --tgl-track: #b9d6dd;
  box-shadow: 0 0 16px -3px rgba(30,74,80,.4), inset 0 0 0 1px rgba(30,74,80,.07);
}
.theme-toggle .tl { display: none; }

.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bl-accent); display: grid; place-items: center;
  box-shadow: 0 0 11px 1px rgba(178,212,222,.6);
  transition: transform .55s var(--bl-ease-spring), background .45s var(--site-ease), box-shadow .45s;
}
[data-theme="light"] .theme-toggle .knob {
  transform: translateX(34px);
  box-shadow: 0 0 11px 1px rgba(30,74,80,.4);
}

/* dark mode → a crescent moon sitting INSIDE the circular knob */
/* the knob holds both a moon (dark) and a sun (light) icon, stacked;
   each fades in for its mode */
.theme-toggle .knob svg { grid-area: 1 / 1; width: 17px; height: 17px; display: block; transition: opacity .4s var(--site-ease); }
.theme-toggle .knob .moon { opacity: 1; }
.theme-toggle .knob .moon path { fill: var(--tgl-track); }
.theme-toggle .knob .sun { width: 18px; height: 18px; opacity: 0; fill: none; stroke: var(--bl-mist); stroke-width: 2; stroke-linecap: round; }
[data-theme="light"] .theme-toggle .knob .moon { opacity: 0; }
[data-theme="light"] .theme-toggle .knob .sun { opacity: 1; }

/* a tiny star beside the moon (dark mode only) */
.theme-toggle::after {
  content: ""; position: absolute; right: 12px; top: 50%; margin-top: -2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--bl-sky); opacity: .75;
  box-shadow: 0 0 6px 1px rgba(178,212,222,.6);
  transition: opacity .4s; pointer-events: none;
}
[data-theme="light"] .theme-toggle::after { opacity: 0; }

/* ── full-page intro wave sweep ── */
.intro-sweep { position: fixed; inset: 0; z-index: 230; pointer-events: none; transform: translateX(0); }
.intro-sweep .wavefx { position: absolute; inset: 0; }
.intro-sweep.run { animation: introSweep 1.25s var(--site-ease) forwards; }
@keyframes introSweep { 0%{ transform: translateX(0);} 100%{ transform: translateX(110%);} }

/* ── curved-mask reveal for portfolio / work imagery ── */
/* hero masked-line reveal */
.hero h1 .mask-rise { display: block; overflow: hidden; }
.hero h1 .mask-rise > span { display: block; transform: translateY(110%); transition: transform .95s var(--site-ease); }
.hero h1 .mask-rise.in > span { transform: none; }
.work-img, .pf-figure { clip-path: inset(0 0 0 0 round 4px); }
.curve-mask { clip-path: ellipse(120% 100% at 50% 0%); opacity: 0; transition: clip-path 1s var(--site-ease), opacity .7s var(--site-ease); }
.curve-mask.in { clip-path: ellipse(160% 160% at 50% 50%); opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .intro-sweep.run { animation: none !important; }
  .curve-mask { clip-path: none !important; opacity: 1 !important; }
}

/* ════════ LOWER-PAGE FLOW — break the grid, ride the wave ════════ */
/* process: no dividing lines, steps crest along a wave path */
.steps { grid-template-columns: repeat(5, 1fr); gap: 20px; border: none !important; align-items: start; padding-bottom: 80px; }
.step { border: none !important; padding: 20px 16px; }
.step .sn { font-size: 3.7rem; }
.step:nth-child(1){ transform: translateY(70px); }
.step:nth-child(2){ transform: translateY(22px); }
.step:nth-child(3){ transform: translateY(0); }
.step:nth-child(4){ transform: translateY(26px); }
.step:nth-child(5){ transform: translateY(72px); }
.proc-path { top: 16% !important; bottom: auto !important; height: 66% !important; }
@media (max-width: 880px){
  .steps { grid-template-columns: 1fr; padding-bottom: 0; gap: 8px; }
  .step { transform: none !important; }
}

/* testimonials: unframed, cards drift on the flow */
.quotes { align-items: start; }
.quote:nth-child(2){ transform: translateY(54px); }
.quote:nth-child(3){ transform: translateY(24px); }
@media (max-width: 880px){ .quote { transform: none !important; } }

/* contact settles into an open wave pocket, not a box */
#contact .container { padding-top: 10px; }
