/*
Theme Name: DSGN Career
Theme URI: https://dsgncareer.com/
Author: Taeha
Description: Design learning archive theme for DSGN Career.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: dsgn-career
*/

@import url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css");

:root {
  --ink: #101316;
  --ink-2: #1c232b;
  --muted: #67707c;
  --line: rgba(16, 19, 22, 0.12);
  --paper: #f7f6f2;
  --white: #ffffff;
  --cyan: #00b9c8;
  --amber: #f2b84b;
  --accent: #00b9c8;
  --green: #2f9d78;
  --shadow: 0 22px 70px rgba(8, 12, 18, 0.18);
  --radius: 8px;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Paperlogy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

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

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100svh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(13, 17, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--white);
  background: rgba(13, 17, 23, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: #0d1117;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.52;
  white-space: nowrap;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 2vw, 34px);
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 600;
}

.desktop-nav a {
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.desktop-nav a:hover {
  opacity: 1;
}

.header-actions,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-action,
.primary-action,
.hero-primary,
.hero-secondary,
.contact-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.ghost-action {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.site-header.is-scrolled .ghost-action {
  border-color: var(--line);
}

.primary-action,
.hero-primary {
  padding: 0 16px;
  color: var(--ink);
  background: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(16, 19, 22, 0.04);
}

.ghost-action svg,
.primary-action svg,
.hero-primary svg,
.hero-secondary svg,
.contact-actions svg,
.track-card svg,
.article-row svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  inset: 106px 18px auto;
  z-index: 49;
  display: none;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 16px;
  border-radius: 6px;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #eef4f4;
}

.hero {
  position: relative;
  --mx: 0;
  --my: 0;
  min-height: 96svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--header-h) + 78px) clamp(22px, 6vw, 92px) 56px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(8, 12, 16, 0.9), rgba(8, 12, 16, 0.4) 54%, rgba(8, 12, 16, 0.72)),
    url("assets/hero-studio.svg");
  background-position:
    center,
    calc(50% + var(--media-x, 0px)) calc(50% + var(--media-y, 0px));
  background-size: cover, 106% auto;
  background-repeat: no-repeat;
  transition: background-position 0.3s ease-out, filter 0.3s ease-out;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    linear-gradient(120deg, rgba(0, 185, 200, 0.2), transparent 38%, rgba(243, 178, 60, 0.18));
}

.hero-content {
  max-width: 980px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-kicker span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(4.1rem, 7vw, 7.9rem);
  line-height: 0.94;
  font-weight: 800;
  word-break: keep-all;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero p {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.04rem, 1.7vw, 1.34rem);
  line-height: 1.75;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 34px;
}

.hero-primary,
.hero-secondary {
  min-height: 54px;
  padding: 0 20px;
}

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.primary-action,
.hero-primary,
.hero-secondary,
.ghost-action,
.contact-actions a {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-action::after,
.hero-primary::after,
.hero-secondary::after,
.ghost-action::after,
.contact-actions a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.42) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 0.62s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.2s ease;
}

.primary-action:hover,
.hero-primary:hover,
.hero-secondary:hover,
.ghost-action:hover,
.contact-actions a:hover {
  transform: translateY(-2px);
}

.primary-action:hover::after,
.hero-primary:hover::after,
.hero-secondary:hover::after,
.ghost-action:hover::after,
.contact-actions a:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.48);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at calc(50% + var(--mx, 0) * 18%) calc(45% + var(--my, 0) * 18%), rgba(0, 185, 200, 0.18), transparent 32%),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 50%, transparent 58%);
  opacity: 0.78;
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.panel-top strong {
  color: var(--cyan);
}

.radar {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 22px auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  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: 50% 50%;
}

