@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f3f3ee;
  --paper-card: #e8e9e1;
  --paper-hover: #dedfd6;
  --paper-light: #fafaf8;
  --ink: #1d1e1a;
  --ink-soft: #33342e;
  --muted: #61625b;
  --line: #c8c9c1;
  --line-light: #dcddd5;
  --accent: #552080;
  --accent-hover: #401560;
  --accent-glow: rgba(85, 32, 128, 0.2);
  --purple: #6b2fa0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Manrope', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --mx: 50%;
  --my: 50%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--paper);
}

/* ── Custom Desktop Lateral Scrollbar ── */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: #b5b6ad;
  border-radius: 999px;
  border: 2px solid var(--paper);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-hover);
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--purple);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Progress bar at top ── */
.page-progress {
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  width: 0;
  z-index: 100;
  transition: width 0.08s ease-out;
}

/* ── Accessibility skip link ── */
.skip {
  position: fixed;
  left: 20px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 700;
  transition: top 0.2s;
}
.skip:focus {
  top: 15px;
}

/* ── Header & Navigation ── */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 243, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}

.nav {
  max-width: 1560px;
  margin: auto;
  padding: 16px 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  transition: opacity 0.2s;
}
.brand:hover {
  opacity: 0.85;
}

.mark {
  width: 34px;
  height: 34px;
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  background: var(--paper-light);
  box-shadow: 1px 2px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.brand:hover .mark {
  transform: translateY(-1px);
  box-shadow: 1px 3px 0 var(--ink);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
}

.navlinks a {
  padding: 8px 0;
  position: relative;
  color: var(--muted);
  transition: color 0.2s;
}
.navlinks a:hover {
  color: var(--ink);
}
.navlinks a[aria-current=page] {
  color: var(--ink);
}
.navlinks a[aria-current=page]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.menu {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.menu:hover {
  border-color: var(--ink);
  background: var(--paper-card);
}

/* ── Buttons ── */
.btn {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: translateY(0);
}

.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.outline:hover {
  background: var(--ink);
  color: #fff;
}

.nav > .btn {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
}

/* ── Layout & Typography ── */
.wrap {
  max-width: 1560px;
  margin: auto;
  padding-left: 4.5%;
  padding-right: 4.5%;
}

h1, h2, h3, p {
  margin: 0;
}

h1, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(74px, 8.5vw, 136px);
  line-height: 0.91;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--accent);
  background: rgba(85, 32, 128, 0.08);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ── SPA Views ── */
.page-view {
  display: none;
  animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-view.active {
  display: block;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  height: calc(100svh + 1100px);
  min-height: 1500px;
  padding-top: 0;
  overflow: clip;
}

.hero-stage {
  position: sticky;
  top: 80px;
  height: calc(100svh - 80px);
  min-height: 560px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
}

.hero-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  position: relative;
}

.hero-copy {
  z-index: 2;
  position: relative;
  align-self: center;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}

.hero-copy p {
  max-width: 380px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.hero-art {
  position: relative;
  margin-left: -70px;
  margin-right: -45px;
  width: calc(100% + 115px);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: none !important;
  transition: none;
}

.laptop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  background: transparent;
  isolation: isolate;
  transform: translateY(calc(var(--p, 0) * 18%));
}

.assembly-layer {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
}

.laptop-frame .assembly-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 1;
  filter: none;
  mask-image: none;
  transform-origin: 0 0;
  will-change: transform;
}

.assembly-screen {
  clip-path: polygon(39% 0, 87% 0, 87% 39%, 78% 39%, 38% 32%);
}
.assembly-deck {
  clip-path: polygon(14.4% 42.7%, 35% 33.5%, 77.2% 41.2%, 77.2% 42.2%, 56.8% 54.1%, 14.4% 44%);
}
.assembly-base {
  clip-path: polygon(14.1927% 75.8789%, 34.7005% 65.8203%, 80.0781% 77.1484%, 80.0781% 78.2227%, 58.6589% 98.1445%, 14.1927% 77.8320%);
}
.assembly-board {
  clip-path: polygon(15% 58%, 35% 51%, 55% 55%, 77% 54%, 80% 61%, 62% 73%, 15% 61%);
}

.hero .interactive-bg {
  display: none;
}

