/* ============================================================================
   Kanaiya Infotech — Homepage design (Stage 1)
   Layout & visual design only. Motion start-states live in css/motion.css.
   Loaded after styles/main.css (shared footer, forms, utilities), so it can
   re-use and override the shared tokens.

   Contents
   0. Brand tokens  ← change colours, fonts, spacing and radius here
   1. Fonts
   2. Base & helpers (wrap, kicker, headings, buttons, dot grid, doodles)
   3. Announcement bar
   4. Header, dropdowns, mobile drawer
   5. Hero
   6. K-logo mask + stats
   7. Service cards
   8. Responsive tweaks & floating button
   ========================================================================== */

/* 0. BRAND TOKENS ---------------------------------------------------------- */
:root {
  /* Colours — taken from the logo */
  --k-navy: #0B1622;          /* dark sections, header */
  --k-navy-2: #111F2E;        /* raised dark surfaces */
  --k-blue: #23689E;          /* primary (logo blue) — buttons, links, the "proof" band */
  --k-blue-600: #1C5784;      /* primary hover */
  --k-amber: #F39C1F;         /* accent (logo orange) — numbers, ticks, small highlights on dark */
  --k-amber-ink: #C76E00;     /* accent text on white (4.7:1 contrast, WCAG AA) */
  --k-ink: #17202B;           /* headings on light */
  --k-text: #3B4754;          /* body text on light */
  --k-muted: #5B6776;         /* secondary text on light (5.6:1) */
  --k-white: #FFFFFF;
  --k-off: #F6F8FB;           /* off-white sections */
  --k-line: #E3E8EE;
  --k-line-dark: rgba(255, 255, 255, .12);

  /* Type */
  --f-head: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --w-light: 300;             /* first line of split headlines */
  --w-bold: 750;              /* second line of split headlines */

  /* Shape & space */
  --radius: 6px;              /* buttons — squared, not pills */
  --radius-card: 14px;
  --wrap: 1240px;
  --pad-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);

  /* Re-map the shared design-system tokens so the shared footer/forms match */
  --font-display: var(--f-head);
  --font-body: var(--f-body);
  --navy: var(--k-navy);
}

/* 1. FONTS (self-hosted variable WOFF2, latin subset) ---------------------- */
@font-face {
  font-family: 'Inter Tight';
  src: url('../assets/fonts/inter-tight-latin-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 2. BASE & HELPERS -------------------------------------------------------- */
/* Minimal reset for the first screen (the full shared reset in styles/main.css loads without blocking) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--k-white); color: var(--k-ink); font-weight: 600; }

.home-v2 { color: var(--k-text); background: var(--k-white); }
.home-v2 h1, .home-v2 h2, .home-v2 h3 { font-family: var(--f-head); color: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad-x) * 2); margin-inline: auto; padding-inline: var(--pad-x); }
.br-desk { display: none; }
@media (min-width: 900px) { .br-desk { display: inline; } }

/* Small uppercase label above headlines */
.kicker { font-family: var(--f-body); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--k-amber-ink); }
.kicker--dark { color: var(--k-amber); }

/* Split-weight headlines: light first line, bold second line */
.w-light, .w-bold { display: block; }
.w-light { font-weight: var(--w-light); }
.w-bold { font-weight: var(--w-bold); }
.t-blue { color: var(--k-blue); }

.h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; color: var(--k-ink); text-wrap: balance; }
.h2--center { text-align: center; }
.h2--dark { color: var(--k-white); }
.lede { margin-top: 18px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--k-muted); max-width: 560px; }
.lede--center { margin-inline: auto; text-align: center; }
.lede--dark { color: rgba(255, 255, 255, .72); }

/* Buttons — squared corners (6px), solid blue primary, outline secondary */
.kbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.kbtn--lg { min-height: 54px; padding: 15px 26px; font-size: 16px; }
.kbtn--primary { background: var(--k-blue); color: var(--k-white); box-shadow: 0 10px 24px -12px rgba(35, 104, 158, .9); }
.kbtn--primary:hover { background: var(--k-blue-600); }
.kbtn--outline-dark { background: transparent; color: var(--k-white); border-color: rgba(255, 255, 255, .55); }
.kbtn--outline-dark:hover { background: var(--k-white); color: var(--k-navy); border-color: var(--k-white); }
.kbtn--outline { background: transparent; color: var(--k-ink); border-color: var(--k-ink); }
.kbtn--outline:hover { background: var(--k-ink); color: var(--k-white); }
.kbtn:focus-visible, .home-v2 a:focus-visible, .home-v2 button:focus-visible, .home-v2 summary:focus-visible {
  outline: 3px solid var(--k-amber); outline-offset: 3px; border-radius: var(--radius);
}
/* Primary CTA with two overlapping team avatars ("talk to a real person") */
.kbtn--avatars { padding-left: 10px; }
.avatars { display: inline-flex; }
.avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--k-blue); object-fit: cover; background: var(--k-navy-2); }
.avatars img + img { margin-left: -10px; }
.kbtn--avatars:hover .avatars img { border-color: var(--k-blue-600); }
/* Shared footer newsletter button follows the squared style too */
.home-v2 .btn { border-radius: var(--radius); }

/* Square-dot grid pattern for dark and blue sections */
.dots { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Crect width='2' height='2' fill='%23fff' fill-opacity='.14'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%); }

/* Hand-drawn doodles (single colour, stroke only) and amber line art */
.doodle { display: flex; justify-content: center; margin-bottom: 18px; color: var(--k-ink); }
.doodle--dark { color: var(--k-white); }
.doodle svg, .lineart svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lineart { display: flex; justify-content: center; gap: clamp(18px, 4vw, 40px); margin-top: 36px; color: var(--k-amber); }
.lineart svg { width: 44px; height: 44px; stroke-width: 2; }

