/* ==========================================================================
   Page layouts — Home sections & Project template (v2)
   Laptop and mobile are composed separately (see the @media blocks at the
   end of each section), not just shrunk.
   ========================================================================== */

/* ---------- HERO: who / what / where to click, in the first screen -------- */
.hero { padding-top: calc(64px + clamp(0.9rem, 3.5vh, 3rem)); }
.hero__inner { width: min(100%, 1100px, 118vh); margin-inline: auto; } /* logo scales with screen height too: folders stay in the first view */
.hero__logo .logotype { cursor: default; }
.hero__baseline-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: clamp(0.5rem, 1vw, 0.9rem); padding-left: 0.4%; }
.hero__place { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); white-space: nowrap; }
.hero__intro { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4) var(--s-5); flex-wrap: wrap; margin-top: clamp(0.9rem, 2.4vh, 1.75rem); }
.hero__lede { max-width: 28.5rem; font-size: var(--fs-lead); line-height: 1.32; }
.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Stamp press — the logotype lands like an embossing stamp (CSS, no fade) */
@keyframes stamp-press {
  0%   { transform: translateY(-10px) scale(1.07); filter: drop-shadow(0 22px 18px rgb(42 18 15 / 0.28)); }
  62%  { transform: translateY(0) scale(0.99);     filter: drop-shadow(0 1px 0 rgb(42 18 15 / 0.32)); }
  100% { transform: none;                          filter: drop-shadow(0 0 0 rgb(42 18 15 / 0)); }
}
.hero__logo .logotype { animation: stamp-press 0.62s cubic-bezier(0.55, 0, 0.7, 0.25) 0.15s backwards; transform-origin: 50% 60%; }

