/* =========================================================
   HUANTAR — One Page
   Built from Figma "Huantar — Website One Page v3 (Desktop 1440)"
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/sora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/sora-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens (Figma variables) ---------- */
:root {
  --ink: #0d0d12;
  --white: #ffffff;
  --sand: #f7f4ee;
  --periwinkle: #c8d2ff;
  --periwinkle-light: #dde3ff;
  --iris: #7c8cf8;
  --mist: #eef0ff;
  --graphite: #3a3b47;
  --line: #dcd8ce;
  --slate: #8a8b96;

  /* Accessibility variants (WCAG AA). To use the exact Figma colours,
     set --iris-text: var(--iris); --slate-text: var(--slate); --line-strong: var(--line); */
  --iris-text: #5563d9;   /* small iris text on light backgrounds: 5.0:1 on white */
  --slate-text: #6b6c77;  /* small grey text on sand: 4.7:1 */
  --line-strong: #8c887f; /* form field borders: 3.5:1 */
  --iris-large: #7283f7;  /* large iris text on sand: 3.0:1 (visually ≈ #7c8cf8) */

  --focus: var(--iris-text);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --container: 1200px;
  --gutter: 24px;
  --section-y: 64px;
  --header-h: 91px;
}

@media (min-width: 768px) { :root { --gutter: 40px; --section-y: 72px; } }
@media (min-width: 1280px) { :root { --gutter: 120px; --section-y: 88px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
::selection { background: var(--periwinkle); color: var(--ink); }

/* ---------- Accessibility helpers ---------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .section-ink, .footer, .menu-overlay, .factory, .solution, .site-header.is-dark { --focus: var(--periwinkle); }
.contact-form { --focus: var(--iris-text); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip-link:focus-visible { transform: none; outline-color: var(--periwinkle); }
main:focus { outline: none; }
.top-anchor { position: absolute; top: 0; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: 1.3px; text-transform: uppercase; }
.eyebrow-iris { color: var(--iris-text); }
.hero .eyebrow-iris { color: var(--iris); }           /* 4.1:1 on the dark hero */
.eyebrow-peri { color: var(--periwinkle); }
.eyebrow-white { color: var(--white); }
.text-iris { color: var(--iris); }
.text-iris-strong { color: var(--iris-text); }
.section-sand .text-iris { color: var(--iris-large); }
.section-sand .case-card .text-iris { color: var(--iris); }  /* white card, 24px = large text: 3.0:1 */

.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.2vw, 46px); line-height: 1.16; letter-spacing: -0.015em; }
.h2 strong { font-weight: 700; }
.h2-xl { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.h2-xl strong { font-weight: 700; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.005em; }
.h3-26 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.005em; }
.lead { font-size: 18px; line-height: 1.5; color: var(--graphite); }
.lead-640 { max-width: 640px; }
.body-17 { font-size: 17px; line-height: 1.5; }
.section-sand .body-17 { color: var(--graphite); }

/* ---------- Layout helpers ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 18px; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }

.split { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
  .split { flex-direction: row; align-items: flex-end; gap: 88px; }
  .split-left { width: 600px; flex-shrink: 0; }
  .split-left-640 { width: 640px; flex-shrink: 0; }
  .split-right { flex: 1; }
}

/* =========================================================
   BUTTONS — fill sweeps up from the bottom, icon nudges
   ========================================================= */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white);
  --btn-hover-bg: var(--iris-text); --btn-hover-fg: var(--white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start;
  min-height: 52px; padding: 16px 28px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1.25; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .45s var(--ease-out), transform .35s var(--ease-out), box-shadow .45s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-hover-bg);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn-icon { flex-shrink: 0; transition: transform .45s var(--ease-out); }
