/* 27Production — site styles */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --ink: #f4f4f2;
  --muted: #a6a6ab;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #024da8;          /* logo blue */
  --blue-deep: #013a80;
  --blue-bright: #5b96ff;   /* accent text on dark */
  --on-blue: #ffffff;
  --on-blue-muted: #c9dbf7;

  --font: "Archivo", "Anuphan", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }

html { scrollbar-color: #3a3a40 var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a40; border-radius: 10px; border: 2px solid var(--bg); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.display, h1, h2, h3 {
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 7.2vw, 6rem); }
h2, .h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; max-width: 68ch; }

/* Thai: no tracking, taller lines, a touch larger */
:lang(th) .display, :lang(th) h1, :lang(th) h2, :lang(th) h3 {
  letter-spacing: 0;
  line-height: 1.3;
  font-variation-settings: "wdth" 100;
}
:lang(th) body, html[lang="th"] body { font-size: 18px; line-height: 1.7; }
html[lang="th"] .display { font-size: clamp(2.3rem, 6vw, 5rem); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0560cf; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--ink); background: rgba(10,10,11,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(10,10,11,.5); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 9px; }
.brand span { font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; font-size: 1.05rem; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  transition: background-color .25s var(--ease-out);
}
.nav a:hover, .nav .nav-trigger:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.08); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }

.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0;
  min-width: 260px; padding: 8px; margin: 0; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .nav-trigger svg, .nav-group.is-open .nav-trigger svg { transform: rotate(180deg); }
.nav-menu a { display: flex; width: 100%; height: auto; padding: 10px 14px; border-radius: 10px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; height: 40px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10,10,11,.3);
}
.lang-toggle button {
  border: 0; background: none; cursor: pointer; padding: 0 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em;
  transition: background-color .25s, color .25s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.header-cta { height: 40px; min-height: 40px; padding: 0 18px; font-size: .92rem; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 40px; margin: 0;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav .nav-trigger { height: auto; padding: 16px 0; border-radius: 0; font-size: 1.6rem; font-weight: 600; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; }
  .nav a:hover, .nav .nav-trigger:hover, .nav a[aria-current="page"] { background: none; color: var(--blue-bright); }
  .nav-trigger svg { display: none; }
  .nav-menu { position: static; translate: none; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 4px 0 12px; min-width: 0; }
  .nav-menu a { font-size: 1.15rem; padding: 10px 0; color: var(--muted); border-radius: 0; }
  .nav .nav-mobile-cta { margin-top: 28px; justify-content: center; border: 0; font-size: 1rem; padding: 0 1.4em; height: 52px; border-radius: 999px; background: var(--blue); color: #fff; }
  .nav .nav-mobile-cta:hover { background: #0560cf; color: #fff; }
}
@media (min-width: 961px) { .nav .nav-mobile-cta { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 34%, rgba(10,10,11,0) 62%),
    linear-gradient(to bottom, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 22%);
}
.hero-content { padding-block: calc(var(--header-h) + 40px) clamp(40px, 7vh, 80px); }
.hero h1 { max-width: 14ch; }
html[lang="th"] .hero h1 { max-width: 18ch; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(20px, 3vw, 36px); }
.hero-row .lede { color: #d6d6da; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 24px); font-size: .82rem; color: #d6d6da; display: flex; align-items: center; gap: 10px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }

/* Page hero (service pages) */
.page-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.page-hero .hero-media img { filter: saturate(.9); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,10,11,.95) 0%, rgba(10,10,11,.6) 40%, rgba(10,10,11,.15) 75%, rgba(10,10,11,.5) 100%);
}
.page-hero .hero-content { width: 100%; }
.crumb { display: inline-flex; gap: 8px; font-size: .9rem; color: #d6d6da; margin-bottom: 20px; text-decoration: none; }
.crumb:hover { color: #fff; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 11vw, 150px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 60px); }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Clients ---------- */

.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .wrap { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 32px; align-items: center; padding-block: 28px; }
.clients-label { font-size: .92rem; color: var(--muted); margin: 0; }
.logo-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(12px, 3vw, 40px); align-items: center; list-style: none; margin: 0; padding: 0; }
.logo-row img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; margin-inline: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .62; transition: opacity .3s; }
.logo-row li:hover img { opacity: 1; }
@media (max-width: 860px) {
  .clients .wrap { grid-template-columns: 1fr; gap: 12px; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .logo-row img { max-width: 84px; }
}

/* ---------- Work grid ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: none; font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: rgba(255,255,255,.4); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: #555; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.work-grid.has-feature > li:first-child { grid-column: span 2; grid-row: span 2; }
.work-grid.has-feature > li:first-child .work-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.work-grid > li[hidden] { display: none; }
@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid.has-feature > li:first-child { grid-row: auto; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid.has-feature > li:first-child { grid-column: auto; }
}

.work-card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.work-thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--surface); }
.work-grid.has-feature > li:first-child .work-card { display: flex; flex-direction: column; height: 100%; }
.work-grid.has-feature > li:first-child .work-thumb { flex: 1; aspect-ratio: auto; min-height: 280px; }
.work-grid.has-feature > li:first-child .work-meta { padding-top: 20px; }
.work-grid.has-feature > li:first-child .work-sub { margin-top: 8px; }
@media (max-width: 960px) {
  .work-grid.has-feature > li:first-child .work-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .6s var(--ease-out); }
.work-card:hover .work-thumb img, .work-card:focus-visible .work-thumb img { transform: scale(1.04); filter: brightness(.78); }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255,255,255,.95); color: var(--bg);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.work-card:hover .play, .work-card:focus-visible .play { opacity: 1; transform: none; }
@media (hover: none) { .play { opacity: 1; transform: scale(.8); background: rgba(255,255,255,.85); } }
.tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(10,10,11,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .76rem; font-weight: 600; color: #fff;
}
.tag.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; margin-right: 6px; vertical-align: 1px; }
.work-meta { display: block; padding-top: 16px; }
.work-title { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: "wdth" 106; }
.work-sub { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.work-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Services list ---------- */

.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); position: relative; }
.service-row { border-bottom: 1px solid var(--line); }
.service-link {
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px 48px; align-items: center;
  padding: clamp(24px, 3.2vw, 44px) 0; text-decoration: none;
  transition: color .3s var(--ease-out), padding-left .5s var(--ease-out);
}
.service-link h3 { font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.1; }
.service-link p { margin: 0; color: var(--muted); max-width: 44ch; }
.service-arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .4s var(--ease-out); }
.service-arrow svg { width: 22px; height: 22px; }
.service-link:hover { padding-left: 16px; }
.service-link:hover h3 { color: var(--blue-bright); }
.service-link:hover .service-arrow { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }
.service-img { display: none; }

