/* Blue Blink One — site styles */

:root {
    --brand: #050dff;
    --brand-600: #0009d6;
    --brand-50: #eef0ff;
    --brand-100: #dfe2ff;
    --ink: #0b1020;
    --ink-2: #2a3145;
    --muted: #5b6478;
    --line: #e6e8ef;
    --surface: #f6f7fb;
    --white: #fff;
    --navy: #070b2a;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 8px 24px rgba(11, 16, 32, .06);
    --shadow-lg: 0 2px 4px rgba(11, 16, 32, .04), 0 24px 48px rgba(11, 16, 32, .10);
    --container: 1180px;
    --header-h: 72px;
    --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--brand); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--ink);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .98rem;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 8px 20px rgba(5, 13, 255, .25); }
.btn-primary:hover { background: var(--brand-600); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--brand-50); }

.btn-sm { padding: 9px 18px; font-size: .9rem; }

.link-arrow {
    font-family: var(--font-head);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }

.nav a:not(.btn) {
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--brand); background: var(--brand-50); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); }

.nav .btn { margin-left: 10px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s, top .25s, opacity .2s;
    content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 24px 28px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
    .nav a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
    .nav .btn { margin: 10px 0 0; }
}

/* Sections */

.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.split-head .section-head { margin-bottom: 0; }

@media (max-width: 720px) {
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 40px; }
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/world-map.svg") center 40% / 1400px auto no-repeat;
    opacity: .9;
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
}

.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    width: 100%;
    justify-self: end;
}

.measure-card {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #e9edf6;
    box-shadow: var(--shadow-lg);
}

.measure-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.05); }

.measure-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.measure-poly {
    fill: rgba(5, 13, 255, .16);
    stroke: var(--brand);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw 2.6s .4s cubic-bezier(.65, 0, .35, 1) forwards;
}
.measure-pt { fill: var(--white); stroke: var(--brand); stroke-width: 3; opacity: 0; animation: pop .3s forwards; }
.measure-pt:nth-of-type(1) { animation-delay: .4s; }
.measure-pt:nth-of-type(2) { animation-delay: .9s; }
.measure-pt:nth-of-type(3) { animation-delay: 1.4s; }
.measure-pt:nth-of-type(4) { animation-delay: 1.9s; }
.measure-pt:nth-of-type(5) { animation-delay: 2.4s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.measure-readout {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 22px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: rise .5s 2.9s forwards;
}
.measure-readout div { display: flex; flex-direction: column; }
.measure-readout small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.measure-readout strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); font-weight: 600; }

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
}
.float-chip img { width: 36px; height: 36px; border-radius: 9px; }
.float-chip small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .75rem; color: var(--muted); }
.float-chip.one { top: 28px; right: -22px; }
.float-chip.two { top: 46%; left: -34px; }

@media (prefers-reduced-motion: reduce) {
    .measure-poly { animation: none; stroke-dashoffset: 0; }
    .measure-pt, .measure-readout { animation: none; opacity: 1; }
}

@media (max-width: 960px) {
    .hero { padding: 56px 0 72px; }
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { justify-self: center; max-width: 460px; }
    .float-chip.one { right: 8px; top: -16px; }
    .float-chip.two { left: 8px; }
}

/* Page hero (inner pages) */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/world-map.svg") right -200px center / 1100px auto no-repeat;
    opacity: .7;
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 820px; }

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat { padding: 36px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.stat span { color: var(--muted); font-size: .95rem; }

@media (max-width: 760px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 28px 16px; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Feature (flagship) */

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.feature-media {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--brand-50), #fff 70%);
    padding: 40px;
    border: 1px solid var(--line);
}

.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050dff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px 18px;
    box-shadow: var(--shadow);
}
.platform i { font-size: 1.4rem; color: var(--brand); margin-bottom: 12px; display: block; }
.platform strong { display: block; font-family: var(--font-head); color: var(--ink); font-weight: 600; font-size: .98rem; }
.platform span { font-size: .85rem; color: var(--muted); }

@media (max-width: 900px) {
    .feature { grid-template-columns: 1fr; gap: 40px; }
    .feature-media { padding: 24px; }
}
@media (max-width: 520px) {
    .platforms { grid-template-columns: 1fr 1fr; gap: 10px; }
    .platform { padding: 16px 14px; }
}

/* Industry tiles (photos) */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
    isolation: isolate;
    text-align: left;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    width: 100%;
}
.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity .35s;
    z-index: 1;
}
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 11, 42, .85), rgba(7, 11, 42, 0) 60%);
    z-index: 1;
}
.tile-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    z-index: 2;
}
.tile h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.tile p {
    font-size: .9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .85);
    margin: 6px 0 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s, opacity .35s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover::before, .tile:focus-visible::before { opacity: .78; }
.tile:hover p, .tile:focus-visible p { max-height: 120px; opacity: 1; }
.tile:hover { text-decoration: none; }

@media (hover: none) {
    .tile p { max-height: 120px; opacity: 1; }
}

