/* PAGE LAB — Lab / Precision */
:root {
  --ink: #070b10;
  --ink-2: #0e1520;
  --ink-soft: #1a2433;
  --paper: #eef2f6;
  --paper-2: #e2e8ef;
  --muted: #7a8799;
  --line: rgba(238, 242, 246, 0.12);
  --line-dark: rgba(7, 11, 16, 0.1);
  --cyan: #3de0d0;
  --cyan-deep: #1fb8aa;
  --steel: #8ba3c7;
  --white: #f7fafc;
  --header-h: 72px;
  --font-display: "Syne", "Noto Sans KR", sans-serif;
  --font-logo: "Orbitron", "Syne", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  pointer-events: none;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.narrow { width: min(720px, calc(100% - 48px)); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.84rem; }

.btn-primary {
  background: var(--cyan);
  color: var(--ink);
}

.btn-primary:hover { background: #6aefe4; }

.btn-ghost {
  background: transparent;
  border-color: rgba(247, 250, 252, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-outline {
  background: transparent;
  border-color: rgba(7, 11, 16, 0.18);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 32px);
  color: var(--white);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, color 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(7, 11, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  line-height: 1;
  text-transform: uppercase;
}

.logo-text b {
  font-weight: 800;
  background: linear-gradient(115deg, #9b5cff 0%, #4d7dff 48%, #1aa7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text i {
  font-style: normal;
  font-weight: 700;
  margin-left: 0.42em;
  letter-spacing: 0.16em;
  color: #2b8cff;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
}

.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity 0.2s, color 0.2s;
}

.nav a:hover { opacity: 1; color: var(--cyan); }

.header-cta {
  background: var(--cyan);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: rgba(7, 11, 16, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] { display: none !important; }

.mobile-nav a {
  color: var(--white);
  padding: 12px 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #070b10;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transform: scale(1.04) translate3d(0, 0, 0);
  transition:
    opacity 2.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  transform: scale(1.1) translate3d(-1%, -0.5%, 0);
}

.hero-slide.is-leaving {
  opacity: 0;
  z-index: 1;
  transform: scale(1.12) translate3d(-1.4%, -0.7%, 0);
  transition:
    opacity 2.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 2.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* soft cyan ambient bloom */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 78% 35%, rgba(61, 224, 208, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(80, 120, 255, 0.1), transparent 65%);
  mix-blend-mode: screen;
}

/* light readability veil — keeps photo visible */
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.45) 0%, rgba(7, 11, 16, 0.12) 42%, transparent 68%),
    linear-gradient(180deg, rgba(7, 11, 16, 0.18) 0%, transparent 28%, rgba(7, 11, 16, 0.35) 100%);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.22);
}

/* fine film grain */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* occasional light sweep */
.hero-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(61, 224, 208, 0.06) 52%,
    transparent 65%
  );
  transform: translateX(-130%);
  animation: heroShine 14s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

@keyframes heroShine {
  0%, 62% { transform: translateX(-130%); opacity: 0; }
  68% { opacity: 0.55; }
  82% { transform: translateX(130%); opacity: 0.35; }
  100% { transform: translateX(130%); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  max-width: min(720px, calc(100% - 48px));
  margin: 0 auto 0 max(24px, calc((100% - var(--max)) / 2));
  padding: calc(var(--header-h) + 36px) 0 88px;
}

.brand-hero {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 22px);
  margin: 0 0 20px;
  animation: riseIn 1s var(--ease) both;
}

.brand-hero-mark {
  display: grid;
  place-items: center;
  width: clamp(56px, 10vw, 88px);
  height: clamp(56px, 10vw, 88px);
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(61, 224, 208, 0.35));
}

.brand-hero-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.brand-hero-text {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-logo);
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-hero-text b {
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.25),
    0 4px 18px rgba(0, 0, 0, 0.55);
}

.brand-hero-text i {
  font-style: normal;
  font-weight: 700;
  margin-left: 0.38em;
  letter-spacing: 0.12em;
  color: #3de0d0;
  text-shadow:
    0 0 18px rgba(61, 224, 208, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 0 0 14px;
  max-width: 12em;
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  animation: riseIn 1s 0.1s var(--ease) both;
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 32rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.75;
  color: rgba(220, 230, 240, 0.82);
  animation: riseIn 1s 0.18s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 1s 0.26s var(--ease) both;
}

.hero-actions .btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  gap: 10px;
}

