/* VARIABLES */

:root {
  --bg-paper: #e4dbc9;
  --ink: #2c2620;
  --maroon: #8c2f2f;
  --pink: #f2a6c6;
  --red: #c62b2b;
  --line: rgba(44, 38, 32, 0.35);
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-paper);
  background-image: url("images/background.png");
  background-repeat: repeat;
  background-size: 600px;
  color: var(--ink);
  font-family: "EB Garamond", serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

.page-wrap {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.nav-link {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.55;
}

/* HERO */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 20px 0;
  gap: 60px;
}

.hero-left {
  max-width: 880px;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 13rem;
  line-height: 0.9;
  color: var(--maroon);
  transform: rotate(4deg);
  display: inline-block;
  position: relative;
  z-index: 1;
}

.hero-text {
  font-size: 1.4rem;
  line-height: 1.9;
  font-weight: 700;
}

.phone-block {
  position: relative;
  height: 560px;
  margin-top: -70px;
  margin-bottom: 20px;
}

.phone-icon {
  position: absolute;
  top: -25px;
  left: -50px;
  width: 170px;
  transform-origin: top center;
  animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: translateY(-6px) rotate(-1deg);
  }
}

.phone-text {
  position: absolute;
  top: 300px;
  left: 340px;
  width: 640px;
  max-width: none;
}

.hero-text-secondary {
  margin-top: 200px;
  max-width: 880px;
}

/* FILM STRIP */

