:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --fg: #f5f5f3;
  --muted: #8d8d8a;
  --line: rgba(255, 255, 255, .14);
  --paper: #f5f5f3;
  --ink: #0a0a0a;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: 'Poppins', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 10, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-weight: 700; letter-spacing: .04em; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.nav-links { display: flex; gap: 34px; font-size: 14px; }
.nav-links a { position: relative; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px;
  border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--fg); margin: 4px auto; transition: transform .3s; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding-top: 120px; display: flex; flex-direction: column; overflow: hidden; }
.hero-head { text-align: center; position: relative; z-index: 2; }
.hero h1 {
  margin: 18px auto 0; max-width: 15ch;
  font-size: clamp(42px, 7.4vw, 112px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.01em; }
.hero-sub { margin: 22px auto 0; max-width: 520px; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ring-stage {
  position: relative; flex: 1; min-height: 420px; margin-top: 10px;
  perspective: 1400px; perspective-origin: 50% 35%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 48%; width: 0; height: 0; transform-style: preserve-3d; }
.ring-card {
  position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) / -2);
  width: var(--w); height: var(--h); border-radius: 14px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #1a1a1a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.ring-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .12); }
.hero-glow {
  position: absolute; left: 50%; bottom: -30%; width: 120vw; height: 70vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent); pointer-events: none;
}
.hero-foot {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end;
  padding-bottom: 26px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--fg); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { to { top: 100%; } }

