/* ============ Self-hosted fonts (no Google Fonts, GDPR-friendly) ============ */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/inter-tight-v9-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/inter-tight-v9-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/inter-tight-v9-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/inter-tight-v9-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('assets/fonts/inter-tight-v9-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2');
}

:root {
    --bg: #000;
    --bg-2: #0a0a0a;
    --fg: #ffffff;
    --fg-dim: #8a8a8a;
    --line: #1a1a1a;
    --line-2: #2a2a2a;
    --accent: #ff4a1f;
    --accent-ink: #000000;
    --display: "Inter Tight", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --density: 1;
    --pad-x: clamp(32px, 5vw, 72px);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: var(--bg); color: var(--fg);
    font-family: var(--display);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
  }
  body { font-size: 16px; line-height: 1.45; }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--fg); color: var(--bg); }
  img { max-width: 100%; display: block; }

  .mono { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; font-weight: 500; }
  .accent { color: var(--accent); }

  .hero h1 { line-height: .78; }
  .hero h1 .h1-line { display: block; overflow: hidden; padding-bottom: .02em; line-height: .78; }
  .hero h1 .h1-line.events-line { line-height: 1; margin-top: -.22em; padding-top: 0; }
  .hero h1 .h1-word { display: inline-block; transform: translateY(110%); will-change: transform; }
  .hero h1.go .h1-word { animation: h1up 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero h1.go .h1-line:nth-child(1) .h1-word { animation-delay: .15s; }
  .hero h1.go .h1-line:nth-child(2) .h1-word { animation-delay: .3s; }
  .hero h1.go .h1-line:nth-child(3) .h1-word { animation-delay: .45s; }
  .hero h1.go .h1-line:nth-child(3) .h1-word + .h1-word { animation-delay: .55s; }
  @keyframes h1up { to { transform: none; } }

  /* Fade-up for sub/actions, synced with h1 reveal */
  .hero .h1-fade { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .hero h1.go ~ .h1-fade,
  .hero h1.go + .h1-fade { opacity: 1; transform: none; }
  /* fallback selector for combined: trigger via body class */
  .hero-animated .hero .h1-fade { opacity: 1; transform: none; transition-delay: .7s; }
  .hero-animated .hero .h1-fade.actions { transition-delay: .85s; }
  .hero h1 .events { letter-spacing: .04em; font-weight: 600; font-size: .36em; line-height: 1; display: inline-block; padding-top: 0; }
  @media (prefers-reduced-motion: reduce) {
    .hero h1 .h1-word { transform: none !important; animation: none !important; }
    .hero .h1-fade { opacity: 1 !important; transform: none !important; }
  }

  /* ============ Section title reveal (mask-slide-up) ============ */
  .title-reveal { display: block; overflow: hidden; padding-bottom: .08em; }
  .title-reveal .tr-inner { display: inline-block; transform: translateY(110%); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); will-change: transform; }
  .reveal.in .title-reveal .tr-inner,
  .reveal-children.in .title-reveal .tr-inner { transform: none; }
  .reveal.in .title-reveal:nth-of-type(1) .tr-inner { transition-delay: .05s; }
  .reveal.in .title-reveal:nth-of-type(2) .tr-inner { transition-delay: .20s; }
  .reveal.in .title-reveal:nth-of-type(3) .tr-inner { transition-delay: .35s; }

  /* When a reveal block contains a mask-slide title, suppress the parent slide so the mask shows */
  .reveal.has-title.is-hidden { opacity: 0; transform: none; }
  .reveal.has-title.in { opacity: 1; transform: none; }

  /* Extra inside-padding on tight inline elements */
  .pf-item .meta { padding: 0 4px; }
  .field-row .field, .field { padding-left: 2px; padding-right: 2px; }
  .footer .col { padding-right: 8px; }

  /* Service item left padding so [01] number doesn't kiss the edge on mobile */
  @media (max-width: 900px) {
    .svc { padding-left: 4px !important; padding-right: 4px !important; }
  }

  /* Contact bigword mask-reveal */
  .contact .bigword .tr-inner { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
  .contact .reveal.in .bigword .tr-inner { transform: none; }

  /* Section kicker line grow */
  .section-kicker::before {
    transform: scaleX(0); transform-origin: left;
    transition: transform .9s cubic-bezier(.2,.7,.2,1) .1s;
  }
  .reveal.in .section-kicker::before { transform: scaleX(1); }

  /* Stat counter */
  .num .v, .stat .n { font-variant-numeric: tabular-nums; }

  /* Service slide-in stagger */
  .svc.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), background .25s, padding .35s cubic-bezier(.2,.7,.2,1); }
  .svc.reveal.is-hidden { opacity: 0; transform: translateX(40px); }

  /* Portfolio item subtle scale-in */
  .pf-item.reveal.is-hidden { opacity: 0; transform: translateY(40px) scale(.98); }
  .pf-item.reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }

  /* Button hover pop */
  .btn { position: relative; overflow: hidden; }
  .btn .dot { transition: transform .3s; }
  .btn:hover .dot { transform: scale(1.4); }

  /* Custom cursor (orange dot, blends on hover) */
  .cur {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 999px;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1), opacity .2s;
    mix-blend-mode: difference;
  }
  .cur.lg { width: 56px; height: 56px; }
  .cur.hide { opacity: 0; }
  @media (hover: none) { .cur { display: none; } }

  /* Hide reveal elements immediately at parse time so there's no FOUC
     while the JS waits for `load` to start the observer */
  .reveal, .reveal-children { opacity: 0; }
  .reveal.in, .reveal-children.in,
  .reveal.is-hidden.in, .reveal-children.is-hidden.in { opacity: 1; }
  /* Once the script has marked things up explicitly, normal rules take over */
  .reveal.is-hidden { opacity: 0; transform: translateY(28px); }
  .reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-children.is-hidden > * { opacity: 0; transform: translateY(20px); }
  .reveal-children > * { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal-children.in > * { opacity: 1; transform: none; }
  .reveal-children.in > *:nth-child(2) { transition-delay: .08s; }
  .reveal-children.in > *:nth-child(3) { transition-delay: .16s; }
  .reveal-children.in > *:nth-child(4) { transition-delay: .24s; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-children { opacity: 1 !important; }
    .reveal.is-hidden, .reveal-children.is-hidden > * { opacity: 1 !important; transform: none !important; }
  }

  /* Marquee */
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 42s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Pulse line — homage to logo waveform */
  @keyframes pulse-shift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -200; } }
  .pulse-line { display: block; width: 100%; height: 28px; }
  .pulse-line path { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 4 6; animation: pulse-shift 4s linear infinite; opacity: .5; }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    border: 1px solid var(--fg);
    border-radius: 999px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    background: transparent; color: var(--fg);
    cursor: pointer; transition: all .25s;
  }
  .btn:hover { background: var(--fg); color: var(--bg); }
  .btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .btn.primary:hover { background: transparent; color: var(--fg); }
  .btn .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

  /* Wrap */
  .wrap { padding-left: calc(var(--pad-x) * var(--density)); padding-right: calc(var(--pad-x) * var(--density)); }

  /* ============ NAV ============ */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px var(--pad-x);
    color: #fff;
    background: rgba(0,0,0,0);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, padding .3s ease, backdrop-filter .3s ease;
  }
  .nav.scrolled {
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
    padding-top: 10px; padding-bottom: 10px;
  }
  .nav .brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1; }
  .nav .brand img { width: 180px; height: auto; object-fit: contain; display: block; }
  .nav .brand .city { font-family: var(--mono); font-size: 10px; letter-spacing: .28em; opacity: .8; text-transform: uppercase; padding-left: 4px; }
  .navlinks { display: flex; gap: 28px; align-items: center; }
  .navlinks a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
  .navlinks a:hover { opacity: 1; color: var(--accent); }
  .nav .cta { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; }
  .nav .cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  @media (max-width: 820px) {
    .navlinks { display: none; }
    .nav .brand img { width: 140px; }
    .nav .brand .city { display: none; }
  }

  /* Mobile menu button */
  .menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid currentColor; align-items: center; justify-content: center; background: transparent; color: inherit; cursor: pointer; }
  .menu-btn span { width: 16px; height: 1px; background: currentColor; position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor; }
  .menu-btn span::before { top: -5px; } .menu-btn span::after { top: 5px; }
  @media (max-width: 820px) { .menu-btn { display: inline-flex; } .nav .cta { display: none; } }

  .mob-menu {
    position: fixed; inset: 0; z-index: 100;
    background: #000;
    display: flex; flex-direction: column;
    padding: 80px var(--pad-x) 32px;
    transform: translateY(-100%); transition: transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .mob-menu.open { transform: translateY(0); }
  .mob-menu a { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mob-menu .close { position: absolute; top: 20px; right: var(--pad-x); width: 40px; height: 40px; border-radius: 999px; border: 1px solid #fff; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
  .mob-menu .info { margin-top: auto; padding-top: 32px; }
  .mob-menu .info .row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--fg-dim); font-family: var(--mono); font-size: 11px; }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    /* Make hero a bit shorter than viewport so the marquee strip peeks above the fold */
    min-height: calc(100vh - 130px); min-height: calc(100svh - 130px);
    overflow: hidden;
    background: #000;
    display: grid; grid-template-rows: auto 1fr auto;
  }
  .hero .videowrap { position: absolute; inset: 0; z-index: 0; }
  .hero video { width: 100%; height: 100%; object-fit: cover; }
  /* Hero media: foto su desktop, video verticale su mobile */
  .hero .hero-photo { display: block; position: absolute; inset: 0; }
  .hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .hero .hero-video { display: none; }
  @media (max-width: 768px) {
    .hero .hero-photo { display: none; }
    .hero .hero-video { display: block; }
  }
  .hero .videowrap::after {
    content: ''; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,.9) 100%);
    pointer-events: none;
  }
  .hero .videowrap::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
      repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(255,255,255,.025) 2px 3px);
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .hero .content { position: relative; z-index: 2; display: contents; }
  .hero .top-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 100px var(--pad-x) 0;
    gap: 24px; flex-wrap: wrap;
  }
  .hero .top-row .mono { color: var(--fg-dim); }
  .hero .top-row .mono.live::before {
    content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: #ff3535; margin-right: 8px; animation: blink 1.4s infinite;
  }
  @keyframes blink { 50% { opacity: .3; } }
  .hero .lockup { padding: 0 var(--pad-x) 60px; align-self: end; }
  .hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(48px, 11vw, 180px);
    line-height: .88; letter-spacing: -0.045em;
    margin: 0;
    text-transform: uppercase;
  }
  .hero h1 .ita { font-style: italic; font-weight: 600; letter-spacing: -0.04em; }
  .hero h1 .acc { color: var(--accent); }
  .hero .sub {
    max-width: 50ch; margin: 32px 0 0;
    font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: rgba(255,255,255,.85);
  }
  .hero .actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
  .hero .bottom-row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: end; gap: 24px;
    padding: 0 var(--pad-x) 24px;
  }
  .hero .bottom-row .mono { color: var(--fg-dim); }
  .hero .bottom-row .center { text-align: center; }
  .hero .scroll { display: inline-flex; flex-direction: row; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg); }
  .hero .scroll .arr { width: 1px; height: 28px; background: var(--fg-dim); position: relative; overflow: hidden; flex: 0 0 auto; }
  .hero .scroll .arr::after { content: ''; position: absolute; inset: 0; background: var(--fg); animation: scrolly 2s ease-in-out infinite; }
  .hero .scroll .loc { opacity: .9; }
  @keyframes scrolly { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
  @media (max-width: 720px) {
    .hero .bottom-row { grid-template-columns: 1fr; text-align: center; }
    .hero .bottom-row > * { text-align: center; }
  }

  /* Marquee bar */
  .marquee {
    border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
    overflow: hidden;
    padding: 20px 0;
    background: var(--bg);
  }
  .marquee-item {
    display: inline-flex; align-items: center; gap: 28px;
    font-family: var(--display); font-weight: 700;
    font-size: clamp(28px, 4.4vw, 56px);
    padding: 0 28px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-transform: uppercase;
  }
  .marquee-item .star { width: 18px; height: 18px; flex: 0 0 auto; opacity: .8; }
  .marquee-item .star path { fill: var(--fg); }

  /* ============ ABOUT ============ */
  .about { padding-top: 120px; padding-bottom: 100px; border-bottom: 1px solid var(--line); position: relative; }
  .about .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 8vw, 100px); }
  @media (max-width: 900px) { .about .grid { grid-template-columns: 1fr; gap: 48px; } }
  .section-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
  .section-kicker::before { content: ''; width: 32px; height: 1px; background: var(--accent); display: inline-block; }
  .about h2 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; line-height: .95; letter-spacing: -0.035em; margin: 0 0 0; }
  .about h2 .ita { font-style: italic; font-weight: 500; }
  .about p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: #d3d3d3; max-width: 60ch; margin: 0 0 20px; }
  .about .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
  .stat .n { font-size: clamp(44px, 6vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
  .stat .l { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-top: 10px; }
  .stat .n .acc { color: var(--accent); }

  /* ============ SERVICES ============ */
  .services { padding-top: 120px; padding-bottom: 120px; border-bottom: 1px solid var(--line); }
  .section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
  .section-head h2 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; line-height: .95; letter-spacing: -0.035em; margin: 0; text-transform: uppercase; }
  .section-head .kicker { color: var(--fg-dim); max-width: 38ch; font-size: 15px; line-height: 1.5; }
  .svc-list { border-top: 1px solid var(--line-2); }
  .svc {
    display: grid; grid-template-columns: 80px 1fr 1.2fr auto;
    gap: 32px; align-items: center;
    padding: 32px 16px;
    border-bottom: 1px solid var(--line-2);
    cursor: pointer; transition: background .25s, padding .35s cubic-bezier(.2,.7,.2,1);
  }
  .svc:hover { background: #0c0c0c; padding-left: 32px; padding-right: 32px; }
  .svc-num { font-family: var(--mono); color: var(--fg-dim); font-size: 12px; letter-spacing: .12em; }
  .svc-title { font-size: clamp(24px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
  .svc-desc { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }
  .svc-arrow { font-family: var(--mono); color: var(--fg-dim); font-size: 22px; transition: transform .3s, color .3s; }
  .svc:hover .svc-arrow { transform: translateX(8px); color: var(--fg); }
  @media (max-width: 900px) {
    .svc { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; }
    .svc-desc, .svc-arrow { grid-column: 2; }
    .svc:hover { padding-left: 16px; padding-right: 16px; }
  }

  /* ============ PORTFOLIO ============ */
  .portfolio { padding-top: 120px; padding-bottom: 120px; border-bottom: 1px solid var(--line); }
  .pf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .pf-item { position: relative; cursor: pointer; overflow: hidden; }
  .pf-item .frame { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #111; }
  .pf-item .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; filter: saturate(.95) brightness(.95); }
  .pf-item:hover .frame img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
  .pf-item .meta { display: flex; justify-content: space-between; margin-top: 14px; align-items: baseline; gap: 16px; }
  .pf-item .name { font-size: clamp(13px, 1vw, 15px); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--mono); transition: color .25s; }
  .pf-item:hover .name { color: var(--accent); }
  .pf-item .year { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); }
  .pf-item .badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--mono); font-size: 10px; padding: 6px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .12em;
  }
  .pf-item.w-6 { grid-column: span 6; }
  .pf-item.w-4 { grid-column: span 4; }
  @media (max-width: 900px) {
    .pf-item[class*="w-"] { grid-column: span 6; }
  }
  @media (max-width: 600px) {
    .pf-item[class*="w-"] { grid-column: span 12; }
  }

  /* ============ NUMBERS ============ */
  .nums { padding-top: 100px; padding-bottom: 100px; border-bottom: 1px solid var(--line); }
  .nums-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .num { background: var(--bg); padding: 44px 24px; }
  .num .v { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
  .num .l { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-top: 14px; }
  .num .v .acc { color: var(--accent); }
  @media (max-width: 700px) { .nums-grid { grid-template-columns: 1fr 1fr; } }

  /* ============ CONTACT ============ */
  .contact { padding-top: 130px; padding-bottom: 100px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
  .contact .bigword {
    font-size: clamp(72px, 16vw, 240px);
    font-weight: 800; letter-spacing: -0.05em;
    line-height: .85; margin: 24px 0 0;
    text-transform: uppercase;
  }
  .contact .bigword .ita { font-style: italic; font-weight: 600; }
  .contact .bigword .acc { color: var(--accent); }
  .contact-grid { display: block; max-width: 760px; margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
  .field { margin-bottom: 28px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  @media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
  .field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 12px; }
  .field input, .field textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-2);
    padding: 12px 0; color: var(--fg); font-family: var(--display); font-size: 18px; font-weight: 400;
    outline: none; transition: border-color .25s;
  }
  .field input::placeholder, .field textarea::placeholder { color: #555; }
  .field input:focus, .field textarea:focus { border-color: var(--fg); }
  .field textarea { resize: vertical; min-height: 110px; }

  /* ============ FOOTER ============ */
  .footer { padding-top: 100px; padding-bottom: 32px; }
  .footer .word-row { display: flex; align-items: center; justify-content: center; }
  .footer .word-mark { width: clamp(280px, 60vw, 760px); height: auto; flex: 0 0 auto; opacity: .98; }
  .footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
  @media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
  @media (max-width: 540px) { .footer .cols { grid-template-columns: 1fr; gap: 24px; } }
  .footer .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 16px; font-weight: 500; }
  .footer .col a, .footer .col span { display: block; font-size: 15px; padding: 4px 0; color: var(--fg); transition: color .2s; }
  .footer .col a:hover { color: var(--fg-dim); }
  .footer .legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 36px; margin-top: 56px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .12em; flex-wrap: wrap; }

  /* Image lightbox */
  .lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.95); display: none; align-items: center; justify-content: center; padding: 40px; }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
  .lightbox .close { position: absolute; top: 24px; right: 24px; background: transparent; border: 1px solid #fff; color: #fff; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 24px; line-height: 1; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Active nav link */
.navlinks a.active { color: var(--accent); opacity: 1; }
.mob-menu a.active { color: var(--accent); }

/* ============ PAGE HERO ============ */
.page-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  min-height: 78vh; min-height: 78svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0) 0 2px, rgba(255,255,255,.018) 2px 3px);
  pointer-events: none;
}
.ph-top {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--fg-dim);
  position: relative; z-index: 2;
}
.ph-lockup { align-self: end; position: relative; z-index: 2; }
.ph-h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 16vw, 260px);
  line-height: .82;
  letter-spacing: -0.05em;
  margin: 0;
  text-transform: uppercase;
}
.ph-h1 .acc { color: var(--accent); }
.ph-h1 .ita { font-style: italic; font-weight: 600; }
.ph-sub {
  max-width: 56ch;
  margin: 36px 0 0;
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.ph-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  position: relative; z-index: 2;
}
.ph-bottom .scroll { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg); }
.ph-bottom .scroll .arr { width: 1px; height: 28px; background: var(--fg-dim); position: relative; overflow: hidden; flex: 0 0 auto; }
.ph-bottom .scroll .arr::after { content: ''; position: absolute; inset: 0; background: var(--fg); animation: scrolly 2s ease-in-out infinite; }
@media (max-width: 720px) {
  .ph-bottom { grid-template-columns: 1fr; text-align: center; }
  .ph-bottom > * { text-align: center; }
}

