/* Fortem Group — core stylesheet */

:root {
  --cream: #faf5ed;
  --cream-2: #f4ede1;
  --card: #fffdfa;
  --ink: #2a221a;
  --ink-2: #4a3f33;
  --muted: #7c6e5e;
  --amber: #d18a2c;
  --amber-dk: #9c5f10;
  --amber-sf: #f7e9d1;
  --sage: #61805a;
  --sage-sf: #e8efe4;
  --line: #e9dfcf;
  --line-2: #d9cbb4;
  --dark: #241d16;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --max: 1200px;
  --gap: 20px;
  --pad-card: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

/* smooth in-page anchor jumps, but never for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display { font-family: 'Outfit', sans-serif; letter-spacing: -0.03em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-n { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* ---------- animated background ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 620px; height: 620px; background: #f0c884; top: -180px; left: -140px; animation: drift1 26s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: #e7d3ae; top: 30%; right: -160px; animation: drift2 32s ease-in-out infinite; }
.blob-3 { width: 460px; height: 460px; background: #d9e3d2; bottom: -120px; left: 25%; animation: drift3 29s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(90px, 70px) scale(1.12); }
  66% { transform: translate(-40px, 120px) scale(0.94); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-120px, -80px) scale(1.15); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(80px, -60px) scale(1.1); }
  75% { transform: translate(-70px, -20px) scale(0.96); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav-outer {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-outer.stuck {
  background: rgba(250, 245, 237, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(70, 50, 20, 0.05);
}
@supports (backdrop-filter: blur(1px)) {
  .nav-outer.stuck { backdrop-filter: saturate(180%) blur(14px); }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 34px; width: auto; }
.brand-t { font-family: 'Outfit'; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.16em; line-height: 1.1; }
.brand-t small { display: block; font-size: 0.55rem; letter-spacing: 0.42em; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 30px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--amber); transition: width 0.32s var(--ease);
}
.nav-links a:hover::after, .nav-links a.on::after { width: 100%; }
.nav-links a.on { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--cream);
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: transform 0.28s var(--ease), background 0.28s, box-shadow 0.28s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(40,30,15,0.18); }
.btn .arw { transition: transform 0.28s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { box-shadow: 0 10px 26px rgba(209,138,44,0.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-wa { background: #25d366; border-color: #25d366; color: #06331a; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- generic bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-sf); color: var(--amber-dk);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 16px; border-radius: 999px; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.sec { padding: 92px 0; position: relative; }
.sec-tight { padding: 64px 0; }
.sec-head { max-width: 660px; margin-bottom: 48px; }
.sec-head.mid { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; margin: 14px 0 14px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-num {
  font-family: 'Outfit'; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em;
  color: var(--amber-dk); text-transform: uppercase;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--pad-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(80,58,25,0.09); border-color: var(--line-2); }

.badge { display: inline-block; background: var(--sage-sf); color: var(--sage); font-size: 0.74rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.badge-amber { background: var(--amber-sf); color: var(--amber-dk); }

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.09s; }
.rv-d2 { transition-delay: 0.18s; }
.rv-d3 { transition-delay: 0.27s; }
.rv-d4 { transition-delay: 0.36s; }
.rv-d5 { transition-delay: 0.45s; }

/* hero word reveal */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: wordUp 1s var(--ease) forwards;
}
@keyframes wordUp { to { transform: none; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 76px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }

.hero-globe { position: relative; aspect-ratio: 1 / 1; min-width: 0; }
/* if WebGL/three.js is unavailable, drop the globe and let the copy use the full width
   rather than leaving a dead column */
.hero-globe.no3d { display: none; }
.hero-grid.no-globe { grid-template-columns: 1fr; }
.globe-canvas { width: 100%; height: 100%; display: block; }
.globe-label {
  position: absolute; left: 6%; bottom: 8%;
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px 9px 14px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.globe-label b { display: block; font-family: 'Outfit', sans-serif; font-size: 0.86rem; }
.globe-label span { font-size: 0.76rem; color: var(--muted); }
.gl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); position: relative; flex: none; }
.gl-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--amber); opacity: 0.55; animation: glping 2.6s ease-out infinite;
}
@keyframes glping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-globe { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .hero-globe { max-width: 340px; }
  .globe-label { left: 0; bottom: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-dot::after { animation: none; }
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; margin: 22px 0 26px; max-width: 15ch; }
.hero h1 .am { color: var(--amber); }
.hero-lede { font-size: 1.18rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }
.hero-note a { color: var(--amber-dk); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--card); padding: var(--pad-card); }
.stat .n { font-family: 'Outfit'; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; color: var(--ink); line-height: 1; }
.stat .n .suf { color: var(--amber); }
.stat .l { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* ---------- marquee ---------- */
/* full-bleed: breaks out of any centred container so the row spans the viewport */
.marquee {
  overflow: hidden; position: relative; padding: 12px 0;
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-row { display: flex; align-items: center; gap: 58px; width: max-content; animation: slide 58s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 68s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* wordmarks sit directly on the page — no containers, low contrast, like a logo wall */
.bchip {
  background: none; border: none; padding: 0;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.02em;
  color: #b7a894; white-space: nowrap;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.bchip:hover { color: var(--ink); }
.bchip.more { font-weight: 500; font-size: 1rem; color: var(--muted); letter-spacing: 0.02em; }

/* Logo variant. A chip shows its logo if assets/brands/<slug>.svg loads; if the file
   is missing, js/main.js adds .no-logo and the wordmark shows instead. */
.bchip { display: inline-flex; align-items: center; }
/* Every logo gets an identical box and is scaled to fit inside it. The supplied files
   range from 1:1 to 8:1, so sizing by height alone made some three times the others —
   a fixed box normalises both the footprint and the gaps between them. */
.bchip {
  flex: none;
  width: clamp(116px, 11.5vw, 154px);
  height: clamp(46px, 4.8vw, 60px);
  justify-content: center;
}
.blogo {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  /* warm tint so they settle into the cream, colours kept intact */
  filter: sepia(0.26) saturate(0.88) contrast(0.96);
  mix-blend-mode: multiply;
  opacity: 0.9;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease), transform 0.35s var(--ease);
}
.bchip:hover .blogo { filter: none; opacity: 1; transform: scale(1.06); }

/* Only these two are genuinely white marks once their background plate is stripped —
   inverting them makes them read on cream. Rimmel and RYOBI render dark already. */
.bchip[data-brand="durex"] .blogo,
.bchip[data-brand="redken"] .blogo { filter: invert(1) sepia(0.26) saturate(0.88); }
.bchip[data-brand="durex"]:hover .blogo,
.bchip[data-brand="redken"]:hover .blogo { filter: invert(1); }


/* wordmark is the default; the logo only replaces it once it has actually loaded,
   so a missing or slow file can never leave an empty gap */
/* All 24 files are present, so the logo always shows. The wordmark stays in the markup
   for screen readers via alt text; a missing file would surface its alt text naturally. */
.bchip .blogo { display: block; }
.bchip .bfall { display: none; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cats-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cat { position: relative; overflow: hidden; min-height: 216px; display: flex; flex-direction: column; }
.cat .ic { font-size: 1.7rem; margin-bottom: 14px; display: block; }

/* ---------- full-bleed animated category scenes ---------- */
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

.ctile {
  --c1: #16243d; --c2: #080d16; --accent: var(--amber);
  position: relative; overflow: hidden;
  min-height: 300px; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(150deg, var(--c1) 0%, var(--c2) 78%);
  color: #f4efe6; isolation: isolate;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.ctile:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(30, 20, 8, 0.22); }

/* glow that tracks the cursor inside the tile (--mx/--my set by js/main.js) */
.ctile::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%);
}
.ctile:hover::before { opacity: 1; }

/* scrim keeps the copy legible over the moving particles */
.ctile::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(6,9,14,0.92) 4%, rgba(6,9,14,0.55) 32%, rgba(6,9,14,0) 62%);
}
.ctile > * { position: relative; z-index: 2; }

.ctile-num {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.6rem;
  line-height: 1; letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.1);
}
.ctile h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 800; margin-bottom: 10px; }
.ctile-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.85rem; color: var(--accent);
}
.ctile-go span { transition: transform 0.35s var(--ease); }
.ctile:hover .ctile-go span { transform: translateX(5px); }

