:root {
  --bg: #070b12;
  --bg-soft: #0e1624;
  --panel: #121b2b;
  --panel-soft: #1b2940;
  --text: #f4f7fb;
  --muted: #aab7c8;
  --accent: #89e6ff;
  --accent-soft: #c4f5ff;
  --border: #26364f;
  --shadow: #000000;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34rem),
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent-soft) 14%, transparent), transparent 28rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: -2;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.background-orb {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .2;
  pointer-events: none;
  z-index: -1;
}
.orb-one { background: var(--accent); top: 7rem; left: -7rem; }
.orb-two { background: var(--accent-soft); bottom: -8rem; right: -6rem; }

.site-header {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: .75rem .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 1rem;
  z-index: 20;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px color-mix(in srgb, var(--shadow) 30%, transparent);
}
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 30%, var(--panel)));
  color: #071018;
  font-weight: 900;
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand strong { display: block; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a {
  color: var(--muted);
  padding: .7rem .95rem;
  border-radius: 999px;
  transition: .2s ease;
}
.main-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-toggle { display: none; border: 0; color: var(--text); background: transparent; font-size: 1.5rem; }

.section { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 6rem 0; }
.hero {
  min-height: calc(100vh - 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  align-items: center;
  gap: 2.2rem;
  padding-top: 3rem;
}
.eyebrow { color: var(--accent); font-weight: 850; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.075em; margin-bottom: 1.25rem; max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .55rem; }
p { color: var(--muted); line-height: 1.75; }
.hero-text { font-size: 1.1rem; max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid var(--border);
  transition: .2s ease;
}
.button.primary { background: var(--accent); color: #061018; border-color: transparent; box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 26%, transparent); }
.button.ghost { background: color-mix(in srgb, var(--panel) 72%, transparent); color: var(--text); }
.button.discord { background: #5865f2; color: white; border-color: color-mix(in srgb, #5865f2 70%, white); box-shadow: 0 16px 40px rgba(88,101,242,.22); }
.button:hover { transform: translateY(-2px); }
.hidden { display: none !important; }
.hero-mini-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-mini-stats span { color: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 999px; padding: .45rem .7rem; font-weight: 800; font-size: .86rem; }

.hero-showcase {
  min-height: 39rem;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 18rem),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 70%, transparent), color-mix(in srgb, var(--panel) 96%, transparent));
  box-shadow: 0 30px 90px color-mix(in srgb, var(--shadow) 42%, transparent);
}
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none;
}
.showcase-glow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(70px);
  opacity: .18;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}
.hero-avatar {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.4rem;
  background-size: cover;
  background-position: center;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--shadow) 34%, transparent);
  z-index: 3;
}
.hero-model {
  position: absolute;
  width: min(105%, 42rem);
  max-width: none;
  left: 50%;
  bottom: -1.6rem;
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
  z-index: 2;
}
.showcase-card {
  position: absolute;
  z-index: 4;
  width: min(15rem, calc(100% - 2rem));
  padding: .9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 1.2rem;
  background: color-mix(in srgb, var(--bg) 64%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--shadow) 35%, transparent);
}
.showcase-card strong { display: block; color: var(--text); margin-bottom: .25rem; }
.showcase-card span { display: block; color: var(--muted); font-size: .88rem; }
.top-card { right: 1.4rem; top: 1.4rem; }
.bottom-card { left: 1.4rem; bottom: 1.4rem; }

.section-heading { max-width: 48rem; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.text-panel,
.info-card,
.process-card,
.contact-panel,
.focus-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--shadow) 24%, transparent);
}
.text-panel p:last-child,
.info-card p:last-child,
.process-card p:last-child,
.focus-card p:last-child { margin-bottom: 0; }

.focus-section { padding-top: 4rem; }
.focus-grid,
.info-grid,
.portfolio-grid,
.process-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.focus-grid { grid-template-columns: repeat(3, 1fr); }
.focus-card { min-height: 15rem; position: relative; overflow: hidden; }
.focus-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -35% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  filter: blur(34px);
}
.focus-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: color-mix(in srgb, var(--accent) 16%, transparent); margin-bottom: 1rem; font-size: 1.3rem; }
.featured-card { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel)); }
.info-grid { grid-template-columns: repeat(3, 1fr); }
.info-card span { font-size: 1.8rem; display: block; margin-bottom: .9rem; }

.filter-row { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.filter-button { border: 1px solid var(--border); color: var(--muted); background: color-mix(in srgb, var(--panel) 80%, transparent); border-radius: 999px; padding: .7rem .95rem; cursor: pointer; font: inherit; font-weight: 800; }
.filter-button.active,
.filter-button:hover { background: var(--accent); color: #061018; border-color: transparent; }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.portfolio-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--shadow) 24%, transparent);
}
.portfolio-image {
  height: 17rem;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 9rem), linear-gradient(135deg, var(--panel-soft), var(--bg-soft));
  background-size: cover;
  background-position: center;
  position: relative;
  user-select: none;
}
.portfolio-image::after {
  content: "Rakku Photography";
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  padding: .35rem .5rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.portfolio-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.portfolio-body p { margin-bottom: .9rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.meta-row span { color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 999px; padding: .35rem .55rem; font-size: .8rem; }

.process-grid { grid-template-columns: repeat(4, 1fr); }
.process-card strong { color: var(--accent); font-size: 1.8rem; }
.contact-section { padding-bottom: 4rem; }
.contact-panel { text-align: center; max-width: 50rem; margin-inline: auto; padding: 2rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.4rem; }
.social-links a { border: 1px solid var(--border); background: color-mix(in srgb, var(--panel-soft) 86%, transparent); border-radius: 999px; padding: .75rem 1rem; color: var(--text); font-weight: 800; transition: .2s ease; }
.social-links a:hover { background: var(--accent); color: #061018; border-color: transparent; transform: translateY(-2px); }
.empty-links { color: var(--muted); }
.site-footer { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto 2rem; border-top: 1px solid var(--border); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.site-footer a { color: var(--accent); }
.reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + .6rem); left: 0; right: 0; padding: .8rem; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 1.5rem; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-showcase { min-height: 34rem; }
  .focus-grid, .info-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 4rem 0; }
  .site-header { border-radius: 1.5rem; align-items: flex-start; }
  .brand small { max-width: 12rem; }
  .focus-grid, .info-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  h1 { font-size: 3.1rem; }
  .hero-showcase { min-height: 30rem; }
  .hero-model { width: 120%; bottom: -1rem; }
  .showcase-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: .8rem; width: auto; }
  .bottom-card { margin-top: 23rem; }
  .top-card { display: none; }
}

/* Stronger public copy protection; dashboard remains unaffected. */
body.copy-lock-text,
body.copy-lock-text *:not(input):not(textarea):not([contenteditable="true"]) {
  -webkit-user-select: none;
  user-select: none;
}
body.copy-lock-text ::selection { background: transparent; color: inherit; }
body.copy-lock-media img,
body.copy-lock-media .portfolio-image,
body.copy-lock-media .hero-model,
body.copy-lock-media .hero-avatar {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* Reworked footer */
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 2rem;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: calc(var(--radius) + 8px);
  padding: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 22rem),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--bg-soft) 88%, transparent));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--shadow) 28%, transparent);
  color: var(--muted);
}
.footer-inner { padding: 1.5rem; }
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.footer-logo {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: var(--panel-soft);
  flex: 0 0 auto;
  box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--accent) 9%, transparent);
}
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand-block strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.footer-brand-block p { margin: .25rem 0 0; }
.footer-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
}
.footer-link-grid h3 {
  color: var(--text);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.footer-link-grid a,
.footer-link-button,
.footer-socials a {
  display: block;
  width: fit-content;
  color: var(--muted);
  margin: .45rem 0;
  transition: .2s ease;
}
.footer-link-grid a:hover,
.footer-link-button:hover,
.footer-socials a:hover {
  color: var(--accent);
  transform: translateX(2px);
}
.footer-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.impressum-box {
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
  background: color-mix(in srgb, var(--bg) 38%, transparent);
  border-radius: 1.4rem;
  padding: 1rem;
  margin-bottom: 1rem;
  white-space: pre-line;
}
.impressum-box h3 { margin: 0 0 .45rem; color: var(--text); }
.impressum-box p { margin: 0; color: var(--muted); }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, transparent);
  border-radius: 1.05rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(.8rem);
  transition: .2s ease;
  box-shadow: 0 18px 45px color-mix(in srgb, var(--shadow) 35%, transparent);
  backdrop-filter: blur(12px);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.scroll-top:hover {
  background: var(--accent);
  color: #061018;
  border-color: transparent;
  transform: translateY(-2px);
}

@media (max-width: 780px) {
  .footer-link-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* v3 hero: closer to the earlier Rakku profile-style hero, with Discord button visible. */
.hero {
  grid-template-columns: minmax(0, .98fr) minmax(21rem, .82fr);
  gap: 3.2rem;
}
.hero .eyebrow {
  margin-bottom: 1.05rem;
}
.hero h1 {
  font-size: clamp(4.6rem, 10vw, 8.8rem);
  max-width: 8ch;
  letter-spacing: -.095em;
  line-height: .86;
  margin-bottom: 1.15rem;
}
.hero-text {
  max-width: 42rem;
  font-size: 1.08rem;
}
.hero-actions {
  gap: .75rem;
}
.button.discord::before {
  content: "💬";
  margin-right: .45rem;
}
.hero-profile-showcase {
  min-height: 34.5rem;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 15rem),
    linear-gradient(160deg, color-mix(in srgb, var(--panel-soft) 82%, transparent), color-mix(in srgb, var(--panel) 92%, transparent));
}
.hero-profile-showcase::before {
  inset: .9rem;
}
.hero-card-glass {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 5;
  padding: 1.05rem;
  border: 1px solid color-mix(in srgb, var(--accent) 23%, var(--border));
  border-radius: 1.45rem;
  background: color-mix(in srgb, var(--bg) 54%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow) 28%, transparent);
}
.hero-card-glass p {
  margin-bottom: .9rem;
  font-size: .94rem;
  line-height: 1.6;
}
.hero-card-topline {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .85rem;
}
.hero-card-topline .hero-avatar {
  position: static;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.1rem;
  flex: 0 0 auto;
}
.card-label {
  margin: 0 0 .15rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .68rem;
}
.hero-card-glass h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -.035em;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}
.mini-stats span {
  display: block;
  min-height: 4.2rem;
  padding: .65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 19%, var(--border));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}