/* The folder stack — tabs are the site’s sections (Report / Bravora refs) */
.stack {
  --step: clamp(40px, 5.2vh, 50px);             /* height of each tab band */
  position: relative; margin-top: clamp(1.1rem, 3vh, 2.5rem);
  height: calc(var(--step) * 4 + clamp(270px, 23vw, 390px));
  overflow: clip;
}
.stack__folder {
  --k: 0; --c: var(--kraft); --ink-c: var(--kraft-ink);
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--step) * (var(--k) + 1));
  display: block; text-decoration: none; color: var(--ink-c);
  background-color: var(--c); background-image: var(--paper-tex); background-blend-mode: multiply;
  border-radius: 0 var(--r-folder) 0 0;
  box-shadow: 0 -8px 18px -12px rgb(42 18 15 / 0.45);
  transform: translateY(calc(var(--k) * var(--spread, 0) * 1px)); /* fans open as you scroll */
  transition: transform var(--dur-2) var(--ease-drawer);
  animation: folder-rise 0.8s var(--ease-paper) backwards;
  animation-delay: calc(0.45s + var(--k) * 0.08s);
}
@keyframes folder-rise { from { transform: translateY(90px); } }
.stack__folder:nth-child(1) { --k: 0; --c: var(--kraft); --ink-c: var(--kraft-ink); --tab-x: 0%; }
.stack__folder:nth-child(2) { --k: 1; --c: var(--olive); --ink-c: var(--cream); --tab-x: 22%; }
.stack__folder:nth-child(3) { --k: 2; --c: #d9ccad; --ink-c: var(--brown); --tab-x: 44%; }
.stack__folder:nth-child(4) { --k: 3; --c: var(--burgundy); --ink-c: var(--cream); --tab-x: 66%; }
.stack__tab { text-decoration: none; color: inherit; }
.stack__tab {
  position: absolute; bottom: 100%; left: var(--tab-x); height: var(--step); min-width: min(230px, 30%);
  padding: 0 1.9rem; display: flex; align-items: center; gap: 0.9rem;
  background-color: var(--c); background-image: var(--paper-tex); background-blend-mode: multiply;
  clip-path: polygon(0 100%, 14px 8%, 20px 0, calc(100% - 20px) 0, calc(100% - 14px) 8%, 100% 100%);
  font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; white-space: nowrap;
}
.stack__tab .n { font-family: var(--font-mono); letter-spacing: 0; opacity: 0.75; }
.stack__tab .go { margin-left: auto; font-family: var(--font-mono); letter-spacing: 0; transition: transform var(--dur-2) var(--ease-paper); }
a.stack__folder:hover, a.stack__folder:focus-visible { transform: translateY(calc(var(--k) * var(--spread, 0) * 1px - 8px)); }
a.stack__folder:hover .go, a.stack__folder:focus-visible .go { transform: translateX(4px); }
a.stack__folder:focus-visible { outline-offset: -6px; outline-color: currentColor; }
/* Front folder face: the archive itself */
.stack__face { position: absolute; inset: 0; padding: clamp(1rem, 2vw, 1.75rem); color: var(--on-dark-muted); pointer-events: none; }
.stack__face .mono { font-size: 0.75rem; }
.stack__meta { position: absolute; left: clamp(1rem, 2vw, 1.75rem); right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(0.9rem, 1.6vw, 1.4rem); display: flex; justify-content: space-between; gap: 1rem; }
.stack__emboss {
  position: absolute; right: 6%; bottom: 8%; font-family: var(--font-arabic); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: var(--burgundy);
  text-shadow: -1px -1px 0 rgb(255 255 255 / 0.09), 1px 2px 2px rgb(0 0 0 / 0.4);
}
.stack__photos { position: absolute; left: 4%; right: 22%; top: clamp(12px, 1.4vw, 22px); /* below the front tab, never over it */ display: flex; justify-content: space-between; pointer-events: auto; }
.stack__photos .polaroid { --w: clamp(120px, 13vw, 210px); animation: photo-drop 0.7s var(--ease-paper) backwards; animation-delay: calc(0.85s + var(--i, 0) * 0.07s); }
.stack__photos .polaroid:nth-child(1) { --tilt: -6deg; --i: 0; margin-top: 18px; }
.stack__photos .polaroid:nth-child(2) { --tilt: 3deg;  --i: 1; margin-top: 4px; }
.stack__photos .polaroid:nth-child(3) { --tilt: -2deg; --i: 2; margin-top: 26px; }
.stack__photos .polaroid:nth-child(4) { --tilt: 5deg;  --i: 3; margin-top: 8px; }
.stack__photos .polaroid:nth-child(5) { --tilt: -4deg; --i: 4; margin-top: 22px; }
.stack__photos .polaroid { transform: rotate(var(--tilt)) translateY(calc(var(--lift, 0) * -1px)); }
@keyframes photo-drop { from { transform: translateY(-36px) rotate(0deg); } }
.stack__photos .clip { left: 16%; top: -24px; }
.stack__photos a { display: block; text-decoration: none; }

@media (max-width: 760px) {
  .hero { padding-top: calc(56px + 1.6rem); }
  .hero__baseline-row { flex-direction: column; gap: 0.35rem; }
  .baseline { font-size: 0.7rem; letter-spacing: 0.2em; }
  .hero__intro { margin-top: 1.25rem; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn--solid { flex: 1; }
  .hero__ctas .btn--line { display: none; } /* the bottom bar already carries “Contact” */
  .stack { --step: 46px; height: calc(var(--step) * 4 + 230px); margin-top: 1.75rem; }
  .stack__tab { min-width: 0; padding: 0 1.1rem; gap: 0.45rem; font-size: 0.6875rem; letter-spacing: 0.14em; }
  .stack__tab .go { display: none; }
  .stack__folder:nth-child(2) { --tab-x: 18%; }
  .stack__folder:nth-child(3) { --tab-x: 38%; }
  .stack__folder:nth-child(4) { --tab-x: 58%; }
  .stack__photos { left: 3%; right: 3%; top: 16px; }
  .stack__photos .polaroid { --w: 31vw; }
  .stack__photos .polaroid:nth-child(4), .stack__photos .polaroid:nth-child(5) { display: none; }
  .stack__emboss { font-size: 4.5rem; right: 5%; bottom: 18%; }
}

/* ---------- PROJECTS ------------------------------------------------------ */
.projects { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.projects__toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.view-toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r-pill); padding: 3px; flex: none; }
.view-toggle button { min-height: 40px; padding: 0 1.1rem; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 0.75rem; }
.view-toggle button[aria-pressed="true"] { background: var(--burgundy); color: var(--cream); }
.folders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3.5rem) clamp(1rem, 2vw, 2rem); padding-top: var(--s-5); }
.folders .folder.is-hidden { display: none; }
[data-view="list"] .folders, [data-view="folders"] .index { display: none; }
@media (max-width: 1240px) { .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .projects__toolbar .pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .projects__toolbar .pills::-webkit-scrollbar { display: none; }
  .index__link { grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.5rem 0.75rem; }
  .index__cat { grid-column: 2; justify-self: start; min-height: 30px; font-size: 0.6875rem; }
  .index__brand { font-size: 1.9rem; }
  /* Folders become a stack that piles up as you scroll */
  .folders { grid-template-columns: 1fr; gap: 0; }
  .folders .folder { position: sticky; top: calc(66px + var(--k, 0) * 8px); margin-bottom: 1.75rem; }
}

