@font-face {
    font-family: Poppins;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Poppins-Regular.ttf") format("truetype");
}
@font-face {
    font-family: Poppins;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/Poppins-Medium.ttf") format("truetype");
}
@font-face {
    font-family: Poppins;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/Poppins-SemiBold.ttf") format("truetype");
}

:root {
    --bg: #fcfcfc;
    --surface: #ffffff;
    --fg: #3a3a3c;
    --heading: #151515;
    --muted: #7a7a7e;
    --border: #e6e6e8;
    --accent: #dc1423;
    --accent-dark: #be141e;
    --inverse-bg: #151515;
    --inverse-fg: rgba(255, 255, 255, 0.72);
    --font: Poppins, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
    --radius: 0;
    --shadow: 0 10px 30px rgba(21, 21, 21, 0.08);
    --header-height: 116px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--inverse-bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 400 16px/1.7 var(--font);
}
:lang(ja) { word-break: auto-phrase; line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.25em; }
h1, h2, h3 { color: var(--heading); font-weight: 500; line-height: 1.25; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 96px 0; }
.section-title { text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-intro { text-align: center; max-width: 560px; margin: 0 auto 32px; color: var(--muted); }

.button {
    display: inline-block;
    padding: 12px 30px;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font: 500 0.85rem/1.4 var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.button:hover, .button:focus-visible { background: var(--accent-dark); }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--inverse-bg);
    color: var(--inverse-fg);
}
.site-header .inner {
    max-width: 1200px;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 36px; }
.site-nav a {
    color: var(--inverse-fg);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current] { color: #fff; }
.site-nav > ul > li > a { display: block; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav > ul > li > a[aria-current] { border-bottom-color: var(--accent); }
.has-submenu { position: relative; }
.submenu {
    position: absolute;
    top: calc(100% - 2px);
    left: -20px;
    min-width: 260px;
    padding: 12px 0;
    background: var(--inverse-bg);
    border-top: 2px solid var(--accent);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 20px; font-size: 1rem; }
.languages { display: flex; gap: 2px; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.languages a { padding: 6px 10px; font-size: 0.9rem; letter-spacing: 0.08em; border-radius: var(--radius); }
.languages a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.12); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    transition: transform 0.2s, background-color 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.site-header.no-transition, .site-header.no-transition * { transition: none !important; }

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px 24px 48px;
        overflow-y: auto;
        background: var(--inverse-bg);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s, visibility 0.2s;
    }
    .site-header.is-open .site-nav { visibility: visible; opacity: 1; }
    .site-nav > ul { flex-direction: column; gap: 0; }
    .site-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .site-nav > ul > li > a { padding: 12px 0; font-size: 1.1rem; border-bottom: 0; }
    .site-nav > ul > li > a[aria-current] { color: #fff; }
    .site-nav .submenu {
        position: static;
        min-width: 0;
        padding: 0 0 12px 32px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .submenu a { padding: 7px 0; font-size: 0.95rem; }
    .languages { padding: 0; border: 0; }
    .languages a { padding: 8px 14px; font-size: 0.9rem; }
}

/* Hero */

.hero {
    position: relative;
    height: min(78vh, 680px);
    min-height: 460px;
    overflow: hidden;
    background: var(--inverse-bg);
    color: #fff;
}
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s, visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}
.slide.is-active .slide-bg { transform: scale(1); }
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) 70%);
}
.slide-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    padding: 0 24px;
    text-align: center;
}
.slide-content h1, .slide-content .slide-title {
    margin: 0 0 0.4em;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 500;
    line-height: 1.15;
    max-width: none;
    white-space: nowrap;
}
.slide-content p { max-width: 632px; margin-left: auto; margin-right: auto; font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.6em; }
.slider-dots {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.slider-dots button {
    width: 36px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.slider-dots button::before {
    content: "";
    display: block;
    height: 3px;
    background: rgba(255, 255, 255, 0.45);
    transition: background-color 0.2s;
}
.slider-dots button[aria-current="true"]::before { background: var(--accent); }

/* Services intro */

.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: center;
}
.services-card {
    position: relative;
    display: block;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 5% / 3.5%;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #fff;
    text-decoration: none;
}
.services-card img { width: 100%; height: auto; }
.services-card-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 120px 18%;
    background: radial-gradient(closest-side, #000, transparent);
    text-align: center;
    font-size: 0.9rem;
}
.services-card-title { display: block; font-size: 1.6rem; font-weight: 500; margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    color: var(--fg);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s;
}
a.tile:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.tile h2 { font-size: 1.5rem; }
.tile h3 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tile p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.tile-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Projects */

.projects { padding-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filters button {
    padding: 8px 16px;
    border: 0;
    background: none;
    color: var(--muted);
    font: 500 0.85rem var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.filters button:hover { color: var(--heading); }
.filters button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--inverse-bg);
}
.project[hidden] { display: none; }
.project img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; transition: transform 0.6s, opacity 0.4s; }
.project h3, .project p {
    position: absolute;
    left: 24px;
    right: 24px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
}
.project h3 { bottom: 50%; font-size: 1.2rem; transform: translateY(12px); }
.project p { top: 52%; font-size: 0.85rem; line-height: 1.5; transform: translateY(12px); }
.project:hover img, .project:focus-visible img { transform: scale(1.05); opacity: 0.2; }
.project:hover h3, .project:hover p, .project:focus-visible h3, .project:focus-visible p { opacity: 1; transform: none; }

