/* next ai 홈페이지 스타일: cinematic dark opening + editorial enterprise 레이아웃 (비교용 미리보기) */
:root {
  --ink: #0A0F10;
  --ink-2: #131A1C;
  --ink-3: #1C2528;
  --ink-soft: #3C4648;
  --muted: #5B6668;
  --line: #DDE2DF;
  --line-dark: #2A3335;
  --paper: #FFFFFF;
  --off: #F3F4F0;
  --lime: #B7F34A;
  --lime-deep: #4E7A0E;
  --on-dark: #C9D1D2;
  --on-dark-muted: #A9B4B6;
  --max: 1400px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 10px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 12px 18px; font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section h2 { font-size: clamp(32px, 4.2vw, 58px); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--lime); display: inline-block; }
.photo-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--lime); color: var(--ink); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.06); transition: background-color .2s, border-color .2s; }
.site-header.is-scrolled { background: rgba(10,15,16,.97); border-bottom-color: var(--line-dark); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; flex: none; }
.brand-link img { width: 180px; height: auto; aspect-ratio: 370 / 106; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--paper); white-space: nowrap; }
.main-nav a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-header .nav-cta { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; background: var(--lime); color: var(--ink); }
.site-header .nav-cta:hover { background: var(--paper); color: var(--ink); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px; background: none; color: var(--paper); border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); font-weight: 700; font-size: 15px; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--paper); position: relative; transition: transform .2s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 24px var(--pad) 40px; gap: 24px; overflow-y: auto; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 22px; min-height: 60px; border-bottom: 1px solid var(--line-dark); padding: 0; }
  .site-header .nav-cta { min-height: 56px; font-size: 17px; }
}

