/* Seven Film Studio — pagina "coming soon" (temporanea, finché non va online il sito nuovo).
   Stessi colori e caratteri del sito: quasi nero, lime del logo, Archivo + IBM Plex Mono serviti da qui. */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap;
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plexmono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plexmono-500-latin.woff2") format("woff2");
}

:root {
  --bg: #0B0B0B;      /* Ink (manuale del logo 2026) */
  --bg-2: #1C1C1C;    /* Graphite */
  --rule: #222427;
  --line: #2C2F33;
  --ink: #F1EFE9;     /* Bone */
  --mute: #8B8E94;
  --dark: #0B0B0B;
  --lime: #C6FF00;
  --lime-glow: rgba(198, 255, 0, .55);

  --f-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-label: .71875rem;

  --inset: clamp(10px, 1.8vw, 22px);           /* distanza degli angoli del mirino dal bordo */
  --arm: clamp(22px, 3.6vw, 46px);             /* lunghezza dei bracci */
  --stroke: clamp(2px, .28vw, 3px);
  --pad-x: max(calc(var(--inset) + clamp(16px, 3.4vw, 56px)), env(safe-area-inset-left), env(safe-area-inset-right));
  --pad-y: calc(var(--inset) + clamp(14px, 2.2vw, 30px));
  --leader: min(74vw, 44svh, 440px);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--pad-y) var(--pad-x) max(var(--pad-y), env(safe-area-inset-bottom));
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.5 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--dark); }
a, button { cursor: url("img/cursor-bolt.png") 9 3, pointer; cursor: -webkit-image-set(url("img/cursor-bolt.png") 1x, url("img/cursor-bolt@2x.png") 2x) 9 3, pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* etichette mono tra parentesi quadre: lo stile delle scritte piccole del sito */
.eyebrow, .status, .readout, .legal, .motion-toggle, .cta__links {
  font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.br::before { content: "[\00a0"; }
.br::after { content: "\00a0]"; }
.todo { color: var(--mute); font-style: italic; text-transform: none; letter-spacing: .02em; }

/* ── schermo: tubo catodico su tutta la pagina ── */
.screen, .viewfinder, .flash, .boot { position: fixed; inset: 0; pointer-events: none; }
.screen { z-index: 40; }
.screen::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(to right, rgba(255, 60, 60, .025) 0 1px, rgba(60, 255, 60, .025) 1px 2px, rgba(60, 90, 255, .025) 2px 3px),
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, .66) 100%);
}
/* banda luminosa che scorre lenta, come su un monitor */
.screen::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .035), transparent);
}
.motion .screen::after { animation: crt-roll 8s linear infinite; }
@keyframes crt-roll { to { transform: translateY(433%); } }

/* grana della pellicola */
.motion body::after {
  content: ""; position: fixed; inset: -50%; z-index: 41; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-6%, 4%); } 33% { transform: translate(5%, -7%); }
  50% { transform: translate(-3%, 8%); } 67% { transform: translate(8%, 2%); } 83% { transform: translate(-7%, -4%); } 100% { transform: translate(0, 0); }
}

/* mirino: i quattro angoli del logo [7] sui bordi dello schermo */
.viewfinder { z-index: 42; }
.viewfinder i {
  position: absolute; width: var(--arm); height: var(--arm);
  border: 0 solid var(--lime);
}
.viewfinder i:nth-child(1) { top: max(var(--inset), env(safe-area-inset-top)); left: max(var(--inset), env(safe-area-inset-left)); border-top-width: var(--stroke); border-left-width: var(--stroke); }
.viewfinder i:nth-child(2) { top: max(var(--inset), env(safe-area-inset-top)); right: max(var(--inset), env(safe-area-inset-right)); border-top-width: var(--stroke); border-right-width: var(--stroke); }
.viewfinder i:nth-child(3) { bottom: max(var(--inset), env(safe-area-inset-bottom)); left: max(var(--inset), env(safe-area-inset-left)); border-bottom-width: var(--stroke); border-left-width: var(--stroke); }
.viewfinder i:nth-child(4) { bottom: max(var(--inset), env(safe-area-inset-bottom)); right: max(var(--inset), env(safe-area-inset-right)); border-bottom-width: var(--stroke); border-right-width: var(--stroke); }