/* the moving layer */
.cfx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cfx i {
  position: absolute; top: 0; left: var(--x); display: block;
  color: var(--accent);
  animation: cfall var(--t, 15s) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.cfx svg { width: var(--w, 26px); height: var(--w, 26px); display: block; }
@keyframes cfall {
  0%        { transform: translate3d(0, -90px, 0) rotate(var(--r, 0deg)) scale(var(--s, 1)); opacity: 0; }
  9%, 86%   { opacity: var(--o, 0.85); }
  100%      { transform: translate3d(var(--dx, 0px), 620px, 0) rotate(calc(var(--r, 0deg) + var(--spin, 200deg))) scale(var(--s, 1)); opacity: 0; }
}
/* the field wakes up under the cursor: faster, brighter, larger */
.cfx { transition: filter 0.45s var(--ease); }
.ctile:hover .cfx { filter: brightness(1.5) saturate(1.15); }
.ctile:hover .cfx i { animation-duration: calc(var(--t, 15s) * 0.42); }

/* the signature line that draws across each scene */
.ctile-line { position: absolute; left: 0; right: 0; bottom: 34%; z-index: 1; opacity: 0.5; }
.ctile-line svg { width: 100%; height: 60px; display: block; }
.ctile-line path {
  stroke: var(--accent); stroke-width: 1.4; fill: none;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: cdraw 7s ease-in-out infinite;
}
@keyframes cdraw {
  0%   { stroke-dashoffset: 620; }
  45%  { stroke-dashoffset: 0; }
  75%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -620; opacity: 0.15; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 1080px) { .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ctiles { grid-template-columns: 1fr; }
  .ctile { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfx i, .ctile-line path { animation: none !important; }
  .cfx i { opacity: 0.5; }
  .ctile-line path { stroke-dashoffset: 0; }
}

/* ---------- animated category tiles ---------- */
.cat-ico {
  --tint: var(--amber);
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--tint) 13%, #fff);
  color: color-mix(in srgb, var(--tint) 78%, #4a3f33);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
/* light sweep on hover */
.cat-ico::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.7) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--ease);
}
.cat:hover .cat-ico { transform: translateY(-3px) scale(1.04); background: color-mix(in srgb, var(--tint) 20%, #fff); }
.cat:hover .cat-ico::after { transform: translateX(120%); }
.cat-ico svg { width: 27px; height: 27px; display: block; overflow: visible; }
.cat-ico svg * { vector-effect: non-scaling-stroke; }

/* tints — kept inside the warm family so the grid still reads as one system */
.t-amber { --tint: #d18a2c; }
.t-sage  { --tint: #61805a; }
.t-clay  { --tint: #c07a55; }
.t-slate { --tint: #6d7f8c; }

/* motion: gentle by default, livelier on hover */
@keyframes ic-tilt  { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes ic-bob   { 0%,100% { transform: translateY(1.2px); } 50% { transform: translateY(-1.6px); } }
@keyframes ic-steam { 0% { opacity: 0; transform: translateY(3px) scaleY(0.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px) scaleY(1.15); } }
@keyframes ic-sway  { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(6deg); } }
@keyframes ic-ping  { 0% { opacity: 0.15; transform: scale(0.72); } 55% { opacity: 1; } 100% { opacity: 0.15; transform: scale(1.12); } }
@keyframes ic-blink { 0%, 62%, 100% { opacity: 0.22; } 78% { opacity: 1; } }
@keyframes ic-turn  { 0%,100% { transform: rotate(-13deg); } 50% { transform: rotate(13deg); } }

.cat-ico .ani  { transform-origin: 12px 12px; animation: ic-tilt 5.5s ease-in-out infinite; }
.cat-ico .bob  { transform-origin: 12px 12px; animation: ic-bob 3.4s ease-in-out infinite; }
.cat-ico .turn { transform-origin: 12px 12px; animation: ic-turn 5s ease-in-out infinite; }
.cat-ico .sway { transform-origin: 12px 20px; animation: ic-sway 5s ease-in-out infinite; }
.cat-ico .steam > * { transform-box: fill-box; transform-origin: center bottom; animation: ic-steam 2.6s ease-out infinite; }
.cat-ico .steam > *:nth-child(2) { animation-delay: 0.5s; }
.cat-ico .steam > *:nth-child(3) { animation-delay: 1s; }
.cat-ico .ping > * { transform-origin: 12px 12px; animation: ic-ping 2.4s ease-in-out infinite; }
.cat-ico .ping > *:nth-child(2) { animation-delay: 0.28s; }
.cat-ico .ping > *:nth-child(3) { animation-delay: 0.56s; }
.cat-ico .blink > * { animation: ic-blink 2.8s ease-in-out infinite; }
.cat-ico .blink > *:nth-child(2) { animation-delay: 0.35s; }
.cat-ico .blink > *:nth-child(3) { animation-delay: 0.7s; }
.cat-ico .blink > *:nth-child(4) { animation-delay: 1.05s; }
.cat-ico .pads > * { transform-box: fill-box; transform-origin: center; animation: ic-ping 2.2s ease-in-out infinite; }
.cat-ico .pads > *:nth-child(2) { animation-delay: 0.18s; }
.cat-ico .pads > *:nth-child(3) { animation-delay: 0.36s; }
.cat-ico .pads > *:nth-child(4) { animation-delay: 0.54s; }

.cat:hover .cat-ico .ani,
.cat:hover .cat-ico .turn,
.cat:hover .cat-ico .sway { animation-duration: 1.8s; }
.cat:hover .cat-ico .steam > *,
.cat:hover .cat-ico .ping > *,
.cat:hover .cat-ico .pads > * { animation-duration: 1.3s; }

@media (prefers-reduced-motion: reduce) {
  .cat-ico *, .cat-ico::after { animation: none !important; transition: none !important; transform: none !important; }
}
.cat h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 7px; }
.cat p { font-size: 0.9rem; color: var(--muted); }
.cat::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--amber); transition: width 0.5s var(--ease);
}
.cat:hover::after { width: 100%; }

/* ---------- services ---------- */
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc { display: flex; flex-direction: column; }
.svc .k { font-family: 'Outfit'; font-size: 0.76rem; letter-spacing: 0.2em; color: var(--amber-dk); font-weight: 600; margin-bottom: 16px; }
.svc h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.svc ul { margin-bottom: 22px; }
.svc li { font-size: 0.88rem; color: var(--ink-2); padding: 7px 0 7px 24px; position: relative; border-top: 1px solid var(--line); }
.svc li::before { content: '→'; position: absolute; left: 0; color: var(--amber); }
.svc .go { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--amber-dk); display: inline-flex; gap: 7px; align-items: center; }
.svc .go span { transition: transform 0.3s var(--ease); }
.svc:hover .go span { transform: translateX(5px); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: s; content: '0' counter(s);
  font-family: 'Outfit'; font-weight: 800; font-size: 2.4rem;
  color: var(--line-2); line-height: 1; display: block; margin-bottom: 12px;
  transition: color 0.4s;
}
.step:hover::before { color: var(--amber); }
.step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; }
.step p { font-size: 0.88rem; color: var(--muted); }

/* ---------- whatsapp strip ---------- */
.wa {
  background: var(--dark); color: #f3ece1; border-radius: var(--r-lg);
  padding: 46px; display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.wa::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,0.16), transparent 70%);
  right: -80px; top: -140px;
}
.wa h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; position: relative; }
.wa p { color: #b9ac99; max-width: 52ch; position: relative; }
.wa .r { position: relative; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
/* same family as the category scenes: dark tile, accent icon, cursor glow */
.tr {
  --accent: var(--amber);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(150deg, #2a2119 0%, #14100b 82%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r); padding: 24px;
  color: #f4efe6;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tr:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 20, 8, 0.2); }
.tr::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
}
.tr:hover::before { opacity: 1; }
.tr > * { position: relative; z-index: 1; }
.tr .tico {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 17%, transparent);
  color: var(--accent);
}
.tr .tico svg { width: 21px; height: 21px; display: block; }
.tr b { display: block; font-size: 0.95rem; font-family: 'Outfit'; color: #fffaf2; margin-bottom: 2px; }
.tr span { font-size: 0.82rem; color: #a99c8c; }

/* the tick and clock hand draw themselves in */
.tr .tico .tk { stroke-dasharray: 14; stroke-dashoffset: 14; animation: tkdraw 4.2s ease-in-out infinite; }
@keyframes tkdraw { 0%,12% { stroke-dashoffset: 14; } 32%,72% { stroke-dashoffset: 0; } 92%,100% { stroke-dashoffset: 14; } }
.tr .tico .hand { transform-origin: 12px 12px; animation: handturn 6s linear infinite; }
@keyframes handturn { to { transform: rotate(360deg); } }
.tr:hover .tico .tk { animation-duration: 1.8s; }
.tr:hover .tico .hand { animation-duration: 2.4s; }
@media (prefers-reduced-motion: reduce) {
  .tr .tico .tk { animation: none; stroke-dashoffset: 0; }
  .tr .tico .hand { animation: none; }
}

/* lead-in to the pinned flythrough — the heading above stays left-aligned with the
   other numbered sections; only this block centres */
.lead-block { text-align: center; margin-top: 34px; }
/* treated as a heading, not body copy — it carries the section into the flythrough */
.lead-in {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto;
  text-wrap: balance;
}
.lead-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; }
.lead-cue-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, transparent, var(--line-2));
}
.lead-cue-arw {
  font-size: 1.1rem; color: var(--amber); line-height: 1;
  animation: cuedrop 2.2s ease-in-out infinite;
}
@keyframes cuedrop {
  0%, 100% { transform: translateY(-3px); opacity: 0.45; }
  50%      { transform: translateY(3px);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .lead-cue-arw { animation: none; opacity: 0.8; } }

/* ---------- scroll-driven 3D flythrough ---------- */
.fly { position: relative; height: 340vh; }
.fly-stick {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: #17120d; color: #f3ece1;
}
.fly-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* vignette keeps text legible over the scene */
.fly-stick::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,7,4,0.82) 0%, rgba(10,7,4,0.22) 34%, rgba(10,7,4,0) 62%),
    linear-gradient(to bottom, rgba(10,7,4,0.55) 0%, rgba(10,7,4,0) 26%);
}