.btn:hover { color: var(--btn-hover-fg); box-shadow: 0 10px 24px -10px rgba(13,13,18,.45); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:focus-visible { color: var(--btn-hover-fg); }
.btn:hover .btn-icon, .btn:focus-visible .btn-icon { transform: translate(2px, -2px); }
.btn-arrow-r:hover .btn-icon, .btn-arrow-r:focus-visible .btn-icon { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn-sm { min-height: 43px; padding: 12px 22px; font-size: 15px; }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-hover-bg: var(--iris-text); }
.btn-white-iris { --btn-bg: var(--white); --btn-fg: var(--iris-text); --btn-hover-bg: var(--periwinkle); --btn-hover-fg: var(--ink); }
.hero .btn-white-iris { --btn-fg: var(--iris-text); }
.section-ink .btn-ink:not(.result .btn-ink) { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: background-color .5s var(--ease-io), box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(13,13,18,.06), 0 8px 24px rgba(13,13,18,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.logo { position: relative; display: block; width: 171.81px; height: 30px; border-radius: 4px; }
.logo img { position: absolute; inset: 0; width: 171.81px; height: 30px; transition: opacity .4s ease; }
.logo-light { opacity: 0; }

.nav { display: none; align-items: center; gap: 36px; font-weight: 500; font-size: 15px; line-height: 1.25; }
.nav-link { position: relative; padding-block: 6px; color: var(--ink); transition: color .3s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--iris); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover { color: var(--iris-text); }

/* ---------- Burger ---------- */
.burger { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 16px; margin-right: -6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .4s ease; }
.burger-label { position: relative; display: block; height: 16px; overflow: hidden; font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; text-transform: uppercase; }
.burger-label span { display: block; transition: transform .55s var(--ease-io); }
.burger-box { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); transition: background-color .4s ease, transform .4s var(--ease-out); }
.burger:hover .burger-box { transform: scale(1.06); }
.burger:active .burger-box { transform: scale(.94); }
.burger-line { position: absolute; left: 13px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .55s var(--ease-io), width .45s var(--ease-out), top .55s var(--ease-io), opacity .3s ease, background-color .4s ease; }
.burger-line:nth-child(1) { top: 15px; width: 18px; }
.burger-line:nth-child(2) { top: 21px; width: 12px; }
.burger-line:nth-child(3) { top: 27px; width: 15px; }
.burger:hover .burger-line { width: 18px; }

.menu-open .site-header { background: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; --focus: var(--periwinkle); }
.menu-open .logo-dark { opacity: 0; }
.menu-open .logo-light { opacity: 1; }
.menu-open .burger { color: var(--white); }
.menu-open .burger-label span { transform: translateY(-100%); }
.menu-open .burger-box { background: var(--periwinkle); }
.menu-open .burger-line { background: var(--ink); width: 18px; }
.menu-open .burger-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger-line:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .burger-line:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Overlay menu ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 55; display: flex; padding-top: var(--header-h); background: var(--ink); color: var(--white); overflow: hidden auto; overscroll-behavior: contain; visibility: hidden; clip-path: circle(0 at var(--mx, calc(100% - 46px)) var(--my, 46px)); transition: clip-path .8s var(--ease-io), visibility 0s linear .8s; }
.menu-open .menu-overlay { visibility: visible; clip-path: circle(150% at var(--mx, calc(100% - 46px)) var(--my, 46px)); transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu-ghost { position: absolute; right: -140px; bottom: -80px; width: 460px; height: auto; max-width: none; opacity: 0; transform: rotate(-12deg) scale(.9); transition: opacity .8s ease, transform 1.2s var(--ease-out); pointer-events: none; }
.menu-open .menu-ghost { opacity: 1; transform: rotate(-6deg) scale(1); transition-delay: .25s; }
.menu-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; padding-block: 32px 40px; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px; padding-block: 18px; border-bottom: 1px solid rgba(255,255,255,.14); opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .7s var(--ease-out), color .3s ease; }
.menu-open .menu-nav a, .menu-open .menu-foot { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i) * .07s); }
.menu-num { font-weight: 600; font-size: 12px; letter-spacing: 1.2px; color: var(--iris); }
.menu-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 8.5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; transition: transform .45s var(--ease-out), color .3s ease; }
.menu-arrow { align-self: center; color: var(--periwinkle); opacity: 0; transform: translateX(-12px); transition: opacity .35s ease, transform .45s var(--ease-out); }
.menu-nav a:hover .menu-text, .menu-nav a:focus-visible .menu-text, .menu-nav a[aria-current='true'] .menu-text { transform: translateX(8px); color: var(--periwinkle); }
.menu-nav a:hover .menu-arrow, .menu-nav a:focus-visible .menu-arrow, .menu-nav a[aria-current='true'] .menu-arrow { opacity: 1; transform: none; }
.menu-foot { display: flex; flex-direction: column; gap: 20px; opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .7s var(--ease-out); }
.menu-tagline { font-family: var(--font-display); font-size: 20px; line-height: 1.35; color: var(--sand); max-width: 300px; }
.menu-tagline strong { color: var(--periwinkle); }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .burger, .menu-overlay { display: none; }
}

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); box-shadow: 0 10px 30px rgba(13,13,18,.25); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85); transition: opacity .4s ease, transform .5s var(--ease-out), visibility 0s linear .5s, background-color .3s ease; --focus: var(--iris-text); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--iris-text); }
.to-top:focus-visible { border-radius: 50%; }
.to-top-ring { position: absolute; inset: 0; width: 56px; height: 56px; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 2.5; }
.to-top-track { stroke: rgba(255,255,255,.14); }
.to-top-progress { stroke: var(--periwinkle); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke .3s ease; }
.to-top:hover .to-top-progress { stroke: var(--white); }
.to-top-arrow { position: relative; }
.to-top:hover .to-top-arrow { animation: to-top-bounce .9s var(--ease-out) infinite; }
@keyframes to-top-bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }
.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (min-width: 1280px) { .to-top { right: 32px; bottom: 32px; } }

