:root {
  color-scheme: dark;
  --bg: #0c0d0f;
  --bg-soft: #111316;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --ink: #f7f7f4;
  --muted: #a3a7ae;
  --faint: #6d737c;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #77f4cf;
  --accent-2: #8fb7ff;
  --danger: #ff6d8d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f5;
  --bg-soft: #ffffff;
  --surface: rgba(14, 17, 20, 0.045);
  --surface-strong: rgba(14, 17, 20, 0.075);
  --ink: #101214;
  --muted: #565d66;
  --faint: #808892;
  --line: rgba(15, 18, 22, 0.13);
  --shadow: 0 28px 90px rgba(50, 57, 66, 0.13);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 8%, rgba(119, 244, 207, 0.08), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(143, 183, 255, 0.055), transparent 24%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 34%, var(--bg));
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 36%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.topbar,
main,
.footer,
.admin-layout,
.admin-lock {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 15, 18, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  padding: 9px;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.76);
}

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  padding: 5px;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 9px 0;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 244, 207, 0.42);
  background: var(--surface-strong);
}

.icon-button svg,
.command svg,
.card-kicker svg,
.metric-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

[data-icon] {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

main {
  padding: 58px 0 54px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 58px;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  content: "devops";
  top: 22px;
  left: -12px;
  color: rgba(255, 255, 255, 0.03);
  font-size: clamp(5.8rem, 17vw, 14rem);
  font-weight: 900;
  line-height: 0.8;
}

.hero::after {
  right: 346px;
  bottom: 132px;
  width: 1px;
  height: 260px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  opacity: 0.58;
}

[data-theme="light"] .hero::before {
  color: rgba(0, 0, 0, 0.035);
}

[data-theme="light"] .hero::after {
  background: linear-gradient(180deg, transparent, rgba(15, 18, 22, 0.14), transparent);
}

.hero-copy,
.hero-orbit,
.hero-float,
.section-head,
.background-minimal,
.identity-panel,
.contact,
.footer,
.system-strip,
.proof-grid,
.capability-grid,
.work-grid,
.blog-list {
  min-width: 0;
}

.hero-copy,
.identity-panel {
  position: relative;
  z-index: 1;
}

.system-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(4rem, 10.6vw, 8.9rem);
  line-height: 0.89;
  font-weight: 860;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.98;
  font-weight: 820;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.outline-text {
  color: color-mix(in srgb, var(--muted) 72%, var(--ink));
  -webkit-text-stroke: 0;
  text-stroke: 0;
  text-shadow:
    0 1px 0 color-mix(in srgb, var(--bg) 82%, transparent),
    1px 0 0 color-mix(in srgb, var(--line) 80%, transparent);
}

[data-theme="light"] .outline-text {
  color: color-mix(in srgb, var(--muted) 72%, #ffffff);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    1px 0 0 rgba(15, 18, 22, 0.16);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.04rem;
  line-height: 1.2;
}

.role {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

.summary {
  max-width: 620px;
  margin-bottom: 28px;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
  font-size: 1.15rem;
  font-weight: 520;
}

.command-row,
.contact-actions,
.section-head.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 790;
  padding: 0 16px;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.command span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.command:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(119, 244, 207, 0.42);
  background: var(--surface-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
}

.command.primary {
  border-color: rgba(119, 244, 207, 0.48);
  background: rgba(119, 244, 207, 0.095);
}

.hero-orbit {
  position: absolute;
  right: 370px;
  top: 182px;
  width: 156px;
  height: 156px;
  pointer-events: none;
  opacity: 0.72;
}

.hero-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  transform: rotate(var(--angle)) scaleX(0.44);
}

.hero-orbit span:nth-child(1) {
  --angle: 0deg;
}

.hero-orbit span:nth-child(2) {
  --angle: 60deg;
}

.hero-orbit span:nth-child(3) {
  --angle: 120deg;
}

.hero-float {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-soft) 58%, transparent);
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  animation: float-soft 7s ease-in-out infinite;
}

.hero-float::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  opacity: 0.34;
}

