/* =============================================
   AVERON — VIDEO PORTFOLIO
   modern premium document style
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --page: #eef0f4;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --ink: #0b0d12;
  --ink-2: #555b66;
  --ink-3: #969ca8;
  --accent: #2f6bff;
  --accent-2: #1f55df;
  --accent-soft: rgba(47, 107, 255, 0.10);
  --lime: #2f6bff;
  --lime-ink: #0c0d10;
  --line: rgba(11, 13, 18, 0.09);
  --line-2: rgba(11, 13, 18, 0.16);
  --wrap: 1040px;
  --pad: clamp(76px, 10vw, 128px);
  --radius: 16px;
  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', 'Pretendard Variable', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(47, 107, 255, 0.16); color: var(--ink); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }

/* ---------- Document shell ---------- */
.doc {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-top: 66px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(11,13,18,.04);
  overflow: visible;
}
.inner { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: clamp(22px, 5vw, 56px); padding-right: clamp(22px, 5vw, 56px); }
.section { padding-top: var(--pad); padding-bottom: var(--pad); }
.center { text-align: center; }
.dash-section {
  max-width: none;
  margin: 0;
  padding-top: clamp(86px, 9vw, 116px);
  padding-bottom: clamp(86px, 9vw, 116px);
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.section-meta {
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.db-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.db-header > div:first-child { max-width: 430px; }
.module-title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  word-break: keep-all;
}
.module-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.58;
  word-break: keep-all;
}