/* ---------- 1. Hero: cinematic dark opening ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 80% at 50% 40%, #142022 0%, var(--ink) 62%);
  color: var(--paper);
  min-height: clamp(620px, calc(100svh - var(--header-h)), 940px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(56px, 8vh, 96px);
}
.hero-backdrop { position: absolute; inset: 0; z-index: -2; display: grid; align-content: center; pointer-events: none; user-select: none; }
.bd-line { display: block; font-size: clamp(120px, 19vw, 300px); font-weight: 900; line-height: .86; letter-spacing: -0.05em; color: rgba(233,242,240,.045); white-space: nowrap; }
.bd-1 { padding-left: 22vw; }
.bd-2 { padding-left: 0; color: rgba(183,243,74,.05); }
.bd-3 { padding-left: 30vw; }

.hero-emblem { position: absolute; z-index: -1; left: 50%; top: 44%; width: min(64vh, 640px, 86vw); aspect-ratio: 1; transform: translate(-50%, -50%); perspective: 1400px; }
.nx-emblem { width: 100%; height: 100%; overflow: visible; transform-style: preserve-3d; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.nx-body { transform-box: view-box; transform-origin: 50% 50%; }
.nx-glint { transform: translateX(-200px) skewX(-18deg); }

.hero-inner { position: relative; }
.hero-copy { position: relative; max-width: 940px; margin: 0 auto; text-align: center; }
.hero-copy::before { content: ""; position: absolute; inset: -40px -80px -30px; z-index: -1; background: radial-gradient(closest-side, rgba(10,15,16,.82), rgba(10,15,16,.55) 55%, rgba(10,15,16,0)); pointer-events: none; }
.hero .eyebrow { color: var(--lime); text-transform: none; letter-spacing: .06em; justify-content: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 84px); line-height: 1.06; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero-sub { margin: 24px auto 0; max-width: 680px; color: var(--on-dark); font-size: clamp(16px, 1.4vw, 19px); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .btn-primary { background: var(--lime); color: var(--ink); }
.hero .btn-primary:hover { background: var(--paper); }
.hero .btn-ghost { border-color: rgba(255,255,255,.7); color: var(--paper); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.hero-scroll-line { width: 2px; height: 30px; background: linear-gradient(var(--lime), rgba(183,243,74,0)); border-radius: 2px; }

@media (max-width: 700px) {
  .hero { display: block; min-height: 0; padding: 12px 0 64px; }
  .hero-emblem { position: relative; left: auto; top: auto; transform: none; width: min(78vw, 340px); margin: 8px auto -36px; }
  .bd-line { font-size: 34vw; }
  .hero-copy::before { inset: -20px -20px -20px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Motion (no-preference 일 때만) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .nx-emblem { animation: nx-turn 14s ease-in-out infinite alternate; }
  .nx-face { transform-box: fill-box; transform-origin: 50% 50%; animation: nx-in 1.3s var(--ease) both; }
  .nx-face:nth-of-type(2) { animation-delay: .12s; }
  .nx-face:nth-of-type(3) { animation-delay: .24s; }
  .nx-face:nth-of-type(4) { animation-delay: .36s; }
  .nx-depth { animation: nx-fade 1.6s ease both .2s; }
  .nx-glint { animation: nx-glint 7s ease-in-out infinite 1.4s; }
  .nx-ring-dash { animation: nx-dash 18s linear infinite; }
  .nx-node { transform-box: fill-box; transform-origin: center; animation: nx-pulse 3.2s ease-in-out infinite; }
  .nx-node-2 { animation-delay: 1.6s; }
  .nx-halo { animation: nx-breathe 8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .bd-1 { animation: bd-drift 36s linear infinite alternate; }
  .bd-2 { animation: bd-drift 44s linear infinite alternate-reverse; }
  .bd-3 { animation: bd-drift 40s linear infinite alternate; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-scroll-line { animation: nx-pulse 2.4s ease-in-out infinite; }
  .hero.is-paused *, .cta.is-paused * { animation-play-state: paused !important; }
  .cta-ribbon { animation: ribbon-slide 22s linear infinite; }
  .has-tabs .svc-panel { animation: panel-in .5s var(--ease); }
}
@keyframes nx-turn {
  0% { transform: rotateY(-20deg) rotateX(8deg) translateY(0); }
  100% { transform: rotateY(20deg) rotateX(-6deg) translateY(-14px); }
}
@keyframes nx-in { from { opacity: 0; transform: scale(.82) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-glint {
  0% { transform: translateX(-200px) skewX(-18deg); }
  55%, 100% { transform: translateX(820px) skewX(-18deg); }
}
@keyframes nx-dash { to { stroke-dashoffset: -320; } }
@keyframes nx-pulse { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes nx-breathe { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.06); opacity: 1; } }
@keyframes bd-drift { from { transform: translateX(-4vw); } to { transform: translateX(4vw); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ribbon-slide { from { background-position: 0 0; } to { background-position: 600px 0; } }

/* reveal: JS가 준비된 경우에만 숨김 */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 2. Highlights carousel ---------- */
.highlights { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-dark); }
.highlights .eyebrow { color: var(--on-dark-muted); }
.hl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.highlights h2 { font-size: clamp(28px, 3.4vw, 46px); }
.carousel-ctrls { display: flex; gap: 8px; flex: none; }
.carousel-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; font-size: 20px; display: grid; place-items: center; transition: background-color .2s, color .2s, opacity .2s; }
.carousel-btn:hover:not(:disabled) { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.hl-track, .case-track { display: grid; grid-auto-flow: column; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 14px; overscroll-behavior-x: contain; }
.hl-track { grid-auto-columns: minmax(280px, calc((100% - 40px) / 3.2)); scrollbar-color: var(--ink-soft) transparent; }
.hl-card { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 360px; padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.hl-card:hover, .hl-card:focus-within { border-color: var(--lime); transform: translateY(-4px); }
.hl-art { height: 120px; margin: -28px -28px 8px; background: linear-gradient(135deg, #1F2A2D, #0E1416); position: relative; overflow: hidden; }
.hl-art::before, .hl-art::after { content: ""; position: absolute; width: 56px; height: 170px; top: -24px; border-radius: 2px; }
.hl-art::before { left: 44%; background: linear-gradient(#E9F2F0, #5E6A6D); transform: skewX(32deg); }
.hl-art::after { left: 44%; background: linear-gradient(var(--lime), #4E7A0E); transform: skewX(-32deg); opacity: .9; }
.hl-b .hl-art::before { left: 18%; } .hl-b .hl-art::after { left: 66%; }
.hl-c .hl-art::before { transform: skewX(60deg); } .hl-c .hl-art::after { transform: skewX(-60deg); }
.hl-d .hl-art::before { left: 70%; } .hl-d .hl-art::after { left: 20%; }
.hl-e .hl-art { background: linear-gradient(135deg, #2A3A12, #0E1416); }
.hl-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.hl-card h3 { font-size: 23px; }
.hl-card p { color: var(--on-dark); font-size: 16px; }
.hl-link { margin-top: auto; align-self: flex-start; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--lime); }
.hl-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- 3. Manifesto (What we do) ---------- */
.what { background: var(--paper); }
.manifesto { text-align: center; }
.manifesto .eyebrow { justify-content: center; }
.manifesto h2 { font-size: clamp(36px, 5.4vw, 76px); letter-spacing: -0.04em; max-width: 14em; margin: 0 auto; }
.what-points { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); text-align: left; }
.what-point { padding: 32px 32px 0 0; }
.what-point + .what-point { padding-left: 32px; border-left: 1px solid var(--line); }
.what-num { display: inline-block; font-weight: 800; color: var(--lime-deep); margin-bottom: 12px; }
.what-point h3 { font-size: 23px; margin-bottom: 12px; }
.what-point p { color: var(--ink-soft); }

/* ---------- 4. Education ---------- */
.education { background: var(--off); }
.edu-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.edu-intro p { color: var(--ink-soft); }
.edu-note { margin-top: 12px; font-size: 15px; color: var(--muted); }
.edu-programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.edu-program { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.edu-program:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10,15,16,.45); }
.edu-media { aspect-ratio: 16 / 8; overflow: hidden; }
.edu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.edu-program:hover .edu-media img { transform: scale(1.04); }
.edu-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.edu-program .edu-level { align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.edu-body h3 { font-size: 24px; }
.edu-body > p:not(.edu-level):not(.edu-output) { color: var(--ink-soft); }
.edu-output { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.edu-output span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.edu-band { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); overflow: hidden; }
.edu-band-art svg { width: 100%; height: auto; }
.edu-band .eyebrow { color: var(--on-dark-muted); }
.edu-band-title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.03em; }
.edu-band-copy p:not(.eyebrow):not(.edu-band-title) { color: var(--on-dark); }

/* ---------- 5. Services: tab rail + split panel ---------- */
.services { background: var(--paper); }
.svc-tabs { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc-rail { display: flex; flex-direction: column; border-top: 2px solid var(--ink); position: sticky; top: calc(var(--header-h) + 24px); }
.svc-tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 20px 8px 20px 0; display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; position: relative; transition: color .2s; }
.svc-tab::before { content: ""; position: absolute; left: -12px; top: 18px; bottom: 18px; width: 4px; background: var(--lime); transform: scaleY(0); transition: transform .3s var(--ease); }
.svc-num { grid-row: span 2; font-weight: 800; color: var(--muted); }
.svc-name { font-size: 19px; font-weight: 800; color: var(--muted); }
.svc-brief { font-size: 14px; color: var(--muted); }
.svc-tab:hover .svc-name, .svc-tab[aria-selected="true"] .svc-name { color: var(--ink); }
.svc-tab[aria-selected="true"] .svc-num { color: var(--lime-deep); }
.svc-tab[aria-selected="true"]::before { transform: scaleY(1); }
.svc-panels { display: grid; gap: 40px; }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch; background: var(--off); border-radius: var(--radius); overflow: hidden; }
.svc-panel:focus-visible { outline-offset: 4px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.svc-copy { padding: clamp(28px, 3.5vw, 48px); }
.svc-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 10px; }
.svc-title { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 24px; }
.svc-list { display: grid; gap: 18px; }
.svc-list li { color: var(--ink-soft); padding-left: 18px; border-left: 2px solid var(--line); }
.svc-list strong { display: block; color: var(--ink); font-size: 17px; }
.svc-media { position: relative; min-height: 320px; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-media figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 13px; background: rgba(10,15,16,.78); color: var(--paper); padding: 4px 10px; border-radius: 6px; }

/* ---------- 6. Industries: wide imagery ---------- */
.industries { position: relative; color: var(--paper); background: var(--ink); overflow: hidden; isolation: isolate; padding: clamp(96px, 12vw, 170px) 0 clamp(56px, 7vw, 96px); }
.ind-media { position: absolute; inset: 0; z-index: -1; }
.ind-media img { width: 100%; height: 100%; object-fit: cover; }
.ind-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,16,.55) 0%, rgba(10,15,16,.78) 55%, rgba(10,15,16,.96) 100%); }
.stock-caption { position: absolute; right: 16px; top: 16px; z-index: 1; font-size: 13px; color: var(--on-dark); background: rgba(10,15,16,.7); padding: 4px 10px; border-radius: 6px; }
.industries .eyebrow { color: var(--on-dark); }
.industries h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.04em; }
.ind-sub { margin-top: 18px; max-width: 560px; color: var(--on-dark); }
.ind-list { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.3); }
.ind-btn { width: 100%; min-height: 120px; text-align: left; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.18); padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; transition: background-color .25s, color .25s, padding .25s var(--ease); }
.ind-list li:last-child .ind-btn { border-right: 0; }
.ind-list li + li .ind-btn { padding-left: 20px; }
.ind-btn:hover { background: rgba(183,243,74,.12); }
.ind-name { font-size: 22px; font-weight: 800; }
.ind-name::after { content: " →"; color: var(--lime); }
.ind-desc { font-size: 15px; color: var(--on-dark); }