/* 3. ANNOUNCEMENT BAR ------------------------------------------------------ */
.annbar { background: var(--k-amber); color: var(--k-navy); font-size: 14px; font-weight: 500; }
.annbar-off .annbar { display: none; }
.annbar__inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 52px; text-align: center; }
.annbar p { margin: 0; line-height: 1.4; }
.annbar a { font-weight: 700; color: var(--k-navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.annbar a:hover { text-decoration-thickness: 2.5px; }
.annbar__dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--k-navy); vertical-align: middle; animation: annPulse 2s ease-in-out infinite; }
@keyframes annPulse { 50% { opacity: .35; } }
.annbar__sep { margin: 0 6px; opacity: .6; }
.annbar__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); color: var(--k-navy); }
.annbar__close:hover { background: rgba(11, 22, 34, .1); }
.annbar a:focus-visible, .annbar__close:focus-visible { outline-color: var(--k-navy); }
@media (max-width: 559px) { .annbar { font-size: 13px; } .annbar__inner { padding: 8px 48px 8px 14px; text-align: left; justify-content: flex-start; } .annbar__sep { display: none; } .annbar a { display: inline-block; } }

/* 4. HEADER ---------------------------------------------------------------- */
/* Solid background (no backdrop-filter): a filter would make the header the containing block for the fixed mobile drawer. */
.hd { position: sticky; top: 0; z-index: 50; background: var(--k-navy); color: var(--k-white); border-bottom: 1px solid var(--k-line-dark); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .7); }
.hd__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.hd__logo { display: flex; flex-shrink: 0; }
.hd__logo img { height: 38px; width: auto; }
.hd__nav { display: none; }
@media (min-width: 1100px) { .hd__nav { display: block; } }
.hd__menu { display: flex; align-items: center; gap: 2px; }
.hd__item { position: relative; }
.hd__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .82); transition: color .2s, background-color .2s; }
.hd__link:hover, .hd__link[aria-expanded="true"] { color: var(--k-white); background: rgba(255, 255, 255, .06); }
.hd__chev { transition: transform .25s; }
.hd__link[aria-expanded="true"] .hd__chev { transform: rotate(180deg); }
.hd__actions { display: flex; align-items: center; gap: 10px; }
.hd__cta { display: none; }
@media (min-width: 640px) { .hd__cta { display: inline-flex; } }

/* Dropdown panels */
.dd { position: absolute; top: calc(100% + 12px); left: -8px; min-width: 300px; padding: 10px; border-radius: 12px; background: var(--k-white); color: var(--k-ink); box-shadow: 0 30px 70px -24px rgba(5, 12, 20, .55), 0 0 0 1px rgba(11, 22, 34, .06);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s, visibility .25s; }
.dd::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.dd--wide { width: 600px; }
.dd--right { left: auto; right: -8px; }
.hd__item.is-open > .dd,
html:not(.js) .hd__item:hover > .dd, html:not(.js) .hd__item:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
.dd ul { display: grid; gap: 2px; }
.dd__grid { grid-template-columns: 1fr 1fr; }
.dd a { display: block; padding: 10px 12px; border-radius: 8px; transition: background-color .2s; }
.dd a:hover, .dd a:focus-visible { background: var(--k-off); }
.dd b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--k-ink); }
.dd b .si { width: 18px; height: 18px; }
.dd span { display: block; margin-top: 2px; font-size: 13px; color: var(--k-muted); }
.dd__all { display: inline-flex !important; margin: 6px 0 2px; font-size: 14px; font-weight: 600; color: var(--k-blue) !important; }

/* Hamburger + mobile drawer */
.hd__burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--k-line-dark); }
.hd__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--k-white); transition: transform .3s, opacity .2s; }
.hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1100px) { .hd__burger { display: none; } }
html.nav-open .floating { display: none; }

/* 5. HERO ------------------------------------------------------------------ */
.hero2 { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(600px, 88vh, 920px); padding: 96px 0 104px; background: var(--k-navy); color: var(--k-white); text-align: center; }
.hero2__media { position: absolute; inset: 0; z-index: -2; }
.hero2__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero2__shade { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(11, 22, 34, .55) 0%, rgba(11, 22, 34, .2) 100%),
    linear-gradient(180deg, rgba(11, 22, 34, .82) 0%, rgba(11, 22, 34, .7) 45%, rgba(11, 22, 34, .92) 85%, var(--k-navy) 100%); }
.hero2 .dots { z-index: -1; opacity: .7; }
.hero2__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero2__title { margin-top: 22px; font-size: clamp(2.6rem, 7.2vw, 5.75rem); line-height: 1.02; letter-spacing: -.04em; color: var(--k-white); text-wrap: balance; }
.hero2__title .w-light { color: rgba(255, 255, 255, .9); }
.mline { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.04em; } /* mask for the line-by-line reveal */
.mline > span { display: inline-block; }
.hero2__sub { margin-top: 26px; max-width: 760px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .8); }
.hero2__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero2__note { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .62); }

/* 6. K-LOGO MASK + STATS --------------------------------------------------- */
.stats2 { position: relative; background: var(--k-white); padding: var(--section-y) 0; }
@media (min-width: 768px) { .stats2 { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; } .stats2__inner { width: 100%; } }
/* The overlay is OFF by default (no JS / reduced motion → never covers content). js/motion.js adds .is-on. */
.kmask { position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: 5; display: none; pointer-events: none; }
.kmask.is-on { display: block; }
.kmask__svg { display: block; width: 100%; height: 100%; }
.kmask__fill { fill: var(--k-navy); }
.kmask__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.kmask__hint::after { content: ''; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(var(--k-amber), transparent); }

.statgrid { display: grid; grid-template-columns: 1fr 1fr; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1080px; border-top: 1px solid var(--k-line); }
@media (min-width: 768px) { .statgrid { grid-template-columns: repeat(3, 1fr); } }
.statgrid__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 30px 20px 30px 0; border-bottom: 1px solid var(--k-line); }
@media (min-width: 768px) { .statgrid__item { padding: 40px 28px 40px 0; } .statgrid__item:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--k-line); } }
@media (max-width: 767px) { .statgrid__item:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--k-line); } }
.statgrid dd { margin: 0; font-family: var(--f-head); font-size: clamp(3rem, 6.2vw, 5rem); font-weight: 250; line-height: 1; letter-spacing: -.045em; color: var(--k-amber-ink); font-variant-numeric: tabular-nums; }
.statgrid dt { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--k-muted); line-height: 1.45; }

