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

:root {
  --black: #0a0a0a;
  --white: #f5f2ed;
  --accent: #6d39f5;
  --mid: #1a1a1a;
  --muted: #888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: color-mix(in srgb, var(--accent) 48%, var(--white));
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: difference;
}
.cursor.expand { width: 40px; height: 40px; }

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  mix-blend-mode: difference;
}
.nav-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-links {
  display: flex; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 60px;
  overflow: hidden;
  color: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #f5f2ed;
  will-change: transform;
}
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f5f2ed 0%, #efe8de 45%, #e5ddd1 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-photo-area {
  width: 45%;
  height: 100%;
  background: #e5ddd1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.hero-photo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 55%;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.hero-sub {
  margin-top: 24px;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}
.hero-sub-highlight {
  color: var(--accent);
}
.hero-scroll {
  position: absolute;
  bottom: 60px;
  right: 48px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.3); opacity: 0.3; }
}

section { position: relative; }

/* Portfolio */
.portfolio {
  background: var(--black);
  color: var(--white);
  padding: 120px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.portfolio-sub {
  font-size: 13px;
  color: #aaa;
  max-width: 420px;
  line-height: 1.8;
}
.portfolio-download {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.portfolio-download:hover {
  color: var(--white);
  background: transparent;
}

/* Contact */
.contact {
  background: var(--white);
  color: var(--black);
  padding: 120px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: 0.02em;
  line-height: 0.85;
  color: var(--black);
}
.contact-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
.contact-sub {
  font-size: 13px;
  color: #666;
  max-width: 500px;
  line-height: 1.8;
}
.contact-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.contact-linkedin:hover {
  color: var(--black);
  background: transparent;
}
.contact-linkedin-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}
.contact-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-field label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 14px;
  color: var(--black);
  background: transparent;
  border: 1px solid #ddd;
  transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form-status {
  margin: 0;
  min-height: 1.25em;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  text-align: center;
}
.contact-submit {
  align-self: center;
  margin-top: 8px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  cursor: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.contact-submit:hover {
  color: var(--black);
  background: transparent;
}
.contact-submit:disabled,
.contact-submit.is-submitting,
.contact-submit.is-submitted {
  opacity: 0.92;
}
.contact-submit:disabled:hover,
.contact-submit.is-submitting:hover,
.contact-submit.is-submitted:hover {
  color: var(--white);
  background: var(--accent);
}
.contact-footer {
  margin-top: 60px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  border-top: 1px solid #ddd;
  padding-top: 32px;
  width: 100%;
  text-align: center;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

@media (max-width: 820px) {
  nav { padding: 20px 24px; }
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    flex: 0 0 auto;
    transform: none !important;
  }
  .hero-img-placeholder {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    background: #e5ddd1;
  }
  .hero-photo-area {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .hero-photo-area img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 40px 24px;
  }
  .hero-sub {
    max-width: 420px;
    margin-top: 0;
  }
  .hero-scroll {
    right: 24px;
    bottom: 32px;
  }
  .portfolio,
  .contact {
    padding: 96px 24px;
  }
  .portfolio-download {
    width: 100%;
    max-width: 320px;
  }
  .contact-linkedin,
  .contact-submit {
    width: 100%;
    max-width: 320px;
  }
}
