/* ============================================
   Thomas Damen — v2
   ============================================ */

:root {
  --bg: #080406;
  --text: #e8e4df;
  --copper: #A17643;
  --copper-dark: #8a6439;
  --border: rgba(232, 228, 223, 0.06);
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: none;
}

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

::selection {
  background: var(--copper);
  color: var(--bg);
}

/* ── Utilities ── */
.label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.4;
}

.body-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(232, 228, 223, 0.7);
  margin-bottom: 1.2em;
}

.body-text:last-of-type {
  margin-bottom: 0;
}

.body-text--note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(232, 228, 223, 0.35);
  border-left: 2px solid var(--copper);
  padding-left: 14px;
  margin-top: 20px;
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232, 228, 223, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .cursor-dot,
body:hover .cursor-ring {
  opacity: 1;
}

a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--copper);
}

@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto;
  }
  a, button {
    cursor: auto;
  }
}

/* ── Mouse Glow ── */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 118, 67, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
}

@media (hover: none) {
  .mouse-glow {
    display: none !important;
  }
}

/* ── Film Grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(232, 228, 223, 0.04);
  background: rgba(8, 4, 6, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav__logo:hover {
  opacity: 1;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__lang {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s;
  padding: 4px 8px;
  border: 1px solid var(--border);
}

.nav__lang:hover {
  opacity: 1;
}

.nav__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 20px;
  padding: 0;
}

.nav__menu span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
  opacity: 0.5;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__menu.is-active span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav__menu.is-active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav__links {
    display: none;
  }
  .nav__menu {
    display: flex;
  }
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}

.mobile-menu a:hover {
  opacity: 1;
  color: var(--copper);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 24px;
}

.hero__content {
  text-align: center;
  margin-top: -8vh;
}

.hero__label {
  letter-spacing: 5px;
  opacity: 0.3;
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
}

.hero__title .typewriter {
  display: inline;
}

.hero__title .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--copper);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s ease infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero__meta .label {
  opacity: 0.25;
  letter-spacing: 3px;
}

.hero__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.3;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.1; }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 52px;
  }
}

/* ── Section ── */
.section {
  padding: 80px 24px;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 228, 223, 0.06) 50%, transparent);
}

.section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 540px;
}

.section__heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 24px;
}

.section__heading .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--copper);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s ease infinite;
}

.section--cta {
  padding: 100px 24px;
}

@media (min-width: 768px) {
  .section {
    padding: 120px 40px;
  }
  .section--cta {
    padding: 140px 40px;
  }
  .section__heading {
    font-size: 40px;
  }
}

/* ── Intro ── */
.intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.intro__image {
  width: 100%;
  max-width: 300px;
}

.intro__image img {
  width: 100%;
  filter: grayscale(100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.intro__text {
  flex: 1;
}

.intro__role {
  margin-top: 24px;
}

.intro__role a {
  color: var(--copper);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.intro__role a:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .intro {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }
  .intro__image {
    flex-shrink: 0;
    width: 300px;
  }
}

/* ── Speaking ── */
.speaking {
  position: relative;
}

.speaking__image--full {
  width: 100vw;
  max-height: 60vh;
  overflow: hidden;
}

.speaking__image--full img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  filter: grayscale(100%);
}

.speaking .section__inner {
  padding: 80px 24px;
}

.speaking__gallery {
  display: flex;
  gap: 2px;
  width: 100%;
}

.speaking__gallery img {
  width: 50%;
  max-height: 40vh;
  object-fit: cover;
  filter: grayscale(100%);
}

@media (min-width: 768px) {
  .speaking .section__inner {
    padding: 120px 40px;
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ── Essay Cards ── */
.essay-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.3s;
}

.essay-card:first-of-type {
  border-top: 1px solid var(--border);
}

.essay-card__number {
  flex-shrink: 0;
  padding-top: 4px;
}

.essay-card__content {
  flex: 1;
  min-width: 0;
}

.essay-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.3s;
}

.essay-card__teaser {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.4;
  margin-top: 6px;
}

.essay-card__meta {
  display: block;
  margin-top: 8px;
  opacity: 0.25;
}

.essay-card__arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0.2;
  transition: opacity 0.3s, color 0.3s;
  flex-shrink: 0;
  padding-top: 4px;
}

.essay-card:hover .essay-card__title {
  color: var(--copper);
}

.essay-card:hover .essay-card__arrow {
  opacity: 1;
  color: var(--copper);
}

/* ── Services ── */
.service {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service:first-of-type {
  border-top: 1px solid var(--border);
}

.service__type {
  margin-bottom: 16px;
}

.service__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.service__cta {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--copper);
  margin-top: 16px;
  transition: opacity 0.3s;
}

.service__cta:hover {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .service__title {
    font-size: 28px;
  }
}

/* ── CTA Link ── */
.cta-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid rgba(161, 118, 67, 0.3);
  padding-bottom: 4px;
  margin-top: 32px;
  transition: border-color 0.3s;
}

.cta-link:hover {
  border-color: var(--copper);
}

/* ── Contact Photo ── */
.contact-photo {
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  filter: grayscale(100%);
}

/* ── Footer ── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.footer__col a:hover {
  opacity: 1;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.3;
  margin-top: 4px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.2;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ── Sound Toggle ── */
.sound-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  opacity: 0.3;
  transition: opacity 0.3s;
  background: rgba(8, 4, 6, 0.6);
}

.sound-toggle:hover {
  opacity: 0.6;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ── Typewriter scroll headings ── */
.typewriter-scroll span {
  display: inline;
}

.typewriter-scroll .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--copper);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s ease infinite;
}

.typewriter-cursor.is-done {
  animation: cursorFade 0.8s ease forwards;
  animation-delay: 1s;
}

@keyframes cursorFade {
  to { opacity: 0; }
}