.mini-stats strong {
  display: block;
  color: var(--text);
  font-size: .86rem;
  margin-bottom: .2rem;
}
.hero-profile-showcase .hero-model {
  width: min(105%, 34rem);
  left: 55%;
  bottom: -2rem;
  z-index: 3;
}
.hero-profile-showcase .showcase-glow {
  top: 58%;
  opacity: .2;
}

@media (max-width: 980px) {
  .hero {
    gap: 2rem;
  }
  .hero h1 {
    font-size: clamp(4rem, 16vw, 7rem);
  }
  .hero-profile-showcase {
    min-height: 34rem;
    max-width: 34rem;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 4rem;
  }
  .hero-profile-showcase {
    min-height: 35rem;
  }
  .hero-profile-showcase .hero-model {
    width: 126%;
    left: 56%;
    bottom: -1.5rem;
  }
  .hero-card-glass {
    left: .85rem;
    right: .85rem;
    top: .85rem;
    padding: .85rem;
  }
  .mini-stats {
    grid-template-columns: 1fr;
  }
  .mini-stats span {
    min-height: auto;
  }
}

/* v4 hero: wide integrated hero panel with side portrait, model contained inside the hero area. */
.hero.section {
  width: min(1360px, calc(100% - 2rem));
  min-height: calc(100vh - 7.5rem);
  margin-top: 4.5rem;
  margin-bottom: 1.5rem;
  padding: clamp(2.1rem, 5vw, 4.8rem);
  grid-template-columns: minmax(0, .98fr) minmax(22rem, .92fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: clamp(1.8rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 86% 52%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 21rem),
    radial-gradient(circle at 11% 18%, color-mix(in srgb, var(--accent-soft) 11%, transparent), transparent 24rem),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 42%, transparent), color-mix(in srgb, var(--bg) 94%, transparent) 48%, color-mix(in srgb, var(--panel-soft) 32%, transparent));
  box-shadow: 0 34px 120px color-mix(in srgb, var(--shadow) 42%, transparent);
}

.hero.section::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(clamp(1.8rem, 3vw, 3rem) - .65rem);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  pointer-events: none;
  z-index: -1;
}

.hero.section::after {
  content: "";
  position: absolute;
  width: 38rem;
  height: 38rem;
  right: -10rem;
  bottom: -14rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(70px);
  pointer-events: none;
  z-index: -2;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 44rem;
}

.hero h1 {
  font-size: clamp(5.5rem, 11vw, 10rem);
  max-width: 8ch;
  margin-bottom: 1.1rem;
}

.hero-text {
  max-width: 43rem;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions {
  margin-top: 2.2rem;
}

.hero-profile-showcase {
  align-self: stretch;
  min-height: clamp(35rem, 51vw, 46rem);
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 2rem;
  background: transparent;
  box-shadow: none;
}

.hero-profile-showcase::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 60%, transparent), color-mix(in srgb, var(--panel) 86%, transparent)),
    radial-gradient(circle at 64% 55%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 18rem);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  backdrop-filter: blur(12px);
}

.hero-profile-showcase .showcase-glow {
  width: 30rem;
  height: 30rem;
  top: 58%;
  left: 66%;
  opacity: .24;
}

.hero-card-glass {
  left: 1.25rem;
  right: auto;
  top: 1.25rem;
  width: min(23rem, calc(100% - 2.5rem));
  padding: 1rem;
  z-index: 8;
  border-radius: 1.35rem;
}

.hero-card-glass p {
  display: none;
}

.hero-card-topline {
  margin-bottom: .85rem;
}

.hero-card-glass h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

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

.mini-stats span {
  min-height: 3.55rem;
  padding: .7rem .75rem;
  background: color-mix(in srgb, var(--bg) 48%, transparent);
}

.hero-profile-showcase .hero-model {
  height: min(94%, 43rem);
  width: auto;
  max-width: none;
  left: auto;
  right: clamp(-2.2rem, -3vw, -.8rem);
  bottom: 0;
  transform: none;
  z-index: 5;
  filter: drop-shadow(-18px 32px 44px rgba(0,0,0,.48));
}

@media (max-width: 1100px) {
  .hero.section {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    margin-top: 2.5rem;
  }

  .hero-content {
    max-width: 52rem;
  }

  .hero-profile-showcase {
    min-height: 36rem;
  }

  .hero-profile-showcase .hero-model {
    height: 88%;
    right: 50%;
    transform: translateX(54%);
  }

  .hero-card-glass {
    width: min(24rem, calc(100% - 2rem));
    left: 1rem;
    top: 1rem;
  }
}

@media (max-width: 620px) {
  .hero.section {
    width: min(100% - 1rem, 1360px);
    padding: 1.15rem;
    border-radius: 1.55rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 24vw, 5.6rem);
  }

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

  .hero-profile-showcase {
    min-height: 31rem;
    border-radius: 1.25rem;
  }

  .hero-card-glass {
    left: .75rem;
    right: .75rem;
    top: .75rem;
    width: auto;
  }

  .hero-card-topline .hero-avatar {
    width: 3.7rem;
    height: 3.7rem;
  }

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

  .mini-stats span {
    min-height: auto;
  }

  .hero-profile-showcase .hero-model {
    height: 76%;
    right: 50%;
    bottom: 0;
    transform: translateX(55%);
  }
}

/* v5 hero fix: contained side model, no broken overlap, less empty space. */
.hero.section {
  width: min(1280px, calc(100% - 2rem));
  min-height: clamp(35rem, 72vh, 46rem);
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  padding: clamp(2rem, 4vw, 4.35rem);
  grid-template-columns: minmax(0, 1fr) minmax(22rem, .78fr);
  align-items: stretch;
  gap: clamp(1.8rem, 4.5vw, 4.8rem);
  overflow: hidden;
}

.hero-content {
  align-self: center;
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(4.8rem, 9vw, 8.7rem);
  max-width: 8ch;
  margin-bottom: 1.15rem;
}

.hero-text {
  max-width: 43rem;
}

.hero-profile-showcase {
  align-self: stretch;
  min-height: 0;
  height: auto;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 54%, color-mix(in srgb, var(--accent) 23%, transparent), transparent 16rem),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 72%, transparent), color-mix(in srgb, var(--panel) 96%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), 0 24px 70px color-mix(in srgb, var(--shadow) 28%, transparent);
}

.hero-profile-showcase::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg) 12%, transparent), transparent 58%);
  pointer-events: none;
  z-index: 1;
}

.hero-profile-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, color-mix(in srgb, white 5%, transparent) 38%, transparent 64%);
  pointer-events: none;
  z-index: 2;
}

.hero-profile-showcase .showcase-glow {
  width: 24rem;
  height: 24rem;
  left: 67%;
  top: 64%;
  opacity: .22;
  z-index: 1;
}

.hero-card-glass {
  top: 1.35rem;
  left: 1.35rem;
  right: auto;
  width: min(21rem, calc(100% - 2.7rem));
  padding: 1rem;
  border-radius: 1.35rem;
  z-index: 7;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}

.hero-card-glass p {
  display: block;
  margin: .65rem 0 .9rem;
  font-size: .88rem;
  line-height: 1.48;
}

.hero-card-topline {
  margin-bottom: .3rem;
}

.hero-card-topline .hero-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}

.hero-card-glass h2 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.mini-stats span {
  min-height: 3.15rem;
  padding: .58rem .65rem;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.hero-profile-showcase .hero-model {
  height: min(87%, 37.5rem);
  width: auto;
  max-width: none;
  left: auto;
  right: clamp(.75rem, 2.4vw, 2.4rem);
  bottom: 0;
  transform: none;
  object-fit: contain;
  z-index: 5;
  filter: drop-shadow(-16px 28px 42px rgba(0,0,0,.46));
}

@media (max-width: 1100px) {
  .hero.section {
    width: min(1180px, calc(100% - 2rem));
    min-height: auto;
    grid-template-columns: 1fr;
    padding: clamp(1.6rem, 5vw, 3rem);
    margin-top: 2.5rem;
  }

  .hero-content {
    max-width: 52rem;
  }

  .hero-profile-showcase {
    min-height: 34rem;
  }

  .hero-profile-showcase .hero-model {
    height: 84%;
    right: clamp(1rem, 8vw, 5rem);
    bottom: 0;
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero.section {
    width: min(100% - 1rem, 1180px);
    padding: 1.15rem;
    border-radius: 1.55rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 23vw, 5.7rem);
  }

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

  .hero-profile-showcase {
    min-height: 32rem;
    border-radius: 1.25rem;
  }

  .hero-card-glass {
    left: .8rem;
    right: .8rem;
    top: .8rem;
    width: auto;
  }

  .hero-card-glass p {
    display: none;
  }

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

  .mini-stats span {
    min-height: auto;
  }

  .hero-profile-showcase .hero-model {
    height: 66%;
    right: 50%;
    transform: translateX(50%);
  }
}

/* v6 hero fix: keep only the hero visible on first screen and clean up the model panel. */
.hero.section {
  width: min(1240px, calc(100% - 2rem));
  min-height: calc(100svh - 7rem);
  margin-top: 2.25rem;
  margin-bottom: clamp(5rem, 10vh, 8rem);
  padding: clamp(2.1rem, 5vw, 4.4rem);
  grid-template-columns: minmax(0, 1fr) minmax(22rem, .82fr);
  align-items: center;
  gap: clamp(2.2rem, 5vw, 5rem);
}

.hero-content {
  align-self: center;
  max-width: 44rem;
}

.hero h1 {
  font-size: clamp(5.2rem, 10vw, 9rem);
  max-width: 8ch;
}

.hero-text {
  max-width: 42rem;
}

.hero-profile-showcase {
  align-self: center;
  height: clamp(30rem, 55vh, 38rem);
  min-height: unset;
  border-radius: 2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 58%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 16rem),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 78%, transparent), color-mix(in srgb, var(--panel) 96%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
    0 24px 70px color-mix(in srgb, var(--shadow) 30%, transparent);
}

