:root {
  --bg: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f6f3ec;
  --muted: #b8b2a8;
  --accent: #efe6d7;
  --max-width: 1240px;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, button { font: inherit; }
main section[id] { scroll-margin-top: 110px; }

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.03), transparent 24%),
    linear-gradient(180deg, rgba(10,10,10,0.56) 0%, rgba(13,13,13,0.74) 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

#vanta-bg canvas { display: block; }

.ui-font,
.nav a,
.brand,
.button,
.footer-links,
.availability,
.intro-copy,
.text-copy,
.contact-meta,
.expertise-list,
.section-label,
.about-facts,
.marquee-item,
.intro-role,
.menu-toggle,
.contact-form,
.contact-form input,
.contact-form textarea,
.contact-form button,
.field-label {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  line-height: 1;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  color: var(--text);
}

.lang-link.is-active {
  color: var(--accent);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
}

.hero { padding: 5rem 0 3rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: start;
  grid-template-areas: "content side";
}

.hero-content { grid-area: content; }

.hero-side {
  grid-area: side;
  display: grid;
  gap: 1rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 9ch;
}

.hero-subtitle {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 42rem;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-weight: 500;
}

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

.button-primary {
  background: var(--accent);
  color: #111111;
  border: none;
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.portrait-card,
.intro-card,
.about-card,
.contact-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 0;
  background: rgba(255,255,255,0.02);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.02);
}

.intro-card,
.about-card { padding: 1.5rem; }

.intro-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.intro-name {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.intro-role {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.intro-copy-offset { margin-top: 1.25rem; }

.section-shell {
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@supports (content-visibility: auto) {
  .section-shell {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.section-heading {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.text-copy {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
  max-width: 52rem;
}

.text-copy-first { margin-top: 0; }

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.about-facts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.about-fact {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--accent);
  font-size: 0.98rem;
}

.expertise-layout { display: grid; gap: 2rem; }

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
  color: var(--accent);
  font-size: 1rem;
}

.expertise-item {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  margin-top: 1rem;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marqueeMove 26s linear infinite;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0;
}

.marquee-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-panel { display: grid; gap: 1.25rem; }

.contact-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact-link-card {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-link-card .button,
.contact-form .button {
  width: 100%;
  min-height: 56px;
}

.contact-form {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.field-group { display: grid; gap: 0.45rem; }

.field-label {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f6f3ec;
  outline: none;
}

.field::placeholder { color: #9f988f; }

.field:focus-visible {
  border-color: rgba(239, 230, 215, 0.7);
  box-shadow: 0 0 0 3px rgba(239, 230, 215, 0.08);
}

.botcheck { display: none !important; }

textarea.field {
  min-height: 140px;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.contact-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  padding: 0 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.footer-brand-copy {
  display: grid;
  gap: 0.25rem;
}

.footer-title {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
  max-width: 28rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.js .hero .reveal {
  opacity: 0;
  transform: translateY(18px);
}

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

@keyframes marqueeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-delay-1,
  .js .reveal-delay-2,
  .js .reveal-delay-3 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .marquee-track { animation: none !important; }
}

@media (max-width: 1080px) {
  .about-layout,
  .expertise-layout,
  .contact-panel,
  .hero-grid { grid-template-columns: 1fr; }

  .hero { padding: 4rem 0 2.5rem; }

  .section-shell { padding: 3.25rem 0; }
}

@media (max-width: 900px) {
  .marquee-track { gap: 0.75rem; }
  .marquee-item { width: 50px; height: 50px; }
  .marquee-item img { width: 22px; height: 22px; }
  .site-header .container { min-height: 72px; }

  .hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    max-width: 11ch;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .about-layout { gap: 1.5rem; }

  .expertise-list {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (max-width: 760px) {
  #vanta-bg { opacity: 0.24; }

  .container { width: min(var(--max-width), calc(100% - 1.25rem)); }

  .site-header .container {
    flex-wrap: wrap;
    padding: 0.85rem 0;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .nav {
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.5rem 0 0.25rem;
  }

  .lang-switch { order: 1; }
  .menu-toggle { order: 2; }

  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }

  .hero {
    padding: 2.5rem 0 1.8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "side";
    gap: 1.1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
    line-height: 0.98;
    max-width: 100%;
    text-wrap: balance;
  }

  .hero-subtitle { margin-top: 0.9rem; }

  .hero-actions {
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .button { width: 100%; min-height: 50px; }

  .portrait-card {
    aspect-ratio: 3 / 2;
    align-self: start;
  }

  .portrait-card { order: 2; }
  .intro-card { order: 1; }

  .intro-card,
  .about-card,
  .contact-link-card,
  .contact-form { padding: 1.15rem; }

  .section-shell { padding: 2.75rem 0; }

  .section-heading { font-size: clamp(1.9rem, 10vw, 2.8rem); }

  .text-copy,
  .intro-copy,
  .hero-subtitle,
  .contact-note { font-size: 0.98rem; }

  .about-layout,
  .expertise-layout,
  .contact-panel,
  .contact-actions { gap: 1.2rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links {
    justify-content: flex-start;
    max-width: none;
  }

  .marquee-wrap::before,
  .marquee-wrap::after { width: 36px; }

  .marquee-track { gap: 0.6rem; }
  .marquee-item { width: 42px; height: 42px; }
  .marquee-item img { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .marquee-track { gap: 0.45rem; }
  .marquee-item { width: 34px; height: 34px; }
  .marquee-item img { width: 14px; height: 14px; }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.65rem;
  }

  .brand-text {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
  }

  .lang-switch {
    gap: 0.35rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .footer-brand-link {
    gap: 0.75rem;
  }

  .footer-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
  }

  .footer-title {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }

  .footer-tagline,
  .footer-links a,
  .footer-copy {
    font-size: 0.84rem;
  }

  .hero { padding-top: 2.1rem; }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    letter-spacing: -0.04em;
  }

  .hero-subtitle,
  .text-copy,
  .intro-copy,
  .contact-note {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .intro-name { font-size: 1.65rem; }
  .intro-role { font-size: 0.88rem; }

  .portrait-card {
    aspect-ratio: 3 / 2;
    border-radius: 22px;
  }

  .portrait-card img {
    border-radius: 22px;
    object-position: center center;
  }

  .intro-card,
  .about-card,
  .contact-link-card,
  .contact-form {
    border-radius: 22px;
    padding: 1rem;
  }

  .section-shell { padding: 2.25rem 0; }
  .section-label { margin-bottom: 0.75rem; }

  .about-facts {
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .about-fact,
  .expertise-item {
    padding-bottom: 0.7rem;
    font-size: 0.93rem;
  }
}
