:root {
  --bg: #f7f9f8;
  --paper: #ffffff;
  --ink: #080a09;
  --ink-soft: #27302b;
  --muted: #66736d;
  --line: #e1e8e4;
  --line-strong: #aebdb5;
  --panel: #f2f5f3;
  --panel-cool: #edf4f2;
  --accent: #dfff13;
  --accent-ink: #171d00;
  --green-black: #07110d;
  --green-deep: #102019;
  --blue-gray: #e5eef2;
  --shadow: 0 42px 96px rgba(7, 18, 14, 0.16), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  --shadow-soft: 0 22px 54px rgba(7, 18, 14, 0.09), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-micro: 0 14px 32px rgba(7, 18, 14, 0.06), 0 1px 0 rgba(7, 18, 14, 0.03);
  --radius: 6px;
  --max: 1220px;
  font-family: Pretendard, Inter, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8faf9 38%, #f4f7f5 100%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.scroll-meter {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(8, 10, 9, 0.09);
  box-shadow: 0 10px 34px rgba(7, 18, 14, 0.045);
  backdrop-filter: blur(22px) saturate(1.08);
}

.nav-shell {
  width: min(var(--max), calc(100% - 44px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #070908 0%, #16231b 100%);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(223, 255, 19, 0.18), 0 10px 22px rgba(7, 18, 14, 0.17);
  font-size: 13px;
  line-height: 1;
}

.brand-name {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-action {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, #080a09 0%, #18231c 100%);
  color: var(--accent);
  box-shadow: 0 16px 32px rgba(9, 11, 10, 0.18);
}

.button {
  min-height: 54px;
  padding: 0 22px;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, #080a09 0%, #17231c 100%);
  color: var(--accent);
  box-shadow: 0 22px 42px rgba(9, 11, 10, 0.2);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-micro);
}

.button.secondary.light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.menu-button svg {
  width: 20px;
  height: 20px;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 58px 0 28px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(223, 255, 19, 0.08), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(7, 18, 14, 0.035) 100%);
  pointer-events: none;
}

.hero-inner,
.section-inner,
.case-rail,
.portfolio-page-head,
.portfolio-lead,
.filter-shell,
.portfolio-grid,
.quiet-note,
.footer-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
  gap: 58px;
  align-items: center;
}

.hero-copy h1,
.portfolio-page-head h1,
.article-head h1 {
  margin: 0;
  letter-spacing: 0;
  font-weight: 950;
  word-break: keep-all;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.01;
}

.hero-copy h1 span,
.portfolio-page-head h1 span {
  display: block;
}

.highlight-line {
  width: fit-content;
  background: linear-gradient(transparent 61%, rgba(223, 255, 19, 0.9) 0);
}

.hero-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.82;
  word-break: keep-all;
}

.hero-copy p::after,
.split-head p::after,
.case-body p::after,
.case-card p::after,
.system-copy p::after,
.proof-line p::after,
.portfolio-page-head p::after,
.portfolio-lead p::after,
.project-body p::after,
.article-head p::after,
.article-section p::after,
.process-item p::after,
.category-copy p::after,
.category-tech-grid p::after,
.category-system p::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 14px;
  background: var(--mode-color, var(--accent));
}

.case-card p::after,
.project-body p::after,
.proof-line p::after,
.category-tech-grid p::after {
  width: 38px;
  margin-top: 12px;
}

.system-copy p::after,
.portfolio-lead p::after {
  background: rgba(223, 255, 19, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  min-height: 540px;
  perspective: 1100px;
}

.media-frame,
.ops-panel,
.case-feature,
.case-card,
.project-card,
.portfolio-lead {
  position: relative;
  border: 1px solid rgba(9, 11, 10, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.media-frame::after,
.case-feature::after,
.project-card::after,
.portfolio-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.showcase-main {
  position: absolute;
  top: 8px;
  right: 130px;
  width: min(570px, calc(100% - 116px));
  transform: rotate(-1deg);
  box-shadow: var(--shadow);
}

.frame-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.96));
}

.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d4ce;
}

.frame-bar strong {
  margin-left: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.showcase-main img,
.showcase-card img,
.project-card img,
.case-feature img,
.case-card img,
.portfolio-lead img {
  width: 100%;
  aspect-ratio: 1271 / 881;
  object-fit: cover;
  object-position: top;
  background: var(--panel);
}

.showcase-card {
  position: absolute;
  width: 282px;
  transform: rotate(1.4deg);
  box-shadow: var(--shadow-soft);
}

.card-a {
  left: 14px;
  bottom: 112px;
}

.card-b {
  left: 334px;
  bottom: 70px;
}

.ops-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 286px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(223, 255, 19, 0.08), transparent 42%),
    var(--green-black);
  color: #fff;
  box-shadow: 0 28px 70px rgba(7, 18, 14, 0.34);
}