/* 7. SERVICE CARDS --------------------------------------------------------- */
.svc2 { position: relative; isolation: isolate; overflow: hidden; background: var(--k-navy); color: var(--k-white); padding: var(--section-y) 0; }
.svc2 > .wrap { position: relative; z-index: 1; }
.svc2__head { text-align: center; }
.svc2__grid { display: grid; gap: 24px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 768px) { .svc2__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.scard { position: relative; display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--k-navy-2); border: 1px solid var(--k-line-dark); color: var(--k-ink); transition: border-color .4s, transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.scard:hover { border-color: rgba(243, 156, 31, .55); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.scard__media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; }
.scard__media > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: saturate(.92); }
.scard:hover .scard__media > img { transform: scale(1.08); filter: saturate(1.05); }
.scard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 34, .25), rgba(11, 22, 34, 0) 40%, rgba(11, 22, 34, .35)); pointer-events: none; }

/* Floating UI chips — GSAP owns `transform` (scroll parallax); hover drift uses the separate `translate` property */
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 9px; background: rgba(255, 255, 255, .96); color: var(--k-ink); font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); transition: translate 1.4s cubic-bezier(.2, .7, .2, 1); }
.chip .si { width: 18px; height: 18px; }
.chip code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--k-blue); }
.chip--icon { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 12px; }
.chip--icon .si { width: 24px; height: 24px; }
.chip--tl { top: 20px; left: 20px; }
.chip--tr { top: 20px; right: 20px; }
.chip--tc { top: 20px; left: calc(50% - 24px); }
.chip--br { right: 20px; top: 44%; }
.chip__tick { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--k-amber); color: var(--k-navy); font-size: 11px; font-style: normal; font-weight: 800; }
.chip--swatch { gap: 6px; padding: 10px 12px; }
.chip--swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--k-blue); }
.chip--swatch i:nth-child(2) { background: var(--k-amber); }
.chip--swatch i:nth-child(3) { background: var(--k-navy); }
.scard:hover .chip--tl { translate: -6px -6px; }
.scard:hover .chip--tr { translate: 6px -6px; }
.scard:hover .chip--tc { translate: 0 -8px; }
.scard:hover .chip--br { translate: 8px 4px; }

/* White text panel sitting on the bottom of the photo */
.scard__panel { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-radius: 10px; background: var(--k-white); }
.scard__panel h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--k-ink); }
.scard__panel p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--k-muted); }
.scard__arrow { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--k-blue); color: var(--k-white); transition: background-color .3s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.scard:hover .scard__arrow { background: var(--k-amber); color: var(--k-navy); transform: rotate(45deg); }
.scard:focus-visible { outline: 3px solid var(--k-amber); outline-offset: 4px; }

.svc2__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(44px, 6vw, 64px); }

/* 8. RESPONSIVE TWEAKS ----------------------------------------------------- */
@media (max-width: 767px) {
  .hero2 { min-height: 0; padding: 72px 0 80px; }
  .hero2__ctas { flex-direction: column; align-self: stretch; }
  .hero2__ctas .kbtn { width: 100%; }               /* thumb-friendly full-width CTAs */
  .svc2__ctas { flex-direction: column; }
  .svc2__ctas .kbtn { width: 100%; }
  .scard__media { aspect-ratio: 4 / 5; }            /* taller cards leave room for the panel */
  .scard__panel { padding: 16px 16px 16px 18px; }
  .scard__arrow { width: 44px; height: 44px; }
  .chip { font-size: 12.5px; padding: 8px 11px; }
  .chip--icon { width: 42px; height: 42px; }
  .chip--tl, .chip--tr, .chip--tc { top: 14px; }
  .chip--tl { left: 14px; } .chip--tr { right: 14px; }
  .chip--br { right: 14px; top: 38%; }
  /* WhatsApp button: smaller and clear of content edges */
  .home-v2 .floating { right: 12px; bottom: 12px; gap: 10px; }
  .home-v2 .floating__wa { width: 50px; height: 50px; }
  .home-v2 .floating__top { width: 40px; height: 40px; }
  .home-v2 .footer__bottom { padding-bottom: 88px; }
}
@media (max-width: 380px) {
  .chip--tr { display: none; }                       /* keep the smallest screens uncluttered */
}

