/* Veritasphere — The Digital Atelier
   Restrained editorial palette per brief ------------------------------ */
:root {
  --black: #111111;
  --white: #ffffff;
  --paper: #f3f1ec;
  --gray: #777777;
  --line: #d8d5cf;
  --accent: #c84b31;
  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--white);
  padding: 12px 20px; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .container { padding: 0 24px; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; max-width: 62ch; color: var(--black); }
p:last-child { margin-bottom: 0; }
.dek { font-size: 1.2rem; max-width: 52ch; color: #333; }

.eyebrow {
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 18px;
}

/* Vertical label — signature editorial device -------------------------- */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 241, 236, 0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--black); }
.main-nav ul { list-style: none; display: none; gap: 30px; margin: 0; padding: 0; }
.main-nav a { font-size: 0.86rem; letter-spacing: 0.02em; color: var(--black); padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--accent); }
@media (min-width: 900px) { .main-nav ul { display: flex; } }
.header-cta { display: none; font-size: 0.82rem; padding: 10px 20px; border: 1px solid var(--black); }
.header-cta:hover { background: var(--black); color: var(--white); }
@media (min-width: 900px) { .header-cta { display: inline-block; } }
.nav-toggle { background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 0.85rem; cursor: pointer; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 0 28px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 0.9rem; cursor: pointer; white-space: nowrap; border: 1px solid var(--black); }
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Sections ------------------------------------------------------------- */
.section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 72px 0; }
.section--black { background: var(--black); color: var(--white); border-bottom-color: #2a2a2a; }
.section--black h1, .section--black h2, .section--black h3, .section--black h4 { color: var(--white); }
.section--black p, .section--black .dek { color: rgba(255,255,255,0.72); }
.section--white { background: var(--white); }
.section-index { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gray); margin-bottom: 8px; }

/* 01 Opening Frame ---------------------------------------------------- */
.opening { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.opening-media { position: absolute; inset: 0; z-index: 0; }
.opening-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.08); }
.opening-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,0.82) 10%, rgba(17,17,17,0.25) 55%, rgba(17,17,17,0.55) 100%); }
.opening-top { position: relative; z-index: 1; padding: 32px 0 0; }
.opening-top .container { display: flex; justify-content: space-between; align-items: center; }
.opening-loc { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.75); }
.opening-body { position: relative; z-index: 1; padding: 60px 0 72px; color: var(--white); }
.opening-body h1 { color: var(--white); max-width: 15ch; margin-bottom: 26px; }
.opening-body .dek { color: rgba(255,255,255,0.78); margin-bottom: 32px; }

/* 02 Statement ---------------------------------------------------------- */
.statement-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) { .statement-grid { grid-template-columns: 1fr 1fr; } }
.statement-list { display: flex; flex-direction: column; }
.statement-list span { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.06; border-bottom: 1px solid var(--line); padding: 10px 0; }
.statement-list span:first-child { padding-top: 0; }
.statement-text { padding-top: 14px; }

/* 03 The Practice — interactive numbered list, not cards --------------- */
.practice-list { border-top: 1px solid var(--line); }
.practice-item { border-bottom: 1px solid var(--line); }
.practice-row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer; background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-sans); color: var(--black);
}
.practice-row .p-n { font-family: var(--font-display); font-size: 1.3rem; color: var(--gray); }
.practice-row .p-name { font-family: var(--font-display); font-size: 1.7rem; }
.practice-row .p-sign { font-size: 1.4rem; color: var(--gray); transition: transform 0.2s ease; }
.practice-item[open] .p-sign { transform: rotate(45deg); color: var(--accent); }
.practice-item[open] .p-name { color: var(--accent); }
.practice-panel { display: grid; grid-template-columns: 1fr 260px; gap: 32px; padding: 0 0 34px; align-items: center; }
@media (max-width: 720px) { .practice-panel { grid-template-columns: 1fr; } }
.practice-panel img { width: 100%; height: 170px; object-fit: cover; filter: grayscale(60%); }
.practice-item summary { list-style: none; }
.practice-item summary::-webkit-details-marker { display: none; }

/* 04 Visual Case Study Wall ---------------------------------------------- */
.case-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .case-wall { grid-template-columns: 1fr; } }
.case-cell { background: var(--paper); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.case-cell .case-n { font-family: var(--font-display); font-size: 2.2rem; color: var(--gray); }
.case-field { border-top: 1px solid var(--line); padding-top: 12px; }
.case-field .cf-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 6px; }
.case-field p { font-size: 0.92rem; font-style: italic; color: var(--gray); }
.case-note { font-size: 0.86rem; color: var(--gray); margin-top: 24px; max-width: 70ch; border-left: 2px solid var(--accent); padding-left: 16px; }