/* ── Content Sections ── */
.section {
  padding-top: 110px;
  padding-bottom: 110px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

.section h2, .page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 92px);
  line-height: 0.96;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-head > p {
  align-self: end;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

/* ── Service rows on Homepage ── */
.service-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 1.5fr 50px;
  gap: 25px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 32px 16px;
  border-radius: var(--radius-md);
  transition: padding-left 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.service-row:last-child {
  border-bottom: 1px solid var(--line);
}
.service-row:hover {
  background: var(--paper-card);
  padding-left: 24px;
}

.service-row .num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.service-row h3 {
  font-size: 26px;
  letter-spacing: -0.6px;
  font-weight: 800;
}

.service-row p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.service-row .plus {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  background: var(--paper-light);
  color: var(--ink);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.service-row:hover .plus {
  transform: rotate(90deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.section-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

/* ── Manifesto Section (Dark) ── */
.manifesto {
  background: #1e1f1c;
  color: #f3f3ee;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8%;
  align-items: center;
}

.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(64px, 7.5vw, 114px);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #f3f3ee;
}
.manifesto h2 span {
  color: var(--purple);
}

.manifesto p {
  color: #c4c5bd;
  line-height: 1.8;
  font-size: 16px;
  margin: 22px 0;
}

.manifesto .label {
  color: var(--purple);
  background: rgba(107, 47, 160, 0.12);
}

.manifesto .btn {
  background: #f3f3ee;
  color: #1e1f1c;
  border-color: #f3f3ee;
}
.manifesto .btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.repair-line {
  width: 100%;
  height: 3px;
  background: #393a34;
  position: relative;
  margin-top: 40px;
  border-radius: 2px;
  overflow: hidden;
}
.repair-line::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  width: var(--progress, 0%);
  transition: width 0.15s ease-out;
}

/* ── FAQ Section ── */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10%;
}

.faq-layout h2 {
  font-size: clamp(48px, 5.5vw, 76px);
}

details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  transition: background 0.2s;
}
details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 17px;
  user-select: none;
}
summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-card);
  flex-shrink: 0;
}
details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--ink);
  color: #fff;
}

details p {
  margin-top: 16px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 15px;
  max-width: 650px;
}

/* ── Closing Callout ── */
.closing {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(42px, 5.5vw, 84px);
  line-height: 0.98;
}

