/* Ragazzi Engineering Solutions — site styles
   Brand: navy #1A365D · light #E2E8F0 · grey #838886 · white #FFFFFF */
:root {
  --navy: #1A365D;
  --navy-2: #2C4E7E;
  --navy-deep: #0F2240;
  --navy-ink: #0B1A31;
  --light: #E2E8F0;
  --tint: #F3F6FA;
  --grey: #838886;
  --text: #4A4F4D;
  --line: #D9E0E9;
  --white: #FFFFFF;
  --sky: #8FB3E0;      /* light blue used only on dark backgrounds */
  --glow: #7FB2FF;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 4px;
  --wrap: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 40px 80px -40px rgba(11, 26, 49, .45), 0 12px 24px -16px rgba(11, 26, 49, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
h1 em, h2 em, h3 em, blockquote em { font-style: italic; font-weight: 300; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; }
.mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* Eyebrows */
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow .idx { display: inline-flex; align-items: center; gap: 14px; color: var(--grey); }
.eyebrow .idx::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--light); }
.eyebrow-light .idx { color: var(--sky); }

/* Corner registration marks (engineering detail) */
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--sky); border-style: solid; pointer-events: none; z-index: 2; }
.corner.tl { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.corner.tr { top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 1.5px 1.5px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn .wa { width: 18px; height: 18px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.88rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(15,34,64,.7); }
.btn-accent { background: var(--white); color: var(--navy); }
.btn-accent:hover { background: var(--light); box-shadow: 0 10px 30px -12px rgba(127,178,255,.6); }
.btn-glass { color: var(--white); border-color: rgba(226,232,240,.35); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-glass:hover { border-color: rgba(226,232,240,.8); background: rgba(255,255,255,.1); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(226,232,240,.12);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; color: var(--white); transition: color .35s; }
.brand-text strong { font-weight: 500; font-size: 1.24rem; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.1em; opacity: .85; }
.logo-dark { display: none; }

.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; color: rgba(255,255,255,.78);
  font-size: 0.92rem; font-weight: 400; padding: 8px 0; transition: color .25s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid rgba(226,232,240,.3); border-radius: var(--radius); overflow: hidden; }
.lang button {
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em;
  background: transparent; color: rgba(255,255,255,.65); border: 0; padding: 10px 11px; cursor: pointer; min-width: 40px; transition: background .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: var(--white); color: var(--navy); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid rgba(226,232,240,.3); border-radius: var(--radius); background: transparent; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 1.5px; background: var(--white); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* scrolled state: solid white header */
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11,26,49,.5); }
.site-header.scrolled .brand-text { color: var(--navy); }
.site-header.scrolled .logo-dark { display: block; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .nav a { color: var(--text); }
.site-header.scrolled .nav a:hover, .site-header.scrolled .nav a.active { color: var(--navy); }
.site-header.scrolled .lang { border-color: var(--line); }
.site-header.scrolled .lang button { color: var(--grey); }
.site-header.scrolled .lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.site-header.scrolled .btn-accent { background: var(--navy); color: var(--white); }
.site-header.scrolled .menu-btn { border-color: var(--line); }
.site-header.scrolled .menu-btn span { background: var(--navy); }

@media (max-width: 1020px) {
  .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--navy-deep); border-bottom: 1px solid rgba(226,232,240,.12);
    padding: 8px 32px 24px; display: none;
  }
  .site-header.scrolled .nav { background: var(--white); border-bottom-color: var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(226,232,240,.12); font-size: 1rem; }
  .site-header.scrolled .nav a { border-bottom-color: var(--line); }
  .nav a::after { display: none; }
}
@media (max-width: 600px) { .nav { padding: 8px 16px 20px; } }
@media (max-width: 420px) { .brand-text span { display: none; } .brand img { width: 36px; } }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-deep); color: #C3CFDE;
  padding: calc(var(--header-h) + 72px) 0 0;
}
.hero-bg, .contact .hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(127,178,255,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(44,78,126,.55), transparent 60%),
    linear-gradient(rgba(143,179,224,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(143,179,224,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, var(--navy-deep), var(--navy) 120%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(143,179,224,.12) 1px, transparent 1px) 0 0 / 160px 160px,
              linear-gradient(90deg, rgba(143,179,224,.12) 1px, transparent 1px) 0 0 / 160px 160px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 64px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--light); padding: 8px 14px; border: 1px solid rgba(226,232,240,.2); border-radius: 999px;
  background: rgba(255,255,255,.03); margin-bottom: 30px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(127,178,255,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(127,178,255,0); } }