/* =========================================================
   01 HERO (video background)
   ========================================================= */
.hero { position: relative; overflow: hidden; color: var(--white); background: #2b3238; }
.hero-media { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20,24,28,.8) 0%, rgba(20,24,28,.55) 65%, rgba(20,24,28,.3) 100%); }
@media (min-width: 768px) { .hero::after { background: linear-gradient(90deg, rgba(24,29,34,.6) 0%, rgba(24,29,34,.2) 60%, rgba(24,29,34,0) 100%); } }
.hero-container { position: relative; z-index: 1; }
.hero-content { display: flex; flex-direction: column; gap: 30px; padding-block: 80px 96px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -0.025em; max-width: 780px; }
.hero-title strong { font-weight: 700; color: var(--periwinkle); }
.hero-intro { display: flex; flex-direction: column; gap: 12px; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--sand); }
.hero-intro-strong { font-weight: 500; color: var(--white); }

.video-toggle { position: absolute; right: 0; bottom: 24px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(13,13,18,.35); color: var(--white); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: .75; transition: opacity .3s ease, background-color .3s ease, transform .3s var(--ease-out); }
.video-toggle:hover { opacity: 1; background: rgba(13,13,18,.6); transform: scale(1.06); }
.video-toggle:focus-visible { opacity: 1; border-radius: 50%; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed='true'] .icon-play { display: block; }
.video-toggle[aria-pressed='true'] .icon-pause { display: none; }

@media (min-width: 1280px) {
  .hero { min-height: 689px; }
  .hero::after { background: linear-gradient(90deg, rgba(24,29,34,.35) 0%, rgba(24,29,34,0) 50%); }
  .hero-content { padding: 114px 0 125px 55px; }
  /* exact Figma placement: 1890 × 1064, offset -190px */
  .hero-video { inset: auto; left: 0; top: -190px; width: max(1890px, 100%); height: 1064px; object-position: left top; }
  .video-toggle { bottom: 32px; }
}

/* =========================================================
   02 OUR SOLUTIONS
   ========================================================= */