.hero-profile-showcase::before {
  inset: 1rem;
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg) 16%, transparent), transparent 60%);
  backdrop-filter: none;
  z-index: 1;
}

.hero-profile-showcase::after {
  content: "";
  position: absolute;
  left: 10%;
  right: -16%;
  bottom: -28%;
  height: 50%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 17%, transparent);
  filter: blur(42px);
  pointer-events: none;
  z-index: 2;
}

.hero-profile-showcase .showcase-glow {
  width: 25rem;
  height: 25rem;
  left: 55%;
  top: 60%;
  opacity: .2;
  z-index: 1;
}

.hero-card-glass {
  display: none;
}

.hero-profile-showcase .hero-model {
  height: min(92%, 34rem);
  width: auto;
  max-width: none;
  left: auto;
  right: 50%;
  bottom: 0;
  transform: translateX(50%);
  object-fit: contain;
  z-index: 5;
  filter: drop-shadow(0 28px 44px rgba(0,0,0,.44));
}

@media (max-width: 1100px) {
  .hero.section {
    min-height: auto;
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
  }

  .hero-profile-showcase {
    height: clamp(30rem, 62vh, 38rem);
  }

  .hero-profile-showcase .hero-model {
    height: min(90%, 33rem);
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 720px) {
  .hero.section {
    width: min(100% - 1rem, 1240px);
    padding: 1.15rem;
    border-radius: 1.55rem;
  }

  .hero-profile-showcase {
    height: 29rem;
    border-radius: 1.25rem;
  }

  .hero-profile-showcase .hero-model {
    height: 86%;
  }
}

/* v7 hero correction: NRC-like centered size, compact hero panel, profile info restored inside the model visual. */
.hero.section {
  width: min(1120px, calc(100% - 2rem));
  height: clamp(500px, 58vh, 590px);
  min-height: unset;
  margin-top: clamp(2.8rem, 6vh, 4.2rem);
  margin-bottom: clamp(8rem, 13vh, 12rem);
  padding: clamp(2.15rem, 3.8vw, 3.25rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
  overflow: hidden;
}

.hero-content {
  max-width: 39rem;
}

.hero h1 {
  font-size: clamp(4.5rem, 8.8vw, 7.2rem);
  max-width: 8ch;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 38rem;
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero-mini-stats {
  margin-top: 1.25rem;
}

.hero-profile-showcase {
  justify-self: end;
  width: min(420px, 100%);
  height: clamp(335px, 43vh, 430px);
  min-height: unset;
  align-self: center;
  border-radius: 1.8rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    radial-gradient(circle at 62% 63%, color-mix(in srgb, var(--accent) 29%, transparent), transparent 13rem),
    linear-gradient(160deg, color-mix(in srgb, var(--panel-soft) 82%, transparent), color-mix(in srgb, var(--panel) 96%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
    0 24px 70px color-mix(in srgb, var(--shadow) 34%, transparent);
}

.hero-profile-showcase::before {
  inset: .8rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg) 16%, transparent), transparent 58%);
  z-index: 1;
}

.hero-profile-showcase::after {
  left: 22%;
  right: -18%;
  bottom: -34%;
  height: 54%;
  opacity: .9;
  z-index: 2;
}

.hero-profile-showcase .showcase-glow {
  width: 18rem;
  height: 18rem;
  left: 64%;
  top: 66%;
  opacity: .22;
  z-index: 1;
}

.hero-card-glass {
  display: block;
  position: absolute;
  left: 1rem;
  top: 1rem;
  right: auto;
  width: min(18.2rem, calc(100% - 2rem));
  padding: .85rem;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--shadow) 34%, transparent);
  z-index: 9;
}

.hero-card-topline {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .55rem;
}

.hero-card-topline .hero-avatar {
  position: static;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .9rem;
  flex: 0 0 auto;
}

.hero-card-glass .card-label {
  font-size: .62rem;
  margin-bottom: .1rem;
}

.hero-card-glass h2 {
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  margin: 0;
}

.hero-card-glass p {
  display: block;
  margin: 0 0 .65rem;
  font-size: .74rem;
  line-height: 1.45;
}

.hero-card-glass .mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.hero-card-glass .mini-stats span {
  min-height: auto;
  padding: .48rem .5rem;
  border-radius: .75rem;
  font-size: .64rem;
  line-height: 1.18;
}

.hero-card-glass .mini-stats strong {
  font-size: .7rem;
  margin-bottom: .12rem;
}

.hero-profile-showcase .hero-model {
  height: min(82%, 22.8rem);
  width: auto;
  max-width: none;
  left: auto;
  right: .9rem;
  bottom: 0;
  transform: none;
  object-fit: contain;
  object-position: bottom right;
  z-index: 6;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.44));
}

@media (max-width: 1100px) {
  .hero.section {
    height: auto;
    min-height: unset;
    grid-template-columns: 1fr;
    margin-top: 2.2rem;
    margin-bottom: 5rem;
    padding: 2rem;
  }

  .hero-profile-showcase {
    justify-self: center;
    width: min(440px, 100%);
    height: 390px;
  }

  .hero-profile-showcase .hero-model {
    height: 80%;
    right: 1rem;
  }
}

@media (max-width: 720px) {
  .hero.section {
    width: min(100% - 1rem, 1120px);
    padding: 1.15rem;
    border-radius: 1.55rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.2rem);
  }

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

  .hero-profile-showcase {
    height: 410px;
    border-radius: 1.25rem;
  }

  .hero-card-glass {
    left: .75rem;
    top: .75rem;
    width: calc(100% - 1.5rem);
  }

  .hero-profile-showcase .hero-model {
    height: 70%;
    right: 50%;
    transform: translateX(50%);
  }
}

/* v8 hero correction: keep the NRC-like compact look, center the full hero as its own stage, remove the model from the profile embed, and let the model overlap the banner from bottom right. */
.hero.section {
  width: min(1110px, calc(100% - 2rem));
  height: clamp(435px, 50vh, 505px);
  min-height: unset;
  margin-top: clamp(5.2rem, 9vh, 7.2rem);
  margin-bottom: clamp(18rem, 34vh, 27rem);
  padding: clamp(2.15rem, 3.8vw, 3.35rem);
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  overflow: visible;
  isolation: isolate;
}

.hero.section::before,
.hero.section::after {
  pointer-events: none;
}

.hero-content {
  max-width: 39rem;
  position: relative;
  z-index: 8;
}

.hero h1 {
  font-size: clamp(4.35rem, 7.4vw, 6.75rem);
  max-width: 8ch;
  margin-bottom: .9rem;
}

.hero-text {
  max-width: 38rem;
  font-size: clamp(.95rem, 1.05vw, 1.04rem);
}

.hero-actions {
  margin-top: 1.45rem;
  gap: .75rem;
}

.hero-actions .button {
  min-height: 2.85rem;
  padding: .78rem 1.05rem;
}

.hero-mini-stats {
  margin-top: 1.1rem;
}

.hero-profile-showcase {
  justify-self: end;
  width: min(405px, 100%);
  height: clamp(285px, 34vh, 340px);
  min-height: unset;
  align-self: center;
  padding: 1rem;
  overflow: hidden;
  border-radius: 1.7rem;
  z-index: 5;
  background:
    radial-gradient(circle at 82% 48%, color-mix(in srgb, var(--accent) 23%, transparent), transparent 12rem),
    radial-gradient(circle at 16% 14%, color-mix(in srgb, var(--accent-soft) 10%, transparent), transparent 13rem),
    linear-gradient(150deg, color-mix(in srgb, var(--panel-soft) 74%, transparent), color-mix(in srgb, var(--panel) 94%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 9%, transparent),
    0 24px 70px color-mix(in srgb, var(--shadow) 30%, transparent);
}

.hero-profile-showcase::before {
  inset: .8rem;
  border-radius: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg) 18%, transparent), transparent 56%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
  z-index: 1;
}

.hero-profile-showcase::after {
  content: "";
  position: absolute;
  left: -20%;
  right: 12%;
  bottom: -38%;
  height: 58%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(44px);
  pointer-events: none;
  z-index: 2;
}

.hero-profile-showcase .showcase-glow {
  width: 18rem;
  height: 18rem;
  left: 76%;
  top: 48%;
  opacity: .18;
  z-index: 1;
}