.radar::before,
.radar::after,
.radar span {
  content: "";
  position: absolute;
  inset: calc(var(--i, 0) * 15%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.radar::after {
  inset: 0;
  border: 0;
  background: conic-gradient(from 45deg, rgba(0, 185, 200, 0.62), transparent 28%);
  border-radius: 50%;
  animation: sweep 5s linear infinite;
}

.radar-core {
  position: absolute;
  inset: 39%;
  z-index: 1;
  background: var(--amber);
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.hero-metrics {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hero-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.hero-metrics dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.index-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(16, 19, 22, 0.08);
  border-bottom: 1px solid rgba(16, 19, 22, 0.08);
  background: #fbfbf8;
}

.index-strip article,
.index-strip a {
  min-height: 204px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 22px;
  padding: 34px clamp(26px, 3.4vw, 46px);
  color: inherit;
  text-decoration: none;
  border-right: 1px solid rgba(16, 19, 22, 0.08);
}

.index-strip article:last-child,
.index-strip a:last-child {
  border-right: 0;
}

.index-strip span,
.section-heading > span,
.feature-copy > span,
.contact-section > div > span,
.lab-copy > span {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.index-strip span {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(0, 185, 200, 0.08);
  border: 1px solid rgba(0, 185, 200, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.index-strip strong {
  display: block;
  margin: 0;
  font-size: clamp(1.16rem, 1.25vw, 1.42rem);
  font-weight: 700;
  line-height: 1.22;
  word-break: keep-all;
}

.index-strip p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1vw, 1.06rem);
  line-height: 1.64;
  font-weight: 500;
  word-break: keep-all;
}

.section {
  padding: clamp(76px, 9vw, 132px) clamp(22px, 6vw, 92px);
}

.section[id],
.feature-band[id],
.lab-section[id],
.principles-section[id],
.contact-section[id] {
  scroll-margin-top: calc(var(--header-h) + 36px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-heading h2,
.feature-copy h2,
.contact-section h2 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  line-height: 1.04;
  font-weight: 800;
  word-break: keep-all;
}

.title-line {
  display: block;
  color: inherit;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.track-grid {
  counter-reset: track-card;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.track-card {
  counter-increment: track-card;
  position: relative;
  overflow: hidden;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(16, 19, 22, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 185, 200, 0.045), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 246, 242, 0.88)),
    #fbfbf8;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 52px rgba(16, 19, 22, 0.06);
}

.track-card div {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 2.1;
}

.track-card h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.45vw, 1.38rem);
  font-weight: 700;
  line-height: 1.24;
}

.track-card p {
  position: relative;
  z-index: 2;
  margin: 52px 0 0;
  max-width: min(100%, 480px);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.track-card::after {
  content: "0" counter(track-card);
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: rgba(16, 19, 22, 0.08);
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.8;
  font-weight: 800;
  pointer-events: none;
}

.track-card:nth-child(2),
.track-card:nth-child(3) {
  grid-column: 8 / span 5;
  min-height: 246px;
}

.track-card:nth-child(4) {
  grid-column: 1 / span 4;
}

.track-card:nth-child(5) {
  grid-column: 5 / span 4;
}

.track-card:nth-child(6) {
  grid-column: 9 / span 4;
}

.track-card-featured {
  grid-column: 1 / span 7;
  grid-row: span 2;
  min-height: 506px;
  padding: clamp(30px, 3.6vw, 48px);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.94), rgba(5, 8, 10, 0.62) 48%, rgba(5, 8, 10, 0.24)),
    linear-gradient(0deg, rgba(5, 8, 10, 0.25), transparent 50%),
    url("assets/design-foundation-studio.webp")
      center / cover;
}

.track-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  opacity: 0.48;
  pointer-events: none;
}

.track-card-featured p {
  max-width: min(100%, 760px);
  margin-top: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.08vw, 1.12rem);
  line-height: 1.62;
}

.track-card-featured svg {
  color: var(--amber);
}

.track-card-featured::after {
  color: rgba(255, 255, 255, 0.08);
}

.feature-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 720px;
  background: #111417;
  color: var(--white);
}

.feature-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(0, 185, 200, 0.08) 50%, transparent 54%),
    radial-gradient(circle at 58% 38%, rgba(0, 185, 200, 0.16), transparent 22%);
  opacity: 0.72;
}

