@import url('../fonts/fonts.css');

/* =========================================================
   ARMEL DIGITAL SOLUTIONS — DESIGN SYSTEM
   Vanilla CSS · single source of truth
   1. Tokens   2. Base   3. Typography   4. Header/Nav
   5. Buttons  6. Hero    7. Layout       8. Components
   9. Sections 10. Footer 11. Motion      12. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  /* palette */
  --ink: #08323d;
  --ink-soft: #2b5a66;
  --muted: #5f818b;
  --paper: #ffffff;
  --bg: #f1fafc;
  --bg-2: #e4f4f8;
  --aqua: #0fa3ba;
  --aqua-bright: #16c0d6;
  --teal-deep: #0a4456;
  --coral: #ff7a4d;
  --coral-deep: #f1602f;

  /* surfaces */
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --line: rgba(8, 50, 61, .12);
  --line-strong: rgba(8, 50, 61, .24);

  /* gradients */
  --grad-primary: linear-gradient(135deg, #16c0d6 0%, #0e8ea4 55%, #0a4456 100%);
  --grad-deep: linear-gradient(150deg, #0a4456 0%, #062d3a 100%);

  /* radii */
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 8px 24px rgba(8, 50, 61, .08);
  --shadow: 0 22px 60px rgba(8, 50, 61, .12);
  --shadow-lg: 0 40px 90px rgba(8, 50, 61, .20);
  --ring: 0 0 0 4px rgba(15, 163, 186, .22);

  /* layout */
  --max: 1200px;
  --gutter: 22px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(22, 192, 214, .28) 0%, transparent 52%),
    radial-gradient(90% 60% at 5% 12%, rgba(120, 210, 230, .26) 0%, transparent 50%),
    radial-gradient(80% 60% at 70% 100%, rgba(15, 163, 186, .18) 0%, transparent 55%),
    linear-gradient(180deg, #f7fdfe 0%, #ecf8fb 45%, #ddf2f7 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--aqua-bright); color: #fff; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-shell { min-height: 100vh; position: relative; }
.container { width: min(calc(100% - (var(--gutter) * 2)), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - (var(--gutter) * 2)), 880px); margin: 0 auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aqua);
}
.kicker::before {
  content: '';
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.03em;
}
.title-xl {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.title-lg {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.title-md {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lead {
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.text-muted { color: var(--muted); }
.text-soft { color: var(--ink-soft); }
.small-caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------
   4. HEADER / NAV
   --------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 250, 252, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark,
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  font-family: var(--serif);
  font-size: 17px;
}
.brand-text { display: grid; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.02em;
}
.brand-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transition: width .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { width: 100%; }

.nav-cta {
  border-radius: var(--r-pill);
  padding: 11px 20px !important;
  color: #fff !important;
  font-weight: 600;
  background: var(--grad-primary);
  box-shadow: 0 10px 24px rgba(15, 163, 186, .32);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(15, 163, 186, .42); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  margin: 4px auto;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------- */
.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
    color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  border-color: transparent;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 14px 30px rgba(15, 163, 186, .34);
}
.btn.primary:hover { box-shadow: 0 20px 38px rgba(15, 163, 186, .46); }
.btn.accent {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  box-shadow: 0 14px 30px rgba(241, 96, 47, .32);
}
.btn.accent:hover { box-shadow: 0 20px 38px rgba(241, 96, 47, .44); }
.btn.light { background: var(--paper); border-color: var(--paper); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink-soft); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }

.link-line {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aqua);
  transition: gap .25s var(--ease), color .2s var(--ease);
}
.link-line::after { content: '\2192'; font-size: 15px; }
.link-line:hover { gap: 14px; color: var(--teal-deep); }

/* ---------------------------------------------------------
   6. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 96px 0 56px;
  text-align: center;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 42%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(22, 192, 214, .30) 0%, transparent 60%),
    radial-gradient(50% 40% at 84% 30%, rgba(255, 255, 255, .60) 0%, transparent 64%),
    radial-gradient(46% 38% at 12% 64%, rgba(15, 163, 186, .20) 0%, transparent 58%);
}
.hero > .hero-grid { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: 40px;
  width: 100%;
  justify-items: center;
}
.hero-copy { display: grid; gap: 28px; justify-items: center; max-width: 940px; margin: 0 auto; }
.hero-meta { display: grid; gap: 22px; max-width: 660px; margin: 0 auto; justify-items: center; }
.hero-meta .lead { text-align: center; }
.hero .btn-row { justify-content: center; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.hero-badges span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
}

/* 3D scene (built by main.js) */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--scene-rx, 0deg)) rotateY(var(--scene-ry, 0deg));
  transition: transform .5s var(--ease);
  opacity: 0;
}
body.is-loaded .hero-scene { animation: sceneIn 1.1s var(--ease) forwards; }
.shape-3d { position: absolute; width: 0; height: 0; transform-style: preserve-3d; opacity: 0; }
body.is-loaded .shape-3d { animation: shapeIn .9s var(--ease) forwards; }
.cube {
  position: absolute;
  left: 0; top: 0;
  transform-style: preserve-3d;
  transform: translate3d(-50%, -50%, 0);
  animation: cubeSpin linear infinite;
}
.cube .face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(22, 192, 214, .55);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 192, 214, .20), rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .22);
  backface-visibility: hidden;
}
.ring-3d {
  position: absolute;
  left: 0; top: 0;
  transform: translate3d(-50%, -50%, 0);
  border: 2px solid rgba(15, 163, 186, .35);
  border-radius: 50%;
  box-shadow: 0 0 36px rgba(22, 192, 214, .26), inset 0 0 28px rgba(22, 192, 214, .20);
  background: radial-gradient(circle, rgba(22, 192, 214, .10), transparent 70%);
  animation: ringSpin 26s linear infinite;
}

