/* ─────────────────────────────────────────────────────
   Patrizio Roman — Case Study v2 Shared CSS
   navy/gold palette · cursor · veil · reveals · nav
───────────────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --navy:     #07091a;
  --navy-1:   #0d1225;
  --navy-2:   #141e38;
  --navy-3:   #1a2545;
  --gold:     #C9A96E;
  --gold-b:   #dfc07e;
  --gold-dim: #6a5530;
  --cream:    #f4f0ea;
  --muted:    #b8b4ae;
  --g1: #888; --g2: #666; --g3: #3a3a4a; --g4: #252535; --g5: #1a1f3a;
}

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

body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

/* ── GRAIN ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
}

/* ── CURSOR ── */
.c-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); pointer-events: none;
}
.c-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.4); pointer-events: none;
  transition: width .28s, height .28s, border-color .28s;
}
.c-ring.on { width: 54px; height: 54px; border-color: var(--gold); }

/* ── PAGE VEIL ── */
.veil {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--navy); opacity: 1;
  transition: opacity .5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.veil.gone { opacity: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 4rem;
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: .5px solid transparent;
}
nav.scrolled {
  background: rgba(7,9,26,.92);
  backdrop-filter: blur(12px);
  border-color: rgba(201,169,110,.12);
  padding: 1.25rem 4rem;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300; letter-spacing: .2em;
  color: var(--cream); text-decoration: none; text-transform: uppercase;
  cursor: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(184,180,174,.65); text-decoration: none; transition: color .3s;
  cursor: none;
}
.nav-links a:hover { color: var(--gold); }
.nav-back {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(184,180,174,.5); text-decoration: none; transition: color .3s;
  cursor: none; display: flex; align-items: center; gap: .5rem;
}
.nav-back:hover { color: var(--gold); }

/* ── SCROLL REVEALS ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── GOLD RULE ── */
.gold-rule {
  width: 100%; height: .5px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

/* ── PROJECT HERO ── */
.project-hero {
  padding: 9rem 4rem 6rem;
  border-bottom: .5px solid var(--g5);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end;
}
.project-eyebrow {
  font-size: 9px; letter-spacing: .38em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem; display: block;
}
.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 8vw, 96px); font-weight: 300;
  line-height: .9; letter-spacing: -.02em; color: var(--cream);
}
.project-title em {
  font-style: italic; color: var(--muted); display: block;
}
.project-meta { display: flex; flex-direction: column; justify-content: flex-end; }
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .85rem 0; border-bottom: .5px solid var(--g5);
}
.meta-row:first-child { border-top: .5px solid var(--g5); }
.meta-label {
  font-size: 9px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--g3);
}
.meta-value { font-size: 12px; color: var(--muted); letter-spacing: .05em; }

/* ── OVERVIEW ── */
.overview {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: .5px solid var(--g5); min-height: 560px;
}
.overview-left {
  padding: 4rem; border-right: .5px solid var(--g5);
  display: flex; flex-direction: column; justify-content: space-between;
}
.overview-right { overflow: hidden; }
.overview-right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  filter: brightness(.9); transition: transform .8s ease;
}
.overview-right:hover img { transform: scale(1.03); }
.overview-desc {
  font-size: 14px; line-height: 1.9; color: var(--g1);
  font-weight: 300; max-width: 400px;
}
.overview-desc + .overview-desc { margin-top: 1.5rem; color: var(--g3); }
.overview-tags { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 3rem; }
.tag {
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--g1);
  border: .5px solid var(--g4); padding: .4rem .9rem;
  transition: border-color .3s, color .3s;
}
.tag:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── FULL WIDTH IMAGE ── */
.full-image { overflow: hidden; border-bottom: .5px solid var(--g5); }
.full-image img {
  width: 100%; display: block;
  filter: brightness(.88); transition: transform 1s ease;
}
.full-image:hover img { transform: scale(1.02); }
.full-image-caption {
  padding: 1.5rem 4rem; border-top: .5px solid var(--g5);
  display: flex; justify-content: space-between; align-items: center;
}
.full-image-caption p {
  font-size: 11px; color: var(--g1); line-height: 1.7;
  max-width: 500px; font-weight: 300;
}
.full-image-caption span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; color: var(--g3); letter-spacing: .1em;
}

