@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg: #04050a;
  --text: #e8eaf6;
  --muted: #8e94a6;
  --gold: #e8c46f;
  --gold-soft: rgba(232, 196, 111, 0.16);
  --line: rgba(255, 255, 255, 0.032);
  --panel: rgba(10, 12, 22, 0.82);
  --card-line: rgba(232, 196, 111, 0.16);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  cursor: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(232, 196, 111, 0.07), transparent 26%),
    radial-gradient(circle at 46% 56%, rgba(190, 132, 46, 0.12), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(232, 196, 111, 0.13), transparent 32%),
    radial-gradient(circle at 72% 30%, rgba(255, 226, 146, 0.055), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 38% 48%, rgba(232, 196, 111, 0.10), transparent 28%),
    radial-gradient(circle at 78% 66%, rgba(159, 112, 40, 0.13), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 42%, rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.42) 78%);
  pointer-events: none;
}

a,
button {
  color: inherit;
  cursor: none;
  font: inherit;
}

a { text-decoration: none; }
img { display: block; max-width: 100%; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50px, -50px);
}

.cursor-dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(232, 196, 111, 0.85);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(232, 196, 111, 0.72);
  transition: transform 80ms linear;
}

.site-shell {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.gold-glows {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.gold-glows span {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(232, 196, 111, 0.16);
  filter: blur(90px);
  opacity: 0.48;
}

.gold-glows span:nth-child(1) {
  left: 33%;
  top: 34%;
  width: 420px;
  height: 420px;
  background: rgba(190, 132, 46, 0.16);
}

.gold-glows span:nth-child(2) {
  right: 6%;
  bottom: 11%;
  width: 470px;
  height: 470px;
  background: rgba(232, 196, 111, 0.14);
}

.gold-glows span:nth-child(3) {
  right: 22%;
  top: 18%;
  width: 270px;
  height: 270px;
  background: rgba(255, 226, 146, 0.10);
}

.corner-logo {
  position: fixed;
  z-index: 40;
  top: 24px;
  left: 34px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.corner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(232, 196, 111, 0.28));
}

.language-pill {
  position: fixed;
  z-index: 40;
  top: 28px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(232, 196, 111, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 16, 0.68);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

.language-pill button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.language-pill button:hover,
.language-pill button.active {
  color: var(--gold);
}

.section-dots {
  position: fixed;
  z-index: 50;
  right: 34px;
  top: 50%;
  display: grid;
  gap: 18px;
  transform: translateY(-50%);
}

.section-dots a {
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(232, 234, 246, 0.38);
  border-radius: 50%;
  background: transparent;
}

.section-dots a::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid transparent;
  border-radius: 50%;
}

.section-dots a::after {
  content: attr(data-label);
  position: absolute;
  right: 30px;
  top: 50%;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translate(10px, -50%);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.section-dots a:hover {
  border-color: rgba(232, 196, 111, 0.72);
  background: rgba(232, 196, 111, 0.22);
}

.section-dots a:hover::after {
  color: var(--gold);
}

.section-dots a.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(232, 196, 111, 0.72);
}

.section-dots a.active::before {
  border-color: rgba(232, 196, 111, 0.68);
}

.section-dots a.active::after,
.section-dots a:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.panel {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 150px));
  min-height: 100vh;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 92px 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(36px) scale(0.992);
  filter: blur(9px);
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(.16, 1, .3, 1),
    filter 720ms ease,
    visibility 0ms linear 760ms;
}

.panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0ms;
}

.home-panel {
  width: min(960px, calc(100% - 150px));
  justify-items: center;
  text-align: center;
}

.home-center {
  display: grid;
  justify-items: center;
}

.home-pre,
.kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(62px, 10.2vw, 138px);
  line-height: 0.88;
  background: linear-gradient(105deg, #f3f1ff 0%, #f0d27a 40%, #be842e 74%, #fff0b6 100%);
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 0.98;
}

h3 {
  font-size: 26px;
  line-height: 1;
}

.home-role,
.about-copy p,
.contact-panel p,
.service-grid p,
.modal-desc {
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  font-weight: 400;
}

