/* ==========================================================================
   Creative Works Indonesia — site styles (v2, motion-led)
   Layout concept: editorial grid that breaks into soft, layered surfaces.
   Sections overlap with rounded leading edges; navy carries depth, brand
   blue is the active signal; motion is driven from assets/js/main.js.
   ========================================================================== */

:root {
  /* Foundation */
  --white: #ffffff;
  --paper: #f4f7f9;
  --mist: #e7edf1;
  --line: #d5dee6;
  --ink: #10161c;
  --ink-soft: #4a5561;

  /* Brand */
  --blue: #0076a8;
  --blue-deep: #005b83;
  --blue-bright: #2ea0d6;
  --navy: #0a1d30;
  --navy-2: #102c47;
  --navy-3: #16395a;
  --pale: #e2f0f7;
  --pale-2: #cbe3f0;

  /* On dark */
  --on-dark: #f2f7fa;
  --on-dark-soft: #9db3c7;
  --line-dark: rgba(255, 255, 255, 0.13);

  /* Type */
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-hero: clamp(2.6rem, 6vw, 6rem);
  --t-h2: clamp(2.1rem, 5vw, 4.6rem);
  --t-h3: clamp(1.3rem, 1.8vw, 1.65rem);
  --t-lead: clamp(1.06rem, 1.25vw, 1.22rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --sec: clamp(88px, 11vw, 168px);
  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: clamp(24px, 3vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after { /* film grain for depth */
  content: ""; position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--blue); letter-spacing: -0.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--blue); color: var(--white); padding: 10px 16px; z-index: 300; text-decoration: none; border-radius: 100px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); position: relative; }

/* Split-text helpers (added by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
.hero__title .line { display: block; }

/* Kicker (section index) */
.kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.kicker__num { color: var(--blue); display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; }
.kicker--light { color: var(--on-dark-soft); }
.kicker--light .kicker__num { color: var(--blue-bright); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: rgba(255,255,255,.7); border: 1px solid var(--pale-2); padding: 8px 14px; border-radius: 100px; backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); position: relative; display: inline-block; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

/* Section top: kicker + headline + lead */
.sec-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 28px clamp(16px, 3vw, 40px); margin-bottom: clamp(48px, 6vw, 96px); align-items: start; }
.sec-top__text { display: grid; gap: 24px; }
.sec-top__text h2 { font-size: var(--t-h2); }
.sec-top__text p { max-width: 56ch; color: var(--ink-soft); font-size: var(--t-lead); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px; border-radius: 100px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; background: none;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn::before { /* liquid fill from below */
  content: ""; position: absolute; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 0) scale(.2); transition: transform .6s var(--ease); z-index: -1;
}
.btn:hover::before { transform: translate(-50%, -62%) scale(1); }
.btn .arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px) rotate(-45deg); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary::before { background: var(--navy); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--white); border-color: var(--ink); }
.contact .btn--ghost, .cta-band .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.4); }
.contact .btn--ghost::before, .cta-band .btn--ghost::before { background: var(--white); }
.contact .btn--ghost:hover, .cta-band .btn--ghost:hover { color: var(--navy); border-color: var(--white); }
.contact .btn--primary::before, .cta-band .btn--primary::before { background: var(--white); }
.contact .btn--primary:hover, .cta-band .btn--primary:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Placeholder markers */
.ph { border-bottom: 1px dashed var(--blue); background: rgba(0, 118, 168, 0.08); padding: 0 5px; border-radius: 3px; }
.ph-note { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }
.ph-note::before { content: ""; width: 7px; height: 7px; border: 1px dashed currentColor; border-radius: 50%; }
.contact .ph, .site-footer .ph { background: rgba(255,255,255,0.07); border-bottom-color: rgba(255,255,255,.4); }

/* Page transition curtain --------------------------------------------------- */
.curtain { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.curtain__panel {
  position: absolute; inset: -10% 0; background: var(--navy); transform: translateY(110%);
  display: grid; place-items: center; border-radius: 50% 50% 0 0 / 12% 12% 0 0;
}
.curtain__mark { display: inline-flex; align-items: center; gap: 14px; color: var(--on-dark); font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.curtain__mark svg { width: 44px; height: 44px; }
.is-covered .curtain__panel { transform: translateY(0); border-radius: 0; }

/* Cursor ------------------------------------------------------------------ */
.cursor { position: fixed; left: 0; top: 0; z-index: 240; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue);
  transition: transform .45s var(--ease), background-color .3s, opacity .3s;
}
.cursor__label {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--blue); color: var(--white); display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: .875rem; letter-spacing: -0.01em;
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor.is-label .cursor__label { transform: scale(1); }
.cursor.is-label .cursor__dot { transform: scale(0); }
.cursor.is-link .cursor__dot { transform: scale(3.2); background: rgba(0,118,168,.18); }
.cursor.is-hidden { opacity: 0; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled { background: rgba(255,255,255,.78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-90deg); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1; }
.brand__name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); }
.nav__list { display: flex; gap: 2px; padding: 5px; border-radius: 100px; background: rgba(255,255,255,.6); border: 1px solid rgba(213,222,230,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__list li { overflow: hidden; border-radius: 100px; }
.nav__list a { display: block; text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 9px 16px; border-radius: 100px; overflow: hidden; transition: background-color .35s var(--ease), color .35s; }
.nav__list a:hover, .nav__list a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav__list a > span { display: block; position: relative; transition: transform .45s var(--ease); }
.nav__list a > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding-top: 9px; }
.nav__list a:hover > span { transform: translateY(calc(-100% - 9px)); }
.nav__cta { padding: 13px 22px; font-size: 0.9375rem; }
.nav-toggle { display: none; background: var(--ink); border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--white); position: relative; transition: transform .4s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--navy); color: var(--on-dark);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 96px var(--gutter) 40px;
    clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
    transition: clip-path .8s var(--ease-io), visibility .8s;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
  .nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .brand { color: var(--on-dark); position: relative; z-index: 2; }
  .nav-open .brand__name small { color: var(--on-dark-soft); }
  .nav__list { flex-direction: column; gap: 0; background: none; border: 0; padding: 0; backdrop-filter: none; }
  .nav__list li { border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav__list a { padding: 18px 0; font-family: var(--f-display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -0.03em; border-radius: 0; }
  .nav__list a > span::after { display: none; }
  .nav__list a:hover > span { transform: translateX(12px); }
  .nav__list a:hover, .nav__list a[aria-current="page"] { background: none; color: var(--blue-bright); }
  .nav__cta { margin-top: 28px; justify-content: center; }
  .nav__cta::before { background: var(--white) !important; }
  .nav__cta:hover { color: var(--navy); }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--white) 0%, var(--pale) 100%);
  padding-block: clamp(120px, 14vw, 180px) clamp(96px, 10vw, 150px);
}
.dotfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -15vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,160,214,.28), rgba(0,118,168,0) 65%);
  filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-12vw, 14vw) scale(1.15); } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: 30px; justify-items: start; min-width: 0; }