/* ---------- Accent bar + eyebrow ---------- */
.bar { width: 38px; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 24px; }
.center .bar { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hl { background: var(--accent-soft); padding: 1px 8px 3px; border-radius: 4px; color: var(--accent-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 12px;
  font-size: 0.97rem; font-weight: 700;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-outline-light:hover { transform: translateY(-2px); border-color: #fff; background: rgba(255,255,255,.06); }
.btn-lime { background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 10px 34px rgba(47,107,255,.28); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(47,107,255,.36); background: #245ee8; }

/* ---------- Header ---------- */
.doc-head {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 90;
  width: min(100%, 1180px);
  transform: translateX(-50%);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(11,13,18,.06);
  box-shadow: 0 12px 34px rgba(11,13,18,.035);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.doc-head.scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 42px rgba(11,13,18,.06);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .logo-mark { width: 24px; height: auto; }
.brand .logo-word { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; font-size: 1rem; }
.head-filters {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 18px 0 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.head-filters::-webkit-scrollbar { display: none; }
.doc-head.portfolio-active .head-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-top: 0;
}
.doc-head.portfolio-active .head-nav a:not(.head-cta) {
  display: none;
}
.head-nav { display: flex; align-items: center; gap: 26px; }
.head-nav a { font-size: 0.9rem; color: var(--ink-2); transition: color .2s var(--ease); }
.head-nav a:hover { color: var(--ink); }
.head-nav .head-cta {
  color: #fff !important; background: #111318;
  padding: 9px 18px; border-radius: 999px; font-weight: 800;
  transition: background .2s var(--ease);
}
.head-nav .head-cta:hover { background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, #f6f8fc 0%, #fff 34%, #fff 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  opacity: .42;
  background-image:
    linear-gradient(rgba(47,107,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black 0%, transparent 58%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 58%);
}
.hero::after {
  opacity: .8;
  background:
    linear-gradient(90deg, rgba(47,107,255,.07) 0%, rgba(47,107,255,0) 38%),
    radial-gradient(circle at 83% 48%, rgba(47,107,255,.10) 0%, rgba(47,107,255,0) 34%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(40px, 5.8vw, 78px);
  padding-top: clamp(76px, 8vw, 110px);
  padding-bottom: clamp(78px, 8vw, 112px);
}
.hero-copy {
  position: relative;
  min-width: 0;
  text-align: left;
}
.hero-copy::before {
  content: "AVERON VIDEO";
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.hero-reference-wrap {
  position: relative;
  width: min(100%, 352px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 30px;
  background: #07080b;
  border: 1px solid rgba(11,13,18,.12);
  box-shadow:
    0 38px 92px -46px rgba(11,13,18,.72),
    0 0 0 12px rgba(47,107,255,.035);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity 1.05s var(--ease), transform 1.35s var(--ease);
  contain: layout paint;
  backface-visibility: hidden;
}
.hero-reference-wrap.is-active {
  opacity: 1;
  transform: none;
}
.hero-reference-wrap::before,
.hero-reference-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-reference-wrap::before {
  border: 8px solid #111318;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 18px 42px rgba(255,255,255,.07);
}
.hero-reference-wrap::after {
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.14) 100%);
}
.hero-reference-video {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  pointer-events: none;
  opacity: 0;
  filter: brightness(1.04) saturate(1.07) contrast(1.02);
  transform: translateX(-50%) scale(1.005);
  transition: opacity 1.05s var(--ease), transform 1.35s var(--ease);
}
.hero-reference-video.is-showing {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.hero-reference-video.is-leaving {
  opacity: 0;
}
.hero-title {
  position: relative;
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.25rem, 5.75vw, 5.1rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-shadow: none;
  white-space: nowrap;
  word-break: keep-all;
}
.hero-title span {
  display: block;
  color: var(--accent);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 560px);
  margin-top: clamp(30px, 4.2vw, 46px);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(249,251,255,.76));
  border: 1px solid rgba(11,13,18,.075);
  border-radius: 20px;
  box-shadow:
    0 22px 56px rgba(18,24,38,.07),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-stats li {
  position: relative;
  list-style: none;
  text-align: left;
  padding: 22px 24px 23px;
  border-radius: 0;
  background: transparent;
}
.hero-stats li + li { border-left: 1px solid rgba(11,13,18,.07); }
.hero-stats li::before { display: none; }
.hero-stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.35vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  padding-left: 0;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  display: block;
  margin-top: 9px;
  color: #68717f;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  word-break: keep-all;
  padding-left: 0;
}

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(38px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 1.04rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 2px; }
.doc-head .head-filters { display: none; }
.doc-head.portfolio-active .head-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-top: 0;
}
.portfolio-filters {
  width: fit-content;
  max-width: 100%;
  padding: 0;
}
.portfolio-filter-home {
  align-self: flex-end;
  margin-left: auto;
}
.chip {
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(11,13,18,.1);
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--ink-2);
  background: #fff;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.chip:hover {
  transform: translateY(-1px);
  color: var(--ink);
  border-color: rgba(47,107,255,.28);
  box-shadow: none;
}
.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 800;
  box-shadow: none;
}

/* ---------- Portfolio archive ---------- */
.portfolio-container {
  position: relative;
  margin-top: 28px;
  padding: 30px;
  background: #fbfcff;
  border: 1px solid rgba(11,13,18,.07);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.portfolio-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(11,13,18,.07);
}
.sub-module-title {
  position: relative;
  margin: 0;
  padding-left: 15px;
  color: var(--accent);
  font-size: 1.16rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}
.sub-module-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 3px;
  height: 1.05em;
  border-radius: 3px;
  background: var(--accent);
}
.archive-note {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Portfolio database cards ---------- */
.portfolio-db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  max-height: 880px;
  overflow-y: auto;
  padding-right: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.portfolio-db-grid::-webkit-scrollbar { width: 4px; }
.portfolio-db-grid::-webkit-scrollbar-track { background: transparent; }
.portfolio-db-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.portfolio-db-grid::after {
  content: "";
  position: sticky;
  bottom: -1px;
  grid-column: 1 / -1;
  height: 1px;
}
.card {
  display: block;
  width: 100%;
  text-align: left;
}
.card.is-hidden { display: none; }
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11,13,18,.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(11,13,18,.03);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47,107,255,.38);
  box-shadow: 0 10px 30px rgba(11,13,18,.06);
}
.project-card:focus-visible {
  outline: 3px solid rgba(47,107,255,.28);
  outline-offset: 3px;
}
.card-media,
.project-img {
  display: block;
  position: relative;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 0;
  overflow: hidden;
  background: var(--soft);
  border: 0;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease), opacity .3s ease; }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,.22) 100%);
  opacity: 1;
  transition: opacity .4s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-dur {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  font-family: var(--mono); font-size: 0.68rem;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff;
}
.card-play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: var(--ink);
  transform: translate(-50%, -50%) scale(.7); opacity: 0;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.card-play svg { width: 20px; height: 20px; margin-left: 3px; }