.solutions { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 1024px) { .solutions { grid-template-columns: 1fr 1fr; } }
.solution { position: relative; display: block; overflow: hidden; height: 352px; background: var(--ink); color: var(--white); }
.solution-img { position: absolute; max-width: none; object-fit: cover; transform-origin: 60% 40%; transition: transform 1.4s var(--ease-out); }
.solution-img-1 { left: -79px; top: -99px; width: 876px; height: 471px; }
.solution-img-2 { left: -17px; top: -144px; width: 634px; height: 496px; }
.solution-shade { position: absolute; left: -196px; top: -128px; width: 979px; height: 492px; background: linear-gradient(180deg, rgba(217,217,217,0) 22.6%, #000 87.7%); mix-blend-mode: multiply; transition: opacity .6s ease; }
.solution-body { position: absolute; inset: 48px 48px auto 48px; max-width: 492px; display: flex; flex-direction: column; align-items: flex-start; }
.solution-eyebrow { margin-top: 60px; }
.solution-title { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.18; letter-spacing: -0.01em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease-out); }
.solution-text { margin-top: 18px; font-size: 17px; line-height: 1.5; }
.solution-go { position: absolute; right: 32px; top: 32px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--ink); opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .4s ease, transform .6s var(--ease-out); }
.solution:hover .solution-img, .solution:focus-visible .solution-img { transform: scale(1.05); }
.solution:hover .solution-go, .solution:focus-visible .solution-go { opacity: 1; transform: none; }
.solution:hover .solution-title, .solution:focus-visible .solution-title { background-size: 100% 2px; }
.solution:focus-visible { outline-offset: 4px; border-radius: 0; }
@media (max-width: 1023px) {
  .solution-img { inset: 0; width: 100%; height: 100%; }
  .solution-shade { inset: 0; width: 100%; height: 100%; }
}
@media (max-width: 599px) {
  .solution { height: 400px; }
  .solution-body { inset: 32px 24px auto 24px; }
  .solution-eyebrow { margin-top: 48px; }
  .solution-title { font-size: 28px; }
  .solution-go { right: 20px; top: 24px; width: 40px; height: 40px; }
}

/* =========================================================
   03 EMBEDDED MARKETING TEAM
   ========================================================= */
.capabilities { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capabilities { grid-template-columns: repeat(4, 1fr); } }
.cap { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 168px; padding: 24px; background: var(--white); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.cap::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--iris); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.cap-num { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--iris-text); transition: transform .5s var(--ease-out); }
.cap h4 { margin-right: -8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.cap p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--graphite); }
.cap:not(.cap-brand):hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(13,13,18,.35); }
.cap:not(.cap-brand):hover::before { transform: scaleX(1); }
.cap:not(.cap-brand):hover .cap-num { transform: translateX(4px); }
.cap-brand { align-items: center; justify-content: center; background: var(--periwinkle); }
.cap-brand img { width: 83.08px; height: 72px; transition: transform .9s var(--ease-out); }
.cap-brand:hover img { transform: rotate(90deg) scale(.94); }
@media (max-width: 599px) { .cap-brand { display: none; } }

.projects { display: grid; gap: 12px; border-top: 2px solid var(--ink); }
@media (min-width: 768px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.projects li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 8px 0; }
.projects li::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: calc(100% - 24px); background: var(--iris); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.project-num { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.01em; color: var(--iris-large); transition: transform .5s var(--ease-out); }
.projects h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; }
.projects p { font-size: 15px; line-height: 1.5; color: var(--graphite); }
.projects li:hover::before { transform: scaleX(1); }
.projects li:hover .project-num { transform: translateX(6px); }

/* Growth Factory */
.factory { position: relative; overflow: hidden; background: #4d5058; color: var(--white); padding: 40px 24px; }
.factory-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.factory-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.factory-shade { position: absolute; inset: 0; background: rgba(13,13,18,.48); }
.factory > *:not(.factory-bg-wrap):not(.factory-shade) { position: relative; }
.factory-head { display: flex; flex-direction: column; gap: 14px; }
.factory-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.005em; max-width: 777px; }

