:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --text: #17191d;
  --muted: #666a72;
  --primary: #111111;
  --border: #e8e8e3;
  --shadow: 0 2px 10px rgba(21, 24, 31, 0.06);
  --control-height: 40px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

/* Welcome page */
.welcome-body {
  background: var(--bg);
  color: var(--text);
}

.welcome-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  gap: 18px;
}

.welcome-video-wrap {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  overflow: clip;
  isolation: isolate;
}

.welcome-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(245, 245, 242, 0.94) 100%),
    linear-gradient(180deg, rgba(245, 245, 242, 0) 72%, rgba(245, 245, 242, 0.95) 100%);
}

.welcome-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.welcome-video-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(20px) saturate(1.06);
  transform: scale(1.05);
  opacity: 0.7;
}

.welcome-video-wrap.is-finished .welcome-video {
  opacity: 0;
  transition: opacity 620ms ease;
}

.final-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(920px, 100%);
  height: auto;
  object-fit: contain;
  opacity: 0;
  image-rendering: auto;
  filter: blur(12px) saturate(1.03);
  transform: scale(1.01);
  transition: opacity 760ms ease, filter 760ms ease, transform 760ms ease;
  mask-image: radial-gradient(ellipse at center, #000 82%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 82%, transparent 100%);
}

.final-logo.is-visible {
  opacity: 1;
  filter: blur(1.15px) saturate(1.02);
  transform: scale(1);
}

.welcome-title {
  margin: 0 0 6px;
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -0.02em;
  color: var(--text);
}

.slogan-zone {
  width: min(920px, 100%);
  min-height: 128px;
  text-align: center;
  padding: 6px 6px 0;
}

#slogan-zone {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

#slogan-zone.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 560ms ease, transform 560ms ease;
}

.slogan-text {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
  min-height: 40px;
  display: grid;
  place-items: center;
  transition: opacity 260ms ease;
}

.slogan-text.is-fading {
  opacity: 0;
}

.lang-panel {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: var(--control-height);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lang-panel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lang-panel label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lang-panel select {
  height: var(--control-height);
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.next-btn {
  height: var(--control-height);
  padding: 0 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.next-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.next-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* English page */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 245, 242, 0.95);
  backdrop-filter: blur(6px);
}

.top-bar-inner {
  width: calc(100vw - 28px);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 24px;
  height: 24px;
}

.brand-logo {
  width: 154px;
  height: auto;
  max-width: 40vw;
}

.brand-name {
  display: none;
}

.tagline {
  color: var(--muted);
  font-size: 12px;
}

.hero-simple,
.team-section,
.cases-section {
  width: calc(100vw - 28px);
  margin: 0 auto;
  padding: 26px 16px 6px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-simple h1 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.contact-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.contact-row p {
  margin: 0;
}

.team-section h2,
.cases-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 34px);
}

.team-fold {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px 12px 12px;
}

.team-fold > summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

.team-fold > summary::-webkit-details-marker {
  display: none;
}

.team-fold > summary::after {
  content: " +";
  color: var(--muted);
}

.team-fold[open] > summary::after {
  content: " -";
}

.team-fold[open] .team-grid {
  margin-top: 12px;
}

.team-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.team-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
}

.team-card h3 {
  margin: 0 0 8px;
}

.team-photo-blend {
  width: 100%;
  height: 180px;
  margin-bottom: 12px;
  background: radial-gradient(circle at 35% 35%, #f8fafc 0%, #dde3ea 46%, #cfd7e1 100%);
  mask-image: radial-gradient(ellipse at center, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 70%, transparent 100%);
  display: grid;
  place-items: center;
}

.team-photo-blend span {
  font-size: 0.82rem;
  color: #7a8594;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-photo-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.96) contrast(0.98);
}

.team-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  overflow: hidden;
}

.team-photo-real.is-focus-up {
  object-position: center 35%;
}

.team-card p {
  margin: 0 0 8px;
  color: #454b55;
  line-height: 1.65;
}

.cases-grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.case-card {
  border: none;
  background: transparent;
  padding: 0;
  perspective: 1200px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  cursor: pointer;
}

.case-card:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.24);
  outline-offset: 3px;
}

.case-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
  box-shadow: var(--shadow);
}

.case-card.is-flipped .case-inner {
  transform: rotateY(180deg);
}

.case-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.case-front {
  display: flex;
  flex-direction: column;
}

.case-thumb {
  height: 58%;
  background: linear-gradient(140deg, #f2f2ef, #e7e7e0);
  display: block;
  padding: 9px;
  overflow: hidden;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.case-thumb span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f636b;
}

.case-front-meta {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-front-meta h3 {
  margin: 0;
  font-size: 18px;
}

.case-front-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.case-back {
  transform: rotateY(180deg);
  padding: 0;
  overflow: hidden;
}

.case-back-scroll {
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b3bac5 transparent;
}

.case-back-scroll::-webkit-scrollbar {
  width: 8px;
}

.case-back-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.case-back-scroll::-webkit-scrollbar-thumb {
  background: #c4cad3;
  border-radius: 999px;
}

.case-back-scroll::-webkit-scrollbar-thumb:hover {
  background: #adb5c1;
}

.case-back h3 {
  margin: 0;
}

.case-back p {
  margin: 0;
  color: #3d444e;
  line-height: 1.6;
  font-size: 14px;
}

.case-back audio {
  width: 100%;
  height: 34px;
}

.video-frame {
  width: 100%;
  height: 122px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.footer-note {
  width: calc(100vw - 28px);
  margin: 0 auto;
  padding: 18px 16px 24px;
}

.footer-note p {
  margin: 0;
  color: #787d85;
  font-size: 13px;
}

@media (max-width: 700px) {
  .top-bar-inner,
  .hero-simple,
  .team-section,
  .cases-section,
  .footer-note {
    width: calc(100vw - 16px);
  }

  .top-bar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
