/* ==========================================================================
   Xaver Müller — Portfolio · v4 "Split"
   Warm light base · dark work section · red contact block
   Coolvetica (display) + Inter (text)
   ========================================================================== */

:root {
  color-scheme: light;
  /* palette "03" — previous green palette saved in css/style.green-backup.css */
  --bg: #FFFFFF;                 /* white base */
  --surface: #F5F3EF;            /* light cards on white */
  --bg-2: #ECE7E0;               /* faint greige for small fills */
  --olive: #817C52;
  --yellow: #FCA807;  --ink: #111111;
  --muted: #5E5B55;              /* ~6.6:1 on white */
  --line: rgba(17, 17, 17, .14);
  --dark: #111111;
  --on-dark: #F3F1EC;
  --on-dark-muted: #A3A099;      /* ~7:1 on --dark */
  --line-dark: rgba(243, 241, 236, .14);
  --red: #325D92;              /* key colour: blue (name kept for compatibility) */
  --red-ink: #FFFFFF;

  --f: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-display: "Coolvetica", "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 2.6vw, 44px);
  --gap: clamp(14px, 1.6vw, 26px);
  --section: clamp(96px, 11vw, 176px);
  --r: clamp(12px, 1.2vw, 18px);
  --r-lg: clamp(20px, 2.4vw, 36px);
  --ticker-h: 44px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 180ms;
  --t-med: 420ms;

  --z-preview: 30; --z-ticker: 35; --z-header: 40; --z-menu: 50; --z-project: 60; --z-cursor: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.container { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: 13px; line-height: 1.45; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: inline-block; }
.char { display: inline-block; will-change: transform; }
.wd { display: inline-block; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); touch-action: manipulation; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--red); color: #fff; }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ---------- Link roll ---------- */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll__in { display: inline-block; transition: transform .45s var(--ease); }
.roll__in::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
a:hover > .roll .roll__in, a:focus-visible > .roll .roll__in { transform: translateY(-100%); }

/* ---------- Viewfinder corners (motif) ---------- */
.vf-frame { position: relative; }
.vf-frame::after { content: ""; position: absolute; inset: 16px; pointer-events: none; z-index: 3; color: #fff; --l: 24px; --t: 2px;
  background:
    linear-gradient(currentColor, currentColor) top left / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) top left / var(--t) var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) top right / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) top right / var(--t) var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--t) var(--l) no-repeat;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35)); }

/* ==========================================================================
   Header: floating dock
   ========================================================================== */
.header { position: fixed; inset: 12px 0 auto; z-index: var(--z-header); display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.dock { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .06); transition: box-shadow .4s var(--ease), background .4s; }
.header.is-scrolled .dock { background: rgba(255, 255, 255, .94); box-shadow: 0 10px 40px rgba(0, 0, 0, .12); }
.dock__logo { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-display); font-size: 16px; transition: background .25s, transform .4s var(--ease); }
.dock__logo:hover { background: var(--red); transform: rotate(-12deg); }
.dock__nav { position: relative; display: flex; gap: 2px; padding: 0 2px; }
.dock__nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: color .3s var(--ease); }
.dock__nav a.is-ind { color: #fff; }
.dock__ind { position: absolute; z-index: 0; left: 0; top: 0; height: 42px; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: opacity .25s; pointer-events: none; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.lang button { min-height: 36px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.dock__cta { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--red); color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .25s; }
.dock__cta:hover { background: var(--ink); }
.dock__projects { display: none; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; transition: background .25s, color .25s, border-color .25s; }
.dock__projects.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; }
.menu-btn__icon { display: grid; gap: 4px; }
.menu-btn__icon i { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg); padding: 96px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity var(--t-med) var(--ease); }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu nav a { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: clamp(34px, 10vw, 56px); line-height: 1.05; }
.mobile-menu .num { font-family: var(--f); font-size: 13px; color: var(--muted); }
.mobile-menu__foot { display: flex; justify-content: space-between; gap: 16px; }
.mobile-menu__foot a { min-height: 44px; display: inline-flex; align-items: center; }
body.menu-open .header { z-index: calc(var(--z-menu) + 1); }

/* ==========================================================================
   Hero — default (mobile / reduced motion): stacked
   Desktop with motion: .hero--expand → sticky stage, reel grows to fullscreen
   ========================================================================== */