/* ---------------------------------------------------------
   7. LAYOUT
   --------------------------------------------------------- */
main { overflow: clip; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.tight { padding: clamp(52px, 7vw, 84px) 0; }
.divider { border-top: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.two-col.equal { grid-template-columns: 1fr 1fr; }
.sticky-copy { position: sticky; top: 110px; display: grid; gap: 22px; }

/* ---------------------------------------------------------
   8. COMPONENTS
   --------------------------------------------------------- */

/* service index (home) */
.sticky-lead { margin: 0; max-width: 46ch; color: var(--ink-soft); }
.service-index { list-style: none; margin: 12px 0 0; padding: 0; display: grid; max-width: 480px; }
.service-index li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 8px;
  border-top: 1px solid var(--line);
  transition: padding-left .25s var(--ease), background .25s var(--ease);
}
.service-index li:last-child { border-bottom: 1px solid var(--line); }
.service-index li:hover { padding-left: 14px; background: rgba(15, 163, 186, .04); }
.service-index-num {
  flex: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--aqua);
}
.service-index h3 { margin: 0 0 4px; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.service-index p { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--ink-soft); }

/* generic card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(15, 163, 186, .35); }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-soft); }
.card-index { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* demo cards */
.card.demo-card { cursor: pointer; }
.card.demo-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .5s var(--ease);
}
.card.demo-card:hover .card-img { transform: scale(1.04); }
.card.demo-card .tag {
  display: inline-block;
  margin: 20px 24px 0;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aqua);
}
.card.demo-card > div:last-child { padding: 12px 24px 26px; }
.card.demo-card h3 { font-size: 1.4rem; }
.card.demo-card p { margin-top: 8px; font-size: .94rem; line-height: 1.55; }

/* bento services */
.bento-services {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 400px minmax(280px, 1fr);
  gap: 18px;
  min-height: 720px;
}
.bento-service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: #fff;
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 280px;
  box-shadow: var(--shadow);
}
.bento-service-card.featured { grid-row: 1 / 3; min-height: 100%; align-content: start; gap: 16px; }
.bento-service-card.contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-service-card.contact .bento-copy { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bento-service-card.contact .bento-pills { margin-top: auto; padding-top: 20px; }

.bento-service-card::before {
  content: '';
  position: absolute;
  inset: -34% -14% auto auto;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 192, 214, .34), transparent 68%);
  z-index: 0;
  animation: bentoGlow 9s ease-in-out infinite alternate;
}
.bento-service-card.focus::before {
  inset: auto auto -34% -14%;
  background: radial-gradient(circle, rgba(120, 210, 230, .34), transparent 66%);
}
.bento-service-card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  z-index: 0;
  pointer-events: none;
}
.bento-service-card[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(.98);
  transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.bento-service-card[data-reveal].is-visible { opacity: 1; transform: none; transition-delay: var(--reveal-delay, 0ms); }
.bento-service-card[data-reveal].is-visible:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 192, 214, .45);
  box-shadow: var(--shadow-lg);
}
.bento-service-card .card-index { position: relative; z-index: 2; color: rgba(255, 255, 255, .6); }
.bento-copy { position: relative; z-index: 2; }
.bento-copy h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.02; letter-spacing: -.03em; }
.bento-copy p { margin: 12px 0 0; color: rgba(255, 255, 255, .76); max-width: 42ch; font-size: .96rem; line-height: 1.55; }
.bento-service-card.featured .bento-copy { max-width: 64%; }