/* ============ STORY (timeline chapters) ============ */
.story { padding-top: 140px; padding-bottom: 140px; border-bottom: 1px solid var(--line); }
.chapters { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); margin-top: 24px; }
.chapter {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr;
  gap: 48px;
  padding: 64px 16px;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
  transition: background .35s, padding .35s cubic-bezier(.2,.7,.2,1);
}
.chapter:hover { background: #0a0a0a; padding-left: 32px; padding-right: 32px; }
.ch-year {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 8vw, 128px);
  line-height: .85;
  letter-spacing: -0.045em;
  color: var(--fg);
  transition: color .4s;
}
.chapter:hover .ch-year { color: var(--accent); }
.ch-body { max-width: 60ch; }
.ch-index { color: var(--fg-dim); margin-bottom: 18px; font-size: 11px; letter-spacing: .14em; }
.ch-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  line-height: 1;
}
.ch-text {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: #d3d3d3;
  margin: 0;
}
.ch-text strong { color: var(--fg); font-weight: 600; }
.ch-text em { font-style: italic; color: var(--fg); font-weight: 400; }
.ch-text + .ch-text { margin-top: 14px; }
@media (max-width: 800px) {
  .chapter { grid-template-columns: 1fr; gap: 18px; padding: 40px 0; }
  .chapter:hover { padding-left: 16px; padding-right: 16px; }
}