.hero { padding: 84px var(--gutter) calc(var(--ticker-h) + 20px); }
.hero__pin { display: flex; flex-direction: column; gap: 22px; }
.hero__head { order: 1; display: flex; flex-direction: column; gap: 18px; }
.hero__reel { order: 2; position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 4 / 5; isolation: isolate; }
.hero__intro { order: 3; display: flex; align-items: center; gap: 16px; }
.hero__portrait { flex: none; margin: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__hi { margin: 0 0 4px; font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.hero__lead { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; color: var(--muted); }
.hero__ctas { order: 4; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__hint { display: none; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: var(--olive); }
.hero__h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 15vw, 170px); line-height: .92; letter-spacing: -.025em; }
.hero__h1 .line { padding-bottom: .08em; }
.hero__h1 .accent { color: var(--red); }
/* ü built from "u" + two of Coolvetica's own square dots (the font's i-dot/period are square), in the key colour */
.uml { display: inline; }
.uml__d { display: inline-block; width: 0; position: relative; top: -.56em; color: var(--red); }
.h1-dot { color: var(--yellow); }
.uml__d:first-child { left: -.392em; }
.uml__d + .uml__d { left: -.23em; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media video, .hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slides img { opacity: 0; }
.hero__slides img:first-child { opacity: 1; }
.hero__reel::before { content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: 1; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.hero__reel-bar { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; }
.hero__play { width: 30px; height: 30px; border-radius: 50%; background: #fff; position: relative; }
.hero__play::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero__name { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 24px); }
.hero__badge, .hero__name { white-space: nowrap; }
@media (max-width: 600px) { .hero__name { display: none; } .hero__badge { font-size: 13px; } }

/* expand mode (set by JS on wide screens) */
.hero--expand { height: 200vh; padding: 0; }
.hero--expand .hero__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: block; }
.hero--expand .hero__reel { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: 1; }
.hero--expand .hero__head { position: absolute; top: clamp(92px, 12vh, 136px); left: var(--gutter); right: var(--gutter); z-index: 2; align-items: center; text-align: center; }
.hero--expand .hero__h1 { font-size: clamp(60px, 8.6vw, 176px); }
.hero--expand .hero__intro { position: absolute; left: var(--gutter); bottom: calc(var(--ticker-h) + 32px); z-index: 2; align-items: flex-end; gap: 20px; max-width: min(460px, 26vw); }
.hero--expand .hero__portrait { width: clamp(120px, 10vw, 168px); height: auto; aspect-ratio: 4 / 5; border-radius: 18px; }
.hero--expand .hero__lead { max-width: 26ch; }
.hero--expand .hero__ctas { position: absolute; right: var(--gutter); bottom: calc(var(--ticker-h) + 32px); z-index: 2; flex-direction: column; align-items: stretch; }
.hero--expand .hero__hint { display: block; position: absolute; left: 50%; bottom: calc(var(--ticker-h) + 8px); z-index: 2; translate: -50% 0; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero--expand .hero__reel-bar { left: calc(var(--gutter) + clamp(20px, 2vw, 32px)); right: calc(var(--gutter) + clamp(20px, 2vw, 32px)); bottom: calc(var(--ticker-h) + 34px); }
.hero--expand .vf-frame::after, .hero--expand.vf-frame::after { inset: clamp(20px, 2.4vw, 36px); }
.hero--expand .hero__reel.vf-frame::after { inset: 92px calc(var(--gutter) + 16px) calc(var(--ticker-h) + 28px); }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section { padding-block: var(--section) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) auto; column-gap: var(--gap); row-gap: 14px; align-items: end; margin-bottom: clamp(36px, 4.4vw, 72px); }
.sec-head--tight { grid-template-columns: auto 1fr; margin-bottom: 28px; }
.sec-head__num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 13px; font-weight: 600; align-self: start; }
.sec-head__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.6vw, 104px); line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.sec-head__sub { grid-column: 2 / -1; margin: 0; max-width: 52ch; color: var(--muted); font-size: 18px; }

/* ==========================================================================
   Work — dark section, offset two-column grid
   ========================================================================== */
