/* ============ Fonts ============ */
@font-face { font-family: "Century Gothic"; src: local("Century Gothic"), url("../assets/fonts/GOTHIC.TTF") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Century Gothic"; src: local("Century Gothic Italic"), url("../assets/fonts/GOTHICI.TTF") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Century Gothic"; src: local("Century Gothic Bold"), url("../assets/fonts/GOTHICB.TTF") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Century Gothic"; src: local("Century Gothic Bold Italic"), url("../assets/fonts/GOTHICBI.TTF") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

/* ============ Tokens (brand sheet) ============ */
:root {
  --lilac: #d5b8fc;
  --violet: #9e5bfb;
  --plum: #5c06a9;
  --silver: #c4c4c4;
  --white: #ffffff;
  --black: #000000;

  --bg: #050208;
  --surface: #110a1b;
  --line: rgba(213, 184, 252, 0.18);
  --text: #f4eeff;
  --text-dim: #b9adc9;        /* 9.6:1 on --bg */
  --on-lilac: #1b0533;
  --on-lilac-dim: #45246e;    /* 7.4:1 on --lilac */

  --font: "Century Gothic", "Avant Garde", "Futura", "Questrial", system-ui, sans-serif;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: var(--white); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--lilac); color: var(--on-lilac); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Background: soft purple bands drifting over black, as in the moodboard */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.aurora .b1 { width: 130vw; height: 42vh; left: -35vw; top: -14vh; background: radial-gradient(closest-side, var(--violet), var(--plum) 55%, transparent); opacity: .85; transform: rotate(-8deg); animation: drift-a 28s ease-in-out infinite alternate; }
.aurora .b2 { width: 60vw; height: 46vh; right: -22vw; top: -16vh; background: radial-gradient(closest-side, var(--lilac), transparent); opacity: .45; animation: drift-b 34s ease-in-out infinite alternate; }
.aurora .b3 { width: 95vw; height: 36vh; left: -40vw; top: 48vh; background: radial-gradient(closest-side, var(--violet), var(--plum) 60%, transparent); opacity: .7; transform: rotate(6deg); animation: drift-c 31s ease-in-out infinite alternate; }
.aurora .b4 { width: 120vw; height: 34vh; left: -20vw; bottom: -20vh; background: radial-gradient(closest-side, var(--lilac), var(--violet) 50%, transparent); opacity: .4; animation: drift-b 38s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(12vw, 6vh, 0) rotate(-2deg) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-10vw, 8vh, 0) scale(1.15); } }
@keyframes drift-c { to { transform: translate3d(18vw, -6vh, 0) rotate(10deg) scale(1.05); } }

/* Film grain over everything, like the brand's printed pieces */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Brand shapes: sparkle, starburst, flower, diamond, clover (SVG injected by main.js) */
.spark, .burst, .flower, .diamond, .clover { position: absolute; width: var(--s, 40px); aspect-ratio: 1; pointer-events: none; color: var(--c, var(--violet)); }
.burst { --s: 160px; color: var(--c, var(--plum)); }
.spark svg, .burst svg, .flower svg, .diamond svg, .clover svg { width: 100%; height: 100%; display: block; fill: currentColor; }
/* Shape set inline in a headline, like LOGO✻DESIGNS in the portfolio */
.inline-shape { position: relative; display: inline-block; width: .42em; margin-left: .18em; vertical-align: .08em; }

/* Element motion: slow and continuous, never bouncy */
.twinkle { animation: twinkle 4s ease-in-out infinite; }
.spin { animation: spin 40s linear infinite; }
.float { animation: float 6s ease-in-out infinite; }
.sway { animation: sway 9s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(20deg); opacity: .75; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(12deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

/* White grid with a stepped top edge that fades out, from the moodboard */
.gridlines {
  position: absolute; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%), linear-gradient(to right, transparent, #000 40%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%), linear-gradient(to right, transparent, #000 40%);
  mask-composite: intersect;
}
.gridlines::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 64px 64px;
}
/* The stepped shape is a blurred staircase mask, so every edge of every step (tops and side ends) fades softly */
.gridlines::before {
  --stairs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='3.5 4.5'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M115 0H75V10H50V22H25V38H-15V115H115Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--stairs) 0 0 / 100% 100% no-repeat;
  mask: var(--stairs) 0 0 / 100% 100% no-repeat;
}
@media (max-width: 600px) {
  .gridlines::before {
    --stairs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='6 9'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M115 0H75V10H50V22H25V38H-15V115H115Z'/%3E%3C/svg%3E");
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .twinkle, .spin, .float, .sway { animation: none !important; }
}

/* ============ Header ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.site-header.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 700; }
.nav-links .cta { color: var(--on-lilac); background: var(--lilac); font-weight: 700; border-radius: 999px; border: 0; }
.nav-links .cta:hover { color: var(--on-lilac); background: var(--white); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.menu-btn span::before { content: ""; position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; min-height: 54px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav-links .cta { justify-content: center; margin-top: 16px; }
}

/* ============ Shared type ============ */
.h-xl { font-size: clamp(64px, 15vw, 220px); line-height: .86; font-weight: 700; letter-spacing: -.04em; margin: 0; }
.h-l { font-size: clamp(38px, 6.4vw, 88px); line-height: .98; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h-m { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 700; margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-dim); max-width: 46ch; margin: 0; }
.accent { color: var(--lilac); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 700; transition: background .15s, color .15s; }
.btn-primary { background: var(--lilac); color: var(--on-lilac); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border: 1px solid rgba(213, 184, 252, .45); color: var(--text); background: #0d0714; }
.btn-ghost:hover { background: #22133a; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--lilac); border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--white); }

section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ============ Home: hero ============ */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 24px; align-items: center; }
.hero-name { position: relative; display: block; width: fit-content; margin: 0 0 32px; font-size: clamp(40px, 4.3vw, 66px); line-height: 1.05; }

/* Crystal ball, assembled from separate layers on a 1290 x 1219 canvas (positions are % of that) */
.crystal { width: clamp(300px, 30vw, 460px); position: relative; z-index: 1; }
.crystal-float { position: relative; aspect-ratio: 1290 / 1219; animation: crystal-hover 7s ease-in-out infinite; }
.crystal-float > * { position: absolute; }
.c-orbit { left: 15.1%; top: 21%; width: 77.1%; height: 52%; animation: ring-tilt 8s ease-in-out infinite; }
.c-orbit img, .c-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-orbit-back { z-index: 1; }
/* The front copy only shows the arc below the ring's long axis, so the ring wraps around the ball */
.c-orbit-front { z-index: 4; }
.c-orbit-front img { clip-path: polygon(0 4.4%, 100% 92.3%, 100% 100%, 0 100%); }
.c-ball { z-index: 3; left: 26.7%; top: 26.7%; width: 49%; }
.ring-guide { fill: none; stroke: none; }
.c-folder { z-index: 6; left: 3%; top: 64%; width: 22%; animation: folder-bob 5.5s ease-in-out infinite; }
.c-cursor { z-index: 6; left: 80%; top: 8%; width: 18%; animation: cursor-nudge 4.5s ease-in-out infinite; }
.crystal .spark { z-index: 7; }
.c-s2 { --s: 5.3%; left: 57.4%; top: 18.7%; --c: var(--white); animation-delay: -1.3s; }
.c-s3 { --s: 9.3%; left: 8%; top: 6%; --c: #b98cff; animation-delay: -2.4s; }
.c-s4 { --s: 6.2%; left: 74.4%; top: 77.6%; --c: var(--white); animation-delay: -.6s; }
@keyframes crystal-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes ring-tilt {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-3deg); }
}
@keyframes folder-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes cursor-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -8px); }
}
/* Full view only: nudge the ball into the empty space on its right (half of that space, at most 70px),
   and drop its top-left star, which sat too close to the star beside the headline */
@media (min-width: 1001px) {
  .crystal { translate: min(70px, max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) * .5) 0; }
  .c-s3 { display: none; }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .crystal { width: min(300px, 72vw); grid-row: 1; justify-self: center; margin-bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) { .crystal-float, .c-orbit, .c-folder, .c-cursor { animation: none; } }
.hero-name .line { display: block; text-wrap: balance; }
@media (min-width: 640px) { .hero-name .line { white-space: nowrap; } }
/* Headline intro: each line wipes in from left to right behind a soft edge; the second line waits until the page has loaded */
@media (prefers-reduced-motion: no-preference) {
  .hero-name .line {
    padding: 0 .1em .2em 0; margin: 0 -.1em -.2em 0;
    -webkit-mask: linear-gradient(90deg, #000 50%, transparent 66.67%) 100% 0 / 300% 100% no-repeat;
    mask: linear-gradient(90deg, #000 50%, transparent 66.67%) 100% 0 / 300% 100% no-repeat;
    animation: line-wipe 1.8s cubic-bezier(.45, .05, .35, 1) both;
  }
  .hero-wait .hero-name .line.accent { animation: none; }
}
@keyframes line-wipe { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.hero-name .spark { --s: clamp(28px, 3.6vw, 56px); right: -.2em; top: -.45em; --c: var(--lilac); }
.hero-statement { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.5; max-width: 40ch; margin: 0; color: var(--text-dim); }
.hero-statement strong { color: var(--white); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .gridlines { width: min(620px, 62vw); height: 520px; right: 0; bottom: 0; z-index: 0; }
.hero .burst.b1 { --s: clamp(120px, 15vw, 220px); right: 4%; top: 9%; --c: var(--black); }
.hero .burst.b2 { --s: clamp(110px, 13vw, 190px); left: -46px; bottom: -56px; --c: var(--white); }
.hero .spark.s1 { --s: 58px; right: 33%; top: 22%; --c: var(--violet); }
.hero .spark.s2 { --s: 26px; right: 31%; top: 33%; --c: var(--white); animation-delay: -1.4s; }
.hero .spark.s3 { --s: 50px; right: 12%; bottom: 18%; --c: var(--violet); animation-delay: -2.6s; }
.hero .spark.s4 { --s: 24px; right: 9%; bottom: 27%; --c: var(--white); animation-delay: -.7s; }
@media (max-width: 600px) {
  .hero .burst.b1 { --s: 104px; right: -30px; top: 84px; }
  .hero .spark.s1, .hero .spark.s2 { display: none; }
  .hero .gridlines { width: 80vw; height: 200px; }
}

/* ============ Services: flat rows with dividers ============ */
/* ============ What I design: 5 image cards ============ */
.design-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 26vw, 380px); gap: 18px; }
.dg { grid-column: span 2; }
.dg-wide { grid-column: span 4; }
.dg a { position: relative; display: block; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); isolation: isolate; }
.dg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.dg .logo-mosaic { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
/* Dark plum veil that rises with the label */
.dg a::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(27, 5, 51, .92) 0%, rgba(27, 5, 51, .55) 40%, rgba(27, 5, 51, 0) 75%); opacity: 0; transition: opacity .45s ease; }
.dg-label { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: clamp(18px, 2vw, 28px); color: var(--white); transform: translateY(40%); opacity: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
.dg-name { font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.dg-label .spark { position: relative; flex: none; --s: clamp(22px, 2vw, 30px); --c: var(--lilac); transform: scale(0) rotate(-120deg); transition: transform .55s cubic-bezier(.2, .7, .2, 1) .1s; }
.dg-go { margin-left: auto; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--on-lilac); font-size: 20px; transform: translateX(-10px); opacity: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1) .12s, opacity .4s ease .12s; }
.dg a:hover img, .dg a:focus-visible img, .dg a:hover .logo-mosaic, .dg a:focus-visible .logo-mosaic { transform: scale(1.06); }
.dg a:hover::after, .dg a:focus-visible::after { opacity: 1; }
.dg a:hover .dg-label, .dg a:focus-visible .dg-label { transform: none; opacity: 1; }
.dg a:hover .dg-label .spark, .dg a:focus-visible .dg-label .spark { transform: scale(1) rotate(0); }
.dg a:hover .dg-go, .dg a:focus-visible .dg-go { transform: none; opacity: 1; }
/* Touch screens have no hover: show the names all the time */
@media (hover: none) {
  .dg a::after, .dg-label, .dg-go { opacity: 1; transform: none; }
  .dg-label .spark { transform: none; }
}
.all-work { margin: 28px 0 0; text-align: right; }
@media (max-width: 900px) { .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; } .dg { grid-column: span 1; } .dg-wide { grid-column: span 2; } }
@media (max-width: 560px) { .design-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; } .dg, .dg-wide { grid-column: span 1; } }
/* Scroll-in: cards rise one after another (main.js adds .in) */
.design-grid.anim .dg { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 110ms); }
.design-grid.anim.in .dg { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .design-grid.anim .dg { opacity: 1; transform: none; transition: none; }
  .dg img, .dg .logo-mosaic, .dg-label, .dg-label .spark, .dg-go { transition: none; }
}

