/* ---------------------------------------------------------------
   Deniz Soysal — split-screen landing
   Plain CSS, no framework. Left: black. Right: cold cream.
----------------------------------------------------------------- */

:root {
  --black: #0d0d0d;
  --cream: #ece7dd;          /* cold, slightly grey cream */
  --cream-soft: #f4f0e8;
  --line: rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.panel--dark {
  background: var(--black);
  color: #ffffff;
  justify-content: flex-start;
}

.panel--light {
  background: #ffffff;
  color: var(--black);
  justify-content: flex-end;
}

.panel__inner--right {
  text-align: right;
}

/* ---- Name ------------------------------------------------------ */

.name {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.name__line {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 0.9s var(--ease) forwards;
}

.name__line:nth-child(2) {
  animation-delay: 0.12s;
}

.role {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(236, 231, 221, 0.55);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

/* ---- Nav ------------------------------------------------------- */

.nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav__link {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  width: fit-content;
  margin-left: auto;
  padding-bottom: 2px;
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
}

.nav__link:nth-child(1) { animation-delay: 0.36s; }
.nav__link:nth-child(2) { animation-delay: 0.44s; }
.nav__link:nth-child(3) { animation-delay: 0.52s; }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Motion ---------------------------------------------------- */

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .name__line,
  .role,
  .nav__link {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---- Responsive: stack on narrow screens ----------------------- */

@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .panel--light {
    justify-content: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .panel__inner--right {
    text-align: left;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .nav__link {
    margin-left: 0;
  }
}
