/* =========================================================
   qiangi · job.qiangi.top
   Editorial / technical resume page
   ========================================================= */

:root {
  --paper: #f5f3ec;
  --paper-2: #fbfaf5;
  --card: #fffdf8;
  --ink: #14201d;
  --ink-2: #48564f;
  --ink-3: #5d6a63;
  --line: #d9d4c5;
  --line-soft: #e7e2d4;
  --teal: #0c6e72;
  --teal-deep: #084f52;
  --teal-soft: #d9e9e6;
  --amber: #a85a0e;
  --shadow: 0 18px 50px -24px rgba(20, 32, 29, 0.35);
  --radius: 16px;
  --maxw: 1180px;
  --pad-x: max(24px, calc((100vw - var(--maxw)) / 2));
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Code",
    Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC",
    "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 700px at 82% -8%, rgba(12, 110, 114, 0.1), transparent 65%),
    radial-gradient(900px 620px at -8% 28%, rgba(168, 90, 14, 0.06), transparent 62%),
    linear-gradient(rgba(20, 32, 29, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 29, 0.032) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--teal);
  color: #fff;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul,
dl,
dd,
dt {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

main section[id],
main[id] {
  scroll-margin-top: 76px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 243, 236, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 7px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.brand-text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(20, 32, 29, 0.05);
}

.nav a.is-active {
  color: var(--teal);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn span {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.btn:hover span {
  transform: translate(2px, -2px);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(20, 32, 29, 0.8);
}

.btn-solid:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--card);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-small span {
  font-size: 12px;
}

.btn-large {
  padding: 15px 26px;
  font-size: 15px;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 8vw, 104px) var(--pad-x) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "copy visual"
    "stats stats";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: clamp(48px, 6vw, 76px);
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--teal);
  border-radius: 50%;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.6);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

h1 {
  font-size: clamp(2.45rem, 5.6vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 720;
}

h1 .mark {
  position: relative;
  white-space: nowrap;
  color: var(--teal-deep);
}

.mark-line {
  position: absolute;
  left: -1.5%;
  right: -1.5%;
  bottom: 0.06em;
  height: 0.26em;
  background: var(--teal);
  opacity: 0.16;
  z-index: -1;
  transform: skewX(-8deg);
}

.lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.85;
  color: var(--ink-2);
}

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

/* demo account */

.demo-access {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding: 11px 14px;
  background: rgba(12, 110, 114, 0.055);
  border: 1px dashed rgba(12, 110, 114, 0.38);
  border-radius: 12px;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  white-space: nowrap;
}

.demo-label .pulse {
  width: 6px;
  height: 6px;
}

.demo-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.demo-fields > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.demo-fields dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.demo-fields dd {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.demo-copy {
  margin-left: auto;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid rgba(12, 110, 114, 0.4);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--teal);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.demo-copy:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.demo-copy.is-copied {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.hero-tags li {
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* transform card */

.transform-card {
  grid-area: visual;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.transform-card:hover {
  transform: rotate(0deg) translateY(-3px);
}

.transform-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.transform-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 110, 114, 0.12);
}

.transform-title {
  margin-right: auto;
  color: var(--ink-2);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(12, 110, 114, 0.28);
  border-radius: 999px;
  color: var(--teal);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live .pulse {
  width: 5px;
  height: 5px;
}

.transform-body {
  padding: 18px;
}

.code {
  margin: 0;
  padding: 16px 16px 17px;
  background: #10201d;
  color: #cfded9;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  overflow-x: auto;
  tab-size: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.code code {
  font-family: inherit;
}

.c-key {
  color: #7fd0ca;
}

.c-type {
  color: #e8c477;
}

.c-str {
  color: #e99a6c;
}

.transform-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 12px;
}

.link-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 4px,
    transparent 4px 8px
  );
}

.link-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--teal);
  white-space: nowrap;
}

