/* ============================================================
   CROSSWAY — Data Consulting
   Black & White minimal · cross / diagonal slash motif
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --gray-900: #1c1c1c;
  --gray-600: #6b6b6b;
  --gray-400: #9a9a9a;
  --gray-200: #e4e4e4;
  --gray-100: #f2f2f2;
  --white: #ffffff;
  --accent: #d6122b; /* signature red — used sparingly */
  --line: rgba(0, 0, 0, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slash: 28deg; /* unified angle for every diagonal/slash element ("/" direction) */
}

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

html { scroll-behavior: smooth; }

body {
  /* English/numbers → Saira, Korean glyphs fall through to Pretendard */
  font-family: "Saira", "Pretendard", system-ui, -apple-system,
    "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Brand wordmark — wide-tracked condensed, like the business card */
.brand-mark {
  font-family: "Saira", sans-serif;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: "Saira", sans-serif;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.56rem;
  color: var(--gray-400);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}
/* Over the black hero — frosted glass: content behind shows softly blurred */
.site-header.header--dark {
  background: rgba(10, 10, 10, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  backdrop-filter: saturate(150%) blur(20px);
}
.header--dark .brand-mark { color: var(--white); }
.header--dark .nav a { color: rgba(255, 255, 255, 0.72); }
.header--dark .nav a:hover { color: var(--white); }
.header--dark .nav-cta { background: var(--white); color: var(--black) !important; }
.header--dark .nav-cta:hover { background: var(--accent); color: var(--white) !important; }
.header--dark .nav-toggle span { background: var(--white); }
/* color transitions on the inner pieces */
.brand-mark, .nav a, .nav-cta, .nav-toggle span {
  transition: color 0.45s var(--ease), background 0.25s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-mark { font-size: 1.25rem; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav a:hover { color: var(--black); }
.nav-cta {
  padding: 9px 20px;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 2px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--black);
  transition: 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  padding: 120px 0 110px;
  overflow: hidden;
}
/* signal glitch — the diagonal motion layer briefly blurs out then snaps sharp */
@keyframes heroSignal {
  0%, 84% { filter: blur(0); opacity: 1; }
  85% { filter: blur(2px); opacity: 0.86; }
  86.5% { filter: blur(0); opacity: 1; }
  88% { filter: blur(3px); opacity: 0.78; }
  89.5% { filter: blur(0); opacity: 1; }
  91% { filter: blur(1.4px); opacity: 0.92; }
  92.5% { filter: blur(0); opacity: 1; }
  100% { filter: blur(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-streams { animation: none; }
}
/* Data-stream diagonals — faint lines with a light pulse flowing down the slash */
.hero-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  animation: heroSignal 7s linear 3s infinite;
}
.stream {
  position: absolute;
  top: -25%;
  width: 1px;
  height: 150%;
  background: linear-gradient(to bottom, transparent, var(--line-light) 16%, var(--line-light) 84%, transparent);
  transform: rotate(var(--slash));
  transform-origin: center;
}
.stream--1 { right: 5%; }
.stream--2 { right: 11%; opacity: 0.7; }
.stream--3 { right: 17%; opacity: 0.85; }
.stream--4 { right: 23%; opacity: 0.5; }
.stream--5 { right: 29%; opacity: 0.45; }

/* red line that intermittently glides down the slash */
.stream .pulse {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(214, 18, 43, 0.95) 55%, rgba(255, 255, 255, 0.6) 70%, transparent);
  filter: blur(0.4px);
  opacity: 0;
  animation: streamFlow 8.5s var(--ease) infinite;
}
.stream--1 .pulse { animation-duration: 8.5s; animation-delay: 0.5s; }
.stream--3 .pulse { animation-duration: 10s; animation-delay: 4s; }
.stream--5 .pulse { animation-duration: 9s; animation-delay: 6.5s; opacity: 0; }

@keyframes streamFlow {
  0% { top: -14%; opacity: 0; }
  3% { opacity: 1; }
  33% { opacity: 1; }
  40% { top: 104%; opacity: 0; }
  100% { top: 104%; opacity: 0; }
}

/* small square data-bits that sit along the slash and randomly flicker (지지직) */
.stream .bit {
  position: absolute;
  left: -3px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 7px rgba(214, 18, 43, 0.7);
  opacity: 0;
  /* hold each step (no fade) for a crisp digital blink; duration/delay set inline */
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
/* four irregular blink patterns — short bursts with long dark gaps */
.stream .bit.f1 { animation-name: flickA; }
.stream .bit.f2 { animation-name: flickB; }
.stream .bit.f3 { animation-name: flickC; }
.stream .bit.f4 { animation-name: flickD; }

@keyframes flickA {
  0%, 17% { opacity: 0; }
  18% { opacity: 1; } 20% { opacity: 0; }
  21% { opacity: 0.7; } 23% { opacity: 0; }
  54% { opacity: 0; } 55% { opacity: 1; } 58% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes flickB {
  0%, 7% { opacity: 0; }
  8% { opacity: 1; } 10% { opacity: 0; }
  37% { opacity: 0; } 38% { opacity: 0.8; } 39% { opacity: 0; }
  41% { opacity: 1; } 44% { opacity: 0; }
  77% { opacity: 0; } 78% { opacity: 1; } 80% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes flickC {
  0%, 29% { opacity: 0; }
  30% { opacity: 1; } 32% { opacity: 0; }
  33% { opacity: 0.6; } 35% { opacity: 0; }
  61% { opacity: 0; } 62% { opacity: 1; } 66% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes flickD {
  0%, 4% { opacity: 0; }
  5% { opacity: 1; } 7% { opacity: 0; }
  47% { opacity: 0; } 48% { opacity: 0.9; } 49% { opacity: 0; }
  51% { opacity: 1; } 54% { opacity: 0; }
  87% { opacity: 0; } 88% { opacity: 1; } 90% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stream .bit, .stream .pulse { animation: none; opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-family: "Saira Condensed", sans-serif;
  letter-spacing: 0.5em;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 28px;
  padding-left: 4px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 2px; height: 16px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 16px;
  transform: rotate(var(--slash));
}
.hero-title {
  font-family: "Saira", "Pretendard", sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
/* subtle line-mask reveal on load */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: heroLineUp 0.95s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.32s; }

.hero-lead, .hero-actions { opacity: 0; animation: heroFade 0.9s var(--ease) forwards; }
.hero-lead { animation-delay: 0.55s; }
.hero-actions { animation-delay: 0.72s; }

@keyframes heroLineUp { to { transform: translateY(0); opacity: 1; } }
@keyframes heroFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span,
  .hero-lead, .hero-actions { animation: none; opacity: 1; transform: none; }
}

.hero-title .accent { color: var(--white); position: relative; }
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 10px;
  background: var(--accent);
  z-index: -1;
  transform: skewX(-18deg);
}
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--gray-200);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-lead strong { color: var(--white); font-weight: 600; letter-spacing: 0.04em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: 0.28s var(--ease);
}
.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-light); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); transform: translateY(-2px); }

/* Scroll-down cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  transition: color 0.3s var(--ease);
  animation: cueFloat 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue-text {
  font-family: "Saira Condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}
.scroll-cue-mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 13px;
}
.scroll-cue-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: cueDot 1.8s var(--ease) infinite;
}
@keyframes cueDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translateY(13px); }
  100% { opacity: 0; transform: translateY(15px); }
}
@keyframes cueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue-dot { animation: none; }
}

/* ===== Sections ===== */
.section { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Saira Condensed", sans-serif;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-bottom: 22px;
}
.slash-tick { width: 2px; height: 16px; background: var(--accent); transform: rotate(var(--slash)); display: inline-block; }
.section-title {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.section-title.light { color: var(--white); }
.section-desc {
  margin-top: 22px;
  color: var(--gray-600);
  font-size: 1.06rem;
  max-width: 560px;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }
.section-desc.light { color: var(--gray-400); }

/* ===== Services — interactive tabs (vectrfl-style verticals) ===== */
.service-tabs {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.tab-rail { display: flex; flex-direction: column; }
.tab-btn {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 34px 28px 34px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: var(--gray-400);
  transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}
.tab-btn:hover { color: var(--black); padding-left: 16px; }
.tab-btn.is-active { color: var(--black); padding-left: 16px; }
.tab-no {
  font-family: "Saira Condensed", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  flex-shrink: 0;
}
.tab-label {
  flex: 1;
  font-family: "Saira", "Pretendard", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tab-arrow {
  font-size: 1.4rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.35s var(--ease);
  color: var(--accent);
}
.tab-btn:hover .tab-arrow,
.tab-btn.is-active .tab-arrow { opacity: 1; transform: translateX(0); }

.tab-stage {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.tab-stage::before {
  content: "";
  position: absolute;
  top: -20%; right: 16%;
  width: 1px; height: 140%;
  background: var(--line-light);
  transform: rotate(var(--slash));
}
.tab-panel {
  position: absolute;
  inset: 0;
  padding: 56px 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.tab-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.panel-no {
  font-family: "Saira Condensed", sans-serif;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.panel-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 16px; letter-spacing: -0.01em; }
.panel-text { color: var(--gray-200); font-size: 1.06rem; max-width: 440px; margin-bottom: 30px; }
.panel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.panel-list li {
  position: relative;
  padding: 13px 0 13px 22px;
  font-size: 0.98rem;
  border-top: 1px solid var(--line-light);
}
.panel-list li::before { content: "/"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.btn-arrow { display: inline-block; margin-left: 4px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(6px); }

/* ===== Process (dark) ===== */
.process { background: var(--black); color: var(--white); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  padding: 38px 28px 38px 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}
.process-step + .process-step { padding-left: 28px; }
.process-num {
  font-family: "Saira Condensed", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--gray-600);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 18px;
  transition: 0.3s;
}
.process-step:hover .process-num { -webkit-text-stroke: 1px var(--accent); color: var(--accent); }
.process-step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--gray-400); font-size: 0.95rem; }

/* ===== About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.about-lead {
  font-size: 1.18rem;
  margin: 24px 0 18px;
  line-height: 1.7;
}
.about-lead strong { font-weight: 600; }
.about-body { color: var(--gray-600); font-size: 1.04rem; margin-bottom: 40px; }
.about-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: "Saira Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.stat-label { font-size: 0.86rem; color: var(--gray-600); margin-top: 2px; }

/* About visual — recreated business card */
.about-visual { display: flex; justify-content: center; }
.visual-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.75 / 1;
  background: var(--black);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.visual-logo {
  font-family: "Saira", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.22em;
  color: var(--white);
  padding-left: 0.22em;
}
.visual-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--gray-400);
  text-transform: uppercase;
}
.visual-slash {
  position: absolute;
  width: 1px; height: 56px;
  background: var(--gray-600);
  transform: rotate(var(--slash));
}
.visual-slash { top: 28px; right: 56px; }
.visual-slash--2 { bottom: 28px; left: 56px; top: auto; right: auto; }

/* ===== Contact (dark) ===== */
.contact { background: var(--black); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.contact-card {
  border: 1px solid var(--line-light);
  padding: 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -30%; left: 30px;
  width: 1px; height: 160%;
  background: var(--line-light);
  transform: rotate(var(--slash));
}
.contact-role {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 26px;
  padding-left: 26px;
}
.contact-role span { font-size: 0.86rem; color: var(--gray-400); font-weight: 400; margin-left: 6px; }
.contact-list { padding-left: 26px; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line-light);
  font-size: 1rem;
}
.contact-list .ck {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  color: var(--accent);
  width: 20px;
}
.contact-list a:hover { color: var(--accent); }

.contact-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  color: var(--black);
  padding: 40px;
  border-radius: 4px;
  transition: 0.3s var(--ease);
}
.contact-cta:hover { background: var(--accent); color: var(--white); }
.contact-cta-label { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.contact-cta-arrow { font-size: 2.4rem; font-weight: 300; align-self: flex-end; transition: transform 0.3s; }
.contact-cta:hover .contact-cta-arrow { transform: translateX(8px); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--white); padding: 44px 0; border-top: 1px solid var(--line-light); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-mark { font-size: 1.2rem; }
.footer-copy { color: var(--gray-400); font-size: 0.86rem; }

/* ===== Contact Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 44px 40px 40px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.38s var(--ease);
  overflow: hidden;
}
.modal.open .modal-dialog { transform: none; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--black); background: var(--gray-100); }

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Saira Condensed", sans-serif;
  letter-spacing: 0.42em;
  font-size: 0.74rem;
  color: var(--gray-600);
}
.modal-title { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; margin: 16px 0 8px; }
.modal-sub { color: var(--gray-600); font-size: 0.96rem; }

.modal-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gray-600); }
.field input, .field textarea {
  font: inherit;
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  background: var(--gray-100);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.modal-submit { justify-content: center; width: 100%; margin-top: 6px; border: none; cursor: pointer; }

/* success state */
.modal-success { display: none; text-align: center; padding: 16px 0 6px; }
.modal-dialog.sent .modal-body { display: none; }
.modal-dialog.sent .modal-success { display: block; }
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.modal-success h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.modal-success p { color: var(--gray-600); margin-bottom: 26px; }

@media (max-width: 520px) {
  .modal-dialog { padding: 40px 24px 28px; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .service-tabs { grid-template-columns: 1fr; }
  .tab-stage { min-height: 360px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(odd) { padding-left: 0; }
  .process-step:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-light); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px 28px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav-toggle { display: flex; }
  /* open mobile menu has a white panel — keep links dark even in dark header mode */
  .header--dark .nav.open a { color: var(--gray-600); }
  .header--dark .nav.open a:hover { color: var(--black); }
  .header--dark .nav.open .nav-cta { color: var(--white) !important; }
  .section { padding: 84px 0; }
  .hero { padding-top: 110px; }
  .panel-list { grid-template-columns: 1fr; }
  .tab-panel { padding: 40px 28px 44px; }
  .tab-label { font-size: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step:nth-child(even) { padding-left: 0; border-left: none; }
  .about-stats { gap: 24px; }
}