.flow { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.flow-col { display: flex; flex-direction: column; gap: 12px; }
.flow-arrow { display: flex; justify-content: center; align-items: center; }
.flow-arrow img { width: 28px; height: 28px; transform: rotate(90deg); }
.stage { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.stage:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.stage-dark { padding: 18px 22px; min-height: 144px; background: var(--graphite); }
.stage-big { padding: 24px 22px; min-height: 180px; color: var(--ink); }
.stage-mist { background: var(--periwinkle-light); }
.stage-peri { background: var(--periwinkle); }
.stage-white { background: var(--white); }
.stage-label { font-weight: 600; font-size: 12px; line-height: 1.33; letter-spacing: .96px; text-transform: uppercase; }
.stage-dark .stage-label { color: var(--periwinkle); }
.stage-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.4; }
.stage-dark .stage-text { font-size: 15px; }

.factory-statement { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--white); }
.factory-quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; }
.factory-quote strong { color: var(--periwinkle); }
.factory-tag { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--periwinkle); }

@media (min-width: 1024px) {
  .factory { padding: 56px; min-height: 650px; }
  /* exact Figma placement: 1308 × 736 node rotated 90°, offset (-36, -53) */
  .factory-bg-wrap { inset: auto; left: -36px; top: -53px; width: 1308px; height: 736px; overflow: visible; }
  .factory-bg { inset: auto; left: 286px; top: -286px; width: 736px; height: 1308px; transform: rotate(90deg); }
  .flow { flex-direction: row; align-items: stretch; height: 300px; }
  .flow-col { width: 200px; flex-shrink: 0; }
  .flow-col .stage { flex: 1; min-height: 0; }
  .stage-big { width: 244px; flex: 1 1 244px; min-height: 0; }
  .flow-arrow { width: 28px; flex-shrink: 0; }
  .flow-arrow img { transform: none; }
  .factory-statement { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 64px; }
  .factory-quote { max-width: 724px; }
  .factory-tag { width: 300px; flex-shrink: 0; }
}

/* CTA */
.team-cta { display: flex; flex-direction: column; gap: 32px; padding: 40px 24px; background: var(--periwinkle); }
.team-cta-left h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.005em; }
.team-cta-left p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--graphite); }
.team-cta-right { display: flex; flex-direction: column; gap: 22px; }
.team-cta-motto { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; }
.team-cta .btn, .result .btn { --btn-hover-bg: var(--white); --btn-hover-fg: var(--ink); }
@media (min-width: 1024px) {
  .team-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; padding: 48px 56px; min-height: 207px; }
  .team-cta-left { max-width: 604px; }
  .team-cta-right { width: 420px; flex-shrink: 0; }
}

/* =========================================================
   04 AGENTIC CONTENT PRODUCTION
   ========================================================= */
.ai { overflow: hidden; }
.ai .container { position: relative; }
.ghost-h { position: absolute; left: calc(50% + 180px); top: -60px; width: 715.38px; height: 620px; max-width: none; pointer-events: none; }
.ai .h2-xl { max-width: 840px; }
@media (max-width: 767px) { .ghost-h { left: 40%; width: 420px; height: auto; opacity: .7; } }

.problem { display: flex; flex-direction: column; gap: 32px; }
.problem-text { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.4; }
.solution-copy { padding-left: 36px; border-left: 2px solid var(--periwinkle); font-size: 17px; line-height: 1.5; }
@media (min-width: 1024px) {
  .problem { flex-direction: row; justify-content: space-between; gap: 88px; }
  .problem-text { width: 537px; flex-shrink: 0; }
  .solution-copy { width: 575px; flex-shrink: 0; }
}