/* centred in the lower third rather than tucked in a corner, so it reads as a
   film caption rather than a footnote */
.fly-caps {
  position: absolute; z-index: 2;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(48px, 12vh, 130px);
  width: min(760px, 88vw); height: clamp(190px, 26vh, 250px);
  text-align: center;
}
.fly-step {
  position: absolute; left: 0; bottom: 0; width: 100%;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  pointer-events: none;
}
.fly-step.on { opacity: 1; transform: none; }
.fly-step .n {
  display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.3em; color: #2a1f10;
  background: var(--amber); padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.fly-step h3 {
  font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800;
  color: #fffaf2; margin-bottom: 12px; letter-spacing: -0.035em; line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.fly-step p {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem); color: #d6cbba;
  max-width: 56ch; margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.fly-dots { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); top: clamp(24px, 6vh, 58px); display: flex; gap: 9px; }
.fly-dot { width: 30px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.2); transition: background 0.45s var(--ease); }
.fly-dot.on { background: var(--amber); }

.fly-hint {
  position: absolute; z-index: 2; right: clamp(20px, 5vw, 64px); bottom: clamp(26px, 8vh, 74px);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: #a2957f; text-align: right;
  transition: opacity 0.6s var(--ease);
}
.fly-hint .ar { display: inline-block; animation: hintdrop 1.9s ease-in-out infinite; }
@keyframes hintdrop { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(5px); opacity: 1; } }
.fly-hint.gone { opacity: 0; }