.hero-card-glass {
  display: block;
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  padding: .95rem;
  border-radius: 1.15rem;
  z-index: 4;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  backdrop-filter: blur(14px);
}

.hero-card-topline {
  gap: .7rem;
  margin-bottom: .65rem;
}

.hero-card-topline .hero-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: .9rem;
}

.hero-card-glass .card-label {
  font-size: .62rem;
  letter-spacing: .14em;
}

.hero-card-glass h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.hero-card-glass p {
  display: block;
  font-size: .74rem;
  line-height: 1.45;
  margin: 0 0 .72rem;
}

.hero-card-glass .mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.hero-card-glass .mini-stats span {
  min-height: auto;
  padding: .48rem .5rem;
  border-radius: .75rem;
  font-size: .63rem;
  line-height: 1.18;
}

.hero-card-glass .mini-stats strong {
  font-size: .68rem;
  margin-bottom: .1rem;
}

.hero-info-lines {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: .75rem;
}

.hero-info-lines span {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  padding: .62rem .75rem;
  border-radius: .85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  background: color-mix(in srgb, var(--bg) 34%, transparent);
}

.hero-info-lines strong {
  color: var(--text);
  font-size: .76rem;
}

.hero-info-lines small {
  color: var(--muted);
  font-size: .68rem;
  text-align: right;
}

.hero-floating-model.hero-model {
  position: absolute;
  display: block;
  width: auto;
  height: min(86%, 28rem);
  max-width: none;
  left: auto;
  right: clamp(-3.8rem, -3vw, -1.5rem);
  bottom: clamp(-1.9rem, -2vh, -.8rem);
  transform: none;
  object-fit: contain;
  object-position: bottom right;
  z-index: 9;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.48));
}

@media (max-width: 1100px) {
  .hero.section {
    width: min(100% - 2rem, 900px);
    height: auto;
    min-height: unset;
    margin-top: 3rem;
    margin-bottom: 8rem;
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .hero-profile-showcase {
    justify-self: start;
    width: min(430px, 100%);
    height: auto;
  }

  .hero-floating-model.hero-model {
    height: 19rem;
    right: -1.8rem;
    bottom: -2.2rem;
    opacity: .9;
  }
}

@media (max-width: 720px) {
  .hero.section {
    width: min(100% - 1rem, 900px);
    margin-top: 2.1rem;
    margin-bottom: 5rem;
    padding: 1.2rem;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5.1rem);
  }

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

  .hero-profile-showcase {
    width: 100%;
    min-height: 300px;
  }

  .hero-info-lines span {
    align-items: flex-start;
    flex-direction: column;
    gap: .15rem;
  }

  .hero-info-lines small {
    text-align: left;
  }

  .hero-floating-model.hero-model {
    display: none;
  }
}


/* v9 hero correction: centered standalone hero stage, full info panel visible, model anchored bottom-right without covering the panel, animated scroll hint. */
.hero.section {
  width: min(1120px, calc(100% - 2rem));
  height: clamp(455px, 52vh, 525px);
  min-height: unset;
  margin-top: clamp(6.2rem, 12vh, 9rem);
  margin-bottom: clamp(26rem, 54vh, 35rem);
  padding: clamp(2.1rem, 3.5vw, 3.25rem);
  grid-template-columns: minmax(0, 1fr) minmax(365px, .78fr);
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.6rem);
  overflow: visible;
  isolation: isolate;
}

.hero-content {
  max-width: 39rem;
  align-self: center;
  z-index: 8;
}

.hero h1 {
  font-size: clamp(4.35rem, 7.2vw, 6.65rem);
  margin-bottom: .9rem;
}

.hero-text {
  max-width: 38rem;
}

.hero-profile-showcase {
  justify-self: end;
  width: min(430px, 100%);
  height: clamp(350px, 39vh, 385px);
  min-height: unset;
  padding: 1rem;
  overflow: visible;
  border-radius: 1.7rem;
  z-index: 6;
}

.hero-profile-showcase::before {
  inset: .8rem;
  z-index: 1;
}

.hero-profile-showcase::after {
  left: -22%;
  right: 8%;
  bottom: -30%;
  height: 48%;
  z-index: 2;
}

.hero-card-glass {
  width: 100%;
  max-width: none;
  padding: .95rem;
  position: relative;
  z-index: 5;
}

.hero-card-glass p {
  display: block;
  font-size: .75rem;
  line-height: 1.45;
  margin: 0 0 .65rem;
}

.hero-info-lines {
  display: grid;
  margin-top: .65rem;
  gap: .48rem;
  position: relative;
  z-index: 5;
}

.hero-info-lines span {
  min-height: 2.3rem;
  padding: .52rem .68rem;
}

.hero-info-lines strong {
  font-size: .72rem;
}

.hero-info-lines small {
  font-size: .62rem;
}

.hero-floating-model.hero-model {
  position: absolute;
  height: min(86%, 28.5rem);
  width: auto;
  max-width: none;
  left: auto;
  right: clamp(-8.4rem, -7.5vw, -5.4rem);
  bottom: clamp(-2rem, -2.2vh, -1rem);
  z-index: 7;
  transform: none;
  opacity: .98;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.5));
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(-5.7rem, -7.5vh, -4.4rem);
  transform: translateX(-50%);
  z-index: 12;
  display: grid;
  place-items: center;
  gap: .08rem;
  color: color-mix(in srgb, var(--accent-soft) 88%, white);
  font-weight: 850;
  font-size: .82rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 42%, transparent);
  opacity: .9;
}

.hero-scroll-cue span {
  padding: .38rem .75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-scroll-cue i {
  display: block;
  height: .7rem;
  line-height: .7rem;
  font-style: normal;
  font-size: 1.2rem;
  color: var(--accent);
  animation: rakku-scroll-bounce 1.35s ease-in-out infinite;
}

.hero-scroll-cue i:nth-of-type(2) {
  animation-delay: .16s;
  opacity: .55;
}

@keyframes rakku-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: .35; }
  45% { transform: translateY(.34rem); opacity: 1; }
}

.focus-section {
  padding-top: 6rem;
}

@media (max-width: 1180px) {
  .hero-floating-model.hero-model {
    right: clamp(-6rem, -6vw, -3.8rem);
    height: min(82%, 26.5rem);
  }
}

@media (max-width: 1100px) {
  .hero.section {
    width: min(100% - 2rem, 900px);
    height: auto;
    grid-template-columns: 1fr;
    margin-top: 3rem;
    margin-bottom: 10rem;
    padding: 2rem;
  }

  .hero-profile-showcase {
    justify-self: start;
    width: min(430px, 100%);
    height: auto;
    min-height: 350px;
  }

  .hero-floating-model.hero-model {
    height: 20rem;
    right: -2.8rem;
    bottom: -2.4rem;
  }

  .hero-scroll-cue {
    bottom: -5rem;
  }
}

@media (max-width: 720px) {
  .hero.section {
    width: min(100% - 1rem, 900px);
    margin-top: 2.2rem;
    margin-bottom: 7rem;
    padding: 1.2rem;
    overflow: hidden;
  }

  .hero-profile-showcase {
    width: 100%;
    min-height: auto;
    height: auto;
  }

  .hero-info-lines span {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }

  .hero-info-lines small {
    text-align: left;
  }

  .hero-floating-model.hero-model {
    display: none;
  }

  .hero-scroll-cue {
    bottom: -4.5rem;
  }
}

/* v10 hero correction: model as page-scrolling overlay in the marked left area, not fixed; hero stands centered and alone. */
.hero.section {
  width: min(1120px, calc(100% - 2rem));
  min-height: calc(100vh - 5.4rem);
  height: auto;
  margin: 0 auto;
  padding: clamp(2rem, 3.2vw, 3rem);
  padding-bottom: clamp(6.6rem, 10vh, 8.2rem);
  grid-template-columns: minmax(0, 1fr) minmax(370px, .78fr);
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.4rem);
  overflow: visible;
  isolation: isolate;
}

.hero-content {
  max-width: 39rem;
  align-self: center;
  z-index: 10;
}

.hero-profile-showcase {
  justify-self: end;
  width: min(430px, 100%);
  height: auto;
  min-height: 342px;
  padding: 1rem;
  overflow: visible;
  border-radius: 1.7rem;
  z-index: 10;
}

.hero-card-glass {
  width: 100%;
  max-width: none;
  padding: .95rem;
  position: relative;
  z-index: 5;
}

.hero-card-glass p {
  font-size: .75rem;
  line-height: 1.45;
  margin: 0 0 .65rem;
}

.hero-info-lines {
  display: grid;
  margin-top: .65rem;
  gap: .48rem;
  position: relative;
  z-index: 5;
}

.hero-info-lines span {
  min-height: 2.35rem;
  padding: .54rem .68rem;
}

.hero-floating-model.hero-model {
  position: absolute;
  height: clamp(31rem, 58vh, 42rem);
  width: auto;
  max-width: none;
  left: clamp(-22rem, -21vw, -13rem);
  right: auto;
  bottom: clamp(1.2rem, 5vh, 3.4rem);
  z-index: 5;
  transform: none;
  opacity: .98;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.52));
}

.hero-scroll-cue {
  left: 50%;
  bottom: clamp(1.5rem, 3.4vh, 2.8rem);
  transform: translateX(-50%);
  z-index: 14;
}

.focus-section {
  padding-top: clamp(7rem, 12vh, 10rem);
}

@media (max-width: 1320px) {
  .hero-floating-model.hero-model {
    left: clamp(-18rem, -24vw, -11rem);
    height: clamp(27rem, 52vh, 36rem);
    opacity: .92;
  }
}