.ops-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(223, 255, 19, 0.28);
}

.ops-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.ops-row strong {
  color: var(--accent);
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.mini-chart {
  height: 82px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
}

.mini-chart i {
  flex: 1;
  min-width: 12px;
  background: linear-gradient(180deg, #f3ff75 0%, var(--accent) 100%);
}

.next-preview {
  width: min(var(--max), calc(100% - 44px));
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.works-hero {
  min-height: calc(100vh - 72px);
  padding: 0 0 28px;
  background:
    linear-gradient(115deg, rgba(223, 255, 19, 0.1), transparent 28%),
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.13), transparent 32%),
    #050605;
  color: #fff;
}

.works-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%);
  background-size: 150px 100%, 100% 100%;
  opacity: 0.42;
}

.works-hero-shell {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 44px));
  min-height: calc(100vh - 236px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.works-hero-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.works-hero-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.works-hero-nav span:last-child {
  border-right: 0;
}

.works-hero-title {
  align-self: center;
  padding: 54px 0;
  text-align: center;
}

.works-hero-title h1 {
  margin: 0 auto;
  max-width: 1040px;
  color: #fff;
  font-size: clamp(78px, 12.4vw, 174px);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
  word-break: keep-all;
}

.works-hero-title h1 > span {
  display: block;
}

.works-hero-title p {
  max-width: 620px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.72;
  word-break: keep-all;
}

.works-hero-footer {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(360px, 0.78fr);
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 30px;
}

.works-hero .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.works-hero-proof {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.works-hero-proof div {
  padding: 18px 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.works-hero-proof div:last-child {
  border-right: 0;
}

.works-hero-proof dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.works-hero-proof dd {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.works-hero-strip {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 44px));
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
  gap: 14px;
}

.works-hero-strip figure {
  position: relative;
  min-height: clamp(132px, 17vw, 236px);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.works-hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.78;
  transition: transform 360ms ease, opacity 360ms ease;
}

.works-hero-strip figure:hover img {
  transform: scale(1.035);
  opacity: 1;
}

.works-hero-strip figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.works-hero .next-preview {
  position: relative;
  z-index: 1;
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
}

.works-projects {
  background: #fff;
  border-top: 0;
}

.works-projects-head {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto 46px;
  text-align: center;
}

.works-projects-head span {
  display: block;
  color: var(--muted);
  font-size: clamp(42px, 9vw, 128px);
  line-height: 0.8;
  font-weight: 950;
}

.works-projects-head h2 {
  margin: 6px 0 0;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.96;
  font-weight: 950;
}

.works-projects-head p {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.82;
  word-break: keep-all;
}

.works-project-grid {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.works-project-card {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.works-project-card a {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
}

.works-project-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(8, 10, 9, 0.1);
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  background: var(--panel);
  box-shadow: var(--shadow-micro);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.works-project-card:hover img {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.works-project-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 950;
}

.works-project-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 900;
}

.section {
  padding: 112px 0;
  position: relative;
}

.case-preview {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  border-top: 1px solid rgba(7, 18, 14, 0.06);
}

.split-head,
.system-grid,
.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.88fr);
  gap: 62px;
  align-items: start;
}

.split-head {
  margin-bottom: 42px;
}

.split-head h2,
.system-copy h2,
.proof-statement h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 950;
  word-break: keep-all;
}

.split-head p,
.system-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.86;
  word-break: keep-all;
}

.case-rail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.case-feature {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.case-feature img {
  grid-column: 1 / -1;
}

.case-number {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-right: 1px solid var(--line);
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 28px;
  font-weight: 950;
}

.case-body {
  padding: 26px;
}

.case-type {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.case-body h3,
.case-card h3,
.project-body h3,
.portfolio-lead h2 {
  margin: 0;
  line-height: 1.24;
  font-weight: 950;
  word-break: keep-all;
}

.case-body h3 {
  font-size: 30px;
}

.case-body p,
.case-card p,
.project-body p,
.portfolio-lead p,
.quiet-note {
  color: var(--ink-soft);
  line-height: 1.78;
  word-break: keep-all;
}

.case-body p {
  margin: 14px 0 0;
  font-size: 16px;
}

.text-link,
.project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.case-stack {
  display: grid;
  gap: 14px;
}

.case-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  box-shadow: var(--shadow-micro);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 10, 9, 0.18);
  box-shadow: var(--shadow-soft);
}

.case-card img {
  border-radius: 6px;
  border: 1px solid var(--line);
}

.case-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.case-card h3 {
  margin-top: 6px;
  font-size: 22px;
}