/* App cards */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }

.app-card header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    flex: none;
    box-shadow: 0 0 0 1px rgba(11, 16, 32, .06), 0 6px 14px rgba(11, 16, 32, .10);
    object-fit: cover;
    background: var(--surface);
}
.app-card h3 { margin: 0 0 4px; }
.app-card .app-tag { font-size: .85rem; color: var(--muted); }
.app-card > p { color: var(--muted); flex: 1; }

.app-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: linear-gradient(135deg, var(--brand-50), var(--white) 60%);
    padding: 40px;
}
.app-card.featured > p { flex: none; }

@media (max-width: 860px) {
    .app-card.featured { grid-template-columns: 1fr; padding: 28px; gap: 8px; }
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.badge {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line);
}
.badge.brand { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }

.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    transition: background-color .2s;
}
.store:hover { background: var(--brand); text-decoration: none; }
.store.alt { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.store.alt:hover { border-color: var(--ink); background: var(--white); }
.store i { font-size: 1rem; }

/* Cards (generic) */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.card .icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.card p { color: var(--muted); margin: 0; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Dark band */

.band {
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
    position: relative;
    overflow: hidden;
}
.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/world-map.svg") center / 1400px auto no-repeat;
    opacity: .08;
    filter: invert(1);
    pointer-events: none;
}
.band .container { position: relative; }
.band h2, .band h3 { color: var(--white); }
.band .eyebrow { color: #8f95ff; }
.band .lead { color: rgba(255, 255, 255, .7); }
.band .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.band .card p { color: rgba(255, 255, 255, .65); }
.band .card .icon { background: rgba(143, 149, 255, .14); color: #aeb2ff; }

/* CTA */

.cta {
    background: var(--brand);
    border-radius: 28px;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: rgba(255, 255, 255, .85);
    position: relative;
    overflow: hidden;
}
.cta::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; max-width: 520px; }
.cta > * { position: relative; z-index: 1; }

@media (max-width: 760px) {
    .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}

/* Clients */

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 56px;
}
.logo-row img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .25s, opacity .25s;
}
.logo-row img:hover { filter: none; opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
}
.chip i { color: var(--brand); }

/* Two column */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Industry dialog */

dialog.sheet {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(7, 11, 42, .35);
    color: var(--ink-2);
    overflow: auto;
}
dialog.sheet::backdrop { background: rgba(7, 11, 42, .6); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: rise .25s ease-out; }

.sheet-media { position: relative; height: 200px; overflow: hidden; background: var(--navy); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .9; }
.sheet-media::after { content: ""; position: absolute; inset: 0; background: var(--brand); mix-blend-mode: multiply; opacity: .55; }
.sheet-body { padding: 32px; }
.sheet-body ul { padding-left: 20px; margin: 0 0 20px; }
.sheet-body li { margin-bottom: 6px; }
.sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
}
.sheet-close:hover { background: var(--white); }
.sheet-apps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sheet-apps span { font-size: .85rem; color: var(--muted); margin-right: 4px; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }

.info-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; }
.info-list i {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand);
}
.info-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.info-list span, .info-list a { color: var(--muted); }
.info-list a:hover { color: var(--brand); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--brand-50);
}
.form-status { margin-top: 16px; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #0a7d3b; }
.form-status.error { color: #c22a2a; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 72px 0 32px;
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: background-color .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: .85rem; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Grid variants */

.tiles-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .tiles-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tiles-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tiles-4 .tile-body { padding: 14px; } .tiles-4 .tile h3 { font-size: .98rem; } }

.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-4 { grid-template-columns: 1fr; } }
.cards-4 .card { padding: 28px; }

.news time {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 500;
    color: var(--brand);
    background: var(--brand-50);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.tiles-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tiles-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px) {
    .tiles-3, .tiles-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tile-body { padding: 14px; }
    .tile h3 { font-size: .95rem; }
    .tile p { display: none; }
}

/* Clients */

.case-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: 24px; }
.case-icon { width: 48px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(11, 16, 32, .06); }
.case h3 { margin-bottom: 10px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 22px 24px 22px 76px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 22px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--brand);
    font-size: 1.1rem;
}
.steps strong { display: block; font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Language switcher */

.lang { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.nav .lang-menu a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: .92rem;
}
.lang-menu a small { color: var(--muted); font-weight: 500; }
.nav .lang-menu a[aria-current="true"] { color: var(--brand); background: var(--brand-50); }

@media (max-width: 860px) {
    .lang { order: 10; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
    .lang-btn { display: none; }
    .lang-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .nav .lang-menu a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
    .lang-menu a small { display: none; }
}

/* Locale tweaks */

:lang(ja) body, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4,
:lang(ja) .btn, :lang(ja) .nav a, :lang(ja) .eyebrow {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
    letter-spacing: 0;
}
:lang(ja) h1, :lang(ja) h2 { line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; -webkit-hyphens: auto; }

@media (max-width: 560px) {
    .btn { white-space: normal; text-align: center; }
}
