/* ---------------------------------------------------
   Zsófi Szimeonov — Portfolio landing page
   --------------------------------------------------- */

:root {
  --red: #C1272D;
  --black: #141414;
  --cream: #EDEAE2;
  --cream-dim: #DCD8CC;
  --white: #FAFAF7;

  --font-display: 'Archivo Black', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --gutter: clamp(24px, 5vw, 64px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-color: var(--red) var(--cream);
  scrollbar-width: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

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

a:hover {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" stroke-linejoin="round" d="M12 8S9.75 5 7 5a4.5 4.5 0 0 0-4.5 4.5C2.5 14.5 12 20 12 20s9.5-5.5 9.5-10.5A4.5 4.5 0 0 0 17 5c-2.75 0-5 3-5 3Z"></path></svg>') 12 12, auto;
}

ul, dl { margin: 0; padding: 0; }

h1, h2 {
  font-family: var(--font-display);
  margin: 0;
  text-transform: uppercase;
  line-height: 0.92;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection{
  background: var(--black);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 240, 230, 0.15);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--red);
  letter-spacing: 0.02em;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__list a {
  color: var(--red);
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
}

.nav__list a.is-active {
  color: var(--red);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------
   Hero
   --------------------------------------------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
  animation: hero-settle 1.4s var(--ease) forwards;
}

@keyframes hero-settle {
  from { transform: scale(1.1); opacity: 0.7; }
  to   { transform: scale(1.04); opacity: 1; }
}

.hero__title {
  position: relative;
  z-index: 2;
  color: var(--red);
  font-size: clamp(56px, 15vw, 100vw);
  text-align: center;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: hero-title-in 0.9s 0.3s var(--ease) forwards;
}

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 48px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero__name { margin: 0; text-align: left; }
.hero__role { margin: 0; text-align: right; }

/* ---------------------------------------------------
   About
   --------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--cream);
}

.about__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: grayscale(1);
}

.about__content {
  padding: clamp(48px, 8vw, 110px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__content h2 {
  color: var(--red);
  font-size: clamp(40px, 6vw, 120px);
  margin-bottom: clamp(24px, 4vw, 48px);
}

.about__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about__content li {
  position: relative;
  padding-left: 24px;
  font-weight: 600;
  color: var(--red);
  font-size: clamp(15px, 1.3vw, 24px);
}

.about__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

/* ---------------------------------------------------
   Project sections (Rodolfo / Konyha / Padthai / Onov)
   --------------------------------------------------- */

.project {
  position: relative;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(120px, 14vw, 190px);
  background: linear-gradient(90deg, var(--cream) 0 50%, var(--red) 50% 100%);
}

.project--cream-right {
  background: linear-gradient(90deg, var(--red) 0 50%, var(--cream) 50% 100%);
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
}

.project__cell {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--black);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.project__cell:nth-child(2) { margin-top: clamp(0px, 4vw, 0px); }

.project__cell img,
.project__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__title {
  position: absolute;
  bottom: clamp(28px, 5vw, 56px);
  font-size: clamp(40px, 8vw, 108px);
  color: var(--red);
  white-space: nowrap;
}

.project__title--left { left: var(--gutter); }
.project__title--right { right: var(--gutter); }
.project__title--on-red { color: var(--red); }

/* ---------------------------------------------------
   Contact / Footer
   --------------------------------------------------- */

.contact {
  background: var(--cream);
  color: var(--red);
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  text-align: left;
}

.contact h2 {
  color: var(--red);
  font-size: clamp(48px, 9vw, 130px);
  margin-bottom: 8px;
}

.contact__lead {
  margin: 0 0 clamp(36px, 6vw, 64px);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.contact__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(237, 234, 226, 0.2);
}

.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--red);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.contact__row dt {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.contact__row dd {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
}

.contact__row a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.contact__row a:hover {
  border-color: var(--red);
}

.site-footer {
  background: var(--black);
  color: var(--cream-dim);
  padding: 20px var(--gutter) 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-top: 1px solid rgba(237, 234, 226, 0.15);
}

.site-footer__top {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------
   Reveal on scroll
   --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---------------------------------------------------
   Responsive
   --------------------------------------------------- */

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__media img { min-height: 320px; }

  .project__title {
    position: static;
    display: block;
    margin-bottom: clamp(20px, 6vw, 32px);
    text-align: left;
  }

  .project--cream-left{
    background: var(--red);
    .project__title { 
      color: var(--cream) !important; 
    }
  }

  .project--cream-right{
    background: var(--cream);
    .project__title { 
      color: var(--red) !important; 
    }
  }

  .project {
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: clamp(56px, 9vw, 120px);
  }

  .project__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
  }

  .project__cell:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .project__cell:nth-child(2) { margin-top: 0; }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .nav__list.is-open {
    max-height: 420px;
  }

  .nav__list li {
    border-top: 1px solid rgba(20, 20, 20, 0.1);
  }

  .nav__list a {
    display: block;
    padding: 16px var(--gutter);
  }

  .nav__list a::after { display: none; }

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

  .project__cell {
    width: 100%;
  }

  .project__video {
    width: 100%;
    display: block;
  }

  .project__cell:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  .contact__row {
    flex-direction: column;
    gap: 4px;
  }
}

.project__video-wrap {
  position: relative;
  width: 100%;
}

.project__video {
  display: block;
  width: 100%;
  height: auto;
}

.project__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 64px;
  height: 64px;

  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);

  transition: transform 0.25s ease, background 0.25s ease;
}

.project__play span {
  display: block;

  width: 0;
  height: 0;

  margin-left: 3px;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.95);
}

.project__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.25);
}

