:root{
  --paper: #eeefea;
  --ink: #131715;
  --ink-soft: #313a34;
  --accent: #5c675f;
  --line: #dce2d7;
  --card: #707f72;
  --light:#9faaa1;
  --max: 1180px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  background:var(--paper);
  color:var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
::selection{ background:var(--accent); color:var(--paper); }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 32px; }


/* ---------- NAV ---------- */
header.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(220,226,215,0.86);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.nav-mark {
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform:uppercase;
  letter-spacing: 0.2em;
  
  line-height: 1;
}

.nav-mark img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links{
  display:flex; gap:32px; font-size:13px;
  letter-spacing:0.2em; text-transform:uppercase; color:var(--ink-soft);
}
.nav-links a{ transition:color .2s ease; padding-bottom:2px; }
.nav-links a:hover, .nav-links a:focus-visible{ color:var(--ink); }
.nav-links a.active{ color:var(--ink); border-bottom:1px solid var(--accent); }
.nav-links a:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }

/* ---------- MOBILE NAV ---------- */

.mobile-nav {
  display: none;
}

#menu-toggle {
  display: none;
}

.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: all .25s ease;
}

/* MOBILE DROPDOWN */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  padding: 10px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* SHOW MENU */

#menu-toggle:checked ~ .mobile-menu {
  display: block;
}

/* TURN LINES INTO X */

#menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-header{ padding:100px 0 72px; border-bottom:1px solid var(--line); }
.back-link{
  font-family: 'DM Sans', sans-serif; font-size:10px;
  text-transform:uppercase; letter-spacing:0.08em; color:var(--accent);
  display:inline-flex; align-items:center; gap:8px; margin-bottom:28px;
  transition:color .2s ease;
}
.back-link:hover{ color:var(--accent); }
.page-eyebrow{
  font-family: 'DM Sans', sans-serif; font-size:12px;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--accent);
  margin-bottom:20px; display:flex; align-items:center; gap:10px;
}
.page-eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--accent); display:inline-block; }
h1.page-title{
  font-family: 'Cormorant Garamond', serif; font-weight:300;
  font-size:clamp(38px, 6vw, 72px); line-height:1.05; letter-spacing:-0.01em;
  max-width:18ch;
}
h1.page-title em{ font-style:italic; font-weight:500; color:var(--accent); }
.page-sub{ margin-top:26px; max-width:56ch; font-size:17px; color:var(--ink-soft); }

/* ---------- HOME HERO ---------- */
.hero {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 10px));

    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro {
    margin: 0 0 5px 0;

    color: var(--light);
    font-family: "Italianno", cursive;
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}

#typing-text {
    margin: 0;

    color: var(--accent);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 8vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
    white-space: nowrap;

    border-right: 3px solid var(--accent);
    padding-right: 5px;

    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}
/*
.hero{ padding:120px 0 100px; border-bottom:1px solid var(--line); }
.hero-eyebrow{
  font-family: 'DM Sans', sans-serif; font-size:12px;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--accent);
  margin-bottom:22px; display:flex; align-items:center; gap:10px;
}
.hero-eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--accent); display:inline-block; }
h1.hero-title{
  font-family: 'Cormorant Garamond', serif; font-weight:300;
  font-size:clamp(40px, 6.4vw, 84px); line-height:1.04; letter-spacing:-0.01em;
  max-width:16ch;
}
h1.hero-title em{ font-style:italic; font-weight:500; color:var(--accent); }
.hero-sub{ margin-top:32px; max-width:52ch; font-size:18px; color:var(--ink-soft); }
.hero-meta{
  display:flex; gap:40px; margin-top:56px; padding-top:28px;
  border-top:1px solid var(--line); max-width:640px; flex-wrap:wrap;
}
.hero-meta div{ font-size:13px; }
.hero-meta .label{
  font-family: 'DM Sans', sans-serif; color:var(--ink-soft);
  text-transform:uppercase; letter-spacing:0.06em; font-size:11px; margin-bottom:6px;
}
*/
/* ---------- HOME NAV CARDS ---------- */

.enter-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.enter-card{
  background:var(--paper); padding:56px 40px; position:relative;
  transition:background .3s ease;
}
.enter-card:hover{ background:var(--line); }
.enter-card .num{
  font-family: 'DM Sans', sans-serif; font-size:12px; color:var(--accent);
  text-transform:uppercase; letter-spacing:0.06em; margin-bottom:24px; display:block;
}
.enter-card h3{
  font-family: 'Cormorant Garamond', serif; font-weight:400; font-size:clamp(26px,3.4vw,38px);
  margin-bottom:14px;
}
.enter-card p{ color:var(--ink-soft); font-size:14px; max-width:36ch; margin-bottom:24px; }
.enter-card .go{
  font-family: 'DM Sans', sans-serif; color:var(--accent); font-size:12px; text-transform:uppercase;
  letter-spacing:0.06em; display:inline-flex; align-items:center; gap:8px;
}
.enter-card .go .arrow{ transition:transform .3s ease; }
.enter-card:hover .go .arrow{ transform:translateX(4px); }