@media (max-width: 1100px) {
  .hero.section {
    width: min(100% - 2rem, 900px);
    min-height: auto;
    margin-top: 3rem;
    margin-bottom: 8rem;
    padding: 2rem;
    padding-bottom: 6.5rem;
    grid-template-columns: 1fr;
  }

  .hero-profile-showcase {
    justify-self: start;
    width: min(430px, 100%);
    min-height: auto;
  }

  .hero-floating-model.hero-model {
    display: none;
  }

  .hero-scroll-cue {
    bottom: 1.8rem;
  }
}

@media (max-width: 720px) {
  .hero.section {
    width: min(100% - 1rem, 900px);
    margin-top: 2.2rem;
    margin-bottom: 6rem;
    padding: 1.2rem;
    padding-bottom: 5.8rem;
    overflow: hidden;
  }

  .hero-scroll-cue {
    bottom: 1.4rem;
  }
}


/* v11 hero correction: restore the compact centered hero banner and move Rakku as a viewport overlay at the browser's bottom-left edge. */
.hero.section {
  width: min(1120px, calc(100% - 2rem));
  min-height: auto;
  height: auto;
  margin: clamp(5.2rem, 10vh, 7.2rem) auto clamp(13rem, 19vh, 17rem);
  padding: clamp(2.6rem, 4vw, 3.4rem);
  padding-bottom: clamp(2.6rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(345px, .78fr);
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.2rem);
  overflow: visible;
  border-radius: 2rem;
  isolation: isolate;
}

.hero-content {
  max-width: 40rem;
  align-self: center;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(4.2rem, 6.2vw, 6.8rem);
  line-height: .88;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 39rem;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.55rem;
}

.hero-mini-stats {
  margin-top: 1rem;
}

.hero-profile-showcase {
  justify-self: end;
  width: min(410px, 100%);
  height: auto;
  min-height: 348px;
  max-height: none;
  padding: 1rem;
  overflow: hidden;
  border-radius: 1.7rem;
  z-index: 10;
}

.hero-profile-showcase::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem 18%;
  height: 13rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  opacity: .85;
  pointer-events: none;
}

.hero-card-glass {
  width: 100%;
  max-width: none;
  padding: 1rem;
  position: relative;
  z-index: 5;
}

.hero-card-glass p {
  font-size: .76rem;
  line-height: 1.48;
  margin: 0 0 .72rem;
}

.hero-info-lines {
  display: grid;
  margin-top: .7rem;
  gap: .5rem;
  position: relative;
  z-index: 5;
}

.hero-info-lines span {
  min-height: 2.42rem;
  padding: .56rem .7rem;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(-5.9rem, -7.2vh, -4.6rem);
  transform: translateX(-50%);
  z-index: 14;
}

.focus-section {
  padding-top: clamp(7rem, 12vh, 10rem);
}

.hero-floating-model.hero-model {
  display: none !important;
}

.viewport-rakku-model {
  position: fixed;
  left: clamp(-2.8rem, -2.5vw, -.6rem);
  bottom: clamp(-5.2rem, -7vh, -2.5rem);
  width: auto;
  height: clamp(26rem, 48vh, 41rem);
  max-width: none;
  z-index: 15;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 28px 46px rgba(0,0,0,.58));
  transform: translateZ(0);
}

body.copy-lock-media .viewport-rakku-model {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 1320px) {
  .viewport-rakku-model {
    height: clamp(23rem, 43vh, 35rem);
    bottom: clamp(-4.8rem, -6.5vh, -2.3rem);
    left: clamp(-3.4rem, -3vw, -1rem);
    opacity: .96;
  }
}

@media (max-width: 1100px) {
  .hero.section {
    width: min(100% - 2rem, 900px);
    margin-top: 3.8rem;
    margin-bottom: 10rem;
    padding: 2rem;
    grid-template-columns: 1fr;
  }

  .hero-profile-showcase {
    justify-self: start;
    width: min(430px, 100%);
    min-height: auto;
  }

  .viewport-rakku-model {
    height: clamp(20rem, 38vh, 28rem);
    opacity: .9;
  }
}

@media (max-width: 760px) {
  .hero.section {
    width: min(100% - 1rem, 900px);
    margin-top: 2.2rem;
    margin-bottom: 7rem;
    padding: 1.2rem;
    overflow: visible;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 20vw, 5rem);
  }

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

  .hero-scroll-cue {
    bottom: -4.7rem;
  }

  .viewport-rakku-model {
    display: none;
  }
}


/* v12 final hero tuning: center the compact hero, keep the next section below the first viewport, move Rakku slightly right, and place hero buttons in one line starting with Discord. */
.hero.section {
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(6.2rem, 12vh, 8.2rem) auto clamp(18rem, 31vh, 26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: .72rem;
  width: 100%;
}

.hero-actions .button {
  white-space: nowrap;
  min-height: 2.85rem;
  padding-inline: 1.05rem;
}

.hero-actions .button.discord { order: 1; }
.hero-actions .button.primary { order: 2; }
.hero-actions .button.ghost { order: 3; }

.viewport-rakku-model {
  left: clamp(.8rem, 1.4vw, 1.8rem);
}

.focus-section {
  padding-top: clamp(17rem, 28vh, 24rem);
}

@media (max-width: 1320px) {
  .viewport-rakku-model {
    left: clamp(.2rem, 1vw, 1.2rem);
  }
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 5rem;
    margin-bottom: 12rem;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .focus-section {
    padding-top: clamp(8rem, 14vh, 12rem);
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 2.4rem;
    margin-bottom: 7rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
  }
  .focus-section {
    padding-top: 6rem;
  }
}

/* v13: contact CTAs + homepage portfolio preview + dedicated portfolio page. */
.portfolio-preview-section .section-heading {
  max-width: 46rem;
}

.portfolio-preview-grid {
  margin-top: 1.4rem;
}

.portfolio-preview-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.full-portfolio-section {
  padding-top: 2rem;
}

.portfolio-page .viewport-rakku-model {
  display: none !important;
}

.portfolio-page-hero {
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.portfolio-page-hero h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: .9;
  margin: .2rem 0 .9rem;
  letter-spacing: -.075em;
}

.portfolio-page-hero .section-heading {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 2rem;
  background:
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 20rem),
    color-mix(in srgb, var(--panel) 72%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent),
    0 26px 80px color-mix(in srgb, var(--shadow) 30%, transparent);
  backdrop-filter: blur(16px);
}

.portfolio-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.contact-panel {
  max-width: 62rem;
}

.contact-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.5rem;
}

.contact-action-card {
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel-soft) 70%, transparent), color-mix(in srgb, var(--panel) 88%, transparent));
  border-radius: 1.25rem;
  padding: 1rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.contact-action-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 17%, transparent), transparent 10rem),
    linear-gradient(145deg, color-mix(in srgb, var(--panel-soft) 74%, transparent), color-mix(in srgb, var(--panel) 90%, transparent));
}

.contact-action-card > span {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.contact-action-card h3 {
  margin: .15rem 0 0;
}

.contact-action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.contact-action-card strong {
  color: var(--accent-soft);
  font-size: .9rem;
}

.contact-social-list {
  margin-top: 1.1rem;
  opacity: .9;
}

@media (max-width: 900px) {
  .contact-cta-grid {
    grid-template-columns: 1fr;
  }

  .contact-action-card {
    min-height: auto;
  }
}

/* v14: multiple images per portfolio post + gallery lightbox */
.portfolio-card[data-gallery-id] {
  cursor: pointer;
}

.portfolio-card[data-gallery-id]:hover .portfolio-image,
.portfolio-card[data-gallery-id]:focus-visible .portfolio-image {
  transform: scale(1.015);
}

.portfolio-card[data-gallery-id]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.portfolio-image {
  transition: transform .22s ease, filter .22s ease;
}

.portfolio-count {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  z-index: 2;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  color: #061018;
  background: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, white);
  padding: .35rem .55rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--shadow) 35%, transparent);
}

body.lightbox-open {
  overflow: hidden;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.portfolio-lightbox.open {
  display: grid;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, black);
  backdrop-filter: blur(18px);
}

.portfolio-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(88vh, 900px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 70% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 24rem),
    color-mix(in srgb, var(--panel) 86%, black);
  box-shadow: 0 34px 110px color-mix(in srgb, var(--shadow) 55%, transparent);
  padding: clamp(.75rem, 2vw, 1.2rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(280px, 62vh) auto auto;
  gap: .8rem;
}

.lightbox-image {
  grid-column: 1 / -1;
  min-height: 280px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: 1.2rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: color-mix(in srgb, var(--bg) 72%, var(--panel));
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--shadow) 35%, transparent);
}

.lightbox-close {
  top: .85rem;
  right: .85rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  top: 45%;
  width: 2.8rem;
  height: 4.5rem;
  border-radius: 999px;
  font-size: 2.4rem;
  display: grid;
  place-items: center;
}

.lightbox-prev { left: .95rem; }
.lightbox-next { right: .95rem; }

.lightbox-info {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: .2rem .25rem 0;
}

.lightbox-info h3 {
  margin: 0 0 .3rem;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.lightbox-info p {
  margin: 0;
  color: var(--muted);
}

.lightbox-info span {
  color: var(--accent-soft);
  font-weight: 900;
  white-space: nowrap;
}

.lightbox-thumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: .2rem .1rem .1rem;
}

.lightbox-thumbs button {
  width: 72px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: .8rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background-size: cover;
  background-position: center;
  opacity: .62;
  cursor: pointer;
}