/* shown if WebGL is unavailable or three.js fails to load */
.fly-fallback { position: absolute; inset: 0; display: none; }
.fly-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: sepia(0.3) contrast(1.05); }
.fly.no3d { height: auto; }
.fly.no3d .fly-stick { position: relative; height: auto; min-height: 62vh; }
.fly.no3d .fly-fallback { display: block; }
.fly.no3d .fly-canvas, .fly.no3d .fly-hint { display: none; }
.fly.no3d .fly-caps { position: relative; left: 0; bottom: 0; width: 100%; height: auto; padding: clamp(28px, 6vw, 64px); display: grid; gap: 30px; }
.fly.no3d .fly-step { position: relative; opacity: 1; transform: none; }

@media (max-width: 720px) {
  .fly { height: 280vh; }
  .fly-hint { display: none; }
  .fly-caps { width: calc(100% - 36px); height: clamp(200px, 30vh, 260px); bottom: 8vh; }
}
@media (prefers-reduced-motion: reduce) {
  .fly { height: auto; }
  .fly-stick { position: relative; height: 74vh; }
  .fly-hint { display: none; }
  .fly-step { opacity: 1; transform: none; position: relative; }
  .fly-caps { position: relative; left: 0; bottom: 0; width: 100%; height: auto; padding: clamp(28px, 6vw, 64px); display: grid; gap: 26px; }
}