.hero h1 { color: var(--white); margin-bottom: 26px; }
.hero h1 em { color: var(--sky); }
.lead { font-size: 1.15rem; font-weight: 300; color: #C3CFDE; max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-visual { margin: 0; }
.viewport {
  position: relative; border: 1px solid rgba(143,179,224,.22); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}
.vp-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--sky);
  padding: 12px 16px; border-bottom: 1px solid rgba(143,179,224,.16);
}
.vp-live { display: inline-flex; align-items: center; gap: 8px; color: var(--light); }
.vp-live i { width: 6px; height: 6px; border-radius: 50%; background: #5BD69A; box-shadow: 0 0 8px #5BD69A; }
.vp-steps { display: inline-flex; gap: 14px; }
.vp-steps b { font-weight: 400; color: rgba(143,179,224,.45); transition: color .4s; }

/* Animated stage: point cloud → CAD → physical part */
.viewport { overflow: hidden; }
.stage { position: relative; aspect-ratio: 600 / 520; margin: 4px 10px 30px; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-cad, .l-render { clip-path: inset(0 100% 0 0); }
.stage.anim .l-cad, .stage.anim .l-render, .stage.anim .beam { transition: clip-path 1.9s cubic-bezier(.65,0,.35,1), transform 1.9s cubic-bezier(.65,0,.35,1), opacity .5s; }
.stage.has-cad .l-cad, .stage.has-render .l-render { clip-path: inset(0 0 0 0); }
.stage.fade .l-cad, .stage.fade .l-render { opacity: 0; transition: opacity .7s ease; }
.beam {
  position: absolute; top: 0; bottom: 0; left: -70px; width: 70px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(127,178,255,0), rgba(127,178,255,.28) 80%, rgba(207,226,255,.95));
  box-shadow: 6px 0 24px rgba(127,178,255,.45);
}
.stage.scanning .beam { opacity: 1; transform: translateX(calc(100cqw + 70px)); }
.stage { container-type: inline-size; }

.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leader { opacity: 0; transition: opacity .45s ease; }
.leader path { fill: none; stroke: rgba(207,226,255,.75); stroke-width: 1; }
.leader circle { fill: var(--glow); }
.leader .ring { fill: none; stroke: var(--glow); stroke-width: 1; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.datum path { stroke-width: 1.6; fill: none; }
.datum path:nth-child(even) { stroke: none; }
.datum .ax-x { stroke: #E57373; } .datum .ax-x:nth-child(2) { fill: #E57373; }
.datum .ax-y { stroke: #5BD69A; } .datum .ax-y:nth-child(4) { fill: #5BD69A; }
.datum .ax-z { stroke: var(--glow); } .datum .ax-z:nth-child(6) { fill: var(--glow); }
.datum .origin { fill: var(--navy-deep); stroke: var(--light); stroke-width: 1.2; }
.datum text { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.datum .tx { fill: #E57373; } .datum .ty { fill: #5BD69A; } .datum .tz { fill: var(--glow); }

.callout {
  position: absolute; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  padding: 7px 11px; border: 1px solid rgba(207,226,255,.55); border-radius: 2px;
  background: rgba(15,34,64,.85); backdrop-filter: blur(6px); white-space: nowrap;
  opacity: 0; transition: opacity .45s ease;
}
.callout .mono { color: var(--glow); }
.c1 { right: 2%; bottom: 84.2%; }
.c2 { left: 38%; top: 88.8%; }
.c3 { right: 3%; top: 79.2%; }
.stage[data-step="1"] .c1, .stage[data-step="2"] .c2, .stage[data-step="3"] .c3,
.stage[data-step="1"] .ld1, .stage[data-step="2"] .ld2, .stage[data-step="3"] .ld3 { opacity: 1; }
.viewport:has(.stage[data-step="1"]) .vp-steps [data-s="1"],
.viewport:has(.stage[data-step="2"]) .vp-steps [data-s="2"],
.viewport:has(.stage[data-step="3"]) .vp-steps [data-s="3"] { color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .l-cad { clip-path: none; } .l-render { display: none; } .beam { display: none; }
  .callout, .leader { opacity: 1 !important; }
}
.vp-formats { position: absolute; right: 16px; bottom: 12px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: rgba(143,179,224,.75); }

.hero-points {
  list-style: none; padding: 0; margin: 80px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(226,232,240,.14);
}
.hero-points li { display: flex; gap: 16px; align-items: baseline; padding: 26px 24px 30px 0; font-size: 0.95rem; color: var(--light); }
.hero-points li + li { padding-left: 24px; border-left: 1px solid rgba(226,232,240,.14); }
.hp-num { font-family: var(--mono); font-size: 0.72rem; color: var(--sky); }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-points { grid-template-columns: 1fr; margin-top: 56px; }
  .hero-points li { padding: 18px 0; }
  .hero-points li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(226,232,240,.14); }
}
@media (max-width: 520px) {
  .callout { font-size: 0.58rem; padding: 5px 8px; }
  .callout::before { width: 18px; }
  .vp-bar span:first-child { display: none; }
}

/* ---------------- Ticker ---------------- */
.ticker { background: var(--navy-ink); color: var(--sky); overflow: hidden; border-top: 1px solid rgba(226,232,240,.08); }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker-track span {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 18px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px;
}
.ticker-track span::after { content: "◆"; font-size: 0.5rem; color: var(--navy-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------- Values ---------------- */
.values { background: var(--white); border-bottom: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { padding: 44px 28px 44px 0; display: flex; flex-direction: column; gap: 8px; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value svg { width: 30px; height: 30px; color: var(--navy); margin-bottom: 10px; }
.value-k { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); line-height: 1.2; }
.value-v { font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 960px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value, .value + .value { padding: 32px 20px 32px 0; border-left: 0; }
  .value:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(even) { padding: 26px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
}

/* ---------------- Sections ---------------- */
.section { padding: 128px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy-deep); color: #C3CFDE; overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(143,179,224,.06) 1px, transparent 1px) 0 0 / 32px 32px,
              linear-gradient(90deg, rgba(143,179,224,.06) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h2 em { color: var(--sky); }
.section-head { margin-bottom: 72px; }
.section-head.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; }
.section-lead { font-size: 1.06rem; font-weight: 300; }
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------------- Services bento ---------------- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 34px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(11,26,49,.35); border-color: #C5D0DE; }
.tile:hover::before { transform: scaleX(1); }
.tile .icon { width: 44px; height: 44px; color: var(--navy); margin: 8px 0 18px; }
.tile p { font-size: 0.95rem; }
.tile-num { position: absolute; top: 22px; right: 26px; font-family: var(--mono); font-size: 0.72rem; color: var(--grey); letter-spacing: 0.1em; }
.tile-feature { grid-row: span 2; background: var(--navy-deep); border-color: var(--navy-deep); padding: 0; color: #C3CFDE; }
.tile-feature h3 { color: var(--white); font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2; }
.tile-feature .tile-num { color: var(--sky); }
.tile-feature::before { background: var(--glow); }
.tile-art { border-bottom: 1px solid rgba(143,179,224,.16); }
.tile-art svg { width: 100%; }
.tile-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; position: relative; flex: 1; justify-content: flex-end; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: start; }
.tile-wide .icon { grid-row: span 2; margin: 4px 0 0; }
.tile-wide h3 { align-self: end; }
@media (max-width: 1020px) { .bento { grid-template-columns: 1fr 1fr; } .tile-feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; } .tile-feature, .tile-wide { grid-column: auto; }
  .tile-wide { display: flex; } .tile-wide .icon { margin: 8px 0 18px; }
  .tile { padding: 30px 22px; } .tile-body { padding: 26px 22px; }
}

/* ---------------- Packages ---------------- */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.package {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 60px -48px rgba(11,26,49,.4);
}
.package-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.package h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.12; }
.package h3 em { color: var(--grey); }
.package-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.package-code { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--navy); border: 1px solid var(--line); padding: 4px 8px; border-radius: 2px; }
.package-dark {
  background: var(--navy-deep); border-color: var(--navy-deep); color: #C3CFDE; overflow: hidden; isolation: isolate;
}
.package-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px 300px at 100% 0%, rgba(127,178,255,.16), transparent 70%),
              linear-gradient(rgba(143,179,224,.06) 1px, transparent 1px) 0 0 / 24px 24px,
              linear-gradient(90deg, rgba(143,179,224,.06) 1px, transparent 1px) 0 0 / 24px 24px;
}
.package-dark h3 { color: var(--white); }
.package-dark h3 em, .package-dark .package-tag { color: var(--sky); }
.package-dark .package-code { color: var(--light); border-color: rgba(226,232,240,.25); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 6px 0 0; border-top: 1px solid var(--line); }
.package-dark .steps { border-top-color: rgba(226,232,240,.16); }
.steps li { counter-increment: s; display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--navy); }
.package-dark .steps li { border-bottom-color: rgba(226,232,240,.16); color: var(--light); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 0.78rem; color: var(--grey); padding-top: 3px; }
.package-dark .steps li::before { color: var(--sky); }
.ideal { font-size: 0.92rem; padding: 16px 18px; background: var(--tint); border-left: 2px solid var(--navy); margin-top: 4px; }
.ideal strong { color: var(--navy); font-weight: 600; }
.package-dark .ideal { background: rgba(255,255,255,.04); border-left-color: var(--sky); }
.package-dark .ideal strong { color: var(--white); }
.package-cta { align-self: flex-start; margin-top: auto; }
.package .ideal + .package-cta { margin-top: 10px; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } .package { padding: 32px 22px; } }

/* ---------------- Process ---------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, rgba(143,179,224,.4), rgba(143,179,224,.4)) 0 0 / var(--progress, 0%) 100% no-repeat, rgba(143,179,224,.14);
}
.process li { position: relative; display: flex; flex-direction: column; gap: 12px; }
.node {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-deep); border: 1px solid rgba(143,179,224,.4);
  box-shadow: 0 0 0 6px var(--navy-deep);
  font-family: var(--mono); font-size: 0.85rem; color: var(--white); margin-bottom: 18px; position: relative;
}
.node::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(143,179,224,.3); }
.process h3 { font-size: 1.2rem; }
.process p { font-size: 0.95rem; }
.output { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.out-k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-right: 4px; }
.file { font-family: var(--mono); font-size: 0.74rem; color: var(--white); border: 1px solid rgba(143,179,224,.3); background: rgba(255,255,255,.04); padding: 4px 10px; border-radius: 2px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 44px; padding-left: 0; }
  .process::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto; background: rgba(143,179,224,.25); }
  .process li { padding-left: 84px; }
  .node { position: absolute; left: 0; top: 0; margin: 0; }
}

.deliverables { margin-top: 88px; padding-top: 40px; border-top: 1px solid rgba(226,232,240,.12); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.deliverables .eyebrow { margin: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-family: var(--mono); font-size: 0.8rem; color: var(--light); border: 1px solid rgba(143,179,224,.28); border-radius: 999px; padding: 8px 16px; }

/* ---------------- Statement + two-col ---------------- */
.statement { margin: 0 0 112px; padding: 0 0 72px; border-bottom: 1px solid var(--line); text-align: center; }
.statement p { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); max-width: 18ch; margin: 0 auto; }
.statement em { color: var(--grey); }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 96px; }
.two-col h2 { margin-bottom: 36px; }
.apps { list-style: none; padding: 0; margin: 0; counter-reset: a; }
.apps li {
  display: flex; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 1.04rem; color: var(--navy); transition: padding-left .35s var(--ease), background .35s;
}
.apps li:first-child { border-top: 1px solid var(--line); }
.apps li:hover { padding-left: 10px; }
.app-n { font-family: var(--mono); font-size: 0.72rem; color: var(--grey); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-item { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: background .3s; }
.why-item:hover { background: var(--tint); }
.why-item h3 { font-size: 1.02rem; }
.why-item p { font-size: 0.92rem; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 72px; } .statement { margin-bottom: 80px; padding-bottom: 56px; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------------- About ---------------- */
.about { display: grid; grid-template-columns: 400px 1fr; gap: 88px; align-items: start; }
.about-photo { position: relative; margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-lg); }
.about-photo .corner { border-color: var(--navy); }
.about-photo img { width: 100%; filter: saturate(.92) contrast(1.02); }
.about-photo figcaption { display: flex; flex-direction: column; gap: 2px; padding: 16px 4px 4px; font-size: 0.85rem; }
.about-photo figcaption .mono { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--navy); }
.about-copy h2 { margin-bottom: 6px; }
.role { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-bottom: 26px !important; }
.about-bio { font-size: 1.06rem; font-weight: 300; }
.tools { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-family: var(--mono); font-size: 0.74rem; color: var(--navy); background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius: 2px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.mini { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid #C5D0DE; }
.timeline li { padding: 0 0 18px 20px; position: relative; display: flex; flex-direction: column; line-height: 1.4; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--tint); border: 1.5px solid var(--navy); transform: rotate(45deg); }
.timeline strong { color: var(--navy); font-weight: 600; }
.timeline span { font-size: 0.9rem; }
@media (max-width: 1020px) { .about { grid-template-columns: 320px 1fr; gap: 56px; } }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 56px; } .about-photo { max-width: 340px; } }
@media (max-width: 560px) { .about-cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------- Contact ---------------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: #C3CFDE; padding: 136px 0; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 88px; align-items: center; }
.contact h2 { color: var(--white); margin-bottom: 22px; }
.contact h2 em { color: var(--sky); }
.contact-lead { font-size: 1.08rem; font-weight: 300; max-width: 30em; }
.contact-card { position: relative; border: 1px solid rgba(143,179,224,.22); background: rgba(255,255,255,.035); backdrop-filter: blur(6px); padding: 12px 32px; box-shadow: var(--shadow-lg); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; align-items: baseline; }
.contact-list li + li { border-top: 1px solid rgba(226,232,240,.12); }
.contact-list .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.contact-list a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }
@media (max-width: 960px) { .contact { padding: 96px 0; } .contact-grid { grid-template-columns: 1fr; gap: 56px; } }
@media (max-width: 520px) { .contact-card { padding: 8px 20px; } .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-ink); color: #8FA6C4; padding: 72px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { margin-top: 18px; max-width: 26em; font-family: var(--serif); font-size: 1.15rem; font-style: italic; font-weight: 300; color: var(--light); }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #C3CFDE; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(226,232,240,.1); font-size: 0.82rem; }
.to-top { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.tile.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }
