/* ============================================================
   Cloudata — vertical.css
   Shared layout for the /au and /it vertical landing pages.
   Accent is driven by body.theme-au / body.theme-it tokens.
   ============================================================ */

/* progress + shared nav/footer come from theme.css */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform: scaleX(0); transform-origin: left; background: var(--accent); }

/* sticky sub-nav for in-page sections */
.subnav { position: sticky; top: var(--nav-h); z-index: 60; background: color-mix(in srgb, var(--canvas) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); transition: top var(--t-med) var(--ease); }
.nav.scrolled ~ .subnav { top: 64px; }
.subnav-inner { display: flex; align-items: center; gap: 4px; height: 54px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { font-size: var(--fs-cap); font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: var(--r-pill); white-space: nowrap; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--accent-deep); background: var(--accent-soft); }

/* ---------- VERTICAL HERO ---------- */
.vhero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(48px, 6vw, 88px); overflow: hidden; }
.vhero::before { content: ""; position: absolute; top: -260px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 64%); pointer-events: none; z-index: 0; }
.vhero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.vhero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 0.99; }
.vhero h1 em { font-style: italic; color: var(--accent); }
.vhero .lead { max-width: 32rem; margin-top: var(--sp-5); }
.vhero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.crumb { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); padding: 7px 13px; border-radius: var(--r-pill); margin-bottom: var(--sp-5); }
.crumb .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 980px) { .vhero-grid { grid-template-columns: 1fr; } }