/* ---------- photos ---------- */
figure { margin: 0; }
.ph {
  position: relative; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--cream-2);
}
.ph img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.16) saturate(1.14) contrast(1.05) brightness(1.01);
  transition: filter 0.7s var(--ease), transform 0.9s var(--ease);
}
/* warm wash ties the industrial greys into the cream/amber world */
.ph::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(155deg, rgba(209,138,44,0.16) 0%, rgba(209,138,44,0) 46%, rgba(42,34,26,0.18) 100%);
}
.ph:hover img { filter: sepia(0.03) saturate(1.05) contrast(1.02); transform: scale(1.03); }
.ph-wide { aspect-ratio: 3 / 2; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-sq { aspect-ratio: 1 / 1; }
.ph-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ph-cap {
  margin-top: 11px; font-size: 0.84rem; color: var(--muted);
  display: flex; gap: 8px; align-items: baseline;
}
.ph-cap b { color: var(--amber-dk); font-family: 'Outfit'; font-weight: 600; white-space: nowrap; }

/* ---------- story band ---------- */
.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: center; }
.story h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin: 14px 0 18px; }
.story p { color: var(--muted); margin-bottom: 15px; }
.story-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fct { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad-card); text-align: center; }
.fct b { display: block; font-family: 'Outfit'; font-size: 1.7rem; font-weight: 800; color: var(--amber-dk); }
.fct span { font-size: 0.8rem; color: var(--muted); }