.lab-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(76px, 9vw, 132px) clamp(22px, 6vw, 92px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 42%),
    #f1f2ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lab-copy h2 {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(2.5rem, 4.8vw, 4.7rem);
  line-height: 1.04;
  font-weight: 800;
  word-break: keep-all;
}

.lab-board {
  counter-reset: lab-step;
  display: grid;
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  background: rgba(16, 19, 22, 0.1);
  border: 1px solid rgba(16, 19, 22, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(23, 31, 39, 0.1);
}

.lab-line {
  counter-increment: lab-step;
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 19, 22, 0.025), transparent 34%),
    rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 0;
}

.lab-line::before {
  content: counter(lab-step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: rgba(16, 19, 22, 0.52);
  background: #f7f6f2;
  border: 1px solid rgba(16, 19, 22, 0.12);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.lab-line strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 3.8vw, 4.6rem);
  line-height: 0.98;
  font-weight: 700;
}

.lab-line span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 500;
}

.lab-line i {
  position: absolute;
  inset: auto 28px 18px 110px;
  height: 1px;
  overflow: hidden;
  background: rgba(16, 19, 22, 0.11);
}

.lab-line i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(16, 19, 22, 0.54), transparent);
  animation: scan-line 3.4s ease-in-out infinite;
}

.lab-line:nth-child(2) i::after {
  animation-delay: 0.55s;
}

.lab-line:nth-child(3) i::after {
  animation-delay: 1.1s;
}

.lab-line:nth-child(4) i::after {
  animation-delay: 1.65s;
}

@keyframes scan-line {
  0% {
    transform: translateX(-120%);
  }

  52%,
  100% {
    transform: translateX(310%);
  }
}

.feature-visual {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(17, 20, 23, 0.3)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18)),
    url("assets/portfolio-process-studio.webp")
      43% center / cover;
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}

.feature-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(44px, 7vw, 92px);
}

.feature-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.feature-copy ul {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.feature-copy li svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.insight-section {
  background: var(--white);
}

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

.article-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 20px;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.24s ease, background 0.24s ease;
}

.article-row span {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
}

.article-row strong {
  font-size: clamp(1.12rem, 2vw, 1.7rem);
  line-height: 1.34;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.article-row svg {
  justify-self: end;
  transition: transform 0.24s ease;
}

.article-row:hover {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(0, 185, 200, 0.07), transparent 52%);
}

.article-row:hover svg {
  transform: translate(3px, -3px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  animation: reveal-in 0.82s cubic-bezier(0.19, 1, 0.22, 1) var(--reveal-delay, 0ms) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding: clamp(68px, 8vw, 110px) clamp(22px, 6vw, 92px);
  background: var(--ink);
  color: var(--white);
}

.principles-section {
  padding: clamp(76px, 9vw, 132px) clamp(22px, 6vw, 92px);
  background: var(--paper);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principles-grid article {
  min-height: 270px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
}

.principles-grid b {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.principles-grid strong {
  display: block;
  margin-top: 58px;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
}

.principles-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.contact-section p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-actions a {
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--white);
}

.contact-actions a:last-child {
  background: var(--cyan);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 34px;
  padding: 46px clamp(22px, 6vw, 92px) 34px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(0, 185, 200, 0.08), transparent 34%),
    #0a0d10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p,
.footer-copy {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-copy {
  grid-column: 1 / -1;
  margin-top: -10px;
}

.subpage {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(0, 185, 200, 0.1), transparent 32%),
    linear-gradient(315deg, rgba(243, 178, 60, 0.14), transparent 35%),
    var(--paper);
}

.content-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 90px) 0;
}

