:root {
  /* Sfondi: carta calda, off-white, leggermente avorio per non avere il bianco "ospedaliero" */
  --paper-100:  #faf8f3;   /* sfondo principale - off-white caldo */
  --paper-200:  #f4f1ea;   /* card / sezioni leggermente più gialle */
  --paper-300:  #ebe7dd;   /* bordi e linee */
  --paper-400:  #d8d2c4;   /* divider, accenti tenui */

  /* Inchiostro - neri profondi del logo */
  --ink-1000: #06090c;
  --ink-900:  #0d1316;     /* nero del logo light */
  --ink-700:  #2a3138;
  --ink-500:  #4a5260;
  --ink-400:  #6a7280;
  --ink-300:  #8a929e;     /* mute / metadati */

  /* Un solo accento blu Azure SOFT, dosato con grande parsimonia */
  --azure:      #2b6cb0;
  --azure-soft: rgba(43,108,176,0.08);

  --line:     rgba(13,19,22,0.08);
  --line-2:   rgba(13,19,22,0.14);

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body:    "Inter Tight", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--paper-100);
  color: var(--ink-900);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--ink-900); color: var(--paper-100); }
a { color: inherit; text-decoration: none; }

/* ========== BACKGROUND: carta sobria con micro-dettagli ========== */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 30%, rgba(216,210,196,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 18% 80%, rgba(43,108,176,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 85% 78%, rgba(43,108,176,0.03) 0%, transparent 70%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* ========== BLOB MONOGRAMMA (solo desktop) ========== */
.blob-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.blob-active .blob-svg { opacity: 1; }
@media (hover: none) {
  .blob-svg { display: none !important; }
}

/* ========== LAYOUT ========== */
.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.75rem clamp(1.5rem, 4vw, 4rem);
}

/* ---------- HEADER ---------- */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.7s 0.1s forwards;
  margin: -1.75rem calc(clamp(1.5rem, 4vw, 4rem) * -1) 0;
  padding: 0.85rem clamp(1.5rem, 4vw, 4rem) 0.7rem;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease,
              backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease,
              border-color 0.35s ease;
}
.head.scrolled {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.head-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.head .eyebrow {
  animation: none;
  opacity: 1;
}
.head .eyebrow::before,
.head .eyebrow::after { display: none; }
@media (max-width: 720px) {
  .head .eyebrow { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0 clamp(2.5rem, 5vh, 4rem);
  gap: clamp(2.2rem, 5vh, 3.5rem);
  position: relative;
}
.hero-intro {
  min-height: 100vh;
  margin-top: calc(-1 * (0.85rem + 40px + 0.7rem));
  display: grid;
  grid-template-rows: 1fr auto auto auto 1fr;
  row-gap: clamp(0.8rem, 2vh, 1.6rem);
  align-items: center;
  justify-items: center;
  width: 100%;
}
.hero-intro > .logo-stage     { grid-row: 2; }
.hero-intro > .stack-divider  { grid-row: 3; }
.hero-intro > .brands-hero    { grid-row: 4; width: 100%; max-width: 1080px; }

/* Divider con label tra logo e stack tecnologico */
.stack-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 720px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  opacity: 0;
  animation: fadeIn 0.9s 1.15s forwards;
}
.stack-divider::before,
.stack-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-400) 30%, var(--paper-400) 70%, transparent);
}
.stack-divider-text {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-300);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azure);
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure));
  opacity: 0.5;
}
.eyebrow::after {
  background: linear-gradient(90deg, var(--azure), transparent);
}

/* === LOGO MONOCROMATICO PROTAGONISTA === */
.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 780px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  opacity: 0;
  animation: logoEnter 1.4s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.logo-stage::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 75%; height: 280%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(216,210,196,0.55) 0%,
    rgba(216,210,196,0.20) 35%,
    transparent 65%);
  filter: blur(50px);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}