.steps { display: grid; gap: 24px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid rgba(200,210,255,.45); }
.steps li::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--periwinkle); transform: scaleX(1); transform-origin: left; transition: transform .8s var(--ease-out), background-color .4s ease; }
.steps span { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--periwinkle); }
.steps h4 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; transition: transform .5s var(--ease-out); }
.steps p { font-size: 15px; line-height: 1.5; }
.steps li:hover::before { background: var(--white); }
.steps li:hover h4 { transform: translateX(4px); }

.create-result { display: grid; gap: 24px; }
@media (min-width: 1024px) { .create-result { grid-template-columns: 589fr 587fr; min-height: 222px; } }
.create { display: flex; flex-direction: column; gap: 20px; padding: 32px 24px; border: 1px solid var(--white); }
.create h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.005em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 507px; }
.chips li { padding: 10px 18px; border: 1px solid var(--white); border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1.3; transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out); cursor: default; }
.chips li:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }
.result { display: flex; flex-direction: column; gap: 24px; padding: 32px 24px; background: var(--periwinkle); color: var(--ink); --focus: var(--ink); }
.result p { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.28; letter-spacing: -0.005em; max-width: 507px; }
@media (min-width: 1024px) { .create, .result { padding: 40px; } }

/* =========================================================
   05 MARKETING LEADERSHIP
   ========================================================= */
.leader-lead { font-size: 20px; line-height: 1.4; color: var(--ink); max-width: 440px; }
@media (min-width: 1024px) { .split-leader .split-right { max-width: 472px; margin-left: auto; } }

.founder { display: flex; flex-direction: column; margin-top: 48px; background: var(--white); overflow: hidden; }
.founder img { width: 100%; height: 280px; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease-out); }
.founder:hover img { transform: scale(1.04); }
.founder-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.founder h3 { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; }
.founder-role { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--iris-text); }
.founder-rule { display: block; width: 10px; height: 6px; }
.founder-text { max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--graphite); }
@media (min-width: 640px) {
  .founder { flex-direction: row; align-items: center; gap: 40px; padding-right: 40px; min-height: 205px; }
  .founder img { width: 205px; height: 205px; flex-shrink: 0; }
  .founder-body { padding: 0; }
}

