/* ============================================================
   Unit Sapporo 7 — site styles
   Aesthetic: Polar Digital / Editorial Tech
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --bg-3: #15151c;
  --fg: #f2f1ea;
  --fg-2: rgba(242,241,234,0.62);
  --fg-3: rgba(242,241,234,0.32);
  --line: rgba(242,241,234,0.10);
  --line-strong: rgba(242,241,234,0.22);
  --cyan: #00F5D4;
  --magenta: #FF2E93;
  --amber: #FFD166;
  --pad-x: clamp(20px, 4vw, 64px);
  --max: 1400px;
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Syne', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 400;
  font-feature-settings: "palt";
  letter-spacing: 0.015em;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }
b  { font-weight: 700; }

::selection { background: var(--cyan); color: var(--bg); }

/* ============================================================
   Atmosphere layers (scene canvas + grain + scanlines)
   ============================================================ */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 91;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 3px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad-x);
  z-index: 60;
  background: linear-gradient(to bottom, rgba(7,7,10,0.78) 0%, rgba(7,7,10,0.40) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); }
.nav__mark { width: 26px; height: 26px; color: var(--cyan); }
.nav__name {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.nav__name b  { color: var(--fg); font-weight: 700; }
.nav__name em { color: var(--cyan); font-style: normal; font-weight: 700; }

.nav__nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.nav__nav a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--fg-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__nav a span { color: var(--fg-3); font-size: 9px; font-weight: 500; }
.nav__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__nav a:hover { color: var(--fg); }
.nav__nav a:hover::after { width: 100%; }

.nav__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.2s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__nav { display: none; }
  .nav__status { grid-column: 2; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 140px var(--pad-x) 140px;
  z-index: 2;
  overflow: hidden;
}

.hero__tick {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: fade 1s ease 1.2s both;
}
.hero__tick--tl { top: 110px; left: var(--pad-x); }
.hero__tick--tr { top: 110px; right: var(--pad-x); }
.hero__tick--bl { bottom: 80px; left: var(--pad-x); }
.hero__tick--br { bottom: 40px; right: var(--pad-x); flex-direction: column; gap: 12px; }
.hero__tick i {
  display: inline-block;
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}
.hero__tick--br i.hero__scroll-bar {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--cyan) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero__tick--br i.hero__scroll-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -60%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--fg));
  animation: scrollBar 2.4s infinite cubic-bezier(0.7, 0, 0.3, 1);
}
@keyframes scrollBar {
  0% { top: -60%; }
  100% { top: 110%; }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--fg);
  width: 100%;
  max-width: 1400px;
  mix-blend-mode: difference;
  flex: 1;
  justify-content: center;
  margin: 0 auto;
}
.hero__word {
  display: block;
  clip-path: inset(0 0 100% 0);
  animation: clipReveal 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  will-change: clip-path, transform;
}
.hero__word--1 {
  font-size: clamp(48px, 11.5vw, 168px);
  animation-delay: 0.15s;
  letter-spacing: -0.03em;
}
.hero__word--2 {
  font-size: clamp(48px, 11.5vw, 168px);
  font-style: italic;
  font-weight: 500;
  color: var(--fg-2);
  padding-left: 10vw;
  letter-spacing: 0.00em;
  animation-delay: 0.3s;
  text-transform: none;
}
.hero__word--3 {
  font-size: clamp(96px, 20vw, 268px);
  line-height: 0.9;
  font-weight: 800;
  animation-delay: 0.45s;
  padding-left: 3vw;
  display: flex;
  align-items: baseline;
  gap: 0.02em;
}
.hero__word--3 em { font-style: italic; color: var(--cyan); }
.hero__word--3 b  { color: var(--magenta); font-size: 0.55em; line-height: 1; }

