:root {
  color-scheme: dark;
  --ink: #f8f4ef;
  --muted: rgba(248, 244, 239, 0.72);
  --soft: rgba(248, 244, 239, 0.12);
  --line: rgba(248, 244, 239, 0.2);
  --glass: rgba(12, 15, 20, 0.36);
  --glass-strong: rgba(12, 15, 20, 0.72);
  --accent: #d9b56f;
  --accent-2: #a8d7c5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 98px;
  color: var(--ink);
  background: #050608;
}

a {
  color: inherit;
  text-decoration-color: rgba(217, 181, 111, 0.78);
  text-underline-offset: 0.18em;
}

.video-background,
.video-fallback,
.atmosphere {
  position: fixed;
  inset: 0;
}

.video-background {
  z-index: -3;
  overflow: hidden;
  background: #050608;
}

#background-video,
#background-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-fallback {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.78), rgba(5, 6, 8, 0.32) 48%, rgba(5, 6, 8, 0.72)),
    radial-gradient(circle at 12% 22%, rgba(217, 181, 111, 0.2), transparent 36%),
    radial-gradient(circle at 88% 70%, rgba(168, 215, 197, 0.18), transparent 38%);
}

.atmosphere {
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.24), rgba(5, 6, 8, 0.86) 78%);
}

.site-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.wordmark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(248, 244, 239, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.34);
  backdrop-filter: blur(18px);
}

.language-switch {
  justify-self: center;
  display: flex;
  gap: 0.28rem;
  padding: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.34);
  backdrop-filter: blur(18px);
}

.language-switch button {
  min-width: 52px;
  padding: 0.52rem 0.62rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.active {
  color: #111111;
  background: var(--accent);
}

.nav-links a {
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(248, 244, 239, 0.1);
}

.hero-panel {
  width: min(760px, 100%);
  margin: auto 0 12vh;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--glass-strong), rgba(12, 15, 20, 0.38));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: clamp(3.9rem, 10vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.intro,
.glass-card p,
.footer-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.intro {
  max-width: 58ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 244, 239, 0.08);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: rgba(217, 181, 111, 0.74);
  background: var(--accent);
  color: #111111;
}

.button.ghost {
  backdrop-filter: blur(16px);
}

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

.glass-card,
.footer-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.glass-card {
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compact-list a,
.compact-list p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.timeline {
  display: grid;
  gap: 1.15rem;
}

.timeline div,
.experience-list div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-card {
  margin: 1rem 0;
}

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

.experience-list p {
  margin: 0 0 1rem;
}

.tag-list,
.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li,
.language-list li {
  padding: 0.65rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 244, 239, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.footer-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.footer-card p {
  margin: 0;
}

.footer-card a {
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(1.2rem, 4vw, 2.4rem);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.contact-copy h2 {
  max-width: 10ch;
  margin-bottom: 0;
}

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

.contact-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(248, 244, 239, 0.24);
  border-radius: 18px;
  padding: 0.86rem 0.95rem;
  color: var(--ink);
  background: rgba(5, 6, 8, 0.42);
  font: inherit;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(217, 181, 111, 0.78);
  box-shadow: 0 0 0 3px rgba(217, 181, 111, 0.16);
}

.form-submit {
  width: fit-content;
  min-width: 160px;
}

.form-status {
  min-height: 1.5rem;
  color: var(--accent-2);
  font-weight: 850;
}

.form-status.error {
  color: #ffc0c0;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sound-control {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.82rem;
  width: min(92vw, 430px);
  padding: 0.78rem 1rem;
  border: 1px solid rgba(217, 181, 111, 0.48);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(217, 181, 111, 0.2), rgba(168, 215, 197, 0.12)),
    rgba(8, 10, 14, 0.78);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  cursor: pointer;
}

.sound-note {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #111111;
  background: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.sound-pulse {
  position: absolute;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 181, 111, 0.2);
  animation: soundPulse 2.2s ease-in-out infinite;
}

.sound-control[aria-pressed="true"] .sound-pulse {
  animation: none;
  opacity: 0;
}

.sound-copy {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.sound-copy span {
  font-size: 0.94rem;
  font-weight: 900;
}

.sound-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

@keyframes soundPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }

  50% {
    opacity: 0.12;
    transform: scale(1.32);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 22px, 640px);
    padding-top: 12px;
  }

  .hero {
    min-height: auto;
  }

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

  .language-switch {
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .nav-links {
    gap: 0.1rem;
  }

  .nav-links a {
    padding: 0.48rem 0.55rem;
    font-size: 0.78rem;
  }

  .hero-panel {
    margin: 20vh 0 1rem;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

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

  .span-7,
  .span-6,
  .span-5 {
    grid-column: auto;
  }

  .experience-list {
    grid-template-columns: 1fr;
  }

  .footer-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy h2 {
    max-width: 100%;
  }

  .form-submit {
    width: 100%;
  }

  .sound-control {
    bottom: 12px;
    grid-template-columns: 42px 1fr;
    width: calc(100vw - 24px);
    padding: 0.7rem 0.82rem;
  }

  .sound-note,
  .sound-pulse {
    width: 42px;
    height: 42px;
  }

  .sound-copy span {
    font-size: 0.86rem;
  }

  #background-video,
  #background-video iframe {
    width: 220vh;
    height: 124vw;
  }
}

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