.filmstrip-wrap {
  position: relative;
  width: 520px;
  margin-top: -50px;
  margin-right: -310px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

.filmstrip {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.film-mask {
  position: absolute;
  inset: 0;
  z-index: 1;

  -webkit-mask-image: linear-gradient(#000, #000), url("images/filmroll.png");

  -webkit-mask-size:
    100% 100%,
    100% 100%;

  -webkit-mask-repeat: no-repeat;

  -webkit-mask-composite: xor;

  mask-image: linear-gradient(#000, #000), url("images/filmroll.png");

  mask-size:
    100% 100%,
    100% 100%;

  mask-repeat: no-repeat;

  mask-composite: exclude;
}

.film-photos {
  position: absolute;
  left: 47%;
  top: 50%;
  width: 42%;
  height: 89%;
  transform: translate(-50%, -50%) rotate(-6deg);
  display: flex;
  flex-direction: column;
}

.film-photos img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

/* PROJECTS */

.projects-section {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-top: 30px;
  margin-bottom: 50px;
}

.projects-wrapper-relative {
  position: relative;
  width: 100%;
  padding-bottom: 110px;
}

.hscroll-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hscroll-container::-webkit-scrollbar {
  display: none;
}

.hscroll-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  padding-left: 0;
  padding-right: 0;
}

.hproj {
  flex: 0 0 31vw;
  min-width: 320px;
  scroll-snap-align: start;
  padding: 30px 24px 24px;
  border: none;

  display: flex;
  flex-direction: column;
}

.hproj + .hproj {
  border-left: 2px solid var(--ink);
}

.hproj-media {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  border: 2px solid var(--ink);
  background: var(--media-bg, transparent);
  overflow: hidden;

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

  margin-bottom: 16px;
}

.hproj-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 10px;
}

.project-caption {
  font-family: "EB Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* PROJECT ARROWS */

.nav-arrow {
  position: absolute;
  top: auto;
  bottom: 10px;
  transform: none;

  width: 65px;
  height: 65px;

  border-radius: 50%;
  background-color: #4a1212;
  border: none;

  cursor: pointer;
  z-index: 20;

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

  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.nav-arrow:hover:not(:disabled) {
  background-color: #350101;
  transform: scale(1.08);
}

.nav-arrow:active:not(:disabled) {
  transform: scale(0.95);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.prev-btn {
  left: 35px;
}

.next-btn {
  right: 35px;
}

.arrow-img {
  width: 48px;
  height: auto;
  display: block;
}

/* ABOUT - TITLE */

.about {
  padding: 90px 0 150px;
  color: var(--ink);
}

.about-title {
  position: relative;
  top: 60px;
  right: 0;

  width: fit-content;
  margin-left: auto;
  text-align: right;
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Great Vibes", cursive;
  color: var(--ink);

  transform: translateY(var(--ty, 0px));
  will-change: transform;
}

.about-head {
  position: relative;
}

.about-title-big {
  font-size: 4.4rem;
  color: var(--ink);
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.about-title-small {
  display: block;
  font-family: "EB Garamond", serif;
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 5px;
}

/* ABOUT - COLLAGE */

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.collage {
  position: relative;
  left: 20px;
  max-width: 900px;
  height: 840px;
  margin: 0 auto 100px;
}

.collage-item {
  position: absolute;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.collage-img {
  width: 100%;
  height: auto;
  display: block;
}

.collage-label,
.collage-captions {
  display: none;
}

.collage-bw,
.collage-red,
.collage-pink {
  top: 380px;
  left: 50%;

  --rx: 330px;
  --ry: 170px;

  --a: calc(var(--fa) - (1 - var(--p)) * 1080deg);

  --w: calc(var(--p) * var(--p) * var(--p) * var(--p));

  --x: calc(cos(var(--a)) * var(--rx) * (1 - var(--w)) + var(--fx) * var(--w));

  --y: calc(sin(var(--a)) * var(--ry) * (1 - var(--w)) + var(--fy) * var(--w));

  --r: calc(sin(var(--a)) * 8deg * (1 - var(--w)) + var(--fr) * var(--w));

  transform: translate(-50%, -50%) translate(var(--x), var(--y))
    rotate(var(--r));
}

.collage-bw {
  width: 230px;

  --fx: -20px;
  --fy: -190px;
  --fa: -93deg;
  --fr: 0deg;

  filter: grayscale(100%);
  z-index: 2;
}

.collage-red {
  width: 230px;

  --fx: -290px;
  --fy: 40px;
  --fa: 165deg;
  --fr: 0deg;

  background: var(--red);
  z-index: 1;
}

.collage-pink {
  width: 230px;

  --fx: 240px;
  --fy: 70px;
  --fa: 30deg;
  --fr: 0deg;

  background: var(--pink);
  z-index: 1;
}

.collage.play .collage-bw,
.collage.play .collage-red,
.collage.play .collage-pink {
  animation: orbit 14s cubic-bezier(0.45, 0.05, 0.25, 1) both;
}

@keyframes orbit {
  from {
    --p: 0;
  }

  to {
    --p: 1;
  }
}

.collage-main {
  width: 480px;
  bottom: 10px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 3;

  box-shadow: none;

  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.15));
}

/* ABOUT - TEXT */

.about-content {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
  color: var(--ink);
}

.about-block {
  max-width: 680px;
  text-align: left;
}

.about-block-one {
  margin-left: 0;
}

.about-block-two {
  margin-left: auto;
  margin-top: 120px;
}

.about-block-three {
  margin-left: 0;
  margin-top: 130px;
}

.about-number {
  font-family: "EB Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  color: var(--ink);
}

.about-section-title {
  margin-bottom: 28px;

  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  font-weight: 400;
  line-height: 0.85;

  color: var(--ink);

  text-transform: uppercase;
}

.about-text {
  margin-bottom: 24px;

  font-family: "EB Garamond", serif;
  font-size: 1.3rem;
  line-height: 1.75;
  font-weight: 400;

  color: var(--ink);
}

/* ABOUT - ARROWS */

.about-arrow {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
  margin: 45px auto 25px;
}

.about-arrow-one {
  translate: 40px 0;
  transform: scaleY(-1) scale(1.48) rotate(-40deg);
}

.about-arrow-two {
  translate: -40px 0;
  transform: scaleY(1) rotate(-25deg);
}

/* STORY */

.story {
  position: relative;
  padding: 40px 0 0;
}

.story-text {
  max-width: 420px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
}

.story-arrow {
  flex-shrink: 0;
  overflow: visible;
}

.story-arrow path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-a {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-left: 6%;
}

.arrow-a {
  width: 120px;
  margin-top: 30px;
}

.story-b {
  margin-left: 33%;
  margin-top: 10px;
}

.story-c {
  padding-left: 4%;
  padding-bottom: 80px;
  min-height: 460px;
}

.arrow-b {
  display: block;
  width: 150px;
  margin-left: 16%;
  margin-top: -10px;
  margin-bottom: 10px;
}

.story-text-c {
  max-width: 440px;
}

.story-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(38%, 480px);
  height: auto;
  display: block;
}

/* TABLET */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }

  .hero-left {
    width: 100%;
  }

  .filmstrip-wrap {
    margin-right: 0;
  }

  .about-title {
    position: static;
    width: auto;
    margin-left: 0;
    text-align: center;
  }

  .about-content {
    padding: 0 30px;
  }

  .hproj {
    flex-basis: 50vw;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .page-wrap {
    width: 90%;
  }

  .navbar {
    padding: 20px 0;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 6rem;
  }

  .phone-block {
    height: 420px;
  }

  .phone-icon {
    width: 160px;
  }

  .phone-text {
    top: 200px;
    left: 190px;
    width: calc(100% - 200px);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-text-secondary {
    margin-top: 100px;
  }

  .filmstrip-wrap {
    width: 400px;
  }

  .hscroll-track {
    padding-left: 0;
    padding-right: 0;
  }

  .hproj {
    flex-basis: 82vw;
    min-width: 280px;
  }

  .prev-btn {
    left: 15px;
  }

  .next-btn {
    right: 15px;
  }

  .nav-arrow {
    width: 52px;
    height: 52px;
  }

  .arrow-img {
    width: 38px;
  }

  .about {
    padding: 70px 0 100px;
  }

  .about-title {
    text-align: center;
    font-size: 2.8rem;
  }

  .about-title-big {
    font-size: 4rem;
  }

  .collage {
    zoom: 0.7;
    margin-bottom: 20px;
  }

  .about-content {
    padding: 0;
  }

  .about-block,
  .about-block-one,
  .about-block-two,
  .about-block-three {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .about-block-two,
  .about-block-three {
    margin-top: 90px;
  }

  .about-section-title {
    font-size: 3.5rem;
    line-height: 0.9;
  }

  .about-text {
    font-size: 1.15rem;
    line-height: 1.65;
  }

  .about-arrow-one,
  .about-arrow-two {
    width: 120px;
    margin: 35px auto;
    translate: 0 0;
  }

  .about-arrow-one {
    transform: scaleY(-1);
  }

  .about-arrow-two {
    transform: none;
  }

  .story-a {
    padding-left: 0;
  }

  .story-b {
    margin-left: 10%;
  }

  .story-c {
    padding-left: 0;
  }

  .story-photo {
    position: relative;
    width: 75%;
    margin: 40px auto 0;
  }
}

/* SMALL MOBILE */

@media (max-width: 520px) {
  .hero-title {
    font-size: 5rem;
  }

  .phone-text {
    left: 150px;
    width: calc(100% - 160px);
  }

  .filmstrip-wrap {
    width: 320px;
  }

  .collage {
    zoom: 0.5;
    margin-bottom: 0;
  }

  .about-section-title {
    font-size: 3rem;
  }

  .about-text {
    font-size: 1.05rem;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .phone-icon {
    animation: none;
  }

  .collage.play .collage-bw,
  .collage.play .collage-red,
  .collage.play .collage-pink {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
/* FOOTER / CONTACT */

.site-footer {
  margin-top: 160px; /* spațiul dintre ultimul text și subsol */
  padding: 70px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-cta {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.footer-eyebrow {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  line-height: 1;
}

.footer-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 6px 0 22px;
}

.footer-text {
  font-size: 1.3rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-link {
  background: var(--maroon);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-link:hover {
  background: #6f2323;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .site-footer {
    margin-top: 100px;
    padding-top: 50px;
  }

  .footer-text {
    font-size: 1.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
/* Butonul "Email me": se întinde și arată adresa */
.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 100%;
  padding: 12px 30px; /* la fel ca celelalte butoane */
  background-color: var(--maroon, #8c2f2f);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition:
    width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.3s ease,
    transform 0.2s ease;
}

.email-btn:hover {
  background-color: #6f2323;
  transform: translateY(-2px);
}

/* după ce s-a afișat adresa */
.email-btn.show-email {
  background-color: #5c1e1e;
}

.email-text {
  transition: opacity 0.15s ease;
}

/* textul mic de sub butoane */
.email-hint {
  margin-top: 16px;
  min-height: 1.6em;
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
}
.email-line {
  margin-top: 22px;
  font-size: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.copy-btn {
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.copy-btn:hover {
  background: var(--ink);
  color: #fff;
}
.footer-link,
.email-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link:focus-visible,
.email-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.email-hint {
  font-size: 1.1rem;
  opacity: 1;
}

.reveal-arrow {
  transition: clip-path 1.2s ease-in-out;
}

.reveal-ready .reveal-arrow {
  clip-path: inset(0 100% 0 0);
}

.reveal-ready .reveal-arrow[data-reveal="top"] {
  clip-path: inset(0 0 100% 0);
}

.reveal-ready .reveal-arrow.is-drawn {
  clip-path: inset(0 0 0 0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-arrow {
    transition: none;
  }
}
