/* Citruslab — palette carried over from the original site:
   orange #FF6D00, charcoal #222 / #1b1b1b, grey #424242, light #f2f2f2 */
:root {
  --orange: #ff6d00;
  --orange-deep: #eb3812;
  --ink: #1b1b1b;
  --ink-2: #222222;
  --text: #2b2b2b;
  --muted: #6a6a66;
  --line: #e2dfd8;
  --paper: #f7f5f1;
  --card: #ffffff;
  --radius: 22px;
  --wrap: 1180px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--text); transition: background .2s, color .2s; }
.nav nav a:hover { background: rgba(0,0,0,.06); }
.nav nav a.nav__cta { background: var(--ink); color: #fff; }
.nav nav a.nav__cta:hover { background: var(--orange); color: var(--ink); }

/* HERO */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
/* Oversized outline of the logo, drawn in on load, then turning slowly */
.hero__mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(74vw, 880px); aspect-ratio: 224 / 229;
  top: 50%; right: max(-14vw, -200px);
  transform: translateY(calc(-50% + var(--mark-shift, 0px)));
}
.hero__mark svg { width: 100%; height: 100%; overflow: visible; animation: mark-spin 180s linear infinite; transform-origin: 50% 50%; }
.hero__mark path {
  stroke: var(--orange); stroke-opacity: .6; stroke-width: .55; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: mark-draw 3.2s cubic-bezier(.6,0,.2,1) .25s forwards;
}
.hero__mark path:nth-child(2) { animation-delay: .9s; }
.hero__mark path:nth-child(3) { animation-delay: 1.3s; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .hero__mark { width: 120vw; right: -50vw; top: 38%; } .hero__mark path { stroke-opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .hero__mark svg { animation: none; }
  .hero__mark path { animation: none; stroke-dashoffset: 0; }
}

.hero { padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(40px, 7.2vw, 92px); font-weight: 800; letter-spacing: -0.04em; max-width: 15ch; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { font-size: clamp(18px, 1.7vw, 21px); max-width: 66ch; margin-top: 28px; color: #45453f; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 999px; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border: 1.5px solid #cfcbc2; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.clients {
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line);
  font-weight: 700; font-size: 15px; color: #8a8780; letter-spacing: -0.01em;
}

/* SECTION HEADS */
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; margin-top: 12px; }
.section-head__sub { margin-top: 16px; max-width: 58ch; }
.section-head--light h2 { color: #fff; }
.section-head--light .eyebrow, .section-head--light .section-head__sub { color: #a9a79f; }

/* APPROACH */
.approach { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.approach .section-head h2 { max-width: 20ch; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pillar { border-top: 2px solid var(--ink); padding-top: 20px; }
.pillar__label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); }
.pillar h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; line-height: 1.2; }
.pillar p:last-child { margin-top: 12px; font-size: 16px; color: #4a4a44; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* CASES */
.work { padding-top: clamp(40px, 6vw, 72px); }
.case {
  --bg: #17171a; --accent: var(--orange); --fg: #e9e9ee; --fg-muted: #a8abb6;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  background: var(--bg); color: var(--fg);
  border-radius: var(--radius); padding: clamp(26px, 4.5vw, 64px);
  margin-bottom: 24px; overflow: hidden;
}
.case--flip .case__text { order: 2; }
.case--wide { grid-template-columns: 1fr; }
.case--wide .case__text { max-width: 760px; }
.case--sogni   { --bg: #1c0b15; --accent: #f9b4b7; --fg-muted: #cdb9c0; background: radial-gradient(120% 90% at 85% 0%, #3a1430 0%, #1c0b15 55%); }
.case--cmc     { --bg: #141622; --accent: #5b93ff; }
.case--audius  { --bg: #1d0a3a; --accent: #d78bff; --fg-muted: #c2b3d9; background: linear-gradient(140deg, #2a0f55 0%, #170830 70%); }
.case--coinpeak{ --bg: #050807; --accent: #00bfa5; }

.case__meta { display: flex; align-items: center; gap: 16px; }
.case__icon { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.case__icon--bare { border-radius: 0; }
.case__role { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent, var(--muted)); }
.case h3 { color: #fff; font-size: clamp(30px, 4vw, 50px); font-weight: 800; margin-top: 6px; }
.case__summary { margin-top: 22px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--fg-muted); max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: var(--fg); }
.case__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.link { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--accent, var(--orange-deep)); border-bottom: 1.5px solid transparent; transition: border-color .2s; width: fit-content; }
.link:hover { border-bottom-color: currentColor; }

.case__media { min-width: 0; }
.frame { width: 100%; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); background: #000; }
.case__stills { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.shot { width: 100%; max-height: 640px; object-fit: contain; border-radius: 16px; margin: 0 auto; }
.case--cmc .shot, .case--coinpeak .shot { width: auto; }

/* MORE APPS */
.more { padding-top: clamp(64px, 9vw, 120px); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__shot { background: var(--tint, #eee); padding: 28px 28px 0; height: 300px; overflow: hidden; }
.card__shot img { width: 100%; border-radius: 14px 14px 0 0; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body .case__role { color: var(--muted); font-size: 12px; }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { font-size: 15px; color: #55554f; }
.card .link { margin-top: auto; padding-top: 8px; }

/* ARCHIVE */
.archive { background: var(--ink); color: #c9c7c0; margin-top: clamp(72px, 10vw, 130px); padding: clamp(64px, 9vw, 120px) 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { all: unset; cursor: pointer; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 13 / 7; background: #2a2a2a; display: block; }
.tile:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s; }
.tile span {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 14px; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0) 62%);
  opacity: 0; transition: opacity .25s;
}
.tile b { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
.tile i { font-style: normal; font-size: 12px; color: var(--orange); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover span, .tile:focus-visible span { opacity: 1; }
/* Touch and small screens: captions sit under the image instead of over it */
@media (hover: none), (max-width: 820px) {
  .tile { aspect-ratio: auto; background: none; overflow: visible; border-radius: 0; }
  .tile img { aspect-ratio: 13 / 7; height: auto; border-radius: 10px; }
  .tile span { position: static; opacity: 1; background: none; padding: 8px 2px 8px; }
  .tile b { font-size: 13px; }
  .tile i { font-size: 11px; }
  .tile:hover img { transform: none; }
}

/* MUSIC */
.music { margin-top: clamp(44px, 6vw, 72px); padding-top: 32px; border-top: 1px solid #383836; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.music__head .eyebrow { color: #a9a79f; }
.music__head h3 { color: #fff; font-size: 26px; font-weight: 800; margin-top: 10px; }
.music__head p:not(.eyebrow) { font-size: 15px; color: #b9b7b0; margin: 10px 0 14px; }
.music__head .link { color: var(--orange); }
.records { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.record { text-decoration: none; display: block; }
.record img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.record:hover img { transform: translateY(-4px); }
.record b { display: block; margin-top: 10px; color: #e6e4dd; font-size: 13px; font-weight: 700; line-height: 1.3; }
@media (max-width: 1000px) { .records { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .music { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.roster { margin-top: clamp(44px, 6vw, 72px); padding-top: 32px; border-top: 1px solid #383836; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.roster .eyebrow { color: #a9a79f; align-items: flex-start; }
.roster p:last-child { font-size: 16px; color: #b9b7b0; max-width: 80ch; }

/* ABOUT */
.about { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about__since { width: 230px; opacity: .85; margin-bottom: 28px; }
.about h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin-bottom: 24px; }
.about__intro p { margin-top: 16px; max-width: 60ch; }
.about__langs { color: var(--muted); font-size: 15px; }
.about__services { display: grid; gap: 0; }
.about__services > div { padding: 22px 0; border-top: 1px solid var(--line); }
.about__services > div:last-child { border-bottom: 1px solid var(--line); }
.about__services h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.about__services p { margin-top: 6px; font-size: 15.5px; color: #55554f; }

/* CONTACT */
.contact { background: var(--orange); color: var(--ink); text-align: center; padding: clamp(72px, 10vw, 130px) 0; }
.contact__logo { display: block; margin: 0 auto 28px; overflow: visible; }
/* Same draw-in as the hero mark, triggered when the section scrolls into view */
.contact__logo path { stroke: #000; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.contact__ring { stroke-width: 8; }
.contact__glyph { stroke-width: 3; fill: #000; fill-opacity: 0; }
.contact__logo.is-in { animation: mark-spin 90s linear 2.6s infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.contact__logo.is-in path { animation: mark-draw 1.8s cubic-bezier(.6,0,.2,1) forwards; }
.contact__logo.is-in .contact__glyph { animation: mark-draw 1.4s cubic-bezier(.6,0,.2,1) .7s forwards, glyph-fill .6s ease 1.9s forwards; }
@keyframes glyph-fill { to { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .contact__logo, .contact__logo path, .contact__logo.is-in, .contact__logo.is-in path, .contact__logo.is-in .contact__glyph { animation: none; stroke-dashoffset: 0; }
  .contact__glyph { fill-opacity: 1; }
}
.contact h2 { font-size: clamp(32px, 5vw, 62px); font-weight: 800; }
.contact p { margin: 12px auto 0; font-size: 19px; font-weight: 500; max-width: 46ch; }
.contact__mail { display: inline-block; margin-top: 30px; font-size: clamp(22px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--ink); padding-bottom: 2px; transition: opacity .2s; overflow-wrap: anywhere; }
.contact__mail:hover { opacity: .7; }
.contact__links { margin-top: 28px; display: flex; justify-content: center; gap: 24px; }
.contact .link { color: var(--ink); }

/* FOOTER */
.footer { background: var(--ink); color: #9d9b94; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* LIGHTBOX */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10,10,10,.92); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1100px, 84vw); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; }
.lightbox figcaption { color: #ddd; font-size: 15px; font-weight: 600; text-align: center; }
.lightbox button { all: unset; cursor: pointer; color: #fff; font-size: 40px; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.14); }
.lightbox button.lightbox__close { position: fixed; top: 16px; right: 16px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .case { grid-template-columns: 1fr; }
  .case--flip .case__text { order: 0; }
  .shot { max-height: 520px; }
  .about { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr; gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nav nav a:not(.nav__cta) { padding: 8px 9px; }
}
@media (max-width: 520px) {
  .nav nav a[href="#archive"], .nav nav a[href="#approach"] { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card__shot { height: 260px; }
  .case__stills { grid-template-columns: 1fr; }
  .lightbox button.lightbox__nav { position: fixed; bottom: 16px; }
  .lightbox button.lightbox__nav--prev { left: 16px; }
  .lightbox button.lightbox__nav--next { right: 16px; }
  .lightbox figure { max-width: 92vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile img { transition: none; }
}