@keyframes clipReveal {
  0%   { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
  100% { clip-path: inset(0 0 0 0);     transform: translateY(0); }
}

.hero__ja {
  position: static;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  color: var(--fg-2);
  max-width: 38ch;
  animation: fade 1s ease 1.4s both;
  z-index: 3;
  align-self: flex-start;
  margin-top: 32px;
  padding-bottom: 70px;
}
.hero__ja b { color: var(--fg); font-weight: 700; }
.hero__ja-accent {
  color: var(--cyan);
  font-weight: 700;
  position: relative;
}
.hero__ja-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.hero__marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(7,7,10,0.3);
  backdrop-filter: blur(2px);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.hero__marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--fg-2);
}
.hero__marquee-track span { padding-right: 24px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .hero__ja { position: static; margin-top: 32px; max-width: 100%; }
  .hero__tick--tr, .hero__tick--bl { display: none; }
  .hero__word--2 { padding-left: 0; }
  .hero__word--3 { padding-left: 0; }
}

/* ---------- Hero right-side signal panel (delayed entrance) ---------- */
.hero__panel {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  width: clamp(240px, 22vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid rgba(0, 245, 212, 0.25);
  opacity: 0;
  transform: translate(80px, -50%);
  pointer-events: none;
  z-index: 3;
  animation: heroPanelIn 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 2.2s forwards;
  box-shadow: 0 30px 80px rgba(0, 245, 212, 0.06);
}
@keyframes heroPanelIn {
  from { transform: translate(80px, -50%); opacity: 0; }
  to   { transform: translate(0,    -50%); opacity: 1; }
}
.hero__panel::before,
.hero__panel::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--cyan);
}
.hero__panel::before { top: -1px; left: -1px;  border-right: none; border-bottom: none; }
.hero__panel::after  { bottom: -1px; right: -1px; border-left: none;  border-top: none; }

.hero__panel-chrome {
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(6px);
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
}
.hero__panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}

.hero__panel-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1018 0%, #050810 100%);
}
.hero__panel-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(60%) contrast(1.25) brightness(0.55) sepia(25%) hue-rotate(140deg) saturate(1.8);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.hero__panel-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to right, transparent 0, transparent 23px, rgba(0, 245, 212, 0.10) 24px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 23px, rgba(0, 245, 212, 0.10) 24px);
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero__panel-scan {
  position: absolute;
  left: 0; right: 0;
  top: -40%;
  height: 35%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 245, 212, 0.35) 55%, transparent 100%);
  animation: heroPanelScan 4s ease-in-out 3s infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes heroPanelScan {
  0%   { top: -40%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.hero__panel-ticker {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  opacity: 0.85;
  animation: heroPanelFlicker 3.2s steps(8, end) 3s infinite;
}
@keyframes heroPanelFlicker {
  0%, 92%, 100% { opacity: 0.85; }
  93%, 95% { opacity: 0.2; }
  94%, 96% { opacity: 0.7; }
}

@media (max-width: 1100px) {
  .hero__panel { display: none; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  position: relative;
  padding: 140px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  z-index: 2;
  background: rgba(7, 7, 10, 0.94);
  transition: background 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* While the user is scrolling, sections become translucent so the 3D scene
   behind is faintly visible. When scrolling stops, they settle back opaque. */
body.is-scrolling .section {
  background: rgba(7, 7, 10, 0.48);
  transition: background 0.4s ease;
}
/* wide-screen: fade canvas in the body margins so it still feels connected */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(7,7,10,0.65) 70%, rgba(7,7,10,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.section__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding-top: 10px;
  position: relative;
}
.section__num::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--cyan);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-3px);
}
.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.section__title span {
  display: block;
  padding: 0.04em 0 0.08em;
}
.section__title em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  display: inline-block;
  padding: 0.12em 0.22em 0.22em 0.06em;
  margin-right: 0.06em;
  line-height: 1;
  overflow: visible;
}
/* Japanese emphasis: italic slants overlap following glyphs — force bigger trailing space */
.section__title em:lang(ja),
.section__title span:has(em) {
  overflow: visible;
}

/* Reveal affects only inner content so the section's solid bg stays opaque
   (prevents the Three.js canvas from bleeding through during the fade) */
[data-reveal] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .section { padding: 90px var(--pad-x); }
  .section__head { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; margin-bottom: 40px; }
}

/* ============================================================
   MISSION
   ============================================================ */