/* Fixes after review */
.hd .skip-link { position: fixed; top: 8px; left: 12px; transform: translateY(-200%); transition: transform .2s; } /* fixed: always fully off-screen until focused */
.hd .skip-link:focus { transform: none; }
.hero2__sub { max-width: 920px; }
.hero2__subline { display: block; }
.hero2__subline + .hero2__subline { margin-top: 4px; color: var(--k-white); font-weight: 500; }
/* Floating buttons step aside while scrolling down on phones (see js/header.js) */
.floating { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.floating.is-away { transform: translateY(130%); opacity: 0; pointer-events: none; }
/* Open dropdowns become visible instantly (so keyboard focus can move into them); only the fade/slide animates */
.hd__item.is-open > .dd { transition: opacity .2s, transform .25s; }


/* ============================================================================
   STAGE 2 SECTIONS
   9. Shared section heads  10. Platforms  11. Proof slider  12. Selected work
   13. The Kanaiya Standard 14. How it works 15. Industries 16. Insights
   17. FAQ  18. Final CTA
   ========================================================================== */

/* 9. SHARED SECTION HEADS -------------------------------------------------- */
.sec-head--split { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .sec-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } .sec-head--split .lede { margin-top: 0; } }
.sec-head--split .h2 { max-width: 720px; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.kbtn .ic { width: 18px; height: 18px; }

/* 10. PLATFORMS ------------------------------------------------------------ */
.plat { position: relative; isolation: isolate; overflow: hidden; background: var(--k-navy-2); color: var(--k-white); padding: var(--section-y) 0; border-top: 1px solid var(--k-line-dark); }
.plat__wrap { position: relative; z-index: 1; }
.plat__head { margin-bottom: clamp(32px, 5vw, 56px); }
.plat__head .h2 { margin-top: 14px; }
.plat__rail, .plat__count { display: none; }
/* Stacked layout (default: phones, reduced motion, no JS) */
.plat__stage { display: grid; gap: 20px; }
.plat__panel { display: grid; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); background: rgba(255, 255, 255, .03); border: 1px solid var(--k-line-dark); }
@media (min-width: 900px) { .plat__panel { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.plat__num { font-family: var(--f-head); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--k-amber); }
.plat__name { display: flex; align-items: center; gap: .3em; margin-top: 10px; font-size: clamp(2.6rem, 6.4vw, 5.25rem); font-weight: 750; line-height: 1; letter-spacing: -.045em; color: var(--k-white); }
.plat__name .si { width: .72em; height: .72em; flex-shrink: 0; color: var(--k-amber); }
.plat__pitch { margin-top: 18px; max-width: 540px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .75); }
.plat__proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 24px; padding: 14px 0 14px 18px; border-left: 3px solid var(--k-amber); }
.plat__proof b { font-family: var(--f-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -.03em; color: var(--k-amber); white-space: nowrap; }
.plat__proof span { flex: 1 1 220px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.plat__proof em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.plat__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; color: var(--k-white); border-bottom: 1.5px solid rgba(243, 156, 31, .6); padding-bottom: 2px; transition: gap .3s, border-color .3s; }
.plat__link:hover { gap: 12px; border-color: var(--k-amber); }
.plat__art { display: flex; justify-content: center; color: var(--k-amber); }
.plat__art svg { width: 100%; max-width: 380px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Pinned layout (desktop; js/motion.js adds .is-pinned) */
@media (min-width: 1024px) {
  .plat.is-pinned { height: 100vh; height: 100svh; padding: 0; display: flex; align-items: center; }
  .plat.is-pinned .plat__wrap { display: grid; grid-template-columns: minmax(240px, .55fr) 1.45fr; gap: 56px; align-items: center; width: 100%; }
  .plat.is-pinned .plat__head { margin: 0; }
  .plat.is-pinned .plat__rail { display: grid; gap: 4px; margin-top: 40px; border-left: 1px solid var(--k-line-dark); }
  .plat.is-pinned .plat__rail li { position: relative; padding: 10px 0 10px 20px; font-family: var(--f-head); font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .45); transition: color .4s; }
  .plat.is-pinned .plat__rail li::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--k-amber); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
  .plat.is-pinned .plat__rail li.is-active { color: var(--k-white); }
  .plat.is-pinned .plat__rail li.is-active::before { transform: none; }
  .plat.is-pinned .plat__count { display: block; margin-top: 24px; font-family: var(--f-head); font-size: 14px; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
  .plat.is-pinned .plat__count span { color: var(--k-amber); }
  .plat.is-pinned .plat__stage { position: relative; display: block; height: min(560px, 68vh); }
  .plat.is-pinned .plat__panel { position: absolute; inset: 0; background: rgba(255, 255, 255, .025); }
}

/* 11. PROOF — testimonial slider on the brand-blue band -------------------- */
.proof { position: relative; isolation: isolate; overflow: hidden; background: var(--k-blue); color: var(--k-white); padding: var(--section-y) 0; }
.proof .dots { -webkit-mask-image: none; mask-image: none; opacity: .7; }
.proof .wrap { position: relative; z-index: 1; }
.proof__head { margin-bottom: clamp(40px, 6vw, 64px); }
.tslider__viewport { overflow: hidden; }
.tslider__track { display: flex; flex-direction: column; gap: 32px; }
.js .tslider__track { flex-direction: row; gap: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.tslide { flex: 0 0 100%; display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .tslide { grid-template-columns: minmax(220px, 300px) 1fr; gap: 56px; } }
.tslide__media { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4 / 5; max-width: 300px; width: 100%; border-radius: var(--radius-card); background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(11, 22, 34, .35)); border: 1px solid rgba(255, 255, 255, .22); }
@media (max-width: 767px) { .tslide__media { aspect-ratio: 1; max-width: 140px; } }
.tslide__initials { font-family: var(--f-head); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -.04em; color: var(--k-white); }
.tslide__photo-note { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.tslide__video { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--k-white); color: var(--k-navy); font-size: 13px; font-weight: 700; }
.tslide__body blockquote p { font-family: var(--f-head); font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; color: var(--k-white); text-wrap: balance; }
.tslide__body figcaption { margin-top: 26px; display: grid; gap: 4px; }
.tslide__body figcaption b { font-size: 17px; font-weight: 700; }
.tslide__body figcaption > span { font-size: 15px; color: rgba(255, 255, 255, .82); }
/* Placeholder markers for details the client still needs to supply */
.ph { display: inline-block; margin: 0 4px; padding: 0 8px; border: 1px dashed rgba(255, 255, 255, .6); border-radius: 4px; font-size: .78em; font-weight: 500; line-height: 1.6; color: rgba(255, 255, 255, .85); vertical-align: middle; }
.tslider__nav { display: none; }
.js .tslider__nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
@media (min-width: 768px) { .js .tslider__nav { margin-left: calc(min(300px, 100%) + 56px); } }
.tslider__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); border: 1.5px solid rgba(255, 255, 255, .5); color: var(--k-white); transition: background-color .25s, color .25s, border-color .25s; }
.tslider__btn:hover { background: var(--k-white); color: var(--k-blue); border-color: var(--k-white); }
.tslider__dots { display: flex; gap: 8px; }
.tslider__dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .35s, background-color .35s; }
.tslider__dots button[aria-current="true"] { width: 30px; background: var(--k-amber); }
.proof .kbtn:focus-visible, .proof a:focus-visible, .proof button:focus-visible { outline-color: var(--k-white); }