.experience { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.cases { display: grid; gap: 24px; }
@media (min-width: 1024px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { display: flex; flex-direction: column; }
.case-media { position: relative; height: 244px; overflow: hidden; }
.case-media-pr { background: #2347e6; }
.case-media-pr img { position: absolute; left: -29px; top: -176px; width: 646px; height: 512px; max-width: none; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.case:hover .case-media-pr img { transform: scale(1.04); }
.case-media-tuum { background: var(--white); }
/* The result card overlaps the bottom 82px of the image, as in Figma */
.case-card { position: relative; flex: 1; margin-top: -82px; padding: 40px; background: var(--white); display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) { .case-card { min-height: 614px; } }
.case-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: 1.08px; }
.case-desc { font-size: 16px; line-height: 1.5; color: var(--graphite); }
.case-sub { font-weight: 600; font-size: 13px; line-height: 1.3; letter-spacing: .4px; color: var(--iris-text); }
.results { border-top: 2px solid var(--ink); }
.results > div { position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; min-height: 54px; padding-block: 12px; border-bottom: 1px solid var(--line); transition: background-color .3s ease; }
.results > div::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0; background: var(--iris); transform: translateY(-50%); transition: height .4s var(--ease-out); }
.results dt { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; transition: transform .45s var(--ease-out); }
.results dd { font-size: 14px; line-height: 1.5; color: var(--graphite); }
.results > div:hover { background: linear-gradient(90deg, var(--mist), rgba(238,240,255,0)); }
.results > div:hover::before { height: 60%; }
.results > div:hover dt { transform: translateX(10px); }
.disclaimer { font-size: 13px; line-height: 1.45; color: var(--slate-text); }
@media (max-width: 1023px) {
  .case-media-pr img { left: 0; top: -41px; width: 100%; height: 100%; object-position: center 55%; }
}
@media (max-width: 599px) {
  .case-card { padding: 28px 24px; }
  .results > div { grid-template-columns: 112px 1fr; gap: 14px; }
  .results dt { font-size: 20px; }
  .section-sand .results .text-iris { color: var(--iris-text); }
}

/* Tuum collage — card origins from Figma, cards rotated -15° */
.tuum-collage { position: absolute; inset: 0; transition: transform 1.6s var(--ease-out); }
.case:hover .tuum-collage { transform: translate(-8px, -5px); }
.tc { position: absolute; width: 176px; height: 221px; overflow: hidden; border-radius: 10px; background: #d9dbe4; transform: rotate(-15deg); transform-origin: 0 0; }
.tc > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tc:not(.tc-panel-card)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%); }
.tc-logo { font-family: var(--font-display); font-weight: 700; font-size: 10px; line-height: 12px; letter-spacing: -.02em; }
.tc-logo-light { position: absolute; z-index: 1; left: 16px; top: 16px; color: var(--white); }
.tc-title { position: absolute; z-index: 1; left: 16px; right: 14px; bottom: 16px; color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.04; letter-spacing: -0.03em; }
.tc-panel { position: absolute; left: 22px; top: 30px; width: 116px; height: 148px; padding: 12px 11px; border-radius: 6px; background: rgba(255,255,255,.97); color: var(--ink); }
.tc-sky .tc-panel { background: rgba(240,246,255,.96); }
.tc-pill { position: absolute; right: 10px; top: 9px; display: grid; place-items: center; width: 24px; height: 15px; border: 1px solid var(--ink); border-radius: 999px; }
.tc-ptitle { margin-top: 20px; font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.1; letter-spacing: -0.02em; }
.tc-hl { color: #5b6cf0; }

/* =========================================================
   06 PARTNERSHIPS
   ========================================================= */
.partnerships { position: relative; overflow: hidden; background: var(--periwinkle-light); padding-block: 72px; }
.partnerships-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% center; }
@media (min-width: 1280px) {
  .partnerships { padding-block: 111px; min-height: 764px; }
  .partnerships-bg { left: calc(50% - 751px); top: -30px; width: 1522px; height: 824px; }
}
@media (min-width: 1523px) { .partnerships-bg { left: -31px; width: calc(100% + 62px); } }
.partnerships-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.partnerships-content > .lead-ink, .partner-types { max-width: 520px; }
.partnerships-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.025em; }
.partnerships-title strong { font-weight: 700; }
.lead-ink { font-size: 18px; line-height: 1.5; }
.partner-types { width: 100%; }
.partner-types li { position: relative; display: flex; align-items: center; gap: 16px; height: 63px; border-top: 1px solid var(--ink); }
.partner-types li::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--iris-text); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.partner-types img { width: 16.15px; height: 14px; transition: transform .6s var(--ease-out); }
.partner-types span { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; transition: transform .5s var(--ease-out); }
.partner-types li:hover::after { transform: scaleX(1); }
.partner-types li:hover img { transform: rotate(90deg); }
.partner-types li:hover span { transform: translateX(6px); }
@media (max-width: 767px) { .partnerships-bg { opacity: .45; } }

/* =========================================================
   07 LET'S TALK
   ========================================================= */
.contact { padding-bottom: 80px; }
.contact-inner { display: flex; flex-direction: column; gap: 48px; }
.contact-intro { display: flex; flex-direction: column; gap: 22px; }
.contact-lead { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.4; }
@media (min-width: 1024px) {
  .contact-inner { flex-direction: row; align-items: flex-start; gap: 88px; }
  .contact-intro { width: 440px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 32px); }
  .contact-form { flex: 1; }
}

