/* ==========================================================================
   Sharp Large & 3D - shared stylesheet
   Monochrome identity: dark by default, white buttons; the work photos carry the colour.
   Shape rule: 8px on cards, images and inputs; pill on buttons, chips and nav.
   Icons are Phosphor (regular / fill), inlined as SVG.
   ========================================================================== */

:root {
  /* Palette (light theme, via the toggle) */
  --paper: #F4F4F2;
  --surface: #FCFCFB;
  --surface-2: #EAEAE7;
  --ink: #141416;
  --ink-2: #55555C;
  --ink-3: #8C8C93;
  --line: #DEDEDA;
  --line-2: #C6C6C1;
  /* Accent is the ink itself: black buttons on light, white buttons on dark */
  --accent: var(--ink);
  --accent-hover: color-mix(in srgb, var(--ink) 82%, var(--paper));
  --accent-ink: var(--ink);
  --accent-soft: color-mix(in srgb, var(--ink) 7%, var(--surface));
  --on-accent: var(--paper);
  --danger: #C2312B;
  --scrim: rgb(10 10 12 / 0.92);
  /* Background grid */
  --grid-line: rgb(20 20 22 / 0.055);
  --grid-line-strong: rgb(20 20 22 / 0.11);
  --grid-size: 56px;

  /* Type */
  --font-display: "Geologica", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-section: clamp(1.75rem, 3vw, 2.5rem);
  --text-hero: clamp(2.6rem, 5vw, 4.25rem);

  /* Space */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* Shape */
  --r: 8px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgb(20 20 22 / 0.05), 0 10px 28px -16px rgb(20 20 22 / 0.22);
  --shadow-2: 0 2px 4px rgb(20 20 22 / 0.06), 0 24px 48px -24px rgb(20 20 22 / 0.32);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --gutter: 20px;
  --header-offset: 88px;
  color-scheme: light;
}

/* Dark theme (the default) */
:root[data-theme="dark"] {
  --paper: #0E0E10;
  --surface: #161618;
  --surface-2: #1F1F22;
  --ink: #F2F2EF;
  --ink-2: #A3A3A8;
  --ink-3: #6E6E74;
  --line: #262629;
  --line-2: #3A3A3F;
  --accent-hover: #FFFFFF;
  --danger: #FF8A80;
  --grid-line: rgb(255 255 255 / 0.06);
  --grid-line-strong: rgb(255 255 255 / 0.12);
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -16px rgb(0 0 0 / 0.8);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -24px rgb(0 0 0 / 0.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-offset); }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
[hidden] { display: none !important; }
svg { flex: none; }

