/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:       #0b0b09;
  --surface:  #111110;
  --border:   #1e1e1c;
  --text:     #ede9df;
  --muted:    #7e7b74;
  --accent:   #c6ff00;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-hero:    'Oswald', Impact, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h:  68px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-o: cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  cursor: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font: inherit; }
input, textarea { font: inherit; border: none; outline: none; background: none; width: 100%; }
sup { font-size: 0.45em; vertical-align: super; line-height: 0; }

/* Restore cursor on touch devices */
@media (pointer: coarse) {
  html    { cursor: auto; }
  button  { cursor: pointer; }
}

/* ============================================================
   GRAIN
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transition: width 0.2s var(--ease),
              height 0.2s var(--ease),
              opacity 0.2s var(--ease);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(237, 233, 223, 0.25);
  transition: width 0.35s var(--ease),
              height 0.35s var(--ease),
              border-color 0.35s var(--ease),
              background 0.35s var(--ease);
}

/* On hover of interactive elements */
body.cursor-hover .cursor-dot {
  width: 0; height: 0; opacity: 0;
}
body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background: rgba(198, 255, 0, 0.07);
}

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(100px, 12vw, 160px);
}

.label {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  height: var(--nav-h);
  transition: background 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(11, 11, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  border-bottom: 1px solid var(--border);
}

.nav__tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav__tagline:hover { color: var(--text); }

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover         { color: var(--text); }
.nav__links a:hover::after  { width: 100%; }

.nav__linkedin {
  display: flex;
  align-items: center;
  color: var(--muted);
  padding: 0.25rem;
  transition: color 0.25s var(--ease);
}
.nav__linkedin:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 26px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.is-open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  padding-inline: max(1.5rem, calc((100vw - 1200px) / 2));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  min-height: calc(100svh - var(--nav-h));
  align-items: stretch;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 2.5rem;
  min-width: 0;
}

.hero__photo-col {
  display: flex;
  align-items: center;
  padding-block: 2.5rem;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
}

/* Subtle inner gradient on the photo placeholder */
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);

  opacity: 0;
  animation: heroIn 0.8s var(--ease-o) 0.1s forwards;
}

.hero__name {
  display: flex;
  flex-direction: column;
}

.hero__row {
  display: flex;
}
.hero__row--right { justify-content: flex-end; }

.hero__first,
.hero__last {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 11rem);
  letter-spacing: 0.06em;
  line-height: 0.92;
  display: block;
  opacity: 0;
}

.hero__first {
  color: var(--text);
  animation: heroIn 0.9s var(--ease-o) 0.2s forwards;
}

.hero__last {
  color: transparent;
  -webkit-text-stroke: 3px var(--text);
  animation: heroIn 0.9s var(--ease-o) 0.35s forwards;
}

.hero__tagline {
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 1.25rem;

  opacity: 0;
  animation: heroIn 0.8s var(--ease-o) 0.47s forwards;
}

.hero__foot {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

  opacity: 0;
  animation: heroIn 0.8s var(--ease-o) 0.55s forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

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

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  transition: background 0.3s var(--ease),
              border-color 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.hero__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero__cta--secondary {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.hero__cta--secondary:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}


/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: 1.1rem;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marqueeScroll 28s linear infinite;
}

.marquee__sep {
  color: var(--accent);
  font-size: 0.4em;
  line-height: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   WORK
   ============================================================ */
.work { background: var(--bg); }

.work__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.work__list { margin: 0; }

.work__item {
  border-bottom: 1px solid var(--border);
}

.work__item-link {
  display: grid;
  grid-template-columns: 56px 260px 1fr 36px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  transition: padding 0.45s var(--ease);
}

.work__item:hover .work__item-link { padding: 2.75rem 0; }

.work__num {
  font-size: 0.675rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--font-body);
  transition: color 0.3s;
}

.work__item:hover .work__num { color: var(--accent); }

.work__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: letter-spacing 0.45s var(--ease);
}

.work__item:hover .work__name { letter-spacing: -0.01em; }

.work__arrow {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  transition: color 0.3s, transform 0.35s var(--ease);
}

.work__item:hover .work__arrow {
  color: var(--accent);
  transform: translate(5px, -5px);
}

/* Floating work preview */
.work-preview {
  position: fixed;
  width: 290px;
  height: 190px;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform, left, top;
}

.work-preview.is-visible {
  opacity: 1;
  transform: scale(1) rotate(-1.5deg);
}

.work-preview__img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  box-sizing: border-box;
}

.work-preview__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--surface); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 7vw, 9rem);
  align-items: start;
  margin-top: 4rem;
}

.about__image {
  aspect-ratio: 3 / 4;
  background: var(--border);
  border-radius: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--surface) 100%);
}

.about__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.about__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.about__bio {
  font-size: 1.1875rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.about__stats {
  display: flex;
  gap: 2.25rem;
  padding-top: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat__label {
  font-size: 0.675rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 10ch;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 10rem);
  align-items: start;
}

.contact__left { padding-top: 0.25rem; }

.contact__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-block: 1.5rem 2rem;
}

.contact__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.contact__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.625rem 1.125rem;
  transition: color 0.3s, border-color 0.3s;
}
.contact__linkedin:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Form */
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form__group label {
  font-size: 0.675rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__group input,
.form__group textarea {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  resize: none;
  transition: border-color 0.3s;
}

.form__group input:focus,
.form__group textarea:focus { border-color: var(--text); }

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--muted); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 100px;
  margin-top: 0.5rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-submit:hover {
  background: #d2ff26;
  transform: translateY(-2px);
}
.btn-submit:disabled {
  opacity: 0.6;
  transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children of lists */
.work__item[data-reveal]:nth-child(2) { transition-delay: 0.07s; }
.work__item[data-reveal]:nth-child(3) { transition-delay: 0.14s; }
.work__item[data-reveal]:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__photo-col { display: none; }

  .work__item-link {
    grid-template-columns: 44px 1fr 28px;
    gap: 1.25rem;
  }
  .work__tag { display: none; }

  .about__inner  { grid-template-columns: 1fr; }
  .about__image-col {
    position: static;
    flex-direction: row;
    gap: 0.5rem;
  }
  .about__image--portrait { aspect-ratio: 3/4; }
  .about__image--candid   { aspect-ratio: 3/4; }

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

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(11, 11, 9, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    display: none;
    z-index: 499;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 1.5rem; color: var(--text); }
  .nav__links a::after { display: none; }

  .nav__toggle { display: flex; }

  .hero__last { -webkit-text-stroke-width: 1px; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }

  .about__image-col { display: none; }
  .about__stats { gap: 1.5rem; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__meta, .hero__first, .hero__last, .hero__tagline, .hero__foot { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
}