/* ---------- ABOUT: one shared grid — tops and bottoms aligned -------------- */
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  grid-template-rows: auto 1fr auto;  /* row 1–2: collage beside the text · row 3: keywords beside the numbers sheet */
}
.about__collage {
  grid-column: 1 / span 6; grid-row: 1 / span 2; align-self: stretch; min-height: 460px;
  display: grid; grid-template-columns: 1fr 1fr auto; grid-template-rows: 1.2fr 1fr; gap: var(--s-4);
}
.about__img { position: relative; box-shadow: var(--shadow-doc); background: var(--cream); overflow: hidden; min-height: 0; }
.about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* images never stretch the row */
.about__img--1 { grid-column: 1 / 3; grid-row: 1; }
.about__img--2 { grid-column: 1; grid-row: 2; }
.about__img--3 { grid-column: 2; grid-row: 2; }
.about__vlogo { grid-column: 3; grid-row: 1 / 3; width: clamp(3rem, 6.4vw, 6.6rem); position: relative; }
.about__vlogo .logotype { position: absolute; left: 0; top: 0; width: var(--h, 600px); transform-origin: 0 0; transform: rotate(90deg) translateY(-100%); }
.about__head { grid-column: 8 / -1; grid-row: 1; }
.about__head .eyebrow { line-height: 1; } /* its top sits on the collage’s top edge */
.about__title { font-size: var(--fs-h2); font-weight: 300; line-height: 0.98; letter-spacing: var(--track-tight); margin: var(--s-4) 0 var(--s-5); }
.about__body { grid-column: 8 / -1; grid-row: 2; align-self: end; /* last line sits on the collage’s bottom edge */ max-width: var(--measure); display: grid; gap: var(--s-3); }
.about__body p:first-child { font-size: var(--fs-lead); line-height: 1.36; }
.about__body strong { font-weight: 500; }
.about__sheet { grid-column: 8 / -1; grid-row: 3; align-self: start; margin-top: var(--s-8); max-width: 30rem; --tilt: -0.8deg; }
.about__sheet .clip { right: 2.4rem; top: -26px; }
.about__sheet .leader { font-size: 0.875rem; padding: 0.12em 0; }
.about__sheet .sheet__hand { right: 1.6rem; bottom: 0.9rem; --r: -5deg; }
@media (max-width: 1100px) { .about__head, .about__body, .about__sheet { grid-column: 7 / -1; } }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: var(--s-5); }
  .about__head { order: -1; }  /* on a phone: say who we are, then show it */
  .about__head, .about__body, .about__sheet, .about__collage, .about__keywords { grid-column: 1; grid-row: auto; }
  .about__collage { min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: var(--s-3); }
  .about__img img { position: static; }
  .about__img--1 { aspect-ratio: 4 / 3; }
  .about__img--2, .about__img--3 { aspect-ratio: 4 / 5; }
  .about__vlogo { display: none; }
  .about__title { margin-bottom: 0; }
  .about__sheet { margin-top: var(--s-4); max-width: none; }
}