.hero-float svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-float-a {
  top: 198px;
  right: 418px;
}

.hero-float-b {
  right: 372px;
  bottom: 202px;
  animation-delay: -2s;
}

.hero-float-c {
  right: 498px;
  bottom: 210px;
  animation-delay: -4s;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -9px, 0);
  }
}

.identity-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  align-self: center;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  padding: 12px;
}

.identity-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  filter: grayscale(0.07) contrast(1.03);
}

.identity-panel div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
  align-items: center;
  padding: 0 3px 3px;
}

.identity-panel p,
.identity-panel small {
  grid-column: 2;
  margin: 0;
}

.identity-panel p {
  font-weight: 830;
}

.identity-panel small {
  color: var(--muted);
}

.status-dot {
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(119, 244, 207, 0.11);
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.system-strip div,
.capability,
.work-card,
.admin-side,
.admin-panel,
.editor-card,
.lock-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.system-strip div {
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.system-strip span,
.work-card span,
.post-row > span {
  display: block;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.admin-muted {
  margin-bottom: 0;
  color: var(--muted);
}

.system-strip strong {
  display: block;
  margin-top: 5px;
}

.section {
  padding-top: 104px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head.split {
  justify-content: space-between;
}

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

.background {
  padding-top: 76px;
}

.background-intro {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.background-point {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  padding: 24px 22px;
  transition: background 260ms ease, transform 260ms ease;
}

.background-point + .background-point {
  border-left: 1px solid var(--line);
}

.background-point:hover {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transform: translateY(-2px);
}

.background-point > i {
  grid-row: 1 / span 2;
}

.background-point svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

.background-point strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.background-point span {
  color: var(--muted);
  font-size: 0.94rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 22px;
  box-shadow: none;
  transition: background 260ms ease, transform 260ms ease;
}

.proof-card + .proof-card {
  border-left: 1px solid var(--line);
}

.proof-card:hover {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  transform: translateY(-2px);
}

.metric-icon {
  display: inline-grid;
  margin-bottom: 14px;
  color: var(--accent);
}

.proof-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
}

.proof-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 820;
}

.proof-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.capability {
  min-height: 210px;
  padding: 24px;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.capability:hover {
  transform: translateY(-4px);
  border-color: rgba(119, 244, 207, 0.36);
  background: var(--surface-strong);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 830;
  padding: 6px 10px;
}

.card-kicker svg {
  width: 15px;
  height: 15px;
}

.card-kicker span {
  display: inline;
}

.capability p,
.work-card p,
.post-row em {
  color: var(--muted);
}

.work-link {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 820;
}

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

.work-card {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.08);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(119, 244, 207, 0.38);
  background: var(--surface-strong);
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 46%),
    var(--surface-strong);
  padding: 22px;
}

.work-card div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

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

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 132px 260px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 20px 0;
  overflow: hidden;
  transition: background 260ms ease, padding 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.post-row::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 260ms ease, transform 260ms ease;
}

.post-row strong {
  display: grid;
  gap: 3px;
  font-size: 1.04rem;
}

.post-row small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.post-row em {
  font-style: normal;
}

.post-row b {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  padding: 7px 10px;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.post-row:hover {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  padding-inline: 14px;
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.post-row:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.post-row:hover strong {
  color: var(--accent);
}

.post-row:hover b {
  transform: translateX(2px);
  border-color: rgba(119, 244, 207, 0.38);
  background: rgba(119, 244, 207, 0.08);
}

.post-page {
  max-width: 820px;
  padding: 82px 0 64px;
}

.post-page .command {
  margin-bottom: 34px;
}

.post-page h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.post-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  padding: 6px 10px;
}

.post-page-body {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

body[data-view="post"] main > section:not(.post-page) {
  display: none;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--faint);
  padding: 24px 0 36px;
}

.footer strong,
.footer span {
  display: block;
}

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

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer a {
  color: var(--muted);
  font-weight: 760;
}

.footer a:hover {
  color: var(--accent);
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: transform 240ms ease, color 240ms ease, border-color 240ms ease, background 240ms ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(119, 244, 207, 0.4);
  background: var(--surface-strong);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.hero-copy,
.identity-panel,
.section-head,
.item-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hero-copy.visible,
.identity-panel.visible,
.section-head.visible,
.item-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-lock {
  min-height: calc(100vh - 108px);
  display: grid;
  place-items: center;
  padding: 72px 0;
}

.lock-card {
  width: min(460px, 100%);
  box-shadow: var(--shadow);
  padding: 28px;
}

.lock-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.lock-card label {
  display: grid;
  gap: 8px;
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.lock-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 780;
}

.admin-main {
  padding-top: 42px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 52px;
}

.admin-side {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 8px;
}

.admin-side button {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
  padding: 12px;
}

.admin-side button.active {
  background: var(--surface-strong);
  color: var(--ink);
}

.admin-panel {
  display: none;
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-panel.active {
  display: block;
}

.admin-panel h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

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

.admin-form label,
.data-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
}

.wide {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form textarea,
.data-box textarea,
.api-doc pre,
.api-result code,
.lock-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  outline: 0;
  padding: 12px 13px;
}

[data-theme="light"] .admin-form input,
[data-theme="light"] .admin-form textarea,
[data-theme="light"] .data-box textarea,
[data-theme="light"] .api-doc pre,
[data-theme="light"] .api-result code,
[data-theme="light"] .lock-card input {
  background: rgba(255, 255, 255, 0.72);
}

.admin-form input:focus,
.admin-form textarea:focus,
.data-box textarea:focus,
.lock-card input:focus {
  border-color: rgba(119, 244, 207, 0.64);
  box-shadow: 0 0 0 4px rgba(119, 244, 207, 0.1);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.editor-card {
  padding: 16px;
}

.editor-card.compact {
  box-shadow: none;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.editor-head strong {
  overflow-wrap: anywhere;
}

.danger {
  border-color: rgba(255, 109, 141, 0.45);
  color: var(--danger);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.save-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 820;
}

.data-box {
  display: grid;
  gap: 14px;
}

.image-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.image-editor img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
}

.api-box {
  display: grid;
  gap: 16px;
}

.api-doc,
.api-result {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.api-doc span,
.api-result strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.api-result span {
  color: var(--muted);
}

.api-doc pre,
.api-result code {
  display: block;
  margin: 0;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre;
}

.data-box textarea {
  min-height: 460px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre;
}

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

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  .hero,
  .contact,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-orbit,
  .hero-float {
    display: none;
  }

  .identity-panel {
    max-width: 380px;
  }

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

  .background-minimal {
    grid-template-columns: 1fr;
  }

  .background-point + .background-point {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .proof-card + .proof-card {
    border-left: 0;
  }

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

  .proof-card:nth-child(-n + 2) {
    border-top: 0;
  }

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

  .post-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-side {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .admin-side button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 660px) {
  .topbar,
  main,
  .footer,
  .admin-layout,
  .admin-lock {
    width: min(1160px, calc(100% - 28px));
  }

  .topbar {
    top: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 22px;
    margin-top: 10px;
  }

  .nav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .nav a {
    white-space: nowrap;
  }

  main {
    padding-top: 62px;
  }

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

  .hero::before {
    top: 18px;
    left: -8px;
    font-size: clamp(4.8rem, 26vw, 6.6rem);
  }

  .hero::after {
    display: none;
  }

  .background {
    padding-top: 78px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .summary {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.56;
    font-weight: 430;
    overflow-wrap: anywhere;
  }

  .system-strip,
  .background-minimal,
  .proof-grid,
  .image-editor,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .proof-card:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .proof-card:first-child {
    border-top: 0;
  }

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

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

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

  .work-card img {
    min-height: 210px;
    aspect-ratio: 1 / 0.72;
  }

  .section {
    padding-top: 82px;
  }

  .contact-actions,
  .command-row {
    align-items: stretch;
    flex-direction: column;
  }

  .command {
    width: 100%;
  }

  .admin-panel,
  .lock-card {
    padding: 18px;
  }
}