.btn-arrow {
  display: inline-block;
  font-weight: 500;
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.hero-actions .btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-hero-primary {
  background: linear-gradient(135deg, #5aefe4 0%, #3de0d0 45%, #2bc4d9 100%);
  color: #071018;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(61, 224, 208, 0.25),
    0 8px 28px rgba(61, 224, 208, 0.35),
    0 0 40px rgba(61, 224, 208, 0.18);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #7af5eb 0%, #4eebd8 50%, #35d0e4 100%);
  box-shadow:
    0 0 0 1px rgba(61, 224, 208, 0.35),
    0 10px 32px rgba(61, 224, 208, 0.45),
    0 0 48px rgba(61, 224, 208, 0.25);
}

.btn-hero-primary .btn-arrow {
  color: #071018;
}

.btn-hero-ghost {
  background: rgba(7, 11, 16, 0.25);
  border: 1.5px solid var(--cyan);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
  background: rgba(61, 224, 208, 0.1);
  border-color: #6aefe4;
  color: #fff;
}

.btn-hero-ghost .btn-arrow {
  color: var(--cyan);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(247, 250, 252, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll i {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 1.6s ease infinite;
}

.hero-dots {
  position: absolute;
  right: max(18px, calc((100% - var(--max)) / 2));
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 250, 252, 0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.hero-dots button.is-on {
  background: var(--cyan);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(61, 224, 208, 0.55);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* —— Sections —— */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-alt { background: var(--paper-2); }

.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.section-dark .eyebrow { color: var(--cyan); }

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark .section-desc { color: rgba(247, 250, 252, 0.62); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Case / Work —— */
.case {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.case-media {
  position: absolute;
  inset: 0;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9) brightness(0.55);
}

.case-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.92) 0%, rgba(7, 11, 16, 0.7) 42%, rgba(7, 11, 16, 0.35) 100%),
    linear-gradient(180deg, transparent 40%, rgba(7, 11, 16, 0.75) 100%);
}

.case-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  min-height: min(88vh, 820px);
  padding: clamp(64px, 9vw, 100px) 0;
}

.case-copy .eyebrow { color: var(--cyan); }

.case-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.case-copy p {
  margin: 0 0 22px;
  max-width: 34rem;
  color: rgba(247, 250, 252, 0.72);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.case-tags li {
  padding: 6px 12px;
  border: 1px solid rgba(247, 250, 252, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(247, 250, 252, 0.8);
}

.case-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(247, 250, 252, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
}

.case-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* —— Visual strip —— */
.visual-strip {
  background: var(--ink);
  overflow: hidden;
  border-block: 1px solid rgba(247, 250, 252, 0.08);
}
.visual-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 16vw);
  gap: 10px;
  padding: 14px 0;
  width: max-content;
  animation: stripMove 55s linear infinite;
}
.visual-strip figure {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 160px;
  background: #fff;
  border: 1px solid rgba(247, 250, 252, 0.1);
}
.visual-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  filter: none;
}
@keyframes stripMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Services —— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-item {
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
  overflow: hidden;
}

.service-item:hover {
  border-color: rgba(31, 184, 170, 0.45);
  transform: translateY(-2px);
}

.service-grid-visual .service-item {
  padding: 0 0 24px;
}

.svc-thumb {
  margin: 0 0 18px;
  height: 180px;
  overflow: hidden;
  background: #070b10;
}
.svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-item:hover .svc-thumb img {
  transform: scale(1.05);
}
.service-grid-visual .svc-num,
.service-grid-visual h3,
.service-grid-visual p {
  padding-left: 24px;
  padding-right: 24px;
}

.svc-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-deep);
}

.service-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Process —— */
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
}

.process-list h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.process-list p {
  margin: 0;
  color: rgba(247, 250, 252, 0.62);
  font-size: 0.95rem;
}

/* —— Pricing —— */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
}

.price-featured {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(7, 11, 16, 0.22);
}

.price-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.price-featured .price-label { color: var(--cyan); }

.price-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.price-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-item ul {
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-item li {
  position: relative;
  padding: 6px 0 6px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-featured li { color: rgba(247, 250, 252, 0.68); }

.price-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-deep);
}

.price-featured .btn-primary {
  background: var(--cyan);
  color: var(--ink);
}

.price-featured .btn-outline {
  border-color: rgba(247, 250, 252, 0.28);
  color: var(--white);
}

/* —— FAQ —— */
.faq-list { display: grid; gap: 10px; }

.faq {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Contact —— */
.section-contact {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(61, 224, 208, 0.12), transparent 45%),
    var(--ink);
  color: var(--white);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.contact-copy > p {
  margin: 0 0 24px;
  color: rgba(247, 250, 252, 0.68);
}

.contact-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-meta li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  font-size: 0.95rem;
}

.contact-meta span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 26px;
  background: rgba(247, 250, 252, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(247, 250, 252, 0.75);
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(247, 250, 252, 0.14);
  background: rgba(7, 11, 16, 0.45);
  color: var(--white);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.contact-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 0.82rem;
  color: rgba(247, 250, 252, 0.65);
}

.contact-form .check input { width: auto; margin-top: 3px; }

.full-btn { width: 100%; grid-column: 1 / -1; }

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--cyan);
}

/* —— Footer —— */
.site-footer {
  background: #05080c;
  color: rgba(247, 250, 252, 0.7);
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  margin: 0 0 8px;
}

.footer-brand strong,
.footer-brand .logo-text {
  display: inline-flex;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.82rem;
}

.footer-copy { margin: 0; font-size: 0.82rem; }

.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 12px 32px rgba(61, 224, 208, 0.35);
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.back-top.is-show {
  opacity: 1;
  pointer-events: auto;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s;
}

.cursor-dot.is-on { opacity: 0.9; }
.cursor-dot.is-grow {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
}

/* —— Mobile —— */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-block; color: inherit; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text { font-size: 0.78rem; letter-spacing: 0.1em; }

  .case-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 72px 0 56px;
  }

  .case-preview { order: -1; }

  .service-grid,
  .price-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .price-featured { transform: none; }

  .contact-form { grid-template-columns: 1fr; }

  .hero-content {
    width: calc(100% - 28px);
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
    padding: calc(var(--header-h) + 36px) 0 72px;
  }

  .brand-hero-text { font-size: clamp(1.7rem, 9vw, 2.6rem); letter-spacing: 0.08em; }

  .cursor-dot { display: none; }
}

@media (max-width: 720px) {
  .wrap, .narrow { width: calc(100% - 28px); }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 0; }

  .hero-scroll { display: none; }

  .visual-strip figure { height: 120px; }
  .visual-strip-track { grid-auto-columns: 70vw; }

  .case-copy h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  .process-list li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .float-cta {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .back-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { animation: none !important; transition: none; }
  .hero-shine { animation: none !important; opacity: 0; }
  .visual-strip-track { animation: none; }
}
