/* =========================
   Lena Design Studio
========================= */

:root {
  --cream: #f7f1e8;
  --cream-2: #fffaf3;
  --ink: #161313;
  --muted: #6e6258;
  --line: rgba(22, 19, 19, 0.14);
  --blush: #d8a99d;
  --rose: #9c5f55;
  --olive: #77735c;
  --shadow: 0 24px 80px rgba(49, 35, 26, 0.13);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 5%, rgba(216, 169, 157, .35), transparent 32%),
    radial-gradient(circle at 90% 18%, rgba(119, 115, 92, .18), transparent 30%),
    linear-gradient(135deg, var(--cream-2), var(--cream));
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 19, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 19, 19, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 65%);
  z-index: -1;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid rgba(22, 19, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(38, 27, 20, 0.08);
}

.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .25s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(22, 19, 19, 0.06);
}

/* Layout */

.section {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 130px 0;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--rose);
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .95;
}

p {
  color: var(--muted);
}

/* Hero */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .82fr;
  gap: 54px;
  align-items: center;
  padding-top: 170px;
  padding-bottom: 90px;
  position: relative;
}

.hero h1 {
  max-width: 780px;
  margin: 20px 0 28px;
  font-size: clamp(4.2rem, 9vw, 9.2rem);
  line-height: .86;
}

.hero h1 span {
  color: var(--rose);
  font-style: italic;
}

.hero__intro {
  max-width: 610px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn--dark {
  background: var(--ink);
  color: var(--cream-2);
  box-shadow: 0 16px 34px rgba(22, 19, 19, 0.16);
}

.btn--light {
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, .64);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-3px);
}

.portrait-card {
  position: relative;
  padding: 16px;
  border-radius: 46% 46% 30px 30px;
  background: rgba(255, 250, 243, .7);
  border: 1px solid rgba(22, 19, 19, .12);
  box-shadow: var(--shadow);
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(38, 27, 20, 0.13);
}
}

.portrait-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 46% 46% 22px 22px;
  filter: saturate(.92) contrast(1.02);
}

.floating-note {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22,19,19,.12);
  background: rgba(255, 250, 243, .78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(38, 27, 20, 0.11);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
  animation: floaty 5s ease-in-out infinite;
}

.note-one {
  left: -24px;
  top: 22%;
}

.note-two {
  right: -20px;
  bottom: 18%;
  animation-delay: 1.2s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-marquee {
  grid-column: 1 / -1;
  overflow: hidden;
  border-block: 1px solid var(--line);
  margin-top: 20px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 17px 0;
  animation: marquee 23s linear infinite;
}

.marquee-track span {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  color: #161313;
  -webkit-text-stroke: 1px rgba(22, 19, 19, .28);
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: .7fr 1fr;
  align-items: center;
  gap: 60px;
  margin-top: 32px;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__copy h2 {
  max-width: 820px;
  margin-bottom: 28px;
}

.about__copy p {
  max-width: 720px;
  font-size: 1.08rem;
}

.skill-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.skill-cloud span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, .55);
  font-size: .86rem;
  font-weight: 700;
}

/* Value strip */

.value-strip {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,243,.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(38, 27, 20, 0.08);
  overflow: hidden;
}

.value-strip div {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.value-strip div:last-child {
  border-right: 0;
}

.value-strip strong {
  display: block;
  margin-bottom: 7px;
  font-family: "DM Serif Display", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.value-strip span {
  color: var(--muted);
}

/* Work */

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: 54px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.05rem;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 19, 19, .11);
  background: rgba(255,250,243,.72);
  box-shadow: 0 18px 60px rgba(38, 27, 20, 0.09);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
  transform-style: preserve-3d;
}

.project-card--wide {
  grid-row: span 2;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(38, 27, 20, 0.16);
}

.project-card__image {
  height: 365px;
  overflow: hidden;
  background: #e9ded2;
}

.project-card--wide .project-card__image {
  height: 680px;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform .7s ease;
}

.project-card:hover img {
  transform: none;
}

.project-card__content {
  padding: 28px;
}

.project-card__content span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.project-card__content h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 10px;
}

.work-slider {
  margin-top: 34px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,250,243,.5);
}

.work-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 18px;
  animation: slideWork 26s linear infinite;
}

.work-slider:hover .work-track {
  animation-play-state: paused;
}

.work-track img {
  width: 310px;
  height: 210px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
}

@keyframes slideWork {
  to { transform: translateX(-50%); }
}

/* Email */

.email-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.email-tile {
  border: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 18px 54px rgba(38, 27, 20, 0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.email-tile:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 30px 80px rgba(38, 27, 20, 0.16);
}

.email-tile img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Contact */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 86px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 15%, rgba(216, 169, 157, .34), transparent 30%),
    linear-gradient(135deg, rgba(255,250,243,.86), rgba(247,241,232,.58));
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 850px;
  margin: 18px 0 22px;
}

.contact-card p {
  max-width: 680px;
  font-size: 1.08rem;
}

.contact-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 34px;
  color: var(--cream-2);
  background: var(--ink);
  border-radius: 999px;
  padding: 16px 22px;
  text-decoration: none;
  font-weight: 800;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 13, 11, .76);
  backdrop-filter: blur(12px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 24px;
  background: var(--cream-2);
  padding: 14px;
}

.modal__close {
  position: sticky;
  top: 8px;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
}

.modal__img {
  border-radius: 18px;
}

/* Interaction effects */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .75s ease;
}

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

.cursor-dot {
  position: fixed;
  z-index: 100;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--rose);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: .55;
  mix-blend-mode: multiply;
}

/* Responsive */

@media (max-width: 900px) {
  .cursor-dot {
    display: none;
  }

  .site-header {
    top: 10px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    font-size: .75rem;
    padding: 8px 9px;
  }

  .hero,
  .about-grid,
  .project-showcase,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }

  .note-one,
  .note-two {
    left: 18px;
    right: auto;
  }

  .project-card--wide {
    grid-row: auto;
  }

  .project-card,
  .project-card--wide {
    min-height: auto;
  }

  .project-card__image,
  .project-card--wide .project-card__image {
    height: 360px;
  }

  .email-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 90px 0;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn,
  .contact-link {
    width: 100%;
  }
   .btn,
.contact-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

  .email-tiles {
    grid-template-columns: 1fr;
  }

  .work-track img {
    width: 240px;
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
@media (min-width: 901px) {
  .portrait-card img,
  .about__image img {
    object-fit: contain;
    height: auto;
  }
}

@media (max-width: 900px) {
  .portrait-card img,
  .about__image img {
    height: 430px;
    object-fit: cover;
    object-position: center;
  }
}
@media (max-width: 900px) {
  .project-card__image img {
    object-position:center;
  }
}
/* Desktop */
@media (min-width: 901px) {
  .portrait-card img {
    object-fit: contain;
    aspect-ratio: auto;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .portrait-card img {
    height: 500px;
    object-fit: cover;
    object-position: center;
  }
}/* HERO IMAGE CROPPING */

@media (max-width: 900px) {
  .portrait-card {
    height: 450px;
  }

  .portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
}

@media (min-width: 901px) {
  .portrait-card {
    height: auto;
  }

  .portrait-card img {
    height: auto;
    object-fit: contain;
  }
.project-card__image {
  height: auto;
}

.project-card__image img {
  width: 100%;
  height: auto;
  display: block;
}
.project-card__image {
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: auto;
}
}