/* 12. SELECTED WORK -------------------------------------------------------- */
.work { background: var(--k-white); padding: var(--section-y) 0; }
.work__all { margin-top: 18px; }
.work__grid { display: grid; gap: clamp(36px, 5vw, 56px) 32px; }
@media (min-width: 1024px) {
  .work__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .wcard { grid-column: span 5; }
  .wcard--wide { grid-column: span 7; }
  .wcard:nth-child(2) { margin-top: 96px; }
  .wcard:nth-child(3) { margin-top: -48px; }
}
.wcard__link { display: block; color: var(--k-ink); }
.wcard__img { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: var(--k-off); border: 1px solid var(--k-line); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.wcard__link:hover .wcard__img img { transform: scale(1.04); }
.wcard__body { padding-top: 22px; }
.wcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wcard__tags li { padding: 4px 10px; border: 1px solid var(--k-line); border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--k-muted); }
.wcard h3 { margin-top: 14px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
.wcard__body > p { margin-top: 8px; color: var(--k-muted); max-width: 560px; }
.wcard__metrics { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--k-line); }
.wcard__metrics div { display: flex; flex-direction: column-reverse; gap: 4px; }
.wcard__metrics dd { margin: 0; font-family: var(--f-head); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--k-amber-ink); }
.wcard__metrics dd.is-text { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; color: var(--k-ink); }
.wcard__metrics dt { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--k-muted); }
.wcard__tech { margin-top: 16px; font-size: 13.5px; color: var(--k-muted); }
.wcard__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--k-blue); transition: gap .3s; }
.wcard__link:hover .wcard__cta { gap: 10px; }
.wcard__link:focus-visible { outline: 3px solid var(--k-amber); outline-offset: 6px; border-radius: 12px; }

/* 13. THE KANAIYA STANDARD ------------------------------------------------- */
.std-wrap { background: var(--k-off); padding: var(--section-y) 0; }
.std { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 64px); border-radius: 20px; background: var(--k-navy); color: var(--k-white); }
.std .dots { opacity: .6; }
.std__top { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .std__top { grid-template-columns: 1fr 1fr; gap: 56px; } }
.std .h2 { margin-top: 14px; }
.std__text { margin: 18px 0 30px; max-width: 520px; font-size: 1.1rem; line-height: 1.65; color: rgba(255, 255, 255, .75); }
.std__collage { position: relative; min-height: 340px; }
.std__photo { position: absolute; border-radius: 12px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.std__photo--a { left: 0; top: 0; width: 48%; aspect-ratio: 4 / 5; height: auto; }
.std__photo--b { right: 0; bottom: 0; width: 64%; aspect-ratio: 4 / 3; height: auto; border: 6px solid var(--k-navy); }
@media (max-width: 899px) { .std__collage { min-height: 0; aspect-ratio: 6 / 5; } }
.std__list { position: relative; display: grid; gap: 14px 40px; margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--k-line-dark); }
@media (min-width: 768px) { .std__list { grid-template-columns: 1fr 1fr; } }
.std__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.std__list .ic { margin-top: 2px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--k-amber); color: var(--k-navy); stroke-width: 3; }

/* 14. HOW IT WORKS --------------------------------------------------------- */
.how { background: var(--k-white); padding: var(--section-y) 0; }
.how__steps { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.how__list { position: relative; display: grid; gap: 40px; }
.how__line { position: absolute; left: 30px; top: 40px; bottom: 40px; width: 1px; background: var(--k-line); }
.how__line-fill { position: absolute; inset: 0; background: var(--k-amber); transform-origin: top; transform: scaleY(1); }
.how__step { position: relative; padding-left: 84px; }
.how__num { position: absolute; left: 0; top: 0; display: block; width: 62px; padding-bottom: 6px; background: var(--k-white); font-family: var(--f-head); font-size: 2.6rem; font-weight: 250; line-height: 1; letter-spacing: -.04em; color: var(--k-amber-ink); }
.how__step h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--k-ink); }
.how__step p { margin-top: 8px; color: var(--k-muted); max-width: 360px; }
@media (min-width: 900px) {
  .how__list { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .how__line { left: 0; right: 0; top: 38px; bottom: auto; width: auto; height: 1px; }
  .how__line-fill { transform-origin: left; }
  .how__step { padding-left: 0; }
  .how__num { position: static; width: auto; display: inline-block; padding: 0 18px 0 0; font-size: clamp(3.6rem, 5.4vw, 4.75rem); }
  .how__step h3 { margin-top: 28px; }
  .how__step:not(:last-child)::after { content: '›'; position: absolute; right: -32px; top: 38px; transform: translateY(-55%); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--k-white); border: 1px solid var(--k-line); font-size: 20px; line-height: 1; color: var(--k-amber-ink); }
}
.how__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(48px, 6vw, 64px); }

/* 15. INDUSTRIES (compact) ------------------------------------------------- */
.ind2 { background: var(--k-off); padding: var(--section-y) 0; }
.ind2__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .ind2__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.ind2__grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border-radius: 12px; border: 1px solid var(--k-line); background: var(--k-white); transition: border-color .3s, transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.ind2__grid a:hover { border-color: var(--k-blue); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(11, 22, 34, .5); }
.ind2__grid .ic { width: 26px; height: 26px; margin-bottom: 8px; color: var(--k-blue); }
.ind2__grid b { font-family: var(--f-head); font-size: 17px; font-weight: 650; color: var(--k-ink); letter-spacing: -.01em; }
.ind2__grid span { font-size: 14px; color: var(--k-muted); }
.ind2__grid .ind2__other { justify-content: center; background: var(--k-blue); border-color: var(--k-blue); }
.ind2__grid .ind2__other b { color: var(--k-white); font-size: 19px; }
.ind2__grid .ind2__other span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.ind2__grid .ind2__other .ic { width: 18px; height: 18px; margin: 0; color: currentColor; }
.ind2__grid .ind2__other:hover { background: var(--k-blue-600); }