.mission__body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px 60px;
  margin-bottom: 80px;
}
.mission__lead {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.mission__body-text {
  font-size: 16px;
  line-height: 1.95;
  color: var(--fg-2);
  max-width: 52ch;
}
.mission__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.mission__pillars li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 20px;
}
.pillar__arrow {
  font-family: var(--f-mono);
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
}
.mission__pillars p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  font-weight: 500;
}
@media (max-width: 800px) {
  .mission__body { grid-template-columns: 1fr; }
  .mission__pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  position: relative;
  background: var(--bg);
  padding: 36px 28px 48px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.2,0.7,0.2,1);
  overflow: hidden;
}
.svc:focus-visible {
  outline: 2px solid var(--svc-accent);
  outline-offset: -2px;
}
.svc__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.svc__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--fg-3);
}
.svc__dot {
  width: 8px; height: 8px;
  background: var(--fg-3);
  border-radius: 50%;
  transition: background 0.35s, box-shadow 0.35s;
}
.svc h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--fg);
}
.svc p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--fg-2);
  flex: 1;
}
.svc__hover-label {
  position: absolute;
  left: 28px; bottom: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--svc-accent);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.svc::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--svc-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc:hover {
  background: var(--bg-2);
}
.svc:hover .svc__dot {
  background: var(--svc-accent);
  box-shadow: 0 0 14px var(--svc-accent);
}
.svc:hover::before { transform: scaleX(1); }
.svc:hover .svc__hover-label { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services__grid { grid-template-columns: 1fr; } }

/* ============================================================
   REPRESENTATIVE
   ============================================================ */
.rep__card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  padding: 60px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative;
}
.rep__card::before, .rep__card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
}
.rep__card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.rep__card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.rep__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.rep__monogram {
  width: 220px; height: 220px;
  color: var(--fg);
  animation: rotate 42s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.rep__monogram svg { width: 100%; height: 100%; }

.rep__tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.rep__tags li span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fg-2);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  display: inline-block;
}

.rep__content { display: flex; flex-direction: column; justify-content: center; }
.rep__quote {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}
.rep__quote-mark {
  position: absolute;
  left: -10px; top: -30px;
  font-family: var(--f-display);
  font-size: 120px;
  color: var(--cyan);
  font-style: italic;
  line-height: 1;
  opacity: 0.5;
}
.rep__quote p {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.9;
  color: var(--fg);
  font-weight: 500;
}
.rep__quote em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 700;
}

.rep__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  padding-left: 30px;
}
.rep__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rep__name-ja {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: 0.08em;
}
.rep__name-en {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.rep__role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-2);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .rep__card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
  .rep__monogram { width: 180px; height: 180px; }
  .rep__foot { flex-direction: column; gap: 12px; }
}

/* ============================================================
   COMPANY
   ============================================================ */
.company__list { border-top: 1px solid var(--line); }
.company__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s;
}
.company__row:hover { background: rgba(0, 245, 212, 0.03); }
.company__row dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.company__row dd {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--fg);
  line-height: 1.7;
  font-weight: 500;
}
.company__row dd a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.company__row dd a:hover { color: var(--magenta); border-color: var(--magenta); }

@media (max-width: 700px) {
  .company__row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
  padding: 180px var(--pad-x) 180px;
}
.contact__num {
  margin-bottom: 60px;
  display: inline-block;
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 8.5vw, 126px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
  width: 100%;
  max-width: 100%;
}
.contact { overflow-x: hidden; }
.contact__word {
  display: block;
  max-width: 100%;
  padding: 0.04em 0 0.08em;
}
.contact__word em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.08em 0.18em 0.18em 0.04em;
  line-height: 1;
}
.contact__word b {
  color: var(--cyan);
  font-size: 0.8em;
}

.contact__mail {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 22px 34px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--fg);
  position: relative;
  transition: border-color 0.3s, color 0.3s;
  overflow: hidden;
  margin-bottom: 30px;
}
.contact__mail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}
.contact__mail:hover { border-color: transparent; color: var(--bg); }
.contact__mail:hover::before { transform: translateX(0); }
.contact__mail-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fg-2);
  text-transform: uppercase;
  transition: color 0.3s;
}
.contact__mail:hover .contact__mail-label { color: var(--bg); }
.contact__mail-addr {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.contact__mail svg { width: 18px; height: 18px; }

.contact__note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--fg-2);
  max-width: 44ch;
  margin: 0 auto;
  font-family: var(--f-body);
}

/* ---------- Contact form ---------- */
.contact__divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 80px auto 40px;
  max-width: 720px;
}
.contact__divider > span {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.contact__divider-label {
  flex: 0 0 auto !important;
  height: auto !important;
  background: none !important;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fg-2);
  text-transform: uppercase;
}

.contact__form {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
}
.contact__field--full {
  grid-column: 1 / -1;
}
.contact__label-text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact__label-text em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
}

.contact__field input,
.contact__field textarea,
.contact__field select {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  resize: vertical;
  width: 100%;
  min-width: 0;
  border-radius: 0;
}
.contact__field textarea {
  min-height: 140px;
  line-height: 1.7;
}
.contact__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23f2f1ea' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}
.contact__field select option {
  background: var(--bg);
  color: var(--fg);
}
.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: var(--fg-3);
}
.contact__field input:focus,
.contact__field textarea:focus,
.contact__field select:focus {
  border-color: var(--cyan);
  background: rgba(0, 245, 212, 0.04);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.08);
}
.contact__field input:invalid:not(:placeholder-shown),
.contact__field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--magenta);
}

.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-2);
  text-align: left;
  padding: 8px 0;
  cursor: pointer;
}
.contact__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.25s, background 0.25s;
}
.contact__consent input[type="checkbox"]:hover {
  border-color: var(--cyan);
}
.contact__consent input[type="checkbox"]:checked {
  border-color: var(--cyan);
  background: var(--cyan);
}
.contact__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}
.contact__consent a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.contact__consent a:hover {
  color: var(--magenta);
  border-color: var(--magenta);
}

.contact__submit {
  align-self: center;
  padding: 18px 44px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}
.contact__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}
.contact__submit:hover {
  color: var(--bg);
  border-color: transparent;
}
.contact__submit:hover::before { transform: translateX(0); }
.contact__submit:active { transform: translateY(1px); }
.contact__submit svg { width: 18px; height: 18px; }

.contact__privacy-note {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-align: center;
  font-family: var(--f-mono);
  margin-top: 4px;
  text-transform: uppercase;
}

.footer__links {
  display: inline-flex;
  gap: 20px;
}
.footer__links a {
  color: var(--fg-2);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--cyan); }

@media (max-width: 700px) {
  .contact__row { grid-template-columns: 1fr; gap: 18px; }
  .contact__form { gap: 18px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.footer__line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   MODAL — service detail panel
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFade 0.3s ease;
  cursor: pointer;
}
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__panel {
  position: relative;
  width: min(760px, 100vw);
  background: var(--bg);
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 72px 64px 80px;
  animation: modalSlide 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5);
}
@keyframes modalSlide {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.modal__panel::-webkit-scrollbar { width: 6px; }
.modal__panel::-webkit-scrollbar-track { background: var(--bg); }
.modal__panel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.35s;
  z-index: 3;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: rotate(90deg);
}

.modal__content { color: var(--fg); }

.modal__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  align-items: baseline;
}
.modal__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.modal__title-wrap { }
.modal__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--fg);
}
.modal__title-ja {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
}

.modal__lead {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--fg);
  padding: 20px 0 36px;
  margin-bottom: 12px;
  position: relative;
}
.modal__lead::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--cyan);
}

.modal__section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.modal__section:first-of-type { border-top: none; padding-top: 8px; }

.modal__section-heading {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal__section-heading::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg);
  font-weight: 500;
}
.modal__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 13px;
  top: 4px;
}

.modal__foot {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s;
}
.modal__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
}
.modal__cta:hover { color: var(--bg); border-color: transparent; }
.modal__cta:hover::before { transform: translateX(0); }
.modal__cta svg { width: 16px; height: 16px; }

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal__panel { padding: 64px 28px 60px; }
  .modal__head { grid-template-columns: 1fr; gap: 8px; }
  .modal__num { font-size: 48px; }
}

/* ============================================================
   LEGAL PAGES — privacy policy
   ============================================================ */