.mini-er {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entity {
  flex: 1;
  min-width: 0;
  border: 1px solid #b9cfcb;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.entity-sm {
  flex: 0 0 34%;
}

.entity-name {
  padding: 6px 9px;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.entity-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 10px;
  color: #33443f;
  border-top: 1px dashed #d7e3e0;
}

.entity-field i {
  margin-left: auto;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.06em;
  padding: 1px 4px;
  border-radius: 3px;
}

.entity-field .pk {
  color: #fff;
  background: var(--amber);
}

.entity-field .fk {
  color: var(--teal);
  background: var(--teal-soft);
}

.relation {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 42px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
}

.relation i {
  flex: 1;
  height: 1px;
  background: #9db9b5;
}

.transform-card figcaption {
  padding: 0 18px 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

/* stat strip */

.stat-strip {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line-soft);
}

.stat-strip li + li {
  padding-left: 28px;
}

.stat-strip li:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-label {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- generic section ---------- */

.section {
  padding: clamp(72px, 9vw, 112px) var(--pad-x);
  border-top: 1px dashed var(--line);
}

.section-tight {
  padding-top: clamp(56px, 7vw, 88px);
}

.section-head {
  max-width: 880px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.16;
}

.h2-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--ink-2);
}

.section-lead {
  max-width: 46em;
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- project ---------- */

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(36px, 5vw, 56px);
}

.project-meta {
  position: sticky;
  top: 96px;
  align-self: start;
}

.project-meta dl {
  border-top: 1px solid var(--line);
}

.project-meta dl > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.project-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

.project-meta dd {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.project-meta dd a {
  color: var(--teal);
  border-bottom: 1px solid rgba(12, 110, 114, 0.3);
}

.meta-note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--teal);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

.prose p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 16px;
}

.prose .prose-lead {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  padding: 24px;
  background: rgba(251, 250, 245, 0.92);
  transition: background 0.25s ease;
}

.feature:hover {
  background: var(--card);
}

.feature-no {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.feature h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(34px, 4vw, 48px);
}

.shot {
  display: block;
  padding: 0;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 110, 114, 0.45);
  box-shadow: var(--shadow);
}

.shot-wide {
  grid-column: span 2;
}

.shot img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line-soft);
  background: #e9e7df;
}

.shot-wide img {
  aspect-ratio: 1.75 / 1;
}

.shot-cap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.shot-cap b {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.shot-cap span {
  flex: 1;
  font-size: 12px;
  color: var(--ink-3);
}

.shot-cap i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--teal);
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.shot:hover .shot-cap i {
  opacity: 1;
  transform: translateX(2px);
}

/* ---------- architecture ---------- */

.arch {
  margin-top: clamp(34px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px);
  background: #10201d;
  background-image:
    radial-gradient(700px 320px at 80% 0%, rgba(12, 110, 114, 0.28), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  border-radius: 20px;
  color: #eef1e9;
  overflow: hidden;
}

.arch-main {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(127, 208, 202, 0.95);
}

.node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
}

.node-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(127, 208, 202, 0.8);
}

.node strong {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.node small {
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(238, 241, 233, 0.6);
}

.node-front {
  border-color: rgba(127, 208, 202, 0.35);
}

.node-api {
  border-color: rgba(232, 196, 119, 0.3);
}

.node-ai {
  background: rgba(12, 110, 114, 0.22);
  border-color: rgba(127, 208, 202, 0.45);
}

.node-model {
  background: rgba(168, 90, 14, 0.16);
  border-color: rgba(232, 196, 119, 0.28);
}

.arch-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}

.sub-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 241, 233, 0.5);
}

.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.arch-chips span {
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(238, 241, 233, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 60px);
}

.highlight {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.highlight-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.highlight h3 {
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.highlight p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.highlight code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  background: rgba(12, 110, 114, 0.08);
  border-radius: 4px;
  color: var(--teal-deep);
}

/* ---------- usage (dark) ---------- */

.usage {
  background: #10201d;
  background-image:
    radial-gradient(900px 460px at 18% 0%, rgba(12, 110, 114, 0.24), transparent 68%),
    radial-gradient(700px 420px at 100% 100%, rgba(168, 90, 14, 0.14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  border-top: none;
  color: #eef1e9;
}

.usage .eyebrow {
  color: #7fd0ca;
}

.usage .h2-sub {
  color: rgba(238, 241, 233, 0.68);
}

.usage .section-lead {
  color: rgba(238, 241, 233, 0.74);
}

.usage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 4.5vw, 54px);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  overflow: hidden;
}

.usage-stats > div {
  padding: 22px 24px 24px;
  background: #10201d;
}

.usage-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 241, 233, 0.55);
}