/* ---------- STATS ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 0; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- SECTION HEADS ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-title { margin: 14px 0 0; font-size: clamp(44px, 8vw, 128px); line-height: .92; font-weight: 700; letter-spacing: -.045em; text-transform: uppercase; }
.sec-title .num { font-size: .28em; vertical-align: top; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-right: .4em; }
.sec-text { color: var(--muted); max-width: 520px; justify-self: end; margin: 0; }

/* ---------- CLIENTS ---------- */
.clients { padding: clamp(80px, 10vw, 140px) 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.marquee-track { display: flex; width: max-content; animation: marq 55s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.logo-chip {
  flex: none; width: 220px; height: 120px; margin-right: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 26px; transition: background .3s;
}
.logo-chip:hover { background: rgba(255, 255, 255, .05); }
.logo-chip img { max-height: 58px; max-width: 150px; object-fit: contain; opacity: .82; }

/* ---------- WORK ---------- */
.cat-block + .cat-block { margin-top: clamp(100px, 13vw, 180px); }
.grid-social { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.grid-social .card-meta { flex-direction: column; gap: 2px; }
.grid-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-wide > .card:first-child { grid-column: 1 / -1; }
.grid-wide > .card:first-child .card-media { aspect-ratio: 21 / 9; }

.card { position: relative; display: block; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 3 / 4; }
.grid-wide .card-media { aspect-ratio: 16 / 9; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.card-media .alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.05); }
.card:hover .card-media .alt { opacity: 1; }
.card-logo {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; height: 38px; max-width: 55%;
  display: flex; align-items: center; padding: 8px 12px; border-radius: 10px;
  background: rgba(10, 10, 10, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); transition: .45s var(--ease);
}
.card-logo img { position: static; height: 100%; width: auto; max-width: 100%; object-fit: contain; transform: none !important; }
.card:hover .card-logo { opacity: 1; transform: none; }
.card-view {
  position: absolute; right: 16px; top: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--fg); color: var(--bg); display: grid; place-items: center;
  transform: scale(.4) rotate(-45deg); opacity: 0; transition: .45s var(--ease);
}
.card-view svg { width: 18px; height: 18px; }
.card:hover .card-view { transform: none; opacity: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.card-meta h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-meta span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.card-idx { font-size: 12px; color: var(--muted); margin-right: 8px; font-weight: 400; }

.logo-card .card-media { background: #161616; display: grid; place-items: center; }
.logo-card .mark {
  position: relative; inset: auto; z-index: 2; width: auto; height: auto;
  max-width: 62%; max-height: 42%; object-fit: contain; transform: none !important; transition: opacity .5s;
}
.logo-card .card-media .cover { opacity: 0; }
.logo-card:hover .mark { opacity: 0; }
.logo-card:hover .card-media .cover { opacity: 1; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }

/* Logo collection (white band) */
.paper { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 5vw, 64px); margin-top: 22px; }
.paper-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.paper-head h3 { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.paper-head p { margin: 0; max-width: 460px; color: #555; font-size: 15px; }
.collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(0, 0, 0, .12); border: 1px solid rgba(0, 0, 0, .12); border-radius: 14px; overflow: hidden; }
.collection div { background: var(--paper); height: clamp(130px, 15vw, 210px); display: flex; align-items: center; justify-content: center; padding: 24px; min-width: 0; }
.collection img { max-height: 100%; max-width: 75%; width: auto; height: auto; object-fit: contain; filter: invert(1); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.portrait { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #000; aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.portrait-tag { position: absolute; left: 18px; bottom: 18px; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.about-copy h2 { margin: 16px 0 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.about-copy > p { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 600px; margin: 22px 0 0; }
.xp { margin-top: 40px; border-top: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.xp-row span { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.xp-row b { font-weight: 500; font-size: 18px; }
.skills { margin-top: 34px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.skills small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.skill { width: 52px; height: 52px; border-radius: 12px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 18px; }

/* ---------- CONTACT ---------- */
.contact { border-top: 1px solid var(--line); padding: clamp(90px, 12vw, 170px) 0 40px; overflow: hidden; }
.contact-big { font-size: clamp(54px, 12.5vw, 210px); line-height: .86; font-weight: 700; letter-spacing: -.055em; text-transform: uppercase; margin: 22px 0 0; }
.contact-big .serif { text-transform: none; letter-spacing: -.02em; }
.contact-row { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.contact-link { padding: 28px 0; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-right: 20px; transition: padding .4s var(--ease); }
.contact-link + .contact-link { padding-left: 28px; }
.contact-link:last-child { border-right: 0; }
.contact-link small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-link b { font-weight: 500; font-size: clamp(16px, 1.6vw, 22px); word-break: break-all; display: inline-flex; align-items: center; gap: 10px; }
.contact-link b svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.contact-link:hover b svg { transform: translate(3px, -3px); }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 50px; color: var(--muted); font-size: 13px; }

/* ---------- PROJECT PAGE ---------- */
.p-hero { padding: 140px 0 60px; }
.p-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .2s; }
.p-back:hover { color: var(--fg); }
.p-back svg { width: 16px; height: 16px; }
.p-title { margin: 30px 0 0; font-size: clamp(52px, 11vw, 180px); line-height: .9; letter-spacing: -.055em; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.p-intro { margin-top: clamp(36px, 5vw, 70px); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(30px, 5vw, 80px); border-top: 1px solid var(--line); padding-top: 34px; }
.p-facts { display: grid; gap: 18px; align-content: start; }
.p-facts div small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.p-facts div b { font-weight: 500; font-size: 17px; }
.p-logo { height: 54px; width: auto; max-width: 240px; object-fit: contain; object-position: left; margin-bottom: 8px; }
.p-desc { margin: 0; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.55; letter-spacing: -.01em; color: #d6d6d3; }
.p-gallery { display: grid; gap: 22px; padding-bottom: 40px; }
.p-gallery.social { grid-template-columns: repeat(3, 1fr); align-items: start; }
.p-gallery.story { grid-template-columns: repeat(5, 1fr); align-items: start; }
.p-gallery.wide { grid-template-columns: 1fr; }
.p-gallery.wide.logo { grid-template-columns: repeat(2, 1fr); }
.p-gallery.wide.logo .shot:first-child { grid-column: 1 / -1; }
.shot { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.025); }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.palette div { aspect-ratio: 16 / 10; padding: 22px; display: flex; align-items: end; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.p-next { display: block; border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 120px) 0 40px; }
.p-next small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.p-next b { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: clamp(44px, 9vw, 150px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; margin-top: 12px; }
.p-next b svg { width: clamp(40px, 6vw, 90px); height: auto; flex: none; transition: transform .5s var(--ease); }
.p-next:hover b svg { transform: translateX(14px); }

/* ---------- LIGHTBOX ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 5, .94); display: none; align-items: center; justify-content: center; padding: 70px 80px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(10, 10, 10, .6); }
.lb button:hover { background: var(--fg); color: var(--bg); }
.lb button svg { width: 20px; height: 20px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* ---------- REVEAL ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .grid-social { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-gallery.story { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open { background: var(--bg); }
  .nav.open .nav-links { display: flex; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 20px var(--gutter); }
  .nav.open .nav-links a { font-size: 34px; font-weight: 600; letter-spacing: -.03em; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.open .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-text { justify-self: start; }
  .grid-social { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-wide { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .grid-wide > .card:first-child .card-media { aspect-ratio: 16 / 9; }
  .card-meta { flex-direction: column; gap: 2px; }
  .card-logo, .card-view { display: none; }
  .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection div { padding: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; }
  .xp-row { grid-template-columns: 1fr; gap: 2px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-link, .contact-link + .contact-link { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .p-intro { grid-template-columns: 1fr; }
  .p-gallery.social, .p-gallery.story { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-gallery.wide.logo { grid-template-columns: 1fr; }
  .palette { grid-template-columns: 1fr; }
  .palette div { aspect-ratio: auto; height: 90px; }
  .lb { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .logo-chip { width: 160px; height: 96px; padding: 20px; margin-right: 12px; }
  .logo-chip img { max-height: 46px; max-width: 110px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 40px; }
  .ring-stage { min-height: 340px; }
  .hero-foot span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   SERVICE CARDS (home) — glass card, chrome icons, flip to a design
   ===================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 52px); padding: 30px clamp(0px, 1.5vw, 20px) 20px; }
.svc-card { display: block; perspective: 1600px; container-type: inline-size; outline: none; }
.svc-inner { position: relative; aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .8, .2, 1); }
.svc-card:hover .svc-inner, .svc-card.flipped .svc-inner { transform: rotateY(180deg); }
.svc-face { position: absolute; inset: 0; border-radius: 7cqw; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

.svc-front {
  background:
    radial-gradient(70% 45% at 8% 4%, rgba(40, 90, 255, .75), transparent 70%),
    radial-gradient(90% 60% at 50% 45%, rgba(20, 40, 160, .35), transparent 75%),
    linear-gradient(180deg, #06103a 0%, #040a26 55%, #02040f 100%);
  border: 1.5px solid rgba(70, 120, 255, .85);
  box-shadow: 0 0 0 1px rgba(70, 120, 255, .15), 0 0 26px rgba(50, 100, 255, .35), inset 0 0 30px rgba(60, 110, 255, .18);
  display: grid; place-items: center; text-align: center;
}
.svc-orbit { position: absolute; inset: -4% -8%; width: 116%; height: 108%; pointer-events: none; animation: orbit 14s ease-in-out infinite; }
.svc-copy { position: relative; z-index: 1; padding: 0 9cqw; }
.svc-copy h3 { margin: 0; font-size: 9.6cqw; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.svc-bar { display: block; width: 28cqw; height: 1.1cqw; min-height: 3px; margin: 5.5cqw auto; border-radius: 9px; background: #3f37ff; box-shadow: 0 0 14px rgba(80, 70, 255, .7); }
.svc-copy p { margin: 0; font-size: 5.2cqw; line-height: 1.5; color: rgba(255, 255, 255, .88); }

.svc-ico { position: absolute; width: 40cqw; height: auto; z-index: 2; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.svc-ico.tr { top: -9cqw; right: -9cqw; animation: float-a 6.5s ease-in-out infinite; }
.svc-ico.bl { bottom: -7cqw; left: -10cqw; animation: float-b 7.5s ease-in-out infinite; }
@keyframes float-a { 0%, 100% { transform: translate(0, 0) rotate(8deg); } 50% { transform: translate(-1.5cqw, -4cqw) rotate(2deg); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0) rotate(-10deg); } 50% { transform: translate(2cqw, -3.5cqw) rotate(-3deg); } }
@keyframes orbit { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg) scale(1.02); } }

.svc-back { transform: rotateY(180deg); overflow: hidden; background: #050816; border: 1.5px solid rgba(70, 120, 255, .85); box-shadow: 0 0 26px rgba(50, 100, 255, .35); }
.svc-back .bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); }
.svc-back .fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.svc-card[data-id="social"] .svc-back .fg { object-fit: cover; }
.svc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18cqw 7cqw 7cqw; display: flex; flex-direction: column; gap: 1.5cqw;
  background: linear-gradient(transparent, rgba(2, 4, 15, .92)); text-align: left; }
.svc-cap span { font-size: 4.2cqw; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.svc-cap b { display: flex; align-items: center; gap: 2.5cqw; font-size: 7cqw; font-weight: 600; color: #fff; }
.svc-cap svg { width: 6cqw; height: 6cqw; }
.svc-soon { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2cqw;
  background: radial-gradient(80% 60% at 50% 40%, rgba(40, 80, 255, .35), transparent 70%), #050816; }
.svc-soon b { font-size: 10cqw; font-weight: 700; letter-spacing: -.02em; }
.svc-soon span { font-size: 5cqw; color: rgba(255, 255, 255, .65); }

/* Service page */
.s-head { margin: 34px 0 0; }
.svc-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(50px, 8vw, 110px) 24px; text-align: center; }
.svc-empty b { font-size: clamp(28px, 4vw, 52px); letter-spacing: -.03em; }
.svc-empty p { margin: 12px auto 0; max-width: 460px; color: var(--muted); }

@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; row-gap: 70px; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 340px; padding-left: 26px; padding-right: 26px; } }
@media (prefers-reduced-motion: reduce) { .svc-ico, .svc-orbit { animation: none; } .svc-inner { transition-duration: .01s; } }

/* Bottom pager (service + project pages): ← | NEXT NAME | → */
.pager { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 40px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(60px, 9vw, 120px); padding: clamp(40px, 6vw, 80px) 0; }
.pg-main { text-align: center; min-width: 0; }
.pg-main small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pg-main b { display: block; margin-top: 12px; font-size: clamp(34px, 8vw, 140px); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; overflow-wrap: anywhere; transition: opacity .3s; }
.pg-main:hover b { opacity: .75; }
.pg-arrow { display: grid; justify-items: center; gap: 8px; color: var(--muted); transition: color .3s; }
.pg-arrow svg { width: clamp(44px, 6vw, 84px); height: clamp(44px, 6vw, 84px); padding: clamp(10px, 1.4vw, 20px); border: 1px solid var(--line); border-radius: 50%; color: var(--fg);
  transition: background .3s, color .3s, transform .4s var(--ease); }
.pg-arrow small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pg-arrow:hover { color: var(--fg); }
.pg-arrow:hover svg { background: var(--fg); color: var(--bg); }
.pg-arrow:first-child:hover svg { transform: translateX(-6px); }
.pg-arrow:last-child:hover svg { transform: translateX(6px); }
@media (max-width: 560px) { .pg-arrow small { display: none; } .pg-main small { font-size: 10px; letter-spacing: .14em; } }

/* Particle icon background (js/particles.js) */
html { background: var(--bg); }
body { background: transparent; }
.fx-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .8; }
@media (max-width: 760px) { .fx-bg { opacity: .45; } }

/* inner pages end with the pager (no contact section there) */
#project, #service { padding-bottom: clamp(50px, 7vw, 90px); }

/* empty box above the Clients paragraph: the particle heart sits here (js/particles.js data-fx-anchor) */
.clients .sec-head { position: relative; }
.clients .fx-anchor { position: absolute; right: 4%; top: -110px; width: 40%; bottom: 145px; pointer-events: none; }
@media (max-width: 860px) { .clients .fx-anchor { display: none; } }

/* portfolio PDF link: only inside the mobile menu (desktop has the nav button) */
.nav-links .nav-pdf { display: none; }
.nav.open .nav-links .nav-pdf { display: block; }

/* ---------- Client logo boxes: the blue glowing frame (from the old service cards) ---------- */
.logo-chip {
  border: 1.5px solid rgba(70, 120, 255, .85);
  box-shadow: 0 0 0 1px rgba(70, 120, 255, .15), 0 0 18px rgba(50, 100, 255, .32), inset 0 0 22px rgba(60, 110, 255, .14);
}
.logo-chip:hover { box-shadow: 0 0 0 1px rgba(70, 120, 255, .25), 0 0 26px rgba(50, 100, 255, .5), inset 0 0 26px rgba(60, 110, 255, .2); }
.marquee { padding: 16px 0; }              /* room so the glow isn't clipped */
.marquee + .marquee { margin-top: 0; }

/* every word in the italic serif font takes the service-card blue */
.serif { color: #3b6dff; }

/* numbers row sits a little higher, leaving room above the Clients badge */
.hero { min-height: calc(100svh - 70px); }
.clients { padding-top: clamp(110px, 12vw, 170px); }

/* ---------- About portrait: photo blends into the page + particle ring behind the head ---------- */
.portrait { background: none; border-radius: 0; overflow: visible; }
.portrait-media { position: relative; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 58%, transparent 97%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 58%, transparent 97%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-composite: intersect; }
.portrait-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: none; }
.portrait-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.portrait-tag { bottom: 8%; }

.portrait-ring { inset: auto; left: -14%; top: -16%; width: 128%; height: 116%; }   /* room around the photo so the ring is never cut */

/* face light recoloured to the ring colour (js/portrait-ring.js) */
.face-light { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: color; }

/* portrait tag is now a link to the CV */
a.portrait-tag { display: inline-flex; align-items: center; gap: 8px; z-index: 3; transition: transform .25s, box-shadow .25s; }
a.portrait-tag svg { width: 14px; height: 14px; }
a.portrait-tag:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59, 109, 255, .45); }

/* ---------- Occasions wheel (service page: social) ---------- */
.occ { margin-top: clamp(70px, 9vw, 130px); }
.occ-stage { position: relative; height: clamp(520px, 52vw, 700px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.occ-wheel { position: absolute; inset: 0; }
.occ-card { position: absolute; left: 0; top: 0; width: var(--cw); aspect-ratio: 9 / 16; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: #161616; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); will-change: transform; transform-origin: 50% 50%; transition: box-shadow .3s; }
.occ-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.occ-card:hover { box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .9), 0 0 0 2px #3b6dff, 0 0 28px rgba(59, 109, 255, .5); }
.occ-title { position: absolute; left: 50%; bottom: clamp(18px, 4vw, 48px); transform: translateX(-50%); width: min(620px, 86%); text-align: center; z-index: 200; pointer-events: none; }
.occ-h { margin: 0; font-size: clamp(34px, 5.2vw, 76px); line-height: 1; letter-spacing: -.04em; font-weight: 700; text-transform: uppercase; }
.occ-h .serif { text-transform: none; }
.occ-text { margin: 16px auto 0; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 700px) { .occ-stage { height: 520px; } .occ-text { font-size: 14px; } }

.occ-title::before { content: ''; position: absolute; inset: -30% -18% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(10, 10, 10, .88), rgba(10, 10, 10, .55) 55%, transparent); }
.occ-h { text-shadow: 0 6px 30px rgba(0, 0, 0, .7); }

/* service pages end with a simple way back (no jumping between services) */
.s-back { display: flex; justify-content: center; margin-top: clamp(60px, 8vw, 110px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }

.pg-none { width: clamp(44px, 6vw, 84px); }   /* keeps the name centred when an arrow is hidden */

.pager + .s-back { margin-top: clamp(36px, 5vw, 60px); border-top: 0; padding-top: 0; }

/* no double-tap zoom on touch screens */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* mobile menu: solid black, full screen. (The scrolled nav's backdrop-filter made the fixed menu size itself to the 72px bar,
   so it showed the page through it.) */
.nav.open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 860px) {
  .nav.open .nav-links { position: fixed; top: 72px; left: 0; right: 0; bottom: auto; height: calc(100vh - 72px); height: calc(100dvh - 72px);
    background: var(--bg); overflow-y: auto; z-index: 60; }
}

/* phones: dark fade on the left and right of the spinning cards, for depth */
@media (max-width: 760px) {
  .ring-stage { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 8%, #000 30%, #000 70%, rgba(0,0,0,.35) 92%, transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 8%, #000 30%, #000 70%, rgba(0,0,0,.35) 92%, transparent 100%); }
}

/* phones: no grey glow under the hero cards */
@media (max-width: 760px) { .hero-glow { display: none; } }

/* Adobe app icons in About > Tools */
.skill-app { background: none; width: 54px; height: 53px; padding: 0; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: transform .25s; }
.skill-app svg { width: 100%; height: 100%; display: block; }
.skill-app:hover { transform: translateY(-3px); }

/* View my CV sits under the Tools row */
.about-cv { margin-top: 30px; }

/* About headline: name big + blue serif on its own line, then a white line */
.about-copy h2.about-head { letter-spacing: normal; line-height: 1; }
.about-head .about-name { display: block; color: #3b6dff; font-weight: 400; font-style: italic; font-size: clamp(56px, 6.4vw, 96px); line-height: .95; letter-spacing: -.01em; }
.about-head .about-line { display: block; margin-top: 14px; color: #fff; font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -.02em; }
/* Occasions headline: 'Every occasion,' on one line in the blue serif */
.occ-h .occ-every { display: inline-block; white-space: nowrap; letter-spacing: -.01em; font-size: 1.12em; line-height: .95; }

.occ-h .occ-made { display: inline-block; white-space: nowrap; font-size: min(1em, 7.6vw); }

/* Floating like heart */
.like-btn { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 13px; border-radius: 999px;
  background: rgba(14, 14, 18, .82); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font: 600 14px/1 Poppins, sans-serif; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: border-color .25s, transform .2s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.like-btn:hover { border-color: rgba(59, 109, 255, .7); transform: translateY(-2px); }
.like-btn svg { width: 22px; height: 22px; overflow: visible; }
.like-btn path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; transition: fill .25s, stroke .25s; }
.like-btn.on path { fill: url(#likeGrad); stroke: #7d9bff; }
.like-btn.on { border-color: rgba(59, 109, 255, .55); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(59, 109, 255, .35); }
.like-btn .like-n:empty { display: none; }
.like-btn .like-n { min-width: 1ch; font-variant-numeric: tabular-nums; }
.like-btn.pop svg { animation: likePop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.like-spark { position: absolute; left: 25px; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none;
  animation: likeSpark .65s ease-out forwards; }
@keyframes likeSpark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
.nav.open ~ .like-btn, body:has(.lb.open) .like-btn { display: none; }
@media (max-width: 760px) { .like-btn { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 42px; } }
/* Nav logo */
.brand-logo { display: block; height: 40px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 34px; } }

/* occasions headline: true centring even when a line is wider than the title box */
.occ-h { display: flex; flex-direction: column; align-items: center; }
.occ-h br { display: none; }
.occ-h .occ-every { padding-right: .06em; }

/* nav logo a touch smaller */
.brand-logo { height: 34px; }
@media (max-width: 760px) { .brand-logo { height: 29px; } }

/* about portrait: the cut-out photo sits on top of the ring (ring shows only around him) */
.portrait-ring { z-index: 0; }
.portrait-media { z-index: 1; }
.portrait-media img {
  -webkit-mask-image: url(../assets/img/osama-portrait-mask.png?v=1); mask-image: url(../assets/img/osama-portrait-mask.png?v=1);
  -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: 50% 0; mask-position: 50% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* no saving / dragging / long-press menu on images and logos */
img, svg, canvas, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.brand, .lb { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }