:root {
  --color-primary: #E63946;
  --color-primary-hover: #C62836;
  --color-primary-subtle: #FBE3E5;
  --color-secondary: #457B9D;
  --color-bg: #FDF9F2;
  --color-surface: #FFFDF8;
  --color-border: rgba(30, 26, 24, 0.15);
  --color-text: #1A1510;
  --color-text-secondary: #4A443F;
  --color-text-muted: #7A7470;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sticker: 3px 3px 0 rgba(30, 26, 24, 0.9);
  --bg: var(--color-bg);
  --bg-surface: var(--color-surface);
  --ink: var(--color-text);
  --ink-muted: var(--color-text-muted);
  --accent: var(--color-primary);
  --accent-soft: var(--color-primary-subtle);
  --line: var(--color-border);
  --font-display: "Syne", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-label: "Parkinsans", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(30,26,24,0.02) 10px, rgba(30,26,24,0.02) 20px);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: url("assets/cursors/default.png") 3 2, auto;
}

a, button, .replay-track, [role="button"] { cursor: url("assets/cursors/pointer.png") 9 2, pointer; }

p, h1, h2, h3, h4, li, .g-sub, .b-body, .colophon { cursor: url("assets/cursors/text.png") 16 16, text; }

::selection { background: var(--accent); color: #FFFDF8; }

section { position: relative; }

.corner-mark {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 90;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--ink);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sticker);
  transform: rotate(-2deg);
  text-decoration: none;
  transition: background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.corner-mark:hover { background: var(--accent); }

.corner-mark.is-hidden {
  transform: rotate(-2deg) translateY(-220%);
  opacity: 0;
  pointer-events: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 64px 5vw 96px;
}

.g-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.g-decor { position: absolute; color: var(--ink-muted); opacity: 0.55; z-index: 2; }
.g-decor-1 { top: 18%; left: 14%; animation: float 6s ease-in-out infinite; color: var(--accent); }
.g-decor-2 { bottom: 24%; right: 18%; animation: float 8s ease-in-out infinite reverse; }
.g-decor-3 { top: 28%; right: 14%; animation: float 7s ease-in-out infinite 1s; }
.g-decor-4 { bottom: 20%; left: 24%; width: 72px; height: 3px; background: var(--accent); transform: rotate(45deg); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.g-wrapper { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; perspective: 1000px; z-index: 10; }

.g-card {
  position: relative;
  background: var(--bg-surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  width: 92%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  transform: rotate(-1.5deg);
  box-shadow: 20px 20px 0 var(--accent);
  transform-style: preserve-3d;
}

.g-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-24%, -50%) rotate(-3deg);
  background: var(--ink);
  color: var(--bg-surface);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 4px 4px 0 var(--accent);
}

.g-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.g-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 2.25rem;
  max-width: 92%;
}

.g-sub-en { color: var(--ink-muted); font-size: 0.9em; }

.g-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.g-cta-primary, .g-cta-secondary {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.g-cta-primary { background: var(--accent); color: #FFFDF8; border: none; }
.g-cta-primary:hover { background: var(--ink); transform: translateY(-2px); }
.g-cta-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink-muted); }
.g-cta-secondary:hover { border-color: var(--ink); background: var(--ink); color: var(--bg-surface); }

.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  z-index: 3;
}

.marquee-ink { background: var(--ink); color: var(--bg); }
.marquee-red { background: var(--accent); color: var(--ink); }

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.12em;
  animation: marquee 22s linear infinite;
}

.marquee-track-rev { animation-direction: reverse; }

.marquee-tilt {
  transform: rotate(-2deg);
  width: 110vw;
  left: -5vw;
  margin-top: 5vw;
  margin-bottom: 5vw;
  box-shadow: 0 4px 0 rgba(30, 26, 24, 0.15);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 10vh 5vw 0;
  line-height: 1.1;
}

.section-heading em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.45em;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.line-wrap { display: block; overflow: hidden; padding-top: 0.15em; margin-top: -0.15em; }
.line-inner { display: block; }