/* Keywords — compact; a flowing list on mobile so nothing overlaps */
.keywords { position: relative; height: clamp(300px, 26vw, 400px); margin-top: var(--s-8); }
.about__keywords { grid-column: 1 / span 6; grid-row: 3; }
.keywords__label { position: absolute; left: 0; top: 0; }
.keyword {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-family: var(--font-sans); font-weight: 400; font-size: var(--fs, clamp(0.8rem, 0.7rem + 0.45vw, 1.15rem));
  letter-spacing: var(--track-wide); text-transform: uppercase; white-space: nowrap; color: var(--ink); transition: color var(--dur-1);
}
.keyword--serif { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-style: italic; font-weight: 300; font-size: var(--fs, clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem)); }
.keyword--accent { color: var(--burgundy); }
.keyword--olive { color: var(--olive); }
.keyword .ar { display: block; text-align: center; font-size: 1.05rem; font-style: normal; line-height: 1.3; color: var(--ink-muted); letter-spacing: 0; margin-top: 0.15em; }
.keyword:hover { color: var(--burgundy); }
@media (max-width: 760px) {
  .keywords { height: auto; margin-top: var(--s-7); }
  .about__keywords { grid-column: 1; grid-row: auto; }
  .keywords__label { position: static; margin-bottom: var(--s-4); }
  .keywords ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.6rem 1.1rem; }
  .keyword { position: static; transform: none; }
  .keyword--serif { --fs: 1.75rem !important; }
}

/* ---------- MANIFESTO — calmer, smaller, still exploded ------------------- */
.quote { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.quote__inner { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.quote__text { margin: 0; font-size: clamp(1.9rem, 1.05rem + 3.6vw, 4.25rem); font-weight: 300; line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em; position: relative; }
.quote__text .script { text-transform: none; color: var(--kraft); font-size: 1.12em; line-height: 1; }
.quote__mark { position: absolute; left: -0.55em; top: -0.18em; font-size: 1.4em; line-height: 1; color: var(--kraft); opacity: 0.5; font-style: italic; pointer-events: none; }
.quote__foot { display: flex; justify-content: space-between; margin-top: var(--s-5); color: var(--on-dark-muted); font-size: 0.75rem; }
@media (max-width: 760px) { .quote__mark { position: static; display: block; height: 0.6em; } }

/* ---------- CLIENTS ------------------------------------------------------- */
.clients__head p { max-width: 24rem; color: var(--ink-muted); }

/* ---------- SERVICES ------------------------------------------------------ */
.services__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--s-5) var(--s-7); align-items: end; margin-bottom: var(--s-6); }
.services__head .lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--on-dark-muted); max-width: 30rem; }
.services__head .lead strong { color: var(--cream); font-weight: 500; }
@media (max-width: 900px) { .services__head { grid-template-columns: 1fr; } }