.bento-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sq {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
  animation: bentoFloat 7s ease-in-out infinite alternate;
}
.sq-a { width: 74px; height: 74px; top: 9%; right: 11%; }
.sq-b { width: 46px; height: 46px; bottom: 26%; right: 30%; animation-delay: -2.4s; }
.sq-c { width: 30px; height: 30px; top: 44%; right: 7%; animation-delay: -4.2s; }
.bento-service-card.focus .sq-a { right: auto; left: 12%; top: 16%; }
.bento-service-card.focus .sq-b { right: auto; left: 30%; bottom: 30%; }

.bento-device {
  position: absolute;
  right: -7%;
  bottom: -9%;
  width: 62%;
  max-width: 320px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .34);
  overflow: hidden;
  transform: rotate(-6deg);
  transition: transform .6s var(--ease);
}
.bento-service-card.featured[data-reveal].is-visible:hover .bento-device { transform: rotate(-3deg) translateY(-8px); }
.bento-device-top { height: 42px; border-bottom: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.bento-device-top span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .42); }
.bento-device-body { padding: 26px; display: grid; gap: 14px; }
.bento-device-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: .9; letter-spacing: -.04em; }
.bento-device-line { width: 54%; height: 11px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .24); }
.bento-device-line.wide { width: 78%; }

.bento-pills, .bento-orbit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bento-pills span, .bento-orbit span {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.bento-service-card.is-visible .bento-pills span,
.bento-service-card.is-visible .bento-orbit span { opacity: 1; transform: none; }
.bento-service-card.is-visible .bento-pills span:nth-child(2),
.bento-service-card.is-visible .bento-orbit span:nth-child(2) { transition-delay: .12s; }
.bento-service-card.is-visible .bento-pills span:nth-child(3),
.bento-service-card.is-visible .bento-orbit span:nth-child(3) { transition-delay: .24s; }
.bento-service-card:hover .bento-pills span,
.bento-service-card:hover .bento-orbit span { background: rgba(22, 192, 214, .16); border-color: rgba(22, 192, 214, .42); }

/* method (timeline list — pacchetti) */
.method { display: grid; border-top: 1px solid var(--line); }
.method-step {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.method-step:hover { padding-left: 8px; }
.method-step h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.1; letter-spacing: -.02em; }
.method-step p { margin: 0; color: var(--ink-soft); }

/* method intro + track (home) */
.method-intro-title span { display: block; }
.method-intro-highlight { color: var(--aqua); }
.method-track-label { margin: 0 0 20px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.method-track-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.method-track-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.method-track-num { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.2; color: var(--aqua); }
.method-track-step h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.method-track-step p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
@media (hover: hover) { .method-track-step:hover { padding-left: 8px; } }

/* packages / pricing */
.package-list { display: grid; gap: 20px; }
.package {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.package:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.package-pricing { display: flex; flex-direction: column; align-items: flex-start; }
.package.highlight {
  position: relative;
  border: 2px solid rgba(15, 163, 186, .42);
  background: linear-gradient(155deg, rgba(255, 255, 255, .94) 0%, rgba(224, 245, 250, .82) 100%);
  box-shadow: 0 28px 80px rgba(15, 163, 186, .18);
  overflow: hidden;
}
.package.highlight::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-primary);
}
.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-featured { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); box-shadow: 0 6px 18px rgba(241, 96, 47, .3); }

.price-block {
  width: 100%;
  margin: 16px 0 18px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
}
.price-block--featured {
  border-color: rgba(15, 163, 186, .26);
  background: linear-gradient(135deg, rgba(15, 163, 186, .08) 0%, rgba(22, 192, 214, .14) 100%);
}
.price-block .price {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--teal-deep);
}
.price-block--featured .price { font-size: clamp(3rem, 6vw, 4.8rem); color: var(--aqua); }
.price-value { font-variant-numeric: tabular-nums; }
.price-currency { margin-top: .2em; font-family: var(--sans); font-size: .42em; font-weight: 600; color: var(--muted); }
.price-block--featured .price-currency { color: var(--aqua); opacity: .8; }
.price-label { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.package-cta { margin-top: 18px; }

.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: var(--ink-soft); }
.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--aqua);
}

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--glass); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* work cards (lavori) */
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.work-info { order: 1; padding: 28px 28px 24px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.work-info h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: -.02em; }
.work-info p { margin: 0; color: var(--ink-soft); max-width: 680px; }
.work-visual { order: 2; padding: 20px; background: linear-gradient(180deg, #ecf8fa, #d9eef2); }
.work-photo { width: 100%; height: 280px; object-fit: cover; object-position: center top; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 12px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(15, 163, 186, .35); }
.contact-card h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; letter-spacing: -.02em; }
.contact-card p { margin: 10px 0 0; color: var(--ink-soft); }
.contact-card__overlay { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.contact-card p a { position: relative; z-index: 1; }
#armel-email-contact { z-index: 1; cursor: pointer; }

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--aqua); box-shadow: var(--ring); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--coral); }