/* ---------- 7. Cases: filter + card carousel ---------- */
.cases { background: var(--paper); }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.cases-note { margin-top: 14px; color: var(--ink-soft); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 15px; transition: background-color .2s, border-color .2s, color .2s; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-status { margin: 16px 0 24px; color: var(--muted); font-size: 15px; }
.case-track { grid-auto-columns: minmax(290px, calc((100% - 40px) / 3)); scrollbar-color: var(--line) transparent; }
.case-card { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s; }
.case-card:hover, .case-card:focus-within { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10,15,16,.45); }
.case-art { min-height: 170px; padding: 24px; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 6px 10px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; position: relative; overflow: hidden; }
.case-art::before { content: ""; position: absolute; right: -30px; top: -40px; width: 70px; height: 220px; background: linear-gradient(var(--lime), rgba(183,243,74,.15)); transform: skewX(-30deg); opacity: .85; }
.case-art::after { content: ""; position: absolute; right: 40px; top: -40px; width: 70px; height: 220px; background: linear-gradient(rgba(233,242,240,.5), rgba(233,242,240,.05)); transform: skewX(30deg); }
.case-art span { position: relative; z-index: 1; }
.case-art .arrow { color: var(--lime); }
.case-shoalls .case-art { background: #17262A; }
.case-lincoln .case-art { background: #1E2A12; }
.case-media .case-art { background: #20262F; }
.case-newbiz .case-art { background: #262A1A; }
.case-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-body > p:not(.case-meta):not(.case-client) { color: var(--ink-soft); font-size: 16px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; }
.case-ind { color: var(--muted); }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-live { background: var(--lime); color: var(--ink); }
.status-exp { background: var(--off); color: var(--ink-soft); border: 1px solid var(--line); }
.case-client { font-size: 15px; font-weight: 800; color: var(--lime-deep); }
.case-title { font-size: 21px; }
.case-open { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 2px solid var(--ink); font-weight: 800; }
.case-open:hover { border-color: var(--lime); }
.case-empty { padding: 24px; background: var(--off); border-radius: var(--radius); }

/* ---------- 8. Process ---------- */
.process { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.process .eyebrow { color: var(--on-dark-muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: linear-gradient(90deg, var(--lime), rgba(183,243,74,.15)); }
.step { position: relative; padding-top: 72px; display: flex; flex-direction: column; gap: 12px; }
.step-num { position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--lime); font-weight: 800; color: var(--lime); }
.step h3 { font-size: 22px; }
.step p { color: var(--on-dark); font-size: 16px; }
.step .step-output { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-dark); color: var(--paper); font-weight: 700; }
.step-output span { display: block; font-size: 13px; color: var(--lime); font-weight: 700; }
.process-note { margin-top: 48px; color: var(--on-dark-muted); font-size: 15px; }

/* ---------- 9. Resources ---------- */
.resources { background: var(--off); }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.res-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; transition: border-color .2s, transform .3s var(--ease); }
.res-card:hover, .res-card:focus-within { border-color: var(--ink); transform: translateY(-3px); }
.res-kicker { font-size: 13px; font-weight: 700; color: var(--lime-deep); letter-spacing: .06em; }
.res-card h3 { font-size: 22px; }
.res-card p:not(.res-kicker) { color: var(--ink-soft); font-size: 16px; }
.res-link { margin-top: auto; align-self: flex-start; font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid var(--ink); }
.res-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- 10. Brand ---------- */
.brand-story { background: var(--paper); }
.brand-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.brand-text p { color: var(--ink-soft); }
.brand-text p + p { margin-top: 14px; }
.brand-marks { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 48px; }
.brand-mark { background: var(--off); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 220px; }
.brand-mark-word img { width: min(100%, 340px); }
.brand-mark-symbol { background: var(--ink); }
.brand-mark-symbol img { width: 96px; background: var(--paper); border-radius: 8px; padding: 10px; }
.brand-mark figcaption { font-size: 14px; color: var(--muted); }
.brand-mark-symbol figcaption { color: var(--on-dark-muted); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.value { padding: 28px 28px 0 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value-en { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-deep); }
.value h3 { font-size: 26px; margin: 6px 0 10px; }
.value p { color: var(--ink-soft); }
.brand-closing { margin-top: 48px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; max-width: 820px; }

/* ---------- 11. FAQ ---------- */
.faq { background: var(--off); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 2px solid var(--ink); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 18px; position: relative; min-height: 44px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 18px; font-size: 26px; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-soft); }

/* ---------- 12. CTA ---------- */
.cta { position: relative; background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; isolation: isolate; }
.cta-ribbon { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: repeating-linear-gradient(-60deg, rgba(183,243,74,0) 0 80px, rgba(183,243,74,.10) 80px 82px, rgba(183,243,74,0) 82px 160px), radial-gradient(60% 80% at 85% 50%, rgba(183,243,74,.18), rgba(183,243,74,0)); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.cta h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.04em; }
.cta-side p { color: var(--on-dark); margin-bottom: 28px; }
.cta .btn-primary { background: var(--lime); color: var(--ink); }
.cta .btn-primary:hover { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: #060909; color: var(--on-dark); padding: 64px 0 120px; font-size: 15px; }
.preview-note { display: inline-block; font-size: 13px; color: var(--ink); background: var(--lime); padding: 4px 10px; border-radius: 6px; font-weight: 700; margin-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-logo { width: 160px; height: auto; aspect-ratio: 370 / 106; margin-bottom: 16px; }
.footer-about { max-width: 520px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.photo-disclosure { margin-top: 24px; color: var(--on-dark-muted); }
.photo-credits { margin-top: 16px; }
.photo-credits summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--paper); }
.credit-list { display: grid; gap: 8px; margin: 12px 0; font-size: 14px; }
.credit-list a { color: var(--paper); }
.credit-by { color: var(--on-dark-muted); margin: 0 6px; }
.credit-license { color: var(--on-dark-muted) !important; }
.credit-note { font-size: 14px; color: var(--on-dark-muted); }
.preview-marker { margin-top: 24px; font-size: 13px; color: var(--on-dark-muted); }
.copyright { margin-top: 8px; color: var(--on-dark-muted); }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); z-index: 40; display: grid; gap: 10px; }
.float-btn { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.7); background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); text-decoration: none; transition: background-color .2s, color .2s, opacity .3s, transform .3s var(--ease); }
.float-btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.back-top { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.js-floating .back-top:not(.is-shown) { opacity: 0; transform: translateY(12px); pointer-events: none; }
.js-floating .back-top:not(.is-shown):focus-visible { opacity: 1; transform: none; }
body.menu-open .float-actions { display: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); background: var(--paper); }
.modal::backdrop { background: rgba(10,15,16,.72); backdrop-filter: blur(4px); }
.modal-inner { padding: clamp(24px, 4vw, 44px); position: relative; }
.modal-close { position: absolute; right: 16px; top: 16px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-weight: 700; }
.modal h2 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 14px; padding-right: 80px; }
.case-dialog .case-client { margin-top: 14px; }
.dialog-steps { counter-reset: d; display: grid; gap: 16px; margin: 20px 0; }
.dialog-steps li { padding-left: 18px; border-left: 3px solid var(--lime); }
.dialog-steps h3 { font-size: 18px; margin-bottom: 4px; }
.dialog-note, .consult-notice, .consult-privacy { font-size: 14px; color: var(--muted); }
.consult-notice { padding: 12px 14px; background: var(--off); border-radius: 8px; color: var(--ink-soft); }
.consult-form { display: grid; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #9AA4A6; border-radius: 8px; background: var(--paper); }
.field textarea { resize: vertical; }
.field-hint { font-size: 14px; color: var(--muted); }
.field-error { color: #B42318; font-weight: 700; font-size: 14px; }
[aria-invalid="true"] { border-color: #B42318 !important; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ink); }
.consult-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consult-status { min-height: 1.5em; font-weight: 700; }
.consult-fallback { display: grid; gap: 6px; }
.consult-fallback textarea { width: 100%; padding: 10px; border: 1.5px solid #9AA4A6; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hl-track { grid-auto-columns: minmax(270px, 44%); }
  .case-track { grid-auto-columns: minmax(280px, 46%); }
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-rail { position: static; flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .svc-tab { flex: none; border-bottom: 3px solid transparent; padding: 14px 18px 12px 0; margin-right: 18px; grid-template-columns: auto; }
  .svc-tab::before { display: none; }
  .svc-num { grid-row: auto; font-size: 13px; }
  .svc-brief { display: none; }
  .svc-tab[aria-selected="true"] { border-bottom-color: var(--lime); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .ind-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-list li:nth-child(2) .ind-btn { border-right: 0; }
  .ind-list li:nth-child(3) .ind-btn { padding-left: 0; }
  .ind-list li:nth-child(n+3) .ind-btn { border-top: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 800px) {
  .edu-head, .brand-grid, .faq-grid, .cta-inner, .footer-grid, .edu-band { grid-template-columns: 1fr; gap: 24px; }
  .edu-programs { grid-template-columns: 1fr; }
  .what-points { grid-template-columns: 1fr; }
  .what-point { padding: 28px 0 0; }
  .what-point + .what-point { padding-left: 0; border-left: 0; margin-top: 12px; border-top: 1px solid var(--line); }
  .svc-panel { grid-template-columns: 1fr; gap: 0; }
  .svc-media { min-height: 220px; order: -1; }
  .res-grid { grid-template-columns: 1fr; }
  .res-card { min-height: 0; }
  .brand-marks { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { padding: 24px 0 0; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .hl-head, .cases-head { flex-direction: column; align-items: flex-start; }
  .edu-band-art { max-width: 320px; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-link img { width: 148px; }
  .menu-toggle-label { font-size: 14px; }
  .hl-track, .case-track { grid-auto-columns: 84%; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 26px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--lime), rgba(183,243,74,.15)); }
  .step { padding: 0 0 0 76px; min-height: 54px; }
  .ind-list { grid-template-columns: 1fr; }
  .ind-list li .ind-btn { padding-left: 0 !important; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); min-height: 88px; }
  .checks { grid-template-columns: 1fr; }
  .float-btn { width: 46px; height: 46px; }
  .stock-caption { left: 12px; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