/* ============ Clients: looping logo belt ============ */
.logo-belt { overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.belt-row { display: flex; gap: 18px; width: max-content; list-style: none; margin: 0; padding: 0; animation: belt 44s linear infinite; }
.logo-belt:hover .belt-row { animation-play-state: paused; }
.belt-row li { flex: none; width: clamp(129px, 12.65vw, 184px); aspect-ratio: 4 / 3; border-radius: 18px; background: var(--white); color: #b6a3d3; display: grid; place-items: center; font-size: clamp(25px, 2.3vw, 34px); font-weight: 700; }
/* main.js measures each logo's visible area and positions it centred inside the tile with even breathing room */
.belt-row li { position: relative; overflow: hidden; }
.belt-row li img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; max-width: none; }
/* main.js sets --set to the width of one full set of logos (gap included), so shifting by it loops seamlessly */
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--set, 50%))); } }
@media (prefers-reduced-motion: reduce) {
  .belt-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .belt-row [aria-hidden="true"] { display: none; }
  .logo-belt { -webkit-mask-image: none; mask-image: none; }
}

/* ============ Home: selected work ============ */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.feature { position: relative; grid-column: span 4; display: flex; flex-direction: column; }
.feature.wide { grid-column: span 8; }
.feature-media { position: relative; flex: 1 1 auto; min-height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feature-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding-top: 16px; }
.feature-body .tag { font-size: 15px; color: var(--text-dim); }
.feature-body h3 { margin: 2px 0 0; font-size: 24px; }
.feature-body a::after { content: ""; position: absolute; inset: 0; }
.feature-body a:hover { color: var(--lilac); }
.feature:focus-within .feature-media { outline: 2px solid var(--lilac); outline-offset: 3px; }
.logo-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; height: 100%; position: absolute; inset: 0; }
.logo-mosaic img { background: var(--white); border-radius: 8px; object-fit: contain; padding: 6px; width: 100%; height: 100%; min-height: 0; }
@media (max-width: 900px) { .feature, .feature.wide { grid-column: span 12; } .feature-media { aspect-ratio: 4 / 3; min-height: 0; } }

/* ============ Process: steps along a pen-tool path ============ */
.process-scroll { overflow-x: auto; padding: 8px max(28px, 2.6%); scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.process-scroll:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 12px; }
.process-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); min-width: 1040px; }
.process-svg { grid-column: 1 / -1; grid-row: 2; width: 100%; height: auto; overflow: visible; }
.process-line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-dasharray: 1; }
.process-anchor path { stroke: var(--lilac); stroke-width: 1; }
.process-anchor circle { fill: var(--lilac); }
.process-anchor rect { fill: var(--white); stroke: var(--violet); stroke-width: 2; }
.process-cursor path { fill: var(--violet); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.process-cursor rect { fill: var(--violet); }
.process-cursor text { fill: var(--white); font-size: 12px; font-weight: 700; }
.process-steps { display: contents; list-style: none; }
.process-steps li { width: 140%; margin-inline: -20%; text-align: center; }
.process-steps li:nth-child(odd) { grid-row: 1; align-self: end; padding-bottom: 8px; }
.process-steps li:nth-child(even) { grid-row: 3; padding-top: 14px; }
.process-steps span { font-size: 13px; font-weight: 700; color: var(--lilac); }
.process-steps h3 { margin: 2px 0 6px; font-size: 18px; line-height: 1.2; font-weight: 700; color: var(--white); }
.process-steps p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-dim); }
.process-hint { margin: 14px 0 0; font-size: 14px; color: var(--text-dim); }
.process-track.anim .process-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-in-out; }
.process-track.anim .process-steps li, .process-track.anim .process-anchor, .process-track.anim .process-cursor { opacity: 0; transition: opacity .6s ease calc(var(--i, 8) * .28s); }
.process-track.in .process-line { stroke-dashoffset: 0; }
.process-track.in .process-steps li, .process-track.in .process-anchor, .process-track.in .process-cursor { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .process-cursor { display: none; } }
@media (max-width: 1240px) { .process-scroll { margin-inline: calc(-1 * var(--gutter)); } }