.work-sec { background: var(--dark); color: var(--on-dark); margin-top: clamp(40px, 6vw, 96px); padding-block: var(--section); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.work-sec .sec-head__sub { color: var(--on-dark-muted); }
.work-sec .card__media { background: #1C1C1E; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); justify-self: end; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--on-dark-muted); transition: background .25s, color .25s; }
.filter sup { font-size: 10px; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--on-dark); }
.filter.is-active { background: var(--yellow); color: var(--ink); }
.work-sec .sec-head__num { color: var(--yellow); }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.work__col { display: flex; flex-direction: column; gap: clamp(48px, 5vw, 88px); }
.work__col + .work__col { padding-top: clamp(80px, 12vw, 220px); }
.card { display: block; width: 100%; text-align: left; }
.card.is-hidden { display: none; }
.card__media { display: block; position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: #1C1C1E; isolation: isolate; }
.work__col .card:nth-child(even) .card__media { aspect-ratio: 4 / 3.3; }
.work__col + .work__col .card:nth-child(odd) .card__media { aspect-ratio: 4 / 3.3; }
.work__col + .work__col .card:nth-child(even) .card__media { aspect-ratio: 4 / 5; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 17, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; }
.card__cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 16px; }
.card__title { font-family: var(--f-display); font-size: clamp(22px, 2vw, 32px); line-height: 1.05; }
.card__year { font-size: 14px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.card__meta { grid-column: 1 / -1; font-size: 14px; color: var(--on-dark-muted); }

/* ==========================================================================
   Services — hover list
   ========================================================================== */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 4fr) auto; column-gap: var(--gap); align-items: center; padding: clamp(18px, 2vw, 30px) 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding var(--t-med) var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--surface); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.svc:hover::before, .svc:focus-visible::before { opacity: 1; }
.svc:hover { padding-left: 14px; }
.svc__n { font-size: 13px; font-weight: 600; color: var(--muted); }
.svc__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 80px); line-height: 1; letter-spacing: -.015em; transition: color var(--t-fast); }
.svc:hover .svc__title { color: var(--red); }
.svc__desc { margin: 0; color: var(--muted); max-width: 42ch; }
.svc__arrow { font-size: 28px; transition: transform var(--t-med) var(--ease); }
.svc:hover .svc__arrow { transform: rotate(45deg); color: var(--red); }