/* ---------- big cta ---------- */
.cta-band {
  text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 68px 40px; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 50ch; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; }
.fld input, .fld select, .fld textarea {
  width: 100%; background: var(--cream); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 16px; font-size: 0.94rem;
  font-family: inherit; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-sf);
}
.fld textarea { resize: vertical; min-height: 108px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { font-size: 0.8rem; color: var(--muted); margin: 18px 0; line-height: 1.6; }
.consent a { color: var(--amber-dk); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- table ---------- */
.tbl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trow { display: grid; grid-template-columns: 2.4fr 1fr 0.9fr 1fr 1.1fr; gap: 14px; padding: 17px 24px; border-bottom: 1px solid var(--line); align-items: center; font-size: 0.92rem; }
.trow:last-child { border-bottom: none; }
.trow.head { background: var(--cream-2); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trow .lmeta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.trow .u { font-family: 'Outfit'; font-weight: 700; font-size: 1.05rem; }
.locked { filter: blur(5px); user-select: none; }

/* ---------- footer ---------- */
footer { background: var(--dark); color: #b9ac99; padding: 66px 0 30px; margin-top: 20px; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
footer h5 { font-family: 'Outfit'; font-size: 0.76rem; letter-spacing: 0.18em; color: #f3ece1; margin-bottom: 16px; text-transform: uppercase; }
footer li { margin-bottom: 9px; font-size: 0.9rem; }
footer li a:hover { color: var(--amber); }
footer .blurb { font-size: 0.9rem; max-width: 34ch; margin-bottom: 18px; }
.f-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.f-brand img { height: 34px; width: auto; filter: invert(1); }
.f-brand .brand-t { color: #f3ece1; }
.f-brand .brand-t small { color: #8d8172; }
.f-legal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.76rem; line-height: 1.75; color: #8d8172; }
.f-legal b { color: #b9ac99; font-weight: 600; }
.f-legal .tbc { color: var(--amber); background: rgba(209,138,44,0.12); padding: 1px 6px; border-radius: 4px; }

/* ---------- page hero (inner pages) ---------- */
.phero { padding: 74px 0 46px; }
.phero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin: 18px 0 18px; max-width: 18ch; }
.phero p { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }

/* ---------- prose ---------- */
.prose p { margin-bottom: 20px; font-size: 1.06rem; color: var(--ink-2); }
.prose p.lead { font-size: 1.24rem; color: var(--ink); font-weight: 500; }
.prose h3 { font-size: 1.4rem; margin: 36px 0 14px; }
.prose .sig { font-family: 'Outfit'; font-weight: 700; font-size: 1.15rem; color: var(--ink); border-left: 3px solid var(--amber); padding-left: 18px; margin-top: 34px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcs, .cats-3 { grid-template-columns: 1fr; }
  .cats, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .wa { grid-template-columns: 1fr; padding: 34px; }
  .trow { grid-template-columns: 1.6fr 1fr; row-gap: 8px; }
  .trow.head { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--card);
    border-bottom: 1px solid var(--line); padding: 20px 28px; gap: 16px;
  }
  .burger { display: block; }
  .nav-cta .btn { display: none; }
  .sec { padding: 62px 0; }
  .frow { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .cta-band { padding: 44px 24px; }
  .ph-duo { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats, .trust, .steps { grid-template-columns: 1fr; }
  .cat { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .marquee-row, .eyebrow .dot { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .word > span { animation: none; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