/* 16. LATEST INSIGHTS ------------------------------------------------------ */
.ins { position: relative; isolation: isolate; overflow: hidden; background: var(--k-navy); color: var(--k-white); padding: var(--section-y) 0; }
.ins .wrap { position: relative; z-index: 1; }
.ins__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .ins__grid { grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(4, auto); row-gap: 20px; } .post2--feature { grid-row: span 4; } }
.post2__link { display: grid; gap: 18px; height: 100%; color: var(--k-white); }
.post2__img { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: var(--k-navy-2); }
.post2__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.post2__link:hover .post2__img img { transform: scale(1.05); }
@media (min-width: 640px) { .post2:not(.post2--feature) .post2__link { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 22px; } }
.post2__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.post2__cat { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--k-amber); }
.post2 h3 { margin-top: 10px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 650; line-height: 1.3; letter-spacing: -.02em; color: var(--k-white); transition: color .3s; }
.post2--feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; }
.post2__link:hover h3 { color: var(--k-amber); }
.post2__excerpt { margin-top: 12px; color: rgba(255, 255, 255, .72); max-width: 560px; }
.post2__read { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--k-white); }
.post2__read .ic { width: 16px; height: 16px; color: var(--k-amber); transition: transform .3s; }
.post2__link:hover .post2__read .ic { transform: translateX(4px); }

/* 17. FAQ ------------------------------------------------------------------ */
.faq2 { background: var(--k-white); padding: var(--section-y) 0; }
.faq2__wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq2__wrap { grid-template-columns: .8fr 1.2fr; gap: 72px; } .faq2__side { position: sticky; top: 110px; align-self: start; } }
.faq2__side .kbtn { margin-top: 24px; }
.faq--v2 { border: 0; border-top: 1px solid var(--k-line); border-radius: 0; background: none; }
.faq--v2 .faq__item { border-bottom: 1px solid var(--k-line); }
.faq--v2 .faq__item + .faq__item { border-top: 0; }
.faq--v2 .faq__q { margin: 0; }
.faq--v2 .faq__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; font-family: var(--f-head); font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; color: var(--k-ink); }
.faq--v2 .faq__icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius); border: 1px solid var(--k-line); color: var(--k-blue); transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .3s, color .3s, border-color .3s; }
.faq--v2 .faq__icon .ic { width: 18px; height: 18px; }
.faq--v2 .faq__btn[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--k-amber); border-color: var(--k-amber); color: var(--k-navy); }
.faq--v2 .faq__panel { overflow: hidden; }
.faq--v2 .faq__panel p { padding: 0 64px 24px 0; color: var(--k-muted); line-height: 1.7; }

/* 18. FINAL CTA ------------------------------------------------------------ */
.final { position: relative; isolation: isolate; overflow: hidden; background: var(--k-navy); color: var(--k-white); padding: clamp(96px, 13vw, 160px) 0; text-align: center; border-bottom: 1px solid var(--k-line-dark); }
.final__glow { position: absolute; z-index: -1; left: 50%; top: 100%; width: 70rem; max-width: 180vw; height: 36rem; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 104, 158, .65), rgba(243, 156, 31, .18) 60%, transparent); filter: blur(30px); }
.final__k { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(560px, 60vw); height: auto; transform: translateY(-50%) rotate(-8deg); opacity: .07; }
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final__title { font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1.03; letter-spacing: -.04em; color: var(--k-white); }
.final__text { margin-top: 22px; max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .75); }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.final__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 44px; font-size: 15px; color: rgba(255, 255, 255, .75); }
.final__contact li, .final__contact a { display: inline-flex; align-items: center; gap: 8px; }
.final__contact a:hover { color: var(--k-white); }
.final__contact .ic { width: 18px; height: 18px; color: var(--k-amber); }
@media (max-width: 767px) {
  .final__ctas, .how__cta { flex-direction: column; align-self: stretch; }
  .final__ctas .kbtn, .how__cta .kbtn { width: 100%; }
}
/* Slider dots: 24×24 touch targets with a small visual pill inside */
.tslider__dots { gap: 2px; }
.tslider__dots button { position: relative; width: 24px; height: 24px; background: none; transition: width .35s; }
.tslider__dots button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .35s, background-color .35s; }
.tslider__dots button[aria-current="true"] { width: 40px; background: none; }
.tslider__dots button[aria-current="true"]::before { width: 30px; background: var(--k-amber); }

/* Phones: let the browser skip rendering off-screen sections until they're near
   (big win for load-time main-thread work). Not used on desktop, where the
   pinned GSAP effects need real section heights. */
@media (max-width: 767px) {
  .plat, .proof, .work, .std-wrap, .how, .ind2, .ins, .faq2, .final, .home-v2 .footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

/* ============================================================================
   19. MOBILE / TABLET MENU — side drawer (<1100px)
   Open/close: .drw.is-open (js/header.js). Accordion: .drw__sub.is-open.
   Timings: --drw-ease / --drw-dur below.
   ========================================================================== */
.drw { --drw-ease: cubic-bezier(.32, .72, 0, 1); --drw-dur: .55s; position: fixed; inset: 0; z-index: 3; }
.drw[hidden] { display: none; }
.drw__backdrop { position: absolute; inset: 0; background: rgba(5, 10, 18, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s ease; }
.drw__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 92vw); overflow: hidden;
  background: radial-gradient(120% 60% at 100% 0%, rgba(35, 104, 158, .22), transparent 60%), var(--k-navy);
  border-left: 1px solid var(--k-line-dark); box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .65);
  transform: translateX(100%); transition: transform var(--drw-dur) var(--drw-ease); }
.drw.is-open .drw__backdrop { opacity: 1; }
.drw.is-open .drw__panel { transform: none; }

.drw__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--k-line-dark); }
.drw__logo img { height: 34px; width: auto; }
.drw__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--k-line-dark); color: var(--k-white); transition: background-color .25s, border-color .25s, transform .4s var(--drw-ease); }
.drw__close:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); transform: rotate(90deg); }