.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 340px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.9);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.cursor-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cursor-preview img.is-active { opacity: 1; }
@media (hover: none), (max-width: 960px) { .cursor-preview { display: none; } }

@media (max-width: 760px) {
  .service-link { grid-template-columns: 1fr auto; }
  .service-link p { grid-column: 1 / -1; grid-row: 2; }
  .service-img { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
  .service-img img { width: 100%; height: 100%; object-fit: cover; }
  .service-link:hover { padding-left: 0; }
}

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-statement { font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 106; margin: 0; text-wrap: pretty; max-width: 24ch; }
html[lang="th"] .about-statement { letter-spacing: 0; line-height: 1.45; max-width: 26ch; }
.about-statement em { font-style: normal; color: var(--blue-bright); }
.about-body p { color: var(--muted); }
.about-body .atss { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Capabilities (service pages) ---------- */

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.caps li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.caps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.caps li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.caps h3 { font-size: 1.25rem; margin-bottom: 10px; }
.caps p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 860px) {
  .caps { grid-template-columns: 1fr; }
  .caps li, .caps li + li { padding: 24px 0; border-left: 0; }
}

.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.gallery figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.gallery figure:nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
.gallery figure:nth-child(3) { grid-column: span 5; aspect-ratio: 1; }
.gallery figure:nth-child(4) { grid-column: span 7; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery figure { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; } }

/* ---------- Contact ---------- */

.contact { background: var(--blue); color: var(--on-blue); }
.contact ::selection { background: #fff; color: var(--blue); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); max-width: 12ch; }
.contact .lede { color: var(--on-blue-muted); margin-top: 20px; }
.direct { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; text-decoration: none; padding: 6px 0; }
.direct a:hover { text-decoration: underline; }
.direct svg { width: 22px; height: 22px; opacity: .8; }
.direct-label { font-size: .85rem; color: var(--on-blue-muted); display: block; margin-top: 18px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--on-blue); }
.field .opt { font-weight: 400; color: var(--on-blue-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 1rem; color: #fff;
  background: rgba(0, 20, 60, .28); border: 1px solid rgba(255,255,255,.28); border-radius: 10px;
  transition: border-color .2s, background-color .2s;
  caret-color: #fff;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { color: #111; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.6); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(0, 20, 60, .4); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ffb4ab; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-foot small { color: var(--on-blue-muted); font-size: .85rem; max-width: 40ch; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status[data-state="error"] { color: #ffd7d2; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 16px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 64px); background: rgba(5,5,6,.94);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-frame { position: relative; width: min(100%, 1400px, calc((100svh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.is-open .lightbox-frame { transform: none; }
.lightbox-frame.is-vertical { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - 160px) * 9 / 16)); }
.lightbox-frame.is-square { aspect-ratio: 1; width: min(100%, calc(100svh - 160px)); }
.lightbox-frame iframe, .lightbox-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-bar { width: min(100%, 1400px); display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.lightbox-title { font-weight: 600; margin: 0; }
.lightbox-title small { display: block; color: var(--muted); font-weight: 400; }
.lightbox-close { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255,255,255,.08); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lightbox-ext { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* ---------- Reveal ---------- */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Simple pages ---------- */

.plain { min-height: 80svh; display: flex; align-items: center; padding-top: var(--header-h); }
.plain .lede { margin: 20px 0 32px; }
