/* ==========================================================================
   Victoria German — site styles (Direction A: Refined Editorial)
   Change colors, fonts and spacing site-wide with the variables below.
   ========================================================================== */

:root {
  --bg: #faf8f5;          /* page background */
  --panel: #f1ece6;       /* contact panel, notes, image backdrops */
  --text: #4f4949;        /* body text */
  --muted: #7a7272;       /* labels, dates */
  --rule: #e3ddd6;        /* thin divider lines */
  --field-border: #d8d0c7;
  --accent: #8e573d;      /* terracotta: labels, metrics, links */

  --font-heading: "Marcellus", Georgia, serif;
  --font-body: "PT Serif", Georgia, serif;

  --gutter: 64px;         /* page side margin */
  --max: 1280px;          /* page width */
  --gap: 24px;            /* grid column gap */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip-link:focus { left: 8px; z-index: 10; }

/* ---------- Layout ---------- */

.page { max-width: var(--max); margin: 0 auto; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.inset { margin-left: var(--gutter); margin-right: var(--gutter); }

/* 12-column row: heading on the left (cols 1–3), content on the right (cols 5–11/12) */
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.row > .row-label { grid-column: 1 / span 3; }
.row > .row-body { grid-column: 5 / span 7; }
.row > .row-body.wide { grid-column: 5 / span 8; }

.eyebrow { font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent); }
.label { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.text-lg { font-size: 20px; line-height: 1.65; }
.text-lg > * + * { margin-top: 20px; }
.statement { font-family: var(--font-heading); font-size: 25px; line-height: 1.45; }
.statement + .statement { margin-top: 24px; }
.section-title { font-size: 30px; line-height: 1.3; }

/* ---------- Header ---------- */

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.site-title { font-family: var(--font-heading); font-size: 24px; letter-spacing: -0.3px; text-decoration: none; }
.site-nav { display: flex; gap: 32px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Home ---------- */

.home-hero { padding-top: 96px; padding-bottom: 88px; }
.home-hero .eyebrow { grid-column: 1 / -1; margin-bottom: 28px; }
.home-hero h1 { grid-column: 1 / span 10; font-size: 60px; line-height: 1.18; letter-spacing: -1.2px; }
.home-hero .intro { grid-column: 5 / span 7; margin-top: 44px; font-size: 21px; line-height: 1.6; }

.work { padding-top: 56px; padding-bottom: 112px; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.work-head h2 { font-size: 32px; }
.work-head span { font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.card:hover { color: inherit; }
.card-img { overflow: hidden; background: var(--panel); aspect-ratio: 1230 / 762; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-text { display: flex; flex-direction: column; gap: 6px; }
.card-name { font-family: var(--font-heading); font-size: 26px; line-height: 1.25; }
.card:hover .card-name { color: var(--accent); }
.card-desc { font-size: 16px; line-height: 1.5; }
.card-metric { font-size: 15px; color: var(--accent); margin-top: 4px; }

.contact { background: var(--panel); padding: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; margin-bottom: 120px; }
.contact h2 { font-size: 40px; margin-bottom: 20px; }
.contact p { font-size: 18px; line-height: 1.6; }
.socials { display: flex; gap: 24px; font-size: 15px; margin-top: 28px; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.form input, .form textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--field-border); border-radius: 4px;
  padding: 0 16px; width: 100%;
}
.form input { height: 48px; }
.form textarea { height: 120px; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.button {
  align-self: flex-start; height: 48px; padding: 0 28px;
  background: var(--text); color: var(--bg); border: 0; border-radius: 4px;
  font: inherit; font-size: 15px; cursor: pointer; transition: background .2s;
}
.button:hover { background: var(--accent); }
.button[disabled] { opacity: .6; cursor: default; }
.form-status { font-size: 15px; min-height: 22px; }

/* ---------- Case studies ---------- */

.cs-head { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.cs-head h1 { max-width: 960px; font-size: 56px; line-height: 1.18; letter-spacing: -1px; }

.meta { padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.meta div { display: flex; flex-direction: column; gap: 6px; }
.meta span:last-child { font-size: 17px; }
.meta .hl { color: var(--accent); }

.hero { margin-top: 56px; }
.hero.panel { background: var(--panel); height: 600px; padding: 40px; display: flex; align-items: center; justify-content: center; }
.hero.panel img { max-height: 100%; width: auto; }

.section { padding-top: 96px; }
.section.tight { padding-top: 80px; }

.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.outcomes ol { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: 18px; }
.outcomes li { counter-increment: n; display: flex; gap: 16px; font-size: 18px; line-height: 1.5; }
.outcomes li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-heading); color: var(--accent); }

.figure { margin: 104px var(--gutter) 0; }
.figure figcaption { margin-top: 24px; }
.figure figcaption .row-body { font-size: 17px; line-height: 1.6; font-style: italic; }
.figure figcaption .row-body p + p { margin-top: 12px; }
.figure figcaption .label { padding-top: 4px; }

.part { margin-top: 136px; padding-top: 72px; border-top: 1px solid var(--rule); }
.part h2 { grid-column: 1 / span 10; margin-top: 24px; font-size: 44px; line-height: 1.25; letter-spacing: -0.6px; }
.part .eyebrow { grid-column: 1 / -1; }

.split { padding-top: 56px; align-items: center; }
.split .statement { grid-column: 1 / span 5; }
.split .split-img { grid-column: 7 / span 6; }

.band { margin-top: 104px; padding: 56px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band.row { align-items: center; }
.band .big { grid-column: 1 / span 4; font-family: var(--font-heading); font-size: 96px; line-height: 1; letter-spacing: -2px; color: var(--accent); }
.band p { grid-column: 5 / span 7; font-size: 21px; line-height: 1.6; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stats div { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.stats strong { font-family: var(--font-heading); font-weight: 400; font-size: 64px; line-height: 1; color: var(--accent); }

.gallery { padding-top: 104px; display: flex; flex-direction: column; gap: 24px; }
.gallery .label { margin-bottom: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.note { margin-top: 88px; padding: 24px 28px; background: var(--panel); font-size: 16px; font-style: italic; }

.pager { margin-top: 112px; margin-bottom: 64px; padding: 40px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.pager a { text-decoration: none; }
.pager .step { display: flex; flex-direction: column; gap: 6px; }
.pager .step span:first-child { font-size: 13px; color: var(--muted); }
.pager .step span:last-child { font-family: var(--font-heading); font-size: 30px; line-height: 1.25; }
.pager .next { text-align: right; margin-left: auto; }
.pager .plain { font-size: 15px; text-decoration: underline; }

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

.about-banner { margin-top: 24px; }
.about-banner img { width: 100%; height: 420px; object-fit: cover; }
.about-intro .row-label { display: flex; flex-direction: column; gap: 16px; }
.about-intro h1 { font-size: 40px; line-height: 1.2; }
.about-intro a.accent { color: var(--accent); }
.photos { padding-top: 112px; padding-bottom: 120px; }
.photos-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.photos-head .label { font-size: 13px; letter-spacing: 2.4px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.photo-grid a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); transition: opacity .2s; }
.photo-grid a:hover img { opacity: .85; }
.photo-grid span { font-size: 15px; line-height: 1.5; font-style: italic; }

/* ---------- Blog ---------- */

.blog-head { padding-top: 80px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.blog-head h1 { font-size: 60px; line-height: 1.15; letter-spacing: -1.2px; }
.post-row { padding: 56px 0; align-items: center; border-bottom: 1px solid var(--rule); }
.post-row:last-child { border-bottom: 0; margin-bottom: 64px; }
.post-row .post-thumb { grid-column: 1 / span 4; }
.post-row .post-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-row .post-text { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 16px; }
.post-row h2 { font-size: 40px; line-height: 1.2; }
.post-row h2 a { text-decoration: none; }
.post-row p { font-size: 19px; line-height: 1.6; }
.read-more { font-size: 15px; color: var(--accent); text-underline-offset: 4px; }

.post { max-width: 760px; margin: 0 auto; padding-top: 64px; }
.post .back { display: inline-block; margin-bottom: 40px; }
.post .eyebrow { margin-bottom: 20px; }
.post h1 { font-size: 52px; line-height: 1.18; letter-spacing: -1px; margin-bottom: 24px; }
.post .dek { font-size: 21px; line-height: 1.6; font-style: italic; margin-bottom: 40px; }
.post-hero img { width: 100%; height: 420px; object-fit: cover; margin-bottom: 56px; }
.post-body { font-size: 19px; line-height: 1.75; }
.post-body p + p { margin-top: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 14px; }
.byline { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.byline span:last-child { font-family: var(--font-heading); font-size: 24px; }
.post-pager { margin-top: 96px; }
.post-pager .step span:last-child { font-size: 28px; }

/* ---------- 404 ---------- */
.not-found { padding-top: 120px; padding-bottom: 200px; text-align: center; }
.not-found h1 { font-size: 48px; margin-bottom: 16px; }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  :root { --gutter: 40px; }
  .home-hero h1 { font-size: 48px; grid-column: 1 / -1; }
  .home-hero .intro { grid-column: 3 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; gap: 40px; padding: 56px; }
  .cs-head h1 { font-size: 46px; }
  .row > .row-body, .row > .row-body.wide { grid-column: 4 / -1; }
  .outcomes { gap: 32px; }
  .hero.panel { height: 480px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .big { font-size: 72px; }
  .stats strong { font-size: 52px; }
}

/* ---------- Phone ---------- */

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .site-title { font-size: 21px; }
  .site-nav { gap: 20px; }

  .row { display: block; }
  .row > * + * { margin-top: 20px; }

  .home-hero { padding-top: 40px; padding-bottom: 56px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero .intro { margin-top: 28px; font-size: 18px; }
  .work { padding-bottom: 72px; }
  .work-head h2 { font-size: 28px; }
  .cards { grid-template-columns: 1fr; gap: 48px; }
  .contact { padding: 36px 24px; margin-bottom: 64px; }
  .contact h2 { font-size: 32px; }

  .cs-head { padding-top: 32px; padding-bottom: 32px; }
  .cs-head h1 { font-size: 34px; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .hero { margin-top: 32px; }
  .hero.panel { height: auto; max-height: 440px; padding: 24px; }
  .hero.panel img { max-height: 392px; }
  .section { padding-top: 64px; }
  .section.tight { padding-top: 48px; }
  .section-title { font-size: 26px; }
  .text-lg { font-size: 18px; }
  .statement { font-size: 21px; }
  .outcomes { grid-template-columns: 1fr; }
  .outcomes li { font-size: 17px; }
  .figure { margin-top: 64px; }
  .figure figcaption { margin-top: 16px; }
  .figure figcaption .row-body { font-size: 16px; }
  .figure figcaption .row-body { margin-top: 8px; }
  .part { margin-top: 88px; padding-top: 48px; }
  .part h2 { font-size: 30px; }
  .split .split-img { margin-top: 32px; }
  .band { margin-top: 64px; padding: 40px 0; }
  .band .big { font-size: 64px; }
  .band p { font-size: 18px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .gallery { padding-top: 64px; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .pager { margin-top: 72px; flex-direction: column; align-items: stretch; }
  .pager .step span:last-child { font-size: 24px; }

  .about-banner img { height: 220px; }
  .about-intro h1 { font-size: 32px; }
  .photos { padding-top: 72px; padding-bottom: 72px; }
  .photo-grid { gap: 24px 16px; }
  .photo-grid span { font-size: 14px; }

  .blog-head { padding-top: 40px; padding-bottom: 32px; }
  .blog-head h1 { font-size: 36px; }
  .post-row { padding: 40px 0; }
  .post-row .post-text { margin-top: 24px; }
  .post-row h2 { font-size: 28px; }
  .post-row p { font-size: 17px; }
  .post { padding-top: 32px; }
  .post h1 { font-size: 34px; }
  .post .dek { font-size: 18px; }
  .post-hero img { height: 240px; margin-bottom: 40px; }
  .post-body { font-size: 17px; }
  .post-pager { margin-top: 64px; }
}

/* ---------- Load & scroll animations (see assets/js/reveal.js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2, .65, .25, 1), transform .9s cubic-bezier(.2, .65, .25, 1);
}
.js .site-header.reveal { transform: none; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Password screen for case studies (see assets/js/unlock.js) ---------- */
.gate { max-width: calc(760px + 2 * var(--gutter)); padding-top: 96px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 24px; }
.gate h1 { font-size: 56px; line-height: 1.18; letter-spacing: -1px; }
.gate-intro { font-size: 20px; line-height: 1.6; }
.gate-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.gate-form label { font-size: 15px; }
.gate-row { display: flex; gap: 12px; }
.gate-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--field-border); border-radius: 4px;
}
.gate-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gate-row .button { align-self: auto; white-space: nowrap; }
.gate-status { font-size: 15px; min-height: 22px; color: var(--accent); }
.gate-help { font-size: 15px; color: var(--muted); }
.locked .gate { visibility: hidden; }
img[data-enc] { background: var(--panel); }
@media (max-width: 700px) {
  .gate { padding-top: 40px; padding-bottom: 96px; }
  .gate h1 { font-size: 34px; }
  .gate-intro { font-size: 18px; }
  .gate-row { flex-direction: column; }
  .gate-row input { flex: none; width: 100%; }
  .gate-row .button { align-self: flex-start; }
}