.drw__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 20px; }
.drw__list > li { border-bottom: 1px solid var(--k-line-dark); }

/* Staggered entrance of the top-level items and the footer */
.drw__item, .drw__foot { opacity: 0; transform: translateX(28px); transition: opacity .25s ease, transform .25s ease; }
.drw.is-open .drw__item, .drw.is-open .drw__foot {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s var(--drw-ease);
  transition-delay: calc(.14s + var(--i, 0) * .055s);
}

/* Group toggle */
.drw__toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 8px; text-align: left; color: rgba(255, 255, 255, .92); }
.drw__num { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--k-amber); opacity: .85; }
.drw__label { flex: 1; font-family: var(--f-head); font-size: 24px; font-weight: 650; letter-spacing: -.02em; transition: transform .35s var(--drw-ease), color .25s; }
.drw__toggle:hover .drw__label { transform: translateX(4px); color: var(--k-white); }
.drw__chev { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--k-line-dark); color: rgba(255, 255, 255, .8); transition: transform .45s var(--drw-ease), background-color .3s, color .3s, border-color .3s; }
.drw__chev .ic { width: 18px; height: 18px; }
.drw__toggle[aria-expanded="true"] .drw__label { color: var(--k-white); }
.drw__toggle[aria-expanded="true"] .drw__chev { transform: rotate(180deg); background: var(--k-amber); border-color: var(--k-amber); color: var(--k-navy); }

/* Accordion panel: smooth height via grid rows (no JS measuring) */
.drw__sub { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--drw-ease), opacity .3s ease; }
.drw__sub.is-open { grid-template-rows: 1fr; opacity: 1; }
.drw__sub-inner { min-height: 0; overflow: hidden; }
.drw__sub ul { display: grid; gap: 2px; padding: 0 0 10px; }
.drw__sub ul.drw__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
.drw__sub li { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.drw__sub.is-open li { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s var(--drw-ease); transition-delay: calc(.06s + var(--j, 0) * .035s); }
.drw__sub a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; color: var(--k-white); transition: background-color .2s, transform .35s var(--drw-ease); }
.drw__sub a:hover { background: rgba(255, 255, 255, .06); transform: translateX(4px); }
.drw__grid a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--k-line-dark); }
.drw__grid a:hover { transform: translateY(-2px); border-color: rgba(243, 156, 31, .5); }
.drw__ico { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--k-amber); }
.drw__ico .ic { width: 20px; height: 20px; }
.drw__ico--brand { background: var(--k-white); }
.drw__ico--brand .si { width: 22px; height: 22px; }
.drw__sub b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.drw__sub small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .56); }
.drw__thumb { flex-shrink: 0; width: 72px; height: 45px; border-radius: 6px; object-fit: cover; object-position: top; border: 1px solid var(--k-line-dark); background: var(--k-navy-2); }
.drw__all { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 16px; font-size: 14.5px; font-weight: 600; color: var(--k-amber); transition: gap .3s; }
.drw__all:hover { gap: 10px; }
.drw__all .ic { width: 16px; height: 16px; }

/* Footer: CTA + quick contact */
.drw__foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--k-line-dark); background: rgba(255, 255, 255, .02); }
.drw__foot .kbtn { width: 100%; }
.drw__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.drw__contact a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 8px; border: 1px solid var(--k-line-dark); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); transition: border-color .25s, background-color .25s, color .25s; }
.drw__contact a:hover { border-color: var(--k-amber); background: rgba(243, 156, 31, .08); color: var(--k-white); }
.drw__contact .ic { width: 20px; height: 20px; color: var(--k-amber); }
.drw__hours { margin-top: 12px; text-align: center; font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .45); }
.drw a:focus-visible, .drw button:focus-visible { outline: 3px solid var(--k-amber); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .drw__panel, .drw__backdrop, .drw__item, .drw__foot, .drw__sub, .drw__sub li, .drw__chev, .drw__label { transition: none !important; }
}

/* ============================================================================
   20. FOOTER NEWSLETTER — squared to match the rest of the design system
   ========================================================================== */