/* hero instrument panel (CSS dashboard mock) */
.panel { background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); display: block; }
.panel-bar .title { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.panel-body { padding: 22px; }

/* ---------- SECTION HEADERS ---------- */
.sec-head { max-width: 52rem; margin-bottom: var(--sp-7); }
.sec-head h2 { font-size: var(--fs-h2); margin-top: 18px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: var(--fs-lead); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- SERVICES GRID ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.svc { position: relative; background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-6); overflow: hidden; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), var(--accent-glow), transparent 60%); opacity: 0; transition: opacity var(--t-med) var(--ease); pointer-events: none; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 28%, var(--hairline)); }
.svc:hover::after { opacity: 1; }
.svc-ic { width: 50px; height: 50px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 22px; transition: transform var(--t-med) var(--ease); }
.svc:hover .svc-ic { transform: scale(1.06) rotate(-3deg); }
.svc-ic svg { width: 23px; height: 23px; }
.svc h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; color: var(--ink); }
.svc p { color: var(--muted); font-size: var(--fs-sm); margin-top: 10px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.svc-tags span { font-size: 12px; color: var(--body); padding: 5px 11px; border-radius: var(--r-pill); background: var(--canvas-sunken); }
.svc .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: var(--fs-cap); font-weight: 600; color: var(--accent-deep); }
.svc .more svg { width: 15px; height: 15px; transition: transform var(--t-med) var(--ease); }
.svc:hover .more svg { transform: translateX(4px); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* feature wide tile */
.svc.span2 { grid-column: span 2; }
@media (max-width: 900px) { .svc.span2 { grid-column: span 2; } }
@media (max-width: 600px) { .svc.span2 { grid-column: span 1; } }

/* ---------- PLATFORM SHOWCASE ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.plat { background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-6); transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.plat:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--hairline)); box-shadow: var(--shadow-sm); }
.plat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.plat-logo { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); letter-spacing: -.01em; }
.plat-badge { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-deep); letter-spacing: .02em; }
.plat p { color: var(--muted); font-size: var(--fs-sm); }
.plat ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plat li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--body); }
.plat li svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 2px; }
@media (max-width: 820px) { .plat-grid { grid-template-columns: 1fr; } }

/* ---------- PROCESS TIMELINE ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.proc::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: var(--hairline); }
.proc-step { position: relative; padding: 0 14px; text-align: center; }
.proc-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--canvas-raised); border: 2px solid var(--hairline); display: grid; place-items: center; margin: 0 auto 20px; position: relative; z-index: 1; font-family: var(--font-mono); font-size: 14px; color: var(--accent-deep); transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.proc-step:hover .proc-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.proc-step h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.proc-step p { color: var(--muted); font-size: var(--fs-cap); margin-top: 8px; }
@media (max-width: 820px) {
  .proc { grid-template-columns: 1fr; gap: 8px; }
  .proc::before { left: 26px; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; }
  .proc-step { display: grid; grid-template-columns: 54px 1fr; gap: 4px 18px; text-align: left; align-items: start; padding: 14px 0; }
  .proc-dot { margin: 0; grid-row: span 2; }
  .proc-step h4 { grid-column: 2; }
  .proc-step p { grid-column: 2; margin-top: 4px; }
}

/* ---------- SECURITY / TRUST CALLOUT ---------- */
.trust-band { background: var(--dark); color: var(--on-dark); border-radius: clamp(20px,3vw,32px); padding: clamp(36px,5vw,64px); position: relative; overflow: hidden; }
.trust-band h3 { color: var(--on-dark); font-size: var(--fs-h3); max-width: 22ch; }
.trust-band p { color: var(--on-dark-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); overflow: hidden; margin-top: var(--sp-6); }
.trust-cell { background: var(--dark); padding: 24px; }
.trust-cell .ic { color: var(--accent-bright); margin-bottom: 14px; }
.trust-cell .ic svg { width: 22px; height: 22px; }
.trust-cell h5 { color: var(--on-dark); font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin: 0 0 6px; }
.trust-cell p { color: var(--on-dark-soft); font-size: var(--fs-cap); margin: 0; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- CASE STUDIES (/it/work) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-4); }
.case { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--canvas-raised); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); display: flex; flex-direction: column; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-media { aspect-ratio: 16/9; position: relative; background: var(--canvas-sunken); }
.case-media image-slot, .case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--canvas) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--accent-deep); }
.case-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.case-body p { color: var(--muted); font-size: var(--fs-sm); margin-top: 10px; }
.case-metrics { display: flex; gap: 28px; margin-top: auto; padding-top: 24px; }
.case-metrics .m .v { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent-deep); letter-spacing: -.02em; line-height: 1; }
.case-metrics .m .k { font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- EXPERTISE / STACK ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--sp-3); }
.stack-cell { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--canvas-raised); font-family: var(--font-mono); font-size: 13px; color: var(--body); text-align: center; padding: 10px; transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.stack-cell:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-deep); }
@media (max-width: 760px) { .stack-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) {
  .stack-grid { grid-template-columns: repeat(2,1fr); }
  .stack-cell { font-size: var(--fs-cap); padding: 8px; }
}

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.member { text-align: left; }
.member image-slot { width: 100%; aspect-ratio: 1; }
.member .nm { font-weight: 600; color: var(--ink); margin-top: 14px; font-size: var(--fs-sm); }
.member .rl { color: var(--muted); font-size: var(--fs-cap); margin-top: 2px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- QUOTE / CONTACT (vertical) ---------- */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.q-fields { display: flex; flex-direction: column; gap: 14px; }
.q-field label { display: block; font-size: var(--fs-cap); font-weight: 500; color: var(--body); margin-bottom: 7px; }
.q-field input, .q-field textarea, .q-field select { width: 100%; font-family: inherit; font-size: var(--fs-sm); color: var(--ink); background: var(--canvas-raised); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.q-field input:focus, .q-field textarea:focus, .q-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-aside { background: var(--accent-soft); border-radius: var(--r-lg); padding: var(--sp-6); }
.q-aside h4 { font-family: var(--font-body); font-weight: 600; color: var(--accent-ink); font-size: 1.15rem; }
.q-aside ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.q-aside li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--accent-ink); }
.q-aside li svg { width: 18px; height: 18px; flex: none; color: var(--accent-deep); margin-top: 2px; }
@media (max-width: 820px) { .quote-form, .q-row { grid-template-columns: 1fr; } }