.skip-link {
  position: fixed; left: var(--sp-4); top: var(--sp-4); z-index: 300;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transform: translateY(calc(-100% - var(--sp-6)));
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-10); }
.section--sm { padding-block: var(--sp-8); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--rule { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head--wide { max-width: 1000px; }
.section-head .lead { margin-top: var(--sp-4); }
.section-foot { margin-top: var(--sp-6); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split--top { align-items: start; }

/* ---------- Type ---------- */
.title-hero { font-size: var(--text-hero); font-weight: 650; line-height: 1.02; letter-spacing: -0.04em; }
.title-section { font-size: var(--text-section); }
.title-section + .body-lg, .title-section + .lead { margin-top: var(--sp-4); }
.lead { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--ink-2); max-width: 60ch; }
.lead--sm { font-size: var(--text-md); }
.body-lg { font-size: var(--text-md); line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
/* Hero highlight: the orange from the logo underline */
.hl { color: #B4680A; }
:root[data-theme="dark"] .hl { color: #F0981C; }
.kicker { margin-bottom: var(--sp-4); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.num { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 46px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa svg { width: 20px; height: 20px; color: #25D366; } /* WhatsApp brand green logo */
.btn--sm { min-height: 38px; padding: 0 var(--sp-4); font-size: var(--text-sm); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent; pointer-events: none; position: relative; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--on-accent); border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.text-link {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.text-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.text-link:hover { text-decoration-color: var(--ink); }
.text-link:hover svg { transform: translate(2px, -2px); }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: var(--sp-3); left: 0; right: 0; z-index: 120; padding-inline: var(--sp-4); pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  height: 60px;
  padding: 0 var(--sp-2) 0 var(--sp-5);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: box-shadow 0.25s;
}
.is-scrolled .nav-bar { box-shadow: var(--shadow-1); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a { position: relative; padding: var(--sp-2) var(--sp-3); font-size: var(--text-base); font-weight: 500; color: var(--ink-2); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 2px; height: 1.5px; background: var(--ink); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span { position: absolute; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.15s; }
.menu-toggle span:nth-child(1) { transform: translateY(-5px); }
.menu-toggle span:nth-child(3) { transform: translateY(5px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }
.mobile-menu {
  pointer-events: auto;
  max-width: var(--container); margin: var(--sp-2) auto 0;
  padding: var(--sp-2);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r);
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
}
.mobile-menu a:not(.btn) svg { width: 16px; height: 16px; color: var(--ink-3); }
.mobile-menu a:not(.btn):hover, .mobile-menu a[aria-current="page"] { background: var(--surface-2); }
.mobile-menu .btn { width: 100%; margin-top: var(--sp-2); }

/* ---------- Home hero (text only) ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-offset) + var(--sp-9)) 0 var(--sp-9); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 70% at 50% 35%, #000 0%, transparent 75%);
}
.hero__inner { text-align: center; }
.hero__inner .title-hero { max-width: 22ch; margin: 0 auto var(--sp-6); text-wrap: balance; }
.hero__foot { display: grid; justify-items: center; gap: var(--sp-6); }
.hero__foot .lead { max-width: 48ch; text-wrap: balance; }
.hero__foot .btn-row { justify-content: center; }

/* Hero motion: drifting glow, pointer-lit grid, word-by-word headline, drawn underline */
@property --mx { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<length-percentage>"; inherits: true; initial-value: 35%; }
@keyframes glowDrift {
  0% { transform: translate(-58%, -55%) scale(1); }
  50% { transform: translate(-42%, -45%) scale(1.15); }
  100% { transform: translate(-52%, -60%) scale(0.95); }
}
@keyframes heroGridIn { from { opacity: 0; transform: scale(1.06); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } }
@keyframes underlineIn { to { background-size: 100% 0.09em; } }
.hero::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 40%; width: min(70vw, 760px); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(240 152 28 / 0.16), rgb(240 152 28 / 0.05) 55%, transparent);
  transform: translate(-50%, -50%);
}
:root:not([data-theme="dark"]) .hero::after { background: radial-gradient(closest-side, rgb(180 104 10 / 0.12), rgb(180 104 10 / 0.04) 55%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: heroGridIn 2s var(--ease) both; transition: --mx 0.6s ease-out, --my 0.6s ease-out; }
  .hero::after { animation: glowDrift 24s ease-in-out infinite alternate; }
  /* Desktop: the grid brightens in a circle around the pointer */
  .hero.is-lit::before {
    -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000 0%, transparent 75%), radial-gradient(220px circle at var(--mx) var(--my), #000 0%, transparent 70%);
            mask-image: radial-gradient(60% 70% at 50% 35%, #000 0%, transparent 75%), radial-gradient(220px circle at var(--mx) var(--my), #000 0%, transparent 70%);
  }
  /* Headline split into words by main.js */
  .hero-anim > .title-hero.is-split { animation: none; }
  .title-hero .w { display: inline-block; animation: wordIn 1.2s var(--ease) backwards; animation-delay: calc(0.25s + var(--i) * 0.11s); }
  .hero .hero-anim > .hero__foot { animation-duration: 1.1s; animation-delay: 1.5s; }
  .js .hero .hl {
    background: linear-gradient(currentColor, currentColor) 0 94% / 0 0.09em no-repeat;
    animation: underlineIn 1.4s var(--ease) 2s forwards;
  }
  /* Other headings marked data-words: same effect, started when scrolled into view */
  .js [data-words].is-split.reveal.is-visible,
  .js .section-head.reveal.is-visible > [data-words].is-split { animation: none; }
  .js [data-words] .w { display: inline-block; }
  .js :is([data-words].is-visible, .is-visible [data-words]) .w { animation: wordIn 1.2s var(--ease) backwards; animation-delay: calc(0.1s + var(--i) * 0.09s); }
  .js [data-words] .hl { background: linear-gradient(currentColor, currentColor) 0 94% / 0 0.09em no-repeat; }
  .js :is([data-words].is-visible, .is-visible [data-words]) .hl { animation: underlineIn 1.4s var(--ease) 1.3s forwards; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-offset) + var(--sp-7)) 0 var(--sp-6); border-bottom: 1px solid var(--line); }
.page-hero .title-hero { margin-top: var(--sp-3); font-size: clamp(2rem, 3.6vw, 3rem); text-wrap: balance; }
.page-hero .title-hero--sm { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.page-hero .lead { margin-top: var(--sp-3); font-size: var(--text-md); max-width: none; }
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb__sep { color: var(--ink-3); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Frames (images) ---------- */
.frame { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.zoomable { cursor: zoom-in; }
.zoomable:hover img { transform: scale(1.03); }

/* ---------- Showcase (wide image + rating) ---------- */
.showcase { padding-top: var(--sp-8); }
.showcase__title { max-width: 760px; margin-bottom: var(--sp-6); }
@media (min-width: 1081px) { .showcase__title { max-width: none; } }
.showcase__media { position: relative; }
.showcase__img { aspect-ratio: 21 / 9; }
.rating-card {
  position: absolute; left: var(--sp-6); bottom: calc(var(--sp-6) * -1);
  max-width: 320px;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.rating-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.rating-num { font-family: var(--font-display); font-size: 2.25rem; font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 14px; height: 14px; }
.rating-label { display: block; font-weight: 600; font-size: var(--text-sm); }
.rating-card p { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }

/* ---------- Services bento (6 tiles) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 270px; gap: var(--sp-3); }
.bento__tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface-2); isolation: isolate; }
.bento__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento__tile:nth-child(2), .bento__tile:nth-child(5), .bento__tile:nth-child(6) { grid-column: span 2; }
.bento__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bento__tile:hover img { transform: scale(1.04); }
.bento__tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgb(14 14 16 / 0.92) 0%, rgb(14 14 16 / 0.55) 42%, rgb(14 14 16 / 0) 72%);
}
.bento__zoom { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; }
.bento__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: var(--sp-1); padding: var(--sp-5); color: #F3F3F1; pointer-events: none; }
.bento__body .num { color: rgb(243 243 241 / 0.65); }
.bento__body h2 { color: #FCFCFB; font-size: var(--text-lg); line-height: 1.2; }
.bento__body p { font-size: var(--text-sm); line-height: 1.5; color: rgb(243 243 241 / 0.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento__tile:nth-child(1) .bento__body { padding: var(--sp-6); }
.bento__tile:nth-child(1) .bento__body h2 { font-size: 1.75rem; }
.bento__tile:nth-child(1) .bento__body p { font-size: var(--text-base); -webkit-line-clamp: 3; max-width: 46ch; }
.bento__body .text-link { pointer-events: auto; justify-self: start; margin-top: var(--sp-2); color: #FCFCFB; text-decoration-color: rgb(252 252 251 / 0.45); }
.bento__body .text-link:hover { text-decoration-color: #FCFCFB; }

/* ---------- Strengths: numbered list, no cards ---------- */
.numbered { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); }
.numbered__item { display: grid; grid-template-columns: 64px 1fr; padding: var(--sp-6) 0; border-top: 1px solid var(--line); }
.numbered__item h2 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.numbered__item p { color: var(--ink-2); margin-bottom: var(--sp-3); max-width: 52ch; }

/* ---------- How it works: process rule ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.process__step { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-5); border-top: 2px solid var(--ink); }
.process__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.process__step h2 { font-size: var(--text-lg); }
.process__step p { color: var(--ink-2); flex: 1; }
.process__step .text-link { margin-top: var(--sp-2); align-self: flex-start; }

/* ---------- Latest works viewer ---------- */
.viewer__bar { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.chips { flex: 1; display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.viewer__nav { display: flex; gap: var(--sp-2); flex: none; }
.viewer__card { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.viewer__stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 480px; }
.viewer__stage:not([hidden]) { animation: fadeUp 0.45s var(--ease) both; }
.viewer__media { position: relative; display: block; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.viewer__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer__media .blur { object-fit: cover; filter: blur(28px); transform: scale(1.2); opacity: 0.5; }
.viewer__media .fit { object-fit: contain; padding: var(--sp-4); }
.viewer__info { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-3); padding: var(--sp-7) var(--sp-6); border-left: 1px solid var(--line); }
.viewer__count { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); }
.viewer__info h2 { font-size: var(--text-section); }
.viewer__actions:empty { display: none; }

/* ---------- Reels ---------- */
.reels { margin-top: var(--sp-9); }
.reels__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.reels__end { display: flex; align-items: center; gap: var(--sp-4); }
.reels__nav { display: flex; gap: var(--sp-2); }
.reels__nav .icon-btn:disabled { opacity: 0.35; cursor: default; }
.reels--static .reels__nav { display: none; }
.reels__title { font-size: var(--text-lg); }
/* Reels scroll sideways: three across on desktop, the rest one swipe or arrow-click away */
.reels__grid { display: flex; gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.reels__grid::-webkit-scrollbar { display: none; }
.reel-card { display: flex; flex-direction: column; flex: 0 0 calc((100% - 2 * var(--sp-5)) / 3); scroll-snap-align: start; }
.reel-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: #18181B; }
.reel-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 60px; height: 60px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill);
  background: #FCFCFB; color: #141416;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s, background-color 0.2s;
}
.reel-card__play svg { width: 22px; height: 22px; margin-left: 2px; }
.reel-card__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.reel-card__play:active { transform: translate(-50%, -50%) scale(0.96); }
.reel-card.is-playing .reel-card__play { opacity: 0; pointer-events: none; }
.reel-card.is-playing .reel-card__media { cursor: pointer; }
.reel-card__mute {
  position: absolute; right: var(--sp-3); bottom: var(--sp-5); z-index: 2;
  width: 36px; height: 36px;
  background: rgb(14 14 16 / 0.55); border-color: rgb(252 252 251 / 0.25); color: #FCFCFB;
}
.reel-card__mute:hover { border-color: #FCFCFB; }
.reel-card__mute .vol-off { display: none; }
.reel-card__mute[aria-pressed="true"] .vol-on { display: none; }
.reel-card__mute[aria-pressed="true"] .vol-off { display: block; }
.reel-card__progress { position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-2); z-index: 2; height: 2px; background: rgb(252 252 251 / 0.25); overflow: hidden; }
.reel-card__progress i { display: block; width: 100%; height: 100%; background: #FCFCFB; transform-origin: left; transform: scaleX(0); }
.reel-card__body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; padding-top: var(--sp-4); }
.reel-card__date { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); }
.reel-card__date svg { width: 15px; height: 15px; }
.reel-card__caption { font-family: "Noto Sans Malayalam", var(--font-body); font-size: var(--text-base); font-weight: 500; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); }
.reel-card__body .text-link { margin-top: auto; align-self: flex-start; padding-top: var(--sp-2); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center;
  padding: var(--sp-8) var(--sp-7);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.cta-band__title { font-size: min(var(--text-section), 2.25rem); margin-bottom: var(--sp-3); white-space: nowrap; }
.cta-band__text { max-width: 54ch; font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); }

/* Home enquiry panel */
.enquiry {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: start;
  padding: var(--sp-8) var(--sp-7);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.enquiry__call { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--text-sm); }
.enquiry__form .field input, .enquiry__form .field textarea, .enquiry__form .field select { background-color: var(--paper); }
.field__optional { font-weight: 400; color: var(--ink-2); }

/* ---------- About: story ---------- */
.story { padding: calc(var(--header-offset) + var(--sp-7)) 0 var(--sp-8); }
.story__row { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--sp-7); align-items: center; }
.story__title { font-size: clamp(1.875rem, 3vw, 2.25rem); margin-bottom: var(--sp-3); text-wrap: balance; }
.story__tagline { font-size: var(--text-md); font-weight: 500; color: var(--ink-2); margin-bottom: var(--sp-5); }
.story__quote {
  margin: var(--sp-5) 0 var(--sp-3);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em;
}
.story__copy > .btn { margin-top: var(--sp-6); }
.story__media { position: relative; }
.story__img { aspect-ratio: 4 / 5; }
.story__badge {
  position: absolute; left: calc(var(--sp-5) * -1); bottom: var(--sp-6);
  display: grid; justify-items: start;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r);
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-2);
}
.story__badge-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.story__badge-label { font-size: var(--text-sm); font-weight: 600; }

/* Highlight strip */
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.highlights li { display: grid; gap: var(--sp-1); align-content: center; padding: var(--sp-6) var(--sp-5); }
.highlights li + li { border-left: 1px solid var(--line); }
.highlights__icon { display: block; margin-bottom: var(--sp-2); color: var(--ink-2); }
.highlights__icon svg { width: 22px; height: 22px; }
.highlights__value { font-family: var(--font-display); font-size: 2rem; font-weight: 650; line-height: 1.1; letter-spacing: -0.03em; }
.highlights__label { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.4; }

/* Technology */
.tech__img { aspect-ratio: 16 / 11; }
@media (min-width: 1081px) { .split:has(.tech__img) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-7); } }
.tech-lead { margin-top: var(--sp-5); padding-left: var(--sp-4); border-left: 3px solid var(--accent); font-size: var(--text-md); font-weight: 500; color: var(--ink); max-width: 52ch; }

/* Value / Vision / Mission */
.pillars { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--sp-3); }
.pillar { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pillar__top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.pillar__label { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.pillar h2 { font-size: var(--text-lg); line-height: 1.25; }
.pillar p:last-child { color: var(--ink-2); }
.pillar--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pillar--ink h2 { color: var(--paper); }
.pillar--ink p:last-child { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.pillar--ink .pillar__label { color: color-mix(in srgb, var(--paper) 65%, var(--ink)); }
.pillar--ink .icon-sq { background: color-mix(in srgb, var(--paper) 12%, transparent); color: var(--paper); }

/* How we work: numbered points, no cards */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.point { display: grid; gap: var(--sp-2); align-content: start; padding-top: var(--sp-5); border-top: 2px solid var(--ink); }
.point h2 { font-size: var(--text-lg); line-height: 1.25; }
.point p { color: var(--ink-2); }

/* Services marquee (the only marquee on the site) */
.services-marquee { overflow: hidden; position: relative; padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
.services-marquee::before, .services-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: var(--sp-9); pointer-events: none; }
.services-marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.services-marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.services-marquee__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.services-marquee:hover .services-marquee__track, .services-marquee:focus-within .services-marquee__track { animation-play-state: paused; }
.services-marquee__set { display: flex; align-items: center; }
.services-marquee__set a {
  display: inline-flex; align-items: center; gap: var(--sp-6);
  padding-inline: var(--sp-5);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap;
  transition: color 0.15s;
}
.services-marquee__set a::after { content: "/"; color: var(--ink-3); font-weight: 400; }
.services-marquee__set a:hover { color: var(--ink-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Icon square ---------- */
.icon-sq { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent-ink); }
.icon-sq svg { width: 20px; height: 20px; }

/* ---------- Services page ---------- */
.chip-index { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.chip-index a { padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: var(--text-sm); color: var(--ink-2); transition: color 0.15s, border-color 0.15s; }
.chip-index a:hover { color: var(--ink); border-color: var(--ink); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
.service { display: flex; flex-direction: column; gap: var(--sp-2); }
.service .frame { aspect-ratio: 4 / 3; margin-bottom: var(--sp-2); }
.service h2 { font-size: var(--text-lg); line-height: 1.25; }
.service p { color: var(--ink-2); }

/* ---------- Gallery ---------- */
.masonry { columns: 4 220px; column-gap: var(--sp-3); }
.tile { display: block; break-inside: avoid; margin-bottom: var(--sp-3); overflow: hidden; border-radius: var(--r); background: var(--surface-2); cursor: zoom-in; }
.tile img { width: 100%; transition: transform 0.6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile[hidden] { display: none; }
.gallery-filters { margin-bottom: var(--sp-6); flex-wrap: wrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip__n { margin-left: 2px; font-family: var(--font-mono); font-size: 0.85em; opacity: 0.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .gallery-filters { flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
.product { display: flex; flex-direction: column; gap: var(--sp-2); }
.product .frame { aspect-ratio: 1; margin-bottom: var(--sp-2); }
.product h2 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.price { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--sp-2); }
.product .btn { margin-top: auto; width: 100%; }

/* ---------- Contact ---------- */
.quote { margin: var(--sp-5) 0 var(--sp-6); padding-left: var(--sp-4); border-left: 3px solid var(--accent); font-size: var(--text-md); line-height: 1.6; color: var(--ink); max-width: 56ch; }
.info-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); transition: color 0.15s; }
a.info-row:hover span:not(.icon-sq) { text-decoration: underline; text-underline-offset: 3px; }
.info-row small { display: block; font-size: var(--text-sm); color: var(--ink-2); }
.info-row div span { display: block; font-weight: 600; word-break: break-word; }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.socials h2 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; letter-spacing: 0; margin-right: var(--sp-2); }
.social { display: flex; gap: var(--sp-2); }

.form-card { padding: var(--sp-7) var(--sp-6); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.form-card > h2 { font-size: var(--text-section); margin-bottom: var(--sp-2); }
.form-card > p { color: var(--ink-2); margin-bottom: var(--sp-6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.enquiry__form .field textarea { min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: var(--sp-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23A3A3A8'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field select:invalid { color: var(--ink-2); }
.field select option { color: var(--ink); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 0.75; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 16%, transparent); }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: 0.55; cursor: not-allowed; }
.field[data-error] input, .field[data-error] textarea, .field[data-error] select { border-color: var(--danger); }
.field__error { display: none; font-size: var(--text-sm); font-weight: 600; color: var(--danger); }
.field[data-error] .field__error { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.form-status { font-size: var(--text-sm); color: var(--ink-2); }
.form-status[data-state="error"] { color: var(--danger); }

/* Contact map */
.map-head, .map-frame { max-width: 880px; margin-inline: auto; }
.map-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-5); }
.map-head .body-lg { margin-top: var(--sp-2); }
.map-frame { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 8; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--sp-8) 0 var(--sp-5); border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.9fr) repeat(2, minmax(0, 1.2fr));
  gap: var(--sp-5);
  padding-bottom: var(--sp-7);
}
.footer-brand .brand img { height: 44px; }
.footer-brand address { margin-top: var(--sp-4); font-style: normal; font-size: var(--text-sm); line-height: 1.75; color: var(--ink-2); }
.footer-brand address strong { color: var(--ink); }
.footer-brand address a:hover { color: var(--ink); }
.footer-brand .social { margin-top: var(--sp-4); }
.site-footer h2 { margin-bottom: var(--sp-4); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; color: var(--ink); }
.footer-list { display: grid; gap: var(--sp-2); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.45; }
.footer-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-2); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: #25D366; color: #FFFFFF; /* WhatsApp brand green + white logo */
  box-shadow: 0 6px 20px rgb(37 211 102 / 0.35), var(--shadow-2);
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wa-float:hover { background: #1EBE5D; transform: translateY(-2px); }
.wa-float:active { transform: scale(0.95); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
  padding: var(--sp-9) var(--sp-4);
  background: var(--scrim);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: var(--r); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: var(--sp-5); text-align: center; color: #E9E9E6; font-size: var(--text-sm); }
.lightbox .icon-btn { position: absolute; background: rgb(252 252 251 / 0.08); border-color: rgb(252 252 251 / 0.2); color: #FCFCFB; }
.lightbox .icon-btn:hover { background: #FCFCFB; border-color: #FCFCFB; color: #141416; }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__prev { left: var(--sp-5); top: 50%; }
.lightbox__next { right: var(--sp-5); top: 50%; }

/* ---------- Motion: one fade-up, used for entrances only ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-anim > * { animation: fadeUp 0.6s var(--ease) backwards; }
.hero .hero-anim > * { animation-duration: 1s; }
.hero-anim > :nth-child(2) { animation-delay: 0.08s; }
.hero-anim > :nth-child(3) { animation-delay: 0.16s; }
.hero-anim > :nth-child(4) { animation-delay: 0.24s; }
.hero-anim > :nth-child(5) { animation-delay: 0.32s; }
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: fadeUp 0.6s var(--ease) var(--d, 0s) backwards; }

/* ---------- Motion: richer scroll effects (only when the visitor allows motion) ---------- */
@keyframes fadeUpBlur { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes unfold {
  from { opacity: 0; transform: translateY(28px); clip-path: inset(12% 5% 0 5% round var(--r)); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--r)); }
}
@keyframes settle { from { scale: 1.14; } to { scale: 1; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes pageOut { to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Smooth fade between pages (browsers with cross-document view transitions); the header stays put */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: pageOut 0.2s ease both; }
  ::view-transition-new(root) { animation: pageIn 0.45s var(--ease) both; }

  /* Section headings: kicker, title and lead come in one after another */
  .js .section-head.reveal.is-visible { animation: none; }
  .js .section-head.reveal.is-visible > * { animation: fadeUpBlur 0.7s var(--ease) backwards; }
  .js .section-head.reveal.is-visible > :nth-child(2) { animation-delay: 0.09s; }
  .js .section-head.reveal.is-visible > :nth-child(3) { animation-delay: 0.18s; }

  /* Photos unfold instead of just fading (not blocks with controls: clip-path also clips clicks) */
  .js :is(.story__media, .showcase__media, .tile).reveal.is-visible {
    animation: unfold 0.9s var(--ease) var(--d, 0s) backwards;
  }

  /* Scroll-linked extras where supported (Chrome, Edge, Opera; others keep the effects above) */
  @supports (animation-timeline: view()) {
    /* Pictures gently settle from a slight zoom as they scroll through the viewport */
    .frame img, .tile img, .bento__tile img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    /* Reading-progress bar along the top edge */
    body::after {
      content: ""; position: fixed; inset: 0 0 auto; z-index: 130; height: 2px;
      background: #B4680A; transform-origin: 0 50%; pointer-events: none;
      animation: progress linear both; animation-timeline: scroll(root);
    }
    :root[data-theme="dark"] body::after { background: #F0981C; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.9fr) repeat(2, minmax(0, 1.2fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-7); }
}
@media (max-width: 900px) {
  :root { --header-offset: 80px; }
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; }
  .br-wide { display: none; }
  .section { padding-block: var(--sp-9); }
  .split, .story__row { grid-template-columns: 1fr; gap: var(--sp-7); }
  .story__media { max-width: 680px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .bento__tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .numbered { grid-template-columns: 1fr; }
  .viewer__stage { grid-template-columns: 1fr; min-height: 0; }
  .viewer__media { aspect-ratio: 4 / 3; }
  .viewer__info { border-left: 0; border-top: 1px solid var(--line); padding: var(--sp-5); }
  .reels__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: var(--sp-2);
    scrollbar-width: none;
  }
  .reels__grid::-webkit-scrollbar { display: none; }
  .reel-card { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
  .cta-band, .enquiry { grid-template-columns: 1fr; gap: var(--sp-6); padding: var(--sp-7) var(--sp-5); }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights li:nth-child(3) { border-left: 0; }
  .highlights li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillars, .points { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-block: var(--sp-8); }
  .hero { padding: calc(var(--header-offset) + var(--sp-7)) 0 var(--sp-8); }
  .hero__inner .title-hero { margin-bottom: var(--sp-6); }
  /* Home headline: three lines on phones */
  .hero .title-hero { font-size: clamp(1.75rem, 8vw, 2rem); }
  /* Home hero description: three balanced lines on phones */
  .hero .lead { font-size: clamp(1rem, 4.4vw, 1.125rem); text-wrap: balance; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  /* Strengths heading: three lines on phones */
  .title-strengths { font-size: clamp(1.375rem, 6.1vw, 1.625rem); }
  .showcase__img { aspect-ratio: 4 / 3; }
  .rating-card { position: static; max-width: none; margin-top: var(--sp-3); box-shadow: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .bento__tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento__tile:nth-child(1) .bento__body { padding: var(--sp-5); }
  .bento__tile:nth-child(1) .bento__body h2 { font-size: var(--text-lg); }
  .process { grid-template-columns: 1fr; row-gap: var(--sp-6); }
  .viewer__bar { flex-wrap: wrap; }
  .viewer__nav { order: -1; margin-left: auto; }
  .cta-band__text { font-size: clamp(0.8125rem, 3.6vw, 0.9375rem); text-wrap: balance; }
  .cta-band .btn-row .btn { flex: 1 1 auto; }
  /* About heading: three lines on phones */
  .story__title { font-size: clamp(1.5rem, 7vw, 1.875rem); text-wrap: balance; }
  .title-explore, .title-how { font-size: clamp(1.4rem, 6.4vw, 1.75rem); text-wrap: balance; }
  .cta-band__title { font-size: min(1.75rem, calc((100vw - 82px) * 0.08)); } /* one line: fits the card width */
  .story__badge { left: var(--sp-3); bottom: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
  .story__badge-num { font-size: 2rem; }
  .highlights__value { font-size: 1.5rem; }
  .highlights li { padding: var(--sp-5) var(--sp-3); }
  .services-marquee__set a { font-size: var(--text-lg); }
  .service-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-3); }
  .product h2 { font-size: var(--text-base); }
  .product .btn { font-size: var(--text-sm); padding-inline: var(--sp-2); gap: var(--sp-1); }
  .form-card { padding: var(--sp-6) var(--sp-4); }
  .form-grid { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 4 / 5; }
  .map-head .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); }
  .brand img { height: 32px; }
  .wa-float { width: 52px; height: 52px; right: var(--sp-4); bottom: var(--sp-4); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: var(--sp-5); }
}
@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-bar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Contact page address: two lines, except on the smallest phones where it wraps naturally */
@media (max-width: 380px) {
  .br-addr { display: none; }
  .map-head .body-lg { font-size: var(--text-base); }
}

/* ---------- Footer legal link + legal pages (privacy policy) ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.legal > * { max-width: 72ch; }
.legal__section { padding-block: var(--sp-6); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-offset) + var(--sp-4)); }
.legal__section:first-child { border-top: 0; padding-top: 0; }
.legal__section h2 { margin-bottom: var(--sp-3); font-size: var(--text-lg); line-height: 1.3; }
.legal__section p, .legal__section li { font-size: var(--text-md); line-height: 1.7; color: var(--ink-2); }
.legal__section p + p, .legal__section p + ul, .legal__section ul + p { margin-top: var(--sp-3); }
.legal__section ul { display: grid; gap: var(--sp-2); padding-left: 1.25em; list-style: disc; }
.legal__section strong { color: var(--ink); font-weight: 600; }
.legal__section a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