/* ============ PHILOSOPHY ============ */
.philo { padding-top: 140px; padding-bottom: 140px; border-bottom: 1px solid var(--line); }
.philo-words { margin-top: 32px; border-top: 1px solid var(--line-2); }
.philo-word {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: baseline;
  gap: 32px;
  padding: 44px 16px;
  border-bottom: 1px solid var(--line-2);
  transition: background .35s, padding .35s cubic-bezier(.2,.7,.2,1);
  cursor: default;
}
.philo-word:hover { background: #0a0a0a; padding-left: 32px; padding-right: 32px; }
.philo-num { font-family: var(--mono); color: var(--fg-dim); font-size: 12px; letter-spacing: .12em; }
.philo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 128px);
  letter-spacing: -0.045em;
  line-height: .9;
  text-transform: uppercase;
}
.philo-text .acc { color: var(--accent); font-style: italic; font-weight: 600; }
.philo-tag { font-family: var(--mono); color: var(--fg-dim); font-size: 11px; letter-spacing: .14em; }
@media (max-width: 700px) {
  .philo-word { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .philo-word:hover { padding-left: 0; padding-right: 0; }
  .philo-tag { display: none; }
}

/* ============ TEAM ============ */
.team { padding-top: 140px; padding-bottom: 140px; border-bottom: 1px solid var(--line); }
/* ============ TEAM — roster editoriale (nome + ruolo, no foto) ============ */
.team-roster {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.team-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 28px;
  align-items: center;
  gap: 28px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s cubic-bezier(.2,.7,.2,1), background-color .4s;
}
.team-row:hover { background: var(--bg-2); padding-left: 24px; }
.tr-index {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  align-self: start;
  padding-top: 8px;
}
.tr-name {
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--fg);
}
.tr-name .tr-last { font-style: italic; font-weight: 600; }
.team-row:hover .tr-name .tr-last { color: var(--accent); }
.tr-role {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.tr-dot { display: flex; justify-content: flex-end; }
.tr-dot .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s;
}
.team-row:hover .tr-dot .dot { opacity: 1; transform: none; }
@media (max-width: 680px) {
  .team-row {
    grid-template-columns: 36px 1fr;
    gap: 6px 14px;
    padding: 26px 4px;
  }
  .team-row:hover { padding-left: 12px; }
  .tr-index { padding-top: 4px; }
  .tr-role { grid-column: 2; text-align: left; margin-top: 10px; }
  .tr-dot { display: none; }
}

