/* ============================================================
   Maison Turco — main.css v1.0
   Atelier Melbourne
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --ink:     #1A1A1A;
  --bone:    #F4F1EB;
  --ochre:   #B8895A;
  --oxblood: #5C1F1F;
  --stone:   #8A857C;
  --cream:   #FAF7F0;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', monospace;

  --max-w: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-gap: clamp(4rem, 10vw, 8rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 400ms var(--ease);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h4 { font-size: 1.125rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
p  { font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; color: var(--ink); }
.caption { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.eyebrow  { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }

/* --- Layout ------------------------------------------------ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: var(--section-gap) 0; }
.grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--gutter);
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26,26,26,0.06);
  transition: var(--transition);
}
.nav__logo { font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__links a { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); transition: color var(--transition); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__cta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); background: var(--ink); padding: 0.65rem 1.25rem; transition: background var(--transition); }
.nav__cta:hover { background: var(--ink); opacity: 0.88; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; }
.nav__hamburger span { display: block; width: 22px; height: 1px; background: var(--ink); transition: var(--transition); }
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* --- Hero -------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
  position: relative; overflow: hidden;
  background: var(--bone);
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero_home.png');
  background-color: var(--bone);
  background-size: cover; background-position: center;
  opacity: 0.45;
}
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title { margin-bottom: 1.5rem; }
.hero__lead { max-width: 520px; margin-bottom: 2.5rem; color: var(--stone); }
.hero__actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero__currently { position: absolute; bottom: clamp(2rem, 5vw, 4rem); right: var(--gutter); z-index: 2; text-align: right; }
.hero__currently p { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }

/* --- Buttons ----------------------------------------------- */
.btn { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 2rem; transition: var(--transition); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--ink); opacity: 0.88; }
.btn--ghost { border: 1px solid currentColor; color: var(--stone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }

/* --- Rule -------------------------------------------------- */
.rule { border: none; border-top: 1px solid rgba(26,26,26,0.1); margin: 0; }

/* --- Section intro ----------------------------------------- */
.section-intro { max-width: 640px; }
.section-intro__eyebrow { margin-bottom: 1.25rem; }
.section-intro__title { margin-bottom: 1.25rem; }
.section-intro__body { color: var(--stone); }

/* --- Work grid --------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: rgba(26,26,26,0.08); }
.work-card { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bone); }
.work-card:first-child { grid-column: span 2; aspect-ratio: 16/7; }
.work-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.work-card:hover .work-card__img { transform: scale(1.03); }
.work-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, transparent 60%); }
.work-card__meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; }
.work-card__edition { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,241,235,0.6); margin-bottom: 0.5rem; }
.work-card__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; color: var(--bone); line-height: 1.1; margin-bottom: 0.5rem; }
.work-card__desc { font-size: 0.85rem; color: rgba(244,241,235,0.7); }
@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } .work-card:first-child { grid-column: span 1; aspect-ratio: 4/3; } }

/* --- Services table ---------------------------------------- */
.services-table { width: 100%; border-collapse: collapse; margin-top: 3rem; }
.services-table th, .services-table td { text-align: left; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(26,26,26,0.08); }
.services-table th { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.services-table td:first-child { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; }
.services-table .price { font-family: var(--font-display); font-size: 1.25rem; }
.services-table tr.recommended td { background: var(--bone); }
.services-table tr.recommended td:first-child::after { content: " — recommended"; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; color: var(--stone); vertical-align: middle; margin-left: 0.75rem; }

/* --- Case study hero --------------------------------------- */
.case-hero { min-height: 70svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) clamp(3rem,6vw,5rem); position: relative; overflow: hidden; background: var(--ink); padding-top: 6rem; }
.case-hero__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.5; }
.case-hero__content { position: relative; z-index: 2; }
.case-hero__meta { display: flex; gap: 3rem; margin-bottom: 2rem; }
.case-hero__meta span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,241,235,0.5); }
.case-hero__title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); font-weight: 300; color: var(--bone); line-height: 1; margin-bottom: 1rem; }
.case-hero__subtitle { font-size: 1.125rem; color: rgba(244,241,235,0.65); max-width: 520px; }

/* --- Pull quote -------------------------------------------- */
.pull-quote { padding: var(--section-gap) var(--gutter); border-left: 2px solid var(--ochre); margin: var(--section-gap) 0; }
.pull-quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.3; color: var(--ink); max-width: 800px; }
.pull-quote cite { display: block; margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); font-style: normal; }

