/* =========================================================
   Pacific Technologies: corporate site
   Colours follow brand-palette.html (approved pairings only)
   Desktop-first layout with dedicated mobile patterns
   ========================================================= */
:root {
  --brand: #008FB2;          /* Pacific Blue: logo, large text, graphics */
  --blue-100: #D4F3FF;
  --primary: #057491;        /* White on Blue 600 / Blue 600 on White */
  --primary-hover: #015C73;  /* Blue 700 on Ice */
  --ice: #ECF9FF;
  --sky: #85CDE7;            /* Sky on Deep Ocean */
  --ocean: #002E3C;          /* Deep Ocean */
  --abyss: #001A23;
  --ink: #0F1D22;
  --muted: #575F63;
  --mist: #F5FBFE;
  --mist-text: #A9C3CC;      /* Mist text on Deep Ocean */
  --line: #DEE8EC;
  --coral: #EE6951;          /* Ink on Coral */
  --success: #17784A;
  --error: #C62F3B;
  --white: #FFFFFF;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 1px 2px rgba(0, 46, 60, 0.05), 0 8px 24px -8px rgba(0, 46, 60, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(0, 46, 60, 0.3);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}
@supports (color: color(display-p3 0 0 0)) {
  :root { --brand: color(display-p3 0.243 0.553 0.682); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--primary); color: var(--white); font-weight: 600; }
.skip:focus { top: 12px; }

h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
.eyebrow--light { color: var(--sky); }
.eyebrow--light::before { background: var(--sky); }

.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--ice); color: var(--primary-hover); }
.tag--dark { background: rgba(133, 205, 231, 0.15); color: var(--sky); }
.cta__tag { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 0.78rem; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 0.93rem var(--font); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { border-color: var(--primary); color: var(--primary-hover); background: var(--white); }
.btn--ghost:hover { background: var(--ice); }
.btn--white { background: var(--white); color: var(--primary-hover); }
.btn--white:hover { background: var(--ice); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--primary); cursor: pointer; flex: none; }

/* ---------- Utility bar ---------- */
.utility { background: var(--abyss); color: var(--mist-text); font-size: 0.82rem; }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.utility__item { display: inline-flex; align-items: center; gap: 8px; }
.utility__item svg { width: 15px; height: 15px; color: var(--sky); }
.utility a.utility__item { color: var(--white); font-weight: 600; }
.utility__right { display: flex; align-items: center; gap: 28px; }
.utility__badges b { color: var(--white); font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(0, 46, 60, 0.45); }
.header__inner { position: relative; height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 0.94rem; font-weight: 500; height: 100%; }
.nav > a, .nav__trigger { display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; color: var(--muted); position: relative; transition: color 0.2s; }
.nav > a::after, .nav__trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.nav > a:hover, .nav__trigger:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }
.nav__trigger svg { width: 16px; height: 16px; transition: transform 0.25s; }
.nav__mega { height: 100%; display: flex; }
.nav__mega:hover .nav__trigger svg, .nav__mega:focus-within .nav__trigger svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px;
  display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; gap: 28px;
  padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.nav__mega:hover .mega, .nav__mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.mega__col a { display: block; padding: 7px 0; color: var(--ink); font-size: 0.92rem; transition: color 0.2s, transform 0.2s; }