.content-page article {
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(23, 31, 39, 0.1);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.content-page span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.content-page h1 {
  margin: 12px 0 24px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.02;
  font-weight: 800;
  word-break: keep-all;
}

.content-page h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.content-page p,
.content-page li {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-page ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-card strong {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-card a {
  font-size: 1.18rem;
  font-weight: 700;
}

.editorial-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(16, 19, 22, 0.06), transparent 280px),
    radial-gradient(circle at 88% 10%, rgba(0, 185, 200, 0.1), transparent 310px),
    var(--paper);
}

.page-main {
  padding-top: calc(var(--header-h) + 74px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  padding: clamp(54px, 7vw, 98px) clamp(22px, 6vw, 92px) clamp(46px, 6vw, 76px);
}

.page-hero-about {
  grid-template-columns: minmax(0, 1120px);
}

.page-kicker,
.article-meta,
.content-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-kicker span,
.article-meta span,
.content-label span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(0, 185, 200, 0.08);
  border: 1px solid rgba(0, 185, 200, 0.16);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 1040px;
  margin: 18px 0 0;
  font-size: clamp(3.1rem, 7.2vw, 7.6rem);
  line-height: 0.98;
  font-weight: 800;
  word-break: keep-all;
  text-wrap: balance;
}

.page-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.55vw, 1.28rem);
  line-height: 1.78;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.page-hero-meta {
  margin-top: 24px;
}

.page-side-card,
.author-panel,
.toc-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 70px rgba(23, 31, 39, 0.1);
}

.page-side-card {
  padding: 16px;
}

.author-mini {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.author-mini img,
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.author-mini img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: #0d1117;
}

.author-mini strong,
.info-card strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 700;
}

.author-mini p,
.page-side-card p,
.info-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 860px) minmax(220px, 300px);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  padding: 0 clamp(22px, 6vw, 92px) clamp(72px, 9vw, 132px);
}

.page-shell.page-shell-wide {
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
}

.page-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  z-index: 3;
}

.toc-card {
  max-height: calc(100svh - var(--header-h) - 48px);
  padding: 18px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 19, 22, 0.24) transparent;
}

.toc-card::-webkit-scrollbar {
  width: 6px;
}

.toc-card::-webkit-scrollbar-thumb {
  background: rgba(16, 19, 22, 0.22);
  border-radius: 999px;
}

.toc-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
}

.toc-card a {
  position: relative;
  display: block;
  padding: 11px 12px 11px 30px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: clamp(0.86rem, 0.78vw, 0.95rem);
  font-weight: 600;
  line-height: 1.42;
  word-break: keep-all;
  text-wrap: pretty;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.toc-card a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.36;
}

.toc-card a:hover,
.toc-card a.is-active {
  color: var(--ink);
  background: rgba(16, 19, 22, 0.05);
  transform: translateX(3px);
}

.toc-card a:hover::before,
.toc-card a.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 185, 200, 0.12);
  opacity: 1;
}

.prose-card {
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(23, 31, 39, 0.1);
}

.prose-card h2 {
  scroll-margin-top: calc(var(--header-h) + 46px);
  margin: clamp(46px, 6vw, 72px) 0 18px;
  font-size: clamp(1.72rem, 3vw, 2.75rem);
  line-height: 1.16;
  font-weight: 800;
  word-break: keep-all;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card h3 {
  margin: 30px 0 12px;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.35;
}

.prose-card p,
.prose-card li {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
  line-height: 1.88;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.prose-card p {
  margin: 0 0 18px;
}

.prose-card ul,
.prose-card ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 22px;
}

.prose-lead {
  padding: 22px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 185, 200, 0.08), transparent 44%),
    #f4f6f3;
  border: 1px solid rgba(16, 19, 22, 0.09);
  border-radius: var(--radius);
}

.article-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #f7f8f6;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.content-tile,
.article-link-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.content-tile:hover,
.article-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 185, 200, 0.34);
  box-shadow: 0 18px 54px rgba(23, 31, 39, 0.12);
}

.content-tile span,
.article-link-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.content-tile strong,
.article-link-card strong {
  display: block;
  margin-top: 24px;
  font-size: 1.22rem;
  line-height: 1.34;
}

.content-tile p,
.article-link-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.article-page .page-main {
  overflow: visible;
}

.article-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.article-author-card {
  transform: translateY(10px);
}

