:root {
    color-scheme: dark;
    --bg: #0a0f16;
    --panel: #101822;
    --line: #263340;
    --white: #f2f6fa;
    --muted: #a7b3c1;
    --aqua: #43e4d5;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--white); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: fixed; left: 16px; top: 12px; z-index: 10; padding: 8px 16px; color: var(--bg); background: var(--aqua); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: relative; z-index: 2; border-bottom: 1px solid #ffffff15; background: #0a1018; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.045em; font-size: 21px; }
.mark { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #43e4d516; border: 1px solid #43e4d53b; color: var(--aqua); }
.mark svg { width: 27px; }
.brand-logo, .brand-monogram { width: 64px; height: 50px; flex: 0 0 64px; }
.brand-monogram { font-size: 19px; font-weight: 800; letter-spacing: -.06em; }
.brand-logo { object-fit: contain; }
.menu { display: flex; gap: clamp(18px, 2.5vw, 35px); align-self: stretch; }
.menu a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: 14px; font-weight: 600; }
.menu a:hover, .menu a[aria-current] { color: var(--aqua); }
.menu a[aria-current]::after { content: ""; position: absolute; height: 2px; bottom: 0; inset-inline: 0; background: var(--aqua); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 8px; min-height: 48px; padding: 10px 19px; font-weight: 700; font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.primary { background: var(--aqua); color: #071713; }
.primary:hover { background: #83f5eb; }
.outline { border-color: #5f7787; background: #0d182166; color: var(--white); }
.outline:hover { border-color: var(--aqua); color: var(--aqua); }
.header-action { min-height: 40px; color: var(--aqua); border-color: #43e4d570; }
.hero { min-height: 545px; position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; background: #050c14; border-bottom: 1px solid #ffffff12; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: min(100%, 1080px); height: 100%; object-fit: cover; object-position: center 48%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #050c14 4%, #050c14ed 22%, #050c1466 53%, transparent 80%), linear-gradient(0deg, #050c1450, transparent 35%); }
.hero-inner { padding-block: 76px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 750; letter-spacing: .16em; color: var(--aqua); margin-bottom: 19px; }
.eyebrow span { display: inline-block; width: 20px; height: 1px; background: currentColor; }
h1 { font-size: clamp(42px, 6.2vw, 89px); font-weight: 760; }
.hero h1 { max-width: 760px; }
.hero h1 strong { color: var(--aqua); font-weight: inherit; }
.hero-description { font-size: clamp(16px, 1.6vw, 19px); color: #c5cfdb; max-width: 465px; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.section { padding-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.7vw, 48px); }
.section-head .muted, .cta .muted { margin-top: 10px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--aqua); font-size: 15px; font-weight: 700; width: fit-content; }
.text-link:hover { text-decoration: underline; }
.project-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-pages > .project-grid { display: contents; }
.project-swipe-hint { display: none; }
.project-card { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; transition: border-color .2s, transform .2s; }
.project-card:hover { border-color: var(--aqua); transform: translateY(-3px); }
.project-card img { width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: center 40%; }
.card-body { display: flex; justify-content: space-between; padding: 20px; gap: 12px; }
.category { display: block; color: var(--aqua); font-size: 12px; letter-spacing: .06em; font-weight: 650; }
.card-body h3 { font-size: 24px; margin: 7px 0; }
.card-body p { color: var(--muted); font-size: 14px; }
.card-arrow { display: grid; place-items: center; align-self: start; flex: 0 0 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--aqua); }
.cta { margin-top: 76px; padding: clamp(24px, 4vw, 48px); border: 1px solid #43e4d53b; background: radial-gradient(ellipse at top right, #123932, #101a24 67%); border-radius: 16px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: clamp(28px, 3vw, 43px); }
.cta .button { flex-shrink: 0; }
.footer { margin-top: 76px; background: #0b121b; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; gap: 24px; padding-block: 42px; }
.footer-main .muted { margin-top: 12px; max-width: 360px; }
.footer-main nav { display: flex; flex-wrap: wrap; align-content: center; gap: 14px 22px; color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--aqua); }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.page-head { padding: 72px 0 37px; }
.page-head h1 { font-size: clamp(42px, 6vw, 72px); }
.page-head > .muted { margin-top: 15px; max-width: 670px; font-size: 18px; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service, .panel, .contact-info > div { padding: clamp(20px, 3vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.service h2 { font-size: 28px; margin-top: 20px; }
.service p { margin-top: 12px; }
.detail .eyebrow { margin-top: 28px; }
.detail-image { width: 100%; margin-block: 32px; border-radius: 12px; border: 1px solid var(--line); }
.prose { max-width: 750px; color: var(--muted); }
.prose h2 { color: var(--white); margin-bottom: 20px; }
.prose p + p { margin-top: 16px; }
.prose .text-link { margin-top: 20px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.about-image { border-radius: 12px; border: 1px solid var(--line); }
.contact-info { display: grid; gap: 15px; }
.contact-info a, .contact-info div > span:last-child { font-size: 20px; }
.contact-info a:hover { color: var(--aqua); }
.form { display: grid; gap: 16px; }
.form .button { justify-self: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input:not([type=checkbox]), textarea { width: 100%; min-height: 44px; color: var(--white); background: #0a111a; border: 1px solid #394958; border-radius: 6px; padding: 9px 12px; }
textarea { resize: vertical; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { padding: 12px 15px; background: #11332e; color: #9cffef; border-radius: 7px; }
.error { background: #3b2126; color: #ffb9c2; }
.admin-main { padding-block: 40px 72px; }
.admin-main h1 { font-size: clamp(34px, 5vw, 55px); margin: 18px 0; }
.admin-main h2 { font-size: 24px; margin-bottom: 14px; }
.admin-login { max-width: 540px; margin: 24px auto; }
.admin-tabs, .admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-tabs { margin: 20px 0; }
.admin-tabs a[aria-current] { color: var(--aqua); border-color: var(--aqua); }
.admin-list { display: grid; gap: 15px; margin-top: 20px; }
.admin-list .panel h2 { margin-bottom: 5px; }
.admin-list .panel p { margin-bottom: 12px; }
.admin-row form { display: inline; }
.danger { border-color: #b8707a; color: #ffb9c2; }
.admin-main > .notice { margin-block: 12px; }
fieldset { border: 1px solid var(--line); padding: 18px; border-radius: 8px; min-width: 0; }
legend { padding: 0 6px; font-weight: 700; }
.check { display: flex; gap: 8px; align-items: center; }
.admin-preview { width: min(240px, 100%); border-radius: 8px; }
.admin-logo { margin-bottom: 16px; }
.admin-logo h2 { margin-bottom: 0; }
.admin-logo .admin-preview { width: 72px; height: 72px; object-fit: contain; }
@media (max-width: 940px) {
    .wrap { width: calc(100% - 48px); }
    .header-inner { gap: 20px; }
    .header-action { display: none; }
    .hero { min-height: 500px; }
}
@media (max-width: 690px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { min-height: 65px; flex-wrap: wrap; gap: 0 12px; }
    .brand { font-size: 19px; }
    .brand-logo, .brand-monogram { width: 54px; height: 44px; flex-basis: 54px; }
    .brand-monogram { font-size: 17px; }
    .menu-toggle { display: none; width: 42px; height: 42px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; place-content: center; gap: 4px; color: var(--white); }
    .menu-toggle span { width: 18px; height: 2px; background: currentColor; }
    .menu { flex: 1 0 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
    .menu a { padding: 9px 0; }
    .menu a[aria-current]::after { display: none; }
    .js .menu-toggle { display: grid; }
    .js .menu:not(.open) { display: none; }
    .hero { min-height: 510px; }
    .hero-photo { width: 100%; object-position: 66% center; opacity: .75; }
    .hero::after { background: linear-gradient(90deg, #050c14e8, #050c145e), linear-gradient(0deg, #050c14 2%, transparent 54%); }
    .hero-inner { padding-block: 60px; }
    .section { padding-top: 46px; }
    .section-head, .cta, .footer-main { flex-direction: column; align-items: start; }
    .section-head { gap: 12px; }
    .works .project-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(85%, 350px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .works .project-card { scroll-snap-align: start; }
    .project-grid, .service-grid, .about-grid, .contact-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .project-swipe-hint { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 14px; }
    .project-swipe-hint span { color: var(--aqua); }
    .project-pages {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        align-items: start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-block: 4px 12px;
    }
    .project-pages > .project-grid { display: grid; scroll-snap-align: start; }
    .project-pages .project-card:focus-visible { outline-offset: -4px; }
    .cta, .footer { margin-top: 52px; }
    .page-head { padding-top: 47px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