.card:hover .card-play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.project-info {
  display: block;
  padding: 14px 16px 16px;
}
.project-no {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
}
.tag-cat {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-time {
  background: #eef1f6;
  color: var(--ink-3);
}
/* ---------- Proof image strip ---------- */
.sec-proof {
  max-width: none;
  padding-left: clamp(22px, 5vw, 56px);
  padding-right: clamp(22px, 5vw, 56px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(47,107,255,.10) 0%, rgba(47,107,255,0) 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border-top: 1px solid rgba(11,13,18,.07);
  border-bottom: 1px solid rgba(11,13,18,.07);
}
.proof-head {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}
.proof-headline {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.proof-frame {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 0;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(11,13,18,.08);
  border-radius: 20px;
  box-shadow:
    0 18px 48px rgba(11,13,18,.055),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.proof-scroll-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.proof-scroll-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 2px 0;
  animation: proofScroll 46s linear infinite;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.proof-scroll-track.is-dragging {
  cursor: grabbing;
  animation: none;
}
.proof-scroll-img {
  height: 260px;
  width: auto;
  flex-shrink: 0;
  display: block;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: none;
}
@keyframes proofScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Process ---------- */
#process {
  position: relative;
  max-width: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 20%, rgba(47,107,255,.10) 0%, rgba(47,107,255,0) 30%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
  padding-left: clamp(22px, 5vw, 56px);
  padding-right: clamp(22px, 5vw, 56px);
}
#process::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,.24), transparent);
  pointer-events: none;
}
#process .section-head,
#process .steps {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  counter-reset: none;
}
.step {
  position: relative;
  isolation: isolate;
  min-height: 150px;
  padding: 22px 14px 24px;
  overflow: visible;
  border: 1px solid rgba(11,13,18,.075);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82)),
    radial-gradient(circle at 18% 0%, rgba(47,107,255,.11), transparent 42%);
  box-shadow:
    0 18px 44px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.92);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(255,255,255,0) 52%);
  transition: opacity .28s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  opacity: .72;
  transform: scaleX(.32);
  transform-origin: left center;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(47,107,255,.28);
  box-shadow:
    0 26px 58px rgba(15,23,42,.10),
    inset 0 1px 0 rgba(255,255,255,.96);
}
.step:hover::before { opacity: 1; }
.step:hover::after { opacity: 1; transform: scaleX(1); }
.step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 10px 24px rgba(47,107,255,.26);
}
.step-arrow {
  position: absolute;
  right: -14px;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(47,107,255,.24);
}
.step h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.step p {
  color: var(--ink-2);
  font-size: .82rem;
  line-height: 1.55;
  word-break: keep-all;
}

