/* TechWare House — site styles (v2)
   Layout direction: classic IT-solutions agency template
   (dark top bar, white header, hero slider, "//" section labels, icon cards, dark feature bands) */

@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --navy: #0a1438;
  --navy-2: #111f52;
  --navy-3: #1a2a66;
  --blue: #1560e8;
  --blue-dark: #0e49bb;
  --teal: #10c2a8;
  --grad: linear-gradient(100deg, #1560e8 0%, #12b5c9 60%, #10c2a8 100%);
  --tint: #f2f6fd;
  --soft: #e6eefc;
  --white: #fff;
  --heading: #0a1438;
  --text: #56607a;
  --line: #e2e8f3;
  --wa: #1fb655;
  --red: #d42c41;
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 36px);
  --radius: 10px;
  --shadow: 0 20px 50px -22px rgba(10, 20, 56, .32);
  --shadow-sm: 0 8px 26px -14px rgba(10, 20, 56, .22);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--heading); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; border-radius: 4px; }
.icon { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(860px + var(--gutter) * 2); }
.center { text-align: center; }

/* ---------- Buttons & small parts ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 0; border-radius: 8px; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 12px 26px -12px rgba(21, 96, 232, .7); }
.btn-primary:hover { color: #fff; background-position: 100% 0; }
.btn-ghost { background: #fff; color: var(--heading); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-white { background: #fff; color: var(--heading); }
.btn-white:hover { color: var(--blue); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.btn-outline-light:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, .08); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--blue); }
.more .icon { transition: transform .2s; }
a:hover > .more .icon, a.more:hover .icon { transform: translateX(4px); }
.more-muted { color: var(--text); font-weight: 600; }
.label { display: inline-block; margin: 0 0 14px; font-size: .86rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label-light { background: linear-gradient(100deg, #7fb0ff, #5ff0d8); -webkit-background-clip: text; background-clip: text; }
.icon-box { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 16px; background: var(--soft); color: var(--blue); transition: background .25s, color .25s, transform .25s; }
.icon-box-sm { width: 54px; height: 54px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--heading); }
.chips-lg li { padding: 9px 18px; font-size: .97rem; }
.tick-list { display: grid; gap: 12px; margin: 22px 0 30px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--heading); }
.tick-list .icon { margin-top: 4px; padding: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; }
.tick-list-2 { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.tick-list-3 { grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.dot-list { display: grid; gap: 6px; margin: 0 0 22px; font-size: .93rem; }
.dot-list li { position: relative; padding-left: 18px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.h-sub { font-size: 1.5rem; margin: 44px 0 22px; }

/* Browser frame around screenshots */
.frame { display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(10, 20, 56, .08); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef2f9; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.frame-bar i:nth-child(2) { background: #ffc94d; }
.frame-bar i:nth-child(3) { background: #37d67a; }
.frame-bar b { flex: 1; min-width: 0; margin-left: 8px; padding: 3px 12px; border-radius: 6px; background: #fff; font-size: .72rem; font-weight: 600; color: #7a849b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; aspect-ratio: 800 / 475; object-fit: cover; object-position: top; background: var(--soft); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 16px; }
.topbar-list { display: flex; align-items: center; }
.topbar-list li { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.topbar-list li:first-child { padding-left: 0; border-left: 0; }
.topbar-list li:last-child { padding-right: 0; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: #5ff0d8; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 6px 24px -14px rgba(10, 20, 56, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); }
.brand img { width: 46px; height: 46px; border-radius: 8px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .76rem; font-weight: 600; color: var(--text); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: center; }
.nav-list > li { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 5px; height: var(--header-h); padding: 0 15px; border: 0; background: none; font-weight: 700; font-size: .98rem; color: var(--heading); }
.nav-link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-link:hover, .nav-link[aria-current] { color: var(--blue); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link .icon { opacity: .6; transition: transform .2s; }
.menu { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 10px; background: #fff; border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--heading); font-weight: 700; font-size: .95rem; }
.menu a:hover { background: var(--tint); color: var(--blue); }
.menu strong { display: block; }
.menu small { display: block; font-weight: 500; font-size: .8rem; line-height: 1.4; color: var(--text); }
.nav-list > .has-menu-wide { position: static; }
.header-inner { position: relative; }
.menu-wide { left: 0; right: 0; width: auto; padding: 14px 16px 16px; max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 12px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-top > strong { font-size: 1.05rem; color: var(--heading); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.menu-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--blue); }
.menu a.menu-all { flex: none; padding: 10px 18px; background: var(--grad); color: #fff; border-radius: 8px; }
.menu a.menu-all:hover { color: #fff; }
.nav-cta { padding: 13px 22px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 8px; background: var(--tint); place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s, background-color .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg, .page-head::before { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(620px 420px at 86% 18%, rgba(21, 96, 232, .55), transparent 70%),
    radial-gradient(520px 380px at 8% 100%, rgba(16, 194, 168, .28), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.3px) 0 0 / 26px 26px,
    linear-gradient(120deg, #0a1438, #111f52); }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding-block: 60px 112px; min-height: 500px; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-title { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.1; margin-bottom: 18px; }
.hero-lede { font-size: 1.1rem; color: rgba(255, 255, 255, .8); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slide .hero-copy > *, .hero-slide .hero-visual { transform: translateY(22px); opacity: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s; }
.hero-slide.is-active .hero-copy > *, .hero-slide.is-active .hero-visual { transform: none; opacity: 1; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .1s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .2s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .3s; }
.hero-slide.is-active .hero-visual { transition-delay: .2s; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 9% -5% -7% 9%; border-radius: 14px; background: var(--grad); opacity: .85; z-index: -1; }
.hero-visual .frame { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 62px; margin-inline: auto; pointer-events: none; }
.hero-dots { display: inline-flex; gap: 10px; pointer-events: auto; }
.hero-dots button { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: background .25s, width .25s; }
.hero-dots button[aria-selected="true"] { width: 56px; background: #5ff0d8; }

/* Feature boxes overlapping the hero */
.feature-strip { position: relative; z-index: 2; margin-top: -42px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.feature { padding: 30px 26px; border-left: 1px solid var(--line); color: var(--text); transition: background .25s, color .25s; }
.feature:first-child { border-left: 0; }
.feature h2 { font-size: 1.14rem; margin: 18px 0 6px; transition: color .25s; }
.feature p { margin: 0; font-size: .93rem; line-height: 1.55; }
.feature:hover { background: var(--navy); color: rgba(255, 255, 255, .78); }
.feature:hover h2 { color: #fff; }
.feature:hover .icon-box { background: var(--grad); color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section-tint { background: var(--tint); }
.section-dark { position: relative; isolation: isolate; background: var(--navy); color: rgba(255, 255, 255, .76); }
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.3px) 0 0 / 26px 26px, radial-gradient(600px 400px at 100% 0, rgba(21, 96, 232, .35), transparent 70%); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .label { background: linear-gradient(100deg, #7fb0ff, #5ff0d8); -webkit-background-clip: text; background-clip: text; }
.section-dark .tick-list li { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h1, .section-head h2 { margin-bottom: 0; }
.section-text { margin: 16px 0 0; font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 52px); }
.head-row .section-head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split-top { align-items: start; }
.split-flip > :first-child { order: 2; }
.split .section-head { margin-bottom: 22px; }

/* Inner page banner */
.page-head { position: relative; isolation: isolate; background: var(--navy); color: #fff; text-align: center; padding-block: clamp(56px, 7vw, 96px); overflow: hidden; }
.page-head::before { content: ""; }
.page-head h1 { color: #fff; margin-bottom: 0; }
.page-head .lede { max-width: 44em; margin: 16px auto 0; font-size: 1.08rem; color: rgba(255, 255, 255, .78); }
.crumbs ol { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; padding: 9px 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .9rem; font-weight: 600; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #5ff0d8; }

/* Collage (about) */
.collage { position: relative; padding: 0 12% 14% 0; }
.collage-main { width: 100%; border-radius: 14px; aspect-ratio: 4 / 3.3; object-fit: cover; }
.collage-float { position: absolute; right: 0; bottom: 0; width: 58%; }
.collage-badge { position: absolute; left: -14px; top: 26px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.35; }
.collage-badge strong { display: block; font-size: 1rem; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-grid > li { display: flex; }
.service-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 34px 28px 30px; border-radius: 12px; background: #fff; color: var(--text); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate; transition: transform .3s, box-shadow .3s, color .3s; }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #0a1438, #16307e); opacity: 0; transition: opacity .3s; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card h2, .service-card h3 { font-size: 1.2rem; margin: 22px 0 10px; transition: color .3s; }
.service-card p { font-size: .95rem; line-height: 1.6; margin-bottom: 20px; }
.service-card .more { margin-top: auto; }
a.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: rgba(255, 255, 255, .8); }
a.service-card:hover::before { opacity: 1; }
a.service-card:hover::after, .service-card-static::after { transform: scaleX(1); }
a.service-card:hover h2, a.service-card:hover h3 { color: #fff; }
a.service-card:hover .icon-box { background: var(--grad); color: #fff; transform: rotateY(180deg); }
a.service-card:hover .more { color: #5ff0d8; }
.service-card-static p { margin-bottom: 0; }
.card-no { font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }

/* Products */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product-grid-1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.product-card { display: grid; grid-template-rows: auto 1fr; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .product-shot { padding: 26px 26px 0; background: linear-gradient(160deg, var(--soft), #f7f9fe); }
.product-card .frame { border-radius: 10px 10px 0 0; box-shadow: 0 -6px 30px -12px rgba(10, 20, 56, .25); border-bottom: 0; }
.product-body { padding: 26px 28px 28px; }
.product-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.product-body p { font-size: .96rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 6px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.project-meta span { padding: 3px 12px; border-radius: 999px; background: var(--soft); color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.project-meta span + span { background: #e3f8f3; color: #08806d; }
.product-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-nav a { display: block; padding: 22px 24px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); transition: background .25s, transform .25s; }
.product-nav a:hover { background: var(--navy); transform: translateY(-4px); }
.product-nav strong { display: block; font-size: 1.15rem; color: var(--heading); }
.product-nav small { color: var(--text); font-size: .86rem; }
.product-nav a:hover strong { color: #fff; }
.product-nav a:hover small { color: rgba(255, 255, 255, .7); }
.product-detail .product-shot { display: block; }
.product-detail .frame { transition: transform .3s; }
.product-detail .product-shot:hover .frame { transform: translateY(-6px); }
.for-line { padding: 14px 18px; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 8px 8px 0; color: var(--heading); box-shadow: var(--shadow-sm); }
.mini-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.mini-products a { display: block; color: var(--heading); }
.mini-products .frame { margin-bottom: 16px; transition: transform .3s; }
.mini-products a:hover .frame { transform: translateY(-6px); }
.mini-products strong { display: block; font-size: 1.1rem; }
.mini-products small { color: var(--text); font-size: .88rem; }

/* Client projects */
.project { display: flex; flex-direction: column; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); color: var(--text); transition: transform .3s, box-shadow .3s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project[hidden] { display: none; }
.project-shot { position: relative; display: block; padding: 18px 18px 0; background: linear-gradient(160deg, var(--soft), #f7f9fe); overflow: hidden; }
.project-shot .frame { border-radius: 10px 10px 0 0; border-bottom: 0; box-shadow: 0 -4px 24px -12px rgba(10, 20, 56, .3); transition: transform .4s; }
.project:hover .project-shot .frame { transform: translateY(-6px) scale(1.015); }
.project-visit { position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; transform: translate(-50%, 70px); transition: transform .3s; box-shadow: var(--shadow); }
.project:hover .project-visit, .project-shot:focus-visible .project-visit { transform: translate(-50%, 0); }
.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.project-body p:last-child { margin: 0; font-size: .94rem; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rail { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 26px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 min(400px, 84vw); scroll-snap-align: start; scroll-margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; transition: transform .2s; }
.rail-btn:hover { transform: scale(1.08); }
.rail-btn-prev .icon { transform: rotate(180deg); }
.rail-foot { margin-top: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--tint); font-weight: 700; font-size: .93rem; color: var(--heading); transition: background .2s, color .2s; }
.filter:hover { background: var(--soft); }
.filter.is-active { background: var(--grad); color: #fff; }
.tabs { display: inline-flex; padding: 6px; margin-bottom: 44px; background: var(--tint); border-radius: 12px; gap: 4px; max-width: 100%; }
.tabs a { padding: 12px 22px; border-radius: 8px; font-weight: 700; color: var(--text); }
.tabs a[aria-current] { background: var(--navy); color: #fff; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.archive-grid button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.archive-grid button:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.archive-grid img { width: 100%; aspect-ratio: 750 / 533; object-fit: cover; }
.archive-grid h3 { font-size: 1rem; margin: 12px 0 0; }
.masonry { columns: 4 240px; column-gap: 20px; }
.masonry li { break-inside: avoid; margin-bottom: 20px; }
.masonry button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--tint); }
.masonry img { width: 100%; min-height: 90px; transition: transform .35s; }
.masonry span { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; text-align: left; font-size: .9rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(10, 20, 56, .9)); opacity: 0; transition: opacity .25s; }
.masonry button:hover span, .masonry button:focus-visible span { opacity: 1; }
.masonry button:hover img { transform: scale(1.05); }

/* Why / values */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-grid-4 { grid-template-columns: repeat(4, 1fr); }
.why-grid-2 { grid-template-columns: 1fr 1fr; }
.why-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 30px; align-items: stretch; }
.why-layout > .photo { height: 100%; aspect-ratio: auto !important; min-height: 420px; }
.why-grid li { display: flex; gap: 18px; padding: 28px 26px; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s; }
.why-grid-4 li { flex-direction: column; }
.why-grid li:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.why-grid li:hover .icon-box { background: var(--grad); color: #fff; }
.why-grid h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why-grid p { margin: 0; font-size: .94rem; line-height: 1.6; }
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mv { padding: 36px 30px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); border-bottom: 4px solid transparent; border-image: var(--grad) 1; border-image-width: 0 0 4px 0; }
.mv h2 { font-size: 1.4rem; margin: 22px 0 10px; }
.mv p { margin: 0; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry-grid li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; text-align: center; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s, background .25s; }
.industry-grid h3 { font-size: 1rem; margin: 0; transition: color .25s; }
.industry-icon { color: var(--blue); transition: color .25s; }
.industry-grid li:hover { transform: translateY(-5px); background: var(--navy); }
.industry-grid li:hover h3 { color: #fff; }
.industry-grid li:hover .industry-icon { color: #5ff0d8; }
.industry-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.industry-row { display: flex; flex-wrap: wrap; gap: 22px; padding: 30px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.industry-row > .photo { flex: 0 0 100%; }
.industry-row > div { flex: 1; min-width: 0; }
.industry-row h2 { font-size: 1.3rem; margin-bottom: 8px; }
.industry-row p { margin: 0 0 10px; }
.industry-clients { font-size: .92rem; color: var(--heading); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 36px; }
.steps li { position: relative; text-align: center; }
.steps li + li::before { content: ""; position: absolute; top: 74px; left: calc(-50% + 90px); right: calc(50% + 90px); border-top: 2px dashed #b9c6e2; }
.step-img { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.step-img img { width: 78px; height: 78px; object-fit: contain; }
.step-img b { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .95rem; }
.steps p { font-size: .94rem; margin: 0; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: flow; }
.flow-3 { grid-template-columns: repeat(3, 1fr); }
.flow li { position: relative; padding: 34px 26px 28px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.flow b { position: absolute; top: -22px; left: 26px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 1.1rem; box-shadow: 0 10px 20px -10px rgba(21, 96, 232, .8); }
.flow h3 { margin-bottom: 8px; }
.flow p { margin: 0; font-size: .94rem; }
.flow-dark li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.timeline { display: grid; gap: 22px; max-width: 940px; margin-inline: auto; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 36px; align-items: center; padding: 30px 34px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.timeline .step-img { margin: 0; }
.timeline h2 { font-size: 1.5rem; margin-bottom: 8px; }
.timeline p { margin: 0; }

/* Tech */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tech-box { padding: 26px 24px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.tech-box h3 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.tech-box .chips li { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.tech-table > div { display: grid; grid-template-columns: 340px 1fr; gap: 30px; padding-block: 30px; border-bottom: 1px solid var(--line); align-items: start; }
.tech-table > div:first-child { padding-top: 0; }
.tech-table dt { font-size: 1.35rem; font-weight: 800; color: var(--heading); }
.tech-table dt small { display: block; margin-top: 8px; font-size: .92rem; font-weight: 500; line-height: 1.6; color: var(--text); }
.tech-table dd { margin: 0; }

/* Testimonials */
.quote { position: relative; display: flex; flex-direction: column; margin: 0; padding: 38px 30px 28px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.quote::before { content: "\201C"; position: absolute; top: 10px; right: 26px; font-size: 6rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.quote blockquote { margin: 0 0 24px; flex: 1; }
.quote blockquote p { margin: 0; color: var(--heading); font-weight: 500; line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote figcaption img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.quote figcaption span { display: grid; line-height: 1.3; }
.quote figcaption strong { color: var(--heading); }
.quote figcaption small { color: var(--blue); font-weight: 600; }
.quote-wall { columns: 3 300px; column-gap: 26px; }
.quote-wall .quote { break-inside: avoid; margin-bottom: 26px; border: 1px solid var(--line); }
.client-strip { padding-block: 26px; background: var(--grad); overflow: hidden; }
.client-strip ul { display: flex; gap: 0; width: max-content; animation: slide 80s linear infinite; }
.client-strip li { padding-inline: 30px; font-size: 1.25rem; font-weight: 800; color: #fff; white-space: nowrap; }
.client-strip li::after { content: "✦"; margin-left: 60px; opacity: .6; }
.client-strip:hover ul { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* FAQ & contact boxes */
.faq details { margin-bottom: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 1.06rem; font-weight: 700; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { padding: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--blue); transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq details p { padding: 0 24px 22px; margin: 0; }
.faq > p { margin-top: 22px; }
.contact-boxes { display: grid; gap: 14px; }
.contact-boxes-row { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(44px, 6vw, 70px); }
.contact-box { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .25s, box-shadow .25s; }
a.contact-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
a.contact-box:hover .icon-box { background: var(--grad); color: #fff; }
.contact-box span:last-child { display: grid; min-width: 0; }
.contact-box small { font-size: .84rem; font-weight: 600; }
.contact-box strong { color: var(--heading); font-size: 1.02rem; overflow-wrap: anywhere; line-height: 1.35; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-grid a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--heading); transition: background .2s, color .2s; }
.link-grid a .icon:last-child { margin-left: auto; }
.link-grid a:hover { background: var(--navy); color: #fff; }

/* Service detail */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-main .section-head { margin-bottom: 24px; }
.prose-p { font-size: 1.05rem; }
.service-figure { margin: 36px 0 0; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.benefit-grid li { display: flex; gap: 14px; padding: 22px; border-radius: 12px; background: var(--tint); }
.benefit-grid .icon { margin-top: 2px; padding: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; }
.benefit-grid h3 { font-size: 1.06rem; margin-bottom: 4px; }
.benefit-grid p { margin: 0; font-size: .93rem; line-height: 1.55; }
.media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: center; }
.media-row-1 { grid-template-columns: minmax(0, 420px); }
.media-row img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--tint); }
.service-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side-box { padding: 28px; border-radius: 14px; background: var(--tint); }
.side-box h2 { font-size: 1.2rem; margin-bottom: 18px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 8px; background: #fff; font-weight: 700; font-size: .94rem; color: var(--heading); transition: background .2s, color .2s; }
.side-nav a:hover, .side-nav a[aria-current] { background: var(--grad); color: #fff; }
.side-cta { background: var(--navy); color: rgba(255, 255, 255, .78); text-align: center; background-image: radial-gradient(360px 240px at 100% 0, rgba(21, 96, 232, .6), transparent 70%); }
.side-cta .icon-box { margin: 0 auto 18px; background: var(--wa); color: #fff; }
.side-cta h2 { color: #fff; margin-bottom: 8px; }
.side-cta .btn { width: 100%; font-size: 1.1rem; }
.side-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .9rem; font-weight: 600; color: #9fc0ff; }
.side-link:hover { color: #fff; }
.dark-panel { padding: 36px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.dark-panel h3 { font-size: 1.4rem; }
.dark-panel p { margin-bottom: 24px; }

/* Team & video */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-lead { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; margin-bottom: 30px; }
.team-lead h3 { font-size: 1.25rem; }
.team-grid li { padding: 0 0 22px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; text-align: center; transition: transform .3s; }
.team-grid li:hover { transform: translateY(-6px); }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; background: var(--navy-2); }
.team-grid h3 { font-size: 1.08rem; margin: 0 12px 2px; }
.team-grid .role { margin: 0 12px 8px; font-size: .86rem; font-weight: 700; color: #5ff0d8; }
.team-grid p:last-child { margin: 0 16px; font-size: .88rem; line-height: 1.55; }
.video { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; width: 100%; box-shadow: var(--shadow); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 12px rgba(255, 255, 255, .25); transition: transform .25s; }
.video:hover .video-play { transform: scale(1.1); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.form { padding: clamp(24px, 4vw, 44px); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.form .section-head { margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: .93rem; color: var(--heading); }
.optional { font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font: inherit; color: var(--heading); background: var(--tint); border: 1.5px solid transparent; border-radius: 8px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 96, 232, .14); }
.has-error input, .has-error textarea { border-color: var(--red); }
.field-error { display: block; color: var(--red); font-size: .86rem; margin-top: 5px; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0 0 20px; padding: 14px 16px; border-radius: 8px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e2f8ee; color: #08603c; }
.form-status.is-error { background: #fdeaec; color: #9c1c2c; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.contact-side { padding: 38px 34px; border-radius: 14px; background: var(--navy); color: rgba(255, 255, 255, .8); background-image: radial-gradient(420px 300px at 100% 0, rgba(21, 96, 232, .6), transparent 70%); }
.contact-side h2 { color: #fff; font-size: 1.6rem; }
.contact-side h3 { color: #fff; margin: 34px 0 14px; }
.contact-side .btn { width: 100%; font-size: 1.1rem; }
.next-list { counter-reset: n; display: grid; gap: 14px; }
.next-list li { counter-increment: n; position: relative; padding-left: 44px; }
.next-list li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .88rem; }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: saturate(.9); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 0; }

/* ---------- CTA band & footer ---------- */
.cta-band { position: relative; isolation: isolate; background: var(--grad); color: #fff; padding-block: clamp(50px, 6vw, 80px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px) 0 0 / 24px 24px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band .label { background: none; color: rgba(255, 255, 255, .85); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p:last-child { margin: 0; color: rgba(255, 255, 255, .9); max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-actions .btn-white { font-size: 1.1rem; }
.cta-actions .btn-white .icon { color: var(--wa); }
.site-footer { position: relative; isolation: isolate; background: var(--navy); color: rgba(255, 255, 255, .7); padding-top: clamp(60px, 7vw, 90px); font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.3px) 0 0 / 26px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1.3fr; gap: 44px; }
.site-footer h2 { position: relative; font-size: 1.12rem; color: #fff; margin-bottom: 26px; padding-bottom: 14px; letter-spacing: 0; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--grad); }
.footer-h-gap { margin-top: 34px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .7); transition: color .2s, padding-left .2s; }
.site-footer nav a:hover { color: #5ff0d8; padding-left: 6px; }
.footer-brand p { margin: 22px 0; }
.footer-social { display: flex; gap: 10px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff !important; }
.social:hover { background: var(--grad); }
.site-footer address { display: grid; gap: 18px; }
.site-footer address > * { display: flex; gap: 14px; align-items: flex-start; }
.site-footer address .icon { margin-top: 4px; color: #5ff0d8; }
.site-footer address span span, .site-footer address a > span { display: grid; }
.site-footer address strong { color: #fff; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer address a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; margin-top: 60px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 26px; }
.footer-bottom a:hover { color: #fff; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(31, 182, 85, .7); transition: transform .2s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
@keyframes ping { to { transform: scale(1.7); opacity: 0; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 12, 32, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: 10px; background: #fff; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: #fff; font-weight: 700; }
.lightbox-close { position: absolute; top: -18px; right: -6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--heading); box-shadow: var(--shadow); }

/* Image areas (assets/photos) */
.photo { position: relative; margin: 0; width: 100%; border-radius: 14px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; color: #7f8db0; border: 2px dashed #b9c8e6; background: repeating-linear-gradient(135deg, #edf2fc 0 14px, #f5f8fe 14px 28px); }
.photo-empty figcaption { display: grid; gap: 4px; }
.photo-empty strong { color: var(--heading); font-size: .98rem; }
.photo-empty span { font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
.photo-block { margin-block: 36px; }
.section-head + .photo-block { margin-top: 0; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.photo-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.photo-grid .photo-wide { grid-row: span 2; height: 100%; aspect-ratio: auto !important; }
.photo-panel { margin-bottom: 26px; }
.section-dark .photo-empty { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .6); }
.section-dark .photo-empty strong { color: #fff; }

/* AI */
.ai-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 380px at 12% 100%, rgba(16, 194, 168, .3), transparent 70%); }
.ai-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; margin: 0 0 34px; }
.ai-list li { display: flex; gap: 14px; align-items: flex-start; }
.ai-list .icon { margin-top: 3px; color: #5ff0d8; }
.ai-list span { display: grid; font-size: .9rem; line-height: 1.45; }
.ai-list strong { color: #fff; font-size: 1rem; }
.ai-mock { position: relative; display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); backdrop-filter: blur(6px); max-width: 520px; margin-left: auto; }
.ai-mock::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 19px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.ai-mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #5ff0d8; }
.ai-mock-head span { display: grid; line-height: 1.3; }
.ai-mock-head strong { color: #fff; }
.ai-mock-head small { color: rgba(255, 255, 255, .6); font-size: .78rem; }
.ai-msg { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.5; max-width: 88%; }
.ai-user { justify-self: end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.ai-bot { justify-self: start; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .92); border-bottom-left-radius: 4px; }
.ai-typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: #5ff0d8; animation: blink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; }
.ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ai-tags span { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(95, 240, 216, .5); color: #5ff0d8; font-size: .76rem; font-weight: 700; }
.hero-visual .ai-mock { margin-inline: auto; gap: 8px; padding: 16px 18px; max-width: 480px; }
.hero-visual .ai-mock-head { padding-bottom: 10px; margin-bottom: 0; }
.hero-visual .ai-msg { padding: 9px 13px; font-size: .84rem; line-height: 1.4; }
.hero-visual .ai-tags { display: none; }
.hero-visual:has(.ai-mock)::before { display: none; }
.g-recaptcha { min-height: 78px; }

/* Grid children may shrink below their content width (long domain names in frames) */
.mini-products > *, .product-grid > *, .project-grid > *, .split > *, .hero-slide > *, .service-layout > *, .contact-grid > *, .archive-grid > *, .product-nav > *, .team-grid > *, .industry-grid > * { min-width: 0; }

/* Scroll reveal (only when JavaScript is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1081px) {
  .has-menu:hover .menu, .has-menu .menu:focus-within { opacity: 1; visibility: visible; transform: none; }
  .has-menu:hover .nav-link .icon { transform: rotate(180deg); }
}

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { display: flex; flex-direction: column; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card-body h2, .post-card-body h3 { font-size: 1.22rem; line-height: 1.32; margin-bottom: .45em; }
.post-card-body h2 a, .post-card-body h3 a { color: var(--heading); }
.post-card-body h2 a:hover, .post-card-body h3 a:hover { color: var(--blue); }
.post-card-body > p:not(.post-date) { margin: 0 0 16px; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 10px; font-size: .88rem; font-weight: 600; color: var(--text); }
.post-date span, .post-date { line-height: 1.3; }
.post-date span { display: inline-flex; align-items: center; gap: 6px; }
.post-date .icon { color: var(--teal); flex: none; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; }
.empty { max-width: 520px; margin-inline: auto; padding: 48px 28px; text-align: center; border: 2px dashed var(--line); border-radius: 16px; }
.empty p { margin: 0 0 22px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 54px; }
.pager ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; color: var(--heading); }
.pager a:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.pager a[aria-current] { background: var(--navy); box-shadow: none; color: #fff; }
.pager-gap { display: grid; place-items: center; min-width: 24px; color: var(--text); }

.post-wrap { max-width: 860px; }
.post-top, .post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.post-top { margin-bottom: 26px; }
.post-top .post-date { margin: 0; font-size: .95rem; }
.post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 34px; background: var(--soft); }
.post-intro { font-size: 1.2rem; line-height: 1.65; color: var(--heading); font-weight: 500; margin: 0 0 28px; padding-left: 20px; border-left: 4px solid var(--teal); }
.post-body { font-size: 1.06rem; line-height: 1.85; overflow-wrap: break-word; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: 1.65rem; margin: 1.7em 0 .6em; }
.post-body h3 { font-size: 1.32rem; margin: 1.6em 0 .5em; }
.post-body h4 { font-size: 1.12rem; margin: 1.5em 0 .5em; }
.post-body p { margin: 0 0 1.2em; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.post-body li { margin-bottom: .45em; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body img { height: auto; border-radius: 12px; margin-block: 1.4em; }
.post-body blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--tint); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; color: var(--heading); font-weight: 500; }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body pre { padding: 18px 20px; border-radius: 10px; background: var(--navy); color: #dbe6ff; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.post-body code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .92em; }
.post-body :not(pre) > code { padding: 2px 6px; border-radius: 5px; background: var(--soft); color: var(--heading); }
.post-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; }
.post-body th, .post-body td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.post-body th { background: var(--tint); color: var(--heading); }
.post-body iframe, .post-body video { max-width: 100%; border-radius: 12px; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-tags { margin: 34px 0 0; padding: 0; list-style: none; }
.post-foot { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-weight: 700; color: var(--heading); margin-right: 4px; font-size: .95rem; }
.share-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--tint); color: var(--heading); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.share-btn:hover { transform: translateY(-2px); color: #fff; background: var(--navy); }
.share-whatsapp:hover { background: var(--wa); }
.share-facebook:hover { background: #1877f2; }
.share-linkedin:hover { background: #0a66c2; }
.share-mail:hover, .share-copy:hover { background: var(--blue); }
.share-status { font-size: .88rem; font-weight: 700; color: #0b8a5f; }

@media (max-width: 1240px) {
  .menu-grid small { display: none; }
  .why-layout { grid-template-columns: 1fr; }
  .why-layout > .photo { min-height: 0; height: auto; aspect-ratio: 16 / 7 !important; }
  .nav-link { padding: 0 11px; font-size: .94rem; }
  .nav-link::after { left: 11px; right: 11px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid-4 { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-boxes-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 40px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; border-top: 1px solid var(--line); }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; height: auto; justify-content: space-between; padding: 17px 4px; font-size: 1.08rem; }
  .nav-link::after { display: none; }
  .has-menu.open .nav-link .icon { transform: rotate(180deg); }
  .menu, .menu-wide { position: static; width: auto; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-menu.open .menu { display: block; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid small { display: none; }
  .menu-wide { max-height: none; overflow: visible; }
  .menu-top > strong { display: none; }
  .menu-top { padding: 0 0 10px; border: 0; margin: 0; }
  .nav-cta { margin-top: 24px; }
  .topbar-hide { display: none; }

  .hero-slide { grid-template-columns: 1fr; padding-block: 48px 104px; min-height: 0; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .service-layout, .contact-grid { grid-template-columns: 1fr; }
  .split-flip > :first-child { order: 0; }
  .service-side { position: static; grid-template-columns: 1fr 1fr; }
  .service-side .side-box:first-child { grid-row: span 2; }
  .project-grid, .why-grid, .mv-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .ai-mock { margin-inline: auto; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .photo-wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9 !important; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .steps li + li::before { display: none; }
  .flow { grid-template-columns: 1fr 1fr; gap: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mini-products, .product-nav { grid-template-columns: 1fr 1fr; }
  .tick-list-3 { grid-template-columns: 1fr 1fr; }
  .tech-table > div { grid-template-columns: 1fr; gap: 18px; }
  .link-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.14rem; }
  .topbar-list li { padding: 0 12px; }
  .topbar { font-size: .8rem; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .feature-strip { margin-top: -30px; }
  .feature-grid, .service-grid, .service-grid-3, .product-grid, .project-grid, .why-grid, .why-grid-4, .mv-grid, .steps, .flow, .flow-3, .tech-grid, .footer-grid, .field-row, .benefit-grid, .tick-list-2, .tick-list-3, .service-side, .link-grid, .contact-boxes-row, .product-nav { grid-template-columns: 1fr; }
  .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .industry-grid, .team-grid, .mini-products, .archive-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ai-list, .why-grid-2, .photo-pair { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 18px; padding: 26px; text-align: center; }
  .timeline .step-img { margin-inline: auto; }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry li { margin-bottom: 12px; }
  .masonry span { opacity: 1; font-size: .78rem; padding: 20px 10px 8px; }
  .tabs { display: flex; }
  .tabs a { flex: 1; text-align: center; padding: 12px 8px; font-size: .9rem; }
  .collage { padding: 0 6% 20% 0; }
  .collage-badge { left: 8px; top: 12px; }
  .why-grid li { padding: 22px; }
  .industry-row { padding: 22px; gap: 16px; }
  .industry-row .icon-box { width: 54px; height: 54px; border-radius: 12px; }
  .rail-nav { display: none; }
  .footer-bottom ul { gap: 18px; flex-wrap: wrap; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .map iframe { height: 320px; }
  .client-strip li { font-size: 1.05rem; padding-inline: 18px; }
  .client-strip li::after { margin-left: 36px; }
}

@media (min-width: 1081px) and (max-height: 820px) {
  .menu-grid small { display: none; }
  .menu-grid a { padding-block: 8px; }
}

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

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .wa-float, .map, .hero-controls { display: none; }
}

@media (max-width: 1080px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; gap: 22px; }
  .post-intro { font-size: 1.08rem; }
  .post-body { font-size: 1rem; }
  .post-body h2 { font-size: 1.4rem; }
}
