/* IBS Agency — site styles. Content lives in content/site.json (edit at /admin/). */

@font-face { font-family: "Poppins"; src: url(../fonts/poppins-light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Camel"; src: url(../fonts/camel-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Camel"; src: url(../fonts/camel-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GEBox"; src: url(../fonts/gebox.woff2) format("woff2"); font-display: block; }

:root {
  /* grain glass: soft frost + fine film grain (IBS's own glass, no ribs, no Apple look) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");
  --navy: #0C243E; --orange: #F78055; --sky: #3CA7D3; --offwhite: #EEF3ED; --olive: #6A8F3F; --grey: #CBD0CA; --white: #FFFFFF;
  --bg: var(--white); --fg: var(--navy);
  --muted: color-mix(in srgb, var(--fg) 62%, transparent);
  --line: color-mix(in srgb, var(--fg) 12%, transparent);
  --pad: clamp(18px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 15px/1.65 "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
::selection { background: var(--orange); color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.ar { font-family: "Camel", "Poppins", sans-serif; direction: rtl; }

/* themes */
.sec { position: relative; background: var(--bg); color: var(--fg); }
[data-theme="white"]    { --bg: var(--white);    --fg: var(--navy); }
[data-theme="offwhite"] { --bg: var(--offwhite); --fg: var(--navy); }
[data-theme="navy"]     { --bg: var(--navy);     --fg: var(--white); }
[data-theme="orange"]   { --bg: var(--orange);   --fg: var(--white); }
[data-theme="sky"]      { --bg: var(--sky);      --fg: var(--white); }
[data-theme="olive"]    { --bg: var(--olive);    --fg: var(--white); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.pad { padding-block: clamp(56px, 7vw, 104px); }

/* type */
.t2 { text-transform: uppercase; line-height: 1; }
.t2 b { display: block; font-weight: 800; font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -.02em; }
.t2 span { display: block; font-weight: 400; font-size: clamp(11px, .95vw, 13px); letter-spacing: .32em; margin-bottom: 1em; opacity: .7; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { max-width: 420px; color: var(--muted); font-size: 14px; }
.lead { font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; line-height: 1.5; letter-spacing: -.005em; }
.muted { color: var(--muted); }

/* buttons: IBS style, flat brand colours, square corners, no glass */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  background: transparent; color: var(--fg); border: 1.5px solid currentColor;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.accent { background: var(--grain), var(--orange); color: var(--white); border-color: var(--orange); }
.btn.accent:hover { background: var(--grain), var(--navy); border-color: var(--navy); }
[data-theme="navy"] .btn.accent:hover { background: var(--grain), color-mix(in srgb, var(--orange) 85%, #000); color: var(--white); border-color: transparent; }
[data-theme="navy"] .btn:not(.accent):not(.on), .lightbox-close { background: var(--grain), rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="navy"] .btn:not(.accent):not(.on):hover, .lightbox-close:hover { background: var(--grain), rgba(255,255,255,.18); color: var(--white); border-color: rgba(255,255,255,.6); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips .btn { height: 34px; padding: 0 14px; font-size: 12px; border-width: 1px; }
@media (max-width: 700px) { .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad); scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chips .btn { flex: none; } }

.nav, .nav-cta, .btn, .lightbox-close, .menu-open .nav { background-blend-mode: soft-light, normal; }

.no-grain { --grain: none; }
.no-hero-fade .hero { height: 100svh; }
.no-hero-fade .hero-fade { display: none; }

/* nav: full-width bar. Transparent at the very top, solid brand colour once you scroll. No glass, no blur. */
.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 84px; padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: transparent; color: var(--white); border-bottom: 1px solid transparent;
  transition: background .35s, color .35s, height .35s var(--ease), border-color .35s; }
.nav { background: var(--grain), rgba(12,36,62,.34); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); border-bottom-color: rgba(255,255,255,.14); }
.nav.scrolled { height: 68px; background: var(--grain), rgba(12,36,62,.74); border-bottom-color: rgba(255,255,255,.1); }
.nav.light { color: var(--navy); background: var(--grain), rgba(255,255,255,.5); border-bottom-color: rgba(12,36,62,.08); }
.nav.light.scrolled { background: var(--grain), rgba(255,255,255,.78); border-bottom-color: rgba(12,36,62,.08); }
.nav-logo { justify-self: start; display: block; height: 36px; flex: none; position: relative; aspect-ratio: 1200/698; transition: height .35s var(--ease); }
.nav.scrolled .nav-logo { height: 32px; }
.nav-logo img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .3s; }
.nav-logo .l-light, .nav.light .nav-logo .l-dark { opacity: 0; }
.nav.light .nav-logo .l-light { opacity: 1; }
.nav-links { justify-self: center; display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 500; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-cta { justify-self: end; height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border-radius: 3px; background: var(--grain), var(--orange); color: #fff; font-size: 14px; font-weight: 600; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--grain), color-mix(in srgb, var(--orange) 85%, #000); }
.nav.light .nav-cta:hover { background: var(--grain), var(--navy); color: var(--white); }
.nav-burger { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.nav-burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 25px; }
.menu-open .nav-burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav-burger i:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; z-index: 99; top: 0; left: 0; right: 0; padding: 84px var(--pad) 24px; display: grid; background: var(--white); color: var(--navy);
  box-shadow: 0 20px 40px rgba(12,36,62,.12); transform: translateY(-100%); transition: transform .45s var(--ease); }
.menu-open .menu { transform: none; }
.menu-open .nav { color: var(--navy); background: var(--grain), var(--white); }
.menu-open .nav .nav-logo .l-dark { opacity: 0; } .menu-open .nav .nav-logo .l-light { opacity: 1; }
.menu a { padding: 16px 0; border-bottom: 1px solid rgba(12,36,62,.08); font-size: 20px; font-weight: 600; }
.menu a:hover { color: var(--orange); }
@media (max-width: 900px) {
  .nav { height: 68px; grid-template-columns: 1fr auto; }
  .nav.scrolled { height: 60px; }
  .nav-logo, .nav.scrolled .nav-logo { height: 30px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .menu { padding-top: 76px; }
}

/* pixel edge transitions (plain squares) */
.pixedge { position: relative; background: var(--from); margin-bottom: -1px; pointer-events: none; }
.pixedge canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* GE BOX corner squares: 2-3 per section, like the Instagram posts */
.corner { position: absolute; z-index: 1; display: grid; grid-template-columns: repeat(3, var(--s)); grid-auto-rows: var(--s); --s: clamp(16px, 1.7vw, 24px); pointer-events: none; }
.corner.tr { top: clamp(20px, 3vw, 40px); right: var(--pad); }
.corner.bl { bottom: clamp(20px, 3vw, 40px); left: var(--pad); }
.corner span { font-family: "GEBox"; font-size: var(--s); line-height: 1; color: var(--orange); opacity: 0; transform: scale(.4); transition: opacity .2s steps(2), transform .35s var(--ease); }
.corner.in span { opacity: 1; transform: none; }
.corner.in span:nth-child(2) { transition-delay: .12s; } .corner.in span:nth-child(3) { transition-delay: .24s; }

/* reveal */
.fu { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fu.in { opacity: 1; transform: none; }

/* HERO: video only */
/* the section is taller than the screen; the video layer stays pinned while you scroll the extra part,
   and the fade into the next section grows with the scroll. At the top of the page there is no fade. */
.hero { --p: 0; height: 118svh; min-height: 560px; overflow: clip; background: var(--next, var(--navy)); }
.hero-stick { position: sticky; top: 0; height: 100svh; min-height: 480px; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; transform: translateZ(0); will-change: opacity; }
.hero-slide.on { opacity: 1; }
.hero-slide video, .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-stick::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,30,.38), rgba(8,18,30,0) 20%); pointer-events: none; }
.hero-fade { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 36%; pointer-events: none; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 40%));
  background: linear-gradient(180deg, color-mix(in srgb, var(--next) 0%, transparent) 0%, color-mix(in srgb, var(--next) 6%, transparent) 18%, color-mix(in srgb, var(--next) 20%, transparent) 34%, color-mix(in srgb, var(--next) 46%, transparent) 50%, color-mix(in srgb, var(--next) 74%, transparent) 64%, color-mix(in srgb, var(--next) 93%, transparent) 76%, var(--next) 86%, var(--next) 100%); }
.hero-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(30px, 5vh, 56px); padding-inline: var(--pad); display: flex; justify-content: center; pointer-events: none; opacity: calc(1 - var(--p) * 1.6); transform: translateY(calc(var(--p) * -16px)); }
.hero-caption p { max-width: 780px; text-align: center; color: rgba(255,255,255,.9); font-size: clamp(12px, 1vw, 14px); font-weight: 300; line-height: 1.7; letter-spacing: .04em; text-shadow: 0 1px 14px rgba(0,0,0,.5), 0 0 2px rgba(0,0,0,.25);
  animation: capIn 1.6s .6s var(--ease) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } }
.hero-caption ~ .hero-scroll { display: none; }
.hero-caption strong { display: block; margin-bottom: 4px; font-weight: 600; font-size: 1.25em; letter-spacing: .02em; color: #fff; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 1px; height: 44px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* page header (inner pages) */
.page-head { padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head .t2 b { font-size: clamp(34px, 5vw, 72px); }
.page-head p { margin-top: 22px; max-width: 560px; color: var(--muted); }
.crumbs { display: flex; gap: 8px; font-size: 12px; opacity: .7; margin-bottom: 22px; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* intro */
.intro { text-align: center; }
.intro .lead { max-width: 760px; margin: 0 auto; }
.intro .btn { margin-top: 30px; }

/* stats: centred in the band */
.stats { text-align: center; padding-block: clamp(64px, 7vw, 104px); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 16px; max-width: 1040px; margin-inline: auto; }
.stat { display: grid; justify-items: center; }
.stat b { display: block; font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; font-size: 13px; opacity: .9; }
.stat b em { font-style: normal; }
.stats h2 { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 40px; opacity: .9; }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* folders: pixel-step tab, sheets inside, colour only */
.folders { display: grid; gap: 34px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.folder { --px: 7px; --tab: 20px; --dark: color-mix(in srgb, var(--fc) 72%, #000); position: relative; display: block; aspect-ratio: 5/4; padding-top: calc(var(--px) * 3); isolation: isolate; perspective: 900px; }
.folder-back { position: absolute; inset: calc(var(--px) * 3) 0 0; border-radius: 0 12px 12px 12px; background: var(--dark); z-index: -2; }
.folder-tab { position: absolute; left: 0; bottom: calc(100% - 1px); width: calc(38% + 30px); height: 20px; background: var(--dark); border-radius: 10px 0 0 0;
  -webkit-mask: linear-gradient(#000, #000) left / calc(100% - 29px) 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0C11 0 15 6 17 11S21 20 30 20H0Z'/%3E%3C/svg%3E") right / 30px 100% no-repeat;
          mask: linear-gradient(#000, #000) left / calc(100% - 29px) 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0C11 0 15 6 17 11S21 20 30 20H0Z'/%3E%3C/svg%3E") right / 30px 100% no-repeat; }
.folder-sheets { position: absolute; inset: calc(var(--px) * 3 + 7px) 12px 30%; z-index: -1; }
.folder-sheets i { position: absolute; inset: 0; border-radius: 8px; background: color-mix(in srgb, var(--fc) 6%, #fff); box-shadow: 0 -1px 0 rgba(12,36,62,.10), 0 -3px 6px -3px rgba(12,36,62,.18);
  transition: transform .5s var(--ease); }
.folder-front { position: absolute; inset: calc(var(--px) * 3 + 22px) 0 0; border-radius: 10px 10px 12px 12px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ft); overflow: hidden;
  background: linear-gradient(var(--ga, 180deg), var(--g1, color-mix(in srgb, var(--fc) 86%, #fff)) 0%, var(--g2, color-mix(in srgb, var(--fc) 86%, #000)) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 -6px 14px -8px rgba(0,0,0,.25), 0 14px 26px -16px color-mix(in srgb, var(--fc) 60%, #000);
  transform-origin: 50% 100%; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.folder:hover .folder-front { transform: rotateX(-14deg); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 -10px 20px -8px rgba(0,0,0,.3), 0 22px 34px -18px color-mix(in srgb, var(--fc) 65%, #000); }
.folder:hover .folder-sheets i { transform: translateY(-16px); }
.folder-top { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.folder-mid { position: relative; flex: 1; display: flex; align-items: center; min-height: 54px; margin: 2px 0; }
.folder-logo { height: 54px; width: auto; max-width: 80%; object-fit: contain; object-position: left center; }
.folder-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.folder-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; font-size: 12px; opacity: .85; }
.folder-bottom .arr { font-size: 16px; transition: transform .35s var(--ease); }
.folder:hover .folder-bottom .arr { transform: translateX(4px); }
.folder.hidden { display: none; }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* services: a drawer of folders, one open at a time (opens on hover) */
.svc-stack { --px: 7px; display: grid; padding-top: calc(var(--px) * 3); }
.svc-band { position: relative; background: var(--sc); color: var(--st); margin-top: -18px; border-radius: 14px 14px 0 0; z-index: var(--z);
  box-shadow: 0 -8px 20px -14px rgba(12,36,62,.45); }
.svc-band:first-child { margin-top: 0; }
.svc-band:not(:last-child) { padding-bottom: 18px; }
.svc-band:last-child { border-radius: 14px; }
.svc-ear { position: absolute; bottom: calc(100% - 1px); left: calc(28px + (100% - 56px - 220px) * var(--tx)); width: 220px; height: 20px; background: var(--sc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20C9 20 11 16 13 11S19 0 30 0V20Z'/%3E%3C/svg%3E") left / 30px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 58px) 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0C11 0 15 6 17 11S21 20 30 20H0Z'/%3E%3C/svg%3E") right / 30px 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20C9 20 11 16 13 11S19 0 30 0V20Z'/%3E%3C/svg%3E") left / 30px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 58px) 100% no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0C11 0 15 6 17 11S21 20 30 20H0Z'/%3E%3C/svg%3E") right / 30px 100% no-repeat; }
.svc-tab { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px clamp(18px, 3vw, 32px) 24px; margin-bottom: 0; text-align: left; font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; }
.svc-tab span { flex: 1; }
.svc-tab .arr { font-style: normal; font-weight: 400; font-size: 18px; transition: transform .4s var(--ease); }
.svc-band.open .svc-tab .arr { transform: rotate(90deg); }
.svc-tab:hover .arr { transform: translateX(4px); }
.svc-band.open .svc-tab:hover .arr { transform: rotate(90deg) translateX(3px); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.svc-band.open .svc-body { grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; min-height: 0; }
.svc-inner > * { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .5s var(--ease); }
.svc-band.open .svc-inner > * { opacity: 1; transform: none; transition-delay: .12s; }
.svc-text { padding: 0 clamp(18px, 3vw, 32px) 28px; display: flex; flex-direction: column; align-items: flex-start; }
.svc-text p { font-size: 14px; max-width: 460px; opacity: .92; }
.svc-text .svc-inc { margin-top: 12px; font-size: 12px; opacity: .7; letter-spacing: .02em; }
.svc-text .btn { margin-top: 20px; --fg: var(--st); --bg: var(--sc); }
.svc-pic { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16/9; margin: 0 clamp(18px, 3vw, 32px) 28px; }
.svc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-pic:hover img { transform: scale(1.04); }
@media (min-width: 860px) {
  .svc-inner { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 280px; }
  .svc-text { justify-content: center; padding-bottom: 32px; }
  .svc-pic { aspect-ratio: auto; height: 248px; margin: 0 clamp(18px, 3vw, 32px) 32px 0; }
}

/* process */
.steps { display: grid; gap: 0; }
.step { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step-n { font-family: "GEBox"; font-size: 28px; line-height: 1; color: var(--orange); }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { font-size: 14px; color: var(--muted); max-width: 320px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* clients logo wall */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 6px 10px; }
/* every logo gets the same visual weight: JS sets width/height from its shape (wide logos wider, square ones smaller) */
.logo-tile { position: relative; aspect-ratio: 3/2; display: grid; place-items: center; }
.logo-tile img { width: 40%; height: 50%; object-fit: contain; opacity: .78; filter: contrast(.95);
  transition: opacity .35s, transform .45s var(--ease), filter .35s; }
.logo-tile .nm { font-size: 13px; font-weight: 600; text-align: center; }
.logo-tile:hover img { opacity: 1; transform: scale(1.1); filter: contrast(1.15) brightness(1.08); }
.logo-tile.dim { opacity: .15; }
[data-theme="white"] .logo-tile img, [data-theme="offwhite"] .logo-tile img, [data-theme="white"] .logo-tile:hover img, [data-theme="offwhite"] .logo-tile:hover img { filter: brightness(0) saturate(100%) invert(11%) sepia(39%) saturate(1800%) hue-rotate(186deg) brightness(92%); }

/* cards (events) */
.cards { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: block; }
.card figure { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--offwhite); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card h3 { margin-top: 14px; font-size: 16px; font-weight: 600; }
.card p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* contact */
.contact-big { font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; display: inline-block; margin-top: 26px; word-break: break-word; }
.contact-big:hover { color: var(--orange); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.info { display: grid; gap: 22px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.info dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info dd a:hover { color: var(--orange); }
@media (min-width: 860px) { .info { grid-template-columns: repeat(3, 1fr); } }

/* contact form: reads like a conversation, large type, underlines only */
.talk { margin-top: clamp(40px, 6vw, 72px); max-width: 1120px; }
.talk-line { font-size: clamp(22px, 2.6vw, 38px); font-weight: 300; line-height: 1.6; letter-spacing: -.01em; }
.talk-line + .talk-line, .talk-tags + .talk-line { margin-top: .35em; }
.page-head .talk p { max-width: none; margin-top: 0; }
.page-head .talk .talk-line { color: var(--navy); }
.page-head .talk .talk-line + .talk-line, .page-head .talk .talk-tags + .talk-line { margin-top: .35em; }
.page-head .talk .talk-foot p { color: var(--muted); }
.page-head .talk .form-status { margin-top: 16px; }
.blank { display: inline-block; vertical-align: baseline; }
.blank input { font: inherit; font-weight: 600; color: var(--navy); background: transparent; border: 0; border-bottom: 2px solid rgba(12,36,62,.18); border-radius: 0;
  padding: 0 6px .05em; min-width: 3em; max-width: 100%; transition: border-color .25s, width .2s; }
.blank input::placeholder { color: rgba(12,36,62,.28); font-weight: 400; }
.blank input:focus { outline: none; border-bottom-color: var(--orange); }
.blank input:not(:placeholder-shown) { border-bottom-color: var(--navy); }
.talk-or { color: var(--muted); font-size: .7em; margin-inline: .2em; }
.talk-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.talk-tag { height: 46px; padding: 0 20px; border-radius: 3px; border: 1.5px solid rgba(12,36,62,.18); font-size: 15px; font-weight: 500; color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.talk-tag:hover { border-color: var(--navy); }
.talk-tag[aria-pressed="true"] { background: var(--grain), var(--orange); background-blend-mode: soft-light, normal; border-color: var(--orange); color: var(--white); }
.talk-msg { display: block; margin-top: clamp(32px, 4vw, 52px); }
.talk-msg > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.talk-msg textarea { display: block; width: 100%; min-height: 150px; resize: none; overflow: hidden; font: inherit; font-size: clamp(18px, 1.7vw, 24px); font-weight: 400; line-height: 1.55; color: var(--navy);
  background: transparent; border: 0; border-bottom: 2px solid rgba(12,36,62,.18); border-radius: 0; padding: 0 0 14px; transition: border-color .25s; }
.talk-msg textarea::placeholder { color: rgba(12,36,62,.28); }
.talk-msg textarea:focus { outline: none; border-bottom-color: var(--orange); }
.talk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.talk-send { height: 60px; padding: 0 36px; font-size: 17px; }
.talk-send:disabled { opacity: .6; cursor: progress; }
.talk-foot p { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--muted); }
.talk-foot a { color: var(--navy); border-bottom: 1px solid rgba(12,36,62,.25); }
.talk-foot a:hover { color: var(--orange); border-color: var(--orange); }
.form-status { margin-top: 16px; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--olive); }
.form-status.err { color: #C2412D; }

/* footer */
.footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: 13px; }
.footer .wrap { display: grid; gap: 28px; padding-block: 44px 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-top img { height: 30px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* about */
.about-grid { display: grid; gap: 40px; }
.about-grid figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--orange); }
.about-grid figure img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1); }
.about-body p + p { margin-top: 14px; }
.quote { font-size: 17px; font-weight: 600; line-height: 1.5; padding-left: 18px; border-left: 2px solid var(--orange); margin-top: 28px; }
.principles { display: grid; margin-top: 10px; }
.principles li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* detail pages (client / service / event) */
.detail-hero { padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(40px, 5vw, 64px); }
.detail-hero.colored { background: linear-gradient(180deg, transparent 55%, var(--cc) 100%), linear-gradient(150deg, color-mix(in srgb, var(--cc) 80%, #fff), var(--cc) 45%, color-mix(in srgb, var(--cc) 80%, #000)); color: var(--ct); }
.detail-hero .t2 b { font-size: clamp(34px, 5vw, 72px); }
.detail-hero .logo { height: 48px; width: auto; margin-bottom: 26px; }
.detail-hero .lead { margin-top: 22px; max-width: 680px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 14px; }
.meta dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { display: flex; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 500; border-radius: 3px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); transition: background .2s, color .2s; }
a.tag:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.meta-wide { grid-column: 1 / -1; }
.meta-wide .tags { margin-top: 6px; }
.project { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; padding-top: 0; }
.project-head { display: grid; gap: 14px; margin-bottom: 28px; }
.project-head h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.01em; }
.project-head .k { font-size: 12px; color: var(--orange); font-weight: 600; letter-spacing: .06em; }
.project-head p { color: var(--muted); max-width: 560px; }
@media (min-width: 860px) { .project-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { overflow: hidden; border-radius: 12px; background: var(--offwhite); cursor: zoom-in; }
.gallery figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .8s var(--ease); }
.gallery figure:first-child:nth-last-child(odd) img { aspect-ratio: 16/9; }
.gallery figure:hover img { transform: scale(1.03); }
.films { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.film video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16/9; object-fit: cover; }
.film p { margin-top: 10px; font-size: 14px; font-weight: 500; }
.sub { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.next-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 36px; border-top: 1px solid var(--line); }
.next-link small { display: block; font-size: 12px; color: var(--muted); }
.next-link strong { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; }
.empty { color: var(--muted); padding: 10px 0 30px; }

/* project media: images, videos, PDFs */
.gallery figure { position: relative; }
.gallery figure.has-cap figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(8,18,30,.7)); }
.gallery .m-video { grid-column: 1 / -1; cursor: default; background: #000; }
.gallery .m-video video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; display: block; }
.gallery .m-video figcaption { padding: 12px 16px; font-size: 13px; color: rgba(255,255,255,.8); background: #0b1420; }
.gallery .m-pdf { cursor: pointer; display: flex; flex-direction: column; background: var(--navy); color: #fff; }
.m-pdf-cover { position: relative; flex: 1; min-height: 0; aspect-ratio: 4/3; background: #1b3350; overflow: hidden; }
.m-pdf-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: auto; transition: transform .8s var(--ease); }
.m-pdf:hover .m-pdf-cover img { transform: scale(1.03); }
.m-pdf-badge { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--orange); color: #fff; }
.m-pdf figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 13px; }
.m-pdf figcaption b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pdf figcaption span { flex: none; color: var(--orange); font-weight: 600; }
.lightbox.pdf { padding: 3vh 3vw; }
.lb-pdf { width: min(1100px, 94vw); height: 88vh; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.lb-pdf iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; background: #fff; }
.lb-pdf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #fff; --fg: #fff; --bg: var(--navy); }
.lb-pdf-bar span { flex: 1; min-width: 160px; font-size: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 4vw; background: rgba(8, 18, 30, .92); }
.lightbox.on { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; --fg: #fff; --bg: var(--navy); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
