:root {
  --bg: #12090b;
  --bg-soft: #1b1013;
  --panel: rgba(22, 14, 17, 0.78);
  --panel-strong: rgba(15, 9, 12, 0.9);
  --text: #f4ede7;
  --muted: #bfaea8;
  --line: rgba(255, 138, 122, 0.16);
  --coral: #d6291f;
  --gold: #ff5d52;
  --mint: #ff866e;
  --wine: #7d1119;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 41, 31, 0.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(125, 17, 25, 0.24), transparent 24%),
    linear-gradient(160deg, #10090a 0%, #150d10 44%, #1a1114 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 88%);
}

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

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

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(92px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: 1rem;
  left: -8rem;
  background: var(--coral);
}

.page-glow-right {
  top: 18rem;
  right: -8rem;
  background: var(--gold);
}

.page-java .page-glow-right {
  background: var(--wine);
  opacity: 0.26;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: radial-gradient(circle at center, rgba(214, 41, 31, 0.22), rgba(125, 17, 25, 0.08));
  box-shadow: 0 12px 36px rgba(214, 41, 31, 0.22);
  overflow: hidden;
}

.brand-name {
  font-size: 1rem;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18);
  filter: drop-shadow(0 8px 18px rgba(214, 41, 31, 0.28));
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.site-nav a {
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(214, 41, 31, 0.14);
  transform: translateY(-1px);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.language-switcher a {
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease,
    transform 180ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.is-active {
  color: var(--text);
  background: rgba(214, 41, 31, 0.14);
  transform: translateY(-1px);
}

main {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
}

.hero-page {
  padding-top: 2.5rem;
}

.hero-page-solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-page-solo .hero-copy {
  max-width: 74rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 93, 82, 0.28);
  background: rgba(214, 41, 31, 0.1);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 1rem 0 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-page .hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  max-width: 13ch;
}

.hero-copy h1 span,
.section-heading h2,
.cta-panel h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.hero-text {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff4ef;
  background: linear-gradient(135deg, var(--mint), var(--coral));
  box-shadow: 0 20px 44px rgba(214, 41, 31, 0.34);
}

.button-secondary {
  border: 1px solid rgba(255, 93, 82, 0.22);
  background: rgba(214, 41, 31, 0.06);
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 0 18px rgba(255, 93, 82, 0.5);
}

.hero-panel,
.focus-card,
.value-card,
.info-card,
.service-card,
.portfolio-card,
.roadmap-card,
.note-panel,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease,
    background-color 220ms ease;
}

.hero-panel:hover,
.hero-panel:focus-within,
.focus-card:hover,
.focus-card:focus-within,
.value-card:hover,
.value-card:focus-within,
.info-card:hover,
.info-card:focus-within,
.service-card:hover,
.service-card:focus-within,
.portfolio-card:hover,
.portfolio-card:focus-within,
.roadmap-card:hover,
.roadmap-card:focus-within,
.note-panel:hover,
.note-panel:focus-within,
.cta-panel:hover,
.cta-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 93, 82, 0.28);
}

.hero-panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%),
    var(--panel-strong);
}

.panel-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(214, 41, 31, 0.18), transparent 62%),
    radial-gradient(circle at top, rgba(255, 93, 82, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.02);
}

.panel-logo img {
  width: min(100%, 18rem);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.38));
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 93, 82, 0.72);
}

.panel-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 93, 82, 0.12);
  background: rgba(214, 41, 31, 0.05);
}

.panel-card + .panel-card {
  margin-top: 1rem;
}

.panel-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-value {
  margin: 0.5rem 0 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.panel-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.code-card pre {
  margin: 0.8rem 0 0;
  white-space: pre-wrap;
  font-family: "Cascadia Code", "Fira Code", monospace;
  font-size: 0.94rem;
  color: #ffd2c8;
}

.panel-stack,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.panel-stack {
  margin-top: 1rem;
}

.panel-stack span,
.tag-row span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 93, 82, 0.15);
  background: rgba(214, 41, 31, 0.05);
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-panel h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-heading p,
.value-card p,
.focus-card p,
.service-card p,
.portfolio-card p,
.info-card p,
.roadmap-card p,
.note-panel p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
}

.focus-grid,
.value-grid,
.service-grid,
.roadmap-grid,
.info-strip {
  display: grid;
  gap: 1rem;
}

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

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

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

.roadmap-grid,
.info-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.value-card,
.service-card,
.portfolio-card,
.roadmap-card,
.note-panel,
.info-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
}

.card-kicker,
.info-card span,
.roadmap-card span {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-card h3,
.value-card h3,
.service-card h3,
.portfolio-card h3,
.roadmap-card h3,
.note-panel h3,
.info-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.18rem;
}