/* ============ ABOUT CTA (back to home contact) ============ */
.about-cta {
  padding-top: 140px;
  padding-bottom: 130px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.about-cta .section-kicker { margin-bottom: 24px; }
.about-cta .bigword {
  font-size: clamp(64px, 14vw, 220px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .85;
  margin: 24px 0 0;
  text-transform: uppercase;
}
.about-cta .bigword .acc { color: var(--accent); }
.about-cta .bigword .ita { font-style: italic; font-weight: 600; }
.about-cta .actions { margin-top: 48px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-cta .meta-row {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
}
@media (max-width: 700px) { .about-cta .meta-row { grid-template-columns: 1fr; } }


/* ============================================================
   SERVIZI PAGE
   ============================================================ */
.svc-intro { padding-top: 120px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.svc-intro .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 8vw, 100px); padding-bottom: 100px; }
@media (max-width: 900px) { .svc-intro .grid { grid-template-columns: 1fr; gap: 40px; } }
.svc-intro h2 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; line-height: .95; letter-spacing: -0.035em; margin: 0; text-transform: uppercase; }
.svc-intro p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: #d3d3d3; margin: 0 0 20px; }

/* Detailed service blocks */
.svc-detailed { padding-top: 100px; padding-bottom: 100px; border-bottom: 1px solid var(--line); }
.svc-detail-list { border-top: 1px solid var(--line-2); margin-top: 24px; }
.svc-detail {
  display: grid;
  grid-template-columns: 80px minmax(260px, 1.2fr) 1.4fr auto;
  gap: 40px;
  padding: 48px 16px;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
  transition: background .35s, padding .35s cubic-bezier(.2,.7,.2,1);
}
.svc-detail:hover { background: #0a0a0a; padding-left: 32px; padding-right: 32px; }
.svc-detail .num { font-family: var(--mono); color: var(--fg-dim); font-size: 12px; letter-spacing: .12em; padding-top: 14px; }
.svc-detail .head h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 16px;
}
.svc-detail .head .lede {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
}
.svc-detail .body {
  display: flex; flex-direction: column; gap: 18px;
}
.svc-detail .body p { font-size: 15px; line-height: 1.7; color: #d3d3d3; margin: 0; }
.svc-detail .body p strong { color: var(--fg); font-weight: 600; }
.svc-detail .feats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.svc-detail .feats span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color .25s, color .25s;
}
.svc-detail:hover .feats span { border-color: var(--line); color: var(--fg); }
.svc-detail .arrow {
  font-family: var(--mono);
  color: var(--fg-dim);
  font-size: 22px;
  transition: transform .3s, color .3s;
  align-self: center;
}
.svc-detail:hover .arrow { transform: translateX(8px); color: var(--accent); }
@media (max-width: 1000px) {
  .svc-detail { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .svc-detail:hover { padding-left: 16px; padding-right: 16px; }
  .svc-detail .num { padding-top: 0; }
  .svc-detail .arrow { justify-self: end; }
}

/* Process steps */
.process { padding-top: 120px; padding-bottom: 120px; border-bottom: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-top: 32px;
}
.step {
  background: var(--bg);
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background .35s;
}
.step:hover { background: #0a0a0a; }
.step .step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .14em;
}
.step .step-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.step .step-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-top: auto;
}
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   CONTATTI PAGE
   ============================================================ */
.contact-page { padding-top: 100px; padding-bottom: 100px; border-bottom: 1px solid var(--line); }
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 32px;
}
@media (max-width: 900px) { .contact-page-grid { grid-template-columns: 1fr; gap: 56px; } }