.case-card p {
  margin: 8px 0 0;
  font-size: 14px;
}

.system-section {
  background:
    linear-gradient(135deg, #07110d 0%, #0c1a14 54%, #14241d 100%);
  color: #fff;
  overflow: hidden;
}

.system-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(223, 255, 19, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
  background-size: 136px 100%, 100% 100%;
  opacity: 0.45;
  pointer-events: none;
}

.system-section .section-inner {
  position: relative;
  z-index: 1;
}

.system-copy {
  position: sticky;
  top: 116px;
}

.system-copy p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.system-copy .button {
  margin-top: 30px;
}

.system-board {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.board-row {
  display: grid;
  grid-template-columns: 70px 170px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.board-row span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.board-row strong {
  font-size: 20px;
  line-height: 1.35;
}

.board-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.68;
  word-break: keep-all;
}

.proof-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 249, 0.98)),
    var(--paper);
}

.proof-layout {
  align-items: start;
}

.proof-list {
  border-top: 1px solid var(--line);
}

.proof-line {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.proof-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.proof-line p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.74;
  word-break: keep-all;
}

.portfolio-main {
  padding-bottom: 108px;
}

.portfolio-directory {
  padding-top: 34px;
}

.portfolio-directory-head {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.portfolio-directory-head h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1;
  font-weight: 950;
}

.portfolio-directory-head p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.directory-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.directory-count strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.directory-filter {
  margin-bottom: 18px;
}

.directory-filter .filter-bar {
  width: 100%;
}

.directory-categories {
  margin-bottom: 30px;
}

.work-grid {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
}

.work-card {
  min-width: 0;
  border: 1px solid rgba(8, 10, 9, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--mode-color, var(--line-strong));
  box-shadow: var(--shadow-soft);
}

.work-card a {
  min-height: 312px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  padding: 24px;
}

.work-no {
  width: fit-content;
  color: var(--mode-color, var(--accent));
  font-size: 13px;
  font-weight: 950;
}

.work-title {
  display: grid;
  align-content: end;
  min-height: 124px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.work-title strong {
  max-width: 260px;
  font-size: 22px;
  line-height: 1.32;
  font-weight: 950;
  word-break: keep-all;
}

.work-title em {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.work-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.work-card p::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 12px;
  background: var(--mode-color, var(--accent));
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(8, 10, 9, 0.1);
  border-radius: 4px;
  background: rgba(247, 250, 248, 0.88);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.work-card[hidden] {
  display: none;
}

.portfolio-hero {
  padding: 70px 0 44px;
}

.portfolio-page-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 60px;
  align-items: end;
}

.portfolio-page-head h1 {
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 0.98;
}

.portfolio-page-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.82;
  word-break: keep-all;
}

.portfolio-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  gap: 0;
  align-items: stretch;
  margin-top: 38px;
  box-shadow: var(--shadow);
}

.portfolio-lead img {
  height: 100%;
}

.portfolio-lead div {
  padding: 34px;
  background: var(--green-black);
  color: #fff;
}

.portfolio-lead p {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-lead .case-type {
  color: var(--accent);
}

.filter-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter-button.active {
  background: linear-gradient(135deg, #080a09 0%, #17231c 100%);
  border-color: var(--ink);
  color: var(--accent);
  box-shadow: 0 14px 28px rgba(7, 18, 14, 0.12);
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 10, 9, 0.28);
}

.filter-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-count strong {
  color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: var(--shadow-micro);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-body {
  padding: 22px;
}

.project-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(8, 10, 9, 0.1);
  border-radius: 4px;
  background: rgba(247, 250, 248, 0.86);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.project-body h3 {
  font-size: 22px;
}

.project-body p {
  margin: 12px 0 0;
  font-size: 15px;
}

.project-card[hidden] {
  display: none;
}

.quiet-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

.category-mode-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f9f8 100%),
    var(--paper);
}

.category-mode-grid,
.category-lab {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
}

.category-mode-card,
.category-lab-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.category-mode-card:last-child,
.category-lab-card:last-child {
  border-right: 0;
}

.category-mode-card::before,
.category-lab-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--mode-color, var(--accent));
}

.category-mode-card:hover,
.category-lab-card:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(8, 10, 9, 0.04);
}

.mode-index,
.category-lab-card span {
  color: var(--mode-color, var(--accent));
  font-size: 13px;
  font-weight: 950;
}

.category-mode-card strong,
.category-lab-card strong {
  font-size: 22px;
  line-height: 1.28;
  font-weight: 950;
  word-break: keep-all;
}

