/* Tony Carlesso Fotografia — fine art stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --paper: #f6f4ef;
  --paper-dim: #ece9e1;
  --ink: #171614;
  --ink-soft: #4a483f;
  --line: #d8d3c6;
  --accent: #8a7355;
  --max: 1240px;
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

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

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(246, 244, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-logo small {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  font-weight: 400;
  color: var(--accent);
  margin-top: 3px;
}

.nav-toggle { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle { display: none; }

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-light {
  border-color: #fff;
  color: #fff;
}
.btn-light:hover { background: #fff; color: var(--ink); }

.text-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

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

.hero {
  height: 100vh;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  position: relative;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(32px, 5vw, 72px);
}

.hero-index {
  display: block;
  margin-bottom: 34px;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.hero-panel .eyebrow { margin-bottom: 20px; }

.hero-panel h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1.05;
}

.hero-panel .hero-sub {
  margin-top: 22px;
  color: var(--ink-soft);
  max-width: 340px;
}

.hero-panel .text-link { margin-top: 34px; width: fit-content; }

/* ---------- Sections ---------- */

section { padding: 120px 0; }
section.tight { padding: 90px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-head .eyebrow { margin-bottom: 18px; }

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
}

.section-head p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 17px;
}

.statement {
  background: var(--ink);
  color: var(--paper);
}

.statement blockquote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.5;
  padding: 0 24px;
}

.statement cite {
  display: block;
  margin-top: 28px;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b9ac91;
}

/* ---------- Collections grid ---------- */

.collections {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.collection-card:first-child {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.collection-card:not(:first-child) { aspect-ratio: 16 / 11; }

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}

.collection-card:hover img { transform: scale(1.06); }

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,8,0) 45%, rgba(10,10,8,0.62) 100%);
}

.collection-card .card-label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 2;
  color: #fff;
}

.collection-card .card-label .eyebrow { color: #e7ddc9; margin-bottom: 6px; }
.collection-card .card-label h3 { font-size: 22px; font-weight: 400; }

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

.about-preview {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview .ph {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-preview .ph img { width: 100%; height: 100%; object-fit: cover; }

.about-preview h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; }
.about-preview p { color: var(--ink-soft); margin-bottom: 18px; max-width: 480px; }

/* ---------- Contact strip ---------- */

.contact-strip {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-strip h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.contact-strip p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 34px; }

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

footer {
  padding: 70px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: calc(var(--nav-h) + 70px) 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 400; margin-top: 16px; }
.page-header p { color: var(--ink-soft); max-width: 560px; margin: 18px auto 0; }

/* ---------- Portfolio ---------- */

.gallery-block { padding: 90px 0; position: relative; overflow: hidden; }
.gallery-block:not(:last-child) { border-bottom: 1px solid var(--line); }

.gallery-block .ghost-num {
  position: absolute;
  top: 30px;
  right: -6px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(90px, 13vw, 180px);
  line-height: 1;
  color: var(--paper-dim);
  z-index: 0;
  pointer-events: none;
}

.gallery-block .head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.gallery-block .head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.gallery-block .head p { color: var(--ink-soft); max-width: 420px; margin-top: 10px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-grid figure {
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10,10,8,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
}
.lightbox-close { top: 30px; right: 40px; }
.lightbox-prev { left: 40px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.lightbox-next { right: 40px; top: 50%; transform: translateY(-50%); font-size: 26px; }

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

.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.about-hero .ph { aspect-ratio: 4/5; overflow: hidden; }
.about-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-hero .body p { color: var(--ink-soft); margin-bottom: 18px; }
.about-hero .body p.lede {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 26px;
}

.notice-flag {
  margin-top: 30px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.placeholder,
p .placeholder-text {
  color: var(--accent);
  font-style: italic;
}

/* ---------- Contact page ---------- */

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

.contact-methods { display: flex; flex-direction: column; gap: 30px; }
.contact-method .eyebrow { margin-bottom: 8px; }
.contact-method .value { font-family: 'Fraunces', serif; font-size: 22px; }
.contact-method .value:hover { color: var(--accent); }

.contact-note p { color: var(--ink-soft); margin-bottom: 20px; }

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; height: auto; min-height: 0; }
  .hero-media { min-height: 320px; }
  .hero-panel { padding: 48px clamp(24px, 6vw, 48px); }
  .hero-index { top: 20px; left: clamp(24px, 6vw, 48px); }

  .collections { grid-template-columns: 1fr; grid-template-rows: none; }
  .collection-card:first-child { grid-row: auto; aspect-ratio: 4 / 5; }
  .collection-card:not(:first-child) { aspect-ratio: 4 / 5; }

  .about-preview, .about-hero, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-block .ghost-num { font-size: clamp(70px, 22vw, 120px); top: 14px; }
  section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--ink) !important; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 22px; height: 1px;
    background: currentColor;
  }

  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { font-size: 20px; }
  .lightbox-close { top: 18px; right: 20px; }
}