.home-v2 .newsletter__box { align-items: stretch; gap: 6px; padding: 6px; border-radius: 10px; }
.home-v2 .newsletter--dark .newsletter__box { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.home-v2 .newsletter--dark .newsletter__box:hover { border-color: rgba(255, 255, 255, .28); }
.home-v2 .newsletter--dark .newsletter__box:focus-within { border-color: var(--k-amber); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(243, 156, 31, .18); }
.home-v2 .newsletter__box input { min-height: 48px; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.home-v2 .newsletter__box .btn { min-height: 48px; padding: 12px 22px; border-radius: 6px; box-shadow: none; font-size: 15px; }
.home-v2 .newsletter__box .btn::after { display: none; }
.home-v2 .newsletter__box .btn:hover { transform: none; background: var(--k-blue-600); }
@media (min-width: 560px) { .home-v2 .newsletter__box { flex-direction: row; border-radius: 10px; } }
.home-v2 .newsletter__msg { padding-inline: 2px; }
/* Browser autofill: keep the dark field instead of the browser's light-blue/yellow fill */
.home-v2 .newsletter--dark input:-webkit-autofill, .home-v2 .newsletter--dark input:-webkit-autofill:hover, .home-v2 .newsletter--dark input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; caret-color: #fff; -webkit-box-shadow: 0 0 0 1000px #18232F inset; box-shadow: 0 0 0 1000px #18232F inset; transition: background-color 9999s ease-out 0s; }
.home-v2 .newsletter--dark input:autofill { color: #fff; box-shadow: 0 0 0 1000px #18232F inset; }

/* ============================================================================
   21. SERVICES SLIDER — the service cards scroll sideways (js/carousel.js)
   Native scroll-snap, so swipe/trackpad/keyboard work without JS; 3 cards per
   view on desktop, 2 on tablet, ~1 with a peek of the next card on phones.
   ========================================================================== */
.svc2__slider { margin-top: clamp(48px, 6vw, 72px); }
.svc2 .svc2__grid { display: flex; gap: 24px; margin: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 6px; }
.svc2 .svc2__grid::-webkit-scrollbar { display: none; }
.svc2 .svc2__grid > li { flex: 0 0 86%; scroll-snap-align: start; }
/* Native snapping for touch only; mouse/trackpad snapping is done in js/carousel.js */
@media (hover: none), (pointer: coarse) { .svc2 .svc2__grid { scroll-snap-type: x mandatory; } }
.svc2 .scard:focus-visible { outline-offset: -3px; } /* stays visible inside the scrolling track */
@media (min-width: 768px) { .svc2 .svc2__grid > li { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 1100px) { .svc2 .svc2__grid > li { flex-basis: calc((100% - 48px) / 3); } }
.svc2 .svc2__grid.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.svc2 .svc2__grid.is-dragging .scard { pointer-events: none; }
@media (min-width: 1100px) {
  /* three-up cards are narrower: tighten the floating chips and the text panel */
  .svc2 .chip { font-size: 12.5px; padding: 8px 11px; }
  .svc2 .chip--icon { width: 42px; height: 42px; padding: 0; }
  .svc2 .scard__panel { padding: 16px 18px; gap: 14px; }
  .svc2 .scard__panel p { font-size: 14px; }
  .svc2 .scard__arrow { width: 44px; height: 44px; }
}
.svc2__controls { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.svc2__progress { position: relative; flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.svc2__progress i { position: absolute; inset: 0; background: var(--k-amber); transform: scaleX(.375); transform-origin: left; transition: transform .25s ease-out; }
.svc2__arrows { display: flex; gap: 10px; }
.svc2__arrow { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: var(--k-white); transition: background-color .25s, border-color .25s, color .25s, opacity .25s; }
.svc2__arrow:hover:not(:disabled) { background: var(--k-amber); border-color: var(--k-amber); color: var(--k-navy); }
.svc2__arrow:disabled { opacity: .35; cursor: default; }
.svc2__arrow:focus-visible { outline: 3px solid var(--k-amber); outline-offset: 3px; }
.svc2__slider.is-static .svc2__controls { display: none; }
@media (prefers-reduced-motion: reduce) { .svc2 .svc2__grid { scroll-behavior: auto; } }

/* ============================================================================
   22. HOMEPAGE WORK GRID — same project cards and filters as portfolio.html
   (markup from _build: liveCard; filtering from js/interactions.js, max 6 cards).
   Scoped to .work so it can't clash with the floating .chip of the service cards.
   ========================================================================== */
.work .i { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.work__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.work .filter-tab { padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--k-line); background: var(--k-white); font-size: 14px; font-weight: 600; color: var(--k-muted); white-space: nowrap; transition: color .25s, border-color .25s, background-color .25s; }
.work .filter-tab:hover { color: var(--k-ink); border-color: rgba(35, 104, 158, .35); }
.work .filter-tab[aria-pressed="true"] { background: var(--k-navy); border-color: var(--k-navy); color: var(--k-white); }
.work .filter-tab small { margin-left: 4px; opacity: .6; font-weight: 500; }
.work .projects { display: grid; gap: 24px; }
@media (min-width: 768px) { .work .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .work .projects { grid-template-columns: repeat(3, 1fr); } }
.work .project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; border: 1px solid var(--k-line); background: var(--k-white); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.work .project-card[hidden] { display: none; }
.work .project-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(11, 22, 34, .35); }
.work .project-card__media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--k-off); }
.work .project-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.work .project-card:hover .project-card__media img { transform: scale(1.04); }
.work .project-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.work .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.work .chips .chip { position: static; display: inline-flex; padding: 4px 10px; border-radius: var(--radius); border: 1px solid var(--k-line); background: var(--k-off); color: var(--k-muted); font-size: 12px; font-weight: 500; box-shadow: none; translate: none; }
.work .chips .chip--brand { border-color: rgba(35, 104, 158, .2); background: #EAF3FA; color: #164569; }
.work .project-card__title { margin-top: 16px; font-family: var(--f-head); font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--k-ink); }
.work .project-card__title a::after { content: ''; position: absolute; inset: 0; }
.work .project-card__title a:focus-visible { outline: none; }
.work .project-card:has(.project-card__title a:focus-visible) { outline: 3px solid var(--k-amber); outline-offset: 3px; }
.work .project-card__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--k-muted); }
.work .project-card__foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work .project-card__foot p { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--k-muted); }
.work .project-card__foot .i { width: 14px; height: 14px; }
.work .project-card__arrow { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--k-off); flex-shrink: 0; transition: background-color .3s, color .3s; }
.work .project-card:hover .project-card__arrow { background: var(--k-blue); color: var(--k-white); }
.work .project-card__links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--k-line); font-size: 13px; color: var(--k-muted); }
.work .project-card__links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--k-blue); }
.work .project-card__links a:hover { text-decoration: underline; }
.work .project-card__links .i { width: 13px; height: 13px; }
.work__more { display: flex; justify-content: center; margin-top: 40px; }

/* ============================================================================
   24. PLATFORMS ON PHONES & TABLETS — compact stacked cards
   (the pinned version only runs at ≥1024px wide and ≥640px tall; see js/motion.js)
   ========================================================================== */
@media (max-width: 1023px) {
  .plat__panel { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .plat__art { justify-content: flex-start; }
  .plat__art svg { max-width: 150px; }
  .plat__proof { margin-top: 18px; padding: 10px 0 10px 16px; }
  .plat__link { margin-top: 18px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .plat__stage { grid-template-columns: 1fr 1fr; gap: 20px; }
  .plat__panel { align-content: start; }
  .plat__name { font-size: clamp(2.1rem, 5vw, 2.9rem); }
  .plat__pitch { font-size: 1rem; }
}
@media (max-width: 639px) {
  .plat__panel { padding: 22px 20px; gap: 14px; }
  .plat__name { font-size: 2.4rem; }
  .plat__pitch { margin-top: 12px; font-size: 1rem; }
  .plat__art svg { max-width: 110px; }
}