.lightbox-thumbs button.active,
.lightbox-thumbs button:hover {
  opacity: 1;
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .portfolio-lightbox-panel {
    grid-template-rows: minmax(220px, 56vh) auto auto;
  }
  .lightbox-nav {
    top: 42%;
    width: 2.35rem;
    height: 3.7rem;
  }
  .lightbox-info {
    flex-direction: column;
  }
}

/* v15: hero tuning — slightly larger, more centered, less cramped, title subtitle restored. */
.hero.section {
  width: min(1220px, calc(100% - 2rem));
  margin-top: clamp(7.1rem, 14vh, 10.2rem);
  margin-bottom: clamp(24rem, 44vh, 33rem);
  padding: clamp(2.85rem, 4.4vw, 3.95rem);
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  gap: clamp(2.5rem, 4.7vw, 4.2rem);
}

.hero-content {
  max-width: 43rem;
}

.hero h1 {
  max-width: 10.8ch;
  margin-bottom: 1rem;
  line-height: .88;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  font-size: clamp(4.25rem, 6.4vw, 6.95rem);
  letter-spacing: -.095em;
}

.hero-title-sub {
  margin-top: .4rem;
  font-size: clamp(1.18rem, 2.15vw, 2.15rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  color: color-mix(in srgb, var(--accent-soft) 88%, var(--text));
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero-text {
  max-width: 42rem;
}

.hero-profile-showcase {
  width: min(465px, 100%);
  min-height: 390px;
  padding: 1.15rem;
  border-radius: 1.85rem;
}

.hero-card-glass {
  padding: 1.1rem;
  border-radius: 1.25rem;
}

.hero-card-topline .hero-avatar {
  width: 3.65rem;
  height: 3.65rem;
}

.hero-card-glass h2 {
  font-size: clamp(1.32rem, 1.8vw, 1.75rem);
}

.hero-card-glass p {
  font-size: .82rem;
  line-height: 1.55;
}

.hero-card-glass .mini-stats span {
  padding: .58rem .6rem;
}

.hero-info-lines {
  gap: .6rem;
  margin-top: .8rem;
}

.hero-info-lines span {
  min-height: 2.65rem;
  padding: .65rem .78rem;
}

.hero-info-lines strong {
  font-size: .78rem;
}

.hero-info-lines small {
  font-size: .68rem;
}

.hero-scroll-cue {
  bottom: clamp(-6.15rem, -7.5vh, -4.85rem);
}

.viewport-rakku-model {
  left: clamp(1.25rem, 1.9vw, 2.35rem);
}

.focus-section {
  padding-top: clamp(21rem, 38vh, 30rem);
}

@media (max-width: 1100px) {
  .hero.section {
    width: min(100% - 2rem, 940px);
    margin-top: 5.2rem;
    margin-bottom: 13rem;
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .hero-profile-showcase {
    width: min(475px, 100%);
    min-height: auto;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .focus-section {
    padding-top: clamp(9rem, 16vh, 13rem);
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 2.4rem;
    margin-bottom: 7rem;
    padding: 1.2rem;
  }

  .hero-title-main {
    font-size: clamp(3.35rem, 20vw, 5rem);
  }

  .hero-title-sub {
    font-size: clamp(1.05rem, 7vw, 1.45rem);
  }

  .hero-profile-showcase {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .focus-section {
    padding-top: 6rem;
  }
}

/* v16: final spacing + alignment pass based on live screenshot. */
.hero.section {
  width: min(1220px, calc(100% - 2rem));
  margin-top: clamp(9.5rem, 18vh, 12.5rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(28rem, 52vh, 40rem);
}

.hero-content {
  padding-left: .15rem;
}

.hero-title-main {
  margin-left: -.055em;
}

.hero-title-sub,
.hero-text,
.hero-actions,
.hero-mini-stats {
  margin-left: 0;
}

.hero-profile-showcase {
  align-self: center;
}

.focus-section {
  padding-top: clamp(34rem, 65vh, 50rem);
}

.contact-section {
  padding-top: clamp(7rem, 12vh, 9rem);
  padding-bottom: clamp(7rem, 12vh, 9rem);
}

.contact-panel {
  padding-top: clamp(2.4rem, 4vw, 3.2rem);
  padding-bottom: clamp(2.4rem, 4vw, 3.2rem);
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 5.5rem;
    margin-bottom: 14rem;
  }

  .focus-section {
    padding-top: clamp(10rem, 18vh, 14rem);
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 2.6rem;
    margin-bottom: 8rem;
  }

  .hero-title-main {
    margin-left: -.035em;
  }

  .focus-section {
    padding-top: 7rem;
  }

  .contact-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* v17: final live-spacing correction — move hero slightly down, remove the oversized empty gap before the next section, align hero title/text, and give contact/footer equal breathing room. */
.hero.section {
  width: min(1220px, calc(100% - 2rem));
  margin-top: clamp(10.6rem, 19vh, 13.2rem);
  margin-bottom: clamp(8.5rem, 14vh, 11.5rem);
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  padding-left: 0;
}

.hero h1,
.hero-title-main,
.hero-title-sub,
.hero-text,
.hero-actions,
.hero-mini-stats {
  margin-left: 0;
}

.hero-title-main {
  display: block;
  transform: translateX(-0.035em);
}

.hero-title-sub {
  display: block;
  transform: translateX(-0.035em);
}

.hero-scroll-cue {
  bottom: clamp(-5.2rem, -6.3vh, -4.15rem);
}

.focus-section {
  padding-top: clamp(7.5rem, 12vh, 10.5rem);
}

.contact-section {
  padding-top: clamp(8rem, 12vh, 10rem);
  padding-bottom: clamp(10rem, 15vh, 13rem);
}

.contact-panel {
  padding-top: clamp(2.8rem, 4.2vw, 3.35rem);
  padding-bottom: clamp(2.8rem, 4.2vw, 3.35rem);
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 5.8rem;
    margin-bottom: 8.5rem;
  }

  .focus-section {
    padding-top: clamp(6.5rem, 10vh, 8.5rem);
  }

  .contact-section {
    padding-top: 6.5rem;
    padding-bottom: 8rem;
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 3rem;
    margin-bottom: 6.5rem;
  }

  .hero-title-main,
  .hero-title-sub {
    transform: none;
  }

  .focus-section {
    padding-top: 5.5rem;
  }

  .contact-section {
    padding-top: 5rem;
    padding-bottom: 6.5rem;
  }
}

/* v18: live hero viewport tuning — shift the compact hero a little lower and keep the next section just below the first screen. */
.hero.section {
  margin-top: clamp(13.8rem, 23vh, 16rem);
  margin-bottom: clamp(10.5rem, 17vh, 13.5rem);
}

.focus-section {
  padding-top: clamp(9rem, 15vh, 12rem);
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 6.8rem;
    margin-bottom: 9.5rem;
  }

  .focus-section {
    padding-top: clamp(7.5rem, 12vh, 9.5rem);
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 3.4rem;
    margin-bottom: 7rem;
  }

  .focus-section {
    padding-top: 6rem;
  }
}

/* v19: live hero vertical alignment — move the compact hero lower so it feels centered, while keeping the next section just below the first viewport. */
.hero.section {
  margin-top: clamp(16.8rem, 27vh, 19rem);
  margin-bottom: clamp(10.5rem, 17vh, 13.5rem);
}

.focus-section {
  padding-top: clamp(9.8rem, 16vh, 12.6rem);
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 7.6rem;
    margin-bottom: 9.8rem;
  }

  .focus-section {
    padding-top: clamp(7.8rem, 12vh, 9.8rem);
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 3.8rem;
    margin-bottom: 7.2rem;
  }

  .focus-section {
    padding-top: 6.2rem;
  }
}

/* v20: match marked position — move the compact hero banner further down so its lower edge sits closer to the marked scroll area, and keep the next section just outside the first viewport. */
.hero.section {
  margin-top: clamp(19.5rem, 31vh, 22rem);
  margin-bottom: clamp(11.5rem, 18vh, 14.5rem);
}

.focus-section {
  padding-top: clamp(10.8rem, 17vh, 13.5rem);
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 8.2rem;
    margin-bottom: 10.2rem;
  }

  .focus-section {
    padding-top: clamp(8rem, 12.5vh, 10rem);
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 4rem;
    margin-bottom: 7.4rem;
  }

  .focus-section {
    padding-top: 6.4rem;
  }
}

/* v21: tiny correction — lift the hero banner just a little from v20, without changing the overall layout. */
.hero.section {
  margin-top: clamp(18.4rem, 29.5vh, 20.8rem);
  margin-bottom: clamp(11.8rem, 18.5vh, 14.8rem);
}

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 7.8rem;
    margin-bottom: 10.5rem;
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 3.8rem;
    margin-bottom: 7.6rem;
  }
}

/* v22: legal pages and external impressum link */
.legal-main {
  width: min(980px, calc(100% - 2rem));
  margin: clamp(8rem, 16vh, 12rem) auto clamp(4rem, 8vh, 6rem);
}