/* --- Footer ------------------------------------------------ */
.footer { background: var(--ink); color: var(--bone); padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer__logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__tagline { font-size: 0.9rem; color: rgba(244,241,235,0.5); max-width: 280px; }
.footer__nav-title { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,241,235,0.4); margin-bottom: 1.25rem; }
.footer__nav a { display: block; font-size: 0.9rem; color: rgba(244,241,235,0.7); margin-bottom: 0.75rem; transition: color var(--transition); }
.footer__nav a:hover { color: var(--bone); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(244,241,235,0.1); }
.footer__legal { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; color: rgba(244,241,235,0.3); }
@media (max-width: 768px) { .footer__top { grid-template-columns: 1fr; gap: 2.5rem; } .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* --- Animations -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Utility ----------------------------------------------- */
.text-stone { color: var(--stone); }
.text-ochre { color: var(--ink); } /* ochre demoted to ink — single-accent rule */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Work index + case study pages (iteration 20)
   ============================================================ */

/* Page hero (used by /work and other secondary pages) */
.page-hero { padding: 9rem var(--gutter) clamp(3rem, 6vw, 5rem); background: var(--cream); }
.page-hero__eyebrow { margin-bottom: 1.5rem; }
.page-hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; max-width: 12ch; }
.page-hero__lead { max-width: 640px; color: var(--stone); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

/* Work index — alternating editorial list */
.work-list { display: flex; flex-direction: column; gap: clamp(5rem, 10vw, 9rem); }
.work-list__entry { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.work-list__entry:nth-child(even) { grid-template-columns: 5fr 7fr; }
.work-list__entry:nth-child(even) .work-list__media { order: 2; }
.work-list__media { overflow: hidden; aspect-ratio: 4/3; background: var(--bone); }
.work-list__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.work-list__entry:hover .work-list__media img { transform: scale(1.03); }
.work-list__index { margin-bottom: 1.25rem; }
.work-list__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.work-list__excerpt { color: var(--stone); margin-bottom: 1.5rem; max-width: 56ch; }
.capacity-strip { text-align: center; padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.capacity-strip p { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 768px) {
  .work-list__entry,
  .work-list__entry:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-list__entry:nth-child(even) .work-list__media { order: 0; }
}

/* Case study — meta strip */
.meta-strip { background: var(--bone); padding: 2rem var(--gutter); border-top: 1px solid rgba(26,26,26,0.08); border-bottom: 1px solid rgba(26,26,26,0.08); }
.meta-strip__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.meta-strip dt { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.5rem; }
.meta-strip dd { font-size: 0.9rem; line-height: 1.4; color: var(--ink); }
.meta-strip dd a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.meta-strip dd a:hover { color: var(--ink); }
@media (max-width: 900px) { .meta-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; } }

/* Case study — body two-col (eyebrow left / text right) */
.case-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 5vw, 5rem); max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.case-body__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.case-body__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.case-body__text p { margin-bottom: 1.5rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; }
.case-body__text p:last-child { margin-bottom: 0; }
.case-body__text strong { font-weight: 600; color: var(--ink); }
@media (max-width: 768px) { .case-body { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Editorial gallery */
.gallery { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.gallery__1up { width: 100%; }
.gallery__1up img { width: 100%; height: auto; display: block; }
.gallery__2up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.gallery__2up img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.gallery__caption { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin-top: 1rem; padding: 0 var(--gutter); max-width: var(--max-w); margin-left: auto; margin-right: auto; }
@media (max-width: 768px) { .gallery__2up { grid-template-columns: 1fr; } .gallery__2up img { aspect-ratio: 4/3; } }

/* Outcome — 3 numbers */
.outcome-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(26,26,26,0.1); }
.outcome-numbers__num { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.outcome-numbers__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); line-height: 1.4; }
@media (max-width: 768px) { .outcome-numbers { grid-template-columns: 1fr; gap: 2rem; } }

/* Next study link */
.next-study { padding: clamp(3rem, 6vw, 5rem) var(--gutter); text-align: center; border-top: 1px solid rgba(26,26,26,0.1); }
.next-study__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-bottom: 1rem; }
.next-study__link { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: var(--ink); letter-spacing: -0.01em; display: inline-block; padding-bottom: 0.25rem; border-bottom: 1px solid var(--ink); transition: var(--transition); }
.next-study__link:hover { color: var(--ink); border-color: var(--ink); }

/* Case study cover overlay refinements (extends existing .case-hero) */
.case-hero__case-no { color: rgba(244,241,235,0.55); margin-bottom: 1rem; }

/* --- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Global focus ring (BRAND_IDENTITY: 2px ochre, 2px offset) --- */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
  border-radius: 1px;
}
.nav__cta:focus-visible,
.btn:focus-visible,
.btn--primary:focus-visible,
.btn--ghost:focus-visible {
  outline-offset: 3px;
}
.case-hero__sub { color: rgba(244,241,235,0.7); font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 560px; }