/* 05 The Signal ----------------------------------------------------------- */
.signal-list { border-top: 1px solid #2a2a2a; }
.signal-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px 0; border-bottom: 1px solid #2a2a2a; }
@media (min-width: 800px) { .signal-row { grid-template-columns: 260px 1fr; gap: 32px; align-items: baseline; } }
.signal-row h3 { font-size: 1.2rem; color: var(--white); }

/* 06 Journey — horizontal numbered sequence ------------------------------ */
.journey-track { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 980px) { .journey-track { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .journey-track { grid-template-columns: 1fr; } }
.journey-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.journey-cell .j-n { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.journey-cell h4 { margin: 20px 0 10px; }
.journey-cell p { font-size: 0.9rem; }

/* 07 Studio blocks -------------------------------------------------------- */
.studio-block { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .studio-block { grid-template-columns: 220px 1fr 280px; align-items: center; gap: 36px; } }
.studio-block:last-child { border-bottom: none; }
.studio-block img { width: 100%; height: 160px; object-fit: cover; filter: grayscale(70%); }

/* Insights / listing --------------------------------------------------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-cell { background: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.insight-cell .i-cat { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.insight-cell h3 { font-size: 1.2rem; }
.insight-cell p { font-size: 0.92rem; color: var(--gray); }

.article-list { display: flex; flex-direction: column; }
.article-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .article-row { grid-template-columns: 140px 1fr 110px; gap: 28px; align-items: baseline; } }
.article-row .cat { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.article-row h3 { font-size: 1.2rem; }
.article-row p { color: var(--gray); font-size: 0.92rem; margin: 4px 0 0; }
.article-row .cta { font-size: 0.8rem; text-align: right; color: var(--gray); }

/* Roma / location section ------------------------------------------------- */
.roma-section { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.roma-media { position: absolute; inset: 0; z-index: 0; }
.roma-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.roma-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,0.85) 20%, rgba(17,17,17,0.15) 70%); }
.roma-body { position: relative; z-index: 1; padding: 60px 0; color: var(--white); width: 100%; }
.roma-lines h2 { color: var(--white); line-height: 0.98; }
.roma-address { margin-top: 24px; color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* Contact / consultation -------------------------------------------------- */
form.contact-form { display: grid; gap: 20px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; letter-spacing: 0.03em; color: var(--gray); }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 1rem; padding: 13px 4px; border: none; border-bottom: 1px solid var(--line); background: transparent; color: var(--black); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--gray); }
.consent-row input { margin-top: 3px; }

/* Page hero (interior pages) --------------------------------------------- */
.page-hero { padding: 64px 0 80px; }
.crumbs { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--gray); text-transform: uppercase; }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }
.page-hero-media { margin-top: 44px; aspect-ratio: 21/8; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(55%); }

/* Numbered index list ---------------------------------------------------- */
.index-list { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.index-row .idx-n { font-family: var(--font-display); font-size: 1.3rem; color: var(--gray); }
.index-row h3 { font-size: 1.35rem; }
.index-row p { font-size: 0.92rem; color: var(--gray); margin-top: 4px; }
.index-row .idx-arrow { font-size: 1.3rem; color: var(--gray); }
.index-row:hover .idx-arrow { color: var(--accent); }
.index-row:hover h3 { color: var(--accent); }

.deliverables { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.deliverables li { padding-left: 22px; position: relative; font-size: 0.96rem; }
.deliverables li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.item-list { border-top: 1px solid var(--line); }
.item-row { padding: 26px 0; border-bottom: 1px solid var(--line); }
.item-row h3 { font-size: 1.15rem; margin-bottom: 8px; }
.item-row p { font-size: 0.94rem; color: var(--gray); }

.legal-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.3rem; margin-bottom: 12px; }
.updated-note { font-size: 0.78rem; color: var(--gray); letter-spacing: 0.03em; text-transform: uppercase; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--black); color: var(--white); padding: 80px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid #2a2a2a; }
.footer-top h2 { color: var(--white); max-width: 14ch; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding: 56px 0 48px; border-bottom: 1px solid #2a2a2a; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 { font-size: 0.72rem; color: #999; margin-bottom: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.86rem; color: rgba(255,255,255,0.68); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-top: 32px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Utilities ---------------------------------------------------------------- */
.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; }
.body-copy { max-width: 68ch; }
.body-copy p { font-size: 1.05rem; }
