: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;
}

.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(4, 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);
}

.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;
}

.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);
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  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 {
    grid-template-columns: 1fr;
  }

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

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

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

  .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 {
    max-width: none;
  }

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

  .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;
  }
}
