:root {
  --bg-primary: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #1A1A1A;
  --text-dimmed: #767676;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-slow: 1.25s;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

html {
  -webkit-text-size-adjust: 100%;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'tnum';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
  position: relative;
}

::selection {
  background-color: #000000;
  color: #FFFFFF;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #000000;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.2px solid rgba(0, 0, 0, 0.3) !important;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
  will-change: transform;
}

body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
}

body.cursor-hover .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: rgba(0, 0, 0, 0.55) !important;
}

@media (hover: none) or (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@keyframes slowFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.anim-entry {
  opacity: 0;
  animation: slowFadeUp var(--duration-slow) var(--ease-cinematic) forwards;
  will-change: transform, opacity;
}

.delay-0 { animation-delay: 0.08s; }
.delay-1 { animation-delay: 0.20s; }
.delay-2 { animation-delay: 0.38s; }
.delay-3 { animation-delay: 0.54s; }
.delay-4 { animation-delay: 0.70s; }
.delay-5 { animation-delay: 0.86s; }
.delay-6 { animation-delay: 1.02s; }
.delay-7 { animation-delay: 1.18s; }
.delay-8 { animation-delay: 1.34s; }

@media (prefers-reduced-motion: reduce) {
  .anim-entry {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.bg-artwork-wrapper {
  position: fixed;
  right: 0;
  bottom: 0;
  width: clamp(520px, 48vw, 840px);
  height: clamp(580px, 78vh, 980px);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  opacity: 0.95;
  transition: opacity 0.4s ease;
}

.bg-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 1360px) and (min-width: 901px) {
  .bg-artwork-wrapper {
    width: clamp(400px, 42vw, 620px);
    height: clamp(480px, 68vh, 760px);
    opacity: 0.65;
  }
}

@media (max-width: 900px) {
  .bg-artwork-wrapper {
    display: none !important;
  }
}

.page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.header {
  padding: 8px 0 36px;
  text-align: left;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.site-logo {
  width: clamp(38px, 5.5vw, 50px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.name-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  color: #000000 !important;
  opacity: 1 !important;
  line-height: 1.15;
  text-align: left;
  cursor: default;
  transform: none !important;
  transition: none !important;
}

.content-lines {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
  width: 100%;
}

.zoom-line {
  font-family: var(--font-sans);
  font-size: clamp(1.18rem, 2.5vw, 1.75rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
  cursor: default;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s ease, opacity 0.25s ease;
  transform-origin: left center;
  word-break: normal;
  overflow-wrap: break-word;
  opacity: 1;
}

.zoom-line strong {
  font-weight: 600;
  color: #000000;
  transition: color 0.22s ease;
}

.zoom-line.hero-line {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.035em;
}

.zoom-line.section-heading {
  margin-top: 14px;
  font-size: clamp(1.3rem, 2.8vw, 1.95rem);
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.035em;
}

.zoom-line.contact-line {
  color: #000000;
  font-weight: 500;
  margin-top: 14px;
}

.timeline-tag {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #000000;
  display: inline;
  letter-spacing: -0.02em;
  transition: color 0.22s ease;
}

.zoom-line:hover,
.zoom-line.is-active-near {
  transform: scale(1.025) translateX(8px);
  color: #000000;
  opacity: 1 !important;
}

.zoom-line:hover strong,
.zoom-line.is-active-near strong {
  color: #000000;
}

.content-lines:hover .zoom-line:not(:hover) {
  opacity: 0.25;
  color: var(--text-dimmed);
}

.content-lines:hover .zoom-line:not(:hover) strong,
.content-lines:hover .zoom-line:not(:hover) .timeline-tag {
  color: var(--text-dimmed);
}

.header:hover .name-title,
.content-lines:hover ~ .header .name-title,
body:hover .name-title,
.name-title:hover {
  opacity: 1 !important;
  color: #000000 !important;
}

.email-link {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.email-link:hover {
  opacity: 0.65;
}

@media (max-width: 768px) {
  .page-container {
    padding: 24px 18px 64px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .header {
    padding: 4px 0 24px;
  }

  .brand-header {
    gap: 12px;
  }

  .site-logo {
    width: clamp(34px, 8vw, 44px);
  }

  .content-lines {
    gap: 22px;
  }

  .name-title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem) !important;
  }

  .zoom-line {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    line-height: 1.5;
  }

  .zoom-line.hero-line {
    font-size: clamp(1.15rem, 4.6vw, 1.55rem);
  }

  .zoom-line.section-heading {
    font-size: clamp(1.15rem, 4.4vw, 1.45rem);
    margin-top: 8px;
  }

  .zoom-line:hover {
    transform: scale(1.02) translateX(4px);
  }
}

@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
  }
}

#netlify-drawer,
iframe#netlify-drawer,
.netlify-badge,
[data-netlify-drawer],
[id*="netlify"],
div[class*="netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
