/* ============================================
   Elize Tohme — shared styles
   ============================================ */

:root{
  --bg: #F1ECE3;
  --bg-warm: #EAE3D6;
  --bg-dark: #1C1815;
  --ink: #1C1815;
  --ink-soft: #5A4F45;
  --muted: #9A8E80;
  --line: #D8D0C2;
  --accent: #B5462E;
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

/* Subtle paper grain on entire site */
body::before{
  content:'';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body.dark::before{ opacity: .15; }

/* ============================================
   NAV
   ============================================ */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(241,236,227,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
body.dark .nav{ background: rgba(28,24,21,0.88); color: var(--bg); }
.nav.scrolled{ border-bottom-color: var(--line); }
body.dark .nav.scrolled{ border-bottom-color: rgba(255,255,255,0.08); }

.brand{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.nav-links{
  display: none;
  gap: 32px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-links a{ position: relative; padding: 4px 0; }
.nav-links a::after{
  content:'';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after{ width: 100%; }
.nav-links a.active{ font-weight: 500; }

.menu-btn{
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-btn span{
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}
.menu-btn.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2){ opacity: 0; }
.menu-btn.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.7,0,.3,1);
}
body.dark .mobile-menu{ background: var(--bg-dark); }
.mobile-menu.open{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.mobile-menu a.active{ font-style: italic; color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
footer{
  background: var(--bg-dark);
  color: var(--muted);
  padding: 32px 24px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 2;
}
footer a{
  color: var(--bg-warm);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
footer a:hover{ border-color: var(--bg-warm); }
.footer-row{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ============================================
   SECTION DEFAULTS
   ============================================ */
.section{ padding: 100px 24px; position: relative; z-index: 2; }
.section-label{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-label::before{
  content:'';
  width: 32px; height: 1px;
  background: currentColor;
}

/* ============================================
   HERO (home)
   ============================================ */
.hero{
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 24px 96px;
  position: relative;
  overflow: hidden;
}
.hero-image{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(0.9);
}
.hero-image::after{
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(241,236,227,0.4) 0%, rgba(241,236,227,0.1) 40%, rgba(241,236,227,0.95) 100%);
}
.hero-content{ position: relative; z-index: 2; max-width: 100%; }
.hero-eyebrow{
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  opacity: 0;
  animation: rise .9s .2s forwards;
}
.hero-title{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 14vw, 180px);
  line-height: .92;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  opacity: 0;
  animation: rise 1.1s .35s forwards;
}
.hero-title em{ font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero-tag{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 4.2vw, 24px);
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.4;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 1.1s .55s forwards;
}
.hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  transition: background .3s, color .3s;
  opacity: 0;
  animation: rise 1.1s .75s forwards;
}
.hero-cta:hover{ background: var(--ink); color: var(--bg); }
.hero-cta svg{ width: 14px; height: 14px; }

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

/* ============================================
   HOME — preview section
   ============================================ */
.preview{ padding: 120px 24px; }
.preview-intro{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 7vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 64px;
  max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.preview-intro em{ font-style: italic; }

.preview-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.preview-item{
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-warm);
}

.preview-link{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.page-header{
  padding: 140px 24px 60px;
  text-align: left;
}
.page-eyebrow{
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.page-title{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 12vw, 120px);
  line-height: .95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  margin-bottom: 24px;
}
.page-title em{ font-style: italic; }
.page-intro{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 4vw, 22px);
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.5;
}

.portfolio-grid{
  padding: 60px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.work{ display: flex; flex-direction: column; gap: 20px; }
.work-img{
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-warm);
  cursor: zoom-in;
  transition: transform .9s cubic-bezier(.2,0,.1,1);
  overflow: hidden;
}
.work-img.landscape{ aspect-ratio: 5 / 4; }
.work-img.tall{ aspect-ratio: 3 / 4; }
.work-img:hover{ transform: scale(1.005); }

.work-meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.work-title{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
}
.work-num{
  font-family: var(--serif);
  font-feature-settings: 'lnum';
  font-size: 13px;
  color: var(--muted);
}
.work-desc{
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.6;
}

/* ============================================
   BIO PAGE
   ============================================ */
.bio-section{ padding: 140px 24px 100px; }
.bio-grid{ max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.bio-name{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 10vw, 88px);
  line-height: .95;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.bio-name em{ font-style: italic; }
.bio-role{
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.bio-portrait{
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-warm);
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  position: relative;
}
.bio-portrait.empty::after{
  content: 'Portrait';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.bio-text{ font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 58ch; }
.bio-text p{ margin-bottom: 22px; }
.bio-text p:first-child::first-letter{
  font-family: var(--serif);
  font-size: 64px;
  float: left;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.bio-meta{
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.bio-meta-item h4{
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.bio-meta-item p{
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
body.dark{ background: var(--bg-dark); color: var(--bg); }
body.dark .nav-links a:hover::after,
body.dark .nav-links a.active::after{ background: var(--bg); }

.contact-section{
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding: 140px 24px 80px;
  display: flex;
  align-items: center;
}
.contact-inner{ width: 100%; max-width: 1200px; margin: 0 auto; }
.contact-eyebrow{
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--bg-warm);
  margin-bottom: 24px;
}
.contact-title{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 12vw, 110px);
  line-height: .95;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.contact-title em{ font-style: italic; }

.contact-content{
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.contact-info p{
  font-size: 16px;
  line-height: 1.7;
  color: var(--bg-warm);
  max-width: 42ch;
  margin-bottom: 32px;
}
.contact-email{
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 5vw, 28px);
  color: var(--bg);
  border-bottom: 1px solid rgba(241,236,227,.4);
  padding-bottom: 4px;
  transition: border-color .3s;
  margin-bottom: 32px;
}
.contact-email:hover{ border-color: var(--bg); }
.contact-loc{
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form{ display: flex; flex-direction: column; gap: 20px; }
.contact-form label{
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bg-warm);
  margin-bottom: 8px;
  display: block;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(241,236,227,.3);
  padding: 12px 0;
  color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-bottom-color: var(--bg);
}
.contact-form textarea{ resize: vertical; min-height: 120px; }
.contact-form button{
  margin-top: 16px;
  padding: 16px 28px;
  background: var(--bg);
  color: var(--ink);
  border: none;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, color .3s;
  align-self: flex-start;
}
.contact-form button:hover{ background: var(--accent); color: var(--bg); }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(28,24,21,.95);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close{
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--bg);
  font-family: var(--serif);
  font-size: 32px;
  cursor: pointer;
  width: 44px; height: 44px;
  line-height: 1;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.2,0,.1,1), transform 1s cubic-bezier(.2,0,.1,1);
}
.reveal.visible{ opacity: 1; transform: translateY(0); }

/* ============================================
   TABLET / DESKTOP
   ============================================ */
@media (min-width: 720px){
  .nav{ padding: 22px 40px; }
  .nav-links{ display: flex; }
  .menu-btn{ display: none; }

  .hero{ padding: 120px 56px 96px; }
  .section, .preview{ padding: 140px 56px; }
  .page-header{ padding: 160px 56px 80px; }
  .portfolio-grid{ padding: 80px 56px 140px; }
  .bio-section{ padding: 160px 56px 120px; }
  .contact-section{ padding: 160px 56px 100px; }
  .footer-row{ flex-direction: row; gap: 32px; }

  /* Home preview — 2-column */
  .preview-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
  .preview-grid .preview-item:nth-child(2){ margin-top: 80px; }

  /* Portfolio — asymmetric editorial grid */
  .portfolio-grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px 32px;
  }
  .work{ margin: 0; }
  .work:nth-child(1){ grid-column: 2 / span 6; }
  .work:nth-child(2){ grid-column: 9 / span 4; margin-top: 160px; }
  .work:nth-child(3){ grid-column: 1 / span 5; margin-top: -60px; }
  .work:nth-child(4){ grid-column: 7 / span 5; margin-top: 100px; }
  .work:nth-child(5){ grid-column: 3 / span 7; margin-top: 60px; }
  .work:nth-child(6){ grid-column: 1 / span 4; margin-top: 80px; }
  .work:nth-child(7){ grid-column: 6 / span 6; margin-top: -40px; }
  .work:nth-child(8){ grid-column: 2 / span 5; margin-top: 60px; }
  .work:nth-child(9){ grid-column: 8 / span 4; margin-top: 120px; }
  .work:nth-child(10){ grid-column: 3 / span 7; margin-top: 40px; }

  /* Bio — 2-column */
  .bio-grid{
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
  }
  .bio-meta{ grid-template-columns: repeat(3, 1fr); gap: 32px; }

  /* Contact — 2-column */
  .contact-content{
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

@media (min-width: 1100px){
  .hero{ padding: 140px 80px 120px; }
  .section, .preview{ padding: 160px 80px; }
  .page-header{ padding: 180px 80px 100px; }
  .portfolio-grid{ padding: 100px 80px 160px; }
  .bio-section{ padding: 180px 80px 140px; }
  .contact-section{ padding: 180px 80px 120px; }
}