.legal-panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(18, 27, 43, .84);
  border-radius: clamp(26px, 4vw, 42px);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.legal-panel h1 {
  margin: .2rem 0 .4rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.legal-updated {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-content p {
  margin: 0;
}

.footer-link-button.disabled-link,
.footer-link-grid a.disabled-link {
  opacity: .7;
  cursor: not-allowed;
}


/* v23: legal page fix + proper Datenschutz layout */
.logo-mark,
.legal-page .logo-mark,
.legal-page .brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 30%, var(--panel)));
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
}
.logo-mark img,
.legal-page .logo-mark img,
.legal-page .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.legal-page .site-header {
  width: min(var(--max), calc(100% - 2rem));
  min-height: auto;
  margin: 1rem auto 0;
  padding: .75rem .9rem;
  border-radius: 999px;
}
.legal-page .brand {
  min-width: 0;
}
.legal-page .brand small {
  max-width: 18rem;
}
.legal-main {
  width: min(980px, calc(100% - 2rem));
  margin: clamp(5.8rem, 11vh, 8.5rem) auto clamp(5.5rem, 10vh, 8rem);
}
.legal-main-privacy {
  margin-top: clamp(5.8rem, 11vh, 8.2rem);
}
.legal-panel {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.014)),
    color-mix(in srgb, var(--panel) 88%, transparent);
  border-radius: clamp(26px, 4vw, 42px);
  padding: clamp(1.65rem, 4.2vw, 3.2rem);
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.legal-panel h1 {
  max-width: 12ch;
  margin: .15rem 0 .45rem;
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.075em;
}
.legal-updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-weight: 850;
}
.legal-content {
  display: grid;
  gap: 1.05rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}
.legal-content h2 {
  margin: 1.15rem 0 .1rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  margin: .8rem 0 0;
  color: var(--accent-soft);
  font-size: 1.05rem;
}
.legal-content p {
  margin: 0;
}
.legal-content ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .35rem;
}
.legal-content strong {
  color: var(--text);
}
@media (max-width: 620px) {
  .legal-page .site-header {
    border-radius: 1.5rem;
    align-items: flex-start;
  }
  .legal-main,
  .legal-main-privacy {
    margin-top: 4.5rem;
  }
  .legal-panel {
    padding: 1.25rem;
  }
}


/* v24: hero a little higher + dedicated Twitch hero button. */
.hero.section {
  margin-top: clamp(17.2rem, 27.5vh, 19.6rem);
}

.hero-actions {
  gap: .62rem;
}

.hero-actions .button.twitch {
  order: 2;
  color: #f6f1ff;
  border-color: color-mix(in srgb, #9146ff 52%, var(--border));
  background: linear-gradient(135deg, #9146ff, color-mix(in srgb, #9146ff 58%, var(--panel)));
  box-shadow: 0 14px 38px color-mix(in srgb, #9146ff 34%, transparent);
}

.hero-actions .button.twitch::before {
  content: "●";
  font-size: .7rem;
  color: #ffffff;
  opacity: .9;
}

.hero-actions .button.discord { order: 1; }
.hero-actions .button.primary { order: 3; }
.hero-actions .button.ghost { order: 4; }

@media (max-width: 1100px) {
  .hero.section {
    margin-top: 7.2rem;
  }
}

@media (max-width: 760px) {
  .hero.section {
    margin-top: 3.5rem;
  }
}


/* v25: keep Discord/Twitch on the first hero button row and move Portfolio/Shooting to the second row. */
.hero-action-break {
  order: 2;
  flex-basis: 100%;
  width: 100%;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: -.18rem 0 0;
  pointer-events: none;
}

.hero-actions .button.primary,
.hero-actions .button.ghost {
  margin-top: .05rem;
}

@media (max-width: 760px) {
  .hero-action-break {
    display: none;
  }
}

/* v26: force the hero CTA buttons into a clean 2 x 2 layout. */
.hero-actions {
  display: grid !important;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
  gap: .72rem .82rem !important;
  width: max-content;
  max-width: 100%;
  margin-top: 1.55rem;
}

.hero-action-break {
  display: none !important;
}

.hero-actions .button {
  width: auto;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
  margin-top: 0 !important;
}

.hero-actions .button.discord { order: 1; }
.hero-actions .button.twitch { order: 2; }
.hero-actions .button.primary { order: 3; }
.hero-actions .button.ghost { order: 4; }

@media (max-width: 760px) {
  .hero-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

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

/* v29: Portfolio Instagram action buttons */
.portfolio-actions,
.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}
.portfolio-actions a,
.lightbox-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: fit-content;
  max-width: 100%;
  padding: .55rem .72rem;
  border: 1px solid color-mix(in srgb, var(--accent) 23%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-soft) 60%, transparent);
  color: var(--text);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  line-height: 1;
}
.portfolio-actions a:hover,
.lightbox-actions a:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  color: var(--accent-soft);
  transform: translateY(-1px);
}
.portfolio-actions.compact a {
  font-size: .72rem;
  padding: .45rem .6rem;
}
.lightbox-actions {
  margin-top: .9rem;
}

/* v31: Mobile layout pass — less cramped on phones/tablets, cleaner header, hero and cards. */
@media (max-width: 900px) {
  :root {
    --radius: 20px;
  }

  body {
    background:
      radial-gradient(circle at -10% 5%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 20rem),
      radial-gradient(circle at 110% 30%, color-mix(in srgb, var(--accent-soft) 10%, transparent), transparent 18rem),
      var(--bg);
  }

  .site-header,
  .legal-page .site-header {
    width: calc(100% - 1rem);
    margin-top: .5rem;
    top: .5rem;
    padding: .62rem .72rem;
    border-radius: 1.25rem;
    align-items: center;
  }

  .brand {
    gap: .62rem;
    max-width: calc(100% - 3.2rem);
  }

  .brand-logo,
  .logo-mark,
  .legal-page .brand-logo,
  .legal-page .logo-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .brand strong {
    font-size: .95rem;
  }

  .brand small {
    max-width: 11rem;
    font-size: .66rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: .85rem;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    background: color-mix(in srgb, var(--panel-soft) 66%, transparent);
    line-height: 1;
  }

  .main-nav {
    top: calc(100% + .55rem);
    left: .25rem;
    right: .25rem;
    padding: .65rem;
    border-radius: 1.1rem;
    gap: .25rem;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--shadow) 42%, transparent);
  }

  .main-nav a {
    padding: .78rem .9rem;
    border-radius: .85rem;
  }

  .section {
    width: min(100% - 1.1rem, var(--max));
    padding: 3.6rem 0;
  }

  .hero.section {
    width: calc(100% - 1rem);
    margin-top: 4.8rem;
    margin-bottom: 6.2rem;
    padding: 1.1rem;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    border-radius: 1.35rem;
    overflow: hidden;
  }

  .hero.section::before {
    inset: .55rem;
    border-radius: .95rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero .eyebrow {
    font-size: .62rem;
    letter-spacing: .11em;
    margin-bottom: .7rem;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: .85rem;
  }

  .hero-title-main {
    font-size: clamp(3.05rem, 17vw, 4.6rem);
    letter-spacing: -.08em;
    line-height: .9;
    transform: none;
  }

  .hero-title-sub {
    margin-top: .25rem;
    font-size: clamp(1.05rem, 6vw, 1.45rem);
    line-height: 1.08;
    transform: none;
  }

  .hero-text {
    max-width: 100%;
    font-size: .92rem;
    line-height: 1.6;
  }

  .hero-actions {
    width: 100%;
    grid-template-columns: 1fr;
    gap: .6rem !important;
    margin-top: 1.1rem;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 2.75rem;
    padding: .74rem .9rem;
    font-size: .9rem;
  }

  .hero-mini-stats {
    gap: .45rem;
    margin-top: .9rem;
  }

  .hero-mini-stats span {
    padding: .35rem .55rem;
    font-size: .72rem;
  }

  .hero-profile-showcase {
    width: 100%;
    min-height: auto;
    padding: .72rem;
    border-radius: 1.2rem;
  }

  .hero-profile-showcase::before {
    inset: .5rem;
    border-radius: .85rem;
  }

  .hero-card-glass {
    padding: .78rem;
    border-radius: 1rem;
  }

  .hero-card-topline {
    gap: .55rem;
    margin-bottom: .55rem;
  }

  .hero-card-topline .hero-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .75rem;
  }

  .hero-card-glass .card-label {
    font-size: .55rem;
  }

  .hero-card-glass h2 {
    font-size: 1.1rem;
  }

  .hero-card-glass p {
    font-size: .72rem;
    line-height: 1.45;
  }

  .hero-card-glass .mini-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: .35rem;
  }

  .hero-card-glass .mini-stats span {
    padding: .42rem .4rem;
    font-size: .58rem;
    border-radius: .62rem;
  }

  .hero-card-glass .mini-stats strong {
    font-size: .62rem;
  }

  .hero-info-lines {
    gap: .42rem;
    margin-top: .55rem;
  }

  .hero-info-lines span {
    min-height: auto;
    padding: .5rem .58rem;
    border-radius: .7rem;
  }

  .hero-info-lines strong,
  .hero-info-lines small {
    font-size: .64rem;
  }

  .hero-scroll-cue {
    bottom: -4.2rem;
    font-size: .67rem;
  }

  .focus-section {
    padding-top: 4.8rem;
  }

  .viewport-rakku-model {
    display: none !important;
  }

  .section-heading,
  .section-heading.centered {
    max-width: 100%;
  }

  .section-heading.centered {
    text-align: left;
  }

  .section-heading h2,
  .contact-panel h2,
  .legal-panel h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
    line-height: .98;
  }

  .focus-grid,
  .info-grid,
  .portfolio-grid,
  .process-grid,
  .contact-cta-grid {
    grid-template-columns: 1fr !important;
    gap: .85rem;
  }

  .focus-card,
  .info-card,
  .process-card,
  .text-panel,
  .contact-panel {
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .focus-card {
    min-height: auto;
  }

  .portfolio-card {
    min-height: auto;
    border-radius: 1.15rem;
  }

  .portfolio-image {
    height: 15rem;
  }

  .portfolio-body {
    padding: .9rem;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-panel {
    text-align: left;
    max-width: 100%;
  }

  .contact-panel .eyebrow,
  .contact-panel h2,
  .contact-panel p {
    text-align: left;
  }

  .social-links,
  .contact-social-list {
    justify-content: flex-start;
  }

  .site-footer {
    width: calc(100% - 1rem);
    border-radius: 1.3rem;
    margin-bottom: .8rem;
  }

  .footer-inner {
    padding: 1rem;
  }

  .footer-brand-block {
    align-items: flex-start;
  }

  .footer-logo {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1rem;
  }

  .footer-link-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .footer-bottom {
    gap: .55rem;
  }

  .scroll-top {
    width: 2.85rem;
    height: 2.85rem;
    right: .8rem;
    bottom: .8rem;
  }

  .portfolio-page-hero {
    padding-top: 4.5rem;
  }

  .portfolio-page-hero .section-heading {
    padding: 1.15rem;
    border-radius: 1.35rem;
  }

  .portfolio-page-hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .filter-row {
    gap: .45rem;
  }

  .filter-button {
    padding: .62rem .75rem;
    font-size: .85rem;
  }

  .legal-main,
  .legal-main-privacy {
    width: calc(100% - 1rem);
    margin-top: 4.8rem;
    margin-bottom: 3.5rem;
  }

  .legal-panel {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .legal-content {
    font-size: .92rem;
    line-height: 1.65;
  }
}

@media (max-width: 430px) {
  .brand small {
    max-width: 9.3rem;
  }

  .hero.section {
    margin-top: 4.4rem;
    padding: .95rem;
  }

  .hero-title-main {
    font-size: clamp(2.85rem, 18vw, 4rem);
  }

  .hero-title-sub {
    font-size: clamp(.98rem, 6.4vw, 1.25rem);
  }

  .hero-card-glass .mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-info-lines span {
    display: block;
  }

  .hero-info-lines small {
    display: block;
    margin-top: .15rem;
    text-align: left;
  }

  .portfolio-image {
    height: 13rem;
  }
}

/* v32: make portfolio posts obviously clickable and open the full post gallery. */
.portfolio-card[data-gallery-id] {
  position: relative;
  cursor: pointer;
}

.portfolio-card[data-gallery-id] .portfolio-image {
  overflow: hidden;
}

.portfolio-image-overlay {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  padding: .4rem .65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--text);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 34%, transparent);
  pointer-events: none;
}