.preview { position: fixed; left: 0; top: 0; z-index: var(--z-preview); width: clamp(220px, 18vw, 320px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.9); transition: opacity .25s, transform .4s var(--ease); background: var(--bg-2); }
.preview.is-on { opacity: 1; transform: scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

.process { list-style: none; padding: 0; margin: clamp(56px, 7vw, 112px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.process li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.process__n { font-family: var(--f-display); font-size: clamp(36px, 3.6vw, 60px); line-height: 1; margin-bottom: 18px; color: var(--olive); }
.process strong { font-size: 18px; font-weight: 600; }
.process span:last-child { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.about__portrait { margin: 0; position: sticky; top: 96px; }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.about__body p { margin: 0 0 18px; max-width: 54ch; }
.about__lead { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 36px 0 0; }
.facts div { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-family: var(--f-display); font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }

/* ==========================================================================
   Contact — red block
   ========================================================================== */
.contact-sec { margin: var(--section) var(--gutter) 0; padding: clamp(28px, 5vw, 88px); border-radius: var(--r-lg); background: var(--red); color: #fff; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); max-width: 1680px; margin: 0 auto; }
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact__info .sec-head__num { border-color: rgba(255, 255, 255, .7); }
.contact__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 6.6vw, 128px); line-height: .92; letter-spacing: -.02em; }
.contact__info p { margin: 0; max-width: 34ch; font-size: 19px; }
.contact__mail { display: inline-flex; gap: 10px; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); overflow-wrap: anywhere; transition: background .25s, color .25s; }
.contact__mail:hover { background: var(--ink); color: #fff; }
.contact__social { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.contact__social a { min-height: 40px; display: inline-flex; align-items: center; font-weight: 600; }
.contact__social a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: clamp(22px, 3vw, 44px); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.field { grid-column: 1 / -1; display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--half { grid-column: span 1; }
.field label, .field legend { font-size: 13px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: 10px; appearance: none; -webkit-appearance: none; transition: border-color var(--t-fast), background var(--t-fast); }
.field select { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field__err { margin: 0; color: #B3261E; font-size: 14px; }
.field__err:empty { display: none; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice label > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__status { margin: 0; }
.form__note { flex-basis: 100%; margin: 0; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__status.is-ok { color: #1F6B35; }
.form__status.is-err { color: #B3261E; }

/* ==========================================================================
   Ticker (clients)
   ========================================================================== */
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-ticker); display: flex; align-items: stretch; height: calc(var(--ticker-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: transform var(--t-med) var(--ease); }
.ticker.is-hidden { transform: translateY(100%); }
.ticker__label { flex: none; display: flex; align-items: center; padding: 0 16px 0 var(--gutter); border-right: 1px solid var(--line); font-weight: 600; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; height: 100%; margin: 0; padding: 0; list-style: none; animation: ticker var(--ticker-speed, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; padding: 0 clamp(24px, 3vw, 48px); }
.ticker__item img { height: 22px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--t-med), opacity var(--t-med); }
.ticker__item:hover img { filter: none; opacity: 1; }
.ticker__item .ph { font-family: var(--f-display); font-size: 17px; color: var(--muted); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: var(--section); background: var(--dark); color: var(--on-dark); padding-top: 40px; overflow: hidden; }
.footer .muted { color: var(--on-dark-muted); }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.footer__col { display: flex; flex-direction: column; gap: 2px; }
.footer__col a { min-height: 32px; display: inline-flex; align-items: center; width: fit-content; }
.footer__col a:hover { color: var(--yellow); }
.footer__col--right { align-items: flex-end; text-align: right; }
.footer__mark { padding: clamp(56px, 9vw, 150px) 0 calc(var(--ticker-h) + 12px); }
.footer__mark .js-fit { display: block; white-space: nowrap; font-family: var(--f-display); font-size: 14vw; line-height: .8; letter-spacing: -.03em; }

/* ==========================================================================
   Cursor: camera viewfinder (fine pointers)
   ========================================================================== */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .svc { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); width: 30px; height: 30px; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .25s; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-hidden { opacity: 0 !important; }
.cursor .c { position: absolute; width: 9px; height: 9px; border: 0 solid #fff; transition: width .3s var(--ease), height .3s var(--ease); }
.cursor .c--tl { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.cursor .c--tr { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.cursor .c--bl { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.cursor .c--br { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.cursor::before, .cursor::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transition: opacity .2s; }
.cursor::before { width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; }
.cursor::after { width: 1.5px; height: 9px; margin: -4.5px 0 0 -.75px; }
.cursor.is-locked::before, .cursor.is-locked::after { opacity: 0; }
.cursor.is-locked .c { width: 14px; height: 14px; }
.cursor__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); padding: 6px 12px; border-radius: 999px; background: rgba(10, 10, 10, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .35s var(--ease); }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .c { width: 18px; height: 18px; border-color: #fff; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .45)); }
.cursor.is-view .c--tl { border-left-width: 2px; border-top-width: 2px; }
.cursor.is-view .c--tr { border-right-width: 2px; border-top-width: 2px; }
.cursor.is-view .c--bl { border-left-width: 2px; border-bottom-width: 2px; }
.cursor.is-view .c--br { border-right-width: 2px; border-bottom-width: 2px; }
.cursor.is-view::before, .cursor.is-view::after { opacity: 0; }
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ==========================================================================
   Project overlay
   ========================================================================== */
.project { position: fixed; inset: 0; z-index: var(--z-project); background: var(--bg); }
.project__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.project__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-block: 12px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.project__close { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.project__close:hover { background: var(--ink); color: #fff; }
.p-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px var(--gap); align-items: end; padding-top: clamp(32px, 4vw, 64px); }
.p-cat { font-weight: 600; font-size: 14px; color: var(--muted); }
.p-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5vw, 96px); line-height: .95; letter-spacing: -.02em; }
.p-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; margin-top: clamp(24px, 3vw, 48px); }
.p-cover { margin: 0; }
.p-cover img { width: 100%; aspect-ratio: 3 / 2; max-height: 62svh; object-fit: cover; border-radius: var(--r); }
.p-side { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.4vw, 40px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.p-box__label { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-desc { margin: 0; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; }
.p-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px var(--gap); margin: 0; }
.p-meta div { border-top: 1px solid var(--line); padding-top: 8px; }
.p-meta dd { margin: 4px 0 0; font-weight: 600; }
.p-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 80px); }
.p-gallery img { width: 100%; aspect-ratio: 4 / 3; max-height: 70svh; object-fit: cover; border-radius: var(--r); background: var(--bg-2); }
.p-gallery img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.p-next { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: clamp(56px, 7vw, 112px) 0 48px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.p-next .small { font-weight: 600; color: var(--muted); }
.p-next strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5.4vw, 100px); line-height: .95; transition: color var(--t-fast); }
.p-next:hover strong { color: var(--red); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .dock__nav a { padding: 0 12px; }
  .dock__cta { padding: 0 14px; }
  .hero__reel { aspect-ratio: 16 / 11; }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 6fr) auto; row-gap: 8px; }
  .svc__desc { grid-column: 2 / 3; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 520px; }
  .contact { grid-template-columns: 1fr; }
  .p-intro { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dock { width: 100%; max-width: 560px; justify-content: space-between; }
  .dock__nav, .dock__cta { display: none; }
  .dock__projects { display: inline-flex; margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head .filters { grid-column: 1 / -1; justify-self: start; }
  .sec-head__sub { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--right { align-items: flex-start; text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 72px; }
  .hero__h1 { font-size: 17vw; }
  .hero__reel { aspect-ratio: 4 / 5; }
  .hero__reel-bar { left: 18px; right: 18px; bottom: 18px; }
  .hero__ctas .btn { flex: 1; }
  .dock { gap: 4px; padding: 4px; }
  .dock__logo { width: 40px; height: 40px; }
  .dock__projects, .menu-btn { height: 40px; padding: 0 13px; font-size: 14px; }
  .lang button { padding: 0 8px; min-height: 34px; }
  .sec-head__num { width: 38px; height: 38px; font-size: 12px; }
  .work { column-gap: 10px; }
  .work__col { gap: 28px; }
  .work__col + .work__col { padding-top: 64px; }
  .card__title { font-size: 17px; }
  .card__meta, .card__year { font-size: 12px; }
  .card__tag { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }
  .svc { grid-template-columns: 1fr auto; }
  .svc__n { display: none; }
  .svc__desc { grid-column: 1 / -1; }
  .svc__arrow { grid-column: 2; }
  .process { grid-template-columns: 1fr 1fr; gap: 10px; }
  .process li { padding: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contact-sec { margin-inline: 10px; padding: 26px 18px; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .field--half { grid-column: 1 / -1; }
  .form .btn { width: 100%; }
  .p-head { grid-template-columns: 1fr; }
  .p-gallery { grid-template-columns: 1fr; }
  .p-gallery img:nth-child(n) { aspect-ratio: 4 / 5; grid-column: auto; }
  .p-cover img { aspect-ratio: 4 / 5; }
  .footer__mark .js-fit { font-size: 17vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  .cursor { display: none; }
}


/* ==========================================================================
   Hero v5 — one centred column, profile-style
   Hierarchy: handle (1) › reel (2) › intro line (3) › button (4) › keywords (5)
   ========================================================================== */
.hero__head { order: 1; align-items: center; text-align: center; gap: clamp(10px, 1.2vw, 18px); }
.hero__reel { order: 2; }
.hero__ctas { order: 3; justify-content: center; }
.hero__intro, .hero__hint { display: none !important; }
.hero__kicker { justify-content: center; }
.hero__id { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.3vw, 22px); }
.hero__avatar { flex: none; margin: 0; width: clamp(56px, 5.4vw, 100px); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: var(--yellow); }
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); display: block; }
.hero__h1 { font-size: clamp(52px, 7.4vw, 150px); }
.hero__line { margin: 0; max-width: 46ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--muted); text-wrap: balance; }
.hero__line strong { color: var(--ink); font-weight: 600; }

.hero--expand .hero__head { top: clamp(88px, 11vh, 120px); }
.hero--expand .hero__h1 { font-size: clamp(52px, 7.4vw, 150px); }
.hero--expand .hero__ctas { left: 50%; right: auto; translate: -50% 0; bottom: calc(var(--ticker-h) + 24px); flex-direction: row; align-items: center; }

@media (max-width: 600px) {
  .hero__kicker::before { display: none; }
  .hero__h1 { font-size: 13.5vw; }
  .hero__ctas .btn { flex: 1; }
}

/* utility face for labels, numbers and meta */
:root { --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.small, .hero__kicker, .filter, .card__meta, .card__year, .card__tag, .sec-head__num, .svc__n, .process strong, .facts dt,
.ticker__label, .project__bar, .p-cat, .p-box__label, .p-meta dt, .field label, .field legend, .hero__badge, .footer__grid, .mobile-menu .num {
  font-family: var(--f-mono); letter-spacing: .02em; }
.hero__kicker, .facts dt, .p-box__label, .ticker__label, .card__tag, .filter { text-transform: uppercase; font-size: 12px; }

/* ==========================================================================
   Variant B — Clean + bold
   Calm layout, soft corners; bold full-width name, thin rules, mono labels
   ========================================================================== */
.bn-name { width: 100%; margin: 0; padding-top: .14em; overflow: hidden; font-size: 15vw; line-height: .82; letter-spacing: -.02em; text-align: left; }
.bn-name .js-fit { display: inline-block; white-space: nowrap; padding-bottom: .03em; letter-spacing: -.02em; }
.bn-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; padding-top: 14px; border-top: 1.5px solid var(--ink); text-align: left; }
.bn-keys { margin: 0; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.bn-hi { margin: 0; color: var(--muted); font-size: clamp(15px, 1.1vw, 18px); }
.bn-hi strong { color: var(--ink); font-weight: 600; }
.hero__head { align-items: stretch; text-align: left; }
.hero--expand .hero__head { top: clamp(84px, 10vh, 112px); }
.sec-head { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.work-sec .sec-head { border-top-color: var(--on-dark); }
.svc-list { border-top: 1.5px solid var(--ink); }
@media (max-width: 900px) {
  .bn-row { grid-template-columns: 1fr; }
  .bn-cta { justify-self: start; }
}
@media (max-width: 600px) {
  .bn-cta { justify-self: stretch; }
}


/* ==========================================================================
   Editorial pass — one accent (red), three type roles:
   Coolvetica = headlines · Courier Prime = the voice (typewriter) · Plex Mono = labels
   To switch the accent, change --accent below (e.g. #325D92 for blue).
   ========================================================================== */
:root {
  --accent: #D7261E;           /* signal red — white text on it ≈ 4.9:1 (blue option: #2A4BFF) */
  --red: var(--accent);        /* buttons, contact block, hovers */
  --yellow: var(--accent);     /* former accent slots */
  --olive: var(--muted);
  --f-serif: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;   /* the voice: characterful grotesk */
}
::selection { background: var(--accent); color: #fff; }
.filter.is-active { background: var(--accent); color: #fff; }

/* the voice: serif italic for intros and personal text */
.bn-hi, .sec-head__sub, .about__lead, .p-desc, .contact__info p, .svc__desc {
  font-family: var(--f-serif); font-style: normal; font-weight: 400; letter-spacing: -.01em;
}
.bn-hi { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; color: var(--muted); }
.bn-hi strong { font-weight: 700; color: var(--ink); }
.sec-head__sub { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; }
.svc__desc { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.5; }
.about__lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; }
.p-desc { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; }
.contact__info p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; }

/* editorial captions under project images */
.card__meta { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }


/* hero row v2: keywords (typewriter caps) · button */
.bn-row { grid-template-columns: minmax(0, 1fr) auto; }
.bn-keys { font-family: var(--f-serif); font-size: clamp(15px, 1.15vw, 18px); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
@media (max-width: 900px) { .bn-row { grid-template-columns: 1fr; } }


/* ==========================================================================
   Hero v6 — full-screen showreel, red name stacked bottom-left
   ========================================================================== */
.hero--full { position: relative; height: 100svh; min-height: 560px; padding: 0; color: #fff; overflow: hidden; }
.hero--full .hero__reel { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; transform-origin: 50% 0; will-change: transform; }
.hero--full .hero__reel::before { inset: 0; height: auto; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%); }
.hero--full .hero__reel.vf-frame::after { inset: 88px var(--gutter) calc(var(--ticker-h) + 20px); }
.hf { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: calc(var(--ticker-h) + 34px); }
.hf-label { font-family: var(--f-serif); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; padding-left: 36px; }
.hf-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-inline: 36px; }
.hf-name { margin: 0; font-family: var(--f-display); font-weight: 400; color: var(--accent); text-transform: uppercase; font-size: clamp(76px, 14.5vw, 280px); line-height: .84; letter-spacing: -.025em; }
.hf-name .line { overflow: hidden; padding-top: .16em; margin-top: -.16em; padding-bottom: .04em; }
.hf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; padding-bottom: .6em; }
.hf-keys { margin: 0; font-family: var(--f-serif); font-size: clamp(14px, 1.1vw, 17px); text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.hf-cta { background: #fff; color: var(--ink); }
.hf-cta:hover { background: var(--accent); color: #fff; }

@media (max-width: 720px) {
  .hf { padding-top: 84px; }
  .hf-label, .hf-bottom { padding-inline: 0; }
  .hf-label { padding: 14px 0 0 22px; }
  .hf-bottom { flex-direction: column; align-items: flex-start; }
  .hf-name { font-size: 24vw; }
  .hf-side { align-items: stretch; text-align: left; width: 100%; padding-bottom: 0; }
  .hf-cta { justify-content: space-between; }
  .hero--full .hero__reel.vf-frame::after { inset: 76px 14px calc(var(--ticker-h) + 14px); }
}


/* ==========================================================================
   Voice face: Archivo — normal width for running text, expanded for caps
   ========================================================================== */
.sec-head__sub, .about__lead, .p-desc, .contact__info p, .svc__desc {
  font-variation-settings: "wdth" 100; font-weight: 400; letter-spacing: -.005em;
}
.sec-head__sub { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; }
.svc__desc { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.5; }
.about__lead { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.3; letter-spacing: -.012em; }
.p-desc { font-size: clamp(18px, 1.45vw, 23px); line-height: 1.45; }
.contact__info p { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; }
/* caps labels: expanded width */
.hf-label, .hf-keys, .bn-keys { font-family: var(--f-serif); font-variation-settings: "wdth" 125; font-weight: 500; letter-spacing: .06em; }
.hf-keys { font-size: clamp(13px, 1vw, 16px); }

/* Coolvetica sets word spaces very tight — open them up in headings */
.sec-head__title, .contact__title, .p-title, .p-next strong, .svc__title, .about__title { word-spacing: .06em; }

/* language switch: active language clearly marked */
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }


/* Bricolage Grotesque tuning (no expanded width; uses optical size) */
.sec-head__sub, .about__lead, .p-desc, .contact__info p, .svc__desc { font-variation-settings: "wdth" 100, "opsz" 24; letter-spacing: -.01em; }
.about__lead { font-variation-settings: "wdth" 100, "opsz" 48; letter-spacing: -.02em; }
.hf-label, .hf-keys, .bn-keys { font-variation-settings: "wdth" 100, "opsz" 14; font-weight: 600; letter-spacing: .07em; }


/* ==========================================================================
   Header — phone version: [XM] ……… [Anfragen →] [☰]
   ========================================================================== */
.cta-short { display: none; }
.menu-btn__icon { gap: 4px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.menu-btn__icon i { transition: transform .35s var(--ease), opacity .2s; }
.lang--menu { display: none; }

@media (max-width: 900px) {
  .dock__projects { display: none !important; }
  .dock > .lang { display: none; }
  .dock__cta { display: inline-flex; margin-left: auto; height: 42px; padding: 0 16px; font-size: 14.5px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .menu-btn { width: 42px; height: 42px; padding: 0; justify-content: center; gap: 0; }
  .menu-btn__icon i { width: 16px; }
  .lang--menu { display: flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
  .lang--menu button { min-height: 44px; padding: 0 18px; font-size: 15px; }
}
@media (max-width: 600px) {
  .dock__cta { height: 40px; padding: 0 14px; font-size: 14px; }
  .menu-btn { width: 40px; height: 40px; }
}


/* ==========================================================================
   Services: icon arrow + tap-to-open on touch screens
   ========================================================================== */
.svc__arrow { display: inline-grid; place-items: center; font-size: 30px; line-height: 0; }
.svc__arrow svg { display: block; }
.svc__img { grid-column: 1 / -1; display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .55s var(--ease), opacity .35s, margin .4s var(--ease); }
.svc__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.svc.is-open .svc__img { max-height: 80vw; opacity: 1; margin-top: 14px; }
.svc.is-open .svc__title, .svc.is-open .svc__arrow { color: var(--accent); }
.svc.is-open .svc__arrow { transform: rotate(45deg); }
@media (hover: none) { .svc { cursor: pointer; } .svc:hover { padding-left: 0; } .svc:hover::before { opacity: 0; } }

/* ==========================================================================
   Process 1–4: page fonts, red numbers, a progress bar that grows per step
   ========================================================================== */
.process li { position: relative; overflow: hidden; padding-top: 30px; transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.process li::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; background: var(--accent); width: 25%; transition: width var(--t-med) var(--ease); }
.process li:nth-child(2)::before { width: 50%; }
.process li:nth-child(3)::before { width: 75%; }
.process li:nth-child(4)::before { width: 100%; }
.process__n { color: var(--accent); font-family: var(--f-display); }
.process strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: 0; text-transform: none; line-height: 1.05; }
.process span:last-child { font-family: var(--f-serif); font-size: 16px; line-height: 1.45; }
@media (hover: hover) {
  .process li:hover { background: var(--accent); color: #fff; transform: translateY(-4px); }
  .process li:hover .process__n, .process li:hover span:last-child { color: #fff; }
  .process li:hover::before { background: #fff; }
}

/* last letter of the stacked name must not be clipped by the line mask */
.hf-name .line { padding-right: .1em; margin-right: -.1em; }

/* Coolvetica's space glyph is very narrow: split words always keep a real gap */
/* word gaps: one fixed gap instead of Coolvetica's narrow space (the real space stays for copy/paste + line breaks) */
.ws { font-size: 0; word-spacing: 0; letter-spacing: 0; }
.wd { margin-right: .27em; }
.wd:last-child { margin-right: 0; }
.footer__mark .wd { margin-right: .22em; }
.facts__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.facts__link:hover { color: var(--accent); }


/* ==========================================================================
   Real projects: video player + uncropped gallery (photos keep their format)
   ========================================================================== */
.p-video { margin: clamp(40px, 5vw, 80px) 0 0; border-radius: var(--r); overflow: hidden; background: #000; }
.p-video video { display: block; width: 100%; max-height: 82svh; background: #000; }
.p-gallery { display: block; columns: 2; column-gap: var(--gap); }
.p-gallery img, .p-gallery img:nth-child(n), .p-gallery img:last-child:nth-child(odd) {
  display: block; width: 100%; height: auto; aspect-ratio: auto; max-height: none; object-fit: contain;
  margin: 0 0 var(--gap); break-inside: avoid; grid-column: auto;
}
@media (max-width: 700px) { .p-gallery { columns: 1; } }
.p-cover--video { background: #000; }
.p-cover--video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.about__portrait img { object-position: 50% 35%; }

/* Success pop-up after sending the contact form */
.toast { position: fixed; left: 50%; bottom: calc(var(--ticker-h) + env(safe-area-inset-bottom) + 20px); z-index: var(--z-menu);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 14px 14px 16px;
  border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  opacity: 0; transform: translate(-50%, 24px) scale(.96); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.toast.is-in .toast__icon svg path { animation: toast-check .5s .15s var(--ease) both; }
.toast__icon svg path { stroke-dasharray: 24; }
@keyframes toast-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.toast__text { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.35; }
.toast__text strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.toast__text span { color: rgba(255, 255, 255, .72); }
.toast__close { flex: none; width: 32px; height: 32px; border-radius: 50%; color: rgba(255, 255, 255, .7); font-size: 13px; transition: background .2s, color .2s; }
.toast__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .2s; transform: translate(-50%, 0); }
  .toast.is-in .toast__icon svg path { animation: none; }
}

/* Coming soon overlay (an/aus in js/data.js → COMING_SOON) */
html.is-soon, html.is-soon body { overflow: hidden; }
.soon { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .5); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }
.soon__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.soon__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.soon__logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-display); font-size: 16px; font-weight: 400; }
.soon .lang { background: rgba(255, 255, 255, .7); }
.soon__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
.soon__kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.soon__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 14vw, 190px); line-height: .9; letter-spacing: -.03em; }
.soon__lead { margin: 18px 0 0; font-size: clamp(16px, 1.6vw, 20px); }
.soon__count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-top: clamp(28px, 4vw, 48px); width: min(100%, 560px); }
.soon__count div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: clamp(14px, 2vw, 22px) 6px; border-radius: var(--r); background: rgba(255, 255, 255, .78); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.soon__count span { font-family: var(--f-display); font-size: clamp(34px, 5vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.soon__count small { font-size: 12px; color: var(--muted); }
.soon { transition: background .9s var(--ease), backdrop-filter .9s var(--ease), -webkit-backdrop-filter .9s var(--ease), opacity .6s .4s; }
.soon__bar, .soon__body, .soon__legal { transition: opacity .5s, transform .7s var(--ease); }
.soon.is-leaving { pointer-events: none; opacity: 0; background: rgba(255, 255, 255, 0); backdrop-filter: blur(0) saturate(1); -webkit-backdrop-filter: blur(0) saturate(1); }
.soon.is-leaving .soon__bar, .soon.is-leaving .soon__body, .soon.is-leaving .soon__legal { opacity: 0; transform: translateY(-24px) scale(.98); }
.soon__live { display: none; flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
.soon.is-live .soon__live { display: flex; animation: soon-pop .7s var(--ease) both; }
.soon__done { margin: 0; font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.soon__enter { min-height: 58px; padding: 0 28px; font-size: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); }
.soon.is-live .soon__count span { color: var(--red); }
.soon.is-live .soon__text, .soon.is-live .soon__links { display: none; }
@keyframes soon-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .soon.is-live .soon__live { animation: none; } }
.soon__text { margin: clamp(32px, 4vw, 48px) 0 14px; color: var(--muted); }
.soon__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soon__links .btn { gap: 12px; }
.soon__legal { display: flex; justify-content: center; gap: 20px; color: var(--muted); }
.soon__legal a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) {
  .soon__links { flex-direction: column; width: 100%; max-width: 360px; }
  .soon__links .btn { justify-content: center; }
  .soon__count small { font-size: 11px; }
}