.category-mode-card p,
.category-lab-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.category-mode-card em {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.mode-info {
  --mode-color: var(--accent);
}

.mode-tool {
  --mode-color: #28b9ff;
}

.mode-map {
  --mode-color: #20c7a6;
}

.mode-engagement {
  --mode-color: #ff7a1a;
}

.category-lab {
  margin-top: 22px;
}

.category-lab-card {
  padding: 22px;
}

.category-lab-card strong {
  font-size: 18px;
}

.category-main {
  padding: 34px 0 104px;
}

.category-tabs {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
}

.category-tabs a {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 950;
}

.category-tabs a:last-child {
  border-right: 0;
}

.category-tabs a[aria-current="page"] {
  background: linear-gradient(135deg, #080a09 0%, #17231c 100%);
  color: var(--mode-color, var(--accent));
}

.theme-info {
  --mode-color: var(--accent);
  --mode-soft: rgba(223, 255, 19, 0.18);
}

.theme-tool {
  --mode-color: #28b9ff;
  --mode-soft: rgba(40, 185, 255, 0.16);
}

.theme-map {
  --mode-color: #20c7a6;
  --mode-soft: rgba(32, 199, 166, 0.16);
}

.theme-engagement {
  --mode-color: #ff7a1a;
  --mode-soft: rgba(255, 122, 26, 0.16);
}

.category-hero,
.category-tech-grid,
.category-system {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 54px;
  align-items: center;
  min-height: 620px;
}

.category-copy {
  min-width: 0;
}

.category-no {
  display: block;
  margin-bottom: 18px;
  color: var(--mode-color);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(36px, 4.15vw, 58px);
  line-height: 1.1;
  font-weight: 950;
  word-break: keep-all;
}

.category-copy p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.84;
  word-break: keep-all;
}

.category-visual {
  position: relative;
  min-height: 520px;
  padding: 24px;
  border: 1px solid rgba(8, 10, 9, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--mode-soft), transparent 44%),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-visual .media-frame {
  box-shadow: var(--shadow-soft);
}

.taxonomy-panel,
.workflow-console,
.geo-panel,
.funnel-panel {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--green-black);
  color: #fff;
  box-shadow: 0 24px 60px rgba(7, 18, 14, 0.28);
}

.taxonomy-panel strong,
.workflow-console strong,
.geo-panel strong,
.funnel-panel strong {
  display: block;
  margin-bottom: 16px;
  color: var(--mode-color);
  font-size: 13px;
  font-weight: 950;
}

.tree-row,
.workflow-console div,
.funnel-panel div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.tree-row span,
.workflow-console span,
.funnel-panel span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.tree-row i,
.workflow-console i {
  flex: 1;
  height: 1px;
  background: var(--mode-color);
}

.geo-grid {
  position: relative;
  height: 150px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.geo-grid i {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mode-color);
  box-shadow: 0 0 0 8px rgba(32, 199, 166, 0.14);
}

.geo-grid i:nth-child(1) { left: 22%; top: 35%; }
.geo-grid i:nth-child(2) { left: 48%; top: 52%; }
.geo-grid i:nth-child(3) { left: 66%; top: 28%; }
.geo-grid i:nth-child(4) { left: 78%; top: 70%; }

.geo-grid b {
  position: absolute;
  left: 45%;
  top: 42%;
  width: 88px;
  height: 88px;
  border: 1px solid var(--mode-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.funnel-panel span {
  flex: 1;
  background: rgba(255, 122, 26, 0.14);
  border-color: rgba(255, 122, 26, 0.48);
}

.category-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.category-tech-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(8, 10, 9, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: var(--shadow-micro);
}

.category-tech-grid span {
  color: var(--mode-color);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-tech-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.34;
}

.category-tech-grid p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.78;
  word-break: keep-all;
}

.category-system {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: start;
  margin-top: 96px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.category-system h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  font-weight: 950;
}

.category-system p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.82;
  word-break: keep-all;
}

.spec-table {
  border-top: 1px solid var(--line);
}

.spec-table div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.spec-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.spec-table strong {
  font-size: 17px;
  line-height: 1.55;
}

.theme-info .category-main {
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fcfb 52%, #eef7f9 100%);
}

.theme-info .category-hero {
  position: relative;
  min-height: 720px;
  align-items: end;
  padding-bottom: 58px;
}

.theme-info .category-hero::before {
  content: "CONTENT\A HUB";
  position: absolute;
  left: -10px;
  top: 72px;
  z-index: 0;
  color: rgba(8, 10, 9, 0.045);
  font-size: clamp(88px, 16vw, 230px);
  line-height: 0.82;
  font-weight: 950;
  white-space: pre;
  pointer-events: none;
}

.theme-info .category-copy,
.theme-info .category-visual {
  position: relative;
  z-index: 1;
}

.theme-info .category-copy h1 {
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.02;
}

.theme-info .category-visual {
  min-height: 640px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  align-items: end;
}

