/* Frontino IT · home v3 design system (Nov 2026)
   Light, spacious base · dark navy for hero, trust and booking · orange only for the action. */
:root {
  --ink: #14213D;
  --deep: #0B1324;
  --deep-2: #111C33;
  --paper: #FFFFFF;
  --mist: #F5F7FA;
  --slate: #4B5565;
  --line: #E3E8EF;
  --accent: #FCA311;
  --accent-hover: #FFB534;
  --validate: #2E9E6B;
  --on-dark: #FFFFFF;
  --on-dark-2: #9AA6B8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.06);
  --shadow-lift: 0 2px 4px rgba(20, 33, 61, 0.06), 0 20px 48px rgba(20, 33, 61, 0.14);
  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; position: relative; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--deep); color: var(--on-dark); }
@media (max-width: 760px) { .section { padding: 72px 0; } :root { --gutter: 16px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.dark .eyebrow { color: var(--on-dark-2); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 60ch; margin-top: 20px; }
.dark .lead { color: var(--on-dark-2); }
.head { margin-bottom: 56px; }
.head.center { text-align: center; }
.head.center .h2, .head.center .lead { margin-left: auto; margin-right: auto; }
.note { font-size: 0.875rem; color: var(--slate); }
.dark .note { color: var(--on-dark-2); }
.pending { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #FFF4DE; color: #7A4A00; }

/* ---------- buttons ---------- */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; transform: translate(var(--mx), var(--my)); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 20px rgba(252, 163, 17, 0.28); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px rgba(252, 163, 17, 0.38); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-ghost, .on-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--on-dark); }
.dark .btn-ghost:hover, .on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-color: var(--accent); }
.dark .link { color: var(--accent); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background-color .25s, box-shadow .25s, color .25s; color: var(--on-dark); }
.hdr.solid { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-logo { position: relative; width: 168px; height: 44px; flex-shrink: 0; }
.hdr-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .25s; }
.hdr-logo .logo-navy { opacity: 0; }
.hdr.solid .logo-navy { opacity: 1; }
.hdr.solid .logo-white { opacity: 0; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav-drop > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: inherit; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav-drop > button:hover { background: rgba(127, 140, 160, 0.14); }
.nav-drop { position: relative; }
.nav-drop svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop[data-open="true"] > button svg { transform: rotate(180deg); }
.drop { position: absolute; top: calc(100% + 10px); left: 50%; width: 560px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-drop[data-open="true"] .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none; }
.drop a:hover, .drop a:focus-visible { background: var(--mist); }
.drop strong { display: block; font-size: 0.9375rem; }
.drop span { display: block; font-size: 0.8125rem; color: var(--slate); line-height: 1.45; margin-top: 2px; }
.hdr-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: none; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 1020px) {
  .nav { position: fixed; inset: var(--header-h) 0 0; background: var(--paper); color: var(--ink); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 120px; gap: 0; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav > a, .nav-drop > button { font-size: 1.125rem; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; justify-content: space-between; }
  .drop { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; display: none; }
  .nav-drop[data-open="true"] .drop { display: grid; transform: none; }
  .menu-btn { display: inline-flex; }
  .hdr-cta .btn { display: none; }
  body.menu-open .hdr { background: var(--paper); color: var(--ink); }
  body.menu-open .hdr .logo-navy { opacity: 1; }
  body.menu-open .hdr .logo-white { opacity: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: radial-gradient(1200px 600px at 75% 40%, #18284A 0%, var(--deep) 60%); color: var(--on-dark); overflow: hidden; padding: calc(var(--header-h) + 48px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); line-height: 1.08; max-width: 16ch; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: #C6CEDB; max-width: 50ch; font-size: clamp(1rem, 1.25vw, 1.125rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof { margin-top: 22px; font-size: 0.9375rem; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-proof b { color: var(--on-dark); font-weight: 600; }
.flow { width: 100%; height: auto; overflow: visible; }
.flow text { font-family: var(--font); }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; } .hero { min-height: auto; } .flow-box { max-width: 560px; } }

/* ---------- KPI bar ---------- */
.kpis { border-bottom: 1px solid var(--line); background: var(--paper); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 40px 24px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi-val { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-val small { font-size: 0.5em; font-weight: 500; color: var(--slate); margin-left: 4px; letter-spacing: 0; }
.kpi-lbl { margin-top: 10px; font-size: 0.9375rem; color: var(--slate); line-height: 1.45; }
.kpi-foot { padding: 0 0 24px; }
@media (max-width: 860px) { .kpi-grid { grid-template-columns: 1fr 1fr; } .kpi { padding: 28px 16px; } .kpi:nth-child(3) { border-left: 0; padding-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- problem ---------- */
.problem-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.work { --p: 0; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; padding: 18px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: calc(0.35 + var(--p) * 0.65); transform: translateX(calc((1 - var(--p)) * 24px)); }
.work-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--ink); }
.work-ic svg { width: 24px; height: 24px; }
.work strong { display: block; font-size: 1.0625rem; }
.work span { display: block; font-size: 0.9375rem; color: var(--slate); }
.work .cost { position: relative; }
.work .cost::after { content: ''; position: absolute; left: 0; top: 55%; height: 2px; width: calc(var(--p) * 100%); background: var(--accent); }
.problem-close { margin-top: 28px; font-size: 1.125rem; font-weight: 600; }
@media (max-width: 960px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- selector ---------- */
.selector { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 32px; align-items: stretch; }
.sel-tabs { display: grid; gap: 10px; }
.sel-tab { text-align: left; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sel-tab:hover { border-color: #C9D1DD; }
.sel-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow); }
.sel-tab .dot { width: 22px; height: 22px; border-radius: 999px; border: 2px solid #C9D1DD; display: grid; place-items: center; transition: border-color .2s; }
.sel-tab[aria-selected="true"] .dot { border-color: var(--ink); }
.sel-tab[aria-selected="true"] .dot::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.sel-tab span { font-size: 1rem; font-weight: 500; line-height: 1.4; }
.sel-panel { position: relative; border-radius: calc(var(--radius) + 4px); background: var(--deep); color: var(--on-dark); padding: 44px; overflow: hidden; min-height: 100%; }
.sel-panel::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(252, 163, 17, 0.16), transparent 65%); pointer-events: none; }
.sel-pane[hidden] { display: none; }
.sel-pane .tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sel-pane h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.sel-pane p { color: #C6CEDB; margin-top: 14px; max-width: 46ch; }
.sel-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.sel-facts div { display: flex; flex-direction: column; }
.sel-facts b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sel-facts span { font-size: 0.8125rem; color: var(--on-dark-2); }
.sel-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .selector { grid-template-columns: 1fr; } .sel-panel { padding: 32px 24px; } }

/* ---------- how we work (horizontal timeline) ---------- */
.how-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.how-step { padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.how-step .n { font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.how-step h3 { font-size: 1.5rem; margin: 10px 0 12px; }
.how-step p { color: var(--slate); }
.how-step .meta { margin-top: 22px; font-size: 0.875rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.how-step .meta::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.how-rail { position: relative; height: 2px; background: var(--line); margin: 40px 0 0; border-radius: 2px; }
.how-rail i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: 2px; }
.principle { margin-top: 48px; font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 600; }
.principle span { color: var(--slate); }
@media (hover: hover) { .how-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--ink); } }
@media (max-width: 1020px) { .how-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .how-track { grid-template-columns: minmax(0, 1fr); } .how-rail { display: none; } }

/* ---------- packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.pkg { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; grid-column: span 4; position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: box-shadow .25s, border-color .25s, transform .2s; text-decoration: none; color: inherit; overflow: hidden; }
.pkg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--gx) var(--gy), rgba(252, 163, 17, 0.10), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.pkg:hover, .pkg:focus-within { box-shadow: var(--shadow-lift); border-color: #C9D1DD; }
.pkg:hover::after { opacity: 1; }
.pkg.start { grid-column: span 6; border: 1.5px solid var(--ink); }
.pkg .badge { align-self: flex-start; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); margin-bottom: 16px; }
.pkg .badge.quiet { background: var(--mist); color: var(--ink); }
.pkg h3 { font-size: 1.375rem; }
.pkg .for { font-size: 0.9375rem; color: var(--slate); margin-top: 8px; }
.pkg .price { margin-top: 22px; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pkg .price small { font-size: 0.875rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.pkg .time { font-size: 0.875rem; font-weight: 500; margin-top: 8px; color: var(--slate); }
.pkg ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.pkg li { position: relative; padding-left: 22px; }
.pkg li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.pkg .result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; flex-grow: 1; }
.pkg .go { margin-top: 22px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.pkg .go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.pkg:hover .go svg { transform: translateX(4px); }
@media (max-width: 1020px) { .pkg, .pkg.start { grid-column: span 6; } }
@media (max-width: 640px) { .pkg, .pkg.start { grid-column: 1 / -1; } }

/* ---------- business cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.case:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.case .kind { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.case h3 { font-size: 1.25rem; margin: 8px 0 18px; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.case dd { margin: 2px 0 0; font-size: 0.9375rem; }
.bars { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; font-size: 0.8125rem; color: var(--slate); }
.bar { height: 12px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: #B9C3D3; transform-origin: left; }
.bar.on i { background: var(--ink); }
.case .outcome { margin-top: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.case .outcome b { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.case .outcome span { font-size: 0.875rem; color: var(--slate); }
.case .extra { font-size: 0.875rem; color: var(--slate); margin-top: 6px; }
.case .go { margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 0.9375rem; }
.illustrative { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--slate); }
.illustrative svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift); background: var(--paper); }
.calc-in { padding: 44px; display: grid; gap: 28px; align-content: start; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; font-weight: 500; margin-bottom: 10px; }
.field output { font-weight: 600; font-variant-numeric: tabular-nums; }
.field input[type=range] { width: 100%; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.field input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%)); }
.field input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.field input[type=range]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(20, 33, 61, 0.2); transition: transform .15s; }
.field input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
.field .hint { font-size: 0.8125rem; color: var(--slate); margin-top: 4px; }
.field-row { display: flex; gap: 10px; align-items: center; }
.field-row input[type=number] { width: 120px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font: inherit; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.field-row input[type=number]:focus { border-color: var(--ink); outline: none; }
.calc-out { padding: 44px; background: var(--deep); color: var(--on-dark); display: flex; flex-direction: column; gap: 4px; }
.out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.out-row span { color: var(--on-dark-2); font-size: 0.9375rem; }
.out-row b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out-row.big { border-bottom: 0; padding-top: 22px; }
.out-row.big span { color: var(--on-dark); font-weight: 500; }
.out-row.big b { font-size: clamp(2.25rem, 4vw, 3rem); color: var(--accent); }
.payback { align-self: flex-start; margin: 6px 0 22px; font-size: 0.875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(46, 158, 107, 0.16); color: #7FD7AE; }
.calc-out .note { margin-bottom: 24px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-in, .calc-out { padding: 28px 22px; } }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; margin-top: 8px; }
.trust-col { padding: 0 32px 0 0; position: relative; }
.trust-col + .trust-col { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.trust-node { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); color: var(--accent); margin-bottom: 22px; }
.trust-node svg { width: 26px; height: 26px; }
.trust-col h3 { font-size: 1.5rem; }
.trust-col p { color: var(--on-dark-2); margin-top: 10px; }
.trust-line { position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: var(--line-dark); z-index: 0; }
.trust-line i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.trust-node { position: relative; z-index: 1; background: var(--deep-2); }
.trace { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trace span { font-size: 0.875rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); color: #C6CEDB; }
.trace b { font-size: 0.875rem; color: var(--on-dark-2); font-weight: 500; margin-right: 6px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; gap: 36px; } .trust-col + .trust-col { padding-left: 0; border-left: 0; } .trust-line { display: none; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.about-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.about-points svg { width: 24px; height: 24px; margin-top: 2px; }
.about-points b { display: block; }
.about-points span { color: var(--slate); font-size: 0.9375rem; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { text-align: left; }
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--mist); filter: grayscale(0.15); }
.member b { display: block; margin-top: 12px; font-size: 0.9375rem; }
.member a { font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-size: 1.125rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq .ans { padding: 0 4px 24px; color: var(--slate); max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.book-steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 16px; counter-reset: s; }
.book-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: #C6CEDB; }
.book-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 0.875rem; background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.book-steps b { color: var(--on-dark); display: block; }
.cal { position: relative; border-radius: calc(var(--radius) + 4px); background: var(--paper); color: var(--ink); min-height: 560px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.cal iframe { width: 100%; height: 680px; border: 0; display: block; }
.cal-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; gap: 16px; background: linear-gradient(180deg, var(--paper), var(--mist)); }
.cal-gate .cal-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--mist); border: 1px solid var(--line); }
.cal-gate .cal-ic svg { width: 30px; height: 30px; }
.cal-gate h3 { font-size: 1.375rem; }
.cal-gate p { color: var(--slate); max-width: 40ch; font-size: 0.9375rem; }
.cal-gate .note a { color: var(--ink); }
@media (max-width: 960px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } .cal, .cal iframe { min-height: 520px; height: 620px; } }

/* ---------- footer ---------- */
.ftr { background: var(--deep); color: var(--on-dark-2); padding: 72px 0 32px; border-top: 1px solid var(--line-dark); font-size: 0.9375rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 40px; }
.ftr h4 { color: var(--on-dark); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--on-dark); text-decoration: underline; }
.ftr-brand img { width: 168px; height: auto; margin-bottom: 16px; }
.ftr-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 0.8125rem; }
.ftr-bottom div { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

/* ---------- mobile floating CTA ---------- */
.mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none; transform: translateY(140%); transition: transform .35s var(--ease); }
.mbar.show { transform: none; }
.mbar .btn { width: 100%; box-shadow: 0 12px 32px rgba(11, 19, 36, 0.35); }
@media (max-width: 760px) { .mbar { display: block; } body { padding-bottom: 0; } }

/* ---------- cursor ring ---------- */
.ring { position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 999px; border: 1.5px solid rgba(20, 33, 61, 0.35); pointer-events: none; z-index: 300; opacity: 0; transition: width .2s, height .2s, margin .2s, border-color .2s, opacity .2s; mix-blend-mode: normal; }
.ring.on { opacity: 1; }
.ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); }
.ring.dark { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- reveal (JS adds .js on <html>) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1 !important; transform: none !important; }
  .work { opacity: 1; transform: none; }
  .work .cost::after { width: 100%; }
  .pkg { transform: none !important; }
  .btn { transform: none !important; }
  .ring { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* review fixes */
.sel-panel .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--on-dark); }
.sel-panel .btn-ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.bar-row { grid-template-columns: 112px 1fr; }
.bar-row span { white-space: nowrap; }
.work strong.cost { display: inline-block; }
.member img { height: auto; }
.pkg.half { grid-column: span 6; }
@media (max-width: 640px) { .pkg.half { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-in, .calc-out, .field { min-width: 0; }
  .out-row b { font-size: 1.25rem; }
  .out-row.big b { font-size: 2rem; }
}
/* hero entrance in pure CSS so the headline paints at once (LCP) */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .in { animation: fade-rise .8s var(--ease) both; }
.hero h1.in { animation-name: rise; }
.hero .eyebrow.in { animation-delay: 0s; }
.hero h1.in { animation-delay: .05s; }
.hero .lead.in { animation-delay: .15s; }
.hero .hero-ctas.in { animation-delay: .25s; }
.hero .hero-proof.in { animation-delay: .32s; }
.hero .flow-box.in { animation-delay: .2s; animation-duration: 1.1s; }
/* problem items: text stays readable (AA); the emphasis animates on hover */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.work { transition: --p .35s var(--ease), box-shadow .35s var(--ease); cursor: default; }
@media (hover: hover) { .work:hover { --p: 1; box-shadow: var(--shadow-lift); } }
.work { opacity: 1; transform: translateY(calc(var(--p) * -3px)); }
.work-ic { background: color-mix(in srgb, var(--mist) calc((1 - var(--p)) * 100%), #FFF4DE); color: var(--ink); }
.work { border-color: color-mix(in srgb, var(--line) calc((1 - var(--p)) * 100%), var(--accent)); }

/* ---------- service finder (pass 2) ---------- */
.finder { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.finder-in { padding: 40px; background: var(--paper); display: grid; gap: 20px; align-content: start; min-width: 0; }
.finder-label { font-weight: 600; font-size: 1.0625rem; }
.chip { font: inherit; font-size: 0.875rem; font-weight: 500; padding: 8px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.chip:hover, .chip.on { border-color: var(--ink); background: var(--paper); }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; min-height: 72px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.pick:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-ic { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--mist); color: var(--ink); transition: background-color .2s, color .2s; }
.pick-ic svg { width: 20px; height: 20px; }
.pick-t { display: grid; gap: 2px; min-width: 0; }
.pick-t b { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.pick-t small { font-size: 0.8125rem; color: var(--slate); }
.pick.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pick.on .pick-ic { background: var(--accent); color: var(--ink); }
.pick.on .pick-t small { color: #C6CEDB; }
.picks .pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .picks { grid-template-columns: minmax(0, 1fr); } .pick { min-height: 60px; } }
.finder-out { position: relative; padding: 40px; background: var(--deep); color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; }
.finder-out::before { content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(252,163,17,0.16), transparent 65%); pointer-events: none; }
.finder-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.finder-out h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-top: 10px; }
.finder-out #finder-why { color: #C6CEDB; margin-top: 12px; }
.finder-facts { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.finder-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.finder-out .btn-ghost { border-color: rgba(255,255,255,0.45); color: var(--on-dark); }
.finder-out .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.finder-alt { margin-top: 18px; font-size: 0.875rem; color: var(--on-dark-2); }
.finder-alt a { color: var(--on-dark); }
.finder-out.flash h3, .finder-out.flash #finder-why { animation: fade-rise .35s var(--ease) both; }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } .finder-in, .finder-out { padding: 28px 22px; } }

.compare { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.compare summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary i { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.compare summary i::before, .compare summary i::after { content: ''; position: absolute; left: 2px; right: 2px; top: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.compare summary i::after { transform: rotate(90deg); }
.compare[open] summary i::after { transform: none; }
.compare-wrap { overflow-x: auto; padding: 0 8px 8px; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); border-top: 0; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare tbody th a { text-decoration: none; }
.compare tbody th a:hover { text-decoration: underline; }
.compare td:last-child, .compare td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare tbody th { grid-column: 1 / -1; }
  .compare td:nth-child(2) { grid-column: 1 / -1; color: var(--slate); }
}

/* cases: before/after lines and one bar */
.case-line { font-size: 0.9375rem; margin-top: 10px; }
.case-line b { display: inline-block; min-width: 52px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.case h3 { margin-bottom: 8px; }
.case .bars { display: block; }
.case .outcome span { color: var(--slate); }

/* why Frontino: four short points */
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-grid li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.why-grid b { display: block; font-size: 1.0625rem; }
.why-grid span { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--slate); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.principle { color: var(--ink); }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .calc-out .btn, .finder-ctas .btn, .hero-ctas .btn { width: 100%; }
}

/* ---------- alignment fixes (pass 2) ---------- */
.work .work-ic { display: grid; place-items: center; }
.work .cost::after { display: none; }                /* no strike-through: it hurt legibility */
.work-ic { transition: background-color .3s; }
.work strong { color: var(--ink); }

/* trust: three clean columns, no crossing line */
.trust-line { display: none; }
.trust-col, .trust-col + .trust-col { padding: 0; border: 0; }
.trust-grid { gap: 48px; }

/* packages: price, list and link line up across a row (subgrid) */
@supports (grid-template-rows: subgrid) {
  .pkg-grid { grid-auto-rows: auto; }
  .pkg { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .pkg .badge { justify-self: start; }
  .pkg .result { align-self: start; }
  .pkg .go { align-self: end; }
}
@media (max-width: 640px) { .pkg { grid-row: auto; display: flex; } }

/* cases: label column for before/after */
.case-line { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: baseline; }
.case-line b { min-width: 0; }
@supports (grid-template-rows: subgrid) { .pkg { grid-row: span 7; } }
@media (max-width: 640px) { .pkg { grid-row: auto; } }
@media (max-width: 640px) { .pkg .go, .pkg .badge { align-self: flex-start; } }

/* ---------- revision 3: calculator presets ---------- */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.presets span { font-size: 0.875rem; color: var(--slate); margin-right: 4px; }
.presets .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* living hero background (hero-bg.js): dots stay soft behind the text, fuller on the right */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 35%, #000 65%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 35%, #000 65%); }
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 1020px) { .hero-bg { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), #000 70%); mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), #000 70%); } }

/* =====================================================================
   Details on every page (site-extras.js)
   ===================================================================== */
::selection { background: rgba(252, 163, 17, 0.35); color: inherit; }

/* reading progress under the header */
.readbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.readbar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #FFB534 60%, var(--validate)); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px rgba(252, 163, 17, 0.45); }

/* section guide on the right (wide screens only) */
.srail { position: fixed; right: 22px; top: 50%; z-index: 90; display: grid; gap: 14px; transform: translate(12px, -50%); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.srail.show { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.srail a { position: relative; display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(20, 33, 61, 0.22); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7); transition: height .3s var(--ease), background-color .3s; justify-self: end; }
.srail.on-dark a { background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 3px rgba(11, 19, 36, 0.6); }
.srail a.on { height: 26px; background: var(--accent); }
.srail a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: 0.8125rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--deep); color: var(--on-dark); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); box-shadow: var(--shadow-lift); }
.srail a:hover span, .srail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1279px) { .srail { display: none; } }

/* back to top with progress ring */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s, color .2s; }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink); color: var(--paper); }
.totop svg { width: 48px; height: 48px; }
.totop .trk { fill: none; stroke: var(--line); stroke-width: 2.5; }
.totop .arc { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 24px 24px; }
.totop:hover .trk { stroke: rgba(255, 255, 255, 0.2); }
@media (max-width: 760px) { .totop { display: none; } }

/* current page in the menu */
.nav > a.is-current { position: relative; }
.nav > a.is-current::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
@media (max-width: 1020px) { .nav > a.is-current::after { left: 4px; right: auto; width: 24px; bottom: 8px; } }

/* buttons: the arrow steps forward on hover */
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* hero diagram with depth: glass plate, layers at different depths, tilt follows the mouse (hero-bg.js) */
.flow-box { perspective: 1100px; position: relative; }
.flow-tilt { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.flow-tilt::before { content: ''; position: absolute; inset: 4% -2% 2% -2%; border-radius: 28px; transform: translateZ(-40px);
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 45%, rgba(46,158,107,0.05));
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08); }
.flow .lyr { transition: transform .5s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .flow .halo { animation: halo 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .flow .lyr[data-depth="0.7"] .halo { animation-delay: -2.2s; }
  @keyframes halo { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
}

/* header between tablet and wide desktop: compact menu, links never wrap */
.nav > a, .nav-drop > button { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1240px) {
  .hdr .wrap { gap: 12px; }
  .nav { gap: 0; }
  .nav > a, .nav-drop > button { padding: 10px 10px; font-size: 0.875rem; }
  .nav > a.is-current::after { left: 10px; right: 10px; }
  .hdr-logo { width: 140px; }
  .hdr-cta .btn-sm { padding-left: 16px; padding-right: 16px; font-size: 0.8125rem; }
}
#about .head .h2 { max-width: 23em; }
#about .head .h2 br { display: block; }

/* menu: service name first, product tag, "see all" row */
.drop-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 0.6875rem; font-style: normal; font-weight: 600; vertical-align: 2px; }
.drop a.drop-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.drop a.drop-all svg { width: 18px; height: 18px; transition: transform .2s; }
.drop a.drop-all:hover svg { transform: translateX(3px); }
.drop a.is-here { background: var(--mist); }
.nav-drop > button.is-current { position: relative; }
.nav-drop > button.is-current::after { content: ''; position: absolute; left: 14px; right: 30px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
@media (max-width: 1020px) { .nav-drop > button.is-current::after { left: 4px; right: auto; width: 24px; bottom: 8px; } }

/* language switch EN | ES (header) */
.lang-sw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-right: 6px; border-radius: 999px; border: 1px solid rgba(127, 140, 160, 0.4); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
.lang-sw a, .lang-sw span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 0 9px; border-radius: 999px; color: inherit; text-decoration: none; transition: background .2s, color .2s; }
.lang-sw a { opacity: 0.8; }
.lang-sw a:hover, .lang-sw a:focus-visible { opacity: 1; background: rgba(127, 140, 160, 0.18); }
.lang-sw .on { background: var(--accent); color: var(--ink); }
@media (max-width: 1020px) { .lang-sw { margin-right: 2px; } }