.hero__title { font-size: var(--t-hero); text-transform: uppercase; letter-spacing: -0.045em; line-height: .92; }
.hero__title em { text-transform: none; font-size: 1.04em; letter-spacing: -0.05em; }
.hero__lead { font-size: var(--t-lead); color: var(--ink-soft); max-width: 44ch; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 32px; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue__line { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--blue); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* Stage: 3D mockup cluster */
.stage { perspective: 1400px; min-width: 0; }
.stage__inner { position: relative; transform-style: preserve-3d; padding: 8% 6% 14% 0; will-change: transform; }
.stage__browser, .stage__phone, .chip, .stage__ring { transform-style: preserve-3d; }
.stage__phone { position: absolute; right: -2%; bottom: 2%; width: 25%; }
.stage__phone .phone { width: 100%; }
.stage__ring { position: absolute; width: 70%; aspect-ratio: 1; left: 20%; top: -6%; border-radius: 50%; border: 1px dashed rgba(0,118,168,.35); animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--white); border-radius: 100px; padding: 9px 16px 9px 9px; font-size: .8125rem; font-weight: 600; font-family: var(--f-display);
  box-shadow: 0 18px 40px -18px rgba(10,29,48,.4), 0 0 0 1px rgba(10,29,48,.05);
  animation: bob 6s ease-in-out infinite;
}
.chip b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; }
.chip--a { left: -6%; top: 6%; }
.chip--b { left: -10%; bottom: 20%; animation-delay: -2s; }
.chip--b b { background: var(--navy); }
.chip--c { right: 18%; top: -2%; animation-delay: -4s; }
.chip--c b { background: var(--blue-bright); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Mockups ----------------------------------------------------------------- */
.browser {
  --mk-bg: var(--white); --mk-ink: var(--ink); --mk-accent: var(--blue);
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(10,29,48,.04), 0 40px 80px -40px rgba(10,29,48,.5), 0 0 0 1px rgba(10,29,48,.06);
}
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--mist); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6159; }
.browser__bar i:nth-child(2) { background: #ffbd2e; }
.browser__bar i:nth-child(3) { background: #28c941; }
.browser__bar em { margin-left: 12px; flex: 1; max-width: 240px; height: 16px; border-radius: 8px; background: var(--white); font-style: normal; font-family: var(--f-mono); font-size: 9px; line-height: 16px; padding: 0 10px; color: var(--ink-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser__body { background: var(--mk-bg); color: var(--mk-ink); aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }

.cycle { display: block; }
.cycle__slide { position: absolute; inset: 0; background: var(--mk-bg); color: var(--mk-ink); display: grid; grid-template-rows: auto 1fr; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.cycle__slide:first-child { opacity: 1; transform: none; }
.cycle.is-running .cycle__slide { opacity: 0; transform: scale(1.04); }
.cycle.is-running .cycle__slide.is-active { opacity: 1; transform: none; }

.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: 4% 5% 3%; }
.mk-logo { font-family: var(--f-display); font-weight: 700; font-size: clamp(7px, .9vw, 11px); letter-spacing: -0.01em; }
.mk-links { display: flex; gap: 6px; align-items: center; }
.mk-links i { width: 18px; height: 3px; border-radius: 2px; background: currentColor; opacity: .35; }
.mk-links i:last-child { width: 26px; height: 10px; opacity: 1; background: var(--mk-accent); border-radius: 5px; }
.mk-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5%; padding: 0 5% 5%; align-items: stretch; }
.mk-hero__txt { display: flex; flex-direction: column; justify-content: center; gap: 7%; }
.mk-h { font-family: var(--f-display); font-weight: 700; font-size: clamp(9px, 1.5vw, 20px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.mk-p { display: grid; gap: 4px; }
.mk-p i { height: 3px; border-radius: 2px; background: currentColor; opacity: .25; }
.mk-p i:nth-child(2) { width: 85%; }
.mk-p i:nth-child(3) { width: 60%; }
.mk-btn { width: 40%; height: 11px; border-radius: 6px; background: var(--mk-accent); }
.mk-img { background: var(--mist); border-radius: 6px; position: relative; overflow: hidden; min-height: 40px; }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 0 5% 5%; }
.mk-cards > i { aspect-ratio: 4/3; border-radius: 5px; }
.mk-cards > i:nth-child(2) { filter: hue-rotate(-12deg) brightness(1.05); }
.mk-cards > i:nth-child(3) { filter: brightness(0.92); }

.phone {
  --mk-bg: var(--white); --mk-ink: var(--ink); --mk-accent: var(--blue);
  width: 26%; aspect-ratio: 9 / 19; border-radius: 22px; background: var(--ink); padding: 5px;
  box-shadow: 0 40px 60px -28px rgba(10,29,48,.6), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone__screen { width: 100%; height: 100%; border-radius: 18px; background: var(--mk-bg); color: var(--mk-ink); overflow: hidden; display: flex; flex-direction: column; gap: 6%; padding: 16% 9% 9%; }
.phone__screen .mk-img { flex: 1.2; }
.phone__screen .mk-h { font-size: clamp(7px, .95vw, 12px); }
.phone__screen .mk-btn { width: 60%; height: 10px; }

/* Material textures standing in for photography */
.tex-marble { background:
  radial-gradient(120% 60% at 20% 30%, rgba(255,255,255,.9), transparent 60%),
  linear-gradient(115deg, transparent 40%, rgba(120,130,140,.2) 42%, transparent 46%),
  linear-gradient(160deg, transparent 55%, rgba(120,130,140,.16) 57%, transparent 62%),
  linear-gradient(135deg, #f3f2ef, #d4d8dc) !important; }
.tex-wood { background:
  repeating-linear-gradient(95deg, rgba(90,55,25,.1) 0 2px, transparent 2px 9px),
  linear-gradient(135deg, #cf9f6e, #8a5a33) !important; }
.tex-meat { background:
  radial-gradient(40% 30% at 60% 55%, rgba(255,235,225,.35), transparent 70%),
  repeating-linear-gradient(140deg, rgba(255,240,235,.18) 0 3px, transparent 3px 14px),
  linear-gradient(135deg, #b23633, #5e1517) !important; }
.tex-chart { background:
  linear-gradient(to top, rgba(46,163,107,.85) 0 30%, transparent 30%) 10% 100% / 8% 90% no-repeat,
  linear-gradient(to top, rgba(46,163,107,.85) 0 55%, transparent 55%) 26% 100% / 8% 90% no-repeat,
  linear-gradient(to top, rgba(46,163,107,.85) 0 42%, transparent 42%) 42% 100% / 8% 90% no-repeat,
  linear-gradient(to top, rgba(46,163,107,.85) 0 70%, transparent 70%) 58% 100% / 8% 90% no-repeat,
  linear-gradient(to top, rgba(46,163,107,.85) 0 88%, transparent 88%) 74% 100% / 8% 90% no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 20%),
  linear-gradient(160deg, #143150, #0a1a2b) !important; }
.tex-concrete { background:
  radial-gradient(circle at 30% 40%, rgba(255,255,255,.35) 0 1px, transparent 2px) 0 0 / 9px 9px,
  linear-gradient(135deg, #bcc1c6, #7f878f) !important; }
.tex-studio { background:
  radial-gradient(80% 70% at 75% 30%, rgba(255,255,255,.55), transparent 60%),
  linear-gradient(135deg, #8fc1da, #0076a8) !important; }

/* Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; padding-block: clamp(24px, 3vw, 40px); background: var(--white); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); flex: none; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 4rem); letter-spacing: -0.04em; white-space: nowrap; line-height: 1.1; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.2px var(--ink); font-style: italic; font-weight: 600; }
.marquee i { width: clamp(12px, 1.4vw, 20px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); flex: none; }
.marquee__track:not(.is-js) { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* About ------------------------------------------------------------------- */
.about .wrap { display: grid; gap: clamp(32px, 4vw, 56px); }
.about__title { font-size: var(--t-h2); max-width: 16ch; }
.scrub { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.9rem); line-height: 1.18; letter-spacing: -0.025em; max-width: 30ch; margin-left: auto; text-wrap: pretty; }
.scrub mark { background: none; color: var(--blue); font-style: italic; }

.panels { display: flex; gap: 12px; height: clamp(360px, 36vw, 460px); margin-top: clamp(16px, 3vw, 40px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  transition: flex-grow .9s var(--ease), background-color .6s var(--ease), color .6s var(--ease), border-color .6s;
}
.panel:hover { border-color: var(--blue); }
.panel.is-open { flex-grow: 3.2; background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.panel__num { font-family: var(--f-mono); font-size: var(--t-small); color: var(--blue); width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; flex: none; }
.panel.is-open .panel__num { color: var(--blue-bright); }
.panel__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
@media (min-width: 901px) {
  .panel:not(.is-open) .panel__title { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; }
  .panel:not(.is-open) .panel__body { position: absolute; }
}
.panel__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: end; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s var(--ease); max-height: 0; }
.panel.is-open .panel__body { opacity: 1; transform: none; transition-delay: .3s; max-height: 400px; }
.panel__text { color: var(--on-dark-soft); font-size: var(--t-lead); max-width: 32ch; }
.panel__art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--navy-2); overflow: hidden; display: block; }
.panel__art i { position: absolute; display: block; }
.panel__art--design i:nth-child(1) { left: 10%; top: 12%; width: 50%; height: 60%; border-radius: 10px; background: var(--blue); animation: float1 5s ease-in-out infinite; }
.panel__art--design i:nth-child(2) { right: 10%; top: 24%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--pale-2); animation: float2 6s ease-in-out infinite; }
.panel__art--design i:nth-child(3) { left: 24%; bottom: 10%; width: 56%; height: 10%; border-radius: 10px; background: var(--white); opacity: .85; }
.panel__art--design i:nth-child(4) { left: 24%; bottom: 25%; width: 30%; height: 6%; border-radius: 10px; background: var(--white); opacity: .4; }
.panel__art--personal i { border-radius: 50%; border: 2px solid var(--blue-bright); left: 50%; top: 50%; translate: -50% -50%; animation: ripple 3.6s var(--ease) infinite; }
.panel__art--personal i:nth-child(1) { width: 20%; aspect-ratio: 1; background: var(--blue-bright); }
.panel__art--personal i:nth-child(2) { width: 45%; aspect-ratio: 1; animation-delay: -1.2s; }
.panel__art--personal i:nth-child(3) { width: 75%; aspect-ratio: 1; animation-delay: -2.4s; opacity: .5; }
.panel__art--practical { display: flex; align-items: flex-end; gap: 8%; padding: 12% 12% 0; }
.panel__art--practical i { position: relative; flex: 1; background: var(--blue); border-radius: 8px 8px 0 0; animation: grow 3s var(--ease) infinite alternate; transform-origin: bottom; }
.panel__art--practical i:nth-child(1) { height: 30%; }
.panel__art--practical i:nth-child(2) { height: 55%; animation-delay: -.6s; background: var(--blue-bright); }
.panel__art--practical i:nth-child(3) { height: 42%; animation-delay: -1.2s; }
.panel__art--practical i:nth-child(4) { height: 74%; animation-delay: -1.8s; background: var(--pale-2); }
.panel__art--practical i:nth-child(5) { height: 90%; animation-delay: -2.4s; }
@keyframes float1 { 50% { transform: translate(6%, -8%) rotate(-4deg); } }
@keyframes float2 { 50% { transform: translate(-10%, 12%); } }
@keyframes ripple { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
@keyframes grow { from { transform: scaleY(.7); } to { transform: scaleY(1); } }

/* Services ---------------------------------------------------------------- */
.services { background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.svc-list { border-top: 1px solid var(--ink); }
.svc-row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 64px; gap: 24px; align-items: center;
  padding: clamp(24px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.svc-row::before { content: ""; position: absolute; inset: 0; background: var(--blue); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); border-radius: var(--r-md); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row:hover { color: var(--white); padding-inline: 24px; }
.svc-row__num { font-family: var(--f-mono); font-size: var(--t-small); color: var(--blue); transition: color .4s; }
.svc-row:hover .svc-row__num { color: var(--pale-2); }
.svc-row__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.8vw, 4.4rem); letter-spacing: -0.045em; line-height: 1; }
.svc-row:hover .svc-row__title { font-style: italic; }
.svc-row__desc { color: var(--ink-soft); max-width: 40ch; transition: color .4s; }
.svc-row:hover .svc-row__desc { color: rgba(255,255,255,.85); }
.svc-row__go { justify-self: end; width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 1.25rem; transition: transform .6s var(--ease), background-color .4s, color .4s; }
.svc-row:hover .svc-row__go { transform: rotate(-45deg); background: var(--white); color: var(--blue); border-color: var(--white); }
.svc-float { position: fixed; left: 0; top: 0; width: clamp(220px, 22vw, 320px); aspect-ratio: 4/3; pointer-events: none; z-index: 60; opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease); }
.svc-float.is-on { opacity: 1; scale: 1; }
.svc-float__card { position: absolute; inset: 0; border-radius: var(--r-md); background: var(--navy); box-shadow: 0 30px 60px -20px rgba(10,29,48,.6); opacity: 0; transition: opacity .3s; overflow: hidden; }
.svc-float__card.is-on { opacity: 1; }

/* Service illustrations */
.svc-ill { position: absolute; inset: 12% 10%; display: grid; gap: 6%; }
.svc-ill i { display: block; border-radius: 6px; background: var(--white); box-shadow: 0 8px 16px -10px rgba(0,0,0,.4); }
.svc-ill--standard { grid-template-rows: 18% 1fr 22%; }
.svc-ill--standard i:nth-child(2) { background: linear-gradient(135deg, var(--pale-2), var(--blue)); }
.svc-ill--commercial { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.svc-ill--commercial i { position: relative; }
.svc-ill--commercial i::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 10%; height: 8%; background: var(--blue); border-radius: 2px; }
.svc-ill--commercial i::before { content: ""; position: absolute; inset: 10% 10% 28%; background: var(--pale-2); border-radius: 3px; }
.svc-ill--app { grid-template-columns: 26% 1fr; grid-template-rows: 1fr 1fr; }
.svc-ill--app i:first-child { grid-row: 1 / -1; background: var(--blue); }
.svc-ill--app i:nth-child(2) { background:
  linear-gradient(to top, var(--blue) 0 40%, transparent 40%) 12% 100% / 10% 80% no-repeat,
  linear-gradient(to top, var(--blue) 0 65%, transparent 65%) 32% 100% / 10% 80% no-repeat,
  linear-gradient(to top, var(--blue) 0 50%, transparent 50%) 52% 100% / 10% 80% no-repeat,
  linear-gradient(to top, var(--blue) 0 85%, transparent 85%) 72% 100% / 10% 80% no-repeat,
  var(--white); }
.svc-ill--app i:nth-child(3) { background: repeating-linear-gradient(180deg, var(--white) 0 18%, var(--mist) 18% 20%); }

/* Process (pinned horizontal on desktop) ------------------------------------ */
.process-sec { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.process-pin { padding-block: clamp(96px, 9vw, 140px) clamp(48px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(36px, 4vw, 64px); }
.is-pinned .process-pin { min-height: 100vh; justify-content: center; }
.process-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 28px clamp(16px, 3vw, 40px); align-items: start; }
.process-head h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
.process-head h2 em { color: var(--blue-bright); }
.process-viewport { overflow-x: auto; scrollbar-width: none; }
.process-viewport::-webkit-scrollbar { display: none; }
.is-pinned .process-viewport { overflow: visible; }
.process-track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.pstep {
  position: relative; width: clamp(280px, 30vw, 430px); min-height: clamp(300px, 26vw, 380px);
  border-radius: var(--r-lg); background: var(--navy-2); border: 1px solid var(--line-dark);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: background-color .5s var(--ease), transform .6s var(--ease);
}
.pstep:hover { background: var(--blue); transform: translateY(-8px); }
.pstep__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 8vw, 8rem); letter-spacing: -0.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.35); transition: -webkit-text-stroke-color .4s, color .4s; }
.pstep:hover .pstep__num { color: var(--white); -webkit-text-stroke-color: var(--white); }
.pstep__icon { width: 44px; height: 44px; color: var(--blue-bright); margin-top: auto; transition: color .4s; }
.pstep:hover .pstep__icon { color: var(--white); }
.pstep h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.pstep p { color: var(--on-dark-soft); transition: color .4s; }
.pstep:hover p { color: rgba(255,255,255,.88); }
.process-rail { height: 2px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.process-rail__fill { display: block; height: 100%; background: var(--blue-bright); transform-origin: left; transform: scaleX(0); }

/* Process grid used on inner pages */
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process-grid .pstep { width: auto; min-height: 300px; background: var(--navy); color: var(--on-dark); }
.process-grid .pstep:hover { background: var(--blue); }
.process-grid .pstep__num { font-size: clamp(3.5rem, 5vw, 5rem); }
.process-grid .pstep h3 { font-size: 1.4rem; }

/* Projects ---------------------------------------------------------------- */
.projects-sec { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { border: 1px solid var(--line); background: var(--white); border-radius: 100px; padding: 10px 18px; cursor: pointer; font-weight: 500; font-size: .9375rem; transition: background-color .4s var(--ease), color .4s, border-color .4s; }
.filter sup { font-family: var(--f-mono); font-size: .6875rem; color: var(--blue); margin-left: 2px; }
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter.is-on sup { color: var(--blue-bright); }

.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.pcard { grid-column: span 6; text-decoration: none; display: grid; gap: 20px; align-content: start; min-width: 0; }
.pcard.s-7 { grid-column: span 7; }
.pcard.s-5 { grid-column: span 5; }
.pcard.s-12 { grid-column: span 12; }
.pcard.s-5.is-low { margin-top: clamp(0px, 8vw, 120px); }
.pcard.is-gone { display: none; }
.pcard__media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); aspect-ratio: 4 / 3; isolation: isolate; }
.pcard.s-7 .pcard__media { aspect-ratio: 16 / 11; }
.pcard.s-12 .pcard__media { aspect-ratio: 21 / 9; }
.pcard__media::before { /* ambient light that follows the pointer */
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(50% 50% at var(--mx, 50%) var(--my, 30%), rgba(46,160,214,.45), transparent 70%);
  transition: opacity .5s; opacity: .55;
}
.pcard:hover .pcard__media::before { opacity: 1; }
.pcard__inner { position: absolute; inset: 0; display: grid; place-items: center; padding: 9% 10%; will-change: transform; }
.pcard.s-12 .pcard__inner { padding: 5% 22%; }
.pcard__inner .browser { width: 100%; transition: transform .9s var(--ease); }
.pcard:hover .pcard__inner .browser { transform: translateY(-10px) scale(1.03); }
.pcard__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; }
.pcard__name { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; transition: color .3s; }
.pcard:hover .pcard__name { color: var(--blue); }
.pcard__cat { grid-column: 1; font-size: var(--t-small); color: var(--ink-soft); }
.pcard__url { grid-row: 1; grid-column: 2; font-family: var(--f-mono); font-size: var(--t-label); color: var(--ink-soft); }
.projects__note { margin-top: clamp(40px, 5vw, 64px); font-size: var(--t-small); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* CMA --------------------------------------------------------------------- */
.cma-sec { background: var(--pale); border-radius: var(--r-lg); margin-inline: clamp(8px, 1.5vw, 24px); }
.cma-demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.cma-editor { background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 20px; align-content: start; box-shadow: 0 30px 60px -40px rgba(10,29,48,.45); }
.cma-editor__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--mist); flex-wrap: wrap; }
.cma-editor__head b { font-family: var(--f-display); background: var(--navy); color: var(--white); padding: 6px 12px; border-radius: 8px; font-size: .875rem; }
.cma-editor__head span { font-size: var(--t-small); color: var(--ink-soft); }
.cma-live { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.cma-field { display: grid; gap: 8px; }
.cma-field label, .cma-field__label { font-size: var(--t-small); font-weight: 600; }
.cma-field input, .cma-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); resize: none; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.cma-field input:focus, .cma-field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(0,118,168,.12); }
.cma-swatches { display: flex; gap: 10px; }
.cma-swatches button { width: 52px; height: 40px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: transform .3s var(--ease), border-color .3s; }
.cma-swatches button:hover { transform: translateY(-3px); }
.cma-swatches button.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--white) inset; }
.cma-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cma-toast { font-size: var(--t-small); color: var(--ink-soft); }
.cma-site { min-width: 0; display: flex; align-items: center; }
.cma-site .browser { width: 100%; }
.cma-site__body { background: #f7f3ee; color: #2a1d12; aspect-ratio: 16 / 10; display: grid; grid-template-rows: auto 1fr; --mk-accent: #8a5a33; }
.cma-site__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding: 0 5% 5%; min-height: 0; }
.cma-site__copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.cma-site__h { font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.035em; overflow-wrap: anywhere; border-radius: 6px; }
.cma-site__p { font-size: clamp(.7rem, 1vw, .95rem); opacity: .75; overflow-wrap: anywhere; border-radius: 6px; }
.cma-site__btn { align-self: flex-start; background: #8a5a33; color: #fff; font-size: clamp(.6rem, .85vw, .8rem); padding: 8px 14px; border-radius: 100px; font-weight: 600; }
.cma-site__img { border-radius: 10px; }
.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(0,118,168,.6); background-color: rgba(0,118,168,.14); } 100% { box-shadow: 0 0 0 14px rgba(0,118,168,0); background-color: transparent; } }
.cma-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(16px, 2vw, 28px); }
.cma-point { padding: 22px; background: rgba(255,255,255,.6); border-radius: var(--r-md); display: grid; gap: 6px; align-content: start; }
.cma-point b { font-family: var(--f-display); font-weight: 600; }
.cma-point span:not(.ph) { font-size: var(--t-small); color: var(--ink-soft); }
.cma-cta { margin-top: clamp(28px, 3vw, 40px); }

/* Why (stacking cards) ------------------------------------------------------ */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.why-intro { position: sticky; top: 120px; display: grid; gap: 28px; }
.why-intro h2 { font-size: var(--t-h2); }
.stack { display: grid; gap: 24px; }
.stack__card {
  position: sticky; top: calc(110px + var(--i, 0) * 22px);
  min-height: clamp(280px, 26vw, 340px); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px);
  display: grid; align-content: space-between; gap: 14px; overflow: hidden; isolation: isolate;
  box-shadow: 0 -20px 40px -30px rgba(10,29,48,.35);
  transform-origin: center top;
}
.stack__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--mx, -100%) var(--my, -100%), rgba(255,255,255,.22), transparent 70%); }
.stack__card--1 { --i: 0; background: var(--pale); }
.stack__card--2 { --i: 1; background: var(--blue); color: var(--white); }
.stack__card--3 { --i: 2; background: var(--navy); color: var(--on-dark); }
.stack__card--4 { --i: 3; background: var(--ink); color: var(--on-dark); }
.stack__card--1::before { background: radial-gradient(320px circle at var(--mx, -100%) var(--my, -100%), rgba(0,118,168,.15), transparent 70%); }
.stack__idx { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .12em; opacity: .7; }
.stack__icon { width: 64px; height: 64px; color: var(--blue); transition: transform .8s var(--ease); }
.stack__card:hover .stack__icon { transform: rotate(90deg) scale(1.1); }
.stack__card--2 .stack__icon { color: var(--white); }
.stack__card--3 .stack__icon, .stack__card--4 .stack__icon { color: var(--blue-bright); }
.stack__card h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.stack__card p { max-width: 44ch; opacity: .82; }

/* Contact ----------------------------------------------------------------- */
.contact { background: var(--navy); color: var(--on-dark); overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; isolation: isolate; }
.contact .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); position: relative; }
.contact__intro { display: grid; gap: 32px; align-content: start; min-width: 0; }
.contact__intro h2 { font-size: var(--t-h2); }
.contact__intro h2 em { color: var(--blue-bright); }
.contact__intro p { color: var(--on-dark-soft); font-size: var(--t-lead); max-width: 46ch; }
.contact__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line-dark); margin: 0; }
.contact__details dt { font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-soft); margin-bottom: 6px; }
.contact__details dd { margin: 0; font-family: var(--f-display); font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.contact__details a { text-decoration: none; background: linear-gradient(var(--blue-bright), var(--blue-bright)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__details a:hover { background-size: 100% 1px; }

.form { background: rgba(255,255,255,.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); display: grid; gap: 22px; min-width: 0; align-content: start; }
.form h3 { font-size: var(--t-h3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; display: grid; min-width: 0; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); color: var(--on-dark); padding: 22px 0 10px; border-radius: 0; resize: vertical; transition: border-color .3s var(--ease); }
.field textarea { min-height: 96px; }
.field label { position: absolute; left: 0; top: 22px; color: var(--on-dark-soft); pointer-events: none; transform-origin: left top; transition: transform .4s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.78); color: var(--blue-bright); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue-bright); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-bright); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.pick { border: 0; padding: 0; margin: 0; }
.pick legend { color: var(--on-dark-soft); font-size: var(--t-small); padding: 0; margin-bottom: 12px; }
.pick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__opts input { position: absolute; opacity: 0; pointer-events: none; }
.pick__opts label { border: 1px solid rgba(255,255,255,.25); border-radius: 100px; padding: 9px 16px; font-size: .875rem; cursor: pointer; transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.pick__opts label:hover { border-color: var(--white); }
.pick__opts input:checked + label { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--navy); }
.pick__opts input:focus-visible + label { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__note { font-size: var(--t-small); color: var(--on-dark-soft); }
.form__status { font-size: var(--t-small); color: var(--pale-2); min-height: 1.4em; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-block: clamp(64px, 8vw, 112px) 28px; font-size: 0.9375rem; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__ask { font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .14em; }
.footer__mail { display: inline-flex; align-items: center; gap: .2em; text-decoration: none; color: var(--on-dark); font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 7rem); letter-spacing: -0.05em; line-height: .95; }
.footer__mail span:first-child { background: linear-gradient(var(--blue), var(--blue)) 0 92% / 0 .08em no-repeat; transition: background-size .7s var(--ease); }
.footer__mail:hover span:first-child { background-size: 100% .08em; }
.footer__mail-arrow { display: inline-block; color: var(--blue-bright); transition: transform .7s var(--ease); }
.footer__mail:hover .footer__mail-arrow { transform: rotate(45deg); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px clamp(16px, 2vw, 32px); padding-top: clamp(40px, 5vw, 64px); }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand .brand__name { color: var(--on-dark); }
.footer__brand .brand__name small { color: var(--on-dark-soft); }
.footer__brand p { max-width: 36ch; }
.footer__col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.footer__col h4 { font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark); font-weight: 500; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--on-dark); }
.footer__word { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 11.2vw, 10.8rem); letter-spacing: -0.06em; line-height: .86; color: var(--on-dark); margin-top: clamp(48px, 6vw, 96px); white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.footer__word .dot { color: var(--blue); }
.footer__word .ch { display: inline-block; will-change: transform; }
.footer__bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: var(--t-small); }
.totop { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); text-decoration: none; font-size: 1.2rem; transition: background-color .3s; }
.totop:hover { background: var(--blue-bright); }