.theme-info .category-visual .media-frame {
  border-radius: 8px;
  box-shadow: 0 42px 96px rgba(11, 25, 22, 0.18);
}

.theme-info .taxonomy-panel {
  left: auto;
  right: 28px;
  bottom: 28px;
  width: min(520px, calc(100% - 56px));
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: rgba(8, 10, 9, 0.12);
  backdrop-filter: blur(18px);
}

.theme-info .taxonomy-panel strong {
  color: #21469b;
}

.theme-info .tree-row span {
  border-color: rgba(8, 10, 9, 0.12);
  color: var(--ink-soft);
  background: #f6faf9;
}

.theme-info .tree-row i {
  background: #21469b;
}

.theme-info .category-tech-grid {
  gap: 28px;
  margin-top: 18px;
}

.theme-info .category-tech-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.86) 72%),
    linear-gradient(135deg, rgba(33, 70, 155, 0.08), rgba(223, 255, 19, 0.12));
}

.theme-info .category-system {
  padding: 58px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 17, 13, 0.94), rgba(16, 35, 41, 0.92)),
    var(--green-black);
  color: #fff;
  box-shadow: var(--shadow);
}

.theme-info .category-system p,
.theme-info .spec-table span {
  color: rgba(255, 255, 255, 0.68);
}

.theme-info .spec-table,
.theme-info .spec-table div {
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-info .spec-table strong {
  color: #fff;
}

.theme-tool .category-main {
  background:
    linear-gradient(115deg, rgba(40, 185, 255, 0.12), transparent 30%),
    #050605;
  color: #fff;
}

.theme-tool .category-tabs {
  background: #0d0f0f;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.theme-tool .category-tabs a {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.theme-tool .category-tabs a[aria-current="page"] {
  background: #fff;
  color: #050605;
}

.theme-tool .category-hero {
  grid-template-columns: 1fr;
  min-height: 760px;
  text-align: center;
}

.theme-tool .category-copy {
  margin: 0 auto;
}

.theme-tool .category-no {
  color: rgba(255, 255, 255, 0.52);
}

.theme-tool .category-copy h1 {
  max-width: 1080px;
  color: #fff;
  font-size: clamp(54px, 8.2vw, 118px);
  line-height: 0.92;
}

.theme-tool .category-copy p {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.72);
}

.theme-tool .category-copy p::after {
  margin-left: auto;
  margin-right: auto;
  background: var(--mode-color);
}

.theme-tool .category-visual {
  width: min(980px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.theme-tool .category-visual .media-frame {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.42);
}

.theme-tool .workflow-console {
  left: 50%;
  right: auto;
  bottom: -34px;
  width: min(720px, calc(100% - 42px));
  transform: translateX(-50%);
  background: rgba(5, 6, 5, 0.9);
  backdrop-filter: blur(18px);
}

.theme-tool .category-tech-grid article,
.theme-tool .category-system {
  background: #0d0f0f;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.theme-tool .category-tech-grid p,
.theme-tool .category-system p,
.theme-tool .spec-table span {
  color: rgba(255, 255, 255, 0.68);
}

.theme-tool .spec-table,
.theme-tool .spec-table div,
.theme-tool .category-system {
  border-color: rgba(255, 255, 255, 0.15);
}

.theme-tool .spec-table strong {
  color: #fff;
}

.article-main {
  padding: 74px 0 112px;
}

.article-shell {
  width: min(960px, calc(100% - 44px));
  margin: 0 auto;
}

.article-head {
  padding: 36px 0 54px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.06;
}

.article-head p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.86;
  word-break: keep-all;
}

.article-body {
  display: grid;
  gap: 44px;
  padding-top: 52px;
}

.article-section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 52px;
}

.article-section h2,
.process-item h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.38;
  font-weight: 950;
}

.article-section p,
.article-section li,
.process-item p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
  word-break: keep-all;
}

.article-section p {
  margin: 0 0 18px;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.clean-list li {
  padding-left: 22px;
  position: relative;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.84em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.callout {
  margin-top: 26px;
  padding: 24px 26px;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbf9 0%, var(--panel) 100%);
  box-shadow: var(--shadow-micro);
}

.callout p {
  margin: 0;
  font-weight: 800;
}

.process-list {
  display: grid;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 46px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.process-item span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 950;
}

.process-item p {
  margin: 12px 0 0;
}

.contact-section {
  position: relative;
  padding: 118px 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f5f9f8 58%, #eef5f3 100%);
  background-size: 118px 100%, 100% 100%;
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, rgba(223, 255, 19, 0.2) 0%, rgba(61, 139, 255, 0.12) 100%);
  opacity: 0.52;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1fr);
  gap: 66px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 112px;
}