/* ---------- SECTION ---------- */
.section{ padding:96px 0; border-bottom:1px solid var(--line); }
#middle {
    width: 100%;
    min-height: 70vh;

    background-image: url("background2.png");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
}
.section-header{
  margin-bottom: 56px;
}

.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:56px; gap:24px; flex-wrap:wrap;
}
.section-head h2{ font-family: 'Cormorant Garamond', serif; font-weight:400; font-size:clamp(28px, 3.4vw, 40px); }
.section-head p{ color:var(--ink-soft); font-size:14px; max-width:34ch; }

/* ---------- PROJECT CARDS (portfolio.html) ---------- */
.project-cards{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:32px;
}
.project-card{ display:block; }
.card-visual {
  aspect-ratio: 4 / 5.5;
  border-radius: 2px;
  margin-bottom: 20px;

  position: relative;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.project-card:hover .card-visual{ transform:translateY(-6px); }
.card-visual .cv-label{
  position:absolute; left:16px; bottom:16px;
  font-family: 'DM Sans', sans-serif; font-size:11px; color:rgba(255,255,255,0.92);
  text-transform:uppercase; letter-spacing:0.06em;
}
.card-meta{ display:flex; justify-content:space-between; align-items:baseline; }
.card-title{ font-family: 'Cormorant Garamond', serif; font-weight:400; font-size:24px; transition:color .25s ease; }
.project-card:hover .card-title{ color:var(--accent); }
.card-year{ font-family: 'DM Sans', sans-serif; font-size:12px; color:var(--ink-soft); }
.card-cat{
  font-family: 'DM Sans', sans-serif; font-size:12px; color:var(--ink-soft);
  text-transform:uppercase; letter-spacing:0.04em; margin-top:6px;
}

/* ---------- GALLERY ---------- */

.gallery-feature {
  width: 100%;
  margin-bottom: 16px;
}

.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  width: 100%;
  margin-bottom: 16px;

  overflow: hidden;
  border-radius: 2px;

  break-inside: avoid;

  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;

  display: block;

  transition: transform .5s ease;
}

.gi-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;

  padding: 16px;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .65),
    rgba(0, 0, 0, 0)
  );

  opacity: 0;

  transition: opacity .3s ease;
}

.gi-overlay span {
  font-family: 'DM Sans', sans-serif;

  font-size: 11px;

  color: white;

  text-transform: uppercase;

  letter-spacing: .06em;
}

.gallery-item:hover .gi-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.book-gallery {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  margin-top: 16px;
}

.book-pair {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 8px;

  align-items: start;
}