/* ── SECTION INTRO ── */
.section-intro {
  padding: 3rem 4rem 2.5rem; border-bottom: .5px solid var(--g5);
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title {
  font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(201,169,110,.45);
}
.section-note {
  font-size: 12px; color: var(--g3);
  font-style: italic; font-family: 'Cormorant Garamond', serif;
}

/* ── APPLICATIONS — 3 col ── */
.applications {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: .5px solid var(--g5);
}
.app-item { border-right: .5px solid var(--g5); overflow: hidden; position: relative; }
.app-item:last-child { border-right: none; }
.app-item img {
  width: 100%; height: 340px; object-fit: cover; display: block;
  filter: brightness(.85); transition: transform .6s, filter .4s;
}
.app-item:hover img { transform: scale(1.05); filter: brightness(.95); }
.app-label { padding: 1.25rem 1.5rem; border-top: .5px solid var(--g5); }
.app-label span { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--g3); }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .5px solid var(--g5); }
.col-item { overflow: hidden; border-right: .5px solid var(--g5); }
.col-item:last-child { border-right: none; }
.col-item img { width: 100%; height: 480px; object-fit: cover; display: block; transition: transform .7s; }
.col-item:hover img { transform: scale(1.03); }
.col-label { padding: 1.25rem 1.5rem; border-top: .5px solid var(--g5); }
.col-label span { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--g3); }

/* ── THREE COL ── */
.three-col { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: .5px solid var(--g5); }
.three-col .col-item img { height: 420px; }

/* ── DIGITAL — 2 col ── */
.digital { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .5px solid var(--g5); }
.digital-item { overflow: hidden; border-right: .5px solid var(--g5); }
.digital-item:last-child { border-right: none; }
.digital-item img { width: 100%; height: 460px; object-fit: cover; display: block; filter: brightness(.85); transition: transform .6s; }
.digital-item:hover img { transform: scale(1.03); }
.digital-label { padding: 1.25rem 1.5rem; border-top: .5px solid var(--g5); }
.digital-label span { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--g3); }

/* ── FEED STRIP — 4 col default · 3 col variant ── */
.feed-strip { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: .5px solid var(--g5); }
.feed-strip.feed-strip-3 { grid-template-columns: repeat(3,1fr); }
.feed-item { overflow: hidden; border-right: .5px solid var(--g5); }
.feed-item:last-child { border-right: none; }
.feed-item img { width: 100%; height: 260px; object-fit: cover; display: block; filter: brightness(.8); transition: transform .6s, filter .4s; }
.feed-strip.feed-strip-3 .feed-item img { height: 360px; }
.feed-item:hover img { transform: scale(1.05); filter: brightness(.95); }

/* ── PHOTO STRIP — 7 col ── */
.photo-strip { display: grid; grid-template-columns: repeat(7,1fr); border-bottom: .5px solid var(--g5); overflow: hidden; }
.strip-item { overflow: hidden; border-right: .5px solid var(--g5); }
.strip-item:last-child { border-right: none; }
.strip-item img { width: 100%; height: 220px; object-fit: cover; display: block; filter: brightness(.75); transition: transform .6s, filter .4s; }
.strip-item:hover img { transform: scale(1.08); filter: brightness(.92); }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: .5px solid var(--g5); background: var(--navy-1);
}
.stat-item { padding: 2.5rem 4rem; border-right: .5px solid var(--g5); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; color: var(--cream);
  line-height: 1; margin-bottom: .4rem;
}
.stat-label { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--g3); }

/* ── PROCESS (Estudio E) ── */
.process { border-bottom: .5px solid var(--g5); }
.process-image { overflow: hidden; }
.process-image img { width: 100%; display: block; filter: brightness(.88); }
.process-caption {
  padding: 2rem 4rem; border-top: .5px solid var(--g5);
  display: flex; justify-content: space-between; align-items: center;
}
.process-caption p { font-size: 11px; line-height: 1.7; color: var(--g1); max-width: 500px; font-weight: 300; }
.process-degree {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; color: var(--g5); font-weight: 300; letter-spacing: -.02em;
}

/* ── GIF FULL (Miska Muska) ── */
.gif-full {
  background: var(--navy-1); border-bottom: .5px solid var(--g5);
  display: flex; align-items: center; justify-content: center;
  padding: 5rem 4rem; gap: 6rem;
}
.gif-full img.gif-main { max-height: 600px; max-width: 320px; object-fit: contain; display: block; }
.gif-context { max-width: 280px; display: flex; flex-direction: column; gap: 2rem; }
.gif-context-label { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(201,169,110,.5); }
.gif-context-text {
  font-family: 'Cormorant Garamond', serif; font-size: 28px;
  font-weight: 300; line-height: 1.3; color: var(--cream); font-style: italic;
}
.gif-context-body { font-size: 12px; line-height: 1.8; color: var(--g1); font-weight: 300; }

