/*
  TOWARD homepage — site.css
  모든 페이지가 공유하는 스타일입니다. 색상·여백 등은 아래 :root 변수에서 한 번에 바꿀 수 있습니다.
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --bg: #09090d;
  --bg-2: #0e0e14;
  --surface: #14141c;
  --surface-2: #1b1b26;
  --field: #0c0c12;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f7;
  --text-2: #b9b9c8;
  --text-3: #8b8b9e;

  --accent: #ee3867;          /* TOWARD brand pink (logo): glows, borders, gradients */
  --accent-fill: #d42a58;     /* pink behind white text (WCAG AA 4.9:1) */
  --accent-fill-hover: #bf1f4b;
  --accent-soft: #ff7598;     /* readable pink for text on dark */
  --accent-tint: rgba(238, 56, 103, 0.14);
  --violet: #8a6bff;
  --blue: #7c9bff;
  --gold: #ffc857;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  --gutter: 24px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;

  color-scheme: dark;
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(238, 56, 103, 0.08), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul[class], ol[class],
nav ul, nav ol,
.footer-col ul {
  list-style: none;
  padding: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

a:focus,
button:focus,
summary:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

::selection {
  background: rgba(238, 56, 103, 0.45);
  color: #fff;
}

.hero-title,
.page-title,
.section-title,
.cta-band h2,
.vision-quote,
.hero-lead,
.page-lead,
.stat-label,
.card-title {
  text-wrap: balance;
}

.prose p,
.card-text,
.timeline p {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.muted {
  color: var(--text-2);
}

/* ==========================================================================
   4. Buttons, tags, chips
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn i {
  font-size: 0.9em;
  transition: transform 0.25s var(--ease);
}

.btn:hover .fa-arrow-right {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent-fill);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(238, 56, 103, 0.8);
}

.btn-primary:hover {
  background: var(--accent-fill-hover);
  box-shadow: 0 16px 36px -12px rgba(238, 56, 103, 0.9);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16.5px;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.tag i {
  color: var(--text-3);
}

.tag--accent {
  background: var(--accent-tint);
  border-color: rgba(238, 56, 103, 0.35);
  color: #ff8fab;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}

.tags--mono li {
  background: rgba(124, 155, 255, 0.1);
  color: #c4d1ff;
}

.tags--lg {
  gap: 10px;
}

.tags--lg li {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(9, 9, 13, 0.62);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 9, 13, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--text);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current] {
  color: #ff8fab;
  background: var(--accent-tint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch a,
.lang-switch .is-current {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch .is-current {
  background: var(--accent-fill);
  color: #fff;
}

.lang-switch--lg a,
.lang-switch--lg .is-current {
  min-width: 64px;
  padding: 10px 16px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle-bar:first-child {
  top: 17px;
}

.nav-toggle-bar:last-child {
  top: 25px;
}

html.menu-open .nav-toggle-bar:first-child {
  top: 21px;
  transform: rotate(45deg);
}

html.menu-open .nav-toggle-bar:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   6. Hero (home) & page hero
   ========================================================================== */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  background:
    radial-gradient(45% 45% at 50% 10%, rgba(238, 56, 103, 0.3), transparent 70%),
    radial-gradient(30% 35% at 88% 20%, rgba(138, 107, 255, 0.22), transparent 70%),
    radial-gradient(28% 30% at 8% 35%, rgba(238, 56, 103, 0.14), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}

html.js .hero-intro > * {
  animation: hero-in 0.9s var(--ease) both;
}

html.js .hero-intro > :nth-child(2) { animation-delay: 0.08s; }
html.js .hero-intro > :nth-child(3) { animation-delay: 0.16s; }
html.js .hero-intro > :nth-child(4) { animation-delay: 0.24s; }
html.js .hero-intro > :nth-child(5) { animation-delay: 0.32s; }
html.js .hero-intro > :nth-child(n + 6) { animation-delay: 0.4s; }

@keyframes hero-in {
  from {
    opacity: 0.001;
    transform: translateY(18px);
  }
}

@keyframes glow-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.06); }
}

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(8px, 2vw, 24px);
  text-align: center;
}