.home-role {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 19px;
}

.home-role strong {
  color: var(--gold);
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.button,
.work-card button {
  min-width: 148px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 196, 111, 0.44);
  border-radius: 5px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.work-card button:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(232, 196, 111, 0.075);
}

.button:disabled {
  opacity: 0.46;
  pointer-events: none;
}

.scroll-mark {
  margin-top: 68px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

.scroll-mark span {
  display: block;
  width: 1px;
  height: 62px;
  margin: 0 auto 12px;
  background: linear-gradient(var(--gold), transparent);
}

.about-panel {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 86px;
}

.about-photo {
  position: relative;
  width: min(380px, 100%);
  justify-self: end;
}

.about-photo::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 92%;
  height: 92%;
  border: 1px solid rgba(232, 196, 111, 0.28);
  z-index: -1;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 6px;
}

.photo-badge {
  position: absolute;
  left: -28px;
  bottom: 28px;
  padding: 14px 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold), #a46b25);
  color: #070707;
  font-family: "Space Mono", monospace;
}

.photo-badge strong {
  display: block;
  font-size: 20px;
}

.photo-badge small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.about-copy {
  max-width: 660px;
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pill-list span,
.modal-tags span {
  padding: 8px 13px;
  border: 1px solid rgba(232, 196, 111, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 196, 111, 0.04);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 44px;
}

.section-title.centered {
  text-align: center;
}

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

.work-card {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 224px;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.9) contrast(0.94);
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
}

.work-card:hover img {
  transform: scale(1.045);
  opacity: 0.92;
  filter: saturate(1) contrast(1);
}