/* ---------- Contact ---------- */
.contact { position: relative; background: #fbfcfe; color: var(--ink); overflow: hidden; padding-top: clamp(86px,12vw,128px); padding-bottom: clamp(86px,12vw,128px); border-top: 1px solid rgba(11,13,18,.07); box-shadow: inset 0 18px 48px rgba(15,23,42,.035); }
.contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(251,252,254,.98) 44%, rgba(246,248,252,.98) 100%),
    radial-gradient(ellipse 42% 34% at 50% 0%, rgba(47,107,255,.07) 0%, transparent 72%);
}
.contact .inner { position: relative; }
.contact .eyebrow { color: var(--accent); }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.contact-title span {
  color: var(--accent);
}
.contact p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 0; }
.contact .bar { margin-left: auto; margin-right: auto; background: var(--accent); }
.contact-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(34px, 4.6vw, 56px);
}
.contact-copy {
  max-width: 620px;
  text-align: center;
}
.video-inquiry-card {
  position: relative;
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid rgba(11,13,18,.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.96)),
    radial-gradient(circle at 16% 0%, rgba(47,107,255,.10), transparent 38%);
  color: var(--ink);
  box-shadow:
    0 30px 80px rgba(27,37,62,.12),
    inset 0 1px 0 rgba(255,255,255,.95);
}
.video-inquiry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(47,107,255,0));
}
.video-call-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: .96rem;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.video-call-ghost:hover {
  transform: translateY(-2px);
}
.video-inquiry-form {
  display: grid;
  gap: 18px;
  padding: 36px 34px 34px;
}
.video-form-field {
  display: grid;
  gap: 8px;
}
.video-form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22262e;
  font-size: .83rem;
  font-weight: 760;
  letter-spacing: -0.018em;
}
.required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(47,107,255,.18);
  border-radius: 999px;
  background: rgba(47,107,255,.08);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
}
.video-form-field input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(11,13,18,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  padding: 0 16px;
  font-size: .94rem;
  font-weight: 560;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.video-form-field input:focus {
  border-color: rgba(47,107,255,.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,107,255,.12);
}
.video-phone-row {
  display: grid;
  grid-template-columns: 1fr 10px 1fr 10px 1fr;
  align-items: center;
  gap: 8px;
}
.video-phone-row i {
  display: block;
  width: 10px;
  height: 1px;
  background: rgba(11,13,18,.30);
}
.video-privacy-wrap {
  display: grid;
  overflow: hidden;
  gap: 0;
  border: 1px solid rgba(11,13,18,.09);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.video-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 16px;
  color: #4f5663;
  font-size: .9rem;
  font-weight: 780;
  line-height: 1.5;
  border-top: 1px solid rgba(11,13,18,.08);
}
.video-privacy input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.privacy-detail {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.privacy-detail summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  background: #f2f5f8;
  color: #1d2430;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}
.privacy-detail summary::-webkit-details-marker { display: none; }
.privacy-detail summary::after {
  content: "▼";
  float: right;
  color: #98a1ae;
  font-weight: 900;
  font-size: .78rem;
  transition: transform .2s var(--ease);
}
.privacy-detail[open] summary::after { transform: rotate(180deg); }
.privacy-detail div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid rgba(11,13,18,.08);
  color: #687181;
  font-size: .8rem;
  line-height: 1.55;
}
.privacy-detail p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.video-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.video-submit-btn {
  min-height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.018em;
  box-shadow: 0 16px 34px rgba(47,107,255,.28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.video-submit-btn:hover {
  transform: translateY(-2px);
  background: #245ee8;
  box-shadow: 0 20px 44px rgba(47,107,255,.36);
}
.video-submit-btn:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}
.video-call-ghost {
  border: 1px solid rgba(11,13,18,.14);
  background: rgba(255,255,255,.76);
  color: #151820;
}
.video-call-ghost:hover {
  border-color: rgba(47,107,255,.34);
  background: #fff;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer { background: #f6f8fc; color: var(--ink); border-top: 1px solid rgba(11,13,18,.08); padding: 34px 0; }
.footer .inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); }
.footer .logo-mark path { fill: var(--ink); }
.footer-copy { color: #8a92a0; font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #667085; font-size: 0.85rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(10,10,14,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { width: min(420px, 92vw); display: flex; flex-direction: column; gap: 14px; transform: scale(.96); transition: transform .35s var(--ease); }
.lightbox.open .lb-stage { transform: scale(1); }
#lb-video { width: 100%; aspect-ratio: 9 / 16; max-height: 80vh; border-radius: var(--radius); background: #000; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.lb-caption { display: flex; align-items: center; gap: 12px; justify-content: center; color: rgba(255,255,255,.7); font-size: 0.9rem; }
.lb-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: rgba(47,107,255,.14); color: #9db9ff; border: 1px solid rgba(47,107,255,.45); }
.lb-title { color: #fff; font-weight: 500; }
.lb-close {
  position: fixed; top: 22px; right: 26px; z-index: 101; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb-close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }

/* ---------- Dialogs ---------- */
.phone-modal,
.video-result-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9,11,16,.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.phone-modal.open,
.video-result-modal.open {
  opacity: 1;
  visibility: visible;
}
.phone-modal-card,
.video-result-card {
  position: relative;
  width: min(100%, 430px);
  padding: 34px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,252,.96));
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0,0,0,.30);
  transform: translateY(10px) scale(.98);
  transition: transform .28s var(--ease);
}
.phone-modal.open .phone-modal-card,
.video-result-modal.open .video-result-card {
  transform: none;
}
.phone-modal-close,
.video-result-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(11,13,18,.06);
  color: var(--ink-2);
  font-size: 1.35rem;
  line-height: 1;
}
.phone-modal-eyebrow,
.video-result-eyebrow {
  margin: 0 0 12px !important;
  color: var(--accent) !important;
  font-family: var(--mono);
  font-size: .72rem !important;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.phone-modal-card h3,
.video-result-card h3 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.phone-modal-card p,
.video-result-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.72;
  word-break: keep-all;
}
.phone-modal-card strong {
  display: block;
  margin: 24px 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.52rem;
  letter-spacing: .02em;
}
.phone-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-visual {
    justify-content: flex-start;
  }
  .hero-reference-wrap {
    width: min(74vw, 320px);
  }
  .hero-title { font-size: clamp(3rem, 8vw, 4.7rem); }
  .db-header { display: block; }
  .db-header > div:first-child { max-width: none; }
  .filters { justify-content: flex-start; margin-top: 22px; }
  .head-filters { margin-left: 22px; margin-right: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) .step-arrow { display: none; }
}
@media (max-width: 560px) {
  .hero {
    min-height: calc(100svh - 66px);
    align-items: stretch;
    color: #fff;
    background: #080a10;
  }
  .hero::before,
  .hero::after {
    opacity: 0;
  }
  .hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: calc(100svh - 66px);
    align-items: center;
    justify-content: center;
    padding-top: 58px;
    padding-bottom: 66px;
  }
  .hero-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 48%, rgba(47,107,255,.24) 0%, rgba(47,107,255,0) 36%),
      linear-gradient(180deg, rgba(4,6,10,.50) 0%, rgba(4,6,10,.34) 46%, rgba(4,6,10,.70) 100%);
  }
  .hero-copy {
    z-index: 2;
    width: min(100%, 430px);
    margin: auto;
    text-align: center;
  }
  .hero-copy::before {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    color: #6fa0ff;
    text-shadow: 0 2px 16px rgba(0,0,0,.32);
  }
  .hero-title {
    max-width: 100%;
    color: #fff;
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    line-height: 1.04;
    text-shadow: 0 4px 24px rgba(0,0,0,.36);
  }
  .hero-title span {
    color: #1f6bff;
    text-shadow:
      0 4px 22px rgba(0,0,0,.36),
      0 0 22px rgba(31,107,255,.44);
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 408px);
    margin: clamp(46px, 8vh, 76px) auto 0;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(6,10,18,.78), rgba(6,10,18,.52));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px;
    box-shadow:
      0 26px 60px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(18px) saturate(128%);
    -webkit-backdrop-filter: blur(18px) saturate(128%);
  }
  .hero-stats li,
  .hero-stats li:first-child {
    padding: 21px 8px 18px;
    background: transparent;
    text-align: center;
  }
  .hero-stats li::before {
    left: 50%;
    top: 13px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #1f6bff;
    transform: translateX(-50%);
    box-shadow: 0 0 14px rgba(31,107,255,.58);
  }
  .hero-stats li + li {
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,.12);
  }
  .hero-stats strong {
    color: #fff;
    padding-left: 0;
    font-family: var(--font);
    font-size: clamp(1.18rem, 5.6vw, 1.52rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    text-shadow: 0 3px 18px rgba(0,0,0,.42);
  }
  .hero-stats span {
    margin-top: 9px;
    padding-left: 0;
    color: rgba(255,255,255,.68);
    font-size: .64rem;
    font-weight: 650;
  }
  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    min-width: 0;
    pointer-events: none;
  }
  .hero-reference-wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
  .hero-reference-wrap::before,
  .hero-reference-wrap::after {
    display: none;
  }
  .hero-reference-video {
    object-position: 50% 20%;
    filter: brightness(.94) saturate(1.08) contrast(1.04);
  }
  .proof-head { margin-bottom: 24px; }
  .proof-headline { font-size: clamp(2rem, 8.4vw, 2.55rem); }
  .proof-frame { padding: 16px 0; border-radius: 12px; }
  .proof-scroll-img { height: 230px; }
  .dash-section { margin-top: 64px; margin-bottom: 64px; }
  .section-meta { margin-bottom: 14px; }
  .module-title { font-size: 1.82rem; }
  .module-desc { font-size: .92rem; }
  .head-row { gap: 12px; }
  .doc-head.portfolio-active .brand .logo-word { display: none; }
  .head-filters { margin: 0; }
  .doc-head.portfolio-active .head-nav { display: none; }
  .portfolio-filters {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .chip { padding: 8px 12px; font-size: .76rem; }
  .portfolio-list-head { display: block; margin-bottom: 18px; padding-bottom: 16px; }
  .archive-note { display: block; margin-top: 8px; }
  .portfolio-db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .project-img { height: auto; }
  .project-info { padding: 12px 12px 14px; }
  .head-nav { gap: 14px; }
  .head-nav a:not(.head-cta) { display: none; }
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .step {
    min-height: auto;
    padding: 22px 20px 24px;
  }
  .step:nth-child(2n) .step-arrow { display: inline-flex; }
  .step-arrow {
    right: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(50%) rotate(90deg);
  }
  .contact { padding-top: 76px; padding-bottom: 76px; }
  .contact-title { font-size: clamp(2.45rem, 12vw, 3.35rem) !important; }
  .video-inquiry-form { padding: 26px 20px 24px; }
  .video-form-actions { grid-template-columns: 1fr; }
  .video-call-ghost { width: 100%; }
  .video-phone-row {
    grid-template-columns: 1fr 8px 1fr 8px 1fr;
    gap: 6px;
  }
  .video-form-field input {
    height: 50px;
    padding: 0 13px;
    font-size: .9rem;
  }
  .phone-modal-card,
  .video-result-card {
    padding: 30px 24px;
    border-radius: 22px;
  }
  .footer .inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