/* lampo bianco sul 7 (un solo fotogramma, morbido) */
.flash { z-index: 43; background: #fff; opacity: 0; }
.flash.is-on { animation: flash 260ms ease-out; }
@keyframes flash { 0% { opacity: .22; } 100% { opacity: 0; } }

/* accensione: una riga bianca che si apre in tutto lo schermo */
.boot { display: none; z-index: 50; background: #000; }
.motion .boot { display: block; animation: boot-off 1s linear .62s forwards; }
.motion .boot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: #fff; box-shadow: 0 0 22px 4px rgba(255, 255, 255, .7);
  transform: scaleX(0); animation: boot-line .62s var(--ease) .1s forwards;
}
@keyframes boot-line {
  0% { transform: scaleX(0); opacity: 1; }
  45% { transform: scaleX(1) scaleY(1); opacity: 1; }
  100% { transform: scaleX(1) scaleY(260); opacity: 0; }
}
@keyframes boot-off { 0% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; visibility: hidden; } }

/* ── testata ── */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; z-index: 2; }
.brand { position: relative; display: block; line-height: 0; text-decoration: none; }
/* logo 2026: solo SEVEN, file originale (SEVEN_scritta_lime.svg, con margine di 0,3 H già nel file).
   54 px di altezza = lettere larghe 120 px, il minimo del manuale su schermo. Nessun effetto al passaggio. */
.logo-img { display: block; height: 54px; width: auto; }

.status { text-align: right; color: var(--mute); display: grid; gap: 4px; }
.status__rec { display: flex; align-items: center; justify-content: flex-end; gap: .9em; color: var(--ink); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 10px rgba(255, 42, 42, .75); }   /* rosso, come il tally di una camera */
.rec-label { color: var(--lime); }
.tc { min-width: 15ch; text-align: right; }
.motion .rec-dot { animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
/* prima del countdown la camera è in standby */
.is-standby .rec-dot { background: var(--mute); box-shadow: none; animation: none; }
.is-standby .rec-label { color: var(--mute); }
:root:not(.motion) .tc { display: none; }

/* ── palco ── */
.stage {
  position: relative; z-index: 1;
  display: grid; align-content: center; justify-items: center;
  gap: clamp(24px, 4.5svh, 56px);
  padding-block: clamp(20px, 3svh, 48px);
}
.stage__screen { display: grid; justify-items: center; gap: clamp(14px, 2.4svh, 26px); }

/* coda da pellicola: cerchi, mirino a croce, radar che gira, il numero */
.leader {
  position: relative; width: var(--leader); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; isolation: isolate;
}
.leader__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leader__rings circle { fill: none; stroke: var(--line); stroke-width: .7; vector-effect: non-scaling-stroke; }
.leader__rings circle:first-child { stroke: #3A3D42; }
.leader__rings line { stroke: var(--line); stroke-width: .7; vector-effect: non-scaling-stroke; }
.leader__sweep {
  position: absolute; inset: 1.5%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 270deg, rgba(198, 255, 0, .04) 300deg, rgba(198, 255, 0, .2) 359.4deg, var(--lime) 359.6deg 360deg);
  opacity: .9;
}
.motion .leader__sweep { animation: sweep 6s linear infinite; }
.motion .is-counting .leader__sweep { animation-duration: .75s; }
@keyframes sweep { to { transform: rotate(1turn); } }
:root:not(.motion) .leader__sweep { transform: rotate(35deg); }

/* numeri del countdown: contorno, poi il 7 pieno del logo */
.leader__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 calc(var(--leader) * .5)/1 var(--f-sans); font-variation-settings: "wdth" 100;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  opacity: 0; transform: scale(.9);
}
.is-counting .leader__num { opacity: 1; transform: none; }
.leader__num.is-tick { animation: tick .75s var(--ease); }
@keyframes tick { 0% { opacity: 0; transform: scale(1.18); } 12% { opacity: 1; } 80% { opacity: 1; transform: scale(1); } 100% { opacity: .2; transform: scale(.96); } }