.card-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.15rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 93, 82, 0.16);
  background: rgba(214, 41, 31, 0.06);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 93, 82, 0.28);
  background: rgba(214, 41, 31, 0.1);
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  min-height: 18rem;
}

.subcategory-card .card-link {
  margin-top: auto;
}

.card-status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-status.is-soon {
  color: #ffd6ca;
  border: 1px solid rgba(255, 93, 82, 0.22);
  background: rgba(214, 41, 31, 0.12);
}

.card-status.is-live {
  color: #ffe7c0;
  border: 1px solid rgba(255, 196, 94, 0.24);
  background: rgba(255, 168, 75, 0.12);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  grid-column: span 4;
  min-height: 17rem;
}

.portfolio-card.featured {
  grid-column: span 6;
  background:
    radial-gradient(circle at top right, rgba(255, 93, 82, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(125, 17, 25, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%),
    var(--panel-strong);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-row {
  margin-top: 0.5rem;
}

.note-panel {
  margin-top: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(214, 41, 31, 0.1), transparent 34%),
    var(--panel);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.thumbnail-card {
  overflow: hidden;
}

.thumbnail-media,
.short-media,
.video-example-media {
  display: grid;
  gap: 0.75rem;
}

.media-presentation {
  position: relative;
}

.media-open-button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 7, 9, 0.8);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease;
}

.media-open-button:hover,
.media-open-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(10, 7, 9, 0.94);
}

.media-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-meta-row span {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 93, 82, 0.12);
  border-radius: 999px;
  background: rgba(214, 41, 31, 0.05);
}

.thumbnail-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  border-radius: calc(var(--radius-md) - 0.2rem);
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #581313, #d6291f 58%, #ff866e 100%);
}

.thumbnail-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0%, rgba(0, 0, 0, 0.32) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 14px,
      transparent 14px,
      transparent 28px
    );
  pointer-events: none;
}

.thumbnail-stage > * {
  position: relative;
  z-index: 1;
}

.thumbnail-stage.is-blue {
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #0f2741, #1276b8 58%, #69d1ff 100%);
}

.thumbnail-stage.is-gold {
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #473006, #c45c11 54%, #ffc857 100%);
}

.thumbnail-stage.is-purple {
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #2c103e, #8a2be2 58%, #ff80bf 100%);
}

.thumbnail-stage.is-green {
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #113321, #14824a 58%, #74e68f 100%);
}

.thumbnail-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thumbnail-stage h3 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.thumbnail-stage p {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.82);
}

.thumbnail-copy {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.thumbnail-copy h3 {
  margin: 0;
}

.thumbnail-note {
  margin-top: 1.5rem;
}

.thumbnail-note p + p {
  margin-top: 0.7rem;
}

.shorts-carousel-shell {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(214, 41, 31, 0.1), transparent 28%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.shorts-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.shorts-carousel-controls {
  display: inline-flex;
  gap: 0.75rem;
}

.carousel-button {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 93, 82, 0.18);
  border-radius: 999px;
  background: rgba(214, 41, 31, 0.08);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease, opacity 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 93, 82, 0.3);
  background: rgba(214, 41, 31, 0.14);
}

.carousel-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.shorts-viewport {
  overflow: hidden;
}

.shorts-track {
  display: flex;
  transition: transform 320ms ease;
  transform: translateX(calc(var(--carousel-index, 0) * -100%));
}

.short-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.embed-frame,
.video-example-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 93, 82, 0.12);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, #591212, #d6291f 58%, #ff866e 100%);
}

.embed-frame.is-landscape {
  aspect-ratio: 16 / 9;
}

.embed-frame.is-portrait {
  aspect-ratio: 9 / 16;
}

.embed-frame iframe,
.embed-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.embed-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 8%, rgba(0, 0, 0, 0.24) 100%),
    repeating-linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 12px,
      transparent 12px,
      transparent 26px
    );
  pointer-events: none;
  opacity: 0.14;
}

.short-media {
  width: min(100%, 22rem);
}

.short-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 0.35rem 0;
}

.short-copy h3,
.video-example-copy h3 {
  margin: 0;
  font-size: 1.45rem;
}

.video-example-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.video-example-grid > .portfolio-card {
  grid-column: span 4;
}

.video-example-grid > .portfolio-card.featured {
  grid-column: span 6;
}

.video-example-card,
.video-example-grid > .portfolio-card.featured {
  overflow: hidden;
}

