/* Cybex Games Studio — public website. Dark and light themes, red accent, LTR + RTL. */
:root {
    --bg: #0a0a0d;
    --bg-2: #101015;
    --bg-3: #16161d;
    --fg: #ffffff;           /* headings, strong text */
    --text: #e9e9ee;
    --muted: #9696a3;
    --dim: #63636f;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --soft: rgba(255, 255, 255, .03);
    --invert: #ffffff;        /* solid "inverted" buttons and chips */
    --invert-fg: #000000;
    --header-bg: rgba(10, 10, 13, .86);
    --outline: rgba(255, 255, 255, .32);
    --map-filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95);
    --red: #f23a55;
    --red-2: #ff6a7f;
    --red-dark: #c41f3a;
    --head: 'Chakra Petch', 'Segoe UI', sans-serif;
    --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --wrap: 1280px;
    color-scheme: dark;
}
:root[data-theme="light"] {
    --bg: #f6f6f8;
    --bg-2: #ffffff;
    --bg-3: #ffffff;
    --fg: #121218;
    --text: #2b2b33;
    --muted: #62626e;
    --dim: #8c8c98;
    --line: rgba(18, 18, 24, .09);
    --line-2: rgba(18, 18, 24, .18);
    --soft: rgba(18, 18, 24, .02);
    --invert: #121218;
    --invert-fg: #ffffff;
    --header-bg: rgba(246, 246, 248, .88);
    --outline: rgba(18, 18, 24, .35);
    --map-filter: none;
    --red: #e02443;
    --red-2: #d01c3a;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.7 var(--body); color: var(--text); background: var(--bg); overflow-x: hidden; transition: background .25s, color .25s; }
img { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration: none; }
a:hover { color: var(--fg); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.05; margin: 0 0 .5em; color: var(--fg); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
b, strong { color: var(--fg); }
::selection { background: var(--red); color: #fff; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 56px; }
.icon { flex-shrink: 0; }
/* Text that sits on photos stays white in both themes. */
.on-image, .on-image h1, .on-image h2, .on-image h3, .on-image b { color: #fff; }

/* ---- Header: transparent, floats over the first section --------------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.header.scrolled, .header.open { background: var(--header-bg); backdrop-filter: blur(14px); border-color: var(--line); }
.header .container { display: flex; align-items: center; gap: 28px; height: 84px; }
.header-logo img { height: 30px; width: auto; }
.header-nav { display: flex; gap: 30px; margin-inline-start: auto; }
.header-nav a { color: var(--muted); font: 500 .95rem var(--body); position: relative; padding: 6px 0; }
.header-nav a::after { content: ''; position: absolute; inset-inline: 0 100%; bottom: 0; height: 2px; background: var(--red); transition: inset-inline-end .25s; }
.header-nav a:hover, .header-nav a.active { color: var(--fg); }
.header-nav a:hover::after, .header-nav a.active::after { inset-inline-end: 0; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; font-size: .9rem; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; transition: .2s; white-space: nowrap; }
.header-cta:hover { border-color: var(--red); background: var(--red); color: #fff; }
/* Over the hero photo (before scrolling) the header text must stay light. */
.has-hero .header:not(.scrolled):not(.open) .header-nav a { color: rgba(255, 255, 255, .78); }
.has-hero .header:not(.scrolled):not(.open) .header-nav a:hover,
.has-hero .header:not(.scrolled):not(.open) .header-nav a.active,
.has-hero .header:not(.scrolled):not(.open) .header-cta,
.has-hero .header:not(.scrolled):not(.open) .pref-btn { color: #fff; border-color: rgba(255, 255, 255, .28); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
@media (max-width: 1000px) { .header-nav { gap: 20px; } }
@media (max-width: 900px) {
    .header .container { height: 70px; gap: 10px; flex-wrap: wrap; }
    .nav-toggle { display: grid; place-items: center; order: 3; }
    .prefs { margin-inline-start: auto; }
    .header-nav, .header-cta { display: none; }
    .header.open .container { height: auto; padding-top: 13px; padding-bottom: 20px; }
    .header.open .header-nav { display: flex; flex-direction: column; width: 100%; gap: 4px; margin: 10px 0 0; order: 4; }
    .header.open .header-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .header.open .header-cta { display: inline-flex; margin-top: 8px; order: 5; }
}

/* ---- Theme + language controls --------------------------------------- */
.prefs { display: flex; gap: 8px; align-items: center; }
.pref-btn {
    height: 40px; min-width: 40px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
    color: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: 600 .8rem var(--body); list-style: none;
}
.pref-btn::-webkit-details-marker { display: none; }
.pref-btn:hover { border-color: var(--red); color: var(--red-2); }
[data-theme="light"] .theme-sun, [data-theme="dark"] .theme-moon { display: none; }
.lang-menu { position: relative; }
.lang-list { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 190px; padding: 8px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); z-index: 80; }
.lang-list a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: .92rem; }
.lang-list a b { font: 600 .75rem var(--body); color: var(--dim); width: 22px; }
.lang-list a:hover { background: var(--soft); color: var(--fg); }
.lang-list a.active { background: rgba(242, 58, 85, .12); color: var(--red-2); }
.lang-list a.active b { color: var(--red-2); }

/* ---- Hero: full screen with game thumbnails as selectors ------------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1000px; overflow: hidden; background: #000; color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.active { opacity: 1; visibility: visible; }
.slide > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transform: scale(1.08); transition: transform 8s ease-out; }
.slide.active > img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 13, .55) 38%, rgba(10, 10, 13, .25) 70%, rgba(10, 10, 13, .6) 100%), linear-gradient(90deg, rgba(10, 10, 13, .7), transparent 60%); }
[dir="rtl"] .slide::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 13, .55) 38%, rgba(10, 10, 13, .25) 70%, rgba(10, 10, 13, .6) 100%), linear-gradient(-90deg, rgba(10, 10, 13, .7), transparent 60%); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 210px; z-index: 2; }
.slide-meta { display: flex; gap: 14px; align-items: center; color: rgba(255, 255, 255, .7); font: 500 .85rem var(--body); margin-bottom: 18px; }
.slide-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.slide-caption h1, .slide-caption h2 { font-size: clamp(3rem, 8.5vw, 7.5rem); line-height: .92; margin: 0 0 22px; max-width: 900px; text-transform: uppercase; color: #fff; }
.slide-caption p { font-size: 1.15rem; color: #d0d0d8; max-width: 520px; margin-bottom: 0; }
.slide-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
[data-theme="light"] .slide-caption p { color: #fff; }

.hero-thumbs { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; }
.hero-thumbs .container { display: flex; gap: 14px; justify-content: flex-end; }
.thumb {
    position: relative; width: 230px; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2);
    background: #000; cursor: pointer; padding: 0; text-align: start; color: #fff; transition: transform .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .2s; }
.thumb span { position: absolute; inset-inline: 14px; bottom: 12px; font: 600 .95rem/1.2 var(--head); }
.thumb small { position: absolute; top: 10px; inset-inline-start: 14px; font: 600 .75rem var(--head); color: rgba(255, 255, 255, .6); }
.thumb::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--red); }
.thumb.active { border-color: rgba(242, 58, 85, .7); }
.thumb.active img, .thumb:hover img { opacity: .8; }
.thumb.active::after { animation: progress 7s linear forwards; }
.thumb:hover { transform: translateY(-3px); }
@keyframes progress { to { width: 100%; } }
@media (max-width: 900px) {
    .slide-caption { bottom: 150px; }
    .thumb { width: 150px; height: 84px; }
    .hero-thumbs .container { justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 560px) { .thumb { width: 110px; height: 70px; } .thumb span { font-size: .78rem; } .slide-caption { bottom: 130px; } }

/* ---- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 .95rem/1 var(--body);
    padding: 16px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: .2s; color: var(--fg); white-space: nowrap;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
[dir="rtl"] .btn .icon, [dir="rtl"] .game-more .icon { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon { transform: scaleX(-1) translateX(3px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--line-2); background: var(--soft); }
.btn-line:hover { border-color: var(--invert); background: var(--invert); color: var(--invert-fg); }
.hero .btn-line, .page-banner .btn-line { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.hero .btn-line:hover { background: #fff; color: #000; border-color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---- Marquee strip --------------------------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg); direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 600 clamp(1.8rem, 4vw, 3.2rem)/1 var(--head); text-transform: uppercase; padding: 0 28px; color: transparent; -webkit-text-stroke: 1px var(--outline); display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ''; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.marquee span:nth-child(odd) { color: var(--fg); -webkit-text-stroke: 0; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .thumb.active::after { animation: none; width: 100%; } }

/* ---- Sections -------------------------------------------------------- */
.section { padding: 120px 0; position: relative; }
.section-grey { background: var(--bg-2); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--red-2); margin-bottom: 18px; }
[dir="rtl"] .kicker, [dir="rtl"] .slide-kicker, [dir="rtl"] .game-status { letter-spacing: 0; }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--red); }
.title { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; }
.title b { font-weight: 600; color: var(--red); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }

/* Big statement intro */
.statement { font: 500 clamp(1.6rem, 3.2vw, 2.7rem)/1.3 var(--head); color: var(--fg); max-width: 1050px; margin: 0; }
.statement em { font-style: normal; color: var(--red); }
.statement .soft { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.fact { padding: 30px 0 0; padding-inline-end: 30px; }
.fact + .fact { padding-inline-start: 30px; border-inline-start: 1px solid var(--line); }
.fact b { display: block; font: 600 1.6rem var(--head); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 26px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-media { position: relative; border-radius: 20px; overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

/* ---- Services: numbered rows ---------------------------------------- */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 90px 1.1fr 1.4fr 56px; gap: 30px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; }
.service::before { content: ''; position: absolute; inset: 0 -28px; background: linear-gradient(90deg, rgba(242, 58, 85, .1), transparent 70%); opacity: 0; transition: opacity .25s; z-index: -1; }
[dir="rtl"] .service::before { background: linear-gradient(-90deg, rgba(242, 58, 85, .1), transparent 70%); }
.service:hover::before { opacity: 1; }
.service .num { font: 600 1rem var(--head); color: var(--dim); }
.service h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.service h3 { color: var(--muted); font-weight: 500; }
.service h3 span { color: var(--fg); font-weight: 600; }
.service p { color: var(--muted); margin: 0; }
.service .s-icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: .25s; }
.service:hover .s-icon { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-10deg); }
.service:hover .num { color: var(--red); }
@media (max-width: 860px) { .service { grid-template-columns: 50px 1fr 48px; } .service p { grid-column: 2 / -1; } .service .s-icon { grid-row: 1; grid-column: 3; width: 44px; height: 44px; } }