.mark { position: relative; width: 56%; height: auto; overflow: visible; }
.mark__corners, .mark__seven { fill: var(--lime); }
.mark { filter: drop-shadow(0 0 18px rgba(198, 255, 0, .28)); }
.is-counting .mark { opacity: 0; }
.mark.is-in .mark__corners { animation: corners-in .5s var(--ease) both; transform-origin: 50% 50%; transform-box: view-box; }
.mark.is-in .mark__seven { animation: seven-in .38s var(--ease) both; transform-origin: 50% 50%; transform-box: view-box; }
@keyframes corners-in { 0% { opacity: 0; transform: scale(1.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes seven-in { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
/* ogni tanto il 7 ha un glitch, come il logo al passaggio del mouse */
.mark.is-glitch { animation: mark-glitch .5s steps(1) both; }
@keyframes mark-glitch {
  0% { transform: translate(-3px, 0); filter: drop-shadow(-4px 0 rgba(255, 40, 80, .9)) drop-shadow(4px 0 rgba(0, 220, 255, .9)); clip-path: inset(0 0 55% 0); }
  20% { transform: translate(4px, 1px); clip-path: inset(40% 0 0 0); }
  40% { transform: translate(-2px, -1px); clip-path: inset(20% 0 30% 0); filter: drop-shadow(3px 0 rgba(255, 40, 80, .9)) drop-shadow(-3px 0 rgba(0, 220, 255, .9)); }
  60% { transform: none; clip-path: none; filter: drop-shadow(0 0 18px rgba(198, 255, 0, .28)); }
  80% { transform: translate(2px, 0); filter: drop-shadow(-2px 0 rgba(255, 40, 80, .8)) drop-shadow(2px 0 rgba(0, 220, 255, .8)); }
  100% { transform: none; clip-path: none; filter: drop-shadow(0 0 18px rgba(198, 255, 0, .28)); }
}

/* messaggio da terminale: una frase alla volta, come nel player del sito */
.terminal {
  min-height: 2.6em; max-width: 100%;
  font: 500 clamp(.8125rem, .74rem + .36vw, 1.0625rem)/1.3 var(--f-mono); letter-spacing: .02em;
  color: var(--lime); text-align: center; text-shadow: 0 0 10px rgba(198, 255, 0, .45);
}
.terminal .inv { background: var(--lime); color: var(--dark); text-shadow: none; padding: 0 .2em; }
.terminal s { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--lime); opacity: .55; }
.terminal .glitch { display: inline-block; text-shadow: -2px 0 rgba(255, 40, 80, .85), 2px 0 rgba(0, 220, 255, .85), 0 0 8px rgba(198, 255, 0, .6); animation: glitch-jitter 90ms steps(2) infinite; }
@keyframes glitch-jitter { 0% { transform: translate(0, 0) skewX(0); } 50% { transform: translate(-1px, 1px) skewX(-8deg); } 100% { transform: translate(1px, -1px) skewX(6deg); } }
.terminal__cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: .12em; vertical-align: -.17em; background: var(--lime); box-shadow: 0 0 8px var(--lime-glow); }
.motion .terminal__cursor { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* testo e contatti */
.stage__copy { display: grid; gap: clamp(28px, 5svh, 48px); justify-items: center; text-align: center; width: 100%; }
.copy { display: grid; gap: 14px; justify-items: center; }
.copy .eyebrow { color: var(--lime); }
.status-line { color: var(--ink); }
.title {
  margin: 0;
  font-family: var(--f-sans); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.01em;
  text-transform: uppercase; line-height: 1.14;
  font-size: clamp(1.5rem, .6rem + 4.6vw, 2.75rem);
}
.title__l { display: block; }
.hl { background: var(--lime); color: var(--dark); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { max-width: 40ch; color: var(--mute); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); font-variation-settings: "wdth" 104; text-wrap: balance; }

.cta { display: grid; gap: 10px; justify-items: center; }
.cta .eyebrow { color: var(--mute); }
.cta .eyebrow .br { color: var(--lime); }
.cta__mail {
  font: 700 min(1.75rem, 5.2vw)/1.15 var(--f-sans); font-variation-settings: "wdth" 100; letter-spacing: -.01em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px; transition: color .16s var(--ease), background-size .3s var(--ease);
}
.cta__mail:hover, .cta__mail:focus-visible { color: var(--dark); background-size: 100% 100%; outline: none; }
.cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; color: var(--ink); }
.cta__links a { text-decoration: none; padding-block: 6px; }
.cta__links a:hover, .cta__links a:focus-visible { color: var(--lime); }

/* ── piede ── */
.bottom {
  position: relative; z-index: 2;
  display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--mute);
  padding-top: 16px; border-top: 1px solid var(--rule);
}
.readout span, .legal .sep { padding-inline: .6em; opacity: .5; }
.legal__l { display: block; }
.readout { color: #5E6268; }
.legal { text-transform: none; letter-spacing: .06em; }
.bottom__end { display: flex; align-items: center; gap: 18px; }
.motion-toggle { white-space: nowrap; }
.motion-toggle { background: none; border: 0; padding: 6px 0; margin: 0; color: var(--mute); }
.motion-toggle::before { content: "[\00a0"; }
.motion-toggle::after { content: "\00a0]"; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--lime); }
.claim { height: 22px; width: auto; }

/* telefoni stretti: testata più piccola, i dati della camera in basso spariscono */
@media (max-width: 479px) {
  .status { font-size: .625rem; letter-spacing: .1em; }
  .status__rec { white-space: nowrap; gap: .7em; }
  .tc { min-width: 0; }
  .readout { display: none; }
}

/* ── da tablet in su ── */
@media (min-width: 640px) {
  .bottom { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center; text-align: left; }
  .readout { display: none; }
  .legal { justify-self: start; }
  .bottom__end { justify-self: end; }
}
@media (min-width: 1200px) {
  .bottom { grid-template-columns: auto minmax(0, 1fr) auto; }
  .readout { display: block; white-space: nowrap; }
  .legal { justify-self: center; text-align: center; }
}

/* ── desktop: a sinistra il testo, a destra lo schermo con il countdown ── */
@media (min-width: 960px) {
  :root { --leader: min(57svh, 38vw, 600px); }
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; justify-items: stretch;
    column-gap: clamp(32px, 4vw, 72px); padding-block: clamp(16px, 3svh, 40px);
  }
  .stage__screen { order: 2; }
  .stage__copy { order: 1; justify-items: start; text-align: left; align-content: center; gap: clamp(36px, 7svh, 72px); }
  .copy { justify-items: start; gap: 18px; }
  .title { font-size: clamp(2rem, min(4.25vw, 8.2svh), 5.25rem); line-height: 1.12; }
  .lede { text-wrap: pretty; }
  .cta { justify-items: start; }
  .cta__links { justify-content: flex-start; }
  .cta__mail { font-size: clamp(1.25rem, .4rem + 1.7vw, 2.25rem); font-variation-settings: "wdth" 112; }
}

/* schermi bassi (portatili 13"): tutto un po' più compatto */
@media (min-width: 960px) and (max-height: 760px) {
  .lede { display: none; }
}

/* senza movimento: niente intro, niente countdown, il 7 è già lì */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