.article-cover {
  position: relative;
  width: min(100% - clamp(36px, 8vw, 184px), 1540px);
  margin: 0 auto clamp(36px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(16, 19, 22, 0.12);
  border-radius: var(--radius);
  background: #101316;
  box-shadow: 0 28px 90px rgba(23, 31, 39, 0.16);
}

.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 54%, rgba(7, 10, 13, 0.62)),
    linear-gradient(90deg, rgba(0, 185, 200, 0.16), transparent 36%, rgba(242, 184, 75, 0.12));
  opacity: 0.78;
  pointer-events: none;
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  pointer-events: none;
}

.article-cover img {
  width: 100%;
  height: clamp(360px, 48vw, 620px);
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1.01);
}

.article-cover figcaption {
  position: absolute;
  left: clamp(20px, 3vw, 42px);
  right: clamp(20px, 3vw, 42px);
  bottom: clamp(20px, 3vw, 38px);
  z-index: 4;
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.92rem, 1.2vw, 1.06rem);
  line-height: 1.62;
  font-weight: 700;
  word-break: keep-all;
}

.article-shell {
  grid-template-columns: minmax(230px, 310px) minmax(0, 980px);
  justify-content: center;
}

.article-prose {
  position: relative;
}

.article-prose::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ink), rgba(0, 185, 200, 0.7), transparent 82%);
  border-radius: 99px;
  opacity: 0.32;
}

.quality-list {
  padding: 0 !important;
  list-style: none;
}

.workflow-list {
  counter-reset: workflow-step;
  display: grid;
  gap: 12px;
  margin: 20px 0 28px !important;
  padding: 0 !important;
  list-style: none;
}

.workflow-list li {
  counter-increment: workflow-step;
  position: relative;
  min-height: 92px;
  display: grid;
  align-items: center;
  padding: 18px 18px 18px 78px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 185, 200, 0.08), transparent 42%),
    #fbfbf8;
  border: 1px solid rgba(16, 19, 22, 0.1);
  border-radius: 7px;
}

.workflow-list li::before {
  content: counter(workflow-step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-list li::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 78px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 185, 200, 0.52), transparent);
}

.quality-list li {
  position: relative;
  padding: 14px 14px 14px 42px;
  background: #f7f8f6;
  border: 1px solid rgba(16, 19, 22, 0.08);
  border-radius: 7px;
}

.quality-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 23px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 185, 200, 0.12);
}

.article-prose code {
  padding: 0.1em 0.36em;
  color: var(--ink);
  background: rgba(16, 19, 22, 0.06);
  border: 1px solid rgba(16, 19, 22, 0.08);
  border-radius: 5px;
  font-size: 0.92em;
}

.author-comment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  margin: clamp(34px, 5vw, 56px) 0;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 185, 200, 0.24), transparent 28%),
    linear-gradient(135deg, #101316, #191e24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(9, 13, 18, 0.22);
}

.author-comment img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: grayscale(1);
  border-radius: 8px;
}

.author-comment span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.author-comment p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.author-comment a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.reference-list {
  display: grid;
  gap: 10px;
  margin-top: 18px !important;
  padding: 0 !important;
  list-style: none;
}

.reference-list li {
  margin: 0;
}

.reference-list a {
  position: relative;
  display: block;
  padding: 14px 16px 14px 44px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(0, 185, 200, 0.06), transparent), #fbfbf8;
  border: 1px solid rgba(16, 19, 22, 0.1);
  border-radius: 7px;
  font-weight: 800;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.reference-list a::before {
  content: "↗";
  position: absolute;
  left: 16px;
  top: 13px;
  color: var(--accent);
}

.reference-list a:hover {
  transform: translateX(4px);
  border-color: rgba(0, 185, 200, 0.32);
  background: #fff;
}

.related-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.related-heading span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.related-heading strong {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.22;
}

.article-link-card.compact {
  min-height: 190px;
}

.archive-shell,
.category-index {
  padding: 0 clamp(22px, 6vw, 92px) clamp(76px, 9vw, 132px);
}

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

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

