/* Thmanyah Serif Display (Bold), packaged inside the page as its licence asks */
@font-face { font-family: "Thmanyah Serif Display"; src: url("../fonts/thmanyah-serif-display.woff2") format("woff2"), url("../fonts/thmanyah-serif-display.otf") format("opentype"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Layout: one long RTL scroll on black; the Brandify cube opens the page and the showreel comes out of it; each client chapter stays black but switches ink, accent and fields to that client's colours. Single deliberate dark look. */
:root {
  /* House identity: black and white only, so each client's own colours carry the page */
  --orange: #F2F2EE;
  --paper: #F2F2EE;
  --ink: #0C0C0C;
  /* Live roles, tweened by GSAP when a client chapter takes over (the ground stays black) */
  --ground: #0C0C0C;
  --fg: #F2F2EE;
  --acc: #F2F2EE;
  --on-acc: #0C0C0C;
  --tone: #1A1A1A;
  --glow: .32;
  /* Type: Thmanyah Serif Display for headings, IBM Plex Sans Arabic for text */
  --display: "Thmanyah Serif Display", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --text: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --bar-h: 74px;
  color-scheme: dark;
}
/* English: IBM Plex Sans (the Latin sister of IBM Plex Sans Arabic) carries the text, and Thmanyah's own Latin letters keep the headings */
:root[lang="en"] {
  --display: "Thmanyah Serif Display", "IBM Plex Sans", Georgia, serif;
  --text: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
}
/* while the English words load, the Arabic page stays out of sight */
html.i18n-wait body { visibility: hidden; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ground);
}
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.05; font-weight: 700; text-wrap: balance; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 600; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }

/* Buttons: square corners, one flat fill */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--acc); color: var(--on-acc);
  font: 600 1rem/1 var(--text);
  padding: 1em 1.4em; border: 0; border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; text-decoration-color: var(--acc); }

/* Header */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ground) 42%, transparent); color: var(--fg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 1rem; direction: ltr;
  padding-block: 12px;
}
.bar .mark { display: inline-flex; justify-self: start; text-decoration: none; color: var(--acc); }
/* The agency's logo, traced from the file the user sent so it stays sharp and still takes the section's accent */
.logo { display: block; height: 50px; width: auto; aspect-ratio: 2550 / 1130; }
/* The parent company's name in the middle of the header: light and grey, so it is only just there */
.bar-parent { justify-self: center; text-align: center; font-family: var(--text); font-size: .95rem; font-weight: 300; line-height: 1.3; color: color-mix(in srgb, var(--fg) 50%, transparent); }
.bar .lang { justify-self: end; }
@media (max-width: 560px) { :root { --bar-h: 64px; } .bar { gap: .6rem; } .logo { height: 40px; } .bar-parent { font-size: .76rem; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Language switch: AR | EN at the far end of the header, the current one underlined in the section's accent */
.lang { display: flex; align-items: center; gap: 2px; font: 600 .9rem/1 "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: .08em; }
.bar .lang a { padding: 12px 8px; text-decoration: none; opacity: .55; transition: opacity .2s ease; }
.bar .lang a:hover { opacity: .9; text-decoration: none; }
.bar .lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 2px; text-decoration-color: var(--acc); }
.lang span { opacity: .35; }

/* Hero: the cube on top in the middle, "Brandify" under it with a white shine sweeping across the letters (the one centred moment of the page) */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--bar-h)); display: grid; place-items: center; text-align: center; padding-block: 32px 48px; }
.hero-stack { display: grid; justify-items: center; width: 100%; }
.hero-cube { width: min(34vw, 30svh); }
.hero-cube svg { width: 100%; height: auto; display: block; overflow: visible; color: var(--orange); }
.hero-cube path { fill: currentColor; fill-rule: evenodd; }
.hero-word { margin-top: clamp(20px, 3.5svh, 40px); width: min(84%, 780px); line-height: 0; }
.hero-word svg { width: 100%; height: auto; display: block; overflow: visible; }
.word-base { fill: url(#shine); }
@supports (color: color-mix(in srgb, red, blue)) {
  #shine stop:nth-child(1), #shine stop:nth-child(7) { stop-color: color-mix(in srgb, var(--acc) 63%, #000); }
  #shine stop:nth-child(2), #shine stop:nth-child(6) { stop-color: color-mix(in srgb, var(--acc) 90%, #000); }
  #shine stop:nth-child(3), #shine stop:nth-child(5) { stop-color: color-mix(in srgb, var(--acc) 97%, #000); }
  #shine stop:nth-child(4) { stop-color: color-mix(in srgb, var(--acc), #fff 70%); }
}
.hero-stack p { margin-top: 28px; max-width: 36ch; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; }
.hero-copy { display: grid; justify-items: center; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 28px; }
@media (max-width: 760px) {
  .hero-cube { width: min(46vw, 28svh); }
}
/* The landing sits on a wall of screens, each one playing a piece of our work; scrolling opens the cube into "About us" */
.hero-bg { position: absolute; inset: 0; background: #000; pointer-events: none; }
.hero-stack { position: relative; z-index: 1; }
.hero-stack p { text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
/* while the cube opens the landing holds still on top and the next section slides up under it */
.motion .hero { z-index: 2; pointer-events: none; }
.motion .hero a { pointer-events: auto; }
.wall { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; }
.wall-tilt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotateX(9deg) rotateY(-16deg) rotateZ(-3deg); transform-style: preserve-3d; }
.wall-grid { --sh: 52svh; --sw: calc(var(--sh) * 9 / 16); display: grid; grid-template-columns: repeat(7, var(--sw)); gap: 16px; }
.scr { position: relative; height: var(--sh); overflow: hidden; border-radius: 12px; background: #141414; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .6); }
.scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.62) saturate(1.05); }
.wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 58% 50% at 50% 50%, rgba(0, 0, 0, .74), rgba(0, 0, 0, .38) 72%, rgba(0, 0, 0, .55)); }
@media (max-width: 760px) {
  .wall-grid { --sh: 34svh; grid-template-columns: repeat(3, var(--sw)); gap: 12px; }
  .scr:nth-child(n+10) { display: none; }
}