@media (max-width: 900px) {

  .gallery-masonry {
    columns: 2;
  }

  .book-gallery {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .gallery-masonry {
    columns: 1;
  }

  .book-gallery {
    grid-template-columns: 1fr;
  }

  .book-pair {
    gap: 8px;
  }

}
/* ---------- WORK LIST (legacy row style, used on home teaser) ---------- */
.work-list{ list-style:none; }
.work-row{
  border-top:1px solid var(--line); padding:30px 0;
  display:grid; grid-template-columns:1fr auto auto auto; align-items:center; gap:24px;
  cursor:pointer; position:relative; transition:padding-left .35s cubic-bezier(.2,.8,.2,1);
}
.work-list li:last-child .work-row{ border-bottom:1px solid var(--line); }
.work-row:hover, .work-row:focus-visible{ padding-left:18px; }
.work-row:focus-visible{ outline:none; }
.work-title{ font-family: 'Cormorant Garamond', serif; font-weight:400; font-size:clamp(22px, 3vw, 32px); transition:color .25s ease; }
.work-row:hover .work-title{ color:var(--accent); }
.work-cat{ font-family: 'DM Sans', sans-serif; font-size:12px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.04em; }
.work-year{ font-family: 'DM Sans', sans-serif; font-size:12px; color:var(--ink-soft); }
.work-arrow{ font-size:18px; color:var(--ink-soft); transform:translateX(-4px); opacity:0; transition:all .3s ease; }
.work-row:hover .work-arrow{ opacity:1; transform:translateX(0); }

/* ---------- ABOUT ---------- */
.about-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:80px; }
.about-visual {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  margin-bottom: 32px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-text p{ font-size:17px; color:var(--ink-soft); max-width:56ch; margin-bottom:20px; }
.about-text p:first-child{ font-family: 'Cormorant Garamond', serif; font-size:24px; color:var(--ink); font-weight:400; line-height:1.4; }
.tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.tag{ font-family: 'DM Sans', sans-serif; font-size:12px; padding:8px 14px; border:1px solid var(--line); border-radius:100px; color:var(--ink-soft); }
.about-side{ border-left:1px solid var(--line); padding-left:40px; }
.about-side h3{ font-family: 'DM Sans', sans-serif; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:var(--accent); margin-bottom:20px; }
.timeline-item{ padding:16px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; font-size:14px; gap:12px; }
.timeline-item:last-child{ border-bottom:1px solid var(--line); }
.timeline-item .role{ color:var(--ink); }
.timeline-item .org{ color:var(--ink-soft); text-align:right; }

/* ---------- PROJECT DETAIL ---------- */
.project-hero-visual {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  margin: 0 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project-detail-grid{ display:grid; grid-template-columns:1.4fr 0.6fr; gap:80px; }
.project-body p{ font-size:17px; color:var(--ink-soft); max-width:60ch; margin-bottom:20px; }
.project-body h3{ font-family: 'Cormorant Garamond', serif; font-weight:400; font-size:22px; margin:36px 0 14px; }
.project-sidebar{ border-left:1px solid var(--line); padding-left:40px; align-self:start; }
.spec-item{ padding:16px 0; border-top:1px solid var(--line); }
.spec-item:last-child{ border-bottom:1px solid var(--line); }
.spec-item .label{ font-family: 'DM Sans', sans-serif; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-soft); margin-bottom:6px; }
.spec-item .value{ font-size:14px; }
.project-gallery{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:80px 0; }
.project-gallery .pg-item {
  aspect-ratio: 4 / 3;
  border-radius: 2px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project-nav{
  display:flex; justify-content:space-between; align-items:center;
  padding:40px 0; border-top:1px solid var(--line);
}
.project-nav a{ font-family: 'DM Sans', sans-serif; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-soft); transition:color .2s ease; }
.project-nav a:hover{ color:var(--accent); }
.project-nav .next-title{ font-family: 'Cormorant Garamond', serif; font-style:italic; font-size:18px; color:var(--ink); text-transform:none; letter-spacing:0; margin-top:6px; display:block; }


/* ---------- CONTACT ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-heading {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
}

.contact-body {
  color: var(--ink);
  font-weight: 300;
  line-height: 1.9;
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 0.5px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.contact-link:first-child {
  border-top: 0.5px solid var(--line);
}

.contact-link:hover .cl-label {
  color: var(--card);
}

.cl-label {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink);
  transition: color 0.2s;
}

.cl-arrow {
  font-size: 1.1rem;
  color: var(--accent);
}

/* ---------- FOOTER ---------- */
/*
footer.site-footer{ padding:96px 0 56px; }
.contact-cta{
  font-family: 'Cormorant Garamond', serif; font-weight:300; font-style:italic;
  font-size:clamp(32px, 5.6vw, 64px); line-height:1.1; max-width:14ch;
}
.contact-cta a{ color:var(--accent); border-bottom:1px solid currentColor; }
.contact-cta a:hover{ color:var(--ink); }
.footer-bottom{
  margin-top:64px; padding-top:28px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px;
  font-size:13px; color:var(--ink-soft);
}
.footer-links{ display:flex; gap:24px; }
.footer-links a{ transition:color .2s ease; }
.footer-links a:hover{ color:var(--ink); }
*/

footer {
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--rule);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
}

.footer-logo img {
  height: 50px;
  
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .project-cards{ grid-template-columns:1fr; }
  .about-grid, .project-detail-grid{ grid-template-columns:1fr; gap:48px; }
  .about-side, .project-sidebar{ border-left:none; border-top:1px solid var(--line); padding-left:0; padding-top:32px; }
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
  .gallery-item.wide{ grid-column:span 2; }
  .enter-grid{ grid-template-columns:1fr; }
  .project-gallery{ grid-template-columns:1fr; }
}
@media (max-width:760px){

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: relative;
  }

  .work-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }

  .work-cat {
    grid-column: 1;
  }

  .work-arrow {
    display: none;
  }


  /* CONTACT */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-heading {
    font-size: 2.4rem;
  }

  .contact-body {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 35ch;
  }

  .contact-link {
    padding: 1rem 0;
  }

  .cl-label {
    font-size: 0.95rem;
  }

}


@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}