.logo-svg {
  display: block;
  flex: 0 1 480px;
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 24vh;
  filter: drop-shadow(0 20px 50px rgba(13,19,22,0.10));
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.logo-svg .logo-axis { fill: var(--azure); }

/* Side line ai lati del logo (in-flow, mai sovrapposte) */
.logo-stage .side-line {
  flex: 1 1 0;
  min-width: 30px;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-400));
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.logo-stage .side-line.right {
  background: linear-gradient(90deg, var(--paper-400), transparent);
}
@media (max-width: 480px) {
  .logo-stage .side-line { display: none; }
}

/* === CLAIM === */
.claim { max-width: 820px; padding: 0 1rem; }

.headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin-bottom: 1.5rem;
}
.headline .reveal { display: block; overflow: hidden; padding: 0.05em 0; }
.headline .reveal > span {
  display: block;
  transform: translateY(110%);
  animation: revealUp 0.95s forwards cubic-bezier(0.2, 0.85, 0.2, 1);
}
.headline .reveal:nth-of-type(1) > span { animation-delay: 0.9s; }
.headline .reveal:nth-of-type(2) > span { animation-delay: 1.05s; }

.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--azure);
  position: relative;
}

.lede {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--ink-500);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.8s 1.45s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* === COMPETENZE: griglia di card === */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 1080px;
  opacity: 0;
  animation: fadeUp 0.9s 1.7s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .services { grid-template-columns: repeat(4, 1fr); }
}

.service {
  position: relative;
  text-align: left;
  padding: 1.65rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-200);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 16px 40px rgba(13,19,22,0.06);
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--ink-700) 30%, var(--ink-900) 50%,
    var(--ink-700) 70%, transparent 100%);
  opacity: 0.7;
}

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.service-num {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.service-icon {
  width: 26px; height: 26px;
  color: var(--ink-700);
  flex-shrink: 0;
}
.service-icon-duo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 26px;
  color: var(--ink-700);
  flex-shrink: 0;
}
.service-icon-duo svg {
  width: 22px;
  height: 22px;
  display: block;
}
.service-icon-duo svg + svg {
  border-left: 1px solid var(--line-2);
  padding-left: 8px;
  width: 30px;
  box-sizing: content-box;
}
.service-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 0.55rem;
}
.service-desc {
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.service-tag {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper-100);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.service:hover .service-tag {
  color: var(--ink-900);
  border-color: var(--ink-700);
  background: var(--paper-100);
}

/* === Competenze: griglia 3x2 sui breakpoint grandi === */
@media (min-width: 1080px) {
  .services.services-extended { grid-template-columns: repeat(3, 1fr); }
}
.services.services-extended {
  opacity: 1;
  animation: none;
}

/* === SECTION GENERIC === */
.section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5rem) 0 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azure);
}
.section-eyebrow::before, .section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure));
  opacity: 0.5;
}
.section-eyebrow::after {
  background: linear-gradient(90deg, var(--azure), transparent);
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  max-width: 36rem;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--azure);
}
.section-lede {
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 38rem;
}

/* === STACK TECNOLOGICO (brand strip) === */
.brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-200);
  overflow: hidden;
}
.brands-hero {
  opacity: 0;
  animation: fadeUp 0.9s 1.3s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 720px) {
  .brands { grid-template-columns: repeat(5, 1fr); }
}
/* Solo su mobile (2 col): se l'ultimo brand è dispari, occupa la riga intera */
@media (max-width: 719px) {
  .brands > .brand:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.35rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  transition: color 0.4s, background 0.4s;
}
.brand:nth-child(2n) { border-right: none; }
@media (min-width: 720px) {
  .brand:nth-child(2n) { border-right: 1px solid var(--line); }
  .brand:nth-child(5n) { border-right: none; }
}
.brand:hover {
  color: var(--azure);
  background: var(--paper-100);
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: currentColor;
  display: block;
}
.brand-name {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: currentColor;
}
.brand-sub {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-300);
}