.info-block {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-2);
}
.info-block .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}
.info-block .row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.info-block .row .v {
  font-size: 17px;
  color: var(--fg);
  line-height: 1.4;
}
.info-block .row .v.big {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.info-block .row .v.big a { color: inherit; transition: color .2s; }
.info-block .row .v.big a:hover { color: var(--accent); }
.info-block .row .v small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 8px;
}
.info-block .social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.info-block .social-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s;
}
.info-block .social-links a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Maps band */
.maps-band { position: relative; padding: 0; border-bottom: 1px solid var(--line); background: #0a0a0a; }
.maps-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: 80px var(--pad-x) 32px;
  border-bottom: 1px solid var(--line-2);
}
.maps-head h2 {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.035em;
  margin: 0;
  text-transform: uppercase;
}
.maps-wrap {
  position: relative;
  height: clamp(380px, 60vh, 620px);
  overflow: hidden;
  background: #0a0a0a;
}
.maps-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95);
}
.maps-overlay {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-2);
  padding: 24px 28px;
  max-width: 320px;
  z-index: 2;
}
.maps-overlay .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.maps-overlay .addr {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 16px;
}
.maps-overlay .addr small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 4px;
}
.maps-overlay .links {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.maps-overlay .links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .25s;
}
.maps-overlay .links a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 600px) {
  .maps-overlay { left: 16px; right: 16px; top: 16px; max-width: none; padding: 18px 20px; }
}