/* ── CONTEXT STRIP (Miska Muska) ── */
.context-strip { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .5px solid var(--g5); }
.context-left { padding: 4rem; border-right: .5px solid var(--g5); }
.context-right { overflow: hidden; }
.context-right img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .7s; }
.context-right:hover img { transform: scale(1.03); }
.context-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 28px;
  font-weight: 300; line-height: 1.35; color: var(--cream);
  margin-bottom: 2rem; font-style: italic;
}
.context-body { font-size: 13px; line-height: 2; color: var(--g1); font-weight: 300; }

/* ── BROWSER MOCKUP (Wells) ── */
.browser-wrap {
  padding: 3rem 4rem; background: var(--navy-1); border-bottom: .5px solid var(--g5);
}
.browser-frame { border: .5px solid var(--g4); border-radius: 8px; overflow: hidden; }
.browser-bar {
  background: var(--navy-2); padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  border-bottom: .5px solid var(--g5);
}
.browser-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #3a1a1a; }
.dot-yellow { background: #3a331a; }
.dot-green { background: #1a3a1e; }
.browser-url {
  flex: 1; background: var(--navy); border: .5px solid var(--g4); border-radius: 4px;
  padding: .3rem .75rem; font-size: 10px; color: var(--g3); letter-spacing: .05em;
  max-width: 400px; margin: 0 auto;
}
.browser-content img { width: 100%; display: block; }

/* ── SCROLL MOCKUP (Wells) ── */
.scroll-mockup {
  padding: 3rem 4rem; background: var(--navy-1); border-bottom: .5px solid var(--g5);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.scroll-frame {
  border: .5px solid var(--g4); border-radius: 8px;
  overflow: hidden; max-height: 600px; position: relative;
}
.scroll-frame::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--navy-1));
  pointer-events: none;
}
.scroll-frame img { width: 100%; display: block; }
.scroll-info { display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: 2rem 0; }
.scroll-info-label { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(201,169,110,.5); margin-bottom: .75rem; }
.scroll-info-title {
  font-family: 'Cormorant Garamond', serif; font-size: 32px;
  font-weight: 300; line-height: 1.2; color: var(--cream); font-style: italic; margin-bottom: 1rem;
}
.scroll-info-body { font-size: 13px; line-height: 1.9; color: var(--g1); font-weight: 300; }

/* ── SCOPE GRID (Wells) ── */
.scope-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: .5px solid var(--g5); border-top: .5px solid var(--g5);
}
.scope-item { padding: 2.5rem; border-right: .5px solid var(--g5); }
.scope-item:last-child { border-right: none; }
.scope-num {
  font-family: 'Cormorant Garamond', serif; font-size: 40px;
  font-weight: 300; color: var(--g5); line-height: 1; margin-bottom: .75rem;
}
.scope-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--g3); margin-bottom: .5rem; }
.scope-desc { font-size: 11px; line-height: 1.7; color: var(--g3); font-weight: 300; }

/* ── TOOLS STRIP (Wells) ── */
.tools-strip {
  padding: 2rem 4rem; border-bottom: .5px solid var(--g5);
  display: flex; justify-content: space-between; align-items: center;
}
.tools-label { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(201,169,110,.45); }
.tools-list { display: flex; gap: 2rem; }
.tool-item {
  font-size: 10px; letter-spacing: .15em; color: var(--g1);
  border: .5px solid var(--g5); padding: .4rem 1rem;
  transition: border-color .3s, color .3s;
}
.tool-item:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── DIVIDER ── */
.divider-line { width: 32px; height: .5px; background: var(--gold-dim); margin: 1.5rem 0; }

/* ── NEXT PROJECT ── */
.next-project {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3rem 4rem; border-bottom: .5px solid var(--g5);
  text-decoration: none; color: inherit;
  transition: background .4s; cursor: none;
}
.next-project:hover { background: var(--navy-1); }
.next-project:hover .next-arrow { color: var(--gold); transform: translate(4px,0); }
.next-label { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--g3); margin-bottom: .5rem; }
.next-title { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: var(--muted); }
.next-arrow { font-size: 24px; color: var(--g3); transition: color .3s, transform .3s; }

/* ── FOOTER ── */
footer {
  border-top: .5px solid var(--g5); padding: 1.75rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy-1);
}
.footer-copy { font-size: 9px; letter-spacing: .18em; color: var(--g3); text-transform: uppercase; }
.footer-links { display: flex; gap: 2.5rem; }
.footer-links a {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--g3); text-decoration: none; transition: color .3s; cursor: none;
}
.footer-links a:hover { color: var(--gold); }

/* ── SHARED SCRIPTS INJECTION ── */
/* All case studies embed inline JS for cursor/veil/nav/reveals */