/* CTA bands */
.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
}
.cta-strip .title-lg { max-width: 18ch; }
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: end;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: #fff;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
}
.cta-band .kicker { color: var(--aqua-bright); }
.cta-band .title-lg, .cta-band .display { color: #fff; }
.cta-band .lead, .cta-band .text-muted, .cta-band .text-soft { color: rgba(255, 255, 255, .78); }
.cta-band .btn { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta-band .btn.primary { background: #fff; color: var(--teal-deep); border-color: #fff; box-shadow: none; }
.cta-band .btn.primary:hover { background: var(--aqua-bright); color: #fff; }

/* ---------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------- */
.footer { margin-top: 80px; padding: 56px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: start; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--aqua); }
.footer small { color: var(--muted); }

/* ---------------------------------------------------------
   11. MOTION
   --------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

body.is-loaded .hero-intro > * { opacity: 0; animation: copyIn .9s var(--ease) forwards; }
body.is-loaded .hero-intro > *:nth-child(1) { animation-delay: .15s; }
body.is-loaded .hero-intro > *:nth-child(2) { animation-delay: .28s; }
body.is-loaded .hero-intro > *:nth-child(3) { animation-delay: .41s; }
body.is-loaded .hero-intro > *:nth-child(4) { animation-delay: .54s; }

@keyframes sceneIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shapeIn { from { opacity: 0; transform: translate3d(0, 60px, -260px) scale(.6); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes cubeSpin { from { transform: translate3d(-50%, -50%, 0) rotateX(-18deg) rotateY(0deg); } to { transform: translate3d(-50%, -50%, 0) rotateX(342deg) rotateY(360deg); } }
@keyframes shapeFloat { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -22px, 0); } }
@keyframes ringSpin { from { transform: translate3d(-50%, -50%, 0) rotateX(72deg) rotateZ(0deg); } to { transform: translate3d(-50%, -50%, 0) rotateX(72deg) rotateZ(360deg); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bentoGlow { from { transform: translate(0, 0) scale(1); opacity: .55; } to { transform: translate(-14px, 16px) scale(1.14); opacity: .85; } }
@keyframes bentoFloat { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-14px) rotate(6deg); } }

/* ---------------------------------------------------------
   12. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 980px) {
  body { background-attachment: scroll; }
  .nav-links {
    position: fixed;
    inset: 74px 16px auto 16px;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--glass-strong);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 10px; }
  .nav-cta { width: 100%; justify-content: center; text-align: center; }
  .menu-toggle { display: block; }

  .hero { min-height: auto; padding: 80px 0 56px; }
  .two-col, .two-col.equal, .package, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .bento-services { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
  .bento-service-card.featured { grid-row: auto; min-height: 360px; }
  .bento-service-card.featured .bento-copy { max-width: 70%; }
  .card-grid, .card-grid.two, .contact-grid { grid-template-columns: 1fr; }
  .sticky-copy { position: static; }
  .service-index { max-width: 100%; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { height: 66px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 19px; }
  .nav-links { inset: 66px 12px auto 12px; }
  .hero { padding: 64px 0 48px; }
  .btn { width: 100%; }
  .btn-row { align-items: stretch; }
  .bento-service-card { border-radius: var(--r-md); }
  .bento-service-card.featured { min-height: 420px; }
  .bento-service-card.featured .bento-copy { max-width: 82%; }
  .bento-device { width: 68%; right: -8%; }
  .card.demo-card .card-img { height: 190px; }
  .contact-card, .card { min-height: auto; }
  .footer { margin-top: 50px; }
  .work-photo { height: 220px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-scene { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body.is-loaded .hero-intro > * { opacity: 1; }
}

@media (max-width: 720px) {
  .hero-scene { display: none; }
}

/* print (static export of animated content) */
@media print {
  @page { size: 1440px 2600px; margin: 0; }
  * { box-shadow: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-scene { display: none !important; }
}