.work-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 62px 22px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.work-card div p {
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.work-card button {
  position: absolute;
  right: 16px;
  top: 16px;
  min-width: 122px;
  min-height: 38px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, color 180ms ease, background 180ms ease;
}

.work-card:hover button,
.work-card:focus-within button {
  opacity: 1;
  transform: translateY(0);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto 46px;
  width: min(900px, 100%);
}

.stat-row div {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--card-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.stat-row strong {
  display: block;
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
}

.stat-row span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skill-bars {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 21px;
}

.skill-bars div {
  position: relative;
  padding-bottom: 12px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.skill-bars div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.065);
}

.skill-bars b {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  height: 3px;
  background: linear-gradient(90deg, #8d6327, var(--gold), #fff0b7);
}

.skill-bars em {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  font-style: normal;
}

.blog-panel {
  align-content: center;
}

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

.blog-card {
  min-height: 272px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 70% 8%, rgba(232, 196, 111, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.027);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 196, 111, 0.42);
  background:
    radial-gradient(circle at 70% 8%, rgba(232, 196, 111, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.blog-card span,
.blog-card small,
.blog-list-card time,
.blog-list-card small,
.post-index,
.article-meta {
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 34px 0 16px;
  font-size: 34px;
}

.blog-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.58;
}

.blog-card small {
  margin-top: auto;
  color: rgba(232, 196, 111, 0.82);
}

.blog-more {
  width: max-content;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-more strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 196, 111, 0.34);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.blog-html,
.blog-html body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.blog-document {
  cursor: auto;
}

.blog-document a,
.blog-document button {
  cursor: pointer;
}

.blog-page-shell,
.article-shell {
  width: min(1120px, calc(100% - 92px));
  margin: 0 auto;
  padding: 132px 0 88px;
}

.blog-hero {
  max-width: 980px;
  margin-bottom: 46px;
}

.blog-hero h1,
.article-card h1 {
  margin: 0 0 24px;
  font-size: clamp(56px, 7.4vw, 98px);
  line-height: 0.92;
  background: linear-gradient(105deg, #f4f3ff 0%, #f1d27a 42%, #be842e 78%, #fff0b6 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.blog-hero > p,
.blog-about-card p,
.blog-list-card p,
.article-summary,
.article-body p {
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

.blog-hero > p {
  max-width: 820px;
}

.blog-about-card {
  max-width: 850px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(232, 196, 111, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.blog-about-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.blog-about-card p {
  margin-bottom: 0;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border: 1px solid rgba(232, 196, 111, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(232, 196, 111, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.025);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.blog-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 196, 111, 0.38);
  background:
    radial-gradient(circle at 88% 18%, rgba(232, 196, 111, 0.13), transparent 32%),
    rgba(255, 255, 255, 0.036);
}

.post-index {
  color: rgba(232, 196, 111, 0.56);
  font-size: 18px;
}

.blog-list-card h2 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
}

.blog-list-card p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 16px;
}

.blog-list-card small {
  color: rgba(232, 196, 111, 0.82);
  white-space: nowrap;
}

.blog-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.article-shell {
  width: min(940px, calc(100% - 92px));
}

.article-card {
  padding: 38px;
  border: 1px solid rgba(232, 196, 111, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 196, 111, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.026);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: rgba(232, 196, 111, 0.78);
}

.article-summary {
  max-width: 790px;
  margin-bottom: 36px;
  color: #b5bac9;
  font-size: 20px;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -14px 0 34px;
}

.article-tags span {
  padding: 8px 13px;
  border: 1px solid rgba(232, 196, 111, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 196, 111, 0.035);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.article-body {
  display: grid;
  gap: 30px;
}

.article-body h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
}

.article-body p {
  margin-bottom: 14px;
  font-size: 17px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.auth-shell,
.panel-shell {
  width: min(1120px, calc(100% - 92px));
  margin: 0 auto;
  padding: 132px 0 88px;
}

.auth-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.auth-card,
.editor-card,
.preview-card {
  border: 1px solid rgba(232, 196, 111, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 196, 111, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.026);
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
}

.auth-form {
  text-align: left;
}

.auth-card h1,
.panel-header h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.94;
}

.auth-card p,
.panel-header p,
.admin-message {
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.64;
}

.auth-form,
.editor-card {
  display: grid;
  gap: 18px;
}

.auth-form {
  margin-top: 28px;
}

.auth-form label,
.editor-card label {
  display: grid;
  gap: 8px;
}

.auth-form label span,
.editor-card label span {
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-form input,
.editor-card input,
.editor-card select,
.editor-card textarea {
  width: 100%;
  border: 1px solid rgba(232, 196, 111, 0.18);
  border-radius: 7px;
  background: rgba(4, 5, 10, 0.72);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  outline: 0;
}

.auth-form input,
.editor-card input,
.editor-card select {
  min-height: 46px;
  padding: 0 14px;
}

.editor-card select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.editor-card textarea {
  min-height: 110px;
  resize: vertical;
  padding: 13px 14px;
}

.auth-form input:focus,
.editor-card input:focus,
.editor-card select:focus,
.editor-card textarea:focus {
  border-color: rgba(232, 196, 111, 0.48);
  box-shadow: 0 0 0 3px rgba(232, 196, 111, 0.08);
}

.admin-message {
  min-height: 26px;
  margin: 16px 0 0;
  color: #c7cbd8;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.panel-header > div {
  max-width: 780px;
}

.panel-header p {
  max-width: 740px;
  margin-bottom: 0;
}

.panel-logout {
  flex: 0 0 auto;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.editor-card {
  padding: 26px;
}

.form-row {
  display: grid;
  gap: 18px;
}

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

.panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.editor-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.preview-card {
  padding: 22px;
}

.preview-card h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.preview-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.58;
}

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

.mini-post-list a {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 196, 111, 0.12);
}

.mini-post-list a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-post-list time {
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mini-post-list strong {
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

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

.service-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.028);
}

.service-grid article > span {
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.service-grid h3 {
  margin: 38px 0 16px;
}

.service-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.contact-panel {
  justify-items: center;
  text-align: center;
}

.contact-panel > div {
  width: 100%;
  max-width: 860px;
  min-width: 0;
}

.contact-panel p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}

.email {
  display: block;
  max-width: 100%;
  margin-top: 30px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
  background: linear-gradient(105deg, var(--gold), #fff1b8, #a66b24);
  -webkit-background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 3, 7, 0.78);
  opacity: 1;
}

.work-modal[aria-hidden="true"] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(1040px, calc(100vw - 72px));
  max-height: calc(100vh - 70px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(232, 196, 111, 0.22);
  border-radius: 14px;
  background: #090d1b;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.modal-card > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(340px, 36vh);
  min-height: 260px;
  object-fit: cover;
  object-position: center center;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.86;
}

.modal-content {
  position: relative;
  z-index: 2;
  padding: 22px 32px 28px;
}

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

.modal-desc {
  font-size: 15.5px;
  line-height: 1.44;
  margin-bottom: 0;
}

.modal-meta {
  display: grid;
  grid-template-columns: 0.85fr 0.55fr 1.6fr;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(232, 196, 111, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.modal-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.modal-meta strong {
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 13, 27, 0.82);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  touch-action: manipulation;
}

@media (max-width: 1060px) {
  .panel,
  .home-panel {
    width: min(100% - 56px, 920px);
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .about-photo {
    justify-self: start;
  }

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

  .blog-list-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .blog-list-card small {
    grid-column: 2;
  }

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

  .editor-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
  }

  body {
    min-width: 320px;
    cursor: auto;
  }

  a,
  button {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .site-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .section-dots {
    display: none;
  }

  .corner-logo {
    top: 18px;
    left: 18px;
    width: 52px;
    height: 52px;
  }

  .language-pill {
    top: 20px;
    right: 18px;
  }

  body::before {
    background-size: 56px 56px;
  }

  .gold-glows span {
    opacity: 0.34;
  }

  .panel,
  .home-panel {
    position: relative;
    inset: auto;
    width: min(100% - 56px, 920px);
    min-height: auto;
    margin: 0 auto;
    padding: 104px 0 76px;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: none;
  }

  .home-panel {
    min-height: 100svh;
    display: grid;
    align-items: center;
    text-align: center;
  }

  .home-center {
    width: 100%;
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-photo {
    width: min(420px, 100%);
    margin: 0 auto 54px;
    justify-self: center;
  }

  .about-copy {
    max-width: 720px;
    margin: 0 auto;
  }

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

  .work-card button {
    opacity: 1;
    transform: none;
    background: rgba(5, 6, 11, 0.72);
  }

  .contact-panel {
    min-height: auto;
    display: block;
    padding-top: 44px;
  }

  .contact-panel > div {
    max-width: 760px;
  }

  .contact-panel p {
    max-width: min(100%, 620px);
  }

  .email {
    font-size: clamp(38px, 8vw, 64px);
  }
}

@media (max-width: 720px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
  }

  body {
    min-width: 320px;
  }

  body,
  a,
  button {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .corner-logo {
    top: 18px;
    left: 18px;
    width: 48px;
    height: 48px;
  }

  .language-pill {
    top: 20px;
    right: 18px;
  }

  .section-dots {
    display: none;
  }

  .site-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  body::before {
    background-size: 48px 48px;
  }

  .gold-glows span {
    width: 280px;
    height: 280px;
    opacity: 0.34;
  }

  .panel,
  .home-panel {
    position: relative;
    inset: auto;
    width: min(100% - 42px, 680px);
    min-height: auto;
    margin: 0 auto;
    padding: 94px 0 64px;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: none;
  }

  .home-panel {
    min-height: 100svh;
    display: grid;
    align-items: center;
    text-align: center;
  }

  .home-center {
    width: 100%;
  }

  h1 {
    font-size: clamp(58px, 18vw, 82px);
    line-height: 0.9;
  }

  h2 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1;
  }

  h3 {
    font-size: 23px;
  }

  .home-pre,
  .kicker {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .home-role,
  .about-copy p,
  .contact-panel p,
  .service-grid p,
  .modal-desc {
    font-size: 16px;
    line-height: 1.68;
  }

  .actions {
    gap: 12px;
    margin-top: 30px;
  }

  .button,
  .work-card button {
    min-width: 136px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }

  .scroll-mark {
    display: none;
  }

  .about-panel {
    padding-top: 92px;
  }

  .about-photo {
    width: min(100%, 344px);
    margin: 0 auto 48px;
    justify-self: center;
  }

  .about-photo::after {
    right: -12px;
    bottom: -14px;
  }

  .about-photo img {
    aspect-ratio: 0.86;
    object-position: 50% 20%;
  }

  .photo-badge {
    left: -10px;
    bottom: 22px;
    padding: 12px 15px;
  }

  .photo-badge strong {
    font-size: 18px;
  }

  .photo-badge small {
    font-size: 11px;
  }

  .about-copy {
    max-width: none;
  }

  .pill-list {
    margin-top: 24px;
    gap: 8px;
  }

  .pill-list span,
  .modal-tags span {
    padding: 7px 10px;
    font-size: 10px;
  }

  .section-title {
    margin-bottom: 34px;
  }

  .services-panel {
    padding-bottom: 28px;
  }

  .work-grid,
  .blog-grid,
  .service-grid,
  .modal-meta {
    grid-template-columns: 1fr;
  }

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

  .blog-card h3 {
    margin: 28px 0 12px;
    font-size: 30px;
  }

  .blog-card p {
    font-size: 15px;
  }

  .blog-more {
    justify-self: start;
  }

  .work-grid {
    gap: 16px;
  }

  .work-card,
  .work-card img {
    min-height: 214px;
    height: 214px;
  }

  .work-card div {
    padding: 58px 20px 18px;
  }

  .work-card div p {
    font-size: 10px;
    line-height: 1.35;
  }

  .work-card button {
    top: 12px;
    right: 12px;
    min-width: 112px;
    min-height: 34px;
    opacity: 1;
    transform: none;
    background: rgba(5, 6, 11, 0.7);
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
  }

  .stat-row div {
    min-height: 112px;
    padding: 16px 10px;
  }

  .stat-row strong {
    font-size: 48px;
  }

  .stat-row span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .skill-bars {
    gap: 18px;
  }

  .skill-bars div {
    padding-right: 42px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.04em;
  }

  .service-grid {
    gap: 16px;
  }

  .service-grid article {
    min-height: auto;
    padding: 22px;
  }

  .service-grid h3 {
    margin: 28px 0 12px;
  }

  .contact-panel {
    min-height: auto;
    display: block;
    padding-top: 22px;
  }

  .contact-panel > div {
    width: 100%;
    max-width: none;
  }

  .contact-panel p {
    max-width: 100%;
  }

  .email {
    margin-top: 26px;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 0.98;
  }

  .modal-card {
    width: min(100% - 28px, 680px);
    max-height: 88vh;
    overflow: auto;
    grid-template-columns: 1fr;
  }

  .modal-card > img {
    height: min(300px, 36vh);
    min-height: 0;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    background: rgba(9, 13, 27, 0.9);
  }
}

@media (max-width: 720px) {
  .blog-page-shell,
  .article-shell,
  .auth-shell,
  .panel-shell {
    width: min(100% - 42px, 680px);
    padding: 112px 0 66px;
  }

  .blog-hero {
    margin-bottom: 36px;
  }

  .blog-hero h1,
  .article-card h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .blog-hero > p,
  .blog-about-card p,
  .blog-list-card p,
  .article-summary,
  .article-body p {
    font-size: 16px;
    line-height: 1.68;
  }

  .blog-about-card,
  .blog-list-card,
  .article-card {
    padding: 22px;
  }

  .blog-list-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-list-card small {
    grid-column: auto;
    white-space: normal;
  }

  .post-index {
    font-size: 14px;
  }

  .article-meta {
    display: grid;
    gap: 8px;
    font-size: 10px;
  }

  .auth-shell {
    min-height: 100svh;
  }

  .auth-card,
  .editor-card,
  .preview-card {
    padding: 22px;
  }

  .panel-header {
    display: grid;
    gap: 20px;
  }

  .panel-grid,
  .form-row.two,
  .editor-side {
    grid-template-columns: 1fr;
  }

  .panel-actions .button {
    width: 100%;
  }
}