/* Section indicator (desktop) */
.sec-indicator { position: fixed; left: var(--gutter); bottom: 24px; z-index: 90; display: none; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; color: var(--ink); transition: opacity .4s, transform .5s var(--ease); }
.sec-indicator:not(.is-on) { opacity: 0; transform: translateY(10px); }
.sec-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@media (min-width: 1100px) and (hover: hover) { .sec-indicator { display: inline-flex; } }

/* Inner pages -------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--white), var(--pale)); padding-block: clamp(140px, 15vw, 200px) clamp(64px, 8vw, 112px); }
.page-hero .grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(16px, 3vw, 40px); align-items: end; }
.crumbs { grid-column: 1 / -1; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.page-hero__num .sec-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 12vw, 11rem); line-height: .78; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); display: block; }
.page-hero__title { display: grid; gap: 26px; justify-items: start; }
.page-hero__title h1 { font-size: var(--t-hero); letter-spacing: -0.05em; line-height: .92; }
.page-hero__title p { font-size: var(--t-lead); color: var(--ink-soft); max-width: 54ch; }

.label { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.label--blue { color: var(--blue); }
.section--navy .label { color: var(--on-dark-soft); }
.section--paper { background: var(--paper); }
.section--pale { background: var(--pale); }
.section--navy { background: var(--navy); color: var(--on-dark); border-radius: var(--r-lg); margin-inline: clamp(8px, 1.5vw, 24px); }
.section--line { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px clamp(16px, 3vw, 40px); margin-bottom: clamp(40px, 5vw, 72px); align-items: start; }
.sec-head__title { display: grid; gap: 18px; justify-items: start; }
.sec-head__title h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
.sec-head__title p { max-width: 56ch; color: var(--ink-soft); font-size: var(--t-lead); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); }
.split__aside { display: grid; gap: 16px; align-content: start; }
.split__aside h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.split__main { min-width: 0; display: grid; gap: 28px; }
.split__main > p { font-size: var(--t-lead); max-width: 60ch; }

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fit li { padding: 18px 20px; background: var(--paper); border-radius: var(--r-md); display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; transition: background-color .4s var(--ease), transform .5s var(--ease); }
.fit li:hover { background: var(--pale); transform: translateX(6px); }
.fit svg { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.section--paper .fit li { background: var(--white); }

.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.scope__item { background: var(--white); border-radius: var(--r-md); padding: 26px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.scope__item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.scope__item:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -30px rgba(10,29,48,.4); }
.scope__item:hover::after { transform: scaleX(1); }
.scope__item span { font-family: var(--f-mono); font-size: var(--t-small); color: var(--blue); width: 36px; height: 36px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; }
.scope__item h3 { font-size: 1.3rem; margin-top: 8px; }
.scope__item p { color: var(--ink-soft); font-size: 0.975rem; }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.benefit { background: var(--navy-2); border-radius: var(--r-md); padding: 30px; display: grid; gap: 14px; align-content: start; min-height: 220px; transition: background-color .5s var(--ease); }
.benefit:hover { background: var(--blue); }
.benefit h3 { font-size: var(--t-h3); }
.benefit p { color: var(--on-dark-soft); }
.benefit:hover p { color: rgba(255,255,255,.88); }

.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.examples .pcard { grid-column: auto; }

.other-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; align-items: start; background: var(--paper); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); text-decoration: none; transition: background-color .5s var(--ease), color .5s, transform .6s var(--ease); }
.service:hover { background: var(--navy); color: var(--on-dark); transform: translateY(-6px); }
.service__media { grid-row: 1 / span 4; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--pale-2); position: relative; overflow: hidden; }
.service:hover .service__media { background: var(--navy-3); }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__num { font-family: var(--f-mono); font-size: var(--t-small); color: var(--blue); }
.service__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s, color .3s; }
.service:hover .service__arrow { transform: rotate(-45deg); background: var(--blue); border-color: var(--blue); color: var(--white); }
.service h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.service p { color: var(--ink-soft); font-size: .95rem; }
.service:hover p { color: var(--on-dark-soft); }

.cta-band { background: var(--navy); color: var(--on-dark); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; isolation: isolate; }
.cta-band .grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; }
.cta-band h2 { font-size: var(--t-h2); }
.cta-band h2 em { color: var(--blue-bright); }
.cta-band .btn-row { justify-content: flex-end; }

/* Project page */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { padding: 20px; display: grid; gap: 6px; background: var(--paper); border-radius: var(--r-md); }
.facts dt { font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; }
.case-visual { padding: clamp(24px, 6vw, 96px); background: var(--navy); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.case-visual .browser { width: 82%; }
.case-visual .phone { position: absolute; right: 6%; bottom: 10%; width: 17%; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--mist); min-height: 200px; }
.media__caption { position: absolute; left: 14px; bottom: 14px; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255,255,255,.9); color: var(--ink); padding: 6px 10px; border-radius: 100px; }
.gallery .g-a { grid-column: span 7; aspect-ratio: 4/3; }
.gallery .g-b { grid-column: span 5; }
.gallery .g-c { grid-column: span 12; aspect-ratio: 21/9; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.outcome { border-radius: var(--r-lg); padding: 30px; display: grid; gap: 14px; align-content: start; background: var(--white); }
.outcome h3 { font-size: var(--t-h3); }
.outcome p { color: var(--ink-soft); }
.outcome--verified { box-shadow: inset 0 0 0 1px var(--blue); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { padding: 32px; text-decoration: none; display: grid; gap: 6px; background: var(--paper); border-radius: var(--r-lg); transition: background-color .5s var(--ease), color .5s; }
.pager a + a { text-align: right; }
.pager a:hover { background: var(--navy); color: var(--on-dark); }
.pager span { font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.12em; opacity: .7; }
.pager b { font-family: var(--f-display); font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -0.03em; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .stage { max-width: 720px; width: 100%; justify-self: center; }
  .cma-demo { grid-template-columns: 1fr; }
  .cma-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .contact .grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sec-top, .process-head, .sec-head, .page-hero .grid, .split, .cta-band .grid { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; min-height: 96px; }
  .panel.is-open { flex: none; }
  .panel__body { grid-template-columns: 1fr; }
  .panel.is-open .panel__body { max-height: 600px; }
  .svc-row { grid-template-columns: 40px minmax(0, 1fr) 48px; gap: 8px 16px; }
  .svc-row__desc { grid-column: 2; grid-row: 2; }
  .svc-row__go { grid-column: 3; grid-row: 1; width: 48px; height: 48px; }
  .svc-float { display: none; }
  .process-track { flex-direction: column; width: auto; }
  .pstep { width: auto; min-height: 0; }
  .pstep__icon { margin-top: 8px; }
  .process-rail { display: none; }
  .projects { grid-template-columns: 1fr; }
  .pcard, .pcard.s-7, .pcard.s-5, .pcard.s-12 { grid-column: 1 / -1; }
  .pcard.s-5.is-low { margin-top: 0; }
  .pcard.s-12 .pcard__media, .pcard.s-7 .pcard__media { aspect-ratio: 4 / 3; }
  .pcard.s-12 .pcard__inner { padding: 9% 10%; }
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .stack__card { top: calc(90px + var(--i, 0) * 16px); }
  .scope, .benefits { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .chip { font-size: .6875rem; padding: 6px 12px 6px 6px; }
  .chip b { width: 20px; height: 20px; }
  .chip--a { left: 0; }
  .chip--b { left: -2%; }
  .scroll-cue { display: none; }
  .cma-points, .fit, .outcomes, .examples, .other-services, .scope, .benefits, .process-grid { grid-template-columns: 1fr; }
  .cma-site__hero { grid-template-columns: 1.2fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery .g-a, .gallery .g-b, .gallery .g-c { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { text-align: left; }
  .case-visual .browser { width: 100%; }
  .case-visual .phone { display: none; }
  .service { grid-template-columns: 1fr; }
  .service__media { grid-row: auto; }
}

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

/* Connect: meeting scheduler + WhatsApp entry point -------------------------- */
.connect { background: rgba(255,255,255,.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(14px, 2vw, 22px); display: grid; gap: 20px; min-width: 0; align-content: start; scroll-margin-top: 100px; }
.connect__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(0,0,0,.22); border-radius: 100px; padding: 5px; }
.connect__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; color: var(--on-dark-soft); padding: 12px 10px; border-radius: 100px; font-family: var(--f-display); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: color .4s var(--ease); white-space: nowrap; }
.connect__tab svg { width: 18px; height: 18px; flex: none; }
.connect__tab.is-on { color: var(--navy); }
.connect__ink { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 100px; background: var(--white); transition: transform .6s var(--ease), background-color .4s; }
.connect[data-active="wa"] .connect__ink { transform: translateX(100%); background: #25d366; }
.connect__pane { padding: 4px clamp(4px, 1vw, 14px) 8px; }
.sched { display: grid; gap: 22px; }
.sched__step { display: grid; gap: 12px; }
.sched__label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--on-dark-soft); }
.sched__label b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-bright); color: var(--navy); display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; }
.sched__label em { font-style: normal; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; border: 1px solid var(--line-dark); border-radius: 100px; padding: 2px 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button, .days button, .slots button { border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--on-dark); border-radius: 14px; cursor: pointer; transition: background-color .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.seg button { padding: 12px; font-size: .875rem; font-weight: 500; }
.seg button:hover, .days button:hover, .slots button:hover { border-color: var(--white); transform: translateY(-2px); }
.seg button.is-on, .days button.is-on, .slots button.is-on { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--navy); }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x mandatory; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; width: 64px; padding: 10px 0; display: grid; gap: 2px; justify-items: center; scroll-snap-align: start; }
.days small { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.days b { font-family: var(--f-display); font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.1; }
.days span { font-size: .6875rem; opacity: .75; }
.slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.slots button { padding: 10px 0; font-family: var(--f-mono); font-size: .8125rem; }
.sched .pick__opts label { font-size: .8125rem; padding: 7px 13px; }
.sched__summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--r-md); background: rgba(46,160,214,.12); border: 1px solid rgba(46,160,214,.3); }
.sched__recap { font-family: var(--f-display); font-weight: 500; font-size: 1rem; min-width: 0; flex: 1 1 220px; }
.sched__recap b { color: var(--blue-bright); font-weight: 600; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.form__note { font-size: var(--t-small); color: var(--on-dark-soft); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

.wa { display: grid; gap: 20px; }
.wa__chat { border-radius: var(--r-md); overflow: hidden; background: #0b141a; border: 1px solid var(--line-dark); }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f2c34; }
.wa__avatar svg { width: 34px; height: 34px; }
.wa__head b { display: block; font-family: var(--f-display); font-size: .9375rem; color: var(--on-dark); }
.wa__head small { font-size: .75rem; color: #8696a0; }
.wa__body { padding: 18px 16px; display: grid; gap: 10px; min-height: 150px; align-content: start; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0 / 14px 14px, #0b141a; }
.wa__bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.wa__bubble--in { background: #202c33; color: #e9edef; border-top-left-radius: 2px; }
.wa__bubble--out { justify-self: end; background: #005c4b; color: #e9edef; border-top-right-radius: 2px; transform-origin: right bottom; }
.wa__bubble--out.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.8); opacity: .3; } }
.wa__compose { display: grid; gap: 14px; }
.wa__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wa__chips button { border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--on-dark); border-radius: 100px; padding: 8px 14px; font-size: .8125rem; cursor: pointer; transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.wa__chips button:hover { border-color: #25d366; }
.wa__chips button.is-on { background: #25d366; border-color: #25d366; color: #052e1a; }
.field--msg textarea { min-height: 84px; }
.wa__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wa__num { font-family: var(--f-mono); font-size: .8125rem; color: var(--on-dark-soft); user-select: all; }
.btn--wa { background: #25d366; color: #052e1a; }
.btn--wa::before { background: var(--white); }

/* Floating WhatsApp button */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: inline-flex; align-items: center; gap: 0; height: 56px; padding: 0 16px; border-radius: 100px; background: #25d366; color: #052e1a; text-decoration: none; font-family: var(--f-display); font-weight: 600; box-shadow: 0 16px 34px -14px rgba(5,46,26,.6); transition: gap .5s var(--ease), padding .5s var(--ease), transform .5s var(--ease); }
.wa-fab svg { width: 24px; height: 24px; flex: none; }
.wa-fab__text { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .6s var(--ease); }
.wa-fab:hover, .wa-fab.is-peek { gap: 10px; padding: 0 22px 0 18px; }
.wa-fab:hover .wa-fab__text, .wa-fab.is-peek .wa-fab__text { max-width: 140px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ring 2.6s var(--ease) infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.nav-open .wa-fab, .wa-fab.is-away { transform: translateY(140%); }

@media (max-width: 640px) {
  .connect__tab { font-size: .8125rem; gap: 6px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg { grid-template-columns: 1fr; }
  .wa-fab { height: 52px; padding: 0 14px; }
}
