/* =========================================================
   AC DIGITAL — portfolio
   Palette e carattere ricavati da Logo_ACDigital.pdf
   ========================================================= */
:root {
  --navy: #182A46;
  /* fondo del logo */
  --navy-d: #111F36;
  /* variante profonda */
  --navy-l: #22385D;
  /* superfici sollevate */
  --white: #FFFFFF;
  --grey: #d0d2d5;
  /* grigio di "web & code" */
  --grey-d: #687485;

  --mint: #71B59C;
  --teal: #26B2A3;
  --blue: #004A92;
  --grad: linear-gradient(100deg, var(--mint) 0%, var(--teal) 46%, var(--blue) 100%);

  --line: rgba(173, 179, 189, .22);
  --maxw: 1500px;
  --gut: clamp(20px, 4.6vw, 80px);
  --f: "DM Sans", "Century Gothic", Questrial, system-ui, sans-serif;
  --e: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f);
  font-weight: 300;
  font-size: clamp(16px, 1.02vw, 18.5px);
  line-height: 1.65;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--teal);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

h1,
h2,
h3 {
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .98;
  margin: 0;
  text-transform: lowercase;
}

.display {
  font-size: clamp(2.4rem, 6.6vw, 6rem);
}

.h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
}

p {
  margin: 0 0 1.05em;
  max-width: 60ch;
  color: var(--grey);
}

p strong {
  color: var(--white);
  font-weight: 400;
}

.meta {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-d);
  font-weight: 400;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-d);
  display: grid;
  place-items: center;
}

.loader img {
  width: clamp(96px, 16vw, 170px);
  opacity: 0;
}

.loader .bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

.panels {
  position: fixed;
  inset: 0;
  z-index: 199;
  display: flex;
  pointer-events: none;
}

.panels i {
  flex: 1;
  background: var(--navy-d);
  display: block;
}

/* ---------- cursore ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  pointer-events: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  opacity: 0;
}

@media (hover:none),
(pointer:coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gut);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin: 1rem;
  border-radius: 0.5rem;
}

.nav .logo img {
  height: clamp(24px, 2.4vw, 32px);
  width: auto;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(110px, 16vh, 150px) clamp(30px, 6vh, 64px);
  position: relative;
}

.hero-bg {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  translate: -50% 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.stars i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  background: var(--c, #fff);
  opacity: 0;
  animation: twinkle var(--t) ease-in-out var(--d) infinite;
}

.stars i.dot {
  border-radius: 50%;
}

.stars i.spark {
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(.5);
  }

  50% {
    opacity: var(--o);
    transform: scale(1);
  }
}

.aurora {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: linear-gradient(166deg, var(--navy) 10%, var(--blue) 41%, var(--navy) 56%);
  filter: blur(70px);
  pointer-events: none;
}

.hero .tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-bottom: clamp(16px, 3.4vh, 34px);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(113, 181, 156, .4);
  background: rgba(113, 181, 156, .12);
  color: var(--mint);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 .l {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  white-space: nowrap;
}

.hero h1 .c {
  display: inline-block;
  will-change: transform;
}

.hero .indent {
  padding-left: clamp(0px, 12vw, 190px);
}

.hero .accent {
  color: var(--mint);
}

.hero-tagline {
  max-width: 46ch;
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  color: var(--white);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
}

.hero-sub {
  max-width: 52ch;
  margin: clamp(10px, 1.6vh, 16px) 0 0;
  color: var(--grey);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.cycle-word {
  display: inline-block;
  color: var(--mint);
  font-weight: 500;
}

.caret {
  display: inline-block;
  width: .08em;
  height: .76em;
  margin-left: .1em;
  vertical-align: -.04em;
  background: var(--mint);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-illustration {
  display: block;
  width: 100%;
  margin: 2rem 0 0 0;
  pointer-events: none;
}

@media (max-width:767px) {
  .hero .tag {
    order: 1;
  }

  .hero h1 {
    order: 2;
  }

  .hero-tagline {
    order: 3;
  }

  .hero-sub {
    order: 4;
  }

  .hero-illustration {
    order: 5;
  }

  .hero .hint {
    order: 6;
  }
}

@media (min-width:768px) {
  .hero-illustration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    /* metà dell'altezza resa (viewBox 1200.409x1709.504) scende oltre il bordo dell'hero */
    bottom: calc(min(50vw, 640px) * -0.712);
    right: -120px;
    width: min(50vw, 640px);
    margin: 0;
  }
}