/* Statement */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px 8vw; padding-block: clamp(120px, 16vw, 220px); align-items: start; }
.about > * { min-width: 0; }
.about .statement { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.45; font-weight: 400; max-width: 26ch; }
.crafts { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 2.6vw, 34px); }
.crafts li { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.15; }
.crafts li .cd { display: block; font-family: var(--text); font-size: 1rem; font-weight: 400; line-height: 1.5; margin-bottom: 4px; color: var(--acc); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Section heads: video, design, print. Each names the person behind it */
.sec-head { padding-block: clamp(120px, 14vw, 200px) clamp(28px, 4vw, 56px); }
/* Title on the right; the person behind the section sits on its left */
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.sec-row h2 { flex: 0 1 auto; min-width: 0; font-size: clamp(3.5rem, 12vw, 10rem); line-height: .95; }
.credit { flex: none; margin-inline-start: auto; display: flex; align-items: center; gap: 12px; font-size: .95rem; padding-bottom: .5em; }
.credit .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; background: var(--tone); outline: 2px solid var(--acc); outline-offset: 2px; }
.credit .who { opacity: .85; }
.sec-lede { max-width: 40ch; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 760px) { .sec-row { column-gap: 16px; } .credit .av { width: 44px; height: 44px; } }
#print .sec-head { padding-bottom: clamp(32px, 5vw, 64px); }

/* Design: one chapter per client. The ground stays black; ink, accent and fields switch to that client's colours */
.client { position: relative; overflow: hidden; padding-block: clamp(96px, 12vw, 170px) clamp(40px, 6vw, 80px); }
/* Ambient light: soft glows fixed behind the whole page. They take the current section's colours,
   so light spreads across sections instead of cutting the page into bands */