.archive-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.4vw, 28px);
  background:
    linear-gradient(135deg, rgba(0, 185, 200, 0.045), transparent 42%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 19, 22, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(16, 19, 22, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.archive-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--accent), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.archive-card span,
.category-block-head span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-card strong {
  display: block;
  margin-top: 26px;
  font-size: clamp(1.12rem, 1.35vw, 1.34rem);
  line-height: 1.34;
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.archive-card p {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.archive-card em {
  color: rgba(16, 19, 22, 0.54);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

.archive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 185, 200, 0.32);
  box-shadow: 0 26px 76px rgba(16, 19, 22, 0.12);
}

.archive-card:hover::before {
  transform: scaleX(1);
}

.category-jump {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px;
  background: rgba(247, 246, 242, 0.76);
  border: 1px solid rgba(16, 19, 22, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

.category-jump a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 19, 22, 0.08);
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-jump a:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.category-block {
  margin-top: clamp(34px, 5vw, 70px);
  scroll-margin-top: calc(var(--header-h) + 96px);
}

.category-block-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 185, 200, 0.16), transparent 44%),
    #101316;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(16, 19, 22, 0.15);
}

.category-block-head svg {
  width: 30px;
  height: 30px;
  color: var(--amber);
}

.category-block-head h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
}

.category-block-head p {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.motion-surface {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 0.28s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.motion-surface > * {
  position: relative;
  z-index: 2;
}

.motion-surface::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 185, 200, 0.58), rgba(242, 184, 75, 0.26), transparent 64%);
  opacity: 0;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.28s ease;
}

.motion-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.42) 48%, transparent 62%),
    linear-gradient(180deg, rgba(0, 185, 200, 0.04), transparent 48%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
  transition: transform 0.72s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.28s ease;
}

.motion-surface:hover::before,
.motion-surface:hover::after {
  opacity: 1;
}

.motion-surface:hover::after {
  transform: translateX(120%);
}

.track-card-featured {
  transition: transform 0.34s cubic-bezier(0.19, 1, 0.22, 1), filter 0.34s ease;
}

.track-card-featured > * {
  position: relative;
  z-index: 2;
}

.track-card-featured:hover {
  transform: translateY(-4px);
  filter: saturate(1.04) contrast(1.03);
}

@media (hover: hover) and (pointer: fine) {
  .motion-surface:hover {
    transform: perspective(900px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) translateY(-5px);
  }
}

.contact-form {
  display: grid;
  gap: 18px;
  margin: 28px 0 8px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(16, 19, 22, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 185, 200, 0.07), transparent 30%),
    #fbfbf8;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form label > span,
.choice-field legend {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 19, 22, 0.14);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-form textarea {
  min-height: 168px;
  padding: 15px;
  resize: vertical;
  line-height: 1.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 185, 200, 0.68);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 185, 200, 0.1);
  transform: translateY(-1px);
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin: 0 0 9px;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-grid label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 19, 22, 0.14);
  border-radius: 7px;
  font-size: 0.93rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.choice-grid label:hover span,
.choice-grid input:focus-visible + span {
  border-color: rgba(0, 185, 200, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 185, 200, 0.08);
}

.choice-grid input:checked + span {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(0, 185, 200, 0.14), rgba(242, 184, 75, 0.1));
  border-color: rgba(0, 185, 200, 0.54);
  box-shadow: inset 0 0 0 1px rgba(0, 185, 200, 0.18);
}

.form-consent {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  padding: 2px 0 0;
}

.form-consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.form-consent span {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
}

.form-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-footer button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0 18px;
  color: var(--ink);
  background: var(--amber);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(242, 184, 75, 0.22);
}

.form-footer svg {
  width: 18px;
  height: 18px;
}

.contact-form.is-complete {
  border-color: rgba(47, 157, 120, 0.36);
  box-shadow: 0 18px 52px rgba(47, 157, 120, 0.12);
}

.author-panel {
  overflow: hidden;
}