.video-example-copy {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.media-lightbox[hidden] {
  display: none;
}

.has-lightbox-open {
  overflow: hidden;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  padding: 1rem;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 5, 7, 0.84);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.media-lightbox-dialog {
  position: relative;
  width: min(94vw, 1180px);
  max-height: none;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid rgba(255, 93, 82, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(214, 41, 31, 0.16), transparent 28%),
    var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: visible;
}

.media-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-lightbox-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-lightbox-close {
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 93, 82, 0.2);
  border-radius: 999px;
  background: rgba(214, 41, 31, 0.08);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.media-lightbox-content {
  display: grid;
  justify-items: center;
}

.media-lightbox-content .thumbnail-stage,
.media-lightbox-content .embed-frame {
  width: min(100%, 1080px);
}

.media-lightbox-content .embed-frame.is-portrait {
  width: min(100%, 420px);
}

.page-state main {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 10rem);
}

.state-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  padding: 4rem 0;
}

.state-copy {
  display: grid;
  gap: 1.25rem;
}

.state-code {
  margin: 0;
  color: var(--gold);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.state-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.state-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.state-copy h1 span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.state-panel {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.state-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.state-links a {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 93, 82, 0.16);
  background: rgba(214, 41, 31, 0.06);
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease;
}

.state-links a:hover,
.state-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 93, 82, 0.3);
  background: rgba(214, 41, 31, 0.1);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(circle at left center, rgba(214, 41, 31, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(125, 17, 25, 0.18), transparent 28%),
    var(--panel-strong);
}

.contact-links {
  display: grid;
  gap: 0.85rem;
}

.contact-links a {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 93, 82, 0.15);
  background: rgba(214, 41, 31, 0.06);
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 93, 82, 0.35);
  background: rgba(214, 41, 31, 0.1);
}

.page-linktree {
  display: flex;
  flex-direction: column;
}

.linktree-main {
  width: var(--container);
  margin: 0 auto;
  padding: 4rem 0 2rem;
  flex: 1;
  display: grid;
  place-items: center;
}

.linktree-shell {
  width: min(100%, 40rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 0.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(18, 10, 12, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.linktree-language {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.linktree-profile {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.linktree-avatar {
  width: clamp(10rem, 26vw, 13rem);
  aspect-ratio: 1;
  padding: 0.45rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255, 93, 82, 0.34), rgba(125, 17, 25, 0.2));
  box-shadow: 0 24px 70px rgba(214, 41, 31, 0.18);
}

.linktree-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.linktree-profile h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
}

.linktree-intro {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
}

.linktree-links {
  display: grid;
  gap: 0.95rem;
}

.linktree-link {
  display: grid;
  gap: 0.28rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 93, 82, 0.14);
  border-radius: 1.35rem;
  background: rgba(214, 41, 31, 0.06);
  transition: transform 180ms ease, border-color 180ms ease,
    background-color 180ms ease, box-shadow 180ms ease;
}

.linktree-link:hover,
.linktree-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 93, 82, 0.34);
  background: rgba(214, 41, 31, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.linktree-link.is-featured {
  background:
    linear-gradient(135deg, rgba(255, 93, 82, 0.16), rgba(125, 17, 25, 0.12)),
    rgba(214, 41, 31, 0.08);
}

.linktree-link-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.linktree-link-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.linktree-return {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.linktree-return .button {
  width: 100%;
  justify-content: center;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .cta-panel,
  .state-shell {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .value-grid,
  .service-grid,
  .roadmap-grid,
  .info-strip,
  .learning-grid,
  .thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .short-card {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  }

  .portfolio-card,
  .portfolio-card.featured {
    grid-column: span 12;
  }

  .video-example-grid > .portfolio-card,
  .video-example-grid > .portfolio-card.featured {
    grid-column: span 12;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .linktree-main {
    padding-top: 3rem;
  }

  .linktree-shell {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .language-switcher {
    align-self: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .cta-panel h2,
  .state-copy h1 {
    max-width: none;
  }

  .focus-grid,
  .value-grid,
  .service-grid,
  .roadmap-grid,
  .info-strip,
  .learning-grid,
  .thumbnail-grid {
    grid-template-columns: 1fr;
  }

  .shorts-carousel-head,
  .short-card {
    grid-template-columns: 1fr;
  }

  .shorts-carousel-head {
    display: grid;
  }

  .shorts-carousel-controls {
    justify-content: flex-start;
  }

  .short-media {
    width: min(100%, 22rem);
    margin: 0 auto;
  }

  .media-open-button {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .media-lightbox-dialog {
    width: min(96vw, 1180px);
    margin: 0 auto;
  }

  .media-lightbox-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .linktree-shell {
    padding: 1.4rem;
    border-radius: 1.8rem;
  }

  .linktree-avatar {
    width: min(100%, 11rem);
    border-radius: 1.6rem;
  }

  .linktree-avatar img {
    border-radius: 1.2rem;
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }
}

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

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

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