/* FAQ */
.faq { padding-top: 120px; padding-bottom: 120px; border-bottom: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line-2); margin-top: 24px; }
.faq-item {
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .25s;
}
.faq-item:hover { background: #0a0a0a; }
.faq-q {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 16px;
}
.faq-q .num { font-family: var(--mono); color: var(--fg-dim); font-size: 11px; letter-spacing: .12em; }
.faq-q .q {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq-q .toggle {
  font-family: var(--mono);
  color: var(--fg-dim);
  font-size: 20px;
  transition: transform .35s, color .25s;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.2,.7,.2,1);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a .body {
  padding: 0 16px 32px 100px;
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
}
@media (max-width: 700px) {
  .faq-q { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .faq-a .body { padding-left: 56px; padding-right: 16px; }
}


/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.pf-hero-video {
  position: relative;
  margin-top: 40px;
  border: 1px solid var(--line-2);
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.pf-hero-video video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.pf-hero-video::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.pf-hero-video .vmeta {
  position: absolute; bottom: 18px; left: 20px; right: 20px;
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85);
  z-index: 2;
}
.pf-hero-video .vmeta .live::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: #ff3535; margin-right: 8px; animation: blink 1.4s infinite; vertical-align: middle;
}

/* Gallery section */
.pf-page { padding-top: 100px; padding-bottom: 100px; border-bottom: 1px solid var(--line); }

/* Filter chips */
.pf-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0 24px;
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
}
.pf-filters button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s;
}
.pf-filters button:hover { color: var(--fg); border-color: var(--line); }
.pf-filters button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pf-counter {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-dim);
  align-self: center;
}