/* === PACCHETTI / SERVIZI === */
.packages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}
@media (min-width: 720px) {
  .packages { grid-template-columns: repeat(2, 1fr); }
}
.package {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-200);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s, box-shadow 0.4s;
}
.package:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 16px 40px rgba(13,19,22,0.06);
}
.package-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.package-num {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
}
.package-duration {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.package-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 0.6rem;
}
.package-desc {
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.package-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.package-deliverables li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-700);
  line-height: 1.45;
}
.package-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 1px;
  background: var(--azure);
}

/* === COME LAVORO (4 step) === */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  position: relative;
  padding: 1.5rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-100);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--azure);
  margin-bottom: 0.6rem;
}
.step-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}
.step-desc {
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* === CASI TIPICI === */
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}
@media (min-width: 720px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
}
.case {
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-200);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s, box-shadow 0.4s;
}
.case:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 14px 30px rgba(13,19,22,0.05);
}
.case-meta {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.case-meta span + span::before {
  content: "·";
  margin-right: 1rem;
  color: var(--paper-400);
}
.case-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-900);
  margin-bottom: 0.55rem;
  letter-spacing: -0.005em;
}
.case-desc {
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* === GARANZIE / Perché Arkhelix === */
.guarantees {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 1080px;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-200);
}
@media (min-width: 720px) {
  .guarantees { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.75rem 2rem; }
}
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.guarantee-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--azure);
  margin-top: 0.1rem;
}
.guarantee-text strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
  letter-spacing: -0.005em;
}
.guarantee-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
  line-height: 1.45;
}

/* === FORM RICHIESTA PREVENTIVO === */
.quote-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 1.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-200);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field-full { grid-column: 1 / -1; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}
.field label {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  transition: color 0.25s ease;
}
.field label .req { color: var(--azure); }
.field:focus-within label {
  color: var(--azure);
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper-100);
  width: 100%;
  transition: border-color 0.25s ease,
              box-shadow 0.3s ease,
              background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-300);
  opacity: 1;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-700);
}
.field select {
  /* Chevron minimal "v" — più elegante del triangolo pieno */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a5260' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232a3138' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.field select:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232b6cb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--ff-body);
  line-height: 1.55;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 4px rgba(43,108,176,0.10),
              0 1px 2px rgba(13,19,22,0.04);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-500);
  line-height: 1.5;
}
.form-consent input { margin-top: 0.18rem; flex-shrink: 0; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.btn-submit {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-100);
  background: var(--ink-900);
  border: 1px solid var(--ink-900);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn-submit:hover {
  background: var(--azure);
  border-color: var(--azure);
  transform: translateY(-1px);
}
.field-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* === CONTACT === */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 6vh, 5rem);
  opacity: 0;
  animation: fadeUp 0.8s 1.95s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.contact-email {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--ink-900);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.35rem;
  transition: color 0.3s;
}
.contact-email::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink-900);
  transform-origin: center;
  transform: scaleX(0.4);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact-email:hover { color: var(--azure); }
.contact-email:hover::after {
  transform: scaleX(1);
  background: var(--azure);
}

/* ---------- FOOTER ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s 2.2s forwards;
}
.foot .scan {
  flex: 1;
  min-width: 60px;
  height: 1px;
  opacity: 0.4;
  position: relative;
  overflow: hidden;
}
.foot .scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 35%, var(--ink-700) 50%, transparent 65%);
  animation: scan 5s linear infinite;
}
.foot a:hover { color: var(--azure); transition: color 0.3s; }
.foot-meta { display: flex; gap: 1.25rem; align-items: center; }

@media (max-width: 720px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .foot .scan { width: 100%; }
}

/* ========== KEYFRAMES ========== */
@keyframes fadeIn   { to { opacity: 1; } }
@keyframes fadeUp   {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealUp { to { transform: translateY(0); } }
@keyframes logoEnter {
  from { opacity: 0; transform: scale(0.92); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}
@keyframes breathe  {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes pulse    {
  0%, 100% { box-shadow: 0 0 8px rgba(43,108,176,0.5);  opacity: 1; }
  50%      { box-shadow: 0 0 16px rgba(43,108,176,0.7); opacity: 0.55; }
}
@keyframes scan {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