.portfolio-card[data-gallery-id]:hover .portfolio-image-overlay,
.portfolio-card[data-gallery-id]:focus-visible .portfolio-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-count.single {
  background: color-mix(in srgb, var(--panel) 70%, var(--accent));
  color: var(--text);
}

.portfolio-card-footer {
  display: grid;
  gap: .65rem;
  margin-top: .85rem;
}

.portfolio-open-button {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 999px;
  padding: .58rem .85rem;
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  color: var(--text);
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--shadow) 25%, transparent);
}

.portfolio-open-button:hover,
.portfolio-open-button:focus-visible {
  background: color-mix(in srgb, var(--accent) 32%, var(--panel));
  transform: translateY(-1px);
}

.portfolio-card-footer .portfolio-actions {
  margin-top: 0;
}

@media (max-width: 760px) {
  .portfolio-image-overlay {
    opacity: 1;
    transform: none;
    font-size: .65rem;
    padding: .34rem .52rem;
  }

  .portfolio-card-footer {
    gap: .55rem;
  }

  .portfolio-open-button {
    width: 100%;
    justify-content: center;
  }
}

/* v33: glass/blur gallery overlay — keep the page visible behind the opened portfolio post. */
.portfolio-lightbox-backdrop {
  background: rgba(4, 8, 14, .34);
  backdrop-filter: blur(30px) saturate(1.22) brightness(.72);
  -webkit-backdrop-filter: blur(30px) saturate(1.22) brightness(.72);
}

.portfolio-lightbox-panel {
  background:
    radial-gradient(circle at 72% 10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 24rem),
    rgba(8, 14, 24, .42);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-color: color-mix(in srgb, var(--accent) 32%, rgba(255,255,255,.12));
}

.lightbox-image {
  background-color: rgba(4, 8, 14, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-info,
.lightbox-thumbs {
  background: transparent;
}

@media (max-width: 760px) {
  .portfolio-lightbox-backdrop {
    background: rgba(4, 8, 14, .48);
    backdrop-filter: blur(24px) saturate(1.16) brightness(.76);
    -webkit-backdrop-filter: blur(24px) saturate(1.16) brightness(.76);
  }

  .portfolio-lightbox-panel {
    background: rgba(8, 14, 24, .50);
  }
}

/* v34: keep the portfolio post text, action buttons and thumbnails inside the glass lightbox field. */
.portfolio-lightbox {
  padding: clamp(.75rem, 2vw, 1.5rem);
}

.portfolio-lightbox-panel {
  width: min(1120px, calc(100vw - 2rem));
  height: min(92vh, 940px);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(260px, 1fr) auto auto;
  gap: .75rem;
  padding: clamp(.7rem, 1.25vw, 1rem);
}

.lightbox-image {
  grid-column: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.lightbox-info {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: start;
  padding: .85rem .95rem;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.10));
  border-radius: 1.05rem;
  background: rgba(8, 14, 24, .48);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.lightbox-info > div {
  min-width: 0;
}

.lightbox-info h3 {
  margin: 0 0 .35rem;
  line-height: 1.05;
}

.lightbox-info p {
  max-width: 72ch;
  line-height: 1.6;
}

.lightbox-info span {
  align-self: start;
  padding-top: .1rem;
}

.lightbox-actions {
  margin-top: .75rem;
}

.lightbox-thumbs {
  grid-column: 1;
  margin: 0;
  padding: .6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 15%, rgba(255,255,255,.08));
  border-radius: 1rem;
  background: rgba(8, 14, 24, .36);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

@media (max-width: 760px) {
  .portfolio-lightbox-panel {
    width: min(100%, calc(100vw - 1rem));
    height: min(94vh, 820px);
    max-height: calc(100vh - 1rem);
    grid-template-rows: minmax(210px, 1fr) auto auto;
    gap: .6rem;
    padding: .55rem;
    border-radius: 1.2rem;
  }

  .lightbox-info {
    grid-template-columns: 1fr;
    padding: .75rem;
  }

  .lightbox-info span {
    justify-self: start;
  }

  .lightbox-thumbs {
    padding: .5rem;
  }
}


/* v35: scrollable long portfolio descriptions + better mobile lightbox layout. */
.portfolio-lightbox-panel {
  grid-template-rows: minmax(260px, 1fr) auto auto;
}

.lightbox-info {
  min-height: 0;
  max-height: clamp(9rem, 24vh, 16.5rem);
  overflow: hidden;
}

.lightbox-info > div {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lightbox-info p {
  max-height: clamp(4.8rem, 13vh, 9.8rem);
  overflow-y: auto;
  padding-right: .55rem;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 50%, transparent) transparent;
}

.lightbox-info p::-webkit-scrollbar {
  width: .45rem;
}

.lightbox-info p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}

.lightbox-info p::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-actions {
  flex-wrap: wrap;
  gap: .55rem;
}

.lightbox-thumbs {
  min-height: 4rem;
  max-height: 5.25rem;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 760px) {
  .portfolio-lightbox {
    padding: .5rem;
    place-items: center;
  }

  .portfolio-lightbox-panel {
    width: calc(100vw - 1rem);
    height: min(94svh, 820px);
    max-height: calc(100svh - 1rem);
    grid-template-rows: minmax(220px, 46svh) auto auto;
    gap: .5rem;
    padding: .5rem;
    border-radius: 1.1rem;
  }

  .lightbox-image {
    min-height: 220px;
    max-height: 46svh;
    border-radius: .95rem;
  }

  .lightbox-close {
    top: .65rem;
    right: .65rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.45rem;
    background: rgba(8, 14, 24, .74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .lightbox-nav {
    top: calc(.5rem + 23svh);
    width: 2.15rem;
    height: 3.15rem;
    font-size: 1.9rem;
    background: rgba(8, 14, 24, .70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .lightbox-prev { left: .6rem; }
  .lightbox-next { right: .6rem; }

  .lightbox-info {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: .7rem;
    max-height: min(31svh, 16rem);
    border-radius: .95rem;
  }

  .lightbox-info h3 {
    font-size: clamp(1.05rem, 5.5vw, 1.45rem);
    margin-bottom: .25rem;
  }

  .lightbox-info p {
    max-height: min(15svh, 7.8rem);
    font-size: .88rem;
    line-height: 1.48;
    padding-right: .45rem;
  }

  .lightbox-info span {
    justify-self: start;
    font-size: .82rem;
    padding: .2rem .55rem;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.10));
    border-radius: 999px;
    background: rgba(8, 14, 24, .42);
  }

  .lightbox-actions {
    margin-top: .55rem;
    gap: .45rem;
  }

  .lightbox-actions a {
    width: 100%;
    justify-content: center;
    min-height: 2.45rem;
  }

  .lightbox-thumbs {
    min-height: 3.7rem;
    max-height: 4.35rem;
    padding: .45rem;
    border-radius: .9rem;
  }

  .lightbox-thumbs button {
    width: 58px;
    height: 44px;
    border-radius: .65rem;
  }
}

@media (max-width: 420px) {
  .portfolio-lightbox-panel {
    grid-template-rows: minmax(200px, 42svh) auto auto;
  }

  .lightbox-image {
    min-height: 200px;
    max-height: 42svh;
  }

  .lightbox-nav {
    top: calc(.5rem + 21svh);
  }

  .lightbox-info {
    max-height: min(34svh, 16.5rem);
  }

  .lightbox-info p {
    max-height: min(16svh, 7rem);
  }
}