.hero-illustration-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-illustration #Raggruppa_82 {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: astro-float 6s ease-in-out infinite;
}

@keyframes astro-float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -16px;
  }
}

.manifesto {
  position: relative;
  padding-block: clamp(90px, 18vh, 200px);
  overflow: hidden;
}

.manifesto .big {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  max-width: 16ch;
  margin: 0 0 28px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto .big w,
.manifesto p:not(.big) w {
  opacity: .16;
  display: inline-block;
}

.manifesto p:not(.big) {
  max-width: 56ch;
  color: var(--grey);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

/* ---------- pianeti decorativi ---------- */
.planet {
  position: absolute;
  z-index: -1;
  display: block;
  width: auto;
  opacity: 1;
  pointer-events: none;
  will-change: transform;
}

.planet-manifesto {
  top: 6%;
  left: 2%;
  width: min(11vw, 220px);
}

.planet-reel {
  top: -30px;
  right: 4%;
  width: min(11vw, 220px);
  opacity: .4;
}

.planet-contact {
  bottom: -8%;
  left: 6%;
  width: min(11vw, 130px);
  opacity: .5;
}

@media (max-width: 599px) {
  .planet {
    display: none;
  }
}

.hint {
  position: absolute;
  right: var(--gut);
  bottom: clamp(30px, 6vh, 64px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hint i {
  width: 1px;
  height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  display: block;
}

.hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  animation: trace 2.2s linear infinite;
}

@keyframes trace {
  0% {
    transform: translateY(-100%)
  }

  100% {
    transform: translateY(100%)
  }
}

@media (max-width:859px) {
  .hint {
    display: none;
  }
}

/* ---------- reel orizzontale ---------- */
.reel {
  position: relative;
  padding-block: clamp(50px, 8vh, 90px);
}

.reel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: clamp(26px, 4vh, 52px);
}

.reel-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
  padding-left: var(--gut);
  will-change: transform;
}

.card {
  flex: none;
  width: min(78vw, 520px);
  text-decoration: none;
  display: block;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
}

.card-media.flat {
  aspect-ratio: 16/9;
}

.card-media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.card-media.flat img {
  width: 100.5%;
  height: 100.5%;
  margin: -0.25%;
  object-fit: cover;
}

.card-media .tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  font-size: 1.4rem;
  letter-spacing: -.02em;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-d);
  opacity: 0;
  transition: opacity .6s var(--e);
}

.card:hover .card-media::after {
  opacity: 0.3;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
}

.card h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  text-transform: none;
  transition: color .5s var(--e);
}

.card:hover h3 {
  color: var(--teal);
}

.card .go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  font-size: .9rem;
  transition: background .5s var(--e), border-color .5s var(--e), color .5s var(--e);
}

.card:hover .go {
  background: var(--grad);
  border-color: transparent;
  color: var(--navy);
}

@media (max-width:899px) {
  .reel-track {
    flex-direction: column;
    padding-right: var(--gut);
    gap: 34px;
  }

  .card {
    width: 100%;
  }

  .card-media {
    aspect-ratio: 3/2;
  }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 18px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 50%, var(--navy) 100%);
  transform: rotate(-1deg);
  border-bottom: 2px solid var(--mint);
  border-top: 2px solid var(--mint);
  box-shadow: 0 0 1rem #00000066;
  position: relative;
  z-index: 1;
}

.marquee-in {
  display: flex;
  gap: 38px;
  width: max-content;
  will-change: transform;
}

