/* ArtSea Games Studio */
:root {
  --bg: #0b0c0e;
  --bg-alt: #111316;
  --surface: #16191d;
  --line: #24282e;
  --text: #ecebe7;
  --muted: #8d939b;
  --accent: #c9bfb3;      /* barely-warm grey for labels; not a brand color */
  --accent-ink: #0b0c0e;
  --sea: #8dadbf;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1; margin: 0; letter-spacing: .005em; text-transform: uppercase; }
h2 { font-size: clamp(40px, 5.2vw, 72px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.dim { color: #8f949b; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: #c9c9c4; max-width: 46ch; }
.narrow { max-width: 42ch; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  background: var(--text); color: var(--accent-ink);
  font: 600 14px/1 var(--body); letter-spacing: .02em;
  text-decoration: none; border: 1px solid var(--text); border-radius: 2px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(11,12,14,.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 25px/1 var(--head); letter-spacing: .01em; }
.brand .s, .wordmark .s { color: var(--sea); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14px; color: #cfcfca; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.55) 45%, rgba(11,12,14,.1) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,0) 35%); }
.hero-inner { position: relative; padding-bottom: 72px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 112px); line-height: .92; margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.hero-facts div { padding: 22px 24px 30px 0; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-facts b { display: block; font: 600 24px/1.1 var(--head); text-transform: uppercase; margin-bottom: 6px; }
.hero-facts span { font-size: 13px; color: var(--muted); }
.hero-credit { position: absolute; right: var(--gutter); top: 96px; font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .1em; margin: 0; }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 9px 16px; font: 500 13px/1 var(--body); border-radius: 2px; cursor: pointer; transition: all .2s; }
.filters button sup { font-family: var(--mono); font-size: 10px; margin-left: 2px; }
.filters button:hover { color: var(--text); border-color: #3a3f46; }
.filters button.is-active { color: var(--accent-ink); background: var(--text); border-color: var(--text); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: 2px; overflow: hidden; }
.card[hidden] { display: none; }
.card-big { grid-column: span 2; grid-row: span 2; }
.card-big:nth-child(2) { grid-column: 2 / span 2; }
.card-big h3 { font-size: 30px; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-big .card-media { aspect-ratio: auto; flex: 1; min-height: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 20px; }
.card h3 { font-size: 22px; margin-bottom: 6px; transition: color .2s; }
.card:hover h3 { color: #fff; }
.card-body p { margin: 0; font-size: 13px; color: var(--muted); }
.badge { flex: none; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); border-radius: 2px; }
.badge-ad { color: var(--text); border-color: rgba(255,255,255,.28); }
.note { margin-top: 32px; color: var(--muted); max-width: 80ch; }
.note .badge { vertical-align: 1px; margin: 0 2px; }
.note a { color: var(--text); }

/* Services */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-aside { position: sticky; top: 112px; }
.split-aside h2 { margin-bottom: 24px; }
.split-aside .muted { max-width: 38ch; }
.tools { margin-top: 28px; font-size: 12px; color: #b6b6b0; text-transform: uppercase; letter-spacing: .08em; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service .num { grid-row: span 3; font-size: 13px; color: var(--accent); padding-top: 5px; }
.service h3 { font-size: 30px; margin-bottom: 10px; }
.service p { color: var(--muted); margin-bottom: 14px; max-width: 52ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font: 400 12px/1 var(--mono); color: #b9b9b3; padding: 7px 10px; background: var(--surface); border-radius: 2px; }

/* Band */
.band { position: relative; height: clamp(360px, 52vw, 640px); overflow: hidden; display: flex; align-items: flex-end; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,12,14,.9) 0%, rgba(11,12,14,0) 60%); }
.band-inner { position: relative; z-index: 1; padding-bottom: 48px; }
.band blockquote { margin: 0 0 12px; font: 600 clamp(28px, 3.6vw, 48px)/1.05 var(--head); text-transform: uppercase; max-width: 22ch; }
.band p { color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .08em; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process li { padding: 28px 24px 32px; background: var(--surface); border-top: 1px solid rgba(236,235,231,.55); border-radius: 0 0 2px 2px; }
.process .num { display: block; font-size: 13px; color: var(--accent); margin-bottom: 40px; }
.process h3 { margin-bottom: 12px; }
.process p { margin: 0; font-size: 14px; color: var(--muted); }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.studio-photo { margin: 0; }
.studio-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 2px; }
.studio-photo figcaption { margin-top: 12px; color: var(--muted); }
.studio-text h2 { margin-bottom: 28px; }
.studio-text > p { color: #c4c4bf; max-width: 54ch; }
.people { display: grid; gap: 16px; margin-top: 36px; }
.person { display: flex; gap: 18px; padding: 20px; background: var(--surface); border-radius: 2px; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(.2); }
.person h3 { font-size: 22px; margin-bottom: 4px; }
.person p { margin: 0 0 6px; }
.person .links { display: flex; gap: 16px; margin: 8px 0 0; }
.person .links a { color: var(--text); text-decoration: none; border-bottom: 1px solid #444; }
.person .links a:hover { border-color: #fff; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-list { margin: 36px 0 0; display: grid; grid-template-columns: 96px 1fr; row-gap: 14px; }
.contact-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.contact-list a:hover { border-color: #fff; }
.form { display: grid; gap: 18px; background: var(--surface); padding: clamp(24px, 3vw, 40px); border-radius: 2px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 2px;
  padding: 14px; font: 400 15px/1.4 var(--body); text-transform: none; letter-spacing: 0;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #8d939b; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-links { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 10px 40px; font-size: 14px; }
.footer-links a { text-decoration: none; color: #cfcfca; }
.footer-links a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-base a { text-decoration: none; }

/* Project page */
.page-project main { padding-top: 72px; }
.project-hero { background: #000; }
.project-hero img { width: 100%; max-height: calc(100svh - 72px); object-fit: cover; cursor: zoom-in; }
.project-intro { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 96px); padding-top: 56px; padding-bottom: 64px; }
.back { display: inline-block; text-decoration: none; color: var(--muted); margin-bottom: 32px; }
.back:hover { color: var(--text); }
.project-intro h1 { font-size: clamp(44px, 6vw, 88px); line-height: .95; }
.project-sub { font: 500 20px/1.3 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 28px; }
.project-intro p:not(.lead):not(.eyebrow):not(.project-sub):not(.ad-note) { color: #b9b9b3; max-width: 60ch; }
.ad-note { margin-top: 28px; padding: 16px 18px; border-left: 2px solid rgba(236,235,231,.6); background: var(--surface); font-size: 14px; color: #c4c4bf; max-width: 60ch; }
.ad-note b { color: var(--text); }
.project-meta { margin: 0; align-self: start; border-top: 1px solid var(--line); }
.project-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.project-meta dd { margin: 0; font-size: 14px; }
.gallery { display: grid; gap: 20px; padding-bottom: 80px; }
.shot { margin: 0; }
.shot a { display: block; background: #000; cursor: zoom-in; }
.shot img { width: 100%; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.shot figcaption { margin-top: 10px; color: var(--muted); }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.project-nav > a:not(.btn) { text-decoration: none; display: grid; gap: 6px; }
.project-nav > a:not(.btn) span { color: var(--muted); }
.project-nav > a:not(.btn) b { font: 600 26px/1 var(--head); text-transform: uppercase; transition: color .2s; }
.project-nav > a:not(.btn):hover b { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.project-nav .to-right { text-align: right; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,7,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { text-align: center; color: var(--muted); font: 12px/1 var(--mono); margin-top: 14px; text-transform: uppercase; letter-spacing: .08em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; padding: 16px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 36px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-big, .card-big:nth-child(2) { grid-column: 1 / -1; grid-row: auto; }
  .card-big .card-media { aspect-ratio: 16 / 9; flex: none; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 18px; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header:has(.nav.is-open) { background: var(--bg); }
  .split, .studio, .project-intro { grid-template-columns: 1fr; }
  .split-aside { position: static; }
  .hero-credit { display: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card-big .card-media { aspect-ratio: 16 / 10; flex: none; }
  .process { grid-template-columns: 1fr; }
  .process .num { margin-bottom: 20px; }
  .hero-facts div { padding: 16px 12px 18px 0; }
  .hero-facts div + div { padding-left: 12px; }
  .hero-facts b { font-size: 19px; }
  .form .row, .shot-pair { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service .num { grid-row: auto; margin-bottom: 8px; }
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav .btn { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .footer-links { grid-auto-flow: row; grid-template-rows: none; }
}

/* Header tools: language + contact */
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 6px; color: #cfcfca; font-size: 13px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: #fff; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 6px; display: grid; z-index: 60; }
.lang-menu a { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; text-decoration: none; font-size: 14px; color: #cfcfca; border-radius: 2px; }
.lang-menu a .mono { font-size: 11px; color: var(--muted); width: 20px; }
.lang-menu a:hover { background: #1f2328; color: #fff; }
.lang-menu a[aria-current] { color: #fff; }
.lang-menu a[aria-current] .mono { color: var(--sea); }

/* Contact forms with tabs */
.form { padding: 0; gap: 0; overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; color: var(--muted); font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 20px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.is-active { color: var(--text); border-bottom-color: var(--text); }
.form-body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form-panel { display: grid; gap: 18px; }
.form-panel[hidden] { display: none; }
.form-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.form-panel label { display: grid; gap: 8px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 2px;
  padding: 14px; font: 400 15px/1.4 var(--body); text-transform: none; letter-spacing: 0;
}
.form-panel select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8d939b 50%), linear-gradient(-45deg, transparent 50%, #8d939b 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form-panel textarea { resize: vertical; min-height: 130px; }
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { outline: none; border-color: #8d939b; }
.form-panel label.check { display: flex; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font: 400 14px/1.45 var(--body); color: #c4c4bf; cursor: pointer; }
.form-panel label.check input { width: 18px; height: 18px; padding: 0; margin: 1px 0 0; flex: none; accent-color: #ecebe7; }
.form-panel label.check a { color: var(--text); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.terms { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); }
.terms summary { cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #b9b9b3; }
.terms ol { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; max-width: 70ch; }

/* Thanks page */
.thanks { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding-top: 80px; padding-bottom: 80px; }
.thanks h1 { font-size: clamp(44px, 6vw, 88px); margin-bottom: 16px; }

/* Language-specific type */
html[lang="ru"] { --head: "Roboto Condensed", "Arial Narrow", sans-serif; }
html[lang="ja"] { --head: "Noto Sans JP", sans-serif; --body: "Inter", "Noto Sans JP", sans-serif; }
html[lang="zh"] { --head: "Noto Sans SC", sans-serif; --body: "Inter", "Noto Sans SC", sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="zh"] h1, html[lang="zh"] h2 { font-weight: 700; line-height: 1.15; letter-spacing: 0; }
html[lang="ja"] .hero h1, html[lang="zh"] .hero h1 { font-size: clamp(40px, 5.6vw, 84px); }
.wordmark { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }

@media (max-width: 860px) {
  .header-tools { gap: 6px; }
}
@media (max-width: 640px) {
  .form-panel .row { grid-template-columns: 1fr; }
  .tabs button { font-size: 11px; letter-spacing: .06em; padding: 16px 4px; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
}

/* Hero: studio name as the title */
.hero h1.hero-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(64px, 10.5vw, 168px); font-weight: 600; line-height: .86; letter-spacing: -.005em; text-transform: none; margin: 0 0 18px; }
.hero-sub { font: 600 clamp(20px, 2.3vw, 32px)/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 22px; max-width: 30ch; }
.hero-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 18px; max-width: 64ch; line-height: 1.6; }
.hero .lead { margin-bottom: 0; max-width: 52ch; }
.brand img { height: 36px; width: auto; }
.site-footer .brand img { height: 32px; }

/* Hero v3: centred stacked slogan */
.hero { justify-content: flex-end; }
.hero-media::after { background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(11,12,14,.86) 0%, rgba(11,12,14,.5) 55%, rgba(11,12,14,.2) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,0) 32%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 40px; margin-top: auto; }
.hero-brand { margin: 0 0 14px; font: 600 clamp(26px, 2.6vw, 38px)/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .01em; }
.hero h1.hero-slogan { display: flex; flex-direction: column; align-items: center; margin: 0 0 26px; font-size: clamp(52px, min(7.4vw, 10.5vh), 124px); line-height: .86; letter-spacing: -.01em; }
.hero-slogan span:first-child { font-size: .52em; letter-spacing: .01em; margin-bottom: .08em; }
.hero-slogan span:last-child { color: #9aa0a8; }
.hero-sub { margin: 0 auto 16px; max-width: none; font-size: clamp(16px, 1.6vw, 22px); }
.hero .lead { margin: 0 auto; max-width: 60ch; font-size: 16px; color: #b9bab6; }
.hero-down { margin-top: 18px; color: #cfcfca; animation: down-bob 2.4s ease-in-out infinite; }
.hero-down:hover { color: #fff; }
@keyframes down-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-down { animation: none; } }
html[lang="ja"] .hero h1.hero-slogan, html[lang="zh"] .hero h1.hero-slogan { font-size: clamp(42px, min(6vw, 8.5vh), 100px); line-height: 1.02; }
html[lang="ja"] .hero-slogan span:first-child, html[lang="zh"] .hero-slogan span:first-child { font-size: .6em; }
@media (max-width: 640px) { .hero .lead { font-size: 15px; } .hero-down { margin-top: 18px; } }
/* Hero v4: slogan centred in the screen above the facts bar */
.hero-inner { margin-top: auto; margin-bottom: auto; padding-top: 24px; padding-bottom: 24px; }
/* Hero v5: text sits high, clear of the drone; last slogan line in muted sea blue */
.hero-inner { margin-top: 0; margin-bottom: auto; padding-top: clamp(8px, 3vh, 36px); }
.hero-slogan span:last-child { color: var(--sea); }
/* Drone sits lower so the hero text stays clear of it */
.hero-media img { position: absolute; left: 0; top: 18%; width: 100%; height: 100%; object-position: 62% 50%; }
.hero-media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 46%, rgba(11,12,14,0) 100%); }
.hero-media::after { z-index: 2; }
@media (max-width: 640px) { .hero-media img { top: 30%; } .hero-media::before { height: 44%; } }
.hero-media { z-index: 0; }
.hero-inner, .hero-facts { z-index: 1; }
.hero-media img { top: 13%; object-position: 50% 50%; }
.hero-facts { background: linear-gradient(0deg, rgba(11,12,14,.85), rgba(11,12,14,.35)); }


/* Card label: plain muted text at the bottom right, no box */
.card-body { align-items: flex-end; }
.card .badge, .card .badge-ad { border: 0; padding: 0; color: #7d828a; font-size: 10px; letter-spacing: .1em; }

/* Hero text moves with scroll (set in main.js) */
[data-hero-text] { will-change: transform, opacity; }
.note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(236,235,231,.25); text-underline-offset: 3px; }
.note a:hover { color: #c4c4bf; text-decoration-color: rgba(236,235,231,.6); }

/* Copy-to-clipboard toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 12px); opacity: 0;
  background: var(--text); color: var(--accent-ink); font: 500 14px/1.3 var(--body); padding: 12px 18px; border-radius: 2px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.contact-list dd { display: grid; gap: 4px; justify-items: start; }
.contact-list a[data-copy] { cursor: copy; }
.copy-hint { font: 400 11px/1.2 var(--mono); color: var(--muted); letter-spacing: .04em; }

/* Full-width layout: content stretches with the screen instead of a fixed column */
:root { --wrap: 2400px; --gutter: clamp(16px, 4.2vw, 96px); }

/* Arabic: Arabic faces, no letter-spacing (it breaks letter joining), mirrored details */
html[lang="ar"] { --head: "Noto Kufi Arabic", sans-serif; --body: "Noto Sans Arabic", "Inter", sans-serif; --mono: "Noto Sans Arabic", "JetBrains Mono", monospace; }
html[lang="ar"] body *:not(.wordmark):not(.wordmark *) { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.25; }
html[lang="ar"] .hero h1.hero-slogan { line-height: 1.12; font-size: clamp(46px, min(6.6vw, 9.5vh), 108px); }
.wordmark { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .project-nav .to-right { text-align: left; }
[dir="rtl"] .form-panel select { background-position: 20px 50%, 15px 50%; padding-right: 14px; padding-left: 40px; }
[dir="rtl"] .terms ol { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .card-body, [dir="rtl"] .project-meta dd, [dir="rtl"] .project-intro { text-align: right; }
/* Honeypot field hidden without offsets (a negative left offset widens the page in RTL) */
.hp { position: absolute !important; left: auto !important; right: auto !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The slogan is an English brand line on every language version */
.hero h1.hero-slogan[lang="en"] { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; text-transform: uppercase; line-height: .86; letter-spacing: -.01em !important; font-size: clamp(52px, min(7.4vw, 10.5vh), 124px); }

/* Language menu: three main languages, the rest behind a small arrow */
.lang-more-toggle { display: flex; justify-content: center; align-items: center; width: 100%; height: 26px; margin-top: 2px; background: none; border: 0; border-radius: 2px; color: var(--text); opacity: .4; cursor: pointer; transition: opacity .2s, background .2s; }
.lang-more-toggle:hover, .lang-more-toggle:focus-visible { opacity: .85; background: #1f2328; }
.lang-more-toggle svg { transition: transform .2s; }
.lang-more-toggle.is-open svg { transform: rotate(180deg); }
.lang-more { display: grid; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 4px; }
.lang-more[hidden] { display: none; }
/* Expanded list continues right after the main three, no divider; the arrow hides once used */
.lang-more { border-top: 0; margin-top: 0; padding-top: 0; }
.lang-more-toggle[hidden] { display: none; }
/* Smaller, slightly more visible expander arrow */
.lang-more-toggle { height: 16px; opacity: .55; }
.lang-more-toggle { height: 13px; margin-top: 0; }

/* Link to the full PDF portfolio in the note under the grid */
.note .pdf-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: underline; text-decoration-color: rgba(236,235,231,.3); text-underline-offset: 3px; }
.note .pdf-link:hover { text-decoration-color: rgba(236,235,231,.8); }
.note .pdf-link .ext { flex: none; opacity: .75; }
[dir="rtl"] .note .pdf-link .ext { transform: scaleX(-1); }
.footer-links { grid-template-rows: repeat(3, auto); }
/* Portfolio link: a step brighter than the note text, not full white */
.note .pdf-link { color: #b4b8be; text-decoration-color: rgba(180,184,190,.35); }
.note .pdf-link:hover { color: #d2d5d9; text-decoration-color: rgba(210,213,217,.7); }
.footer-links { grid-template-rows: repeat(2, auto); }
.form-note { margin: 0; color: var(--muted); }
.form-note a { color: #b4b8be; text-decoration: underline; text-decoration-color: rgba(180,184,190,.35); text-underline-offset: 3px; cursor: copy; }
.band blockquote { max-width: 26ch; }
/* Portfolio link: muted, close to the surrounding note text */
.note .pdf-link { color: #a0a5ac; text-decoration-color: rgba(160,165,172,.28); }
.note .pdf-link .ext { opacity: .6; }
.note .pdf-link:hover { color: #c4c7cc; text-decoration-color: rgba(196,199,204,.6); }