/* ---------- CONTACT ------------------------------------------------------- */
.contact { padding-block: var(--section); overflow-x: clip; }
.contact__sheet { --tilt: -0.4deg; }
.contact__paper {
  background-color: var(--kraft); color: var(--brown); font-family: var(--font-display); font-size: var(--fs-body); text-shadow: none;
  box-shadow: inset 0 0 60px rgb(90 60 25 / 0.28);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(1.75rem, 1rem + 4vw, 5rem);
}
.contact__title { font-size: var(--fs-display); font-weight: 300; line-height: 0.92; letter-spacing: var(--track-tight); }
.contact__title .script { color: var(--burgundy); font-size: 1.1em; display: inline-block; margin-top: 0.1em; }
.contact__list { margin-top: var(--s-6); display: grid; gap: var(--s-2); font-family: var(--font-type); font-size: 1rem; }
.contact__list a { text-decoration-color: rgb(42 18 15 / 0.4); display: inline-flex; min-height: 40px; align-items: center; }
.contact__list a:hover { color: var(--burgundy); text-decoration-color: currentColor; }
.contact__meta { display: flex; gap: var(--s-5); flex-wrap: wrap; color: var(--kraft-ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); align-content: start; position: relative; }
.field { display: grid; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kraft-ink); }
.field input, .field select, .field textarea {
  font: 400 1.125rem/1.4 var(--font-display); color: var(--brown); min-height: 44px;
  background: transparent; border: 0; border-bottom: 1px solid rgb(42 18 15 / 0.45); padding: 0.4rem 0; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6' fill='%232c1c1b'/></svg>") right 0.2rem center no-repeat; }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--burgundy); }
.form .btn { justify-self: start; margin-top: var(--s-3); }
.form__note { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.75rem; color: var(--kraft-ink); }
.contact__sheet .stamp { right: clamp(1rem, 4vw, 4rem); top: clamp(-2.5rem, -3vw, -1.5rem); --tilt: 14deg; z-index: 3; }
@media (max-width: 900px) { .contact__paper { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .form .btn { justify-self: stretch; } .contact__sheet .stamp { width: 84px; right: 0.5rem; top: -1.6rem; } }

/* ---------- FOOTER --------------------------------------------------------- */
.footer { padding: var(--s-8) 0 var(--s-5); }
.footer .logotype { --logo-color: var(--kraft); }
.footer__row { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-5); color: var(--on-dark-muted); font-size: 0.75rem; }
.footer__row .ar { font-size: 1.4rem; color: var(--kraft); line-height: 1; }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
.p-head { padding-top: calc(64px + clamp(1.75rem, 4vw, 4rem)); padding-bottom: var(--s-7); }
.p-crumbs { display: flex; gap: var(--s-4); align-items: center; color: var(--ink-muted); margin-bottom: var(--s-5); flex-wrap: wrap; }
.p-crumbs a { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.p-crumbs a:hover { color: var(--burgundy); }
.p-head__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.p-brand { font-size: var(--fs-h1); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; line-height: 0.95; }
.p-brand .times { font-style: italic; text-transform: none; color: var(--burgundy); font-weight: 300; }
.p-title { font-family: var(--font-script); font-size: clamp(2.4rem, 1.8rem + 3vw, 4.75rem); color: var(--burgundy); line-height: 1.1; margin: 0.15em 0 0.3em -0.04em; }
.p-desc { font-size: var(--fs-lead); line-height: 1.4; max-width: 30rem; margin-top: var(--s-4); }
.p-sheet-wrap { position: relative; padding-top: var(--s-3); }
.p-sheet-wrap .sheet { --tilt: 0.9deg; }
.p-sheet-wrap .stamp { right: -0.8rem; bottom: -2.4rem; --tilt: -14deg; }
.p-sheet-wrap .clip { left: 2rem; top: -14px; }
.p-sheet-wrap .sheet__hand { right: 1.4rem; top: 1.1rem; --r: 4deg; color: var(--burgundy); }
@media (max-width: 900px) { .p-head__grid { grid-template-columns: 1fr; } .p-sheet-wrap .stamp { right: 0.4rem; } }
@media (max-width: 760px) { .p-sheet-wrap .sheet { --tilt: 0.3deg; } }
.p-head { overflow-x: clip; }

.p-cover--bleed { height: min(82vh, 60vw); overflow: hidden; }
.p-cover--bleed img { width: 100%; height: 115%; object-fit: cover; }
.p-cover--framed { padding-block: var(--s-7); }
.p-cover--framed .polaroid { margin-inline: auto; --w: min(100% - 2 * var(--gutter), 520px); --tilt: -1.5deg; }
@media (max-width: 760px) { .p-cover--bleed { height: 62vh; } }

.process__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-7); }
.process__steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.step:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.step:nth-child(3) { margin-top: clamp(0.75rem, 2vw, 2rem); }
.step__label { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.step__label .mono { color: var(--ink-muted); font-size: 0.75rem; }
.step__label h3 { font-size: var(--fs-h3); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; }
.step__label .arrow { margin-left: auto; font-family: var(--font-mono); color: var(--burgundy); }
.step .doc { position: relative; box-shadow: var(--shadow-doc); background-color: var(--polaroid); background-image: var(--paper-tex); padding: 3.5%; transform: rotate(var(--tilt, 0deg)); }
.step .doc img { width: 100%; }
.step .doc + .doc { margin-top: var(--s-4); }
.step:nth-child(1) .doc { --tilt: -1.2deg; }
.step:nth-child(2) .doc { --tilt: 0.8deg; }
.step:nth-child(3) .doc { --tilt: -0.5deg; }
@media (max-width: 760px) { .process__steps { grid-template-columns: 1fr; } .step:nth-child(n) { margin-top: 0; } }

.compare { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.compare .ba { aspect-ratio: var(--ar, 16 / 9); box-shadow: var(--shadow-lift); }
.compare__text h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1; }
.compare__text h2 .script { color: var(--kraft); }
.compare__text p { color: var(--on-dark-muted); margin-top: var(--s-4); max-width: 22rem; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.5rem); align-items: start; }
.gallery figure { position: relative; }
.gallery img { width: 100%; height: auto; box-shadow: var(--shadow-doc); }
.gallery figcaption { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-muted); margin-top: 0.6rem; display: flex; gap: 0.8rem; }
.g-wide { grid-column: span 8; }
.g-wide.g-right { grid-column: 5 / span 8; }
.g-tall { grid-column: span 4; }
.g-mid { grid-column: span 5; }
.g-mid.g-push { grid-column: 7 / span 5; }
.g-solo { grid-column: 3 / span 8; }
/* Portrait rhythm: five placements that repeat — never a uniform grid */
.g-pa { grid-column: 1 / span 5; }
.g-pb { grid-column: 7 / span 5; margin-top: clamp(4rem, 12vw, 12rem); }
.g-pc { grid-column: 2 / span 4; }
.g-pd { grid-column: 6 / span 3; margin-top: clamp(2rem, 7vw, 7rem); }
.g-pe { grid-column: 10 / span 3; margin-top: clamp(1rem, 3vw, 3rem); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
  .g-wide, .g-wide.g-right, .g-solo { grid-column: 1 / -1; }
  .g-tall, .g-mid, .g-mid.g-push { grid-column: span 3; }
  .g-pa, .g-pc, .g-pe { grid-column: 1 / span 4; margin-top: 0; }
  .g-pb, .g-pd { grid-column: 3 / span 4; margin-top: 0; }
}