/* Masonry-style grid using CSS grid with varying spans */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.g-item {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color .3s;
}
.g-item:hover { border-color: var(--accent); }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s;
  filter: saturate(.92) brightness(.9);
}
.g-item:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.g-item .corner {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 9px;
  border-radius: 999px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .3s;
}
.g-item:hover .corner { opacity: 1; transform: none; }

/* Span variants — large + small + tall mix */
.g-item.s-3   { grid-column: span 3; aspect-ratio: 1/1; }
.g-item.s-4   { grid-column: span 4; aspect-ratio: 4/3; }
.g-item.s-4-t { grid-column: span 4; aspect-ratio: 3/4; }
.g-item.s-6   { grid-column: span 6; aspect-ratio: 16/10; }
.g-item.s-8   { grid-column: span 8; aspect-ratio: 16/9; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .g-item.s-3 { grid-column: span 3; }
  .g-item.s-4, .g-item.s-4-t { grid-column: span 3; aspect-ratio: 4/3; }
  .g-item.s-6 { grid-column: span 6; }
  .g-item.s-8 { grid-column: span 6; aspect-ratio: 16/9; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .g-item.s-3, .g-item.s-4, .g-item.s-4-t, .g-item.s-6, .g-item.s-8 {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}

/* Empty placeholder slot */
.g-item.empty {
  background:
    repeating-linear-gradient(45deg, #0d0d0d 0 8px, #0a0a0a 8px 16px);
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  border-style: dashed;
}
.g-item.empty:hover { border-color: var(--line); }
.g-item.empty .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
  padding: 16px;
}

/* Load-more strip */
.pf-more {
  margin-top: 48px;
  padding: 32px 16px;
  border: 1px dashed var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.pf-more .txt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }


/* ============================================================
   FORM + FAQ + MAPS — comment fixes
   ============================================================ */

/* Required marker */
.field label .req { color: var(--accent); margin-left: 4px; font-weight: 600; }

/* Maps overlay → top-right so it doesn't cover the "View larger map"
   link Google places top-left in embed mode. */
.maps-overlay {
  left: auto !important;
  right: 24px;
}
@media (max-width: 600px) {
  .maps-overlay { left: 16px !important; right: 16px; }
}

/* FAQ placeholder slots — styled like team member portraits */
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: none;
  margin-top: 24px;
}
@media (max-width: 700px) { .faq-list { grid-template-columns: 1fr; } }

.faq-slot {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 20px;
  border: 1px dashed var(--line-2);
  background: #0a0a0a;
  transition: border-color .3s, background .3s;
  min-height: 88px;
}
.faq-slot:hover { border-color: var(--line); background: #0d0d0d; }
.fs-num {
  font-family: var(--mono);
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: .12em;
}
.fs-body {
  position: relative;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.fs-q {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  z-index: 2;
}
.fs-q .placeholder { color: var(--fg-dim); }
.fs-q .placeholder.ita { font-style: italic; opacity: .7; }
.fs-stripes {
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 14px;
  opacity: .55;
  z-index: 1;
}
.fs-stripes svg { width: 100%; height: 100%; display: block; }
.fs-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-dim);
  opacity: .8;
}
@media (max-width: 540px) {
  .faq-slot { grid-template-columns: 40px 1fr; padding: 20px 16px; }
  .fs-tag { display: none; }
}

/* ============ Custom cursor: only on fine pointers (desktop) ============ */
.cur { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cur { display: block; }
}

/* ============ Accessibility: skip link ============ */
.skip-link {
  position: fixed; top: 8px; left: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  z-index: 10000;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: none; outline: 2px solid var(--fg); outline-offset: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline-offset: 1px; }

/* ============ content-visibility: skip off-screen render ============ */
.pf-item, .g-item, .svc { content-visibility: auto; contain-intrinsic-size: auto 300px; }

/* ============ View Transitions API (Chrome/Edge MPA) ============ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero .videowrap video,
  .pf-hero-video video { display: none; }
  .reveal, .reveal-children { opacity: 1 !important; transform: none !important; }
  .reveal .title-reveal .tr-inner,
  .reveal-children .title-reveal .tr-inner { transform: none !important; }
  .marquee-track { animation: none !important; }
}