.mega__col a:hover { color: var(--primary); transform: translateX(3px); }
.mega__promo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border-radius: var(--r); background: var(--ocean); color: var(--white); }
.mega__promo b { font-size: 1.1rem; }
.mega__promo span:last-child { color: var(--mist-text); font-size: 0.9rem; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__call { display: none; }
.burger { display: none; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer (mobile menu) */
.drawer { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 0; }
.hero__frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); min-height: clamp(520px, 72vh, 680px); display: flex; align-items: center; color: var(--white); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 20s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 26, 35, 0.94) 0%, rgba(0, 26, 35, 0.9) 56%, rgba(0, 46, 60, 0.35) 82%, rgba(0, 46, 60, 0.12) 100%); }
.hero__content { max-width: 640px; padding: clamp(40px, 6vw, 80px); padding-bottom: clamp(88px, 9vw, 120px); }
.hero__content .tag { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 20px; }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--mist-text); max-width: 540px; margin-bottom: 32px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.statbar { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: -56px auto 0; width: calc(100% - 2 * clamp(24px, 4vw, 64px)); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.statbar__item { padding: 26px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.statbar__item + .statbar__item { border-left: 1px solid var(--line); }
.statbar__item b { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--brand); }
.statbar__item > span { color: var(--muted); font-size: 0.88rem; font-weight: 500; }

/* ---------- Trusted marquee ---------- */
.trusted { display: flex; align-items: center; gap: 32px; width: min(1240px, 100% - 48px); margin: 56px auto 0; }
.trusted__label { margin: 0; flex: none; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; gap: 48px; padding-right: 48px; }
.marquee__set span { white-space: nowrap; font-weight: 700; font-size: 1.02rem; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section--ocean { background: var(--ocean); color: var(--white); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.head > div { max-width: 640px; }
.head h2 { margin-bottom: 0; }
.head__aside { max-width: 360px; color: var(--muted); margin: 0; }
.head--center { flex-direction: column; align-items: center; text-align: center; gap: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__copy > p { color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.vm__item { padding: 20px; border-radius: var(--r); background: var(--mist); border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.vm__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.vm__item p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.about__media { position: relative; aspect-ratio: 1 / 1.05; }
.about__img { position: absolute; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about__img--a { left: 0; top: 0; width: 82%; height: 78%; }
.about__img--b { right: 0; bottom: 0; width: 52%; height: 46%; border: 6px solid var(--white); }
.about__badge { position: absolute; left: 24px; bottom: 32px; padding: 16px 20px; border-radius: var(--r); background: var(--ocean); color: var(--white); box-shadow: var(--shadow-lg); max-width: 220px; }
.about__badge b { display: block; }
.about__badge span { font-size: 0.84rem; color: var(--mist-text); }

.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 88px); }
.sector { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.sector:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.sector__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--primary); flex: none; }
.sector b { font-size: 0.97rem; line-height: 1.3; }

/* Solutions explorer (desktop: tabs | mobile: accordion) */
.explorer { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.explorer__tabs { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 24px); }
.xtab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.xtab span { font-size: 0.8rem; color: var(--primary); font-weight: 800; }
.xtab svg { margin-left: auto; opacity: 0.5; transition: transform 0.25s, opacity 0.25s; }
.xtab:hover { border-color: var(--brand); }
.xtab.is-active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.xtab.is-active span { color: var(--sky); }
.xtab.is-active svg { opacity: 1; transform: translateX(3px); }
.xpanel { display: none; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.xpanel.is-active { display: block; animation: fadeUp 0.45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.xacc { display: none; }
.xpanel__body { display: grid; grid-template-columns: 1fr 1.15fr; }
.xpanel__img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.xlist { padding: 28px 32px; display: grid; gap: 4px; align-content: center; }
.xlist li { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.xlist li:last-child { border-bottom: 0; }
.xlist li::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.xlist b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.xlist span { color: var(--muted); font-size: 0.92rem; }

/* Services + team slider (desktop: grid | mobile: swipe) */
.slider__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.slider--team .slider__track { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.slider__dots { display: none; }
.svc { position: relative; padding: 30px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc__tag { position: absolute; top: 22px; right: 22px; }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--primary); margin-bottom: 22px; transition: background 0.3s, color 0.3s; }
.svc__icon svg { width: 24px; height: 24px; }
.svc:hover .svc__icon { background: var(--primary); color: var(--white); }
.svc h3 { font-size: 1.12rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.steps::before { content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px); }
.steps li { position: relative; text-align: center; }
.steps__n { position: relative; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--brand); color: var(--primary); font-weight: 800; transition: background 0.2s, color 0.2s; }
.steps li:hover .steps__n { background: var(--primary); border-color: var(--primary); color: var(--white); }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Partners */
.partners { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.partners__lead { color: var(--mist-text); max-width: 520px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cred { padding: 26px; border-radius: var(--r); background: var(--ocean); border: 1px solid rgba(133, 205, 231, 0.25); transition: border-color 0.3s, transform 0.3s var(--ease); }
.cred:hover { border-color: var(--sky); transform: translateY(-3px); }
.cred span { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.cred b { font-size: 1.5rem; }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 28px; }
.brands span { font-weight: 700; font-size: 0.92rem; color: var(--mist-text); }

/* Clients */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.clients__media { position: relative; }
.clients__media img { border-radius: var(--r-lg); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.clients__quote { position: absolute; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r); background: var(--ocean); color: var(--white); }
.clients__quote b { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--sky); }
.clients__quote span { color: var(--mist-text); font-size: 0.92rem; }
.clients__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.clients__list li { padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); border-left: 3px solid var(--brand); display: flex; flex-direction: column; transition: background 0.2s, transform 0.2s; }
.clients__list li:hover { background: var(--mist); transform: translateX(3px); }
.clients__list b { font-size: 0.97rem; }
.clients__list span { font-size: 0.83rem; color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.why__item { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.why__item span { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand); margin-bottom: 18px; letter-spacing: -0.04em; }
.why__item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why__item p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Team */
.member { margin: 0; }
.member__img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--ice); }
.member__img::before { content: attr(data-i); position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--primary); }
.member__img img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease); }
.member:hover .member__img img { transform: scale(1.04); }
.member figcaption { padding-top: 16px; display: flex; flex-direction: column; }
.member b { font-size: 1.08rem; }
.member span { color: var(--primary); font-size: 0.9rem; font-weight: 500; }

/* Contact */
.section--contact { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact__panel { position: relative; overflow: hidden; padding: clamp(32px, 4.5vw, 56px); background: radial-gradient(80% 60% at 100% 0%, rgba(5, 116, 145, 0.5), transparent 70%), var(--ocean); color: var(--white); }
.contact__panel::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(133, 205, 231, 0.1); pointer-events: none; }
.contact__panel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact__panel > p { color: var(--mist-text); }
.info { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 32px; }
.info li { display: flex; gap: 14px; align-items: flex-start; }
.info__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(133, 205, 231, 0.15); color: var(--sky); flex: none; }
.info b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.info div > span { color: var(--mist-text); font-size: 0.92rem; }
.info div > a { color: var(--white); font-weight: 700; font-size: 1.1rem; }

.form { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 48px); background: var(--white); }
.form h3 { font-size: 1.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; }
.form input:not([type="checkbox"]), .form textarea { width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--mist); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 143, 178, 0.14); }
.form .is-invalid { border-color: var(--error) !important; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choices label { display: inline-flex; position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--ink); background: var(--white); transition: all 0.2s; }
.choices input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--white); }
.choices input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.form__status { margin: 0; min-height: 1.4em; font-size: 0.92rem; font-weight: 600; color: var(--success); }