.credit { text-align: center; padding-block: var(--s-7) var(--s-6); }
.credit p { display: inline-flex; align-items: center; gap: var(--s-4); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.credit p::before, .credit p::after { content: ""; width: clamp(2rem, 8vw, 6rem); height: 1px; background: var(--line); }
.credit strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .credit p::before, .credit p::after { display: none; } .credit p { display: block; } }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-3); margin-top: var(--s-5); }
.p-nav a { text-decoration: none; display: block; }
.p-nav__tab {
  display: inline-flex; align-items: center; gap: 0.6rem; height: 2.6rem; padding: 0 1.6rem;
  background-color: var(--kraft); background-image: var(--paper-tex); background-blend-mode: multiply; color: var(--kraft-ink);
  clip-path: polygon(0 100%, 12px 8%, 17px 0, calc(100% - 17px) 0, calc(100% - 12px) 8%, 100% 100%);
  font-family: var(--font-mono); font-size: 0.75rem; transition: transform var(--dur-2) var(--ease-drawer);
}
.p-nav__card {
  background-color: var(--kraft); background-image: var(--paper-tex); background-blend-mode: multiply; color: var(--brown);
  padding: clamp(1.2rem, 1rem + 1.5vw, 2.2rem); border-radius: 0 var(--r-folder) 0 0; min-height: 8.5rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
}
.p-nav__next { text-align: right; }
.p-nav__next .p-nav__tab { margin-left: auto; background-color: #d9ccad; }
.p-nav__next .p-nav__card { border-radius: var(--r-folder) 0 0 0; background-color: #d9ccad; }
.p-nav__brand { font-size: var(--fs-h2); font-weight: 300; line-height: 1; }
.p-nav__brand em { font-weight: 300; }
.p-nav a:hover .p-nav__tab { transform: translateY(-6px); }
.p-nav a:hover .p-nav__brand { color: var(--burgundy); }
@media (max-width: 640px) { .p-nav { grid-template-columns: 1fr; } .p-nav__next { text-align: left; } .p-nav__next .p-nav__tab { margin-left: 0; } }