.amb { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.amb i { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: var(--glow); will-change: transform; }
.amb .o1 { --x: 88%; --y: 8%;  --s: 64vmax; --c: color-mix(in srgb, var(--acc) 48%, transparent); }
.amb .o2 { --x: 3%;  --y: 52%; --s: 50vmax; --c: color-mix(in srgb, var(--acc) 40%, transparent); }
.amb .o3 { --x: 76%; --y: 94%; --s: 58vmax; --c: color-mix(in srgb, var(--acc) 34%, transparent); }
.amb .o4 { --x: 22%; --y: 16%; --s: 28vmax; --c: color-mix(in srgb, var(--acc) 34%, transparent); }
.amb .o5 { --x: 56%; --y: 58%; --s: 46vmax; --c: color-mix(in srgb, var(--tone) 90%, transparent); }
/* Fine grain stops the glows from banding; a soft vignette pushes the edges back */
.amb::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse 120% 95% at 50% 45%, transparent 45%, rgba(0, 0, 0, .6)); }
/* Client head: words on the right, the client's logo on the left */
.c-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "n logo" "name logo" "meta logo" "line logo";
  column-gap: clamp(24px, 5vw, 80px); row-gap: 10px; align-items: center; margin-bottom: clamp(36px, 5vw, 64px);
}
.c-n { grid-area: n; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--acc); }
.c-name { grid-area: name; }
.c-meta { grid-area: meta; }
.c-line { grid-area: line; }
.c-logo { grid-area: logo; justify-self: end; display: block; height: clamp(80px, 10vw, 150px); width: auto; max-width: clamp(170px, 26vw, 360px); object-fit: contain; filter: drop-shadow(0 0 36px color-mix(in srgb, var(--acc) 45%, transparent)); }
.c-name { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.05; font-weight: 700; text-shadow: 0 0 70px color-mix(in srgb, var(--acc) 40%, transparent); text-wrap: balance; }
.c-meta { font-size: 1rem; font-weight: 600; color: var(--acc); }
.c-line { max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; }
@media (max-width: 760px) {
  .c-head { grid-template-areas: "n logo" "name name" "meta meta" "line line"; }
  .c-logo { height: 56px; max-width: 170px; margin-bottom: 8px; }
}