.marquee span {
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee span::after {
  content: "·";
  margin-left: 38px;
  color: var(--grey);
}

/* ---------- contatti ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(70px, 13vh, 170px);
}

.mail {
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-size: clamp(1.9rem, 6.6vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.mail .in,
.mail .out {
  display: block;
  transition: transform .6s var(--e);
}

.mail .out {
  position: absolute;
  inset: 0;
  transform: translateY(102%);
}

.mail:hover .in {
  transform: translateY(-102%);
}

.mail:hover .out {
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 13px 26px;
  font-size: .92rem;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn i {
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .55s var(--e);
}

.btn span {
  position: relative;
  z-index: 1;
  transition: color .4s var(--e);
}

.btn:hover i {
  transform: translateY(0);
}

.btn:hover span {
  color: var(--navy);
}

.nav-cta {
  padding: 10px 22px;
  font-size: .84rem;
  font-weight: 600;
  /* niente gradiente qui: questo elemento ha will-change:transform (per il magnete JS),
     e un background sfumato su un layer composito con border-radius crea un filo visibile
     del colore all'angolo. Il gradiente vive invece su .nav-cta i, che sta fermo. */
  background: transparent;
  border-color: transparent;
  transition: filter .3s var(--e);
}

.nav-cta:hover {
  filter: brightness(1.1);
}

.nav-cta i {
  display: block;
  background: linear-gradient(90deg, var(--mint) 0%, var(--teal) 46%, var(--blue) 100%);
  transform: none;
}

.nav-cta span,
.nav-cta:hover span {
  color: var(--white);
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}

.foot-row a {
  text-decoration: none;
  color: var(--grey);
}

.foot-row a:hover {
  color: var(--white);
}

/* ---------- pagina progetto ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

.case-hero {
  padding-top: clamp(130px, 17vh, 220px);
}

.case-title {
  font-size: clamp(2.4rem, 7.6vw, 6.4rem);
  text-transform: none;
}

.cover {
  margin-top: clamp(28px, 5vh, 60px);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: var(--brand, var(--navy-l));
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(40px, 7vh, 100px);
  margin-bottom: clamp(40px, 7vh, 100px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(113, 181, 156, .06);
}

.disclaimer i {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--mint);
  border-radius: 50%;
}

.disclaimer i::before {
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  font-style: normal;
  color: var(--mint);
}

.disclaimer p {
  margin: 0;
  max-width: unset;
  color: var(--grey);
  font-size: .88rem;
  line-height: 1.55;
}

.cover img {
  width: 100%;
  height: 122%;
  object-fit: cover;
  will-change: transform;
}

.cover.flat img {
  width: 100.5%;
  height: 100.5%;
  margin: -0.25%;
  object-fit: cover;
}

.cover .tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  letter-spacing: -.02em;
  padding: 24px;
}

.facts {
  display: grid;
  gap: 20px 32px;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line);
  padding-block: 24px;
}

@media (min-width:860px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.facts dt {
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 400;
}

.two {
  display: grid;
  gap: clamp(22px, 4vw, 70px);
  border-block-end: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width:900px) {
  .two {
    grid-template-columns: 1fr 1.3fr;
  }
}

.two h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
}

.did {
  list-style: none;
  margin: 0;
  padding: 0;
}

.did li {
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--grey);
  max-width: 62ch;
}

.did li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5em;
  width: 14px;
  height: 2px;
  background: var(--grad);
}

.gallery {
  display: grid;
  gap: clamp(10px, 1.4vw, 22px);
  grid-template-columns: repeat(2, 1fr);
  margin-block: clamp(40px, 7vh, 100px);
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-l);
}

.gallery img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  aspect-ratio: 4/3;
  will-change: transform;
}

.gallery .tall {
  grid-column: span 2;
}

@media (min-width:860px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery figure {
    grid-column: span 2;
  }

  .gallery .tall {
    grid-column: span 3;
  }

  .gallery img {
    aspect-ratio: 3/2;
  }
}

.next {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 8vh, 110px);
}

.next .h2 {
  transition: transform .6s var(--e);
  text-transform: none;
}

.next:hover .h2 {
  transform: translateX(clamp(8px, 1.6vw, 30px));
}

.back {
  text-decoration: none;
  color: var(--grey);
  font-size: .9rem;
}

.back:hover {
  color: var(--white);
}

/* ---------- pagine legali (privacy, cookie policy, ecc.) ---------- */
.legal-hero {
  padding-block: clamp(130px, 17vh, 200px) 0;
}

.legal-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.legal-content h2 {
  margin-top: clamp(36px, 5vh, 56px);
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.15rem;
  text-transform: none;
}