/* Footer */
.footer { background: var(--abyss); color: var(--mist-text); padding: 72px 0 28px; font-size: 0.94rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; }
.footer h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 14px; }
.footer__grid a, .footer__grid span { display: block; padding: 5px 0; }
.footer__grid a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem; }

/* Mobile action bar */
.actionbar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET (≤ 1100px)
   ========================================================= */
@media (max-width: 1100px) {
  .utility__badges { display: none; }
  .nav > a, .nav__trigger { padding: 0 9px; }
  .mega { grid-template-columns: repeat(2, 1fr); }
  .mega__promo { grid-column: span 2; }
  .slider__track { grid-template-columns: repeat(2, 1fr); }
  .slider--team .slider__track { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .explorer { grid-template-columns: 260px 1fr; }
  .xpanel__body { grid-template-columns: 1fr; }
  .xpanel__img img { min-height: 0; aspect-ratio: 16 / 8; }
}

/* =========================================================
   MOBILE (≤ 900px): app-like patterns
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .wrap { width: min(100% - 32px, 640px); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .utility { display: none; }

  /* Header */
  .header__inner { gap: 12px; }
  .logo img { height: 34px; }
  .nav { display: none; }
  .header__cta { display: none; }
  .header__call, .burger { display: grid; }
  .header__actions { margin-left: auto; }

  /* Drawer */
  .drawer {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .drawer.is-open { opacity: 1; visibility: visible; transform: none; }
  .drawer__nav a { display: flex; align-items: baseline; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
  .drawer__nav a span { font-size: 0.8rem; font-weight: 800; color: var(--primary); }
  .drawer__nav a.is-active { color: var(--primary); }
  .drawer__foot { display: grid; gap: 10px; padding-top: 24px; }
  .drawer__foot p { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; text-align: center; }

  /* Hero: image on top, copy on Deep Ocean */
  .hero { padding: 12px 0 0; }
  .hero__frame { flex-direction: column; align-items: stretch; min-height: 0; border-radius: var(--r-lg); background: var(--ocean); }
  .hero__bg { position: relative; height: 230px; z-index: 0; }
  .hero__frame::before { inset: 0 0 auto 0; height: 230px; z-index: 1; background: linear-gradient(180deg, rgba(0, 46, 60, 0) 40%, var(--ocean) 100%); }
  .hero__content { position: relative; z-index: 2; padding: 22px 22px 84px; }
  .hero__content .tag { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero__lead { font-size: 1rem; margin-bottom: 24px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .statbar { grid-template-columns: 1fr 1fr; width: calc(100% - 24px); margin-top: -60px; }
  .statbar__item { padding: 18px 12px; }
  .statbar__item:nth-child(3) { border-left: 0; }
  .statbar__item:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .trusted { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 40px; text-align: center; width: 100%; }
  .marquee__set span { font-size: 0.95rem; }

  .section { padding: 64px 0; }
  .head { flex-direction: column; align-items: start; gap: 10px; margin-bottom: 28px; }
  .head--center { align-items: center; }

  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; aspect-ratio: 1 / 0.9; }
  .vm { grid-template-columns: 1fr; }
  .sectors { margin-top: 40px; gap: 10px; }
  .sector { flex-direction: column; align-items: flex-start; padding: 16px; gap: 10px; }
  .sector b { font-size: 0.9rem; }

  /* Explorer → accordion */
  .explorer { grid-template-columns: 1fr; }
  .explorer__tabs { display: none; }
  .explorer__panels { display: grid; gap: 10px; }
  .xpanel, .xpanel.is-active { display: block; animation: none; box-shadow: none; }
  .xacc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 16px 18px; border: 0; background: var(--white); text-align: left; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
  .xacc span { font-size: 0.78rem; font-weight: 800; color: var(--primary); }
  .xacc svg { margin-left: auto; transition: transform 0.3s var(--ease); color: var(--primary); }
  .xpanel.is-open .xacc { background: var(--ocean); color: var(--white); }
  .xpanel.is-open .xacc span { color: var(--sky); }
  .xpanel.is-open .xacc svg { transform: rotate(180deg); color: var(--sky); }
  .xpanel__body { display: none; }
  .xpanel.is-open .xpanel__body { display: block; animation: fadeUp 0.35s var(--ease); }
  .xpanel__img img { aspect-ratio: 16 / 9; }
  .xlist { padding: 8px 18px 14px; }

  /* Sliders → swipe */
  .slider__track, .slider--team .slider__track {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 8px; scroll-padding-inline: 16px;
  }
  .slider--team .slider__track { grid-auto-columns: 66%; }
  .slider__track::-webkit-scrollbar { display: none; }
  .slider__track > * { scroll-snap-align: start; }
  .slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .slider__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width 0.3s var(--ease), background 0.3s; }
  .slider__dots i.is-on { width: 24px; background: var(--primary); }
  .svc:hover { transform: none; }

  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .steps::before { top: 23px; bottom: 23px; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky) 0 8px, transparent 8px 16px); }
  .steps li { display: flex; gap: 16px; text-align: left; padding: 10px 0; }
  .steps__n { margin: 0; flex: none; }

  .partners { grid-template-columns: 1fr; }
  .creds { gap: 10px; }
  .cred { padding: 18px; }
  .cred b { font-size: 1.2rem; }

  .clients { grid-template-columns: 1fr; }
  .clients__list { grid-template-columns: 1fr; gap: 8px; }
  .why { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .why__item { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .why__item span { grid-row: span 2; font-size: 1.8rem; margin: 0; }

  .contact { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .form__row { grid-template-columns: 1fr; }

  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }

  /* Bottom action bar */
  .actionbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(0, 46, 60, 0.4);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
  }
  .actionbar.is-visible { transform: none; }
  .actionbar__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--primary); color: var(--primary-hover); font-weight: 700; }
  .actionbar__quote { flex: 1; min-height: 48px; }
}

@media (max-width: 380px) {
  .sectors { grid-template-columns: 1fr; }
  .sector { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