/* ── Footer ── */
.footer {
  --footer-muted: #b9bbb0;
  --footer-line: #44463d;
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 128px);
  padding-bottom: 48px;
}
.footer .brand { color: var(--paper); width: fit-content; }
.footer .mark {
  background: transparent;
  border-color: var(--paper);
  box-shadow: none;
  color: var(--paper);
}
.footer-identity h2 {
  margin: 30px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.footer-identity h2 > span { color: #b598cd; }
.footer-reach { align-self: center; min-width: 0; }
.footer-label { margin: 0 0 16px; color: var(--footer-muted); font-size: 13px; font-weight: 600; }
.footer-contact-link {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--footer-line);
}
.footer-contact-link:last-of-type { border-bottom: 1px solid var(--footer-line); }
.footer-contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #65685a;
  border-radius: 50%;
  transition: background-color 160ms, border-color 160ms;
}
.footer-contact-link svg, .footer-area svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact-link .footer-whatsapp-icon { fill: currentColor; stroke: none; }
.footer-contact-link--whatsapp .footer-contact-icon { color: #a8d7aa; }
.footer-contact-copy { display: grid; gap: 7px; }
.footer-contact-copy strong { font-size: clamp(17px, 1.65vw, 23px); line-height: 1.4; font-weight: 600; }
.footer-contact-copy > span { color: var(--footer-muted); font-size: 13px; line-height: 1.5; }
.footer-contact-link .footer-contact-arrow { width: 20px; height: 20px; color: var(--footer-muted); }
.footer-contact-link:hover .footer-contact-icon,
.footer-contact-link:active .footer-contact-icon { background: #35372f; border-color: var(--paper); }
.footer-contact-link:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.footer :focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
.footer-extra { color: var(--footer-muted); font-size: 13px; line-height: 1.7; margin: 12px 0 0; }
.footer-area { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-top: 1px solid var(--footer-line); }
.footer-area svg { flex-shrink: 0; color: var(--footer-muted); }
.footer-area p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.7; }
.footer-area p > span { margin-left: 16px; color: var(--footer-muted); font-weight: 400; }
.footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--footer-muted);
  font-size: 12px;
}
.footer-bottom button {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom button:hover { color: var(--paper); }
@media (max-width: 760px) {
  .footer { padding-top: 40px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .footer-identity h2 { margin-top: 24px; }
  .footer-contact-link { padding: 20px 0; gap: 14px; }
  .footer-area { align-items: flex-start; }
  .footer-area p > span { display: block; margin: 3px 0 0; }
  .footer-bottom { gap: 8px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-contact-icon { transition: none; }
}

/* ── Page: Servizi ── */
.page-title {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  font-size: clamp(68px, 8vw, 118px);
}

.page-title p {
  margin-top: 22px;
  max-width: 600px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 16px;
}

.service-detail {
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr;
  gap: 40px;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-detail .num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.service-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-detail p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 15px;
}

.service-detail ul {
  padding-left: 20px;
  margin: 0 0 28px;
  line-height: 2.1;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

.service-detail .btn {
  min-height: 44px;
  padding: 12px 22px;
}

/* ── Page: Contatti ── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 7%;
  padding: 56px 0 100px;
  align-items: start;
}

.contact-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.5vw, 62px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.94;
  margin-bottom: 18px;
  font-weight: 700;
}

.intro-lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 0;
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.contact-quick .btn {
  padding: 12px 16px;
}
[hidden] {
  display: none !important;
}

.form {
  background: var(--paper-card);
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
}

.form h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  padding: 13px 15px;
  background: var(--paper-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14.5px;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.field-error {
  color: #7b1f2b;
  font-size: 12px;
  line-height: 1.5;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #7b1f2b;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin: 22px 0;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.check button {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  color: inherit;
  font-weight: 700;
}

.form .btn {
  width: 100%;
}

.form-status {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 18px;
  border-radius: var(--radius-sm);
}
.form-status:empty {
  display: none;
}
.form-status.error {
  color: #552080;
  background: #f3edf8;
  border: 1px solid #d7bce9;
  padding: 14px 18px;
}
.form-status.success {
  border: 1px solid #7ea873;
  padding: 16px 20px;
  background: #eef5eb;
  color: #2b5420;
  font-weight: 600;
}

/* ── Modal Dialog ── */
dialog {
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  max-width: 600px;
  width: calc(100% - 32px);
  padding: 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
dialog::backdrop {
  background: rgba(29, 30, 26, 0.65);
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
dialog p {
  font-size: 14.5px;
  line-height: 1.8;
  margin: 15px 0;
  color: var(--ink-soft);
}
dialog .btn {
  margin-top: 20px;
}

/* ── Scroll reveals & Page transitions ── */
.reveal {
  opacity: 1;
  transform: none;
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Fluid Page Transitions ── */
@keyframes pageEnter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-sheet {
  position: fixed;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body.leaving .transition-sheet {
  opacity: 0.65;
  pointer-events: all;
}

body.leaving main,
body.leaving footer {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body.leaving .page-progress {
  width: 100% !important;
  opacity: 1 !important;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── Responsive adjustments ── */
@media (min-width: 1700px) {
  .hero-main {
    min-height: 640px;
  }
}

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    min-height: 700px;
  }
  .hero-art {
    margin-left: -65px;
    margin-right: -35px;
    width: calc(100% + 100px);
  }
  .hero h1 {
    font-size: 88px;
  }
  .navlinks {
    gap: 20px;
  }
  .nav > .btn {
    display: none;
  }
  .section-head {
    gap: 35px;
  }
  .manifesto-inner {
    gap: 7%;
  }
  .service-detail {
    grid-template-columns: 50px 1fr 1fr;
    gap: 25px;
  }
  .contact-grid {
    gap: 6%;
  }
  .form {
    padding: 28px;
  }
}

@media (max-width: 650px) {
  .nav {
    padding: 16px 5%;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 21px;
  }
  .menu {
    display: block;
    min-height: 42px;
  }
  .navlinks {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 6px;
    gap: 12px;
  }
  .navlinks.open {
    display: flex;
  }
  .wrap {
    padding-left: 5%;
    padding-right: 5%;
  }
  .hero {
    height: calc(100svh + 400px);
    min-height: 860px;
  }
  .hero-stage {
    top: 76px;
    height: auto;
    min-height: calc(100svh - 76px);
    padding-top: 20px;
  }
  .hero-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 20px;
    align-items: stretch;
  }
  .hero-copy {
    align-self: auto;
  }
  .hero h1 {
    font-size: clamp(72px, 17vw, 100px);
  }
  .hero-copy p {
    max-width: 310px;
    font-size: 15px;
    margin-top: 18px;
  }
  .hero-art {
    flex: none;
    margin: 0 -4%;
    width: 108%;
  }
  .laptop-frame {
    transform: translateY(calc(var(--p, 0) * 6%));
  }
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 32px;
  }
  .section h2 {
    font-size: 56px;
  }
  .section-head > p {
    font-size: 15px;
  }
  .service-row {
    grid-template-columns: 35px 1fr 38px;
    gap: 14px;
    padding: 24px 8px;
  }
  .service-row h3 {
    font-size: 21px;
  }
  .service-row p {
    grid-column: 2;
    grid-row: 2;
    font-size: 13.5px;
  }
  .service-row .plus {
    grid-column: 3;
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
  }
  .manifesto {
    padding: 70px 0;
  }
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .manifesto h2 {
    font-size: 68px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .faq-layout h2 {
    font-size: 52px;
  }
  .closing {
    align-items: flex-start;
    flex-direction: column;
    padding: 45px 0;
  }
  .closing h2 {
    font-size: 52px;
  }

  .page-title {
    padding: 45px 0 35px;
  }
  .page-title h1 {
    font-size: clamp(42px, 9vw, 74px);
    overflow-wrap: anywhere;
  }
  .service-detail {
    grid-template-columns: 36px 1fr;
    gap: 20px;
    padding: 38px 0;
  }
  .service-detail > div:last-child {
    grid-column: 2;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 35px;
  }
  .form {
    padding: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding-bottom: 40px;
  }
  .laptop-frame {
    transform: translateY(10%);
  }
}
