:root {
    --bg: #f4f8fc;
    --bg-2: #e8f1f8;
    --surface: #ffffff;
    --surface-2: #eef4fa;
    --text: #0b1f4d;
    --muted: #5a6d86;
    --line: #d4e0ee;
    --accent: #1478d4;
    --accent-2: #2ec5f3;
    --ink: #0b1f4d;
    --ok: #2f6d4f;
    --err: #9a4a4a;
    --radius: 16px;
    --shadow: 0 12px 36px rgba(11, 31, 77, 0.08);
    --font: "Bookman Old Style", Bookman, "URW Bookman", "Palatino Linotype", Palatino, serif;
    --serif: "Bookman Old Style", Bookman, "URW Bookman", "Palatino Linotype", Palatino, serif;
    --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.03em; }
p { margin: 0 0 1em; }
main { position: relative; z-index: 1; }

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(46, 197, 243, 0.08), transparent 32%),
        var(--bg);
}

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent-2);
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 46rem; }
.muted { color: var(--muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #f4f8fc;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn-ghost:hover { background: rgba(20, 120, 212, 0.07); border-color: #9ec4ea; }
.text-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.text-link:hover { color: var(--accent-2); }

.topbar {
    background: var(--ink);
    color: #c5daf0;
    font-size: 12px;
    letter-spacing: 0.04em;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 16px;
}
.topbar-links { display: flex; gap: 18px; }
.topbar a { color: #c5daf0; }
.topbar a:hover { color: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(244, 248, 252, 0.94);
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(244, 248, 252, 0.97);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 10px 0;
    gap: 20px;
}
.logo { display: flex; align-items: center; }
.logo-mark {
    width: 5cm;
    height: auto;
    color: var(--accent);
    overflow: hidden;
    border-radius: 8px;
}
.logo-mark svg,
.logo-img {
    width: 5cm;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.logo-word { display: none; }
.nav { display: flex; gap: 16px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; position: relative; transition: color 0.2s ease; }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 99px;
    background: var(--accent-2);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
.lang-switch a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.lang-switch a.is-active { background: var(--accent); color: #fff; }

.flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(11, 31, 77, 0.14);
}
.lang-picker { position: relative; }
.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.lang-current:hover { border-color: #9ec4ea; }
.lang-caret {
    width: 12px;
    height: 12px;
    color: var(--muted);
    transition: transform 0.2s ease;
}
.lang-current[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    max-height: min(70vh, 420px);
    overflow-y: auto;
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: background 0.15s ease;
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.is-active { background: var(--accent); color: #fff; }
.lang-menu .lang-code {
    min-width: 24px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.lang-menu a.is-active .lang-code { color: rgba(255, 255, 255, 0.75); }
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--text);
}

.home-stage {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 1.5cm 0 28px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 1.5cm;
}
.hero-side {
    display: flex;
    flex-direction: column;
}
.hero-side .lead {
    margin: 0;
    line-height: 1.55;
    max-width: none;
}
.hero-side h1 {
    margin-bottom: 14px;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.8vw, 2.35rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    white-space: nowrap;
    max-width: 100%;
}
.fit-line,
.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 5.8vw, 4.8rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero-stats li {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
}
.hero-visual { position: relative; min-height: 0; display: flex; }
.hero-visual .code-window {
    width: 100%;
    margin: 0;
    height: auto;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shot-window,
.project-window {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0b1f4d;
    overflow: visible;
    box-shadow: 0 16px 40px rgba(11, 31, 77, 0.18);
}
.project-window {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 2mm;
}
.project-window:hover {
    z-index: 4;
}
.shot-body {
    height: min(34vh, 300px);
    background: #12305f;
}
.shot-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shot-fallback {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(145deg, rgba(46, 197, 243, 0.35), transparent 45%),
        linear-gradient(335deg, #0b1f4d, #1478d4);
}
.shot-fallback.is-small { min-height: 100%; }
.project-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 12px;
    align-items: stretch;
}
.project-shot {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 176px;
    background: #12305f;
    overflow: hidden;
}
.project-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s ease;
}
.project-shot img.is-active {
    opacity: 1;
    z-index: 1;
}
.project-shot.is-clickable {
    cursor: zoom-in;
}
.project-copy {
    padding: 12px 12px 16px;
    background: #fff;
    min-height: 110px;
    flex: 1;
    overflow: hidden;
    border-radius: 0;
}
.project-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.project-meta {
    color: var(--accent) !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-bottom: 4px !important;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    animation: float 8s ease-in-out infinite;
}
.orb-a { width: 220px; height: 220px; right: 8%; top: 8%; background: rgba(46, 197, 243, 0.28); }
.orb-b { width: 160px; height: 160px; left: 6%; bottom: 12%; background: rgba(11, 31, 77, 0.16); animation-delay: -3s; }
.code-window {
    position: relative;
    margin: 28px 0 0 auto;
    width: min(100%, 440px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0b1f4d;
    box-shadow: var(--shadow), 0 0 0 1px rgba(46, 197, 243, 0.12);
    overflow: hidden;
    animation: panelIn 0.9s ease both;
}
.code-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #12305f;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.project-window .code-chrome {
    border-radius: 16px 16px 0 0;
    overflow: visible;
}
.code-dots { display: flex; gap: 6px; }
.code-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6b7a7d;
}
.code-dots i:nth-child(1) { background: #2ec5f3; }
.code-dots i:nth-child(2) { background: #7eb8f0; }
.code-dots i:nth-child(3) { background: #1478d4; }
.code-file {
    flex: 1;
    color: #c5daf0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    text-decoration: none;
}
a.code-file {
    color: #fff;
    cursor: pointer;
}
a.code-file:hover {
    color: #2ec5f3;
    text-decoration: underline;
}
a.code-file[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 8;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 10px;
    background: #0b1f4d;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: var(--shadow);
    pointer-events: none;
}
.code-lang { color: #8aa3a6; font-size: 11px; }
.code-body {
    margin: 0;
    padding: 16px 14px 12px;
    flex: 1;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: #d5e0e2;
    overflow: hidden;
}
.code-body .ln {
    display: inline-block;
    width: 1.8em;
    margin-right: 12px;
    color: #6d8185;
    user-select: none;
}
.code-body .kw { color: #2ec5f3; }
.code-body .fn { color: #8ec8ff; }
.code-body .tp { color: #9ec3e6; }
.code-body .var { color: #d5e0e2; }
.code-body .st { color: #7ec8ff; }
.code-body .cm { color: #7f9194; font-style: italic; }
.code-body .cursor {
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 2px;
    background: #2ec5f3;
    vertical-align: text-bottom;
    animation: blink 1s steps(1) infinite;
}
.code-status {
    display: flex;
    gap: 14px;
    padding: 8px 14px;
    background: #081536;
    color: #9bb3b6;
    font-size: 11px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    /* Pins the bar to the bottom of a flex-column window. The code body has a
       fixed height, so without this the leftover space falls below the bar. */
    margin-top: auto;
}

/* A code window whose height follows its content instead of a fixed viewport. */
.code-body.is-auto {
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 1;
}
/* Static listing with a highlight that walks down one line at a time.
   Each line shares one cycle and is offset by its own delay. */
.code-list .cl {
    display: block;
    padding: 0 14px;
    margin: 0 -14px;
    white-space: pre;
    animation: lineScan var(--scan, 6.6s) linear infinite;
}
@keyframes lineScan {
    0%, 7% { background: rgba(46, 197, 243, 0.13); }
    14%, 100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .code-list .cl { animation: none; }
}

/* Full-width code window holding two rows of terms that drift past each other.
   Each track carries the list twice, so translating it half its width loops seamlessly. */
.code-window.is-ticker {
    width: 100%;
    margin: 0;
}
.ticker-body {
    display: grid;
    align-content: center;
    flex: 1;
    gap: 16px;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-row { overflow: hidden; }
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerDrift 42s linear infinite;
}
.ticker-row:nth-child(2) .ticker-track {
    animation-duration: 56s;
    animation-direction: reverse;
}
.ticker-row:nth-child(3) .ticker-track { animation-duration: 48s; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: #d5e0e2;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
}
.ticker-item.is-file { color: #2ec5f3; }
.ticker-item::after {
    content: "·";
    margin-left: 16px;
    color: #43648f;
}
@keyframes tickerDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

.trust { padding: 10px 0 50px; }
.trust-label { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.trust-row span {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.trust-row span:hover {
    transform: translateY(-2px);
    border-color: #9ec4ea;
    color: var(--accent);
}

.section { padding: 84px 0; }
.section-muted { background: #e8f1f8; }
.section-head { max-width: 680px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-head h2, .stack-block h2, .cta-inner h2 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 400;
}
.section-foot { margin-top: 32px; }

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.bento-card {
    grid-column: span 4;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    min-height: 230px;
    display: flex;
    flex-direction: column;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bento-card:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--accent);
}
.bento-card.is-wide { grid-column: span 8; }
.bento-card.is-accent {
    background: linear-gradient(160deg, rgba(46, 197, 243, 0.1), rgba(11, 31, 77, 0.06));
}
.bento-card h3 { font-size: 1.35rem; }
.bento-card p { color: var(--muted); flex: 1; }
.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--accent);
    background: rgba(20, 120, 212, 0.1);
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: background 0.25s ease, color 0.25s ease;
}
.card-icon svg { width: 28px; height: 28px; }

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.process li {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process li:hover { box-shadow: var(--shadow); }
.step { display: block; color: var(--accent); font-weight: 700; margin-bottom: 16px; letter-spacing: 0.08em; }
.process p { color: var(--muted); margin: 0; }

/* Process page: the four steps read as one sequence.
   The rail sits behind the cards, so it only shows in the gaps. */
.process-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.process-flow::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--line);
}
.process-flow li {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.process-flow li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #9ec4ea;
}
.process-flow .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.process-flow li:hover .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #f4f8fc;
}
.process-flow h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}
.process-flow p { color: var(--muted); margin: 0; }

.stack-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.stack-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-pills span {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f3f2ee;
}

.cta-band { padding: 0 0 90px; }
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    border-radius: var(--radius);
    background: var(--ink);
    border: 0;
    color: #f4f8fc;
}
.cta-inner h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.cta-inner p { color: #c5d4d6; margin: 0; }
.cta-inner .btn { background: #fff; color: var(--ink); }
.cta-inner .btn:hover { background: #d6ebf8; }

.page-hero { padding: 64px 0 10px; }

/* Subpage hero built like the homepage: copy left, code window right.
   Unlike the homepage the heading may be long, so it is allowed to wrap. */
.split-hero { padding: 1.5cm 0 0; }
.split-hero .hero-grid { margin-bottom: 0; }
.split-hero .hero-side { justify-content: center; }
.split-hero .hero-side h1 { white-space: normal; }
.service-list { display: grid; gap: 16px; }
.service-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #9ec4ea;
}
.service-row:hover .card-icon {
    background: var(--accent);
    color: #f4f8fc;
}
.service-row h2 { font-size: 1.6rem; }
.service-row .summary { color: #3f3e3b; font-weight: 500; }
.service-row p { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; }
.about-prose p { color: #4a4946; font-size: 1.05rem; }
.about-cards { display: grid; gap: 14px; }
.about-cards article {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.about-cards article:hover {
    transform: translateY(-3px);
    border-color: #9ec4ea;
}
.about-cards p { color: var(--muted); margin: 0; }
.prose { max-width: 720px; color: #4a4946; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.contact-form, .contact-aside, .install-card, .admin-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.contact-aside {
    background: linear-gradient(180deg, #ffffff, #eef6fb);
    border-color: #c5daf0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; margin-bottom: 14px; font-size: 14px; color: #4a4946; }
input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8f7f4;
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(46, 197, 243, 0.18);
}
.contact-aside h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.aside-line { margin: 0 0 8px; }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }
.alert-ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); }
.alert-err { background: rgba(251, 113, 133, 0.12); color: var(--err); }
.alert-warn { background: rgba(20, 120, 212, 0.1); color: var(--accent); }

.site-footer .logo-mark,
.site-footer .logo-mark svg,
.site-footer .logo-img { width: 5cm; }
.site-footer {
    position: relative;
    z-index: 1;
    padding: 56px 0 28px;
    border-top: 1px solid var(--line);
    background: #e8f1f8;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-tagline { color: var(--muted); max-width: 28ch; }
.site-footer h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.site-footer a, .footer-meta { display: block; color: var(--muted); margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 36px; color: var(--muted); font-size: 14px; }

.hero-photo {
    position: absolute;
    inset: 18px 0 auto auto;
    width: min(42%, 190px);
    height: 190px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 2;
}
.content-photo {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
}
.page-photo { max-width: 720px; margin-top: 8px; }

.install-wrap, .admin-wrap { padding: 40px 0 100px; }
.install-card, .admin-card { max-width: 640px; margin: 0 auto; }
.admin-wide { width: min(1080px, calc(100% - 40px)); }
.admin-wide .admin-card { max-width: none; }
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.admin-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 14px;
}
.admin-nav a.is-active, .admin-nav a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.admin-group { margin: 28px 0 12px; font-size: 1.4rem; }
.text-key { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; }
.text-pair { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* Admin translation editing: one language at a time, English for reference. */
.lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #eef4fa;
}
.lang-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.lang-tab:hover { background: rgba(20, 120, 212, 0.08); color: var(--accent); }
.lang-tab.is-on { background: var(--accent); color: #fff; }
.lang-tab .flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 31, 77, 0.18); }
.lang-tabs-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.text-ref {
    display: block;
    margin: 2px 0 6px;
    padding: 7px 10px;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.admin-card + .admin-card { margin-top: 24px; }
.btn-delete { width: 100%; margin-top: 10px; }
.media-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #eef4fa; }
.media-preview {
    height: 140px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
}
.media-preview img { width: 100%; height: 140px; object-fit: cover; }
.service-edit { margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-checks { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.admin-checks .check { display: flex; align-items: center; gap: 8px; }
.enquiry {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.enquiry:last-child { border-bottom: 0; }
.enquiry h3 { font-size: 1.05rem; margin-bottom: 4px; }
.enquiry time, .enquiry small { color: var(--muted); }

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.1s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}
@keyframes float {
    50% { transform: translateY(-12px); }
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@keyframes blink {
    50% { opacity: 0; }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(11, 31, 77, 0.86);
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0b1f4d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 980px) {
    .home-stage { min-height: 0; }
    .project-row { grid-template-columns: 1fr 1fr; }
    .shot-body { height: 200px; }
    .hero-grid, .stack-block, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .bento-card, .bento-card.is-wide { grid-column: span 6; }
    .process { grid-template-columns: 1fr 1fr; }
    .process-flow { grid-template-columns: 1fr 1fr; }
    .process-flow::before { display: none; }
    .service-row { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        padding: 16px;
        flex-direction: column;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: #ffffff;
    }
    .nav a.is-active::after { display: none; }
    .nav.is-open { display: flex; }
    .nav-toggle { display: block; }
    .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
    .bento-card, .bento-card.is-wide { grid-column: span 12; }
    .process, .process-flow, .form-row { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .logo-mark,
    .logo-mark svg,
    .logo-img { width: min(5cm, 72vw); }
    .topbar-inner span:first-child { display: none; }
    .topbar-inner { justify-content: flex-end; }
}