.usage-stats dd {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #f7f3e6;
}

.usage-stats .unit {
  font-size: 0.55em;
  letter-spacing: 0;
  color: #7fd0ca;
}

.usage-stats small {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(238, 241, 233, 0.5);
}

.usage-figure {
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: 14px 14px 12px;
  background: #fbfaf5;
  border-radius: 16px;
  color: var(--ink-2);
}

.usage-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.usage-shot img {
  width: 100%;
  border-radius: 8px;
}

.usage-figure figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 11px 6px 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.zoom-hint {
  margin-left: auto;
  color: var(--teal);
}

.usage-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.usage-notes p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(238, 241, 233, 0.72);
}

.usage-notes strong {
  color: #fff;
  font-weight: 650;
  border-bottom: 1px solid rgba(127, 208, 202, 0.5);
}

/* ---------- more work ---------- */

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(34px, 4vw, 48px);
}

.link-card {
  position: relative;
  display: block;
  padding: 28px 30px 26px;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease,
    box-shadow 0.3s ease;
}

.link-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 110, 114, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  background: var(--card);
  border-color: rgba(12, 110, 114, 0.45);
  box-shadow: var(--shadow);
}

.link-card:hover::after {
  opacity: 1;
}

.card-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.card-arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:hover .card-arrow {
  color: var(--teal);
  transform: translate(3px, -3px);
}

.link-card h3 {
  margin-top: 22px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}

.link-card p {
  max-width: 32em;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.card-url {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--teal);
  border-bottom: 1px solid rgba(12, 110, 114, 0.3);
  padding-bottom: 2px;
}

/* ---------- contact ---------- */

.contact {
  padding: clamp(80px, 11vw, 140px) var(--pad-x) clamp(80px, 10vw, 120px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 78% 10%, rgba(12, 110, 114, 0.13), transparent 68%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.5), transparent 55%);
}

.contact-inner {
  max-width: 880px;
}

.contact h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.contact-lead {
  max-width: 36em;
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

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

.contact-alt {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.contact-alt a {
  color: var(--teal);
  border-bottom: 1px solid rgba(12, 110, 114, 0.3);
}

#copy-email.is-copied {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(12, 110, 114, 0.06);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 26px var(--pad-x) 34px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.site-footer a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

/* ---------- lightbox ---------- */

.lightbox {
  width: min(1200px, 94vw);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #0b1312;
  color: #eef1e9;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(7, 11, 10, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-bar p {
  flex: 1;
  font-size: 12px;
  color: rgba(238, 241, 233, 0.72);
}

.lightbox-bar button {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: transparent;
  color: #eef1e9;
  font-size: 12px;
  cursor: pointer;
}

.lightbox-bar button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #0b1312;
}

body.lb-open {
  overflow: hidden;
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "stats";
  }

  .transform-card {
    max-width: 640px;
    transform: none;
  }

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

  .project-meta {
    position: static;
  }

  .project-meta dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
  }

  .arch-main {
    flex-wrap: wrap;
  }

  .node {
    flex: 1 1 30%;
  }

  .arrow {
    display: none;
  }
}

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

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

  .stat-strip li:nth-child(2) {
    border-right: none;
  }

  .stat-strip li:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .stat-strip li:nth-child(3) {
    padding-left: 0;
  }

  .highlights {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .usage-notes {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .shot-wide {
    grid-column: auto;
  }

  .shot img,
  .shot-wide img {
    aspect-ratio: 1.75 / 1;
  }

  .feature-grid,
  .link-cards {
    grid-template-columns: 1fr;
  }

  .node {
    flex: 1 1 45%;
  }

  .usage-figure {
    padding: 8px 8px 6px;
  }

  .site-header {
    gap: 12px;
  }

  .brand-text em {
    display: none;
  }
}

@media (max-width: 520px) {
  .project-meta dl {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip li,
  .stat-strip li + li,
  .stat-strip li:nth-child(3) {
    padding: 16px 0;
    border-right: none;
    border-top: 1px solid var(--line-soft);
  }

  .stat-strip li:first-child {
    border-top: none;
  }

  .usage-stats {
    grid-template-columns: 1fr;
  }

  .node {
    flex: 1 1 100%;
  }

  .shot-cap {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .shot-cap span {
    flex-basis: 100%;
    order: 3;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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