.legal-page { background: var(--bg); }
.legal {
  max-width: 1000px;
  margin: 0 auto;
  padding: 180px var(--pad-x) 120px;
  position: relative;
  z-index: 2;
}
.legal__head {
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--line);
}
.legal__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.legal__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}
.legal__title span { display: block; padding: 0.05em 0 0.08em; }
.legal__title em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.1em 0.22em 0.2em 0.06em;
}
.legal__lead {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
  color: var(--fg);
  max-width: 64ch;
  margin-bottom: 32px;
}
.legal__meta {
  display: flex;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
  flex-wrap: wrap;
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.legal__section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal__section:last-child { border-bottom: none; }
.legal__section-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}
.legal__section-content h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--fg);
}
.legal__section-content p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--fg);
  margin-bottom: 14px;
  max-width: 64ch;
}
.legal__section-content p:last-child { margin-bottom: 0; }
.legal__section-content ul {
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__section-content ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg);
}
.legal__section-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-family: var(--f-mono);
  font-weight: 500;
}
.legal__section-content a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.legal__section-content a:hover {
  color: var(--magenta);
  border-color: var(--magenta);
}
.legal__section-content strong {
  color: var(--fg);
  font-weight: 700;
  background: rgba(0, 245, 212, 0.08);
  padding: 1px 6px;
}

.legal__dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.legal__dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.legal__dl dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.legal__dl dd {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}
.legal__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  margin-top: 12px;
}
.legal__contact span:first-child {
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--fg);
}
.legal__contact a {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.legal__back {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.legal__back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.legal__back-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.legal__back-link svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .legal__section { grid-template-columns: 1fr; gap: 12px; }
  .legal__section-num { font-size: 24px; }
  .legal__dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-page {
  background: var(--bg);
  overflow-x: hidden;
}
.thanks {
  max-width: 960px;
  margin: 0 auto;
  padding: 180px var(--pad-x) 120px;
  text-align: center;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thanks__badge {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  animation: thanksBadgeIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both,
             rotate 40s linear 1s infinite;
}
.thanks__badge svg { width: 100%; height: 100%; }
@keyframes thanksBadgeIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.thanks__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fade 0.8s ease 0.4s both;
}
.thanks__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 7.2vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: fade 0.9s ease 0.55s both;
  width: 100%;
  max-width: 100%;
}
.thanks__title span { display: block; padding: 0.03em 0 0.08em; }
.thanks__title em {
  font-style: italic;
  background: linear-gradient(110deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.08em 0.2em 0.2em 0.05em;
}
.thanks__lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--fg);
  max-width: 44ch;
  margin: 0 auto 60px;
  animation: fade 0.9s ease 0.75s both;
}
.thanks__lead strong { color: var(--cyan); font-weight: 700; }

.thanks__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 60px;
  animation: fade 0.9s ease 0.9s both;
}
.thanks__meta > div {
  background: var(--bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.thanks__meta span {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.thanks__meta b {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-weight: 500;
  word-break: break-all;
}

.thanks__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  transition: border-color 0.3s, color 0.3s;
  margin: 0 auto;
  animation: fade 0.9s ease 1.05s both;
}
.thanks__back:hover { border-color: var(--cyan); color: var(--cyan); }
.thanks__back svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .thanks__meta { grid-template-columns: 1fr; }
}

/* ============================================================
   CUSTOM CURSOR — digital crosshair
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, input, textarea, select, [role="button"], .svc {
    cursor: none !important;
  }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor__dot,
.cursor__ring,
.cursor__lines {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  border-radius: 50%;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}

.cursor__ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: width 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
              height 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
              margin 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.25s ease,
              transform 0.2s ease;
}

.cursor__lines {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor__lines::before,
.cursor__lines::after {
  content: '';
  position: absolute;
  background: #00F5D4;
}
.cursor__lines::before {
  top: 50%; left: 0; right: 0;
  height: 1px;
  transform: translateY(-50%);
}
.cursor__lines::after {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

/* Hover on interactive elements: ring expands, dot disappears, crosshair appears */
body.cursor-hover .cursor__ring {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-color: #00F5D4;
}
body.cursor-hover .cursor__dot {
  opacity: 0;
}
body.cursor-hover .cursor__lines {
  opacity: 0.7;
}

/* Click pulse */
body.cursor-click .cursor__ring {
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border-color: #FF2E93;
}

/* Text-input areas — show I-beam vibe by hiding ring */
body.cursor-text .cursor__ring { opacity: 0; }
body.cursor-text .cursor__dot {
  width: 2px; height: 22px;
  margin: -11px 0 0 -1px;
  border-radius: 1px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