.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-title em,
.page-title em {
  font-style: normal;
  background: linear-gradient(110deg, #ff6c92 0%, var(--accent) 45%, #a785ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-2);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions.hero-actions--left {
  justify-content: flex-start;
}

.page-hero .hero-actions {
  margin-top: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 56, 103, 0.55), transparent);
  filter: blur(40px);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1152 / 498;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 64px);
  text-align: left;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 24px;
  border-left: 1px solid var(--border-strong);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
}

.page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px);
}

.page-hero .hero-bg::before {
  inset: -10% -10% 0;
  opacity: 0.85;
}

.page-title {
  max-width: 900px;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-title--detail {
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
}

.page-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.page-hero--404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-hero--404 .btn-row {
  margin-top: 32px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-3);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb a {
  display: inline-block;
  padding: 6px 0;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb [aria-current] {
  color: var(--text-2);
}

/* Showcase marquee (home) — every project thumbnail, scrolling endlessly */
.marquee {
  --marquee-gap: 16px;
  display: flex;
  gap: var(--marquee-gap);
  margin-top: clamp(48px, 7vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: var(--marquee-gap);
  min-width: 100%;
  animation: marquee 80s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(calc(-100% - var(--marquee-gap))); }
}

.marquee-track a {
  position: relative;
  display: block;
  width: clamp(124px, 14vw, 172px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #000;
}

.marquee-track img {
  display: block;
  width: 100%;
  aspect-ratio: 353 / 326;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.marquee-track span {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 10px 9px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.marquee-track a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: -2px;
}

.marquee-track a:hover img,
.marquee-track a:focus-visible img {
  transform: scale(1.07);
}

.marquee-track a:hover span,
.marquee-track a:focus-visible span {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .marquee-track span {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }

  .marquee-track {
    animation: none;
  }

  .marquee-track[aria-hidden="true"] {
    display: none;
  }
}

/* ==========================================================================
   7. Sections
   ========================================================================== */
.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section--tight {
  padding-top: 8px;
}

.section--cta {
  padding-top: 0;
}

.pager + .section--cta {
  padding-top: clamp(48px, 6vw, 72px);
}

/* pages that end with the pager (no request banner) still need room above the footer */
.pager:last-child {
  margin-bottom: clamp(56px, 8vw, 96px);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--border);
}

.section-gap {
  margin-top: clamp(64px, 9vw, 112px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.link-more {
  padding: 10px 0;
  margin: -10px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.link-more i {
  font-size: 0.85em;
  transition: transform 0.25s var(--ease);
}

.link-more:hover {
  color: var(--accent-soft);
}

.link-more:hover i {
  transform: translateX(4px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 901px) {
  .about-grid .vision,
  .milestone-grid .awards {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.vision {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(238, 56, 103, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(238, 56, 103, 0.22), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(138, 107, 255, 0.16), transparent 60%),
    var(--surface);
}

.vision::after {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 26px;
  color: rgba(238, 56, 103, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
}

.vision-label {
  margin-bottom: 16px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vision-quote {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.prose p {
  margin-bottom: 1.15em;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.prose p:last-child {
  margin-bottom: 0;
}

.service-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-grid {
  margin-top: clamp(40px, 6vw, 72px);
}

.service-card,
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.service-card:hover {
  border-color: rgba(238, 56, 103, 0.5);
  background: var(--surface-2);
}

.service-card h3,
.value-card h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card p,
.value-card p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-soft);
  font-size: 20px;
}

.service-more {
  position: absolute;
  top: 28px;
  right: 26px;
  color: var(--text-3);
  transition: transform 0.35s var(--ease), color 0.35s;
}

.service-card:hover .service-more {
  color: var(--accent-soft);
  transform: rotate(-45deg);
}

/* ==========================================================================
   8. Project cards & filters
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(238, 56, 103, 0.55);
  box-shadow: 0 28px 50px -28px rgba(238, 56, 103, 0.6);
}

.card-link:focus-visible {
  outline: none;
}

.card:focus-within {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

@supports selector(:has(*)) {
  .card:focus-within {
    outline: none;
  }

  .card:has(.card-link:focus-visible) {
    border-color: var(--accent);
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
  }
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  position: relative;
  aspect-ratio: 353 / 326;
  overflow: hidden;
  background: #000;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 20, 28, 0.55));
  pointer-events: none;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.card-kicker {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.card-platforms {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--text-3);
  font-size: 15px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.card-more {
  display: none;
}

.chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: #fff;
}

.chip-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.chip[aria-pressed="true"] .chip-count {
  background: rgba(0, 0, 0, 0.22);
}

/* Stronger than the scroll-reveal rule so the filter animation wins. */
html.js .card.reveal.is-filtered-in {
  animation: card-in 0.45s var(--ease) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  .store-btn:hover {
    transform: translateY(-1px);
  }

  .service-card:hover {
    transform: translateY(-4px);
  }

  .card:hover {
    transform: translateY(-6px);
  }
}

/* ==========================================================================
   9. Milestones & awards
   ========================================================================== */
.milestone-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.awards-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

.awards-title i {
  color: var(--gold);
}

.award-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.award {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.award img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.award figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.award-year {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.award strong {
  font-size: 15px;
  line-height: 1.4;
}

.award figcaption > span:last-child {
  color: var(--text-3);
  font-size: 13px;
}

.timeline {
  position: relative;
  margin-left: 6px;
  border-left: 1px solid var(--border-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 30px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(238, 56, 103, 0.18);
}

.tl-year {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-soft);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.timeline p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ==========================================================================
   10. CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 160% at 0% 0%, rgba(238, 56, 103, 0.38), transparent 55%),
    radial-gradient(100% 160% at 100% 100%, rgba(138, 107, 255, 0.3), transparent 55%),
    var(--surface);
}

.cta-copy {
  flex: 1 1 380px;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   11. Project detail
   ========================================================================== */
.page-detail .page-hero {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.detail-media {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: clamp(16px, 2.4vw, 26px);
  background: #000;
  cursor: zoom-in;
}

.media-frame--natural {
  display: flex;
  justify-content: center;
  background: var(--surface);
}

.media-frame.media-frame--natural img {
  width: auto;
  max-width: 100%;
}

.media-frame img {
  display: block;
  width: 100%;
  transition: transform 0.8s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.015);
}

.media-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.media-frame:hover .media-zoom,
.media-frame:focus-visible .media-zoom {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .media-zoom {
    opacity: 1;
    transform: none;
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 18px;
  font-size: 1.3rem;
  font-weight: 700;
}

.block-title:first-child {
  margin-top: 0;
}

.block-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--violet));
}

.detail-main .prose p {
  color: #cdcdda;
}

.highlights {
  display: grid;
  gap: 10px;
}

.highlights li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.6;
}

.highlights i {
  margin-top: 4px;
  color: var(--gold);
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.sub-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.sub-index {
  color: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sub-card h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.sub-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
}

.video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease);
}

.video:hover img {
  opacity: 0.95;
  transform: scale(1.03);
}

/* 4:3 YouTube posters of non-16:9 uploads: hide leftover letterbox bands */
.video.is-sd img {
  transform: scale(1.12);
}

.video.is-sd:hover img {
  transform: scale(1.15);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 0 0 10px rgba(238, 56, 103, 0.25), 0 20px 40px -10px rgba(238, 56, 103, 0.8);
  transition: transform 0.35s var(--ease);
}

.video-play i {
  margin-left: 4px;
}

.video:hover .video-play {
  transform: scale(1.08);
}

.video-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 13.5px;
  font-weight: 600;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.info-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.info-title {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.info-list > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.info-list dd {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.aside-sub {
  margin: 12px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.store-list {
  display: grid;
  gap: 10px;
}

.hero-stores {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-stores .store-btn {
  padding: 9px 14px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #050507;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s;
}

.store-btn:hover {
  border-color: var(--accent);
  background: #0c0c11;
}

.store-btn i {
  width: 28px;
  font-size: 24px;
  text-align: center;
}

.store-btn small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.3;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
}

.pager-item,
.pager-list {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.pager-item:hover,
.pager-list:hover {
  border-color: rgba(238, 56, 103, 0.55);
  background: var(--surface-2);
}

.pager-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px;
}

.pager-next {
  flex-direction: row-reverse;
  text-align: right;
}

.pager-item img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.pager-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pager-dir {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.pager-dir i {
  font-size: 0.85em;
}

.pager-title {
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pager-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.pager-list i {
  font-size: 18px;
}

.pager-spacer {
  display: block;
}

.page-title-sub {
  display: block;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   12. Contact
   ========================================================================== */
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.stack-title {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
}

.phase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.phase::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.phase--p0::before { background: var(--blue); }
.phase--p1::before { background: var(--accent); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: 18px;
  background: var(--surface);
}

.step--p0 { border-top-color: var(--blue); }
.step--p1 { border-top-color: var(--accent); }

.step-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.step--p0 .step-num { color: var(--blue); }
.step--p1 .step-num { color: var(--accent-soft); }

.step p {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.contact-intro .section-title {
  margin-bottom: 16px;
}

.email-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.email-card-body {
  display: flex;
  flex: 1 1 210px;
  flex-direction: column;
  min-width: 0;
}

.email-label {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
}

.email-address {
  overflow-wrap: normal;
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.2s;
}

.email-address:hover {
  color: var(--accent-soft);
}

.inquiry-form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.req {
  color: var(--accent-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #66667a;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b9b9c8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field ::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238, 56, 103, 0.25);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #ff6b6b;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.form-fallback {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: 16px;
  background: rgba(255, 200, 87, 0.06);
  color: var(--text-2);
  font-size: 14.5px;
}

.form-fallback a:not(.btn) {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-fallback-title {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
}

.form-fallback-title i {
  color: var(--gold);
}

.form-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.form-hint {
  flex: 1 1 260px;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--border);
  background: #060609;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.brand--footer img {
  width: 34px;
  height: 34px;
}

.footer-brand > p {
  max-width: 340px;
  margin: 18px 0 22px;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.7;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.social a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.footer-col h2 {
  margin-bottom: 16px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}

html[lang="en"] .footer-col h2 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col li + li {
  margin-top: 2px;
}

.footer-col li a {
  display: inline-block;
  padding: 6px 0;
}

.footer-col a,
.footer-col p {
  color: var(--text-2);
  font-size: 15px;
}

.footer-col p + p {
  margin-top: 8px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-mail {
  font-weight: 600;
}

.footer-legal {
  position: relative;
  margin-top: 56px;
  padding-top: 24px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.8;
}

.footer-legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--border);
}

.footer-legal > p > span {
  white-space: nowrap;
}

.footer-legal > p > span + span::before {
  content: "·";
  margin: 0 10px;
  opacity: 0.6;
}

.copyright {
  margin-top: 6px;
}

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(27, 27, 38, 0.85);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.25s, visibility 0s linear 0.3s;
}

.has-lang-banner .to-top {
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + var(--banner-h, 72px) + 12px);
}

/* the fixed language banner never hides the company details at the very bottom */
.has-lang-banner .site-footer {
  padding-bottom: calc(32px + var(--banner-h, 72px) + 16px);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover {
  background: var(--accent);
}

html:not(.js) .to-top {
  display: none;
}

/* ==========================================================================
   14. Lightbox & toast (created by site.js)
   ========================================================================== */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgba(4, 4, 7, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  overflow: auto;
}

.lightbox.is-pannable[open] {
  place-items: center start;
}

.lightbox.is-pannable .lightbox-figure {
  padding: 0 12px;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 84vh;
  max-height: 84dvh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  touch-action: pan-y pinch-zoom;
}

.lightbox.is-pannable img {
  touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-count {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.75);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(20, 20, 28, 0.7);
  color: #fff;
  font-size: 18px;
  transition: background-color 0.2s;
}

.lightbox-btn:hover {
  background: var(--accent);
}

.lightbox-close { top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
.lightbox-prev { left: max(20px, env(safe-area-inset-left)); top: 50%; margin-top: -24px; }
.lightbox-next { right: max(20px, env(safe-area-inset-right)); top: 50%; margin-top: -24px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lang-banner {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(27, 27, 38, 0.92);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.lang-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.menu-open .lang-banner {
  visibility: hidden;
}

.lang-banner > i {
  color: var(--accent-soft);
}

.lang-banner p {
  font-size: 14.5px;
  font-weight: 600;
}

.lang-banner-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}

.lang-banner-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

@media (max-width: 600px) {
  .lang-banner {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 14px 10px 12px 16px;
  }

  .lang-banner p {
    flex: 1 1 60%;
  }
}

/* ==========================================================================
   15. Scroll reveal (only when JS runs; content is always visible without it)
   ========================================================================== */
html.js .reveal:not(.is-visible) {
  opacity: 0;
}

html.js .reveal.is-visible {
  animation: reveal-in 0.8s var(--ease) backwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal:not(.is-visible) {
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    transition-delay: 0s !important;
  }

  html.js .reveal.is-visible,
  html.js .hero-intro > *,
  html.js .card.reveal.is-filtered-in {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .chip[aria-pressed="true"],
  .lang-switch .is-current {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
}

@media print {
  :root {
    --text: #111;
    --text-2: #333;
    --text-3: #555;
    --bg: #fff;
    --bg-2: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --field: #fff;
    --border: #ddd;
    --border-strong: #bbb;
    color-scheme: light;
  }

  .tag--accent,
  .tags--mono li,
  .card-kicker {
    color: #333 !important;
  }

  html.js .reveal,
  html.js .hero-intro > * {
    opacity: 1 !important;
    animation: none !important;
  }

  .site-header,
  .mobile-menu,
  .to-top,
  .hero-bg,
  .skip-link,
  .hero-visual::before,
  .marquee,
  .cta-actions,
  .pager,
  .toast,
  .lightbox,
  .lang-banner,
  .filters,
  .media-zoom,
  .video-play,
  .form-foot .btn {
    display: none !important;
  }

  html,
  body,
  .section--alt,
  .site-footer,
  .card,
  .info-card,
  .cta-band,
  .vision,
  .service-card,
  .value-card,
  .step,
  .award,
  .inquiry-form,
  .sub-card,
  .highlights li {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }

  .hero-title em,
  .page-title em {
    background: none !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor;
  }

  .prose p,
  .muted,
  .card-text,
  .page-lead,
  .hero-lead,
  .timeline p {
    color: #333 !important;
  }
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  /* With JS: hamburger + full-screen menu. Without JS: the nav stays as a scrollable row. */
  html.js .site-nav {
    display: none;
  }

  html:not(.js) .site-nav {
    overflow-x: auto;
  }

  html.js .nav-toggle {
    display: inline-block;
  }

  .header-actions {
    margin-left: auto;
  }

  html.js .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom));
    background: rgba(9, 9, 13, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }

  html.menu-open {
    overflow: hidden;
  }

  .mobile-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .mobile-link[aria-current] {
    color: var(--accent-soft);
  }

  .mobile-menu-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 32px;
  }

  .mobile-mail {
    color: var(--text-2);
    font-size: 15px;
  }

  .mobile-cta {
    align-self: stretch;
  }

  html.menu-open .mobile-menu li {
    animation: menu-in 0.45s var(--ease) both;
  }

  html.menu-open .mobile-menu li:nth-child(2) { animation-delay: 0.04s; }
  html.menu-open .mobile-menu li:nth-child(3) { animation-delay: 0.08s; }
  html.menu-open .mobile-menu li:nth-child(4) { animation-delay: 0.12s; }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 900px) {
  .about-grid,
  .milestone-grid,
  .contact-grid,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-aside {
    position: static;
  }

  .service-card,
  .value-card {
    padding: 24px 20px;
  }

  .card-grid:not(.card-grid--3) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .award-list {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
  }

  .awards-title {
    justify-content: center;
  }

  /* Download buttons right under the title (the info card moves below the text) */
  .hero-stores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    max-width: 600px;
  }

  .detail-aside .aside-sub,
  .detail-aside .store-list {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  /* Featured rows on the home page become swipeable carousels. */
  .card-grid--3 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(76%, 300px);
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter) 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .card-grid--3::-webkit-scrollbar {
    display: none;
  }

  .card-grid--3 > .card,
  .card-grid--3 > .card-more {
    scroll-snap-align: start;
  }

  .card-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed var(--border-strong);
    border-radius: 16px;
    color: var(--text-2);
    font-weight: 700;
    text-align: center;
  }

  .card-more-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-soft);
    font-size: 18px;
  }

  .card-more-count {
    color: var(--text-3);
    font-size: 13px;
  }

  .pager {
    grid-template-columns: 1fr 1fr;
  }

  .pager-list {
    grid-column: 1 / -1;
    flex-direction: row;
    order: 3;
    padding: 14px;
  }

  .pager-item {
    gap: 12px;
    padding: 10px;
  }

  .pager-item img {
    width: 48px;
    height: 48px;
  }

  .pager-title {
    font-size: 14.5px;
  }
}


@media (max-width: 600px) {
  .pager-item img {
    display: none;
  }

  .pager-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 1.35;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .brand-word {
    font-size: 14px;
    letter-spacing: 0.26em;
  }

  .header-actions {
    gap: 10px;
  }

  .site-header .lang-switch a,
  .site-header .lang-switch .is-current {
    min-width: 40px;
    min-height: 34px;
    padding: 8px 9px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    min-width: 0;
    white-space: normal;
  }

  .stat {
    padding: 4px 16px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .service-grid,
  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 2.6rem);
  }

  /* Compact two-column cards on phones */
  .card-grid:not(.card-grid--3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-grid:not(.card-grid--3) .card-body {
    gap: 4px;
    padding: 12px 13px 14px;
  }

  .card-grid:not(.card-grid--3) .card-title {
    font-size: 15.5px;
  }

  .card-grid:not(.card-grid--3) .card-text {
    font-size: 13px;
  }

  .card-grid:not(.card-grid--3) .card-kicker {
    font-size: 12px;
  }

  .card-grid:not(.card-grid--3) .card-platforms {
    gap: 10px;
    padding-top: 8px;
    font-size: 13px;
  }

  .card {
    border-radius: 16px;
  }

  .filters {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    margin-bottom: 24px;
    padding: 6px var(--gutter) 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .award-list {
    gap: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
  }

  .step p {
    margin-top: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-foot .btn {
    width: 100%;
    white-space: normal;
  }

  .stack {
    padding: 20px;
  }

  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-legal > p > span {
    display: block;
    white-space: normal;
  }

  .footer-legal > p > span + span::before {
    content: none;
  }

  .info-card {
    padding: 22px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
    margin-top: 0;
  }
}

/* Small phones: one horizontal card per row (must come after the 600px rules) */
@media (max-width: 480px) {
  .card-grid:not(.card-grid--3) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .card-grid:not(.card-grid--3) .card-link {
    flex-direction: row;
  }

  .card-grid:not(.card-grid--3) .card-media {
    flex: 0 0 120px;
    aspect-ratio: auto;
    min-height: 120px;
  }

  .card-grid:not(.card-grid--3) .card-media::after {
    background: linear-gradient(90deg, transparent 60%, rgba(20, 20, 28, 0.5));
  }

  .card-grid:not(.card-grid--3) .card-body {
    min-width: 0;
    padding: 12px 14px;
  }

  .card-grid:not(.card-grid--3) .card-text {
    -webkit-line-clamp: 2;
  }

  .card-grid:not(.card-grid--3) .card-platforms {
    padding-top: 6px;
  }
}