.variant-b-section { position: relative; background: var(--bg); padding-bottom: 10vh; }

.b-showcase-block {
  position: relative;
  padding: 15vh 5vw;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8vh;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.b-showcase-block.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 992px) {
  .b-showcase-block { grid-template-columns: 1fr 1fr; gap: 8vw; padding: 18vh 5vw; }
}

.b-showcase-block:nth-of-type(odd) {
  background-color: var(--bg-surface);
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
  margin-top: -4vw;
  padding-top: calc(15vh + 4vw);
  padding-bottom: calc(15vh + 4vw);
  z-index: 2;
}

.b-showcase-block:nth-of-type(even) { background-color: var(--bg); z-index: 1; }

.variant-b-section > .b-showcase-block:first-of-type {
  margin-top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw));
  padding-top: 15vh;
}

@media (min-width: 992px) {
  .b-showcase-block:nth-of-type(even) .b-content { order: 2; }
  .b-showcase-block:nth-of-type(even) .b-visual { order: 1; }
}

.b-content { max-width: 600px; margin: 0 auto; }

.b-eyebrow {
  font-family: var(--font-label);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  transform: rotate(-1deg);
  box-shadow: var(--shadow-sticker);
}

.b-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.b-content:hover .b-headline {
  transform: translateX(16px) skewX(-3deg);
  filter: blur(1.5px);
}

.b-body { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }
.b-body-en { color: var(--ink-muted); font-family: var(--font-label); font-size: 0.85em; }

.b-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  transition: color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.b-link:hover { color: var(--accent); }

.b-visual { width: 100%; aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center; position: relative; }
.b-visual svg { width: 100%; height: 100%; overflow: visible; max-width: 420px; }

.b-svg-spin { animation: spin 24s linear infinite; transform-origin: center; }
.b-svg-float { animation: float 6s ease-in-out infinite; }
.b-svg-pulse { animation: pulse 4s ease-in-out infinite; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.06); opacity: 1; } }

.clip-diagonal-br { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); padding-bottom: calc(120px + 8vw); }
.clip-diagonal-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
.clip-parallelogram { clip-path: polygon(0 6vw, 100% 0, 100% calc(100% - 6vw), 0 100%); padding: calc(18px + 6vw) 0; margin-top: -6vw; }

.contact { background: var(--bg-surface); padding-bottom: 18vh; }

.contact-list {
  list-style: none;
  max-width: 760px;
  margin: 6vh auto 0;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
}

.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-list a, .c-static {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button.c-static {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
}

.contact-list a:hover, button.c-static:hover { background: var(--ink); color: var(--bg); }
.contact-list a:hover .c-handle, button.c-static:hover .c-handle { color: var(--bg); opacity: 0.75; }
.contact-list a:hover .c-arrow, button.c-static:hover .c-arrow { transform: translateX(6px); color: var(--accent); }

.ic { width: 24px; height: 24px; flex: none; fill: currentColor; }

.c-label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.c-handle { margin-left: auto; font-family: var(--font-label); font-size: 0.95rem; color: var(--ink-muted); }
.c-arrow { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

.colophon {
  text-align: center;
  margin-top: 10vh;
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  padding: 0 5vw;
}

.pill-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(26, 21, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(253, 249, 242, 0.14);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  display: flex;
  gap: 26px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(26, 21, 16, 0.25);
}

.pill-nav a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill-nav a:hover { color: var(--accent); }
.pill-nav .nav-en { font-family: var(--font-label); font-weight: 400; font-size: 0.75em; opacity: 0.6; }

@media (max-width: 640px) {
  .g-card { box-shadow: 10px 10px 0 var(--accent); }
  .g-badge { transform: translate(0, -50%) rotate(-3deg); }
  .pill-nav { gap: 18px; padding: 10px 18px; bottom: 16px; }
  .pill-nav .nav-en { display: none; }
  .c-handle { font-size: 0.8rem; }
}