.legal-content p,
.legal-content li {
  max-width: none;
  color: var(--grey);
  font-size: .98rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.05em;
  padding-left: 1.3em;
}

.legal-content li {
  margin-bottom: .5em;
}

.legal-content li::marker {
  color: var(--mint);
}

.legal-content a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--teal);
}

.legal-content strong {
  color: var(--white);
  font-weight: 500;
}

.legal-content table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: .9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--grey);
  text-align: left;
}

.legal-content th {
  color: var(--white);
  font-weight: 500;
}

/* ---------- motion ridotto ---------- */
@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .loader,
  .panels,
  .cursor {
    display: none !important;
  }

  .hero h1 .c {
    transform: none !important;
    opacity: 1 !important;
  }

}

/* ---------- screenshot mockup (pagine progetto) ---------- */
.shots {
  column-count: 1;
  column-gap: clamp(14px, 2vw, 26px);
  margin-block: clamp(40px, 7vh, 100px);
}

@media (min-width:620px) {
  .shots {
    column-count: 2;
  }
}

@media (min-width:1000px) {
  .shots {
    column-count: 3;
  }
}

.shots figure {
  margin: 0 0 clamp(14px, 2vw, 26px);
  break-inside: avoid;
}

.shot-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, .55);
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-bar {
  height: 32px;
  background: #eef1f4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
  background: #d5d9de;
}

.shot-bar i:nth-child(1) {
  background: #ff5f57;
}

.shot-bar i:nth-child(2) {
  background: #febc2e;
}

.shot-bar i:nth-child(3) {
  background: #28c840;
}

.shot-bar span {
  margin-left: 10px;
  flex: 1;
  max-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 4px 0;
  text-align: center;
  font-size: 10.5px;
  color: #8b95a1;
}

.shot-phone {
  max-width: 260px;
  margin-inline: auto;
  background: #0e1b2a;
  border-radius: 26px;
  padding: 9px;
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, .55);
}

.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.shot-plain {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, .55);
}

/* ---------- biglietto da visita digitale (NFC / QR) ---------- */
.vcard-page {
  display: flex;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(48px, 8vh, 90px) 24px;
  background: var(--navy);
  overflow-x: hidden;
}

.vcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.vcard-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy-l);
  object-fit: contain;
}

.vcard-name {
  margin-top: 22px;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 500;
  text-transform: none;
}

.vcard-role {
  margin: 6px 0 0;
  color: var(--grey);
  font-size: .95rem;
}

.vcard-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  border-radius: 100px;
  background: var(--grad);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.vcard-save svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.vcard-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}

.vcard-share svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--mint);
}

.vcard-share:hover,
.vcard-share:active {
  background: rgba(113, 181, 156, .1);
  border-color: rgba(113, 181, 156, .4);
}

.vcard-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.vcard-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--white);
  text-decoration: none;
  font-size: .86rem;
  transition: background .3s var(--e), border-color .3s var(--e);
}

.vcard-action svg {
  width: 22px;
  height: 22px;
  color: var(--mint);
}

.vcard-action:hover,
.vcard-action:active {
  background: rgba(113, 181, 156, .1);
  border-color: rgba(113, 181, 156, .4);
}

.vcard-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--grey);
  text-decoration: none;
  font-size: .9rem;
}

.vcard-social svg {
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.vcard-social:hover {
  color: var(--white);
}

.vcard-portfolio {
  margin-top: 18px;
  color: var(--mint);
  text-decoration: none;
  font-size: .9rem;
}

.vcard-portfolio:hover {
  color: var(--teal);
}

.vcard-foot {
  margin: clamp(40px, 8vh, 64px) 0 0;
  color: var(--grey-d);
  font-size: .74rem;
  letter-spacing: .04em;
}

.vcard-foot + .vcard-foot {
  margin-top: 6px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(110px, 16vh, 150px) clamp(60px, 10vh, 100px);
}

.notfound .tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 3.4vh, 34px);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(113, 181, 156, .4);
  background: rgba(113, 181, 156, .12);
  color: var(--mint);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.notfound .code {
  margin: 0;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: .9;
}

.notfound h1.h2 {
  margin-top: 10px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(28px, 4vh, 40px);
}

.shot-plain img {
  display: block;
  width: 100%;
  height: auto;
}