.author-photo {
  height: 360px;
  background: #111417;
}

.author-panel-body {
  padding: 22px;
}

.author-panel-body dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.author-panel-body div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.author-panel-body dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.author-panel-body dd {
  margin: 0;
  font-weight: 700;
}

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    align-self: auto;
    min-height: 0;
  }

  .radar {
    max-width: 240px;
  }

  .index-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-strip article:nth-child(2n),
  .index-strip a:nth-child(2n) {
    border-right: 0;
  }

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

  .track-card,
  .track-card:nth-child(2),
  .track-card:nth-child(3),
  .track-card:nth-child(4),
  .track-card:nth-child(5),
  .track-card:nth-child(6) {
    grid-column: auto;
    min-height: 220px;
  }

  .track-card-featured {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .track-card:nth-child(2n),
  .track-card:nth-child(3n),
  .track-card:nth-last-child(-n + 2),
  .track-card:nth-last-child(-n + 3) {
    border: 0;
  }

  .feature-band,
  .contact-section,
  .lab-section {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .page-shell,
  .page-shell.page-shell-wide,
  .article-hero,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .page-toc {
    position: static;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    inset: 10px 10px auto;
    padding: 0 10px 0 12px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .ghost-action,
  .primary-action {
    display: none;
  }

  .mobile-nav {
    inset: 84px 10px auto;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding: 136px 18px 54px;
    background: #050607;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, #111518 0%, #080a0b 34%, #050607 100%);
    background-position: center;
    background-size: cover;
  }

  .hero-shade {
    background:
      radial-gradient(circle at 12% 18%, rgba(0, 185, 200, 0.12), transparent 28%),
      radial-gradient(circle at 88% 36%, rgba(243, 178, 60, 0.1), transparent 26%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
  }

  .hero-kicker {
    display: none;
  }

  .hero h1 {
    max-width: 324px;
    font-size: clamp(2.72rem, 12.2vw, 3.55rem);
    line-height: 1;
  }

  .hero p {
    max-width: 336px;
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .hero p br {
    display: none;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .hero-primary,
  .hero-secondary {
    width: 100%;
    min-height: 56px;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 0;
    margin-top: 2px;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .hero-panel::before {
    opacity: 0.42;
  }

  .panel-top {
    grid-column: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 0.76rem;
  }

  .panel-top span {
    color: rgba(255, 255, 255, 0.62);
  }

  .radar {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 104px;
    margin: 0;
  }

  .radar-core {
    border-width: 5px;
  }

  .hero-metrics {
    grid-column: 1;
    gap: 0;
  }

  .hero-metrics div {
    padding: 7px 0 0;
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .hero-metrics div:not(:first-child) {
    display: none;
  }

  .hero-metrics dt {
    font-size: 0.7rem;
  }

  .hero-metrics dd {
    font-size: 0.92rem;
  }

  .index-strip,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .index-strip article,
  .index-strip a,
  .index-strip article:nth-child(2n),
  .index-strip a:nth-child(2n),
  .track-card,
  .track-card:nth-child(2n),
  .track-card:nth-child(3n),
  .track-card:nth-last-child(-n + 2),
  .track-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 0;
  }

  .index-strip article,
  .index-strip a {
    min-height: 164px;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
    padding: 28px 18px;
  }

  .index-strip span {
    width: 46px;
    height: 46px;
    font-size: 0.78rem;
  }

  .index-strip article:last-child,
  .index-strip a:last-child,
  .track-card:last-child {
    border-bottom: 0;
  }

  .track-card {
    min-height: 190px;
  }

  .track-card-featured {
    min-height: 330px;
  }

  .track-card p {
    margin-top: 40px;
  }

  .track-card::after {
    right: 18px;
    bottom: 18px;
    font-size: 3.6rem;
  }

  .section {
    padding: 66px 18px;
  }

  .section-heading h2,
  .feature-copy h2,
  .contact-section h2 {
    font-size: clamp(2.15rem, 9.8vw, 3rem);
    line-height: 1.08;
  }

  .feature-band {
    min-height: 0;
  }

  .feature-visual {
    min-height: 380px;
  }

  .feature-copy {
    padding: 52px 18px;
  }

  .lab-section {
    gap: 28px;
    padding: 62px 18px 72px;
  }

  .lab-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .lab-line {
    min-height: 154px;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 14px;
    padding: 17px;
    border: 1px solid rgba(16, 19, 22, 0.1);
    border-radius: 18px;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 245, 241, 0.94)),
      #fff;
    box-shadow: 0 18px 36px rgba(23, 31, 39, 0.08);
    opacity: 1;
    transform: none;
  }

  .lab-line.reveal,
  .lab-line.reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .lab-line::before {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.72rem;
    color: rgba(16, 19, 22, 0.56);
    background: rgba(255, 255, 255, 0.74);
  }

  .lab-line strong {
    font-size: clamp(1.56rem, 7vw, 1.96rem);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .lab-line span {
    color: rgba(16, 19, 22, 0.58);
    font-size: 0.95rem;
    font-weight: 700;
  }

  .lab-line i {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 4px;
  }

  .lab-line i::after {
    width: 42%;
  }

  .article-row {
    grid-template-columns: 1fr 28px;
    gap: 12px;
    min-height: 138px;
    padding: 20px 0;
  }

  .article-row span {
    grid-column: 1 / -1;
  }

  .contact-section {
    padding: 62px 18px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .page-main {
    padding-top: calc(var(--header-h) + 42px);
  }

  .page-hero {
    padding: 46px 18px 34px;
  }

  .page-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .page-shell {
    padding: 0 18px 66px;
    gap: 18px;
  }

  .article-cover {
    width: calc(100% - 36px);
    margin-bottom: 28px;
  }

  .article-cover img {
    height: 330px;
  }

  .article-cover::after {
    inset: 10px;
  }

  .article-cover figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 0.88rem;
  }

  .prose-card {
    padding: 24px 18px;
  }

  .prose-card h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

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

  .archive-shell,
  .category-index {
    padding: 0 18px 66px;
  }

  .archive-grid,
  .archive-grid.compact-grid {
    grid-template-columns: 1fr;
  }

  .archive-card {
    min-height: 210px;
  }

  .category-jump {
    position: static;
  }

  .category-block-head {
    grid-template-columns: 1fr;
  }

  .author-comment {
    grid-template-columns: 1fr;
  }

  .author-comment img {
    width: 60px;
    height: 60px;
  }

  .related-heading {
    display: grid;
    align-items: start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    gap: 16px;
    padding: 18px;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 52px;
    padding-inline: 14px;
    font-size: 0.98rem;
  }

  .contact-form textarea {
    min-height: 220px;
    padding: 14px;
  }

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

  .choice-grid span {
    min-height: 48px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .form-consent {
    gap: 8px !important;
  }

  .form-consent span {
    font-size: 0.82rem !important;
    letter-spacing: -0.01em;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer button {
    width: 100%;
  }

  .author-photo {
    height: 300px;
  }

  .author-mini {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .author-mini img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.prose-card .wp-block-image,
.prose-card figure {
  margin: 34px 0;
}

.prose-card .wp-block-image img,
.prose-card > img,
.prose-card figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 19, 22, 0.1);
}

.prose-card figcaption,
.wp-caption-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.prose-card blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  color: var(--ink);
  background: #f7f8f6;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.prose-card table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.96rem;
}

.prose-card th,
.prose-card td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose-card th {
  color: var(--ink);
  background: #f4f6f3;
  font-weight: 800;
}

.prose-card pre {
  margin: 28px 0;
  padding: 18px;
  overflow: auto;
  color: #f7f8f6;
  background: var(--ink);
  border-radius: var(--radius);
  line-height: 1.7;
}

.pagination-nav {
  margin-top: 36px;
}

.pagination-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.pagination-nav a,
.pagination-nav span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.pagination-nav .current {
  color: var(--white);
  background: var(--ink);
}