/* ============ Crystal ball game (About page) ============ */
.oracle-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.oracle-label { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
.oracle .lede { margin-top: 20px; max-width: 44ch; }
.oracle-stage { position: relative; width: clamp(220px, 26vw, 330px); margin: clamp(36px, 5vw, 60px) 0 8px; }
.oracle-ball { position: relative; z-index: 2; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50% 50% 30% 30%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.oracle-ball:focus-visible { outline: 2px solid var(--lilac); outline-offset: 10px; }
.oracle-float { position: relative; display: block; animation: oracle-float 6s ease-in-out infinite; }
.oracle-float img { display: block; width: 100%; height: auto; }
/* The sphere sits in the top 80% of the image; glass effects are clipped to it */
.oracle-glass { position: absolute; left: 4.6%; top: 0; width: 90.8%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none; }
.oracle-sheen { position: absolute; inset: -10%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%); transform: translateX(-110%); }
.oracle-light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 52%, rgba(255, 255, 255, .85), rgba(213, 184, 252, .5) 30%, transparent 66%); mix-blend-mode: screen; opacity: 0; }
.oracle-aura { position: absolute; z-index: 0; left: 50%; top: 40%; width: 125%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(158, 91, 251, .55), rgba(92, 6, 169, .25) 55%, transparent); opacity: .7; transition: opacity .45s ease; pointer-events: none; }
.oracle-ring { position: absolute; z-index: 1; left: 50%; top: 40%; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--lilac); transform: translate(-50%, -50%) scale(.7); opacity: 0; pointer-events: none; }
.oracle-particles { position: absolute; z-index: 3; left: 50%; top: 40%; pointer-events: none; }
.oracle-p { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); opacity: 0; }
.oracle-p svg { width: 100%; height: 100%; fill: var(--c); display: block; }
.oracle-p.diamond { background: var(--c); transform: rotate(45deg) scale(.7); }
@media (hover: hover) {
  .oracle-ball:hover { transform: scale(1.04); }
  .oracle-stage:has(.oracle-ball:hover) .oracle-aura { opacity: 1; }
  .oracle-ball:hover .oracle-sheen { transform: translateX(110%); transition: transform .9s ease; }
}
.oracle-ball:focus-visible { transform: scale(1.04); }
/* Casting: shake, inner light, ring and particles, about 1.2s */
.oracle-stage.casting .oracle-float { animation: oracle-shake 1.2s ease-in-out; }
.oracle-stage.casting .oracle-light { animation: oracle-light 1.2s ease-in-out; }
.oracle-stage.casting .oracle-aura { opacity: 1; }
.oracle-stage.casting .oracle-ring { animation: oracle-ring 1.1s ease-out .25s; }
.oracle-stage.casting .oracle-p { animation: oracle-p 1.1s cubic-bezier(.2, .7, .2, 1) var(--d) both; }
@keyframes oracle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes oracle-shake {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-5deg); } 26% { transform: rotate(4deg); } 40% { transform: rotate(-3deg); }
  54% { transform: rotate(2deg); } 68% { transform: rotate(-1deg); }
}
@keyframes oracle-light { 0%, 100% { opacity: 0; } 45%, 65% { opacity: .9; } }
@keyframes oracle-ring { from { opacity: .9; transform: translate(-50%, -50%) scale(.7); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
@keyframes oracle-p {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); }
  20%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); }
}
.oracle-result { display: grid; place-items: center; min-height: 170px; width: 100%; margin-top: 18px; }
.oracle-hint { margin: 0; font-size: 17px; color: var(--text-dim); }
.oracle-card { width: min(100%, 560px); padding: 24px clamp(20px, 3vw, 32px); border-radius: 22px; background: rgba(213, 184, 252, .08); border: 1px solid rgba(213, 184, 252, .28); box-shadow: 0 0 46px rgba(158, 91, 251, .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.oracle-card.show { animation: oracle-card .6s cubic-bezier(.2, .7, .2, 1) both; }
.oracle-cat { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.oracle-title { margin: 0 0 8px; font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.25; color: var(--white); text-wrap: balance; }
.oracle-title + .oracle-fact { color: var(--text-dim); font-size: clamp(16px, 1.3vw, 18px); }
.oracle-fact { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--white); text-wrap: balance; }
@keyframes oracle-card { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.oracle-again { margin-top: 22px; }
.oracle-again[hidden], .oracle-card[hidden], .oracle-hint[hidden] { display: none; }
.oracle-progress { margin: 18px 0 0; font-size: 14px; color: var(--text-dim); }
.oracle-count { font-weight: 700; color: var(--lilac); }

/* Fortune cards, one per fun fact. Small screens: a row of little cards under the ball. */
.oracle-deck { position: relative; z-index: 2; left: 50%; width: min(92vw, 440px); translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(5px, 1.6vw, 8px); margin-top: 18px; perspective: 900px; }
.fcard { --w: clamp(32px, 9vw, 46px); position: relative; width: var(--w); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.fcard-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); }
.fcard.open .fcard-in { transform: rotateY(180deg); }
.fcard-back, .fcard-front { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6%; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; overflow: hidden; }
/* Back: deep plum with a fine double frame, a crescent moon and star, and the card's numeral */
.fcard-back { background: radial-gradient(circle at 50% 35%, #5C06A9, #2a0d4d 70%); box-shadow: inset 0 0 0 1px rgba(213, 184, 252, .55), inset 0 0 0 4px #2a0d4d, inset 0 0 0 5px rgba(213, 184, 252, .3), 0 12px 30px rgba(10, 2, 20, .5); }
.fcard-back svg { width: 54%; fill: var(--lilac); overflow: visible; }
.fcard-back svg .moon { fill: none; stroke: var(--lilac); stroke-width: 6; stroke-linecap: round; }
.fcard-back svg .st { fill: #fff; }
.fcard-back b { font-size: 9px; letter-spacing: .14em; color: rgba(213, 184, 252, .85); font-weight: 700; }
/* Front: lilac glass with the fact's category */
.fcard-front { transform: rotateY(180deg); padding: 10%; background: linear-gradient(150deg, var(--lilac), var(--violet) 65%, #5C06A9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 26px rgba(158, 91, 251, .55); color: #1a0a33; text-align: center; }
.fcard-front i { font-style: normal; font-size: 14px; color: #fff; }
.fcard-front span { display: none; font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }
.fcard:focus-visible { outline: 3px solid var(--lilac); outline-offset: 4px; }
/* The card just revealed glows for a moment */
.fcard.chosen .fcard-front { animation: fcard-glow 1.6s ease-out; }
@keyframes fcard-glow { 0% { box-shadow: 0 0 0 rgba(213, 184, 252, 0); } 30% { box-shadow: 0 0 46px rgba(213, 184, 252, .95); } 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 26px rgba(158, 91, 251, .55); } }

/* Wide screens: the cards are fanned out either side of the ball, floating like a fortune-teller's spread */
@media (min-width: 1100px) {
  .oracle-deck { position: absolute; z-index: 1; inset: 0; left: 0; width: auto; translate: none; margin: 0; display: block; pointer-events: none; }
  .fcard { --w: clamp(96px, 8vw, 128px); position: absolute; left: 50%; top: 48%; margin: calc(var(--w) * -.75) 0 0 calc(var(--w) / -2); border-radius: 14px; pointer-events: auto; transform: translate(calc(var(--x) * var(--k, 1)), var(--y)) rotate(var(--r)); animation: fcard-float 7s ease-in-out calc(var(--i) * -1.1s) infinite; transition: filter .3s ease; }
  .fcard-back, .fcard-front { border-radius: 14px; }
  .fcard-back b { font-size: 12px; }
  .fcard-front { gap: 8px; }
  .fcard-front i { font-size: 20px; }
  .fcard-front span { display: block; }
  .fcard-back { box-shadow: inset 0 0 0 1px rgba(213, 184, 252, .55), inset 0 0 0 6px #2a0d4d, inset 0 0 0 7px rgba(213, 184, 252, .3), 0 18px 40px rgba(10, 2, 20, .55); }
  .fcard:hover { filter: drop-shadow(0 0 18px rgba(158, 91, 251, .7)); }
  .fcard:hover .fcard-in { translate: 0 -10px; }
}
/* Medium-wide screens have less room either side, so the spread draws in a little */
@media (min-width: 1100px) and (max-width: 1399px) { .fcard { --k: .74; } }
@keyframes fcard-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .fcard, .fcard-in, .fcard.chosen .fcard-front { animation: none; transition: none; } }
@media (prefers-reduced-motion: reduce) {
  .oracle-float, .oracle-stage.casting .oracle-float, .oracle-stage.casting .oracle-ring, .oracle-stage.casting .oracle-p, .oracle-card.show { animation: none; }
  .oracle-ball, .oracle-aura { transition: none; }
}

/* ============ About ============ */
.about-page { padding-top: 130px; }
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.portrait { position: relative; width: 100%; max-width: 600px; isolation: isolate; }
/* Cut-out photo sits straight on the background; the crop at the waist fades out */
.portrait img { position: relative; z-index: 1; width: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }

/* Design-tool scene behind the photo: canvas grid, selection box, a collaborator cursor */
.p-grid {
  position: absolute; inset: 2% 0 8% 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.p-select { position: absolute; z-index: 2; left: 17%; right: 17%; top: 3%; bottom: 13%; border: 1.5px solid var(--violet); pointer-events: none; }
.p-select i { position: absolute; width: 11px; height: 11px; background: var(--white); border: 1.5px solid var(--violet); }
.p-select i:nth-of-type(1) { left: -6px; top: -6px; }
.p-select i:nth-of-type(2) { right: -6px; top: -6px; }
.p-select i:nth-of-type(3) { left: -6px; bottom: -6px; }
.p-select i:nth-of-type(4) { right: -6px; bottom: -6px; }
.p-name { position: absolute; left: -1px; bottom: calc(100% + 8px); font-size: 13px; color: var(--lilac); white-space: nowrap; }
.p-cursor { position: absolute; z-index: 3; right: 6%; top: 38%; display: flex; align-items: flex-start; pointer-events: none; animation: cursor-move 11s ease-in-out infinite; }
.p-cursor svg { width: 34px; height: 34px; fill: var(--violet); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.p-cursor span { margin: 26px 0 0 -6px; background: var(--violet); color: var(--white); font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 4px 12px 12px 12px; }
@keyframes cursor-move {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-46px, 64px); }
  55% { transform: translate(-14px, 120px); }
  80% { transform: translate(18px, 40px); }
}
.portrait .spark { --s: 44px; left: 4%; top: 14%; z-index: 2; --c: var(--lilac); }
@media (prefers-reduced-motion: reduce) { .p-cursor { animation: none; } }
.portrait .flower { --s: 62px; right: -18px; top: 8%; --c: var(--lilac); }
.about-text p { color: var(--text-dim); margin: 0 0 18px; max-width: 58ch; font-size: clamp(17px, 1.4vw, 20px); }
.about-text p strong { color: var(--text); }
.about-text .h-l { margin-bottom: 26px; }
.about-page .about-text .h-l { font-size: clamp(38px, 4.6vw, 72px); }

/* About cards: 2 x 2, each in a brand tone */
.about-cards { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ac { border-radius: 22px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.ac p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }
.ac h2, .ac h3 { margin: 4px 0 2px; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.15; }
.ac .ac-big { font-size: clamp(36px, 3.6vw, 54px); line-height: 1; }
.ac .ac-label { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
/* A small four-pointed star before each card's label, in the card's label colour */
.ac .ac-star { position: relative; flex: none; --s: 16px; --c: currentColor; }
.ac-plum { background: var(--plum); color: var(--white); }
.ac-plum .ac-label, .ac-plum p { color: #e9dcff; }
.ac-lilac { background: var(--lilac); color: var(--on-lilac); }
.ac-lilac .ac-label, .ac-lilac p { color: var(--on-lilac-dim); }
.ac-light { background: #f4eeff; color: var(--on-lilac); }
.ac-light .ac-label, .ac-light p { color: #45246e; }
.ac-light h2, .ac-light h3 { color: var(--plum); }
.ac-dark { background: #2a1245; color: var(--white); border: 1px solid rgba(213, 184, 252, .14); }
.ac-dark .ac-label, .ac-dark p { color: #dccdf3; }
@media (max-width: 760px) { .about-cards { grid-template-columns: 1fr; } }
.cv-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.cv-row p { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; }
.dl-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; margin: 0 auto; }
  /* About page on narrow screens: opens with the headline, then the photo, then the text */
  .about-page .about-text { display: contents; }
  .about-page .about-text .h-l { order: -1; margin-bottom: 0; }
}

/* ============ Contact ============ */
.contact { text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.contact .h-xl { font-size: clamp(36px, 6.2vw, 92px); line-height: 1.02; text-wrap: balance; }
.contact .lede { max-width: 52ch; }
.social { display: flex; justify-content: center; gap: 14px; list-style: none; padding: 0; margin: 34px 0 0; }
.social a { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(213, 184, 252, .45); background: #0d0714; color: var(--text); transition: background .15s, color .15s, border-color .15s; }
.social a:hover { background: var(--lilac); border-color: var(--lilac); color: var(--on-lilac); }
.social svg { width: 26px; height: 26px; overflow: visible; }
.social .ln { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.social .fl { fill: currentColor; }
.social .tx { fill: currentColor; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 13px; }
.social .tx-sm { font-size: 10.5px; }
.contact .lede { margin: 26px auto 0; }
.contact-mail { display: inline-block; margin-top: 36px; font-size: clamp(18px, 2.6vw, 30px); font-weight: 700; border: 1.5px solid var(--violet); border-radius: 14px; background: #0d0714; padding: 14px 28px; word-break: break-word; transition: background .15s, color .15s, border-color .15s; }
.contact-mail:hover { color: var(--on-lilac); background: var(--lilac); border-color: var(--lilac); }
.contact .h-xl .accent { font-weight: 400; }

/* Home contact: text left, phone right */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; text-align: left; }
.contact-grid .h-xl { font-size: clamp(34px, 4.4vw, 68px); }
/* Full-size screens: give the text more room so the first line stays on one line */
@media (min-width: 1100px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .contact-grid .h-xl { font-size: clamp(44px, 3.7vw, 60px); }
  .nowrap-wide { white-space: nowrap; }
  .contact-grid .phone { width: 100%; left: -18%; }
}
.contact-text { order: 1; }
.contact-grid .lede { margin: 26px 0 0; }
.contact-grid .social { justify-content: flex-start; }
.phone { order: 2; position: relative; animation: phone-float 6s ease-in-out infinite; }
.phone-float { position: relative; transform: rotate(-8deg); }
/* Phone and its sound waves shake together as one piece */
.phone-ring { position: relative; transform-origin: 50% 85%; animation: phone-ring 5s ease-in-out infinite; }
.phone { width: 90%; justify-self: center; }
/* Deepened to sit closer to the crystal ball's violet */
.phone img { position: relative; z-index: 1; width: 100%; height: auto; filter: brightness(.8) saturate(1.2) contrast(1.05); }
/* Sound waves rise from the top of the handset */
.ring-waves { position: absolute; z-index: 2; width: 30%; left: 42%; top: -23%; overflow: visible; fill: none; stroke: var(--lilac); stroke-width: 5; stroke-linecap: round; }
.ring-waves path { opacity: 0; animation: wave 5s ease-out infinite; }
.ring-waves path:nth-child(2) { animation-delay: .12s; }
.ring-waves path:nth-child(3) { animation-delay: .24s; }
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* Still most of the time, then a quick ring shake */
@keyframes phone-ring {
  0%, 70%, 100% { transform: rotate(0); }
  73% { transform: rotate(-4deg); } 76% { transform: rotate(4deg); } 79% { transform: rotate(-4deg); }
  82% { transform: rotate(4deg); } 85% { transform: rotate(-3deg); } 88% { transform: rotate(2deg); } 91% { transform: rotate(0); }
}
@keyframes wave {
  0%, 70% { opacity: 0; transform: translateY(8px); }
  76%, 86% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(-10px); }
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .phone { order: 0; width: min(342px, 76vw); justify-self: center; }
  .contact-grid .lede { margin: 26px auto 0; }
  .contact-grid .social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .phone, .phone-ring, .ring-waves path { animation: none; } .ring-waves path { opacity: 1; } }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.contact .spark { --s: 64px; left: 9%; top: 20%; }
.contact .spark.small { --s: 26px; left: 13%; top: 33%; --c: var(--white); animation-delay: -1.8s; }
.contact .burst { --s: 150px; right: -40px; bottom: -50px; --c: var(--lilac); }
.contact .clover { --s: 46px; right: 5%; top: 9%; --c: var(--lilac); }
@media (max-width: 600px) { .contact .spark, .contact .clover { top: 6%; } }

/* ============ Footer ============ */
.site-footer { position: relative; background: var(--plum); padding: 36px 0 44px; font-size: 15px; color: #ecdfff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: center; }
.footer-mark { height: 48px; width: auto; }

/* ============ Work page: folder index ============ */
.work-hero { padding: 140px 0 32px; overflow: hidden; }
.work-hero .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.work-hero .lede { margin-top: 22px; }
.cabinet { position: relative; height: 391px; max-width: 476px; width: 100%; margin-left: auto; }
.cabinet-back { position: absolute; left: 12%; right: 6%; bottom: 0; height: 64%; background: #232026; border-radius: 22px; }
.cabinet-back::before { content: ""; position: absolute; left: 0; top: -26px; width: 38%; height: 40px; background: #232026; border-radius: 16px 16px 0 0; }
.cabinet-front { position: absolute; left: 12%; right: 6%; bottom: 0; height: 52%; background: #2c2832; border-radius: 22px; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; padding: 22px 26px; border-top: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.cabinet-front small { font-style: italic; color: #b3adbb; font-size: 15px; }
.cabinet-front strong { font-style: italic; font-weight: 400; font-size: 22px; color: #e4dfea; }
.file { position: absolute; z-index: 2; width: 33%; height: 25%; filter: drop-shadow(0 10px 14px rgba(10, 2, 20, .55)); background: #7e3ac4; color: var(--white); border-radius: 4px 12px 12px 12px; padding: 26px 14px 10px; text-align: left; font-size: 14px; line-height: 1.25; transform: rotate(var(--r, 0deg)); transition: background .15s; }
.file::before { content: ""; position: absolute; right: 0; top: -14px; width: 46%; height: 18px; background: inherit; border-radius: 10px 10px 0 0; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.file:hover { background: var(--plum); }
.file[data-pos="1"] { left: 3%; top: 3%; --r: -9deg; }
.file[data-pos="2"] { left: 34%; top: 0; --r: 3deg; }
.file[data-pos="3"] { right: 1%; top: 5%; --r: 8deg; z-index: 3; }
.file[data-pos="4"] { left: 16%; top: 22%; --r: 6deg; }
.file[data-pos="5"] { left: 50%; top: 21%; --r: -4deg; }
/* On load the files rise out from behind the dark folder's front, one after another, settling at their tilt */
.file { animation: file-pop .8s cubic-bezier(.2, 1.35, .4, 1) backwards; animation-delay: calc(.25s + var(--d, 0) * .12s); }
.file[data-pos="1"] { --d: 0; } .file[data-pos="2"] { --d: 1; } .file[data-pos="3"] { --d: 2; } .file[data-pos="4"] { --d: 3; } .file[data-pos="5"] { --d: 4; }
@keyframes file-pop {
  0% { transform: translateY(95%) rotate(0deg) scale(.9); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: rotate(var(--r, 0deg)); opacity: 1; }
}
/* Hover: the label nudges up a little and turns lilac */
.file-label { display: inline-block; transition: transform .25s ease, color .25s ease; }
.file:hover .file-label, .file:focus-visible .file-label { transform: translateY(-3px); color: var(--lilac); }
@media (prefers-reduced-motion: reduce) { .file { animation: none; } .file-label { transition: color .25s ease; } .file:hover .file-label, .file:focus-visible .file-label { transform: none; } }
.cabinet .spark { --s: 94px; left: -6%; bottom: 2%; z-index: 4; --c: var(--lilac); }
.cabinet .diamond { --s: 40px; right: -3%; top: -9%; --c: var(--lilac); }
.contact .flower { --s: 54px; right: 13%; top: 22%; --c: var(--lilac); }
@media (max-width: 900px) {
  .work-hero .intro { grid-template-columns: 1fr; }
  .cabinet { margin: 10px auto 0; height: 357px; }
}
@media (max-width: 520px) {
  .cabinet { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; padding-top: 16px; }
  .cabinet-back, .cabinet-front, .cabinet .spark { display: none; }
  .file { position: relative; inset: auto !important; width: 100%; height: 100px; --r: 0deg !important; }
}

/* ============ Work page: tabbed folders ============ */
.folders { padding: 40px 0 110px; scroll-margin-top: 70px; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-top: 4px; margin-bottom: -1px; position: relative; z-index: 2; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; min-height: 56px; padding: 14px 34px 12px 24px; margin-right: -10px;
  background: var(--plum); color: rgba(244, 238, 255, .82); font-size: 16px;
  border-radius: 16px 22px 0 0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
  transition: background .15s, color .15s;
}
.tab:nth-child(2) { background: #4b058c; }
.tab:nth-child(3) { background: #3d0472; }
.tab:nth-child(4) { background: #31045c; }
.tab:nth-child(5) { background: #280349; }
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { background: var(--lilac); color: var(--on-lilac); font-weight: 700; z-index: 3; }
.tab .count { margin-left: 8px; font-size: 13px; opacity: .75; }
.sheet { position: relative; background: var(--lilac); color: var(--on-lilac); border-radius: 0 24px 24px 24px; padding: clamp(24px, 4vw, 52px); min-height: 520px; }
.panel[hidden] { display: none; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: end; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(27, 5, 51, .18); }
.panel-head h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; margin: 0; letter-spacing: -.03em; }
.panel-head p { margin: 0; max-width: 46ch; color: var(--on-lilac-dim); }
/* Opening a folder: the heading fades in */
.panel-head.dream h2 { animation: head-in .8s ease-out both; }
@keyframes head-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .panel-head.dream h2 { animation: none; } }

/* Folder contents: image + caption, no card containers */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 20px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px 20px; }
.item { display: block; width: 100%; text-align: left; }
.item img { width: 100%; border-radius: 12px; background: var(--white); }
.logo-grid .item img { aspect-ratio: 16 / 10; object-fit: contain; padding: 12px; }
.logo-grid .item { position: relative; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.logo-grid .item:focus-visible { z-index: 1; transform: scale(1.1); }
@media (hover: hover) { .logo-grid .item:hover { z-index: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .logo-grid .item { transition: none; } }
.project-grid .item img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-grid .item img { aspect-ratio: 16 / 10; object-fit: cover; }
.item .cap { display: block; padding-top: 10px; font-size: 15px; color: var(--on-lilac-dim); line-height: 1.4; }
.item .cap strong { display: block; color: var(--on-lilac); font-size: 17px; }
.item:hover .cap strong, .item:hover .cap:only-child { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .media-grid, .project-grid { grid-template-columns: 1fr; }
  .tab { padding: 12px 28px 10px 18px; font-size: 15px; }
}

/* ============ Lightbox / case study dialog ============ */
dialog.viewer { width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); overflow: hidden; }
dialog.viewer::backdrop { background: rgba(5, 2, 8, .9); }
.viewer-inner { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.viewer-bar .title { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-ctrls { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px; }
.icon-btn:hover { background: rgba(213, 184, 252, .14); }
.icon-btn[hidden] { display: none; }
.viewer-body { padding: clamp(16px, 3vw, 32px); }
.viewer-body > img { width: 100%; border-radius: 12px; background: var(--white); }

/* ============ Brand identity case study ============ */
.case-page { padding: 130px 0 clamp(60px, 8vw, 100px); }
.case-back { display: inline-block; margin-bottom: clamp(28px, 4vw, 48px); font-size: 16px; color: var(--text-dim); transition: color .15s; }
.case-back:hover { color: var(--lilac); }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 240px); gap: 40px clamp(40px, 6vw, 96px); margin-bottom: clamp(40px, 5vw, 64px); }
.case-head .h-l { font-size: clamp(38px, 5vw, 72px); }
.case-overview { margin: 28px 0 0; font-size: 18px; line-height: 1.2; font-weight: 700; color: var(--lilac); }
.case-head .lede { margin-top: 8px; max-width: none; font-size: 16px; line-height: 1.55; }
.case-note { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: 6px 32px; padding: clamp(28px, 3.5vw, 44px) 0; }
.case-note:has(+ .case-note) { padding-bottom: 0; }
.case-note + .case-note { padding-top: 8px; }
.case-note h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--lilac); }
.case-note p { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.55; color: var(--text-dim); }
.case-meta { margin: 0; display: grid; gap: 22px; align-content: start; font-size: 16px; line-height: 1.45; }
.case-meta dt { color: var(--text-dim); font-size: 15px; margin-bottom: 4px; }
.case-meta dd { margin: 0; font-weight: 700; }
.case-images { display: grid; gap: clamp(10px, 1.2vw, 16px); }
.case-logo { display: grid; place-items: center; aspect-ratio: 21 / 9; border-radius: 12px; background: var(--white); }
.case-logo img { width: min(62%, 760px); }
.case-row { display: flex; gap: clamp(10px, 1.2vw, 16px); }
.case-cover { width: 100%; border-radius: 12px; background: var(--white); }
.case-note p + p { margin-top: 12px; }
/* Mosaic: a bento grid of branded items, each tile cropped around its object */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); grid-template-areas: var(--areas); gap: clamp(10px, 1.2vw, 16px); }
.mosaic-tile { position: relative; margin: 0; min-width: 0; min-height: 0; border-radius: 16px; overflow: hidden; background: var(--white); }
.mosaic-tile img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mosaic-tile:hover img, .mosaic-tile img:focus-visible { transform: scale(1.05); }
.mosaic-tile img:focus-visible { outline: none; }
.mosaic-tile:has(img:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 3px; }
.mosaic-tile figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 12px; border-radius: 8px; background: rgba(27, 5, 51, .78); color: var(--white); font-size: 13px; font-weight: 700; pointer-events: none; transform: translateY(6px); opacity: .92; transition: transform .35s ease, opacity .35s ease; }
.mosaic-tile:hover figcaption { transform: none; opacity: 1; }
.mosaic-text { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 20px; text-align: center; background: radial-gradient(circle at 85% 15%, rgba(213, 184, 252, .35), transparent 55%), var(--plum); }
.mosaic-ar { margin: 0; font-size: clamp(30px, 3.4vw, 50px); font-weight: 700; line-height: 1.2; color: var(--white); }
.mosaic-en { margin: 0; font-size: clamp(13px, 1.1vw, 15px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: var(--areas-narrow); grid-auto-rows: 150px; }
  .mosaic-tile figcaption { left: 10px; bottom: 8px; font-size: 11px; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) { .mosaic-tile img, .mosaic-tile figcaption { transition: none; } }
/* Brochure: mockup on the left, flip book with a language switch on the right */
.brochure { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.brochure-mockup { width: 100%; border-radius: 16px; background: var(--white); cursor: zoom-in; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.brochure-mockup:hover, .brochure-mockup:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(10, 2, 20, .55), 0 0 0 3px var(--lilac); }
.brochure .fb-stage { padding: 16px 0 20px; }
.lang-switch { display: flex; justify-content: center; gap: 6px; }
.lang-switch button { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(213, 184, 252, .45); font-size: 14px; font-weight: 700; color: var(--text); transition: background .15s, color .15s; }
.lang-switch button[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); color: var(--on-lilac); }
.lang-switch button:not([aria-pressed="true"]):hover { background: #22133a; }
@media (max-width: 760px) { .brochure { grid-template-columns: 1fr; } }
/* Seamless projects: full-width layout images stacked edge to edge, like a Behance presentation */
.case-images.is-seamless { gap: 0; }
.is-seamless .case-row img { border-radius: 0; }
.is-seamless > .case-row:first-child img { border-radius: 12px 12px 0 0; }
.is-seamless > .case-row:last-child img { border-radius: 0 0 12px 12px; }
.is-seamless > .case-row:has(+ .case-note) img { border-radius: 0 0 12px 12px; }
.is-seamless > .case-note + .case-row img { border-radius: 12px 12px 0 0; }
.is-seamless > .case-note + .case-row:has(+ .case-note) img { border-radius: 12px; }
/* Images that open full size: lift slightly on hover */
.case-row img.zoomable { cursor: zoom-in; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.case-row img.zoomable:hover, .case-row img.zoomable:focus-visible { transform: translateY(-6px) scale(1.03); box-shadow: 0 22px 50px rgba(10, 2, 20, .55), 0 0 0 3px var(--lilac); position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .case-row img.zoomable { transition: none; } .case-row img.zoomable:hover { transform: none; } }
/* Digital projects: the designs shown inside an Instagram post and a YouTube video page */
/* Both mockups scale together like one picture: every size is in --u, one design pixel of a 1160px-wide layout,
   so the Instagram post and the YouTube video keep the same sizes and sit side by side on every screen */
.case-showcases { display: grid; gap: clamp(36px, 6vw, 72px); }
/* Flip book: two pages side by side on wide screens, one page on phones */
/* --ar is the open spread's width / height, set per book (portrait A4 pages by default) */
.flipbook { --ar: 1.4144; outline: none; }
.flipbook:focus-visible .fb-book { outline: 2px solid var(--lilac); outline-offset: 6px; }
.fb-stage { perspective: 2600px; padding: clamp(16px, 3vw, 40px) 0; display: flex; justify-content: center; }
.fb-book { position: relative; width: min(100%, 1100px, (100vh - 220px) * var(--ar)); aspect-ratio: var(--ar); display: flex; cursor: pointer; user-select: none; touch-action: pan-y; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.flipbook.is-cover .fb-book { transform: translateX(-25%); }
.flipbook.is-end .fb-book { transform: translateX(25%); }
.fb-page { position: relative; width: 50%; height: 100%; }
.fb-page img, .fb-face img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--white); }
.fb-left img { border-radius: 6px 0 0 6px; box-shadow: -10px 18px 40px rgba(10, 2, 20, .45); }
.fb-right img { border-radius: 0 6px 6px 0; box-shadow: 10px 18px 40px rgba(10, 2, 20, .45); }
/* Soft fold shading along the spine */
.fb-left::after, .fb-right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; pointer-events: none; }
.fb-left::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .18), transparent); }
.fb-right::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .18), transparent); }
.fb-page img[hidden], .fb-face img[hidden], .fb-page:has(img[hidden])::after { display: none; }
.fb-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45, .05, .35, 1); z-index: 2; }
.fb-leaf[hidden] { display: none; }
.fb-leaf.go-next { left: 50%; transform-origin: left center; }
.fb-leaf.go-prev { left: 0; transform-origin: right center; }
.fb-leaf.go-next.turning { transform: rotateY(-180deg); }
.fb-leaf.go-prev.turning { transform: rotateY(180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-back { transform: rotateY(180deg); }
.fb-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.fb-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--on-lilac); font-size: 20px; transition: background .15s, opacity .15s; }
.fb-btn:hover { background: var(--white); }
.fb-btn:disabled { opacity: .35; cursor: default; background: var(--lilac); }
.fb-range { width: min(40vw, 320px); accent-color: var(--violet); }
.fb-count { min-width: 150px; text-align: center; font-size: 14px; color: var(--text-dim); }
/* Phones: one page at a time */
.flipbook.is-single .fb-book { width: min(100%, 420px * max(1, var(--ar) / 1.4144)); aspect-ratio: calc(var(--ar) / 2); transform: none; }
.flipbook.is-single .fb-left { display: none; }
.flipbook.is-single .fb-right { width: 100%; }
.flipbook.is-single .fb-right img { border-radius: 6px; }
.flipbook.is-single .fb-right::after { display: none; }
@media (max-width: 760px) {
  .fb-controls { flex-wrap: wrap; gap: 10px; }
  .fb-range { order: 3; width: 100%; }
  .fb-count { min-width: 0; }
}
/* Right-to-left books: mirror the book (pages un-mirrored) so the cover sits on the right and pages turn leftwards */
.flipbook.is-rtl .fb-book { transform: scaleX(-1); }
.flipbook.is-rtl.is-cover .fb-book { transform: scaleX(-1) translateX(-25%); }
.flipbook.is-rtl.is-end .fb-book { transform: scaleX(-1) translateX(25%); }
.flipbook.is-rtl.is-single .fb-book { transform: none; }
.flipbook.is-rtl .fb-page img, .flipbook.is-rtl .fb-face img { transform: scaleX(-1); }
.flipbook.is-rtl.is-single .fb-page img { transform: none; }
.flipbook.is-rtl .fb-controls { flex-direction: row-reverse; }
@media (prefers-reduced-motion: reduce) { .fb-book, .fb-leaf { transition: none; } }
/* Post series: all posts side by side in one row; scrolls sideways on smaller screens */
.post-series { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: clamp(12px, 1.4vw, 20px); }
.post-series figure { margin: 0; min-width: 0; }
.post-series img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--white); box-shadow: 0 16px 40px rgba(10, 2, 20, .4); }
.post-series figcaption { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.post-series:focus-visible { outline: 2px solid var(--lilac); outline-offset: 6px; }
@media (max-width: 900px) {
  .post-series { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
  .post-series figure { flex: none; width: min(56vw, 300px); scroll-snap-align: start; }
}
/* Post collections: a sideways-scrolling row of Instagram posts per collection */
.post-strip { position: relative; min-width: 0; }
.post-track { display: flex; gap: clamp(10px, 1.2vw, 16px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.post-track img { flex: none; width: clamp(200px, 26vw, 300px); height: auto; aspect-ratio: 4 / 5; border-radius: 12px; scroll-snap-align: start; background: var(--white); }
.post-track:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }
.strip-btn { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--on-lilac); font-size: 20px; box-shadow: 0 8px 24px rgba(10, 2, 20, .45); transition: background .15s; }
.strip-btn:hover { background: var(--white); }
.strip-btn.prev { left: -12px; }
.strip-btn.next { right: -12px; }
.strip-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .post-track img { width: 62vw; }
  .strip-btn { width: 38px; height: 38px; font-size: 17px; }
  .strip-btn.prev { left: 4px; }
  .strip-btn.next { right: 4px; }
}
.case-showcase-wrap { container-type: inline-size; }
.case-showcase { --u: calc(100cqw / 1160); display: grid; grid-template-columns: minmax(0, 29fr) minmax(0, 71fr); gap: calc(40 * var(--u)); align-items: center; }
.mock { margin: 0; }
.mock figcaption { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.mock svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mock svg.fill-red { fill: #ed1c3a; stroke: #ed1c3a; }
.mock-ig, .mock-yt { background: var(--white); color: #111; border-radius: calc(16 * var(--u)); overflow: hidden; font-size: calc(13 * var(--u)); line-height: 1.4; box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(10, 2, 20, .45); }
.ig-head { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); }
.ig-head img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; border: 1px solid #ddd; object-fit: cover; }
.ig-head strong { flex: 1; }
.ig-follow { padding: calc(2 * var(--u)) calc(10 * var(--u)); border: 1px solid #bbb; border-radius: calc(6 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; }
.ig-img { display: block; width: 100%; height: auto; }
.ig-actions { display: flex; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(6 * var(--u)); }
.ig-save { margin-left: auto; }
.ig-cap { margin: 0; padding: 0 calc(12 * var(--u)) calc(14 * var(--u)); }
.mock-yt { padding: calc(14 * var(--u)); }
.contact-note { margin: 28px auto 0; max-width: 520px; text-align: center; font-size: 15px; line-height: 1.55; color: var(--lilac); }
/* 3D visual next to its 2D design(s) */
.case-compare { display: flex; gap: clamp(10px, 1.2vw, 16px); }
.cmp-side { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cmp-side figcaption { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
.cmp-imgs { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 16px); }
.cmp-imgs img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--white); }
/* Swipeable set of designs beside an image */
.carousel { flex: 1 1 0; min-width: 0; position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; cursor: pointer; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.case-row .carousel-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; border-radius: 0; }
.carousel-btn { position: absolute; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(20, 8, 32, .55); color: var(--white); font-size: 17px; cursor: pointer; opacity: 0; transition: opacity .25s ease, background .25s ease; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel:hover .carousel-btn, .carousel-btn:focus-visible { opacity: 1; }
.carousel-btn:hover { background: var(--violet); }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: width .3s ease, background .3s ease; }
.carousel-dots span.on { width: 20px; border-radius: 4px; background: var(--white); }
@media (hover: none) { .carousel-btn { opacity: 1; } }
@media (max-width: 760px) {
  .carousel-track { border-radius: 8px; }
  .carousel-btn { width: 26px; height: 26px; font-size: 12px; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
  .carousel-dots { bottom: 6px; gap: 4px; }
  .carousel-dots span { width: 5px; height: 5px; }
  .carousel-dots span.on { width: 12px; }
}
/* Two phones: Instagram stories and an Instagram feed */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 88px); }
.phone-fig { margin: 0; width: min(340px, 100%); }
.phone-fig .ig-phone { width: auto; }
.phone-fig figcaption { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
/* The screen is exactly the shape of a story (1080 x 1919), so the stories fill it edge to edge */
.ig-phone { --u: 1px; position: relative; box-sizing: content-box; aspect-ratio: 1080 / 1919; overflow: hidden; border: 10px solid #1a1024; border-radius: 36px; background: var(--white); color: #111; font-size: 12px; line-height: 1.4; box-shadow: 0 24px 60px rgba(10, 2, 20, .5); }
.ig-phone svg { width: 22px; height: 22px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ig-phone svg.fill-red { fill: #ed1c3a; stroke: #ed1c3a; }
.ig-phone:focus-visible { outline: 3px solid var(--lilac); outline-offset: 4px; }
.phone-story { background: #000; }
.story-bars, .story-head, .story-nav { z-index: 2; }
.story-img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-img[hidden] { display: none; }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.story-bars i { display: block; width: 0; height: 100%; background: var(--white); }
.story-bars .done i { width: 100%; }
.story-bars .run i { animation: story-bar 5s linear forwards; }
.phone-story.paused .run i { animation-play-state: paused; }
@keyframes story-bar { to { width: 100%; } }
.story-head { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.story-head img, .ig-phone .ig-feed-bar img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); background: var(--white); object-fit: cover; }
.story-nav { position: absolute; top: 60px; bottom: 0; width: 35%; border: 0; background: none; cursor: pointer; }
.story-nav.prev { left: 0; cursor: w-resize; }
.story-nav.next { right: 0; width: 65%; cursor: e-resize; }
/* Round arrow on each side so visitors can see they can step through the stories themselves */
.story-nav span { position: absolute; top: calc(50% - 30px); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #111; font-size: 22px; line-height: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.story-nav.prev span { left: 8px; }
.story-nav.next span { right: 8px; }
.phone-story:hover .story-nav span, .story-nav:focus-visible span { opacity: .8; }
.story-nav:hover span, .story-nav:focus-visible span { opacity: 1; transform: scale(1.1); }
.phone-feed { display: flex; flex-direction: column; }
.ig-phone .ig-feed-bar { font-size: 13px; padding: 10px 12px; }
.phone-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; scrollbar-width: thin; }
.phone-scroll:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.carousel-track img { flex: 0 0 100%; width: 100%; display: block; scroll-snap-align: start; }
.ig-carousel .carousel-track { border-radius: 0; }
.carousel-count { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: var(--white); font-size: 11px; font-weight: 700; pointer-events: none; }
.ig-carousel .carousel-btn { width: 28px; height: 28px; font-size: 13px; background: rgba(255, 255, 255, .85); color: #111; }
.ig-carousel .carousel-dots { bottom: 8px; }
.ig-carousel .carousel-dots span { width: 6px; height: 6px; }
.ig-carousel .carousel-dots span.on { width: 6px; background: #3897f0; }
@media (prefers-reduced-motion: reduce) { .story-bars .run i { animation: none; } }
/* Event photo slideshow */
.slideshow { display: grid; gap: 10px; width: min(100%, 720px); margin: 0 auto; }
.ss-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #1a0d24; touch-action: pan-y; user-select: none; }
.ss-stage:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.ss-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.ss-slide.on { opacity: 1; }
.ss-slide .bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(24px) brightness(.6); }
.ss-slide .fg { position: relative; width: 100%; height: 100%; object-fit: contain; transform: scale(1.0); transition: transform 6s ease-out; }
.ss-slide.on .fg { transform: scale(1.05); }
.ss-btn { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(20, 8, 32, .55); color: var(--white); font-size: 19px; cursor: pointer; opacity: 0; transition: opacity .3s ease, background .25s ease; backdrop-filter: blur(6px); }
.ss-btn.prev { left: 16px; }
.ss-btn.next { right: 16px; }
.ss-stage:hover .ss-btn, .ss-btn:focus-visible { opacity: 1; }
.ss-btn:hover { background: var(--violet); }
.ss-count { position: absolute; left: 18px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 8, 32, .55); backdrop-filter: blur(6px); color: rgba(255, 255, 255, .75); font-size: 13px; letter-spacing: .08em; }
.ss-count b { color: var(--white); }
.ss-thumbs { position: relative; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ss-thumbs::-webkit-scrollbar { display: none; }
.ss-thumb { flex: 1 0 80px; position: relative; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .45; transition: opacity .3s ease, transform .3s ease; }
.ss-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ss-thumb:hover { opacity: .8; transform: translateY(-3px); }
.ss-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--lilac); }
.ss-thumb i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--violet), var(--lilac)); }
.ss-thumb.on i { width: 100%; }
.ss-thumb.run i { width: 0; animation: ss-bar 5s linear forwards; }
.slideshow.paused .ss-thumb.run i { animation-play-state: paused; }
@keyframes ss-bar { to { width: 100%; } }
@media (hover: none) { .ss-btn { opacity: 1; width: 36px; height: 36px; font-size: 15px; } }
@media (max-width: 760px) {
  .ss-stage { aspect-ratio: 4 / 3; border-radius: 10px; }
  .ss-btn.prev { left: 8px; }
  .ss-btn.next { right: 8px; }
  .ss-count { left: 10px; bottom: 8px; font-size: 11px; padding: 4px 9px; }
  .ss-thumbs { gap: 6px; }
  .ss-thumb { flex-basis: 72px; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ss-slide, .ss-slide .fg { transition: none; } .ss-slide.on .fg { transform: none; } }
/* Brand colour palette */
.palette { display: grid; gap: 12px; }
.palette-swatches { display: flex; gap: 12px; height: clamp(220px, 26vw, 340px); }
.swatch { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 2vw, 26px); border-radius: 18px; background: var(--c); color: var(--white); text-align: left; transition: flex-grow .5s cubic-bezier(.2, .7, .2, 1), transform .3s ease; }
.swatch:hover, .swatch:focus-visible { flex-grow: 1.7; }
.swatch:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.swatch-no { font-size: clamp(40px, 6vw, 84px); font-weight: 700; line-height: 1; opacity: .35; }
.swatch-info { display: grid; gap: 2px; font-size: 14px; }
.swatch-info strong { font-size: clamp(18px, 2vw, 26px); }
.swatch-copy { position: absolute; top: clamp(16px, 2vw, 26px); right: clamp(16px, 2vw, 26px); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .3s ease; }
.swatch:hover .swatch-copy, .swatch:focus-visible .swatch-copy { opacity: .85; }
/* With the key visual: image on the left, the colours stacked on its right at the same height */
.palette-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.05fr); gap: 12px; }
.palette-top > img { display: block; width: 100%; height: auto; border-radius: 18px; }
.has-image .palette-swatches { flex-direction: column; height: auto; }
.has-image .swatch { flex-direction: row; align-items: flex-end; gap: 12px; padding: clamp(12px, 1.6vw, 20px); transition: flex-grow .5s cubic-bezier(.2, .7, .2, 1); }
.has-image .swatch:hover, .has-image .swatch:focus-visible { flex-grow: 1.5; }
.has-image .swatch-no { font-size: clamp(28px, 3.6vw, 52px); align-self: flex-start; }
.has-image .swatch-info { margin-left: auto; text-align: right; font-size: 13px; }
.has-image .swatch-info strong { font-size: clamp(16px, 1.6vw, 22px); }
.has-image .swatch-copy { top: auto; bottom: clamp(12px, 1.6vw, 20px); right: auto; left: clamp(12px, 1.6vw, 20px); }
.palette-gradient { height: 64px; border-radius: 18px; display: flex; align-items: center; padding: 0 22px; }
.palette-gradient span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
@media (max-width: 760px) {
  .case-compare, .cmp-imgs { gap: 6px; }
  .cmp-side { gap: 6px; }
  .cmp-side figcaption { font-size: 9px; letter-spacing: .08em; }
  .cmp-imgs img { border-radius: 8px; }
  .palette-swatches { height: 200px; gap: 6px; }
  .swatch { border-radius: 12px; padding: 12px; }
  .swatch-info { font-size: 11px; }
  .swatch-copy { display: none; }
  .palette-gradient { height: 44px; border-radius: 12px; }
  .palette-top, .has-image .palette-swatches { gap: 6px; }
  .palette-top > img { border-radius: 10px; }
  .has-image .swatch { padding: 6px 8px; border-radius: 10px; }
  .has-image .swatch-no { display: none; }
  .has-image .swatch-info { font-size: 9px; gap: 0; }
  .has-image .swatch-info strong { font-size: 11px; }
  .has-image .swatch-info span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .swatch { transition: none; } }

/* ===== Brand strategy map: each project uses only its own brand colours and fonts. Defaults are Adeela's
   cream and black; Launa sets maroon, navy and cream through its strategyTheme. ===== */
.bs { --cream: var(--bs-bg, #F8E8CF); --ink: var(--bs-ink, #010101); --alt: var(--bs-alt, var(--ink)); --soft: color-mix(in srgb, var(--ink) 66%, transparent); --line: color-mix(in srgb, var(--ink) 20%, transparent); font-family: var(--brand-font, inherit); background: var(--cream); color: var(--ink); border-radius: 18px; padding: clamp(32px, 5vw, 72px) clamp(22px, 5vw, 72px); display: grid; gap: clamp(28px, 4vw, 48px); min-width: 0; }
.bs-head { display: grid; justify-items: center; gap: 10px; text-align: center; }
.bs-head h2 { margin: 0; font-family: inherit; font-size: clamp(26px, 3vw, 42px); font-weight: 400; letter-spacing: .04em; line-height: 1.15; color: var(--ink); }
.bs-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 48px); align-items: stretch; }
/* The map: "Brand strategy" headed in black, "Brand expression" in cream outlined in black */
.bs-map { display: grid; gap: 16px; align-content: start; }
.bs-side { border: 1px solid var(--ink); }
.bs-side-title { margin: 0; padding: 13px 20px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }
.bs-side-0 .bs-side-title { background: var(--ink); color: var(--cream); }
.bs-side-1 .bs-side-title { color: var(--ink); border-bottom: 1px solid var(--ink); }
.bs-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bs-group { padding: 16px 20px 20px; }
.bs-group + .bs-group { border-left: 1px solid var(--line); }
.bs-group-title { margin: 0 0 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.bs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-tag { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 14px; letter-spacing: .06em; cursor: pointer; transition: background .3s ease, color .3s ease; }
.bs-tag:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
/* Brands with a second colour: the expression half is headed in it, and its tags use it too */
/* Optional overrides: --bs-alt-text (text on the alt header and selected tag), --bs-alt-tag (tag outline and text),
   --bs-alt-frame (card frame and title for expression answers), for brands whose alt colour is too dark for text */
.bs-alt-fill .bs-side-1 { border-color: var(--alt); }
.bs-alt-fill .bs-side-1 .bs-side-title { background: var(--alt); color: var(--bs-alt-text, var(--cream)); border-bottom: 0; }
.bs-alt-fill .bs-side-1 .bs-tag { color: var(--bs-alt-tag, var(--alt)); border-color: var(--bs-alt-tag, var(--alt)); }
.bs-alt-fill .bs-side-1 .bs-tag.on { background: var(--bs-alt-tag, var(--alt)); color: var(--bs-alt-tag-text, var(--bs-alt-text, var(--cream))); border-color: var(--bs-alt-tag, var(--alt)); }
.bs-alt-fill .bs-card.is-expression { border-color: var(--bs-alt-frame, var(--alt)); outline-color: var(--bs-alt-frame, var(--alt)); }
.bs-alt-fill .bs-card.is-expression .bs-title, .bs-alt-fill .bs-card.is-expression .bs-orn { color: var(--bs-alt-frame, var(--alt)); }
/* The brand name in the title, and the ornament, can use the brand's script font */
.bs-name { font-family: var(--bs-script, inherit); }
.bs[style*="--bs-script"] .bs-name { font-size: 1.5em; line-height: .8; letter-spacing: 0; vertical-align: -.08em; }
.bs-orn { font-family: var(--bs-script, inherit); font-size: 40px; line-height: .7; color: var(--ink); }
.bs-tag.on { background: var(--ink); color: var(--cream); }
.bs-tag:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
/* The card: an invitation with a fine double frame, centred text and the brand's crescent */
.bs-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: clamp(36px, 4vw, 56px) clamp(26px, 3.4vw, 48px); background: #fcf4e6; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; text-align: center; min-height: 340px; background: var(--bs-card, #fcf4e6); transition: border-color .4s ease, outline-color .4s ease; }
.bs-crumb { margin: 0; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.bs-title { margin: 0; font-family: inherit; font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; letter-spacing: .03em; line-height: 1.1; color: var(--ink); }
.bs-moon { width: 18px; height: 18px; fill: var(--ink); }
.bs-text { max-width: 34em; }
.bs-text p { margin: 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; color: var(--bs-text, color-mix(in srgb, var(--ink) 85%, var(--cream))); }
.bs[style*="--bs-text"] .bs-words { color: var(--bs-text); }
/* Brand name in italic (Kandaka, like its "Look & Feel Beautiful" tagline) */
.bs-italic-name .bs-name { font-style: italic; }
/* Optional arch-shaped card (no project uses it at the moment) */
.bs-arch .bs-card { border-radius: 999px 999px 0 0 / 200px 200px 0 0; padding-top: clamp(64px, 7vw, 96px); }
/* A small symbol ornament (like Kandaka's diamond) rather than a script letter */
.bs-italic-name .bs-orn { font-size: 12px; line-height: 1; }
/* Values and personality: the words set in a line, separated by small diamonds */
.bs-words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .06em; }
.bs-words li + li::before { content: "◆"; display: inline-block; margin: 0 14px; font-size: 7px; vertical-align: middle; color: var(--soft); }
.bs-nav { margin-top: 10px; display: flex; align-items: center; gap: 18px; }
.bs-nav button { display: grid; place-items: center; padding: 10px 6px; border: 0; background: none; color: var(--ink); cursor: pointer; opacity: .7; transition: opacity .2s ease, transform .2s ease; }
.bs-nav svg { width: 28px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.bs-nav button:hover { opacity: 1; }
.bs-prev:hover { transform: translateX(-3px); }
.bs-next:hover { transform: translateX(3px); }
.bs-count { font-size: 12px; letter-spacing: .2em; color: var(--soft); }
/* Each new answer fades softly into place */
.bs-card.swap .bs-crumb, .bs-card.swap .bs-title, .bs-card.swap .bs-moon, .bs-card.swap .bs-orn, .bs-card.swap .bs-text p { animation: bs-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.bs-card.swap .bs-title { animation-delay: .06s; }
.bs-card.swap .bs-moon, .bs-card.swap .bs-orn { animation-delay: .12s; }
.bs-card.swap .bs-text p { animation-delay: .18s; }
.bs-card.swap .bs-words li { animation: bs-in .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .08s + .15s) both; }
@keyframes bs-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 899px) {
  .bs-body { grid-template-columns: 1fr; }
  .bs-card { min-height: 0; }
}
@media (max-width: 560px) {
  .bs { border-radius: 10px; }
  .bs-groups { grid-template-columns: 1fr; }
  .bs-group + .bs-group { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .bs-card.swap * { animation: none !important; } .bs-tag, .bs-nav button { transition: none; } }

/* ===== Animated project presentation ("motion" projects such as TAQA) ===== */
.bh, .hs, .fleet { min-width: 0; }
/* Each section rises in as it reaches the screen */
.motion > * { opacity: 0; transform: translateY(56px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.motion > .in { opacity: 1; transform: none; }
.motion > .hs { transform: none; }
/* Images wipe up into place one after another (and stay still under the mouse) */
.motion .case-row img { clip-path: inset(100% 0 0 0 round 12px); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .14s); }
.motion .case-row.in img { clip-path: inset(0 0 0 0 round 12px); }
/* Palette swatches rise one by one; the gradient band sweeps across */
.motion .palette .swatch { opacity: 0; transform: translateY(40px); transition: opacity .7s ease calc(var(--i) * .12s + .1s), transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .12s + .1s), flex-grow .5s cubic-bezier(.2, .7, .2, 1); }
.motion .palette.in .swatch { opacity: 1; transform: none; }
.motion .palette-gradient { clip-path: inset(0 100% 0 0 round 18px); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1) .6s; }
.motion .palette.in .palette-gradient { clip-path: inset(0 0 0 0 round 18px); }

/* Logo hero: the logo on white with the brand's dashed arcs flowing round it */
.bh { position: relative; overflow: hidden; border-radius: 18px; background: #fff; aspect-ratio: 2 / 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: clamp(14px, 2vw, 28px); --mx: 0; --my: 0; }
/* The brand element in two corners, turning slowly */
.bh-el { position: absolute; aspect-ratio: 1; }
.bh-el svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bh-el-a { width: 42%; left: -15%; bottom: -42%; }
.bh-el-b { width: 30%; right: -9%; top: -26%; }
/* The dashed ring (built from the brand's SVG): turns slowly; each dash pops in round the ring, then a soft
   shimmer keeps travelling round it */
.dash-el svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dash-spin { transform-origin: 50% 50%; transform-box: view-box; animation: bh-turn 70s linear infinite; }
.bh-el-b .dash-spin, .ve figure:first-child .dash-spin { animation-direction: reverse; animation-duration: 55s; }
@keyframes bh-turn { to { transform: rotate(360deg); } }
.dash-spin path { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.5, .5, 1) calc(var(--k) * .028s + .3s); animation: bh-shimmer 3.2s ease-in-out calc(var(--a) / 360 * -3.2s) infinite; }
.bh-el-b .dash-spin path { animation-direction: reverse; }
.motion.ready > .in .dash-spin path { transform: none; }
@keyframes bh-shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Brand typeface for this project's headings */
.motion > .case-note h2, .bh-tag, .motion .swatch-info strong { font-family: var(--brand-font, inherit); }

/* Logo usage: clear space on white, then the logo reversed out of each brand colour */
.ls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(10px, 1.2vw, 16px); min-width: 0; }
.ls figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.ls figcaption { position: absolute; left: 16px; bottom: 12px; font-family: var(--brand-font, inherit); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ls-clear { background: #fff; display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px); }
.ls-frame { position: relative; width: min(100%, 420px); padding: 9%; }
.ls-frame img { display: block; width: 100%; height: auto; }
.ls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 16px); }
.ls-tile { background: var(--bg); aspect-ratio: 4 / 3; display: grid; place-items: center; color: #fff; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .7s ease calc(var(--i) * .12s + .2s), transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .12s + .2s); }
.ls.in .ls-tile { opacity: 1; transform: none; }
.ls-tile img { width: 62%; height: auto; filter: brightness(0) invert(1); }
.ls-tile figcaption { opacity: .85; }

/* Typeface specimen */
.tf { font-family: var(--tf); background: #fff; color: #26214F; border-radius: 18px; padding: clamp(24px, 4vw, 56px); display: grid; gap: clamp(24px, 3vw, 40px); min-width: 0; }
.tf-head { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.tf-aa { font-size: clamp(90px, 14vw, 200px); line-height: .9; color: #46348C; background: linear-gradient(120deg, #46348C 30%, #EB6B61 70%, #F8B63B); -webkit-background-clip: text; background-clip: text; color: transparent; animation: tf-breathe 4s ease-in-out infinite alternate; }
@keyframes tf-breathe { from { font-weight: 200; } to { font-weight: 900; } }
.tf-name { margin: 0; font-size: clamp(28px, 4.4vw, 60px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #46348C; }
.tf-role { margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #EB6B61; }
/* Two columns: Light and Regular on the left, Bold and Black on the right */
.tf-weights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: clamp(14px, 2vw, 22px) clamp(24px, 4vw, 56px); }
.tf-w { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; padding-top: clamp(14px, 2vw, 22px); border-top: 1px solid rgba(70, 52, 140, .14); opacity: 0; transform: translateX(-24px); transition: opacity .7s ease calc(var(--i) * .12s + .2s), transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .12s + .2s); }
.tf.in .tf-w { opacity: 1; transform: none; }
.tf-w span { font-size: 13px; font-weight: 600; color: #F3A335; padding-top: 4px; }
.tf-w p { margin: 0; font-size: clamp(13px, 1.45vw, 21px); line-height: 1.45; letter-spacing: .04em; color: #46348C; overflow-wrap: anywhere; }
.tf-try { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 28px); border-radius: 14px; background: #F4F2FA; }
.tf-try label { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #46348C; }
.tf-try input { flex: 1; max-width: 320px; accent-color: #EB6B61; }
.tf-try output { min-width: 3ch; color: #EB6B61; }
.tf-sample { margin: 0; font-size: clamp(26px, 5vw, 64px); line-height: 1.1; color: #26214F; outline: none; border-bottom: 2px dashed transparent; transition: border-color .3s ease; overflow-wrap: anywhere; }
.tf-sample:hover, .tf-sample:focus { border-bottom-color: rgba(235, 107, 97, .5); }
.tf-try small { font-size: 11px; color: #6b6290; }

/* Visual elements: the dashed rings and the gradient ring on white */
.ve { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: clamp(16px, 4vw, 56px); padding: clamp(28px, 5vw, 72px); background: #fff; border-radius: 18px; min-width: 0; }
.ve figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.ve figcaption { font-family: var(--brand-font, inherit); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #46348C; text-align: center; }
.ve-el { width: 100%; aspect-ratio: 1; }
.ve-ring { width: 72%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#46348C, #EB6B61, #F8B63B, #46348C); -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%); mask: radial-gradient(circle, transparent 58%, #000 59%); animation: bh-turn 8s linear infinite; transform: scale(0); transition: transform 1s cubic-bezier(.3, 1.4, .5, 1) .6s; }
.ve.in .ve-ring { transform: none; }
@media (max-width: 760px) {
  .ls { grid-template-columns: 1fr; }
  .ls figure { border-radius: 10px; }
  .tf { border-radius: 10px; padding: 20px 16px; }
  .tf-head { flex-wrap: wrap; gap: 4px 16px; }
  .tf-aa { font-size: 76px; }
  .tf-name { font-size: 24px; }
  .tf-try input { min-width: 0; }
  .tf-weights { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .tf-w { grid-template-columns: 1fr; gap: 4px; }
  .ve { grid-template-columns: 1fr 1fr; border-radius: 10px; }
  .ve-main { grid-column: 1 / -1; grid-row: 1; width: 70%; justify-self: center; }
}
.bh-logo { position: relative; width: min(56%, 560px); height: auto; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) .5s; }
.bh.in .bh-logo { clip-path: inset(0 0 0 0); }
.bh-tag { position: relative; margin: 0; font-size: clamp(11px, 1.3vw, 16px); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #46348C; opacity: 0; transform: translateY(14px); transition: opacity .8s ease 1.5s, transform .8s cubic-bezier(.2, .7, .2, 1) 1.5s; }
.bh-tag b { background: linear-gradient(90deg, #EB6B61, #F8B63B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bh.in .bh-tag { opacity: 1; transform: none; }

/* Stylescape: pinned on wide screens while scrolling moves it sideways; swiped on small screens */
.hs { position: relative; }
.hs-pin { position: relative; overflow: hidden; border-radius: 18px; }
.hs-track { display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track img { display: block; height: clamp(260px, 62vw, 420px); width: auto; max-width: none; }
.hs-on .hs-pin { position: sticky; }
.hs-on .hs-track { overflow: visible; will-change: transform; }
.hs-on .hs-track img { height: auto; }
.hs-bar { position: absolute; left: 20px; right: 20px; bottom: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #EB6B61, #F8B63B); transform: scaleX(0); transform-origin: left; }
.hs-hint { position: absolute; right: 20px; top: 16px; padding: 8px 14px; border-radius: 99px; background: rgba(38, 33, 79, .82); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: opacity .4s ease; pointer-events: none; }
.hs-hint span { display: inline-block; animation: hs-nudge 1.4s ease-in-out infinite; }
.hs.moved .hs-hint { opacity: 0; }
@keyframes hs-nudge { 50% { transform: translateX(5px); } }

/* Fleet: each vehicle drives in along its own lane and comes to a stop */
.fleet { display: grid; gap: clamp(8px, 2vw, 24px); padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px); border-radius: 18px; background: #F4F2FA; overflow: hidden; }
.lane { position: relative; display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); }
.lane-right { flex-direction: row-reverse; }
.veh { position: relative; z-index: 1; display: block; width: min(calc(var(--r) * clamp(110px, 17vw, 230px)), 72%); height: auto; transform: translateX(var(--from)); transition: transform 1.8s cubic-bezier(.16, .84, .3, 1.02) calc(var(--i) * .35s + .2s); }
.lane-left .veh { --from: 115vw; }
.lane-right .veh { --from: -115vw; }
.fleet.in .veh { transform: none; }
.lane-label { position: relative; z-index: 1; margin-bottom: 12%; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #46348C; opacity: 0; transition: opacity .8s ease calc(var(--i) * .35s + 1.6s); }
.fleet.in .lane-label { opacity: 1; }
/* The road: dashes in the energy colours that rush past while the vehicle arrives, then settle */
.road { position: absolute; left: 0; right: 0; bottom: 2px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, #EB6B61 0 26px, transparent 26px 44px, #F8B63B 44px 70px, transparent 70px 88px); opacity: .55; }
.fleet.in .road { animation: road 2s cubic-bezier(.16, .84, .3, 1) calc(var(--i) * .35s + .2s) both; }
.lane-left .road { --dir: -1; }
.lane-right .road { --dir: 1; }
@keyframes road { from { background-position: calc(var(--dir) * 880px) 0; } to { background-position: 0 0; } }
@media (max-width: 760px) {
  .bh { aspect-ratio: 4 / 3; border-radius: 10px; }
  .bh-logo { width: 72%; }
  .bh-tag { letter-spacing: .14em; }
  .hs-pin, .fleet { border-radius: 10px; }
  .hs-bar { left: 12px; right: 12px; bottom: 10px; }
  .hs-hint { right: 10px; top: 10px; font-size: 9px; padding: 6px 10px; }
  .veh { width: min(calc(var(--r) * 90px), 78%); }
  .lane-label { font-size: 9px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .motion > *, .motion .case-row img, .motion .palette .swatch, .motion .palette-gradient, .dash-spin, .dash-spin path, .bh-logo, .bh-tag, .veh, .ls-tile, .tf-w, .tf-aa, .ve-ring { transition: none; animation: none; }
  .hs-hint span { animation: none; }
}
/* Feed projects on wide screens: all the text on the left, the scrolling feed on the right */
@media (min-width: 900px) {
  .case-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .case-split .case-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; position: sticky; top: 120px; }
  .case-split .ig-feed { margin: 0; }
}
/* Instagram feed: a phone-sized white frame whose posts scroll up and down */
.ig-feed { --u: 1px; width: min(100%, 440px); margin: 0 auto; background: var(--white); color: #111; border-radius: 28px; overflow: hidden; font-size: 13px; line-height: 1.4; box-shadow: 0 24px 60px rgba(10, 2, 20, .5); border: 8px solid #1a1024; }
.ig-feed svg { width: 22px; height: 22px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ig-feed svg.fill-red { fill: #ed1c3a; stroke: #ed1c3a; }
.ig-feed-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eee; font-size: 15px; }
.ig-feed-bar img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; object-fit: cover; }
.ig-feed-bar strong { flex: 1; }
.ig-feed-bar span { font-size: 13px; color: #777; }
.ig-feed-scroll { height: min(72vh, 680px); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; scrollbar-width: thin; }
.ig-feed-scroll:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.ig-feed-post { scroll-snap-align: start; border-bottom: 1px solid #eee; }
.ig-feed-post .ig-head img { border-radius: 50%; }
.ig-feed-hint { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.yt-img { display: block; width: 100%; height: auto; border-radius: calc(12 * var(--u)); }
.yt-title { margin: calc(12 * var(--u)) 0 calc(10 * var(--u)); font-size: calc(19 * var(--u)); font-weight: 700; line-height: 1.3; }
.yt-row { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.yt-row > img { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; border: 1px solid #ddd; object-fit: cover; }
.yt-sub { padding: calc(7 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: #0f0f0f; color: var(--white); font-size: calc(12 * var(--u)); font-weight: 700; }
.yt-pills { display: flex; gap: calc(8 * var(--u)); margin-left: auto; }
.yt-pills span { display: grid; place-items: center; width: calc(38 * var(--u)); height: calc(34 * var(--u)); border-radius: 999px; background: #f0f0f0; }
.yt-pills svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.mock figcaption { white-space: nowrap; }
@media (max-width: 700px) { .mock figcaption { font-size: 9px; letter-spacing: .06em; margin-top: 8px; } }
.case-stack { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 16px); }
.case-row .case-stack > img { flex: 1 1 auto; width: 100%; min-height: 0; }
.case-subrow { display: flex; gap: clamp(10px, 1.2vw, 16px); }
.case-row img { flex: 1 1 0; width: 0; min-width: 0; height: auto; border-radius: 12px; background: var(--white); object-fit: cover; }
.case-nav { display: grid; justify-items: center; gap: 6px; margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.case-nav small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.case-nav a { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--white); transition: color .15s; }
.case-nav a:hover { color: var(--lilac); }
@media (max-width: 760px) {
  .case-head, .case-note { grid-template-columns: 1fr; }
  .case-logo { aspect-ratio: 16 / 9; }
  /* Image rows keep the desktop arrangement, just smaller */
  .case-images, .case-row, .case-stack, .case-subrow { gap: 6px; }
  .case-row img, .case-cover, .case-logo { border-radius: 8px; }
}