/* A design: tap to see it big */
.post { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--tone); cursor: zoom-in; }
.post .pi { display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.post:hover .pi { transform: scale(1.04); }
.post img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Without motion every gallery is a plain grid */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gal.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.z-tile { display: none; }
.pano { direction: ltr; overflow-x: auto; margin-bottom: 16px; }
.pano img { display: block; height: clamp(240px, 56svh, 600px); width: auto; max-width: none; }
@media (max-width: 760px) { .gal, .gal.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Strip: the posts travel sideways while the page is held */
.motion .g-pin.strip-pin { overflow: visible; }
.motion .gal.strip { --sh: min(70svh, 600px); display: flex; gap: 16px; width: max-content; }
.motion .strip .post { flex: none; width: calc(var(--sh) * .8); height: var(--sh); }
@media (max-width: 760px) { .motion .gal.strip { --sh: min(60svh, 112vw); gap: 10px; } }

/* Stack: a pile of posts, each scroll throws the top one away */
.motion .stack-pin { display: grid; justify-items: center; gap: 18px; }
.motion .gal.stack { --cw: min(80vw, calc((100svh - 220px) * .8), 500px); display: grid; grid-template-columns: var(--cw); }
.motion .stack .post { grid-area: 1 / 1; width: var(--cw); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 140px -30px color-mix(in srgb, var(--acc) 50%, transparent); }
.stack-count { display: none; }
.motion .stack-count { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.motion .stack-count b { color: var(--acc); font-weight: 600; }

/* Columns: three columns drifting at different speeds */
.motion .gal.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(10px, 1.6vw, 24px); }
.motion .cols .col { display: grid; gap: clamp(10px, 1.6vw, 24px); }
.motion .cols .col:nth-child(2) { margin-top: 18vh; }
@media (max-width: 760px) { .motion .gal.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .motion .cols .col:nth-child(2) { margin-top: 12vh; } }

/* Zoom: starts on one post, pulls back to the whole set */
.motion .zoom-pin { height: calc(100svh - 74px); display: grid; place-items: center; }
.motion .gal.zoom { position: relative; --zc: min(calc((100svh - 190px) / 2 * .8), calc((100vw - 2 * var(--gutter) - 48px) / 4)); grid-template-columns: repeat(4, var(--zc)); justify-content: center; }
@media (max-width: 760px) {
  .motion .gal.zoom { --zc: min(calc((100svh - 200px) / 3 * .8), calc((100vw - 2 * var(--gutter) - 20px) / 3)); grid-template-columns: repeat(3, var(--zc)); gap: 10px; }
  .motion .z-tile { display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 5; background: var(--acc); color: var(--on-acc); font: 700 1.1rem/1.2 var(--display); padding: 8px; }
}

/* Panorama: a four-slide carousel read as one sky */
.motion .pano-pin { overflow: hidden; direction: ltr; }
.motion .pano { overflow: visible; margin: 0; }
.motion .pano img { height: min(64svh, 640px); }
.jisr-more { margin-top: clamp(40px, 6vw, 80px); }

/* Lightbox */
.lb { padding: 0; margin: 0; border: 0; background: transparent; width: 100vw; height: 100svh; max-width: none; max-height: none; color: var(--paper); }
.lb[open] { display: grid; place-items: center; align-content: center; gap: 14px; }
.lb::backdrop { background: rgba(0, 0, 0, .9); }
.lb img { display: block; max-width: min(92vw, 720px); max-height: calc(100svh - 120px); width: auto; height: auto; }
.lb-cap { font-size: 1rem; text-align: center; padding-inline: 16px; }
.lb { overscroll-behavior: contain; }
.lb img[hidden], .lb video[hidden] { display: none; }
.lb video { display: block; background: #000; }
.lb video.tall { height: min(calc(100svh - 120px), calc(92vw * 16 / 9)); aspect-ratio: 9 / 16; width: auto; }
.lb video.wide { width: min(92vw, 1100px, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; }
.lb.wideimg img { max-width: min(94vw, 1400px); }
.lb.long[open] { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto; padding-block: 80px 48px; }
.lb.long img { flex: none; width: min(92vw, 860px); max-width: none; max-height: none; }
.lb.long .lb-cap { order: -1; }
.lb-x { position: fixed; top: max(16px, env(safe-area-inset-top, 0px)); inset-inline-end: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; cursor: pointer; }

/* Print: the real pieces (shirts, caps, bags, menus, wrapping paper) float up through a lit 3D space as you scroll; a tap opens the full design */
.pr { padding-bottom: clamp(96px, 12vw, 160px); }
.pr-space { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: center; padding-inline: var(--gutter); }
@media (max-width: 760px) { .pr-space { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-item { display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.pr-float { display: block; }
.pr-item img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 32px rgba(0, 0, 0, .6)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pr-item:hover img, .pr-item:focus-visible img { transform: scale(1.06); }
.pr-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: var(--paper); color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.35; padding: .5em .85em; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 20px)); transition: opacity .2s ease; }
.pr-tip.on { opacity: 1; }
.pr-tip small { display: block; font-size: .8rem; font-weight: 400; opacity: .7; }
.motion .pr { padding-bottom: 0; }
.motion .pr-stage { position: relative; height: 100svh; overflow: hidden; perspective: 1100px; background: radial-gradient(ellipse 58% 52% at 50% 52%, rgba(242, 242, 238, .1) 0%, rgba(242, 242, 238, .04) 48%, transparent 80%); }
.motion .pr-space { display: block; position: absolute; inset: 0; padding: 0; transform-style: preserve-3d; }
.motion .pr-item { --k: 1.35; position: absolute; left: var(--x); top: 50%; width: calc(var(--w) * var(--k) * 1vw); max-width: 560px; transform-style: preserve-3d; translate: -50% -50%; }
.motion .pr-far img { filter: drop-shadow(0 28px 32px rgba(0, 0, 0, .6)) brightness(.8) blur(.6px); }
@media (max-width: 760px) { .motion .pr-item { --k: 2.7; left: calc(50% + (var(--x) - 50%) * .5); } }

/* Logos: each mark is drawn line by line, then the paper comes in and it shows in its final colours */
.lgs { padding-bottom: clamp(96px, 12vw, 160px); }
.lgs-stage { display: grid; gap: clamp(56px, 8vw, 96px); }
.lg-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.lg-art { position: relative; aspect-ratio: 4 / 3; width: 100%; display: grid; place-items: center; overflow: hidden; }
.lg-paper { position: absolute; inset: 0; background: var(--paper); }
.lg-art svg { position: relative; width: 70%; height: 66%; overflow: visible; }
.lg-draw { fill: none; stroke: #F2F2EE; stroke-linecap: butt; stroke-linejoin: round; display: none; }
.lg-txt { display: grid; gap: 8px; justify-items: start; order: -1; }
.lg-n { font-size: .95rem; opacity: .6; font-variant-numeric: tabular-nums; direction: ltr; }
.lg-txt h3 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); font-weight: 700; line-height: 1.1; }
.lg-txt p { opacity: .75; }
.lg-txt .btn { margin-top: 16px; }
@media (max-width: 760px) {
  .lg-item { grid-template-columns: minmax(0, 1fr); }
  .lg-txt { order: 0; }
  .lg-art { order: -1; }
}
.motion .lgs { padding-bottom: 0; }
.motion .lgs-stage { height: calc(100svh - 74px); gap: 0; align-items: center; }
.motion .lg-item { grid-area: 1 / 1; }
.motion .lg-art { width: min(100%, calc((100svh - 74px - 120px) * 4 / 3)); justify-self: center; }
.motion .lg-draw { display: inline; }
@media (max-width: 760px) {
  .motion .lg-item { gap: 18px; }
  .motion .lg-art { width: min(100%, calc((100svh - 74px - 300px) * 4 / 3)); }
}

/* Clients: a strip of their logos that runs on its own, whatever the scroll */
.clients { padding-bottom: clamp(96px, 12vw, 160px); }
.clients .sec-head { padding-bottom: clamp(40px, 5vw, 72px); }
.mq { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 42s linear infinite; }
.mq-set { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding: 0 clamp(48px, 6vw, 96px) 0 0; margin: 0; list-style: none; }
.mq img { display: block; height: var(--h); width: auto; opacity: .82; }
@media (max-width: 560px) { .mq img { height: calc(var(--h) * .7); } }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq { -webkit-mask-image: none; mask-image: none; }
  .mq-track { animation: none; width: auto; }
  .mq-set { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); gap: 40px 56px; }
  .mq-set[aria-hidden] { display: none; }
}

/* Video: a phone in the middle scrolls through the reels the way Instagram shows them */
.reels { padding-block: clamp(96px, 12vw, 180px) 48px; }
.reels-head { margin-bottom: 40px; }
.feed { --ph-h: min(calc(100svh - 200px), 760px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
.motion .feed { height: calc(100svh - 78px); padding-block: 12px 84px; }
.feed-info { display: grid; gap: 10px; align-content: center; }
.fi-n { font-size: .95rem; opacity: .6; letter-spacing: .08em; justify-self: start; }
.fi-n .fi-i { opacity: 1; font-weight: 600; }
.fi-name { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; }
.fi-type { font-size: 1.05rem; opacity: .7; }
.fi-hint { margin-top: 18px; max-width: 24ch; font-size: .95rem; opacity: .6; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; justify-self: end; font-size: .95rem; }
.feed-list button { display: flex; gap: 12px; align-items: baseline; width: 100%; padding: 5px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; opacity: .38; transition: opacity .3s ease; }
.feed-list button:hover, .feed-list button.on { opacity: 1; }
.feed-list button span:first-child { font-size: .75rem; letter-spacing: .06em; min-width: 2ch; }
.feed-list button.on span:last-child { text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--acc); }

.phone { position: relative; height: var(--ph-h); aspect-ratio: 9 / 19.5; justify-self: center; padding: calc(var(--ph-h) * .013); border-radius: calc(var(--ph-h) * .074); background: #070707; font-size: calc(var(--ph-h) * .0185); box-shadow: 0 0 0 1.5px #3b3b3b, 0 0 0 5px #141414, 0 40px 120px rgba(0, 0, 0, .7), 0 0 180px -20px color-mix(in srgb, var(--acc) 26%, transparent); }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 4px; background: #2a2a2a; }
.phone::before { left: -8px; top: 22%; height: 7%; box-shadow: 0 calc(var(--ph-h) * .1) 0 #2a2a2a; }
.phone::after { right: -8px; top: 28%; height: 11%; }
.ph-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: calc(var(--ph-h) * .062); background: #000; color: #fff; isolation: isolate; }
.ph-island { position: absolute; z-index: 6; top: calc(var(--ph-h) * .014); left: 50%; width: 31%; height: calc(var(--ph-h) * .036); transform: translateX(-50%); border-radius: 99px; background: #000; }
.ph-top { position: absolute; z-index: 5; top: calc(var(--ph-h) * .062); left: 5%; right: 5%; display: flex; align-items: center; justify-content: space-between; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.ph-top b { font: 700 1.55em/1 system-ui, sans-serif; letter-spacing: -.01em; }
.ph-top svg { width: 1.9em; height: 1.9em; }
.ph-view { position: relative; flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.ph-view::-webkit-scrollbar { display: none; }
.motion .ph-view { overflow: hidden; }
.ph-feed { height: 100%; }
.reel { position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #000; color: #fff; font: inherit; text-align: start; cursor: pointer; scroll-snap-align: start; overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel.wide video { object-fit: contain; }
.reel::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); pointer-events: none; }
.ig-side { position: absolute; z-index: 2; inset-inline-end: 3.5%; bottom: 4%; display: grid; justify-items: center; gap: 1.5em; }
.ig-side svg { width: 2.05em; height: 2.05em; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.ig-disc { width: 2em; height: 2em; border-radius: .45em; border: 2px solid #fff; background: var(--disc, #333); }
.ig-meta { position: absolute; z-index: 2; inset-inline-start: 4.5%; inset-inline-end: 20%; bottom: 4%; display: grid; gap: .55em; font-size: 1em; line-height: 1.35; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.ig-row { display: flex; align-items: center; gap: .6em; }
.ig-av { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #1d1d1d; border: 1.5px solid #fff; font-weight: 700; font-size: .95em; overflow: hidden; }
  .ig-av img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.ig-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-follow { flex: none; padding: .2em .8em; border: 1px solid rgba(255, 255, 255, .85); border-radius: .5em; font-size: .9em; }
.ig-cap, .ig-audio { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-audio { font-size: .9em; opacity: .9; }
.ph-nav { flex: none; height: calc(var(--ph-h) * .072); display: flex; align-items: center; justify-content: space-around; padding-bottom: calc(var(--ph-h) * .012); background: #000; }
.ph-nav svg { width: 1.85em; height: 1.85em; opacity: .9; }
.ph-nav svg.on { opacity: 1; stroke-width: 2.4; }
.ph-nav i { width: 1.8em; height: 1.8em; border-radius: 50%; background: #ff6600 url(img/avatars/brandify-orange.webp) center / cover no-repeat; border: 1.5px solid #fff; }
@media (max-width: 760px) {
  .feed { --ph-h: min(calc(100svh - 250px), calc(80vw * 19.5 / 9)); grid-template-columns: 1fr; align-content: center; gap: 14px; }
  .feed-info { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; row-gap: 2px; }
  .fi-n { grid-row: span 2; align-self: center; }
  .fi-name { font-size: 1.9rem; }
  .fi-type { font-size: .95rem; }
  .fi-hint, .feed-list { display: none; }
}

/* Footer: quiet and plain. A headline with a one-line message to WhatsApp, two columns of links, and a thin closing row */
.foot { background: transparent; color: var(--paper); padding-block: clamp(80px, 10vw, 140px) 28px; border-top: 1px solid rgba(242, 242, 238, .14); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px 8vw; align-items: start; }
.foot-top h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.2; max-width: 16ch; color: var(--paper); }
.ask { display: flex; align-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 88px); max-width: 560px; border-bottom: 1px solid rgba(242, 242, 238, .45); }
.ask input { flex: 1 1 0; min-width: 0; width: 100%; background: none; border: 0; color: inherit; font: inherit; font-size: 1rem; padding: 14px 0; }
.ask input::placeholder { color: rgba(242, 242, 238, .7); }
.ask input:focus { outline: none; }
.ask:focus-within { border-bottom-color: var(--paper); }
.ask button { flex: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0; display: grid; place-items: center; transition: transform .2s ease; }
.ask button:hover { transform: translateX(-4px); }
/* left to right: the send arrow and the dock's back arrow point the other way */
[dir="ltr"] .ask button svg, [dir="ltr"] .dock-back svg { transform: scaleX(-1); }
[dir="ltr"] .ask button:hover { transform: translateX(4px); }
.foot-cols a[href^="mailto:"] { overflow-wrap: anywhere; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-cols h3 { font-family: var(--text); font-size: .95rem; font-weight: 500; opacity: .7; margin-bottom: 28px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: .3em; }
.foot-end { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(80px, 10vw, 140px); font-size: .9rem; }
.foot-end small { font-size: inherit; opacity: .75; }
.foot-end .end-mark { display: grid; justify-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.foot-end .logo { height: 46px; }
.end-parent { font-family: var(--text); font-size: .85rem; font-weight: 300; line-height: 1.3; color: color-mix(in srgb, var(--paper) 50%, transparent); }
.foot-end .end-loc { justify-self: end; opacity: .75; text-decoration: none; }
.foot-end .end-loc:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-end { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-end .end-loc { justify-self: center; }
  .foot-end .end-mark { order: -1; }
}

/* Section dock: a small pill at the bottom centre. Top level is the four sections; tapping one jumps there and swaps the words for what sits inside it. It wears the current section's accent. */
.dock {
  position: fixed; z-index: 55; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 150%); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
  max-width: calc(100vw - 32px);
}
.dock.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock-in {
  display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden;
  background: var(--acc); color: var(--on-acc);
  border-radius: 999px; padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-family: var(--text); font-size: .95rem; line-height: 1;
}
.dock-back {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--on-acc) 14%, transparent); color: inherit;
  display: grid; place-items: center;
}
.dock-back[hidden] { display: none; }
.dock-list {
  position: relative; display: flex; align-items: center; gap: 2px; flex: 0 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.dock-list::-webkit-scrollbar { display: none; }
.dock-hl {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--on-acc) 16%, transparent);
  transition: left .4s cubic-bezier(.3, 1.3, .5, 1), width .4s cubic-bezier(.3, 1.3, .5, 1), opacity .25s;
}
.dock-list button {
  position: relative; flex: none; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-weight: 500; white-space: nowrap;
  padding: 11px 15px; border-radius: 999px; opacity: .78;
  transition: opacity .2s;
}
/* a hidden bold copy reserves the bold width, so the active word never nudges the pill */
.dock-list button::after { content: attr(data-t); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
.dock-list button:hover { opacity: 1; }
.dock-list button[aria-current="true"] { font-weight: 700; opacity: 1; }
.dock :focus-visible { outline: 2px solid var(--on-acc); outline-offset: -3px; }
@media (max-width: 560px) { .dock-in { font-size: .9rem; } .dock-list button { padding: 10px 12px; } }
@media (max-width: 420px) { .dock-in { font-size: .84rem; } .dock-list button { padding: 10px 8px; } }

/* About: who we are, the three divisions, and a row of numbers */
.firm { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(120px, 14vw, 200px) 0; }
.firm > * { min-width: 0; }
.firm-lead { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.45; max-width: 30ch; }
.firm-sub { font-family: var(--text); font-size: .95rem; font-weight: 500; opacity: .7; margin-bottom: 20px; }
.divs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.divs li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid rgba(242, 242, 238, .18); }
.divs h4 { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 700; }
.divs p { opacity: .75; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; }
.stats dd { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats dt { font-size: .95rem; opacity: .7; }
@media (max-width: 760px) { .divs, .stats { grid-template-columns: minmax(0, 1fr); } }
/* A placeholder still waiting for its real text wears a dashed underline (it stays inside its own line, so neighbours never overlap) */
.is-ph { text-decoration: underline dashed rgba(242, 242, 238, .6); text-decoration-thickness: 1px; text-underline-offset: .35em; }

/* Institutional work: a framed block that brings the public-sector and school pieces forward */
.inst-box { display: grid; gap: clamp(28px, 4vw, 48px); padding: clamp(24px, 4vw, 56px); border: 1px solid rgba(242, 242, 238, .2); background: rgba(242, 242, 238, .035); }
.inst-head h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.05; }
.inst-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.inst-card { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.inst-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 8px; background: var(--tone); }
.inst-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.inst-card:hover video { transform: scale(1.04); }
.inst-play { position: absolute; inset-inline-start: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.inst-name { font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.inst-type { font-size: .95rem; opacity: .7; }
@media (max-width: 760px) { .inst-grid { grid-template-columns: minmax(0, 1fr); } }

/* Events: the division's three services, numbered like the rest of the site, then an invitation to get in touch */
.evs { padding-bottom: clamp(96px, 12vw, 160px); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.ev-list li { display: grid; gap: 14px; align-content: start; min-width: 0; padding-top: 20px; border-top: 1px solid rgba(242, 242, 238, .18); }
.ev-n { justify-self: start; font-size: .9rem; opacity: .6; font-variant-numeric: tabular-nums; }
.ev-list h3 { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.ev-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(48px, 6vw, 80px); }
.ev-cta p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
@media (max-width: 760px) { .ev-list { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .btn, .feed-list button, .dock, .dock-hl { transition: none; }
}