/* ---- Games: mosaic with chip filters --------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 500 .88rem var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: .15s; }
.filters button:hover { color: var(--fg); border-color: var(--fg); }
.filters button.active { background: var(--invert); color: var(--invert-fg); border-color: var(--invert); }
.games { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 18px; }
.games .game:first-child:not(.hidden) { grid-column: span 2; grid-row: span 2; }
.games.flat .game:first-child:not(.hidden) { grid-column: auto; grid-row: auto; }
.game { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #000; isolation: isolate; color: #fff; }
.game img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .85; }
.game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 60%); z-index: 1; }
.game:hover img { transform: scale(1.06); opacity: 1; }
.game:hover { color: #fff; }
.game-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.game-info h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); margin: 8px 0 0; color: #fff; }
.game:first-child .game-info h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.game-tag { font: 500 .8rem var(--body); color: #d5d5dd; }
.game-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-inline-end: 8px; vertical-align: 2px; }
.game-status { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; font: 600 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); }
.game-more { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; flex-shrink: 0; transform: scale(.6); opacity: 0; transition: .25s; }
.game:hover .game-more { transform: none; opacity: 1; }
.game.hidden { display: none; }
@media (max-width: 900px) { .games { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; } }
@media (max-width: 600px) { .games { grid-template-columns: 1fr; } .games .game:first-child:not(.hidden) { grid-column: auto; grid-row: span 1; } .game-more { opacity: 1; transform: none; } }

/* ---- Why band: split image + list ------------------------------------ */
.band { padding: 120px 0; background: var(--bg-2); }
.band .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.band-media { border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 4 / 5; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media .label { position: absolute; inset-inline-start: 20px; bottom: 20px; font: 600 .8rem var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; backdrop-filter: blur(8px); }
.band-content > p { color: var(--muted); font-size: 1.05rem; }
.check-item { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.check-item .tick { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; color: var(--red-2); border: 1px solid rgba(242, 58, 85, .45); border-radius: 50%; }
.check-item h4 { font-size: 1.3rem; margin: 0 0 6px; }
.check-item p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .band .container { grid-template-columns: 1fr; gap: 48px; } .band-media { aspect-ratio: 16 / 10; } }

/* ---- CTA ------------------------------------------------------------- */
.cta { padding: 140px 0; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta::before { content: ''; position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; transform: translate(-50%, -45%); background: radial-gradient(circle, rgba(242, 58, 85, .28), transparent 62%); pointer-events: none; }
.cta .container { position: relative; display: block; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.02; max-width: 1000px; margin: 0 auto 22px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin: 0 auto 36px; max-width: 560px; }

/* ---- Inner page banner ----------------------------------------------- */
.page-banner { position: relative; padding: 200px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); background: #0a0a0d; color: #fff; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 13, .95), rgba(10, 10, 13, .45)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: 1; margin: 0; max-width: 1000px; text-transform: uppercase; color: #fff; }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: rgba(255, 255, 255, .6); margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, .6); }
.crumbs a:hover, .crumbs span { color: #fff; }
.slide-kicker { display: inline-block; font: 600 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 7px 14px; border-radius: 999px; background: var(--red); margin-bottom: 20px; }

/* ---- Cards ----------------------------------------------------------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 32px 34px 36px; }
.card-body h3 { font-size: 1.8rem; }
.card-body ol { margin: 0; padding-inline-start: 1.2em; color: var(--muted); }
.card-body li { margin-bottom: 6px; }
.card-body li::marker { color: var(--red); font-weight: 700; }
.card-body p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .cards-2 { grid-template-columns: 1fr; } }

/* ---- Game detail ----------------------------------------------------- */
.game-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0; }
.game-meta div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.game-meta small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.game-meta b { font: 600 1.15rem var(--head); }
@media (max-width: 600px) { .game-meta { grid-template-columns: 1fr; } }

/* ---- Forms (contact) ------------------------------------------------- */
.form-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field label .req { color: var(--red-2); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
    padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(242, 58, 85, .15); }
.error { color: var(--red-2); font-size: .85rem; margin-top: 6px; }
.alert { padding: 14px 18px; margin-bottom: 22px; border-radius: 12px; border: 1px solid; font-size: .95rem; }
.alert-success { background: rgba(34, 197, 139, .08); border-color: rgba(34, 197, 139, .4); color: #1f9d6c; }
[data-theme="dark"] .alert-success { color: #8cefc9; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-box { padding: 26px 20px; } }

.info-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-tile { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); display: flex; gap: 18px; align-items: center; }
.info-tile .s-icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; color: var(--red-2); border: 1px solid rgba(242, 58, 85, .4); border-radius: 50%; }
.info-tile h4 { font-size: 1.15rem; margin: 0 0 2px; }
.info-tile p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .info-tiles { grid-template-columns: 1fr; } }
.map { height: 440px; background: var(--bg-2); border-top: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: var(--map-filter); }

/* ---- Policy text ----------------------------------------------------- */
.prose { max-width: 800px; margin: 0 auto; color: var(--text); font-size: 1.03rem; }
.prose .date { font-weight: 600; color: var(--fg); display: inline-block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; margin-bottom: 30px; }
.prose .note { color: var(--muted); font-size: .92rem; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line-2); margin-bottom: 28px; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose ol, .prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 1em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose ol > li > strong:first-child { display: block; font: 600 1.2rem var(--head); margin-bottom: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose-links { max-width: 800px; margin: 56px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; }
.prose-links a { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); font-size: .92rem; }
.prose-links a:hover { border-color: var(--red); background: var(--red); color: #fff; }

/* ---- Footer ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; background: var(--bg); }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding: 90px 0 60px; border-bottom: 1px solid var(--line); }
.footer-word { font: 700 clamp(2.6rem, 8vw, 7rem)/.9 var(--head); color: var(--fg); text-transform: uppercase; letter-spacing: -.02em; direction: ltr; }
.footer-word span { color: transparent; -webkit-text-stroke: 1px var(--outline); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.footer h4 { font: 600 .8rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact div, .footer-contact a { color: var(--text); }
.footer-links a:hover, .footer-contact a:hover { color: var(--red-2); }
.footer-contact div { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--red-2); margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

/* Two logo files: white text for dark backgrounds, dark text for light ones.
   The header sits over a dark photo until the page scrolls. */
.logo-for-light { display: none; }
[data-theme="light"] .footer .logo-for-dark,
[data-theme="light"] .header.scrolled .logo-for-dark,
[data-theme="light"] .header.open .logo-for-dark { display: none; }
[data-theme="light"] .footer .logo-for-light,
[data-theme="light"] .header.scrolled .logo-for-light,
[data-theme="light"] .header.open .logo-for-light { display: block; }

.to-top { position: fixed; inset-inline-end: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--invert); color: var(--invert-fg); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--red); color: #fff; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