.contact-form { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--white); color: var(--ink); }
@media (min-width: 768px) { .contact-form { padding: 40px; } }
.form-note { margin-bottom: -4px; font-size: 13px; line-height: 1.4; color: var(--graphite); }
.req { margin-left: 2px; color: var(--iris-text); }
.field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 14px; line-height: 1.3; }
.field input, .field textarea, .select-trigger { width: 100%; min-height: 52px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 0; font-size: 16px; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:hover, .field textarea:hover, .select-trigger:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus, .select-trigger:focus-visible, .select.is-open .select-trigger { border-color: var(--ink); box-shadow: 0 0 0 3px var(--periwinkle); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-text); }
.field [aria-invalid='true'] { border-color: #c2272d; background: #fff7f7; }
.field [aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgba(194,39,45,.2); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; color: #b3261e; }
.field-error::before { content: '!'; display: grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: #b3261e; color: var(--white); font-size: 11px; font-weight: 700; }

.select { position: relative; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; border-color: var(--ink); }
.select-trigger img { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s var(--ease-out); }
.select.is-open .select-trigger img { transform: rotate(180deg); }
.select-value.is-placeholder { color: var(--slate-text); }
.select-list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); max-height: 320px; overflow-y: auto; padding: 1px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(13,13,18,.14); transform-origin: top; animation: select-in .25s var(--ease-out); }
@keyframes select-in { from { opacity: 0; transform: translateY(-6px) scaleY(.96); } }
.select-list li { position: relative; padding: 10px 16px 10px 16px; font-size: 15px; line-height: 1.4; cursor: pointer; transition: background-color .15s ease, padding-left .25s var(--ease-out); }
.select-list li:hover, .select-list li.is-active { background: var(--mist); padding-left: 22px; }
.select-list li[aria-selected='true'] { font-weight: 600; }
.select-list li[aria-selected='true']::after { content: ''; position: absolute; right: 16px; top: 50%; width: 10px; height: 6px; border-left: 2px solid var(--iris-text); border-bottom: 2px solid var(--iris-text); transform: translateY(-70%) rotate(-45deg); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.form-status.is-ok { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #eaf6ee; color: #17663a; }
.contact-form .btn[aria-busy='true'] { pointer-events: none; opacity: .7; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--white); padding-bottom: 48px; }
.footer-rule { height: 1px; background: var(--white); }
.footer-main { display: flex; flex-direction: column; gap: 28px; margin-top: 37px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 171.81px; height: 30px; }
.footer-brand p { font-family: var(--font-display); font-size: 16px; line-height: 1.4; color: var(--periwinkle); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 500; font-size: 15px; line-height: 1.25; }
.footer-nav a, .footer-legal { position: relative; padding-block: 4px; transition: color .3s ease; }
.footer-nav a::after, .footer-legal::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.footer-nav a:hover, .footer-legal:hover { color: var(--periwinkle); }
.footer-nav a:hover::after, .footer-legal:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; font-size: 13px; line-height: 1.4; color: var(--slate); }
@media (min-width: 768px) {
  .footer-main { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================================================
   SCROLL REVEAL — only when JS runs; content is always visible without it
   ========================================================= */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s ease, translate 1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .factory .flow-arrow[data-reveal] { translate: -10px 0; }
.js .factory .flow-arrow[data-reveal].is-in { translate: 0 0; }

/* hero entrance */
.js .hero-anim { opacity: 0; translate: 0 22px; animation: hero-in 1.1s var(--ease-out) forwards; animation-delay: calc(.15s + var(--d) * .12s); }
@keyframes hero-in { to { opacity: 1; translate: 0 0; } }
.js .hero-video { opacity: 0; transition: opacity 1.2s ease; }
.js .hero-video.is-ready { opacity: 1; }
.js .hero-media { background: url('../img/hero-poster.jpg') left top / cover no-repeat; }
@media (min-width: 1280px) { .js .hero-media { background-size: max(1890px, 100%) auto; background-position: 0 -190px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .js [data-reveal], .js .hero-anim { opacity: 1; translate: none; }
}

/* ---------- Forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn, .chips li, .select-trigger, .field input, .field textarea { border: 1px solid ButtonText; }
  .btn::before { display: none; }
  .burger-line { background: ButtonText; }
}