.section-code {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.28em;
}

.section-code span {
  width: 86px;
  height: 1px;
  background: var(--line-strong);
}

.section-code strong {
  font-weight: 950;
}

.contact-copy h2 {
  margin: 74px 0 0;
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  word-break: keep-all;
}

.contact-copy h2 span {
  display: block;
}

.contact-copy h2 span:first-child {
  color: #8c9993;
}

.contact-notes {
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.7;
  word-break: keep-all;
}

.contact-notes li {
  position: relative;
  padding-left: 44px;
}

.contact-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 24px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(8, 10, 9, 0.08);
}

.contact-terms {
  margin-top: 54px;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: 22px;
}

.contact-terms p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.contact-terms strong {
  color: var(--ink);
}

.contact-form {
  border: 1px solid rgba(8, 10, 9, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 54px;
  display: grid;
  gap: 34px;
  backdrop-filter: blur(18px);
}

.form-row,
.form-choice-group {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 14px;
}

.form-row label,
.form-choice-group legend {
  color: #3c4742;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.form-row label span,
.form-choice-group legend span {
  color: #256fff;
}

.form-row p,
.form-choice-group p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.form-row input:not([type="file"]),
.form-row textarea {
  width: 100%;
  min-height: 58px;
  padding: 16px 0;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1.55;
  outline: 0;
  transition: border-color 180ms ease, color 180ms ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 156px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a2ada8;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #256fff;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.choice-grid label {
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(8, 10, 9, 0.13);
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.76);
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.choice-grid input:checked + span {
  border-color: #256fff;
  background: #edf4ff;
  color: #0b3478;
}

.choice-grid label:hover span {
  transform: translateY(-1px);
  border-color: rgba(37, 111, 255, 0.34);
}

.file-drop {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border: 1px dashed var(--line-strong);
  background: rgba(247, 250, 248, 0.62);
  color: var(--ink-soft);
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  position: relative;
  padding-left: 44px;
  font-size: 22px;
  font-weight: 800;
}

.file-drop span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  background:
    linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat;
  opacity: 0.7;
}

.file-drop strong {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
}

.privacy-check {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  cursor: pointer;
}

.privacy-check input {
  appearance: none;
  width: 34px;
  height: 34px;
  margin: 4px 0 0;
  border: 2px solid var(--line-strong);
  background: var(--paper);
}

.privacy-check input:checked {
  border-color: #256fff;
  background:
    linear-gradient(135deg, transparent 48%, #256fff 0 58%, transparent 0),
    linear-gradient(45deg, transparent 46%, #256fff 0 58%, transparent 0);
  background-size: 15px 15px, 23px 23px;
  background-position: 7px 10px, 8px 3px;
  background-repeat: no-repeat;
}

.contact-submit {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #0b1511 0%, #18261f 100%);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #101f18 0%, #24382e 100%);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.contact-submit svg {
  width: 34px;
  height: 34px;
}

.contact-status,
.contact-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.contact-status.success {
  color: #226e1d;
}

.contact-status.error {
  color: #b83225;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--ink);
}

[data-reveal] {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 500ms ease, opacity 500ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .hero-inner,
  .split-head,
  .system-grid,
  .proof-layout,
  .portfolio-page-head,
  .portfolio-lead,
  .category-hero,
  .category-system,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 620px;
  }

  .showcase-main {
    left: 0;
    right: auto;
  }

  .ops-panel {
    right: 0;
  }

  .system-copy {
    position: static;
  }

  .contact-copy {
    position: static;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-directory-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-mode-grid,
  .category-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-mode-card:nth-child(2),
  .category-lab-card:nth-child(2) {
    border-right: 0;
  }

  .category-mode-card:nth-child(-n + 2),
  .category-lab-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .category-visual {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .header-action {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links.open {
    position: fixed;
    inset: 76px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 12px 22px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .case-rail {
    grid-template-columns: 1fr;
  }

  .board-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .board-row p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .nav-shell,
  .hero-inner,
  .section-inner,
  .case-rail,
  .next-preview,
  .portfolio-page-head,
  .portfolio-lead,
  .portfolio-directory-head,
  .work-grid,
  .filter-shell,
  .portfolio-grid,
  .quiet-note,
  .footer-inner,
  .article-shell,
  .category-mode-grid,
  .category-lab,
  .category-tabs,
  .category-hero,
  .category-tech-grid,
  .category-system,
  .contact-inner {
    width: min(100% - 30px, var(--max));
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy h1,
  .portfolio-page-head h1 {
    font-size: 46px;
    line-height: 1.04;
  }

  .category-copy h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .portfolio-directory-head h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .hero-copy p,
  .split-head p,
  .system-copy p,
  .portfolio-page-head p,
  .portfolio-directory-head p,
  .article-head p,
  .category-copy p,
  .category-system p {
    font-size: 16px;
    line-height: 1.76;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 12px;
    margin-top: 38px;
  }

  .showcase-main,
  .showcase-card,
  .ops-panel {
    position: static;
    width: 100%;
    transform: none;
  }

  .showcase-card {
    display: none;
  }

  .ops-panel {
    padding: 20px;
  }

  .next-preview,
  .filter-shell,
  .footer-inner {
    display: grid;
  }

  .section {
    padding: 72px 0;
  }

  .split-head,
  .system-grid,
  .proof-layout {
    gap: 26px;
  }

  .split-head h2,
  .system-copy h2,
  .proof-statement h2,
  .article-head h1 {
    font-size: 34px;
  }

  .case-feature {
    grid-template-columns: 1fr;
  }

  .case-number {
    min-height: 58px;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .proof-line,
  .article-section,
  .process-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-card a {
    min-height: auto;
    padding: 22px;
  }

  .work-title {
    min-height: auto;
  }

  .portfolio-lead div {
    padding: 24px;
  }

  .category-mode-grid,
  .category-lab,
  .category-tabs,
  .category-tech-grid {
    grid-template-columns: 1fr;
  }

  .category-mode-card,
  .category-lab-card,
  .category-tabs a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-mode-card:last-child,
  .category-lab-card:last-child,
  .category-tabs a:last-child {
    border-bottom: 0;
  }

  .category-main {
    padding-top: 22px;
  }

  .category-tabs {
    margin-bottom: 28px;
  }

  .category-hero {
    min-height: auto;
    gap: 34px;
  }

  .category-visual {
    min-height: auto;
    padding: 14px;
  }

  .taxonomy-panel,
  .workflow-console,
  .geo-panel,
  .funnel-panel {
    position: static;
    margin-top: 14px;
    padding: 18px;
  }

  .tree-row,
  .workflow-console div,
  .funnel-panel div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tree-row i,
  .workflow-console i {
    display: none;
  }

  .category-system {
    margin-top: 64px;
    gap: 26px;
  }

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-section {
    padding: 84px 0;
  }

  .contact-inner {
    gap: 40px;
  }

  .section-code {
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .section-code span {
    width: 58px;
  }

  .contact-copy h2 {
    margin-top: 42px;
    font-size: 36px;
    line-height: 1.14;
  }

  .contact-notes {
    margin-top: 34px;
    gap: 18px;
    font-size: 17px;
  }

  .contact-notes li {
    padding-left: 34px;
  }

  .contact-terms {
    margin-top: 36px;
    padding-left: 18px;
  }

  .contact-form {
    padding: 28px;
    gap: 30px;
  }

  .form-row label,
  .form-choice-group legend {
    font-size: 15px;
  }

  .form-row input:not([type="file"]),
  .form-row textarea {
    font-size: 18px;
  }

  .choice-grid {
    gap: 10px;
  }

  .choice-grid span {
    min-height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }

  .file-drop {
    min-height: 76px;
    padding: 0 18px;
  }

  .file-drop span {
    font-size: 17px;
    padding-left: 34px;
  }

  .privacy-check {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 16px;
    font-size: 15px;
  }

  .privacy-check input {
    width: 28px;
    height: 28px;
  }

  .contact-submit {
    min-height: 68px;
    padding: 0 24px;
    font-size: 22px;
  }
}

.portfolio-showcase {
  --portfolio-max: 1404px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8faf9 52%, #f4f7f6 100%);
  padding: 14px 0 108px;
}

.portfolio-showcase-head,
.portfolio-showcase-filter,
.portfolio-showcase-grid {
  width: min(var(--portfolio-max), calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.portfolio-showcase-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-showcase-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 950;
}

.portfolio-showcase-head p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
  word-break: keep-all;
}

.portfolio-showcase .directory-count {
  padding: 0;
  color: var(--ink);
  font-size: 15px;
}

.portfolio-showcase .directory-count strong {
  font-size: 24px;
}

.portfolio-showcase-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #e4e9eb;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-micro);
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.portfolio-showcase .filter-bar {
  gap: 4px;
}

.portfolio-showcase .filter-button {
  min-height: 36px;
  padding: 0 14px;
  border-color: #dde3e5;
  border-radius: 4px;
  color: #343a3c;
  font-size: 13px;
  background: #fff;
}

.portfolio-showcase .filter-button.active {
  background: #1e2224;
  border-color: #1e2224;
  color: var(--accent);
}

.portfolio-total {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.portfolio-total strong {
  color: var(--ink);
  font-size: 19px;
}

.portfolio-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-showcase-card {
  min-width: 0;
  border: 1px solid #e4e9eb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(7, 18, 14, 0.055), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portfolio-showcase-card[hidden] {
  display: none;
}

.portfolio-showcase-card[data-reveal] {
  opacity: 1;
  transform: none;
}

.portfolio-showcase-card:hover {
  transform: translateY(-3px);
  border-color: #c5ced2;
  box-shadow: 0 28px 54px rgba(9, 11, 10, 0.11), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.portfolio-showcase-card a {
  min-height: 100%;
  display: grid;
  grid-template-rows: 430px auto;
}

.portfolio-thumb {
  position: relative;
  min-width: 0;
  height: 430px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 244, 246, 0.88) 100%),
    #f7f9fa;
  border-bottom: 1px solid #eef1f2;
  overflow: hidden;
}

.portfolio-thumb::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(8, 10, 9, 0.06);
  border-radius: 4px;
  pointer-events: none;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  transition: transform 260ms ease;
}

.portfolio-showcase-card:hover .portfolio-thumb img {
  transform: scale(1.025);
}

.thumb-action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(8, 10, 9, 0.08);
  box-shadow: 0 12px 30px rgba(9, 11, 10, 0.16);
}

.thumb-action svg {
  width: 20px;
  height: 20px;
}

.portfolio-card-copy {
  display: grid;
  gap: 7px;
  padding: 20px 16px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
}

.portfolio-card-copy strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  word-break: keep-all;
}

.portfolio-card-copy > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.portfolio-card-copy p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.62;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card-copy p::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 10px;
  background: var(--mode-color, var(--accent));
}

.portfolio-card-copy .work-meta {
  margin-top: 4px;
  display: block;
}

.portfolio-card-copy .work-meta span {
  display: none;
}

.portfolio-card-copy .work-meta span:first-child {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #176dff;
  font-size: 13px;
  font-weight: 800;
}

.portfolio-card-copy .work-meta span:first-child::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px #fff;
  background: currentColor;
}

@media (max-width: 1180px) {
  .works-hero-footer {
    grid-template-columns: 1fr;
  }

  .works-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .works-hero-shell {
    min-height: auto;
  }

  .works-hero-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-hero-nav span:nth-child(2) {
    border-right: 0;
  }

  .works-hero-nav span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .works-hero-strip,
  .works-hero-proof {
    grid-template-columns: 1fr;
  }

  .works-hero-proof div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .works-hero-proof div:last-child {
    border-bottom: 0;
  }

  .theme-info .category-hero,
  .theme-tool .category-hero {
    min-height: auto;
  }

  .theme-info .category-visual {
    min-height: auto;
  }

  .portfolio-showcase-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portfolio-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .portfolio-showcase-card a {
    grid-template-rows: 340px auto;
  }

  .portfolio-thumb {
    height: 340px;
  }
}

@media (max-width: 680px) {
  .works-hero,
  .hero {
    padding-top: 0;
  }

  .works-hero-shell,
  .works-hero-strip,
  .works-hero .next-preview,
  .works-projects-head,
  .works-project-grid {
    width: min(100% - 30px, 1420px);
  }

  .works-hero-title {
    padding: 40px 0;
  }

  .works-hero-title h1 {
    font-size: clamp(44px, 15vw, 72px);
    line-height: 0.96;
  }

  .works-hero-title p {
    font-size: 16px;
    line-height: 1.72;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .works-hero-footer {
    padding-bottom: 20px;
  }

  .works-hero .hero-actions {
    display: grid;
  }

  .works-project-grid {
    grid-template-columns: 1fr;
  }

  .works-project-card img {
    aspect-ratio: 16 / 10;
  }

  .theme-info .category-hero::before {
    left: 0;
    top: 24px;
    font-size: 70px;
  }

  .theme-info .category-system {
    padding: 28px;
  }

  .theme-tool .category-copy h1 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1.02;
  }

  .theme-tool .workflow-console,
  .theme-info .taxonomy-panel {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 14px;
  }

  .portfolio-showcase {
    padding-top: 22px;
  }

  .portfolio-showcase-head,
  .portfolio-showcase-filter,
  .portfolio-showcase-grid {
    width: min(100% - 30px, var(--portfolio-max));
  }

  .portfolio-showcase-head h1 {
    font-size: 34px;
  }

  .portfolio-showcase-head p {
    font-size: 15px;
    line-height: 1.72;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .portfolio-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-showcase-filter {
    display: grid;
    justify-content: stretch;
  }

  .portfolio-total {
    order: -1;
  }

  .portfolio-showcase-card a {
    grid-template-rows: 320px auto;
  }

  .portfolio-thumb {
    height: 320px;
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  [data-reveal] {
    transform: none;
    opacity: 1;
  }
}