/* Downloads */

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.app {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.app-icon { flex: none; width: 64px; height: 64px; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.app h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.app p { font-size: 0.9rem; color: var(--muted); }
.app .app-tagline { color: var(--fg); font-weight: 500; margin-bottom: 0.4em; }
.app-note { font-style: italic; }
.app:has(.badges) { position: relative; padding-bottom: 84px; }
.badges { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; justify-content: center; gap: 8px; margin: 0; }
.badges img { height: 40px; width: auto; }

/* Experience */

.experience { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.experience-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.years { display: flex; align-items: center; gap: 32px; }
.years-number {
    flex: none;
    font-size: clamp(10rem, 22vw, 17rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: right;
    background: linear-gradient(135deg, var(--accent), #7a0a12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.years-visual { position: relative; flex: none; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.years h2 { font-size: 1.6rem; padding-left: 16px; border-left: 3px solid var(--accent); }
.years p { color: var(--muted); font-size: 0.9rem; }
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.counters > div {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 24px 12px;
    border-color: var(--border);
    border-style: solid;
    border-width: 0;
}
.counters > div:nth-child(odd) { border-right-width: 1px; }
.counters > div:nth-child(-n+2) { border-bottom-width: 1px; }
.counters dt { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
[data-count] { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.counters dd { margin: 0; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 400; line-height: 1.1; color: var(--heading); }

/* Partners */

.partners { padding-bottom: 0; }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
.partner { position: relative; overflow: hidden; }
.partner img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter 0.5s, transform 0.6s; }
.partner:hover img { filter: none; transform: scale(1.04); }
.partner-text {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.partner-text h3 { font-size: 1.05rem; margin: 0 0 4px; }
.partner-text p { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); }
.partner-text a { color: #fff; text-decoration: none; }
.partner-text a:hover { text-decoration: underline; }

/* Get the most */

.more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.more h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.tab-list { display: flex; gap: 0; margin: 24px 0 28px; border-bottom: 1px solid var(--border); }
.tab-list button {
    flex: 1;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    color: var(--muted);
    font: 400 1.6rem var(--font);
    cursor: pointer;
}
.tab-list button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel h3 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tab-panel p { font-size: 0.95rem; }
.tab-panel { margin-bottom: 24px; }
.tabs.is-ready { display: grid; }
.tabs.is-ready .tab-panel { grid-area: 2 / 1; transition: opacity 0.3s, visibility 0.3s; }
.tabs.is-ready .tab-panel[hidden] { display: block; visibility: hidden; opacity: 0; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.phone { position: relative; margin: 0; }
.phone figcaption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 120px 18%;
    background: radial-gradient(closest-side, #000, transparent);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
}
.phone strong { display: block; margin-bottom: 12px; font-size: 1.4rem; font-weight: 500; line-height: 1.2; }

/* Page header */

.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(240px, 32vw, 380px);
    overflow: hidden;
    background: var(--inverse-bg);
    color: #fff;
    text-align: center;
}
.page-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: page-header-zoom 6s ease-out both; }
@keyframes page-header-zoom { from { transform: scale(1.06); } }
.page-header-content {
    position: relative;
    padding: 80px 18%;
    background: radial-gradient(closest-side, #000, transparent);
}
.page-header h1 { margin: 0 0 0.3em; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; white-space: nowrap; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, 0.5); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: rgba(255, 255, 255, 0.7); }

/* About */

.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.why-image { width: 100%; height: auto; box-shadow: var(--shadow); }
.why h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.why .tab-list button { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bars { display: grid; gap: 20px; margin-top: 24px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 0.9rem; }
.bar-value { color: var(--accent); font-weight: 500; }
.bar-track { grid-column: 1 / -1; height: 4px; background: var(--border); }
.bar-track span { display: block; width: calc(var(--value) * 1%); height: 100%; background: var(--accent); transform-origin: left; transition: transform 1.2s ease-out; }
.js .reveal:not(.is-visible) .bar-track span { transform: scaleX(0); }
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 0; }
.ring { position: relative; margin: 0; text-align: center; }
.ring svg { display: block; width: 100%; max-width: 140px; margin: 0 auto; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring circle:first-child { stroke: var(--border); }
.ring circle + circle { stroke: var(--accent); stroke-dasharray: 440; stroke-dashoffset: calc(440 * (100 - var(--value)) / 100); transition: stroke-dashoffset 1.2s ease-out; }
.js .reveal:not(.is-visible) .ring circle + circle { stroke-dashoffset: 440; }
.ring-value { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 140px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--heading); }
.ring figcaption { margin-top: 12px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
.checklist li { position: relative; padding-left: 22px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--accent); }

.stats-band { position: relative; overflow: hidden; background: var(--inverse-bg); color: #fff; }
.stats-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    padding-top: 72px;
    padding-bottom: 72px;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), transparent);
    text-align: center;
}
.stats > div { display: flex; flex-direction: column-reverse; gap: 8px; }
.stats dd { margin: 0; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.stats dt { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* Services */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover, .service-card:focus-visible { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card h2 { margin-bottom: 0; font-size: 1.15rem; letter-spacing: 0.04em; }
.service-card h2::after { content: ""; display: block; width: 40px; height: 2px; margin: 16px 0; background: var(--accent); }
.service-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.service-body h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.service-body h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--accent); }
.service-lead { font-size: 1.1rem; color: var(--heading); }
.quote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 1.15rem; font-style: italic; color: var(--heading); }
.quote p { margin: 0; }
.service-body .checklist, .steps, .table-wrap, .resources { margin: 24px 0 32px; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 12px 16px; text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 400; }
.compare thead th { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.compare tbody tr:nth-child(odd) { background: #f4f4f5; }
.compare .yes, .compare .no { font-size: 1.2rem; }
.compare .yes { color: #1cc691; }
.compare .no { color: var(--accent); }
.resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.resources h3 { margin-bottom: 8px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.resources ul { margin: 0; padding: 0; list-style: none; font-size: 0.9rem; line-height: 1.9; }
.resources a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--border); }
.resources a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.steps { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 16px 0 16px 64px; border-bottom: 1px solid var(--border); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-size: 1.8rem; line-height: 1; color: #d9d9dc; }
.steps h3 { margin-bottom: 4px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.steps p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.service-sidebar { position: sticky; top: calc(var(--header-height) + 24px); padding: 32px; background: var(--surface); border: 1px solid var(--border); }
.service-sidebar h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.service-sidebar h2 + ul { margin: 0 0 32px; }
.service-sidebar h2 + ul:last-child { margin-bottom: 0; }
.service-nav, .service-contacts { padding: 0; list-style: none; font-size: 0.9rem; }
.service-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.service-nav a:hover, .service-nav a[aria-current] { color: var(--accent); }
.service-contacts li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.service-contacts svg { flex: none; width: 18px; height: 18px; margin-top: 0.2em; fill: var(--accent); }
.service-contacts a { color: var(--fg); text-decoration: none; }
.service-contacts a:hover { color: var(--accent); }

.flow { background: var(--surface); border-top: 1px solid var(--border); }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.flow-number { display: block; margin-bottom: 12px; font-size: 2.6rem; line-height: 1; color: #d9d9dc; }
.flow-step h3 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.flow-step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Contact */

.contact-map { height: 50vh; min-height: 280px; overflow: hidden; background: #f4f4f4; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; animation: page-header-zoom 6s ease-out both; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-card { padding: 40px 32px; text-align: center; background: var(--surface); border: 1px solid var(--border); }
.contact-card .tile-icon { width: 48px; height: 48px; margin: 0 auto; }
.contact-card .tile-icon + p::before { content: ""; display: block; width: 40px; height: 2px; margin: 16px auto 20px; background: var(--accent); }
.contact-card p { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.contact-card a { color: var(--fg); text-decoration: none; }
.contact-card a:hover { color: var(--accent); }

/* Error */

.error-banner { position: relative; min-height: clamp(240px, 32vw, 380px); overflow: hidden; }
.error-page { text-align: center; }
.error-code { margin: 0; font-size: clamp(6rem, 16vw, 10rem); font-weight: 500; line-height: 1; color: #d9d9dc; }
.error-page h1 { margin: 0.2em 0 0.5em; font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.error-page p:not(.error-code) { margin: 0 auto 32px; max-width: 560px; color: var(--muted); }

/* Legal */

.legal { max-width: 800px; }
.legal h2 { margin: 48px 0 16px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--fg); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal-date { color: var(--muted) !important; font-size: 0.9rem; }
.legal-lead { font-size: 1.15rem; }
.legal-address { width: fit-content; margin: 24px auto; padding-left: 24px; border-left: 3px solid var(--accent); }

/* Privacy notice */

.privacy-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--surface);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
}
.privacy-notice[hidden] { display: none; }
.privacy-notice p { margin: 0; }
.privacy-notice a { color: var(--accent); }
.privacy-notice .button { flex-shrink: 0; min-width: 60px; padding: 8px 18px; }

/* Gallery */

.gallery { padding-bottom: 0; }
.shot-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.shot { position: relative; display: block; overflow: hidden; background: var(--inverse-bg); color: #fff; text-decoration: none; }
.shot[hidden] { display: none; }
.shot img { width: 100%; height: auto; transition: transform 0.6s, opacity 0.4s; }
.shot span { position: absolute; left: 20px; right: 20px; bottom: 20px; font-size: 1.05rem; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); opacity: 0.35; }
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }

.lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 24px 72px;
    border: 0;
    background: transparent;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; margin: 0; }
.lightbox img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; }
.lightbox figcaption { color: #fff; font-size: 0.95rem; text-align: center; }
.lightbox-link { margin-left: 12px; color: var(--accent); }
.lightbox button { position: fixed; padding: 8px 16px; border: 0; background: none; color: #fff; font: 300 3rem/1 var(--font); cursor: pointer; opacity: 0.8; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; color: var(--accent); }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 8px; right: 8px; }

/* Footer */

.site-footer { background: var(--inverse-bg); color: var(--inverse-fg); font-size: 0.9rem; }
.site-footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 16px 48px;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 48px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin: 0 0 16px; }
.site-footer h2 + .community { margin-bottom: 0; }
.site-footer .footer-links + h2 { margin-top: 32px; }
.footer-about .brand img { width: 112px; margin-bottom: 20px; }
.footer-contacts { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 24px 0 0; }
.footer-contacts dt { color: var(--accent); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.footer-contacts dd { margin: 0; color: #fff; }
.footer-contacts small { color: var(--inverse-fg); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 4px 0; }
.footer-links ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 16px; font-size: 0.85rem; }
.footer-links ul a { color: var(--inverse-fg); }
.community { display: flex; align-items: center; gap: 20px; }
.community img { height: 40px; width: auto; filter: grayscale(1) brightness(1.6); transition: filter 0.2s; }
.community a:hover img { filter: none; }
.footer-bottom { padding: 20px 16px; text-align: center; font-size: 0.8rem; }
.footer-bottom p { margin: 0; }

/* Reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Responsive */

@media (max-width: 1440px) {
    .shot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .service-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .service-sidebar { position: static; }
    .flow-grid, .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .project-grid, .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .experience-grid, .more-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .service-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lightbox { padding: 56px 16px 24px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
    .why-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .why-image { max-width: 420px; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .section { padding: 64px 0; }
    .services-grid { grid-template-columns: minmax(0, 1fr); }
    .app-grid { grid-template-columns: minmax(0, 1fr); }
    .years { flex-direction: column; text-align: center; gap: 8px; }
    .years h2 { border: 0; padding: 0; }
    .project h3, .project p { opacity: 1; transform: none; }
    .project img { opacity: 0.35; }
    .phone figcaption { font-size: 0.7rem; }
    .phone strong { font-size: 1.1rem; }
}
@media (max-width: 520px) {
    .checklist { grid-template-columns: minmax(0, 1fr); }
    .rings { gap: 12px; }
    .ring-value { font-size: 1.5rem; }
    .tiles { grid-template-columns: minmax(0, 1fr); }
    .project-grid, .partner-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer .inner { grid-template-columns: minmax(0, 1fr); }
}
