/* =========================================================
   Mia Bowman portfolio
   Every size is in pixels from the 1440px Figma artboard,
   multiplied by --px, so the page matches the design at
   1440 wide and scales proportionally.
   ========================================================= */
:root {
  --bg:    #F8F6F2;   /* page background */
  --bg-2:  #F0E5E1;   /* "Meet the Designer" panel */
  --cream: #FEFAEB;   /* light text */
  --brown: #2E2824;   /* text, dark backgrounds */
  --blush: #FCDED7;   /* accent, used rarely */
  --mock:  #FFFFFF;   /* blank mockup boxes */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "DM Sans", system-ui, sans-serif;
  --tight: -0.04em;   /* heading letter spacing (-4) */

  --px: calc(min(100vw, 1680px) / 1440);
  --gutter: max(0px, (100vw - 1680px) / 2);   /* on screens wider than the design's max, the extra space is split evenly so everything stays centred */
  --edge0: calc(120 * var(--px));   /* one side margin for every page (about 5.3% of the width), scaling with the screen */
  --edge: calc(var(--edge0) + var(--gutter));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* shared heading style */
.name, .peek, .statement, .steps h3, .logo,
.meet, .next-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: var(--tight);
}
/* shared subtext style */
.nav, .role, .eyebrow, .services-title {
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- NAV ---------- */
.nav {
  display: flex; align-items: baseline; gap: calc(80 * var(--px));   /* "mb." on the left, the three words grouped on the right */
  margin: 0 var(--edge);
  padding: calc(70 * var(--px)) 0 calc(22 * var(--px));
  border-bottom: 1px solid var(--brown);
  font-size: calc(16 * var(--px));
}
/* menu words: DM Sans SemiBold 16, #111111 */
.nav a {
  font-weight: 600; color: #111111;
  justify-self: center;
  display: inline-flex; flex-direction: column; align-items: center;
}
/* invisible bold copy reserves the width, so the menu doesn't shift when a word gets heavier */
.nav a::after, .foot-bar a::after { content: attr(data-text); font-weight: 700; height: 0; overflow: hidden; visibility: hidden; }
.nav .nav-logo {
  margin-right: auto; font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: var(--tight);
  font-size: calc(36 * var(--px)); line-height: 1; color: var(--brown);
}
.nav a.nav-logo::after { content: none; }
.nav a.nav-logo:hover { font-weight: 400; transform: none; }
/* menu words are SemiBold; the page you're on is Bold. Hovering a word makes it Bold and slowly grows it in place */
.nav a, .foot-bar a { transition: font-weight .8s ease, transform .9s cubic-bezier(.25, .1, .25, 1); }
.nav a.is-current, .foot-bar a[aria-current] { font-weight: 700; }
.nav a:hover, .foot-bar a:hover { font-weight: 700; transform: scale(1.15); }

/* =========================================================
   HOME
   ========================================================= */
.hero { text-align: center; }

/* the name sits raised off the page: a light catch on the top edges and a soft shadow underneath
   (drop-shadow is on the heading itself, so the swipe-up mask can't clip it) */
.name {
  filter: drop-shadow(0 1px 1px rgba(46, 40, 36, .22)) drop-shadow(0 6px 10px rgba(46, 40, 36, .14)) drop-shadow(0 16px 26px rgba(46, 40, 36, .10));
}
.name .mask > span { text-shadow: 0 -1px 0 rgba(255, 255, 255, .55); }
.name {
  font-size: calc(313 * var(--px));   /* the name spans exactly edge to edge */
  line-height: 1;
  margin-top: calc(57 * var(--px));
  white-space: nowrap;
}
.role {
  margin-top: calc(6 * var(--px));
  font-size: calc(25 * var(--px));
}
/* the role line scrolls as an endless ticker under the name (4 copies, slides by one copy per loop) */
.role {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.role-track {
  display: flex;
  width: max-content;
  animation: roleTicker 32s linear infinite;
}
.role-set { white-space: pre; padding-right: .35em; }
@keyframes roleTicker { to { transform: translateX(-25%); } }

.peek {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: calc(96 * var(--px));   /* sits higher so the opening screen has breathing room under it */
  font-size: calc(90 * var(--px));
  line-height: .78;
}
.peek > span { display: block; transition: transform .5s var(--ease); }
.peek:hover > span { transform: scale(1.06); }
.arrow {
  width: calc(28 * var(--px));
  height: calc(60 * var(--px));
  margin-top: calc(34 * var(--px));
  transition: transform .4s var(--ease);
}

/* ---------- SCROLLING STRIP ---------- */
.strip {
  margin-top: calc(30 * var(--px));   /* carousel sits close under "check out my recent work" so both fit on screen together */
  padding: calc(16 * var(--px)) 0 calc(44 * var(--px));   /* room below for the shadows */
  margin-bottom: calc(-28 * var(--px));
  overflow: hidden;
}
.track { display: flex; width: max-content; will-change: transform; }
.set {
  display: flex;
  gap: calc(44 * var(--px));
  padding-right: calc(44 * var(--px));
}
.strip .mock {
  flex: none;
  position: relative;
  width: calc(432 * var(--px));     /* ~10% bigger than the original 393 × 468 */
  height: calc(515 * var(--px));
  border-radius: calc(30 * var(--px));
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
/* soft white wash over the mockups you're not hovering */
.strip .mock::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(254, 250, 235, .55);   /* soft cream-white wash */
  opacity: 0; transition: opacity .45s ease;
  pointer-events: none;
}
.strip .mock img { transition: filter .45s ease; }
.track:has(.mock:hover) .mock:not(:hover)::after { opacity: 1; }
.track:has(.mock:hover) .mock:not(:hover) img { filter: grayscale(.25); }
.track .mock:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(46, 40, 36, .12), 0 14px 34px rgba(46, 40, 36, .18);
  z-index: 2;
}

.mock { background: var(--mock); overflow: hidden; }
/* raised off the page, matching the ba.be.O pictures: soft shadow below, faint light catch on the top edge */
.strip .mock, .cards .mock {
  box-shadow: 0 1px 2px rgba(46, 40, 36, .12), 0 6px 14px rgba(46, 40, 36, .12), 0 18px 36px rgba(46, 40, 36, .10);
}
.cards .mock { position: relative; }
.cards .mock::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(46, 40, 36, .12);
}
.mock img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- WHERE DESIGN MEETS FUNCTION ---------- */
.purpose { margin: calc(120 * var(--px)) var(--edge) 0; }   /* more room under the carousel */
/* let the long rotating words run toward the right edge; still clip top/bottom for the swipe-up */
.statement .mask { overflow: visible; clip-path: inset(0 -100vw 0 0); }
.statement {
  font-size: calc(96 * var(--px));
  line-height: 1;
  margin-left: calc(-3 * var(--px));   /* optically lines the W up with the text below */
  white-space: nowrap;
}
.purpose-note {
  margin-top: calc(40 * var(--px));
  font-size: calc(25 * var(--px));
  line-height: 1.04;
}

/* typewriter caret on "Where design meets ___." */
.caret {
  display: inline-block;
  width: max(1.5px, .03em);
  height: .78em;
  margin-left: .04em;
  background: currentColor;
  vertical-align: -.02em;
  animation: blink 1s steps(1) infinite;
}
.caret.busy { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 2 x 2 WORK CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: calc(41 * var(--px));
  row-gap: calc(42 * var(--px));
  margin-top: calc(70 * var(--px));   /* straight under the headline, like the mockup */
  width: 100%;   /* the 2x2 runs edge to edge between the page margins */
}
/* the 5th card sits centred under the 2 x 2 */
.cards .card-fifth { grid-column: 1 / -1; justify-self: center; width: calc((100% - 41 * var(--px)) / 2); }
.cards .mock {
  aspect-ratio: 602 / 478;
  border-radius: calc(30 * var(--px));
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
/* project card: full photo; on hover it washes out light (like the carousel) and the project name fades in over it */
.project img { transition: transform 1.2s var(--ease), filter .6s ease; }
.project::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(254, 250, 235, .32);
  opacity: 0; transition: opacity .6s ease;
}
.project:hover img { transform: scale(1.03); filter: blur(2.5px); }
.project:hover::before { opacity: 1; }
.project-cap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-left: 22%;
  color: var(--brown);
}
.project-name, .project-type { opacity: 0; translate: 0 calc(14 * var(--px)); transition: opacity .5s ease, translate .7s var(--ease); }
.project-type { transition-delay: .08s; }
.project:hover .project-name, .project:hover .project-type { opacity: 1; translate: 0 0; }
.project-name {
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight);
  font-size: calc(76 * var(--px)); line-height: .9;
}
.project-type {
  margin-top: calc(8 * var(--px));
  font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  font-size: calc(24 * var(--px)); line-height: 1;
}
/* darker photos: dim instead of lighten, cream text */
.project.on-dark::before { background: rgba(46, 40, 36, .28); }
.project.on-dark .project-cap { color: var(--cream, #FEFAEB); }
.project:focus-visible img { transform: scale(1.03); filter: blur(2.5px); }
.project:focus-visible::before { opacity: 1; }
.project:focus-visible .project-name, .project:focus-visible .project-type { opacity: 1; translate: 0 0; }
/* touch screens can't hover, so show the name there all the time */
@media (hover: none) {
  .project::before { opacity: 1; }
  .project-name, .project-type { opacity: 1; translate: 0 0; }
}
.cards .mock:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(46, 40, 36, .12), 0 20px 40px rgba(46, 40, 36, .16); }

/* ---------- BACK TO TOP + FOOTER ---------- */
.to-top {
  display: flex; flex-direction: column; align-items: center;
  width: max-content;
  margin: calc(131 * var(--px)) auto 0;
  font-family: var(--sans); letter-spacing: 0; text-transform: uppercase; font-weight: 600;
  font-size: calc(18 * var(--px));
  line-height: 1;
}
.to-top .arrow { margin: 0 0 calc(26 * var(--px)); }
.to-top:hover .arrow { transform: translateY(-6px); }
/* case study footer: back to top and next project side by side */
.case-end { display: flex; justify-content: center; gap: calc(240 * var(--px)); margin-top: calc(131 * var(--px)); }
.case-end .to-top { margin: 0; }
.next-project {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--sans); letter-spacing: 0; text-transform: uppercase; font-weight: 600;
  font-size: calc(18 * var(--px)); line-height: 1;
}
.next-project .arrow { width: auto; height: calc(28 * var(--px)); margin: calc(16 * var(--px)) 0 calc(42 * var(--px)); transition: transform .4s var(--ease); }
.next-project:hover .arrow { transform: translateX(8px); }

/* footer: a cream bar (back to top on the left, the menu on the right) above a brown band
   with a huge near-black "mb." in its bottom-left */
/* About and Contact: wider side margins (about 8.6% of the width), applied to the menu line, content and footer bar */
.foot-bar { padding: 0 var(--edge); }
.footer { margin-top: calc(131 * var(--px)); }
.case ~ .footer { margin-top: calc(131 * var(--px)); }
.foot-bar {
  display: flex; justify-content: space-between; align-items: center;
  height: calc(74 * var(--px));
  padding: 0 calc(52 * var(--px));
}
.foot-nav { display: flex; gap: calc(76 * var(--px)); }
.foot-left { display: flex; gap: calc(60 * var(--px)); }   /* project pages: back to top + next project */
.foot-top, .foot-nav a {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0;
  font-size: calc(16 * var(--px)); line-height: 1; color: #111111;
  display: inline-flex; flex-direction: column; align-items: center;
}
.foot-band {
  position: relative;
  height: calc(280 * var(--px));
  background: var(--brown);
  overflow: hidden;
}
.logo {
  position: absolute; left: calc(35 * var(--px)); bottom: calc(-10 * var(--px));
  font-size: calc(296 * var(--px));
  line-height: 1;
  color: #111111;
  transition: transform .5s var(--ease);
}
.logo:hover { transform: translateY(calc(-8 * var(--px))); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-top {
  position: relative;
  height: calc(1583 * var(--px));
  background: var(--bg-2);
}
/* everything in the bio is laid out at full design size, then shrunk to 85%
   toward the centre and up toward the menu so it feels less sprawling */
.bio { position: absolute; inset: 0 var(--gutter); }
.bio > * { position: absolute; }
.about-top > .nav { position: relative; z-index: 1; }

.meet { left: calc(152 * var(--px)); top: calc(262 * var(--px)); line-height: 1; }   /* raised so the taller heading stays centred above the cards */
.meet .l1 { font-size: calc(120 * var(--px)); font-style: italic; }
.meet .l2 { font-size: calc(120 * var(--px)); }   /* line height 100% */

/* fill-in-the-blank cards */
.facts { border: 1px solid var(--brown); background: var(--bg); border-radius: calc(10 * var(--px)); overflow: hidden; }   /* cards are filled with the light page colour; corners match the ba.be.O description boxes */
.facts.one { left: calc(153 * var(--px)); top: calc(570 * var(--px)); width: calc(395 * var(--px)); }
.facts.two { left: calc(153 * var(--px)); top: calc(1016 * var(--px)); width: calc(913 * var(--px)); }
.facts > div {
  position: relative;
  height: calc(111 * var(--px));
  padding: calc(8 * var(--px)) calc(10 * var(--px)) 0 calc(110 * var(--px));
}
.facts > div + div { border-top: 1px solid var(--brown); }
.facts dt {
  position: absolute; left: calc(10 * var(--px)); top: calc(8 * var(--px));
  font-size: calc(15 * var(--px)); font-weight: 600;
  text-transform: uppercase;
}
/* handwritten answers: lifted from the Figma design (Figma Hand) as images,
   placed exactly where they sit in the design */
.facts dd img {
  position: absolute;
  left: calc(var(--x) * var(--px));
  top: calc(var(--y) * var(--px));
  height: calc(var(--h) * var(--px));
  width: auto;
}
/* "written in": each answer is revealed left-to-right like a pen stroke */
.js .facts dd img {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 1.4s cubic-bezier(.55, .1, .35, 1) var(--wd, 0s);
  will-change: transform;
}
.js .facts dd img.written { clip-path: inset(-20% -4% -20% -4%); }

/* polaroid */
.polaroid {
  left: calc(786 * var(--px)); top: calc(235 * var(--px));
  width: calc(477 * var(--px)); height: calc(682 * var(--px));
  padding: calc(29 * var(--px)) calc(32 * var(--px)) calc(115 * var(--px));   /* slimmer border, classic deeper bottom */
  background: var(--bg);   /* same cream as the page and the cards */
  box-shadow: 0 calc(4 * var(--px)) calc(12 * var(--px)) rgba(0, 0, 0, .13);
  transform: rotate(8.4deg);
  transition: transform .8s var(--ease), box-shadow .8s ease;
}
.polaroid .ph { width: 100%; height: 100%; overflow: hidden; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.2); transform-origin: 30% 55%; }
.polaroid:hover { transform: rotate(5deg) translateY(-8px); box-shadow: 0 calc(18 * var(--px)) calc(34 * var(--px)) rgba(0, 0, 0, .2); }
.clip {
  left: calc(1137 * var(--px)); top: calc(258 * var(--px));
  height: calc(231 * var(--px)); width: auto;
  pointer-events: none;
  transition: transform .8s var(--ease);
}
.polaroid:hover + .clip { transform: translateY(-8px); }

/* ---------- SKILLS ---------- */
/* a thin rule (as wide as the menu line) separates Process from Skills */
.skills {
  margin: calc(99 * var(--px)) var(--edge) 0;
  padding-top: calc(73 * var(--px));
  text-align: center;
}
.skills-title { font-family: var(--serif); letter-spacing: var(--tight); font-size: calc(90 * var(--px)); line-height: 1; }

/* three underlined tabs; hovering one grows it and opens its list underneath */
.skill-tabs {
  display: grid;
  grid-template-columns: repeat(3, calc(128 * var(--px)));   /* equal-width tabs, words centred over their lines */
  column-gap: calc(115 * var(--px));
  justify-content: center;
  margin-top: calc(91 * var(--px));
}
.skill-tab {
  grid-row: 1;
  position: relative;
  background: none; border: 0; color: inherit; padding: 0 0 calc(16 * var(--px));
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
  font-size: calc(29 * var(--px)); line-height: 1;
  transition: opacity .4s ease;
}
.skill-tab span { display: inline-block; transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.skill-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brown);
  transition: transform .6s var(--ease);
}
.skill-panel {
  grid-row: 2; grid-column: 1 / -1;
  justify-self: center;
  width: calc(640 * var(--px));
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease);
}
.skill-panel p {
  overflow: hidden; min-height: 0;
  padding-top: calc(36 * var(--px));
  font-size: calc(22 * var(--px)); line-height: calc(25 * var(--px));
  text-align: center;
  opacity: 0; translate: 0 calc(-10 * var(--px));
  transition: opacity .35s ease, translate .6s var(--ease);
}
.skill-tabs:has(.tab-design:hover, .panel-design:hover, .tab-design:focus-visible) .tab-design span { transform: scale(1.3); }
.skill-tabs:has(.tab-design:hover, .panel-design:hover, .tab-design:focus-visible) .tab-design::after { transform: scaleX(1.6); }
.skill-tabs:has(.tab-design:hover, .panel-design:hover, .tab-design:focus-visible) .panel-design { grid-template-rows: 1fr; }
.skill-tabs:has(.tab-design:hover, .panel-design:hover, .tab-design:focus-visible) .panel-design p { opacity: 1; translate: 0 0; transition: opacity .5s ease .2s, translate .6s var(--ease) .1s; }
.skill-tabs:has(.tab-soft:hover, .panel-soft:hover, .tab-soft:focus-visible) .tab-soft span { transform: scale(1.3); }
.skill-tabs:has(.tab-soft:hover, .panel-soft:hover, .tab-soft:focus-visible) .tab-soft::after { transform: scaleX(1.6); }
.skill-tabs:has(.tab-soft:hover, .panel-soft:hover, .tab-soft:focus-visible) .panel-soft { grid-template-rows: 1fr; }
.skill-tabs:has(.tab-soft:hover, .panel-soft:hover, .tab-soft:focus-visible) .panel-soft p { opacity: 1; translate: 0 0; transition: opacity .5s ease .2s, translate .6s var(--ease) .1s; }
.skill-tabs:has(.tab-tools:hover, .panel-tools:hover, .tab-tools:focus-visible) .tab-tools span { transform: scale(1.3); }
.skill-tabs:has(.tab-tools:hover, .panel-tools:hover, .tab-tools:focus-visible) .tab-tools::after { transform: scaleX(1.6); }
.skill-tabs:has(.tab-tools:hover, .panel-tools:hover, .tab-tools:focus-visible) .panel-tools { grid-template-rows: 1fr; }
.skill-tabs:has(.tab-tools:hover, .panel-tools:hover, .tab-tools:focus-visible) .panel-tools p { opacity: 1; translate: 0 0; transition: opacity .5s ease .2s, translate .6s var(--ease) .1s; }
.skill-tabs:has(.skill-tab:hover, .skill-panel:hover) .skill-tab:not(:hover) { opacity: .45; }
.skill-tabs:has(.panel-design:hover) .tab-design, .skill-tabs:has(.panel-soft:hover) .tab-soft, .skill-tabs:has(.panel-tools:hover) .tab-tools { opacity: 1; }

/* process on the about page */
/* about me, between the bio and the process */
.about-me { width: calc(1100 * var(--px)); margin: calc(120 * var(--px)) auto 0; }
/* big typewriter line that opens the About Me section */
.about-hero {
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight);
  font-size: calc(120 * var(--px)); line-height: 1; white-space: nowrap;   /* same size as "Where design meets ___." */
  margin: 0 0 calc(80 * var(--px));
  position: relative; z-index: 1;
}
/* room for the J, y and g to hang down, without clipping the swipe-up */
.about-hero .mask { overflow: visible; padding-bottom: .26em; margin-bottom: -.26em; clip-path: inset(0 -100vw 0 -.2em); }
.about-hero { --d: 0s; }
.about-me-title { --d: .15s; }

/* photo trail: little pictures of Mia pop up behind the cursor while it moves over About Me */
.about-me { position: relative; }
.trail-pic {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  width: calc(140 * var(--px)); height: auto; border-radius: calc(8 * var(--px));
  box-shadow: 0 10px 28px rgba(46, 40, 36, .18);
  translate: -50% -50%;
  animation: trailIn .45s var(--ease) both, trailOut .6s ease .75s forwards;
}
@keyframes trailIn { from { opacity: 0; scale: .6; } }
@keyframes trailOut { to { opacity: 0; scale: .85; } }
.about-me-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight);
  font-size: calc(90 * var(--px)); line-height: 1; margin: 0;
}
.about-me-text { margin-top: calc(60 * var(--px)); }
/* little grey nudge beside the title, pointing people to the photo trail */
.about-me-title .mask { padding-right: .12em; margin-right: -.12em; }   /* room for the e's overhang so the mask doesn't clip it */
.about-me-head { display: flex; align-items: baseline; gap: calc(26 * var(--px)); }
.about-me-hint { --d: .4s; margin: 0; font-size: calc(16 * var(--px)); color: #8a8784; }
@media (hover: none), (pointer: coarse) { .about-me-hint { display: none; } }   /* no cursor, no trail */
.about-me-text p {
  margin: 0; font-size: calc(24 * var(--px)); line-height: calc(27 * var(--px));
  text-align: left; hyphens: none; text-wrap: pretty; letter-spacing: -0.02em;
}
.about-me-text p + p { margin-top: calc(27 * var(--px)); }
.about-me-text b { font-weight: 500; }
.about-me-text { --d: .2s; }

.about-process { margin-top: calc(140 * var(--px)); }
/* serif title-case heading, no outlined box; numbers hang to the left, right-aligned */
.about-process .eyebrow {
  text-align: left; margin-top: 0;
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight); text-transform: none;
  font-size: calc(90 * var(--px)); line-height: 1;
}
.about-process .steps {
  margin: calc(73 * var(--px)) 0 0 calc(-24 * var(--px));
  grid-template-columns: calc(516.7 * var(--px)) 1fr;
  padding: 0; border: 0;
}
/* each step: small serif number, big DM Sans capitals title, description lined up under the title */
.about-process .steps li { align-items: baseline; }
.about-process .num {
  width: calc(64 * var(--px)); margin-right: calc(16 * var(--px)); text-align: right;
  font-family: var(--serif); font-size: calc(44 * var(--px)); line-height: 1; letter-spacing: -0.03em;
}
.about-process .steps h3 {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: calc(50 * var(--px)); line-height: 1;
}
.about-process .steps p {
  margin-top: calc(30 * var(--px));
  font-size: calc(22 * var(--px)); line-height: calc(28 * var(--px));
  max-width: calc(420 * var(--px));
}

/* ---------- SERVICES ---------- */
.services {
  margin-top: calc(167 * var(--px));
  background: var(--brown);
  color: var(--cream);
  border-radius: calc(77 * var(--px));
  padding: calc(66 * var(--px)) 0 calc(139 * var(--px));
  text-align: center;
}
.services-title { font-size: calc(25 * var(--px)); font-weight: 600; }
/* thin light lines above, between and below the three services */
.services ol {
  list-style: none;
  margin: calc(56 * var(--px)) var(--edge) 0;
  border-top: 1px solid rgba(254, 250, 235, .7);
}
.services li.svc { border-bottom: 1px solid rgba(254, 250, 235, .7); }

/* the clickable row: number, big word, arrow */
.svc-head {
  position: relative; display: block; width: 100%;
  height: calc(173 * var(--px));
  background: none; border: 0; color: inherit; font: inherit;
  font-family: var(--serif); font-size: calc(90 * var(--px)); line-height: 1;
  letter-spacing: var(--tight);
  transition: opacity .4s ease;
}
/* the word is centred when closed and glides to the left when open */
.svc-head .word {
  position: absolute; top: calc(42 * var(--px)); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: left .8s var(--ease), transform .8s var(--ease), scale .5s var(--ease);
}
.services .n {
  position: absolute; left: 0; top: calc(119 * var(--px));
  font-family: var(--sans); letter-spacing: 0;
  font-size: calc(28 * var(--px)); line-height: 1;
  transition: top .8s var(--ease), font-size .8s var(--ease);
}

/* the arrow is a line + arrowhead; on open it pulls back into itself,
   turns, then grows downward (keyframes below) */
.services .go {
  --closedL: calc(100% - 93 * var(--px)); --closedT: calc(87 * var(--px)); --closedW: calc(60 * var(--px));
  --openL: calc(100% - 45 * var(--px));   --openT: calc(60 * var(--px));   --openW: calc(420 * var(--px));
  position: absolute;
  left: var(--closedL); top: var(--closedT); width: var(--closedW);
  height: calc(24 * var(--px)); margin-top: calc(-12 * var(--px));
  overflow: hidden;
  transform-origin: 0 50%;
  transition: translate .5s var(--ease);
}
.services .go::before {
  content: ""; position: absolute; left: 0; right: 1px; top: 50%;
  height: 2.5px; margin-top: -1.25px; background: currentColor;
}
.services .go svg {
  position: absolute; right: 0; top: 0;
  width: calc(14 * var(--px)); height: 100%;
}
.svc.open .go { left: var(--openL); top: var(--openT); width: var(--openW); rotate: 90deg; animation: arrowOpen 1.1s var(--ease) both; }
.svc.was-open:not(.open) .go { animation: arrowClose 1s var(--ease) both; }
@keyframes arrowOpen {
  0%   { left: var(--closedL); top: var(--closedT); width: var(--closedW); rotate: 0deg; }
  30%  { left: var(--closedL); top: var(--closedT); width: 0px; rotate: 0deg; }
  38%  { left: var(--openL);   top: var(--openT);   width: 0px; rotate: 90deg; }
  100% { left: var(--openL);   top: var(--openT);   width: var(--openW); rotate: 90deg; }
}
@keyframes arrowClose {
  0%   { left: var(--openL);   top: var(--openT);   width: var(--openW); rotate: 90deg; }
  45%  { left: var(--openL);   top: var(--openT);   width: 0px; rotate: 90deg; }
  52%  { left: var(--closedL); top: var(--closedT); width: 0px; rotate: 0deg; }
  100% { left: var(--closedL); top: var(--closedT); width: var(--closedW); rotate: 0deg; }
}

.svc-head:hover .word { scale: 1.06; }
.svc-head:hover .go { translate: calc(14 * var(--px)) 0; }
.services ol:has(.svc-head:hover) .svc-head:not(:hover) { opacity: .45; }

/* open row: number shrinks and sits on the word's baseline, word moves left */
.svc.open .n { top: calc(99 * var(--px)); font-size: calc(22 * var(--px)); }
.svc.open .word { left: calc(43 * var(--px)); transform: translateX(0); }
.svc.open .svc-head:hover .word { scale: 1; }
.svc.open .svc-head:hover .go { translate: 0 0; }

/* sliding panel (0fr → 1fr animates to the content's natural height) */
.svc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .8s var(--ease);
}
.svc.open .svc-body { grid-template-rows: 1fr; }
.svc-inner {
  overflow: hidden; min-height: 0;
  display: grid;
  grid-template-columns: calc(680 * var(--px)) calc(400 * var(--px));   /* wide enough that each bullet stays on one line at 22px */
  grid-template-areas: "head ." "list about";
  column-gap: calc(40 * var(--px));
  align-items: start;
  padding: 0 0 0 calc(67 * var(--px));
  text-align: left;
  font-family: var(--sans); letter-spacing: 0;
  opacity: 0; transition: opacity .4s ease;
}
.svc.open .svc-inner { opacity: 1; transition: opacity .6s ease .35s; }
.svc-included { display: contents; }
.svc-included h3 { grid-area: head; padding-top: calc(27 * var(--px)); }
.svc-included ul { grid-area: list; }
.svc-about { grid-area: about; }
.svc-included ul, .svc-about { margin-top: calc(28 * var(--px)); padding-bottom: calc(70 * var(--px)); }
.svc-included h3, .svc-time {
  font-weight: 400; text-transform: uppercase;
  font-size: calc(22 * var(--px)); line-height: 1.2;
}
.svc-time { font-size: calc(24 * var(--px)); }
.svc-included ul {
  list-style: none;
  font-size: calc(22 * var(--px)); line-height: calc(25 * var(--px));
}
.svc-included li { position: relative; padding-left: calc(30 * var(--px)); }
.svc-included li::before { content: "•"; position: absolute; left: calc(14 * var(--px)); }
.svc-about p { font-size: calc(22 * var(--px)); line-height: calc(25 * var(--px)); }
.svc-about .svc-time { margin-top: calc(26 * var(--px)); font-size: calc(24 * var(--px)); }

/* ---------- WHAT'S NEXT ---------- */
.next {
  position: relative;
  height: calc(397 * var(--px));      /* band bottom → last pill bottom */
}
.next-title {
  position: absolute; left: calc(195 * var(--px) + var(--gutter)); top: calc(137 * var(--px));
  font-size: calc(120 * var(--px)); line-height: .91;
}
.next-links {
  position: absolute; left: calc(522 * var(--px) + var(--gutter)); top: calc(108 * var(--px));
  width: calc(723 * var(--px));
  list-style: none;
}
.next-links li + li { margin-top: calc(27.5 * var(--px)); }
.next-links a {
  display: flex; justify-content: space-between; align-items: center;
  height: calc(78 * var(--px));
  padding: 0 calc(50 * var(--px)) 0 calc(51 * var(--px));
  border: 1.5px solid var(--brown); border-radius: 999px;
  font-size: calc(24 * var(--px));
  transition: background-color .4s ease, color .4s ease;
}
.next-links a span:first-child { text-transform: uppercase; }
.next-links a span:last-child { transition: transform .5s var(--ease); }
.next-links a:hover { background: var(--brown); color: var(--cream); }
.next-links a:hover span:last-child { transform: translateX(calc(-8 * var(--px))); }

/* =========================================================
   PROCESS (about page)
   ========================================================= */
.process {
  width: calc(950 * var(--px));
  margin-left: calc(249 * var(--px));   /* centres the block, including the hanging numbers */
}
.eyebrow { font-size: calc(27 * var(--px)); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: calc(498 * var(--px)) 1fr;
  row-gap: calc(72 * var(--px));
  padding: calc(51 * var(--px)) calc(40 * var(--px)) calc(59 * var(--px)) calc(68 * var(--px));
  border: 1px solid var(--brown);
}
.steps li {
  display: flex; align-items: flex-start;
  transform-origin: left center;
  transition: transform .5s var(--ease), opacity .4s ease;
  cursor: default;
}
.steps li:hover { transform: scale(1.06); }
.steps:has(li:hover) li:not(:hover) { opacity: .45; }

.num {
  width: calc(85 * var(--px));
  flex: none;
  font-size: calc(46 * var(--px));
  line-height: 1.25;
}
.steps h3 {
  font-size: calc(60 * var(--px));
  line-height: 1;
}
.steps p {
  margin-top: calc(14 * var(--px));
  font-size: calc(20 * var(--px));
  line-height: calc(25 * var(--px));
  max-width: calc(340 * var(--px));
}

/* ---------- SWIPE-UP REVEALS ---------- */
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;      /* room for descenders */
  margin-bottom: -.14em;
}
.mask > span { display: block; }
/* tight letter-spacing pulls the box in past the last letter; give these headings room so nothing gets clipped */
.next-title .mask, .meet .mask { padding-right: .12em; margin-right: -.12em; }

.js [data-reveal] .mask > span {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in .mask > span { transform: none; }
/* the big name rises more slowly */
.js .hero .name .mask > span { transition-duration: 2s; }
.role { --d: .9s; }
/* "check out my recent work" swipes up like the name, just after the roles line; the mask is padded so the
   serif's ascenders and descenders aren't clipped */
.peek { --d: 1.3s; }
.peek .mask { padding: .2em .1em .3em; margin: -.2em -.1em -.3em; }
.js [data-reveal] .peek .mask > span { transform: translateY(130%); transition-duration: 1.6s; }
.js [data-reveal].is-in .peek .mask > span { transform: none; }

/* things that fade up rather than swipe (keyframes, so hover transitions stay instant) */
.js [data-reveal]:not(.is-in) .fade { opacity: 0; }
.js [data-reveal].is-in .fade { animation: fadeUp 1.1s var(--ease) var(--d, 0s) backwards; }
.js [data-reveal].is-in .polaroid.fade { animation-name: dropIn; animation-duration: 1.4s; }
.js [data-reveal].is-in .clip.fade { animation-name: clipOn; }
@keyframes fadeUp { from { opacity: 0; translate: 0 24px; } }
@keyframes dropIn { from { opacity: 0; translate: 0 50px; rotate: 7deg; } }
@keyframes clipOn { from { opacity: 0; translate: 0 -30px; } }

/* timing */
.name { --d: .1s; }
.statement { --d: 0s; }
.purpose-note { --d: .15s; }
.meet .l1 { --d: .1s; }
.meet .l2 { --d: .22s; }
.polaroid { --d: .35s; }
.clip { --d: .9s; }
.facts.one { --d: .5s; }
.facts.two { --d: .65s; }
.eyebrow { --d: 0s; }
.skill-tabs { --d: .2s; }
.next-links li:nth-child(1) { --d: .15s; }
.next-links li:nth-child(2) { --d: .27s; }
.next-links li:nth-child(3) { --d: .39s; }
.steps li:nth-child(1) { --d: .25s; }
.steps li:nth-child(2) { --d: .35s; }
.steps li:nth-child(3) { --d: .45s; }
.steps li:nth-child(4) { --d: .55s; }
.steps p .mask > span { transition-delay: calc(var(--d) + .12s); }
.services li:nth-child(1) { --d: .15s; }
.services li:nth-child(2) { --d: .27s; }
.services li:nth-child(3) { --d: .39s; }

/* the outlined process box fades in with the text */
.js .steps { border-color: transparent; transition: border-color 1s ease .15s; }
.js .is-in .steps { border-color: var(--brown); }

/* ---------- FILM GRAIN ---------- */
/* a faint, fixed noise layer over every page; clicks pass straight through it */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.85%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E") repeat;
  opacity: .6;
  mix-blend-mode: soft-light;   /* adds texture without shifting the page colours */
  pointer-events: none;
}

/* ---------- DOT CURSOR ---------- */
/* a small text-coloured dot replaces the arrow (mouse/trackpad only; phones keep their normal touch) */
html.has-dot, html.has-dot * { cursor: none !important; }
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--brown);
  pointer-events: none;
  opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease),
              background-color .3s ease, opacity .3s ease;
}
.cursor-dot.on { opacity: 1; }
/* over anything clickable it swells into a soft see-through circle */
.cursor-dot.big { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: rgba(46, 40, 36, .18); }
/* on the dark brown sections it turns cream so it stays visible */
.cursor-dot.light { background: var(--cream); }
.cursor-dot.light.big { background: rgba(254, 250, 235, .3); }

/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- PHONES ---------- */
/* =========================================================
   CASE STUDY PAGES (babeo.html)
   ========================================================= */
.case figure { overflow: hidden; }
.case figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.case-step figure:hover img { transform: scale(1.035); }

/* intro: big serif title, project notes, cover photo on the right */
.case-hero { position: relative; height: calc(861 * var(--px)); }
.case-title {
  position: absolute; left: var(--edge); top: calc(147 * var(--px));
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight);
  font-size: calc(128 * var(--px)); line-height: .9;
}
.case-title .mask { padding-right: .12em; margin-right: -.12em; }
.case-title .it { font-style: italic; }
.case-title .it { --d: .12s; }
.case-info {
  position: absolute; left: calc(var(--edge) + 4 * var(--px)); bottom: calc(-6 * var(--px));   /* baseline of the last line sits level with the bottom of the cover photo */
  width: calc(345 * var(--px));
  --d: .35s;
}
.case-info h2 { font-size: calc(29 * var(--px)); font-weight: 600; text-transform: uppercase; line-height: 1; }
.case-info p { margin-top: calc(26 * var(--px)); font-size: calc(24.5 * var(--px)); line-height: calc(29 * var(--px)); }
.case-info p + h2 { margin-top: calc(70 * var(--px)); }
.case-cover {
  position: absolute; left: calc(589 * var(--px) + var(--gutter)); top: calc(152 * var(--px));
  width: calc(1440 * var(--px) - var(--edge0) - 589 * var(--px)); height: calc(709 * var(--px));   /* right edge on the page margin */
  --d: .2s;
}

/* numbered steps: title and outlined description on the left, the work on the right.
   Every step uses the same 901-wide block (269 → 1170, centred on the page) and the work
   is drawn at 67.5% (zoom) of its original 882 width, so all sections share one size */
.case-step {
  --work: .675;
  position: relative; width: calc(901 * var(--px)); margin: calc(100 * var(--px)) 0 0 calc(269 * var(--px) + var(--gutter));
  display: grid; grid-template-columns: calc(280 * var(--px)) calc(595 * var(--px));
  column-gap: calc(26 * var(--px)); align-items: start;
}
.case-step > :not(.step-text) {
  grid-column: 2; grid-row: 1;
  width: calc(882 * var(--px)); zoom: var(--work);
}
/* title + description move as one: they grow together as they scroll into view */
.step-text { grid-column: 1; grid-row: 1; transform-origin: 0 0; scale: var(--grow, 1); }
.step-label {
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight);
  font-size: calc(50 * var(--px)); line-height: 1; white-space: nowrap;
  margin-top: calc(-4 * var(--px));
}
/* the step number sits under the description, flush right */
.step-num {
  display: block; text-align: right; margin-top: calc(12 * var(--px));
  font-family: var(--sans); font-weight: 500; font-size: calc(30 * var(--px)); line-height: 1; letter-spacing: -0.01em;
}
.js .case-step:not(.is-in) .step-label { opacity: 0; translate: 0 calc(24 * var(--px)); }
.step-label { transition: opacity 1s ease, translate 1.1s var(--ease); }
/* the guidelines book has no title, so it spans the full block */
/* guidelines: text on the left like the other steps, the closed book in the work column;
   once it opens the book glides to the page centre and the text fades back out of its way */
.case-step.step-guide > .gbook-wrap { width: calc(595 * var(--px)); zoom: 1; position: relative; z-index: 2; }
.step-guide .step-text { transition: opacity .5s ease; }
.step-guide:has(.gbook-wrap:not(.is-closed)) .step-text { opacity: 0; pointer-events: none; }

.step-brief figure { height: calc(628 * var(--px)); }
.step-brief figure img { scale: 1.12; }   /* cropped in slightly */
.step-vision .grid, .step-making .grid { display: grid; grid-template-rows: calc(628 * var(--px)); }
.step-vision .grid { grid-template-columns: 1fr 1fr; }
/* 03: palette and type specimen side by side */
.step-making .grid { grid-template-columns: 1fr 1fr; grid-template-rows: calc(789 * var(--px)); }
/* 04: an editorial collage. Each photo's spot is set on the figure itself (--a: row / col / row-end / col-end).
   It spans the whole step (text column included) on 9 columns: the first rows sit beside the description,
   and once past it the photos run all the way out to the description box's left edge */
.case-step > .step-result-grid { grid-column: 1 / -1; width: calc(901 * var(--px) / var(--work)); }
.step-result .step-text { position: relative; z-index: 1; }
.step-result .grid {
  display: grid; grid-template-columns: repeat(9, 1fr);
  grid-auto-rows: calc(60 * var(--px));
  gap: calc(16 * var(--px));
}
.step-result figure { grid-area: var(--a, auto); height: auto; }
.case .next { margin-top: calc(37 * var(--px)); }


/* logo panels, palette and type specimen are built live so the vector logos stay crisp */
.case .panel { display: grid; place-items: center; }
.case .panel img { height: auto; object-fit: contain; }
.case-step .panel:hover img, .case-step .palette:hover img, .case-step .type-specimen:hover img { transform: none; }
/* the two panels swap colours every few seconds; both versions of each logo sit in the same spot so it reads as one logo changing colour */
.case .panel > img { grid-area: 1 / 1; transition: opacity .7s ease; }
.case .panel > .lb { opacity: 0; }
.swap .panel > .la { opacity: 0; }
.swap .panel > .lb { opacity: 1; }
.panel-light, .panel-dark { transition: background-color .7s ease; }
.panel-light { background: #E5D6C8; }
.swap .panel-light { background: #392F2F; }
.swap .panel-dark { background: #E5D6C8; }
.case .panel-light img { width: calc(291 * var(--px)); }
.panel-dark { background: #392F2F; }
.case .panel-dark img { width: calc(287 * var(--px)); }
.palette { display: grid; grid-template-rows: repeat(5, 1fr); }
.palette > div {
  background: var(--c); color: #2E2824;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 calc(24 * var(--px)) calc(24 * var(--px));
  transition: padding .5s var(--ease);
}
.palette > div.on-dark { color: #F3ECE4; }
.palette b { font-weight: 400; text-transform: uppercase; font-size: calc(24 * var(--px)); line-height: 1; }
.palette span { margin-top: calc(5 * var(--px)); font-size: calc(14 * var(--px)); text-transform: uppercase; opacity: .85; }
.palette > div:hover { padding-left: calc(30 * var(--px)); }
/* shared by every project: keep the gap here only (no per-page overrides) so typeface spacing matches everywhere */
.type-specimen {
  background: #EADBCF;
  display: flex; flex-direction: column; justify-content: center;
  gap: calc(68 * var(--px));
  padding-left: calc(83 * var(--px));
}
.case .type-specimen img { width: calc(var(--w) * var(--px)); height: auto; }
/* each typeface nudges right on hover, the same move as the palette colour names */
.case .type-specimen img { transition: translate .5s var(--ease); }
.case .type-specimen img:hover { translate: calc(6 * var(--px)) 0; }
/* Banff: longer project note, so its column runs wider to clear the title */
.case-banff .case-info { width: calc(440 * var(--px)); }
/* 3D Dino Dig Kit: wider project text */
.img-placeholder { background: #E2D6CA; }   /* soft beige block where a photo will go */
.case-step > .img-placeholder { height: calc(628 * var(--px)); border-radius: calc(30 * var(--px) / var(--work)); }   /* same size and corners as a Brief image */
.case-dino .case-info { width: calc(416 * var(--px)); }
/* rhythm measured from the mockup: a little tighter under each heading, much tighter above Services */
.case-dino .case-info p { margin-top: calc(24 * var(--px)); }
.case-dino .case-info p + h2 { margin-top: calc(29 * var(--px)); }
/* Banff: the brief mood board is as tall as the vision palette below it */
.case-banff .step-brief figure { height: calc(789 * var(--px)); }
/* Banff 03: the Fairmont illustration on the page; the elk, moose and sheep sit below it like cutouts.
   Positions are in the 882-wide work units, like every other step */
.illus { position: relative; height: calc(1184 * var(--px)); }
.illus-box { position: relative; height: calc(789 * var(--px)); }   /* no box: the Fairmont sits straight on the page */
.illus-box img { position: absolute; left: 6%; top: calc(30 * var(--px)); width: 88%; height: auto; border-radius: 0 0 calc(30 * var(--px) / var(--work)) calc(30 * var(--px) / var(--work)); filter: drop-shadow(0 6px 10px rgba(46,40,36,.18)); }
.illus > img { position: absolute; height: auto; filter: drop-shadow(0 6px 10px rgba(46,40,36,.18)); }
.illus-elk { left: calc(-450 * var(--px)); top: calc(740 * var(--px)); width: calc(400 * var(--px)); }
.illus-moose { left: calc(-13 * var(--px)); top: calc(768 * var(--px)); width: calc(430 * var(--px)); }
.illus-sheep { left: calc(530 * var(--px)); top: calc(786 * var(--px)); width: calc(310 * var(--px)); }
/* the animals sit in a row under the hotel: they grow a touch on hover, can be dragged around, and a click opens them large */
.illus-animal {
  cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  translate: var(--dx, 0px) var(--dy, 0px);
  transition: scale .4s var(--ease), filter .4s ease;
}
.illus-animal:hover, .illus-animal:focus-visible { scale: 1.06; }
.illus-animal.dragging { cursor: grabbing; scale: 1.08; z-index: 3; filter: drop-shadow(0 14px 18px rgba(46,40,36,.25)); }
/* Banff 04: the 3D fold-out poster sits beside the text (drawn at real size, not zoomed, so the canvas maps 1:1) */
.case-step > .fold { zoom: 1; width: calc(700 * var(--px)); margin-left: 0; margin-top: calc(-75 * var(--px));   /* folded poster lines up with the top of "The Result" */   /* starts at the work column so the poster never draws over the description */ display: flex; flex-direction: column; gap: calc(14 * var(--px)); }
.fold-view { position: relative; height: calc(640 * var(--px)); }
.fold-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; outline: none;
  filter: drop-shadow(0 18px 20px rgba(46, 40, 36, .22)); }
.fold-gl:active { cursor: grabbing; }
.fold-gl:focus-visible { outline: 1px solid var(--brown); outline-offset: 4px; border-radius: 6px; }
.fold-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(13 * var(--px)); text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.fold-loading[hidden] { display: none; }
.fold-zoom { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; gap: calc(8 * var(--px)); }
.fold-zoom button {
  width: calc(36 * var(--px)); height: calc(36 * var(--px)); border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--brown); background: var(--bg, #F8F6F2); color: var(--brown);
  font: 400 calc(20 * var(--px))/1 var(--sans); display: grid; place-items: center;
  transition: background-color .3s ease, color .3s ease;
}
.fold-zoom button:hover { background: var(--brown); color: var(--cream); }
/* the same soft 360° badge as under the dino box: dark brown at 50%, 12 pt regular, small rounded arrows */
.badge360 { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--brown); opacity: .5; }
.badge360 span { font: 400 12px/1 var(--sans); letter-spacing: .02em; }
.badge360 svg { display: block; width: 46px; overflow: visible; }
.fold-bar { text-align: center; font-family: var(--sans); text-transform: uppercase; font-weight: 400; font-size: calc(13 * var(--px)); opacity: .55; }
/* Banff: seven colours, ivory specimen panel */
.step-banff-vision .palette { grid-template-rows: repeat(7, 1fr); }
.step-banff-vision .type-specimen { background: #F2E8D1; }
/* Dino: six colours, ivory bone specimen panel */
/* Dino 03: just the 3D model on the page, with a soft shadow; it lifts on hover like the kit pieces */
.making-panel { height: calc(628 * var(--px)); display: grid; place-items: center; background: none; overflow: visible; }
.case .making-panel .making-3d {
  width: 80%; height: auto; object-fit: contain;
  filter: drop-shadow(calc(6 * var(--px)) calc(14 * var(--px)) calc(8 * var(--px)) rgba(0, 0, 0, .2));   /* a cast shadow (offset, fairly tight), 20% black */
  transition: transform .55s cubic-bezier(.2, .75, .2, 1);
}
.case-step figure.making-panel:hover img { transform: translateY(-8px); }
/* Dino 04: the interactive 3D box (its own page, embedded) */
.case .step-dino-result { margin-top: calc(100 * var(--px) + 90px); }   /* extra room so the opened lid never reaches the Making section */
.case-step > .box3d { zoom: 1; width: calc(595 * var(--px)); margin-top: -132px; }   /* same width as the image column above; pulled up so the closed box lines up with "The Result" (the empty top leaves room for the opening lid) */
.box3d iframe { display: block; width: 100%; height: 640px; border: 0; background: transparent; }   /* fixed px like the box itself, so it always lands level with the title */
@media (max-width: 700px) { .case-step > .box3d { width: auto; margin-top: 0; } .box3d iframe { height: 110vw; } }

/* under the box, a wide row of what's inside: learning cards | dig tools | excavation block (laid out like the mockup) */
.case-step > .kit-row {
  zoom: 1; grid-column: 1 / -1; grid-row: 2;
  width: calc(1440 * var(--px) - 2 * var(--edge0)); margin: calc(70 * var(--px)) 0 0 calc(var(--edge0) - 269 * var(--px));   /* edge to edge between the page margins */
  display: grid; grid-template-columns: 49% 51%; align-items: center;
}
.flipcards { position: relative; aspect-ratio: 415 / 315; }
.fcard { all: unset; position: absolute; left: 50%; top: 50%; width: 74%; aspect-ratio: 7 / 5; translate: -50% -50%;
         perspective: 2000px; transform: var(--rest); transition: transform .55s cubic-bezier(.2, .75, .2, 1); }
.fcard-a { --rest: translate(-8%, -9%) rotate(-4deg); z-index: 2; }
.fcard-b { --rest: translate(9%, 10%) rotate(3deg); }
.fcard:hover { transform: var(--rest) translateY(-8px); }
.fcard:focus-visible { outline: 1px solid var(--brown); outline-offset: 6px; }
.fc-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.fcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; overflow: hidden;
           box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 16px 36px rgba(18, 43, 68, .25); }
.fc-face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fc-back { transform: rotateY(180deg); }
/* a clicked card comes forward over the whole page on a soft blur; click it to flip, click outside or Esc to put it back */
.fc-veil { position: fixed; inset: 0; z-index: 7000; background: rgba(248, 246, 241, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
           opacity: 0; pointer-events: none; transition: opacity .4s ease; }
body.fc-open .fc-veil { opacity: 1; pointer-events: auto; }
.fcard.fc-zoom { position: fixed; translate: none; z-index: 7001; }
.fcard.fc-zoom:hover { transform: var(--to); }
.fcard.fc-zoom:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .fcard, .fc-inner, .fc-veil { transition: none; } }

.kit-spread { position: relative; aspect-ratio: 430 / 330; }
.kit-spread img { position: absolute; display: block; height: auto; }
.kit-spread .kit-block { left: 17%; top: 3%; width: 83%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .14)) drop-shadow(0 calc(16 * var(--px)) calc(20 * var(--px)) rgba(18, 43, 68, .26)); }   /* same shadow as the learning cards */
.kit-spread .kit-tools { position: absolute; left: 9%; top: 60%; width: 50%; translate: -50% -50%; z-index: 2;
                         filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .14)) drop-shadow(0 calc(14 * var(--px)) calc(16 * var(--px)) rgba(18, 43, 68, .26)); }
/* block and tools lift on hover, the same move as the learning cards */
.kit-spread .kit-block, .kit-spread .kit-tools { transition: transform .55s cubic-bezier(.2, .75, .2, 1); }
.kit-spread .kit-block:hover, .kit-spread .kit-tools:hover { transform: translateY(-8px); }
.kit-spread .kit-tools img { position: static; width: 100%; transform: rotate(-106deg) scaleX(-1); }   /* stood up, heads at the top, leaning left */
@media (max-width: 700px) {
  .case-step > .kit-row { width: auto; margin: 40px 0 0; grid-template-columns: 1fr; gap: 24px; }
}
/* every project: every step image is exactly as wide as the big intro picture and lines up under it
   (text stays where it was; the image column runs from 589 to the right margin) */
@media (min-width: 701px) {
  .case .case-step {
    --work: calc((1440 - 589 - 76) / 882);   /* 775 / 882 at the current margin */
    width: calc(1440 * var(--px) - 2 * var(--edge0)); margin-left: var(--edge);   /* margin to margin, like the intro: text under the project text, images under the cover */
    grid-template-columns: calc(345 * var(--px)) 1fr; column-gap: calc(589 * var(--px) - var(--edge0) - 345 * var(--px));
  }
  .case .case-step > .step-result-grid { width: calc((1440 * var(--px) - 2 * var(--edge0)) / var(--work)); }
  .case .case-step.step-guide > .gbook-wrap { width: calc(1440 * var(--px) - var(--edge0) - 589 * var(--px)); }
  .case .gbook { transform: translateX(calc((720 - 589) * var(--px) - (1440 * var(--px) - var(--edge0) - 589 * var(--px)) / 2)); }
  .case .gbook.closed-front { transform: translateX(-25%); }
  .case .gbook.closed-back { transform: translateX(25%); }
  .case .gbook-nav { translate: calc((720 - 589) * var(--px) - (1440 * var(--px) - var(--edge0) - 589 * var(--px)) / 2) 0; }
  .case .gbook-wrap.is-closed .gbook-nav { translate: none; }
  .case .case-step > .fold, .case .case-step > .box3d { width: calc(1440 * var(--px) - var(--edge0) - 589 * var(--px)); }
  .case .case-step > .kit-row { width: 100%; margin-left: 0; }
  /* the Result collage: first three columns = description + gap, so the photos beside it start at 589 like every other image */
  .case .step-result .grid { grid-template-columns: repeat(3, calc((589 * var(--px) - var(--edge0)) / var(--work) / 3 - 16 * var(--px))) repeat(6, 1fr); }
}
.step-dino-vision .palette { grid-template-rows: repeat(6, 1fr); }
.step-dino-vision .type-specimen { background: #FCF2DA; }

/* brand guidelines: an open book whose pages turn on a 3D spine */
/* the guidelines book uses the same width and left edge as the boxes above */
.gbook-wrap { display: flex; flex-direction: column; align-items: center; gap: calc(34 * var(--px)); }
/* the open book is 1190 wide, centred on the page; each page is 595, the same width as the work column,
   so the closed covers slide over to sit exactly in line with the sections above and below */
.gbook-stage { width: calc(1190 * var(--px)); flex: none; aspect-ratio: 2.5 / 1; outline: none; }
.gbook {
  --turn: 1.1s; --gease: cubic-bezier(.645, .045, .355, 1);
  position: relative; width: 100%; height: 100%;
  perspective: calc(2400 * var(--px));
  transition: transform .9s var(--gease);
  filter: drop-shadow(0 calc(13 * var(--px)) calc(18 * var(--px)) rgba(40, 30, 25, .28)) drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
.gbook { transform: translateX(calc(-152.5 * var(--px))); }   /* open: centred on the page */
.gbook.closed-front { transform: translateX(-25%); }
.gbook.closed-back { transform: translateX(25%); }
.gedges { position: absolute; top: .4%; bottom: .4%; width: 0; transition: width .9s var(--gease);
  background: repeating-linear-gradient(90deg, #efe9e1 0 1px, #d6ccbf 1px 2px); }
.gedges.l { right: 100%; border-radius: 2px 0 0 2px; }
.gedges.r { left: 100%; border-radius: 0 2px 2px 0; }
.gleaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform var(--turn) var(--gease); cursor: pointer;
}
.gleaf.flipped { transform: rotateY(-180deg); }
.gbook.no-turn .gleaf, .gbook.no-turn .gedges { transition: none !important; }   /* pages reset instantly mid-flip */
.gbook-stage:has(.gbook.flipping-over) { perspective: calc(2400 * var(--px)); }   /* depth for the whole-book turn */
.gface { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #efe9e1; }
.case .gface img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.gface.back { transform: rotateY(180deg); }
.gface::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.gface.front::after { background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.1) 2.5%, rgba(255,255,255,.06) 6%, transparent 14%, transparent 96%, rgba(0,0,0,.05) 100%); }
.gface.back::after { background: linear-gradient(270deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.1) 2.5%, rgba(255,255,255,.06) 6%, transparent 14%, transparent 96%, rgba(0,0,0,.05) 100%); }
.gleaf.first .gface.front::after { background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 3%); }
.gleaf.last .gface.back::after { background: linear-gradient(270deg, rgba(0,0,0,.12), transparent 3%); }
.gface .lift { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.gleaf.turning .gface .lift { animation: glift var(--turn) var(--gease); }
@keyframes glift { 50% { opacity: .18; } }
.gbook-nav {
  position: relative; display: flex; align-items: center; gap: calc(22 * var(--px));
  font-family: var(--sans); font-size: calc(14 * var(--px)); font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: calc(56 * var(--px));
}
.gbook-nav button { all: unset; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; width: calc(38 * var(--px)); height: calc(38 * var(--px)); display: grid; place-items: center; border-radius: 50%; transition: background .2s, opacity .2s; }
.gbook-nav button:hover { background: rgba(46, 40, 36, .08); }
.gbook-nav button:focus-visible { outline: 1.5px solid var(--brown); outline-offset: 2px; }
.gbook-nav button:disabled { opacity: .25; cursor: default; background: none; }
.gbook-nav svg { width: calc(18 * var(--px)); height: calc(18 * var(--px)); }
.gbook-nav { transition: translate .9s cubic-bezier(.645, .045, .355, 1); }
.gbook-nav { translate: calc(-152.5 * var(--px)) 0; }   /* open: under the page centre */
.gbook-wrap.is-closed .gbook-nav { translate: none; }   /* closed: under the cover */
.gcount { min-width: 8ch; text-align: center; font-variant-numeric: tabular-nums; }
.gbook-nav .grestart {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: auto; height: auto; border-radius: 999px;
  white-space: nowrap; padding: calc(9 * var(--px)) calc(22 * var(--px)); border: 1px solid var(--brown);
}
.gbook-nav .grestart:hover { background: var(--brown); color: var(--cream); }
.gbook-nav .grestart[hidden] { display: none; }
.gbook-nav .gcount { display: none; }   /* just the arrows, no page numbers */

/* small outlined description under each step title */
.step-note {
  margin-top: calc(14 * var(--px));
  padding: calc(17 * var(--px)) calc(19 * var(--px)) calc(18 * var(--px));
  border: 1px solid var(--brown);
  font-size: calc(16 * var(--px)); line-height: calc(20 * var(--px));
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 4; text-wrap: pretty;   /* pretty: no single-word last lines; light hyphenation keeps justified gaps even */
}

/* click a result image to see it larger */
.step-result figure { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 8000;
  display: grid; place-items: center;
  background: rgba(46, 40, 36, .86);
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.lightbox img {
  max-width: 86vw; max-height: 86vh; width: auto; height: auto; display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  scale: .94; transition: scale .6s var(--ease), opacity .3s ease;
}
.lightbox.open img { scale: 1; }
.lightbox img.swapping { opacity: 0; }
/* vector illustrations open on a cream card, drawn large */
.lightbox img.is-art { width: min(64vw, 72vh); max-height: 80vh; object-fit: contain; background: var(--cream); padding: 5vh; box-sizing: border-box; }
.lightbox button {
  all: unset; position: absolute; cursor: pointer; color: var(--cream);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  transition: background .2s;
}
.lightbox button:hover { background: rgba(254, 250, 235, .12); }
.lightbox button:focus-visible { outline: 1.5px solid var(--cream); outline-offset: 2px; }
.lightbox svg { width: 26px; height: 26px; }
.lightbox .lb-close { top: calc(22px + env(safe-area-inset-top, 0px)); right: 22px; }
.lightbox .lb-prev { left: 2vw; top: 50%; translate: 0 -50%; }
.lightbox [hidden] { display: none !important; }
.lightbox .lb-next { right: 2vw; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0;
  color: var(--cream); font-size: 13px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* rounded corners to match the home page cards (30). The work is zoomed to 67.5%,
   so radii inside it are divided by --work to land at 30 on screen */
.case-cover { border-radius: calc(30 * var(--px)); }
.step-brief > figure, .step-vision .grid, .step-making .grid { border-radius: calc(30 * var(--px) / var(--work)); overflow: hidden; }
.step-result figure { border-radius: calc(14 * var(--px) / var(--work)); }
.step-note { border-radius: calc(10 * var(--px)); }
.lightbox img { border-radius: 18px; }
/* pictures look raised off the page: a soft drop shadow underneath and a faint light catch on the top edge */
.case-cover, .step-brief > figure, .step-vision .grid, .step-making .grid, .step-result figure, .case-step > .img-placeholder {
  position: relative;
  box-shadow: 0 1px 2px rgba(46, 40, 36, .12), 0 6px 14px rgba(46, 40, 36, .12), 0 18px 36px rgba(46, 40, 36, .10);
}
.case-cover::after, .step-brief > figure::after, .step-vision .grid::after, .step-making .grid::after, .step-result figure::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(46, 40, 36, .12);
}

/* stagger the pictures as they fade up */
.case-step figure:nth-child(2) { --d: .1s; }
.case-step figure:nth-child(3) { --d: .2s; }
.case-step figure:nth-child(4) { --d: .3s; }
.step-result figure:nth-child(3n+2) { --d: .1s; }
.step-result figure:nth-child(3n) { --d: .2s; }
.step-result figure:nth-child(3n+1) { --d: 0s; }

@media (max-width: 700px) {
  .illus { height: calc(1150 * var(--px)); }
  .illus-elk { left: 0; top: calc(690 * var(--px)); width: calc(250 * var(--px)); }
  .illus-moose { left: calc(220 * var(--px)); top: calc(800 * var(--px)); width: calc(290 * var(--px)); }
  .illus-sheep { left: calc(500 * var(--px)); top: calc(700 * var(--px)); width: calc(220 * var(--px)); }
  .case-step > .fold { width: auto; margin-left: 0; grid-column: 1 / -1; grid-row: auto; }
  .fold-view { height: 70vw; }
  .fold-bar { font-size: 11px; }

  :root { --px: calc(100vw / 760); --edge0: 16px; --gutter: 0px; }
  .nav { font-size: 11px; }
  .role { font-size: 12px; }
  .purpose { margin-inline: 16px; }
  .statement { white-space: normal; }
  .purpose-note { font-size: 15px; margin-top: 40px; }
  .cards { width: auto; gap: 16px; }
  .to-top { font-size: 12px; }
  .foot-bar { height: 56px; padding: 0 16px; }
  .foot-nav, .foot-left { gap: 20px; }
  .foot-top, .foot-nav a { font-size: 12px; }
  .foot-band { height: 150px; }
  .logo { font-size: 150px; bottom: -15px; left: 16px; }

  .about-top { height: auto; padding-bottom: 48px; }
  .bio { position: static; transform: none; }
  .bio > * { position: static; }
  .meet { margin: 48px 16px 0; }
  .polaroid { display: block; width: 72%; height: auto; aspect-ratio: 477 / 682; margin: 40px auto 0; }
  .clip { display: none; }
  .facts { margin: 32px 16px 0; width: auto !important; }
  .facts > div { height: auto; padding: 26px 12px 14px; }
  .facts dt { font-size: 10px; }
  .facts dd img { position: static; display: block; max-width: 100%; height: calc(var(--h) * .62px); }

  .skills { margin: 48px 16px 0; padding-top: 40px; }
  .skills-title { font-size: 32px; }
  .skill-tabs { grid-template-columns: repeat(3, auto); column-gap: 28px; margin-top: 40px; }
  .skill-tab { font-size: 16px; }
  .skill-panel { width: calc(100vw - 48px); }
  .skill-panel p { font-size: 14px; }
  .next { height: auto; padding: 60px 16px 0; }
  .next-title, .next-links { position: static; width: auto; }
  .next-title { font-size: 56px; margin-bottom: 24px; }
  .next-links a { height: 52px; padding: 0 20px; font-size: 13px; }
  .about-me { width: auto; margin: 56px 16px 0; }
  .about-me-title { font-size: 44px; }
  .about-hero { font-size: 46px; white-space: normal; margin-bottom: 48px; }
  .about-me-text { margin-top: 24px; }
  .about-me-text p { font-size: 15px; line-height: 1.45; text-align: left; }
  .about-me-text p + p { margin-top: 16px; }
  .case-hero { height: auto; padding: 40px 16px 0; }
  .case-title, .case-info, .case-cover { position: static; width: auto; }
  .case-title { font-size: 64px; }
  .case-info { margin-top: 28px; }
  .case-info h2 { font-size: 16px; }
  .case-info p { font-size: 15px; line-height: 1.45; margin-top: 10px; }
  .case-info p + h2 { margin-top: 28px; }
  .case-cover { height: auto; aspect-ratio: 759 / 709; margin-top: 32px; }
  .case-step { width: auto; margin: 72px 16px 0 !important; display: block; }
  .case-step > :not(.step-text) { width: auto; zoom: 1; }
  .step-label { font-size: 32px; margin: 0 0 12px; }
  .step-num { font-size: 20px; margin-top: 8px; }
  .step-note { margin: 14px 0 0; padding: 12px 14px; font-size: 13px; line-height: 1.4; }
  .step-brief figure { height: auto; aspect-ratio: 881 / 628; }
  .step-vision .grid, .step-making .grid { grid-template-rows: none; grid-auto-rows: auto; }
  .step-vision figure { aspect-ratio: 440 / 628; }
  .step-making figure { aspect-ratio: 441 / 789; }
  .step-making figure:nth-child(n) { grid-area: auto; }
  .step-making .grid { grid-template-columns: 1fr 1fr; grid-template-areas: none; }
  .step-result .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step-result .grid { grid-auto-rows: auto; }
  .case-step > .step-result-grid { width: auto; }
  .step-result figure { grid-area: auto; aspect-ratio: 276 / 374; }
  .gbook-stage { width: 100%; }
  .gbook-nav, .gbook-wrap.is-closed .gbook-nav { translate: none; }
  .gbook { transform: none; }
  .case-step.step-guide > .gbook-wrap { width: auto; }
  .step-guide:has(.gbook-wrap:not(.is-closed)) .step-text { opacity: 1; }
  .gbook.closed-front { transform: translateX(-25%); }
  .gbook.closed-back { transform: translateX(25%); }
  .gbook-nav { font-size: 12px; gap: 14px; padding-bottom: 44px; }
  .gbook-nav button { width: 34px; height: 34px; }
  .gbook-nav svg { width: 16px; height: 16px; }
  .gbook-nav .grestart { padding: 8px 18px; }
  .process { width: auto; margin-inline: 16px; }
  .about-process .eyebrow { font-size: 14px; }
  .steps { grid-template-columns: 1fr; padding: 28px 20px; row-gap: 32px; }
  .num { width: 48px; font-size: 22px; }
  .steps h3, .about-process .steps h3 { font-size: 28px; }
  .about-process .num { font-size: 24px; width: 34px; margin-right: 10px; }
  .about-process .steps p { font-size: 15px; line-height: 1.4; margin-top: 12px; max-width: none; }
  .steps p { font-size: 14px; max-width: none; }
  .services { border-radius: 28px 28px 0 0; padding-bottom: 60px; }
  .services-title { font-size: 12px; }
  .services .n { font-size: 12px; }
  .svc-head { height: auto; padding: 14px 0 34px; }
  .services .n { top: auto; bottom: 8px; }
  .svc.open .n { top: auto; }
  .svc-head .word { position: static; transform: none; display: inline-block; }
  .svc-head { text-align: center; }
  .svc.open .svc-head { text-align: left; padding-left: 34px; }
  .svc-inner { grid-template-columns: 1fr; grid-template-areas: "head" "list" "about"; padding: 0 4px; }
  .svc-included ul, .svc-about { margin-top: 10px; padding-bottom: 16px; }
  .svc-included h3, .svc-time { font-size: 13px; }
  .svc-included ul, .svc-about p { font-size: 13px; }
  .services .go, .svc.open .go { display: none; }
  .services .go { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .role-track { animation: none; }
  .gbook { --turn: .01s; }
  .gbook, .gedges { transition: none; }
  .js .facts dd img { clip-path: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] .mask > span { transform: none; }
  .js [data-reveal] .fade { opacity: 1; }
  .js .steps { border-color: var(--brown); }
  .strip { overflow-x: auto; }
}

/* =========================================================
   CONNECT
   ========================================================= */
.connect-page { background: var(--bg-2); padding-bottom: calc(160 * var(--px)); }
.connect-page + .footer { margin-top: 0; }
.connect-page + .footer .foot-bar { background: var(--bg-2); }   /* the pink runs right down to the brown band */
.connect {
  display: grid; grid-template-columns: calc(440 * var(--px)) 1fr; column-gap: calc(80 * var(--px));
  margin: 0 var(--edge);
  padding-top: calc(147 * var(--px));   /* same gap under the menu as the project titles (ba.be.O, Banff) */
}
/* the heading and note stay in view while you work down the form */
.connect-intro { position: sticky; top: calc(60 * var(--px)); align-self: start; }
.connect-title { font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight); font-size: calc(128 * var(--px)); line-height: .72; }   /* same size as the project titles; spacing matched to the design */
.connect-title .mask { padding: .14em 0 .12em; margin: -.14em 0 -.12em; }   /* room above and below so the tighter lines don’t clip */
.connect-title .mask + .mask { --d: .12s; }
.connect-title .it { font-style: italic; }   /* “Let’s” in italic, like “Meet the” */
.connect-title .mask { padding-right: .12em; margin-right: -.12em; }
.connect-text { --d: .3s; margin-top: calc(66 * var(--px)); max-width: calc(330 * var(--px)); font-size: calc(14 * var(--px)); line-height: 1.45; }   /* 14 pt */
.connect-text p + p { margin-top: 1.15em; }

.connect-form { --d: .4s; max-width: calc(760 * var(--px)); padding-top: calc(24 * var(--px)); }
.connect-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.connect-form fieldset + fieldset { margin-top: calc(110 * var(--px)); }
.connect-form legend {
  padding: 0; margin-bottom: calc(40 * var(--px));
  font-weight: 600; text-transform: uppercase; font-size: calc(25 * var(--px)); line-height: 1.15;
}
.field + .field { margin-top: calc(40 * var(--px)); }
.field label, .field-label { display: block; font-weight: 500; font-size: calc(16 * var(--px)); line-height: 1.25; margin-bottom: calc(16 * var(--px)); }
.field input[type="text"], .field input[type="email"], .field textarea {
  display: block; width: 100%;
  padding: calc(14 * var(--px)) calc(18 * var(--px));
  font: inherit; font-weight: 400; font-size: calc(14 * var(--px)); line-height: 1.35;   /* responses: 14 */ color: var(--brown);
  background: var(--bg);
  border: 1px solid var(--brown);   /* same outline, fill and corners as the About fact cards */
  border-radius: calc(10 * var(--px));
  outline: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.field textarea { resize: vertical; min-height: calc(110 * var(--px)); }
.field input::placeholder, .field textarea::placeholder { color: rgba(46, 40, 36, .4); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(46, 40, 36, .12); }
.field.has-error input, .field.has-error textarea, .field-other.has-error input { border-color: #9A3B2E; }
.field.has-error .pill span { border-color: #9A3B2E; }
.field-error { margin-top: calc(8 * var(--px)); font-size: calc(15 * var(--px)); color: #9A3B2E; }
.field-error[hidden] { display: none; }

/* services: pick one, as round radio buttons in a column */
.choices { display: flex; flex-direction: column; gap: calc(14 * var(--px)); }
.choice { display: flex !important; align-items: center; gap: calc(18 * var(--px)); margin: 0 !important; cursor: pointer; width: max-content; }
.choice input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: calc(28 * var(--px)); height: calc(28 * var(--px)); border-radius: 50%;
  border: 1px solid var(--brown); background: var(--bg);
  transition: background .3s ease, box-shadow .3s ease, transform .4s var(--ease);
}
.choice:hover input { transform: scale(1.08); }
.choice input:checked { background: var(--cream); border-color: var(--brown); box-shadow: inset 0 0 0 calc(9 * var(--px)) var(--brown); }   /* brown ring, cream dot */
.choice input:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
/* (older pill style, unused) */
.pills { display: flex; flex-wrap: wrap; gap: calc(10 * var(--px)); }
.pill { position: relative; margin: 0 !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: block; padding: calc(10 * var(--px)) calc(20 * var(--px));
  font-weight: 600; text-transform: uppercase; font-size: calc(16 * var(--px)); line-height: 1;   /* same size as the question label */
  border: 1px solid var(--brown); border-radius: 999px;
  transition: background .3s ease, color .3s ease, transform .4s var(--ease);
}
.pill:hover span { transform: translateY(-2px); }
.pill input:checked + span { background: var(--brown); color: var(--cream); }
.field-other label { margin-top: calc(28 * var(--px)); }
.field-other:not([hidden]) { animation: otherIn .6s var(--ease) both; }
@keyframes otherIn { from { opacity: 0; transform: translateY(-8px); } }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(46, 40, 36, .2); }

.connect-send {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: block; width: 100%; margin-top: calc(80 * var(--px));
  padding: calc(18 * var(--px)); text-align: center;
  font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: calc(16 * var(--px));
  color: var(--cream); background: var(--brown); border-radius: calc(10 * var(--px));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.connect-send:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46, 40, 36, .18); }
.connect-send:focus-visible { box-shadow: 0 0 0 3px rgba(46, 40, 36, .25); }
.connect-note { margin-top: calc(14 * var(--px)); font-size: calc(16 * var(--px)); min-height: 1.3em; }

@media (max-width: 700px) {
  .connect { grid-template-columns: 1fr; margin: 0 16px; padding-top: 56px; }
  .connect-intro { position: static; }
  .connect-title { font-size: 64px; }
  .connect-text { margin-top: 28px; max-width: none; font-size: 16px; }
  .connect-form { max-width: none; padding-top: 48px; }
  .connect-form legend { font-size: 18px; }
  .field label, .field-label { font-size: 15px; }
  .field input[type="text"], .field input[type="email"], .field textarea { font-size: 16px; padding: 12px 14px; border-radius: 8px; }
  .pill span { font-size: 15px; padding: 9px 16px; }
  .connect-send { font-size: 14px; padding: 16px; }
}

/* ---------- BEHIND THE DESIGN (home) ---------- */
/* a wide espresso pill: title + "More about me" stacked on the left, three photos in a row on the right */
.behind {
  position: relative; display: flex; align-items: center;
  margin: calc(140 * var(--px)) var(--edge) 0;   /* between the page margins */
  padding: calc(73 * var(--px)) calc(80 * var(--px)) calc(73 * var(--px)) calc(112 * var(--px));
  background: var(--brown); color: var(--cream);
  border-radius: calc(150 * var(--px));
}
.behind-head { display: flex; flex-direction: column; align-items: stretch; }   /* button stretches to the title's width */
.behind-title { font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight); font-size: calc(86 * var(--px)); line-height: .86; }
.behind-title .mask { padding: .14em .12em .14em 0; margin: -.14em -.12em -.14em 0; }
.behind-title .it { font-style: italic; }
.behind-title .mask + .mask { --d: .12s; }
.behind-head { position: relative; }
.behind-btn {
  --d: .35s;
  margin: calc(28 * var(--px)) 0 0;
  display: flex; align-items: center; justify-content: center; height: calc(78 * var(--px)); padding: 0 calc(20 * var(--px));
  border-radius: 999px; background: transparent; color: var(--cream); border: 2px solid var(--cream);   /* outlined at rest, fills cream on hover */
  font-family: var(--sans); font-weight: 500; text-transform: uppercase; font-size: calc(22 * var(--px)); letter-spacing: .01em;
  transition: background .4s ease, color .4s ease, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.behind-btn:hover, .behind-btn:focus-visible { background: var(--cream); color: var(--brown); transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.behind-photos { display: flex; gap: calc(41 * var(--px)); margin-left: auto; }
.behind-photos figure {
  width: calc(194 * var(--px)); height: calc(276 * var(--px));
  border-radius: calc(22 * var(--px)); overflow: hidden;
  transition: transform .6s var(--ease);
}
.behind-photos figure:nth-child(2) { --d: .1s; }
.behind-photos figure:nth-child(3) { --d: .2s; }
.behind-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.behind-photos figure:hover { transform: translateY(-6px); }
/* raised like the carousel cards: the same three-layer soft shadow, deepened so it reads on the espresso card */
.behind-photos figure {
  box-shadow: 0 0 0 1px rgba(254, 250, 235, .22), 0 1px 2px rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .38), 0 24px 44px rgba(0, 0, 0, .34);   /* faint cream outline lifts them off the dark card */
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
.behind-photos figure:hover { box-shadow: 0 0 0 1px rgba(254, 250, 235, .32), 0 2px 4px rgba(0, 0, 0, .35), 0 26px 50px rgba(0, 0, 0, .45); }
.behind-photos figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .behind { display: block; width: auto; margin: 72px 16px 0; padding: 40px 24px 32px; border-radius: 36px; }
  .behind-title { font-size: 48px; }
  .behind-btn { margin: 24px 0 0; height: 44px; padding: 0 22px; font-size: 13px; }
  .behind-photos { gap: 10px; margin: 28px 0 0; }
  .behind-photos figure { width: auto; flex: 1; height: auto; aspect-ratio: 230 / 327; border-radius: 14px; }
}

/* ===== ba.be.O: template layout. Each section is one centred block with its title turned sideways on the
   left and the description in a small outlined box under the bottom-right corner. Page margins 100. ===== */
body:has(.case) { --edge0: calc(100 * var(--px)); --edge: calc(var(--edge0) + var(--gutter)); }
.bsec {
  --work: 1; --bw: min(calc(838 * var(--px)), calc((100vh - 220px) * 838 / 596));   /* block width: 838 at 1440, smaller on short screens so a picture always fits */
  position: relative; width: var(--bw); margin: calc(200 * var(--px)) auto 0;
}
.case .case-hero + .bsec { margin-top: calc(170 * var(--px)); }
.bsec-title {
  position: absolute; right: 100%; top: 0; margin-right: calc(22 * var(--px));
  writing-mode: vertical-rl; rotate: 180deg;   /* reads bottom to top, ending at the top of the picture */
  font-family: var(--serif); font-weight: 400; letter-spacing: var(--tight);
  font-size: calc(50 * var(--px)); line-height: 1; white-space: nowrap;
}
.js .bsec:not(.is-in) .bsec-title { opacity: 0; translate: calc(-16 * var(--px)) 0; }
.bsec-title { transition: opacity 1s ease, translate 1.1s var(--ease); }
.bsec-note {
  width: calc(300 * var(--px)); margin: calc(16 * var(--px)) 0 0 auto;
  padding: calc(12 * var(--px)) calc(16 * var(--px)) calc(13 * var(--px));
  border: 1px solid var(--brown); border-radius: calc(8 * var(--px));
  font-size: calc(16 * var(--px)); line-height: calc(21 * var(--px));
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty;
}
.bsec figure, .bsec .grid { margin: 0; }
.bsec.step-brief > figure { height: auto; aspect-ratio: 838 / 596; overflow: hidden; border-radius: calc(30 * var(--px)); }
.bsec.step-brief > figure img { width: 100%; height: 100%; object-fit: cover; scale: 1; }
.bsec.step-vision .grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: 838 / 596; }
.bsec.step-making .grid {
  display: grid; grid-template-rows: none; grid-auto-rows: calc(var(--bw) * 596 / 838 * .7);
}
.bsec.step-making .palette { grid-area: pal; }
.bsec.step-making .type-specimen { grid-area: type; }
.bsec.step-making .grid { grid-template-columns: 40fr 20fr 40fr; grid-template-areas: "pal photo photo" "blank blank type"; }
.bsec .photo { overflow: hidden; }
.bsec .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* guide: the book sits centred in the block */
.bsec.step-guide .gbook-wrap { width: 100%; }
.bsec.step-guide .gbook-stage { width: calc(var(--bw) * 1.2); }
.case .gbook, .case .gbook-nav { transform: none; translate: none; }
.case .gbook.closed-front { transform: translateX(-25%); }
.case .gbook.closed-back { transform: translateX(25%); }
/* application: three portrait columns, then two landscape pictures */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(16 * var(--px)); }
.app-grid figure { grid-column: span 2; aspect-ratio: 690 / 935; overflow: hidden; border-radius: calc(14 * var(--px)); height: auto; }
.app-grid figure.wide { grid-column: span 3; aspect-ratio: 1.43; }
.app-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case .next { margin-top: calc(160 * var(--px)); }
@media (max-width: 700px) {
  .bsec { --bw: calc(100vw - 32px); margin-top: 72px; }
  .bsec-title { position: static; writing-mode: horizontal-tb; rotate: none; margin: 0 0 12px; font-size: 32px; }
  .bsec-note { width: auto; font-size: 14px; line-height: 1.4; }
  .bsec.step-making .grid { grid-auto-rows: 60vw; }
  .app-grid { gap: 8px; }
}
.bsec .type-specimen { padding-left: calc(40 * var(--px)); gap: calc(40 * var(--px)); }
.case .bsec .type-specimen img { width: calc(var(--w) * var(--px) * .82); }
.bsec-note { hyphens: manual; -webkit-hyphens: manual; }
/* ba.be.O palette: lighter labels with room around them */
.bsec .palette > div { padding: 0 calc(20 * var(--px)) calc(14 * var(--px)); }
.bsec .palette > div:hover { padding-left: calc(26 * var(--px)); }
.bsec .palette b { font-size: calc(17 * var(--px)); letter-spacing: .02em; }
.bsec .palette span { margin-top: calc(4 * var(--px)); font-size: calc(11 * var(--px)); letter-spacing: .04em; }
/* wider, shorter description boxes (about half the block) so the justified lines don't stretch */
.bsec-note { width: auto; padding: calc(14 * var(--px)) calc(20 * var(--px)) calc(15 * var(--px)); }
@media (max-width: 700px) { .bsec-note { width: auto; } }
.app-grid img[src*="result-2."] { object-position: 67% 50%; }   /* sign centred in its tile */
.bsec-note.fade { --d: .25s; }   /* descriptions rise in just after their pictures */
.bsec-note { border: 0; border-radius: 0; padding: 0; margin-top: calc(18 * var(--px)); }   /* plain text under the pictures, no outline */
/* ba.be.O: title centred above each block, margins 120, colour + type as two equal halves */
body:has(.case) { --edge0: calc(120 * var(--px)); }
.bsec-title {
  position: static; writing-mode: horizontal-tb; rotate: none; margin: 0 0 calc(44 * var(--px));
  text-align: center; font-size: calc(64 * var(--px));
}
.js .bsec:not(.is-in) .bsec-title { translate: 0 calc(20 * var(--px)); }
.bsec.step-making .grid { grid-template-columns: 1fr 1fr; grid-template-areas: none; grid-auto-rows: auto; aspect-ratio: 838 / 700; }
.bsec.step-making .palette, .bsec.step-making .type-specimen { grid-area: auto; }
.bsec .type-specimen { padding-left: calc(70 * var(--px)); gap: calc(44 * var(--px)); }
.case .bsec .type-specimen img { width: calc(var(--w) * var(--px)); }
@media (max-width: 700px) { .bsec-title { font-size: 34px; margin-bottom: 16px; } }
/* the two photos sit side by side under the palette + typefaces */
.color-photos { display: grid; grid-template-columns: 1fr 1fr; gap: calc(16 * var(--px)); margin-top: calc(16 * var(--px)); }
.color-photos figure { aspect-ratio: 4 / 5; border-radius: calc(30 * var(--px)); overflow: hidden; }
.color-photos .fade, .color-photos.fade { --d: .12s; }
/* ba.be.O, final: title + description on the left, the work on the right, 96 between sections */
@media (min-width: 701px) {
  .bsec {
    --bw: calc(1440 * var(--px) - 2 * var(--edge0) - 375 * var(--px));   /* work column: 825 at 1440 */
    width: calc(1440 * var(--px) - 2 * var(--edge0)); margin: calc(96 * var(--px)) auto 0;
    display: grid; grid-template-columns: calc(330 * var(--px)) 1fr; column-gap: calc(45 * var(--px));
    grid-template-areas: "title work" "note work"; grid-template-rows: auto 1fr; align-items: start;
  }
  .case .case-hero + .bsec { margin-top: calc(96 * var(--px)); }
  .bsec > :not(.bsec-title):not(.bsec-note) { grid-area: work; min-width: 0; }
  .bsec-title { grid-area: title; text-align: left; white-space: normal; font-size: calc(72 * var(--px)); line-height: .95; margin: calc(-6 * var(--px)) 0 0; }
  .bsec-note { grid-area: note; margin-top: calc(40 * var(--px)); font-size: calc(18 * var(--px)); line-height: calc(24 * var(--px)); }
  .bsec.step-making .grid { aspect-ratio: 950 / 850; }
  .bsec.step-guide .gbook-stage { width: 100%; }
  .case .next { margin-top: calc(96 * var(--px)); }
}
.js .bsec:not(.is-in) .bsec-title { translate: 0 calc(20 * var(--px)); }
/* ba.be.O on an 8px grid: 120 margins | 328 text | 48 gap | 824 work (at 1440) */
@media (min-width: 701px) {
  .case .case-hero { height: calc(856 * var(--px)); }
  .case .case-info { width: calc(328 * var(--px)); }
  .case .case-cover {
    left: calc(var(--edge) + 376 * var(--px)); top: calc(152 * var(--px));
    width: calc(824 * var(--px)); height: calc(704 * var(--px)); border-radius: calc(32 * var(--px));
  }
  .bsec { --bw: calc(824 * var(--px)); grid-template-columns: calc(328 * var(--px)) 1fr; column-gap: calc(48 * var(--px)); }
  .bsec-title { margin-top: calc(-8 * var(--px)); }
  .bsec-note { margin-top: calc(40 * var(--px)); font-size: calc(16 * var(--px)); line-height: calc(24 * var(--px)); }
}
.bsec.step-brief > figure, .bsec .grid, .color-photos figure { border-radius: calc(32 * var(--px)); }
.app-grid { gap: calc(16 * var(--px)); }
.app-grid figure { border-radius: calc(16 * var(--px)); }
.bsec .palette > div { padding: 0 calc(24 * var(--px)) calc(16 * var(--px)); }
.bsec .palette > div:hover { padding-left: calc(32 * var(--px)); }
.bsec .palette b { font-size: calc(16 * var(--px)); }
.bsec .palette span { margin-top: calc(8 * var(--px)); font-size: calc(12 * var(--px)); line-height: 1; }
.bsec .type-specimen { padding-left: calc(72 * var(--px)); gap: calc(48 * var(--px)); }
@media (min-width: 701px) { .case .case-title { font-size: calc(96 * var(--px)); top: calc(152 * var(--px)); } }
.bsec .palette b { font-size: calc(20 * var(--px)); letter-spacing: 0; } .bsec .palette span { font-size: calc(12 * var(--px)); margin-top: calc(4 * var(--px)); } .bsec .palette > div { padding-bottom: calc(24 * var(--px)); }
@media (min-width: 701px) { .bsec.step-result .app-grid { grid-column: 1 / -1; grid-row: 1 / -1; } }   /* no title: the photos run margin to margin */
/* ba.be.O intro on the 8px grid: starts 96 under the nav, photo 824 x 640, next section 96 below */
@media (min-width: 701px) {
  .case .case-hero { height: calc(736 * var(--px)); }
  .case .case-title { top: calc(96 * var(--px)); }
  .case .case-cover { top: calc(96 * var(--px)); height: calc(640 * var(--px)); }
  .case .case-info { bottom: calc(-8 * var(--px)); }
  .case .case-info h2 { font-size: calc(24 * var(--px)); }
  .case .case-info p { margin-top: calc(16 * var(--px)); font-size: calc(20 * var(--px)); line-height: calc(24 * var(--px)); }
  .case .case-info p + h2 { margin-top: calc(48 * var(--px)); }
}
@media (min-width: 701px) { .bsec.step-result { display: block; } .bsec.step-result .bsec-title { margin: 0 0 calc(48 * var(--px)); } }   /* Application: title on top, photos margin to margin underneath */
.bsec-note { text-align: left; }

/* the same layout on every project page: pieces that used to be scaled to the old 882 work column */
.bsec > .img-placeholder { height: auto; aspect-ratio: 838 / 596; border-radius: calc(32 * var(--px)); }
.bsec > .illus, .bsec > .making-panel { zoom: calc(824 / 882); }
.bsec figure.making-panel:hover img { transform: translateY(-8px); }
.bsec > .fold { width: 100%; margin: 0; display: flex; flex-direction: column; gap: calc(16 * var(--px)); }
.bsec > .box3d { width: 100%; margin-top: 0; }
.case .bsec.step-dino-result { margin-top: calc(96 * var(--px)); }
@media (min-width: 701px) {
  .bsec > .kit-row { grid-column: 1 / -1; grid-row: 3; width: 100%; margin: calc(72 * var(--px)) 0 0; }
}
.bsec .illus-elk { left: calc(-402 * var(--px)); }   /* elk starts right on the page margin */
@media (min-width: 701px) { .bsec.step-dino-result > .kit-row { grid-area: auto; grid-column: 1 / -1; grid-row: 3; } }   /* cards, tools and block: full-width row under the box */
.bsec > .kit-row { display: grid; grid-template-columns: 49% 51%; align-items: center; }
.bsec-title .nowrap { white-space: nowrap; }
/* Banff: animals tucked up closer under the Fairmont */
@media (min-width: 701px) {
  .bsec .illus { height: calc(1040 * var(--px)); }
  .bsec .illus-elk { top: calc(600 * var(--px)); }
  .bsec .illus-moose { top: calc(628 * var(--px)); }
  .bsec .illus-sheep { top: calc(646 * var(--px)); }
}
.bsec .illus-box img { top: 0; }   /* Fairmont top level with the section title */
@media (min-width: 701px) {
  .bsec .illus { height: calc(1018 * var(--px)); }   /* ends at the bottom of the lowest animal, so the next section is 96 below */
  .bsec .illus-elk { top: calc(580 * var(--px)); }   /* 48 under the Fairmont */
  .bsec .illus-moose { top: calc(608 * var(--px)); }
  .bsec .illus-sheep { top: calc(626 * var(--px)); }
}
@media (min-width: 701px) { .case .case-info p { font-size: calc(22 * var(--px)); line-height: calc(28 * var(--px)); } }

/* ===== Kids Day Out ===== */
.case-kdo .panel-light { background: #F15859; }
.case-kdo .panel-dark { background: #F2F2F2; }
.case-kdo .swap .panel-light { background: #F2F2F2; }
.case-kdo .swap .panel-dark { background: #F15859; }
.case .case-kdo .panel-light img, .case-kdo .panel-light img { width: calc(248 * var(--px)); }
.case-kdo .panel-dark img { width: calc(296 * var(--px)); }
.case-kdo .palette > div.on-dark { color: #FFFFFF; }
.case-kdo .type-specimen { background: #F2F2F2; }
.app-ph { background: #F2F2F2; cursor: default; }
/* KDO guide: landscape pages, so the book runs the full content width under the title and description */
@media (min-width: 701px) {
  .case-kdo .bsec.step-guide { display: block; }
  .case-kdo .bsec.step-guide .bsec-note { max-width: calc(656 * var(--px)); margin: calc(24 * var(--px)) 0 0; }
  .case-kdo .bsec.step-guide .gbook-wrap { margin-top: calc(48 * var(--px)); }
}
.case-kdo .gbook-stage { aspect-ratio: 32 / 9; }
.case-kdo .gface { background: #fff; }

/* ===== Mini Zine ===== */
.zine-word {
  font-family: "Libre Baskerville", Baskerville, Georgia, serif; font-weight: 400; color: #AF8C3B;
  font-size: calc(104 * var(--px)); line-height: 1; text-align: center; letter-spacing: 0; margin: 0;
}
@media (min-width: 701px) { .step-zine-brief .zine-word { align-self: center; } }
.case-zine .type-specimen { background: #F2F2F2; padding-left: calc(56 * var(--px)); gap: calc(16 * var(--px)); }
.zine-type span { font-family: "Libre Baskerville", Baskerville, Georgia, serif; font-size: calc(32 * var(--px)); line-height: 1.2; color: #3A3A3C; }
.case-zine .palette > div.on-dark { color: #FFFFFF; }
.case-zine .palette > div:not(.on-dark) { color: #3A3A3C; }
@media (min-width: 701px) {
  .bsec.step-zine-app { display: block; }
  .bsec.step-zine-app .bsec-title { margin: 0 0 calc(48 * var(--px)); }
}
.zine3d iframe { display: block; width: 100%; height: 680px; border: 0; background: transparent; }
@media (max-width: 700px) { .zine3d iframe { height: 120vw; } .zine-word { font-size: 48px; margin: 8px 0 16px; } }
/* colour swatches sit above the page grain so every hex shows at its true, 100% colour;
   the enlarged-photo view and the dino card zoom move above them so they still cover the page */
.bsec .palette { position: relative; z-index: 9001; }
.lightbox { z-index: 9500; }
.fc-veil { z-index: 9600; }
.fcard.fc-zoom { z-index: 9601; }
.fold-nav { padding-bottom: 0; justify-content: center; align-self: center; }   /* Banff poster arrows: same look as the brand guides */
/* intro: THE PROJECT / SERVICES sit centred in the space between the title and the bottom of the photo */
@media (min-width: 701px) {
  .case .case-info { top: calc((96 + 2 * 96 * .9) * var(--px)); bottom: 0; left: var(--edge); display: flex; flex-direction: column; justify-content: center; }
}
/* zine typefaces: the four weights centred in their panel */
.case-zine .zine-type { padding-left: 0; align-items: center; justify-content: center; text-align: center; }
/* intro text at a fixed 22pt on every project page (headings 24), with even 8-grid spacing */
@media (min-width: 701px) {
  .case .case-info h2 { font-size: 24px; line-height: 1; }
  .case .case-info p { font-size: 22px; line-height: 28px; margin-top: 16px; }
  .case .case-info p + h2 { margin-top: 48px; }
}
/* intro as a two-column grid: title + text on the left (text centred in the space under the title), photo on the right.
   The intro grows if the 22pt text ever needs more room, so nothing overlaps on smaller screens */
@media (min-width: 701px) {
  .case .case-hero {
    height: auto; width: calc(1440 * var(--px) - 2 * var(--edge0)); margin: 0 auto; padding-top: calc(96 * var(--px));
    display: grid; grid-template-columns: calc(328 * var(--px)) 1fr; column-gap: calc(48 * var(--px)); grid-template-rows: auto 1fr;
  }
  .case .case-title { position: static; grid-column: 1; grid-row: 1; }
  .case .case-info { position: static; grid-column: 1; grid-row: 2; width: auto; margin: 24px 0; top: auto; bottom: auto; left: auto; }
  .case .case-cover { position: static; grid-column: 2; grid-row: 1 / span 2; width: 100%; height: calc(640 * var(--px)); align-self: start; }
}
@media (min-width: 701px) {
  .case .case-info { margin: 0; padding-top: 24px; }   /* at least 24 under the title; the next section stays 96 below whichever ends lower */
}
@media (min-width: 701px) {
  .case .case-cover { position: relative; }   /* keeps the photo's edge highlight on the photo itself */
  .case .case-info { margin: 24px 0 0; padding-top: 0; }
}
@media (min-width: 701px) { .case .case-cover { top: auto; left: auto; } }
/* Dino 3D modeling: the panel hugs the model, so Packaging sits the usual 96 below it */
.bsec > .making-panel { height: auto; }
/* "check out my recent work" always leaves ~96 of space under it on the opening screen:
   the gap above it shrinks on shorter screens (never below 32) and stays 96 on tall ones */
@media (min-width: 701px) {
  .hero .peek { margin-top: clamp(calc(32 * var(--px)), calc(100svh - 790 * var(--px)), calc(96 * var(--px))); }
}
/* "Check out my recent work!": more room under the name, a touch smaller so the opening screen still breathes below it */
@media (min-width: 701px) {
  .hero .peek { margin-top: calc(152 * var(--px)); font-size: calc(72 * var(--px)); }
}
.app-grid img[src*="app-mug"] { object-position: 52% 60%; }   /* mug centred in its tall tile */

/* ---------- OPENING LOADER (home page) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 8900; background: #2E2824;
  display: grid; place-items: center; overflow: hidden; will-change: transform;
}
.loader-card {
  position: relative; height: min(46vh, 460px); aspect-ratio: 4 / 5;
  transform: scale(.03); will-change: transform;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.loader-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.loader-card img.on { opacity: 1; }   /* each new design lands on top of the last */
html.is-loading, html.is-loading body { overflow: hidden; }
/* loader card corners match the carousel tiles (30 on a 432-wide tile) */
.loader-card { overflow: hidden; border-radius: calc(min(46vh, 460px) * 4 / 5 * 30 / 432); }
/* KDO brief: the K-to-figure sketch sits open on the page, centred against the title and text */
.kdo-sketch { display: grid; place-items: center; }
.kdo-sketch img { width: 78%; height: auto; display: block; }
@media (min-width: 701px) { .bsec > .kdo-sketch { align-self: center; } }
/* Banff brief: the layout sketch sits under the description in the text column */
@media (min-width: 701px) {
  .bsec.step-brief:has(.brief-sketch) { grid-template-areas: "title work" "note work" "sketch work"; grid-template-rows: auto auto 1fr; }
  .bsec > .brief-sketch { grid-area: sketch; margin-top: calc(32 * var(--px)); }
}
.brief-sketch img { width: 100%; height: auto; display: block; }
.brief-sketch { --d: .35s; }
@media (max-width: 700px) { .brief-sketch { margin-top: 24px; } }
@media (min-width: 701px) { .bsec.step-brief > .brief-sketch { grid-area: sketch; } }
/* one margin everywhere (120): the name still runs exactly edge to edge between them */
.name { font-size: calc(292 * var(--px)); }
/* the opening screen is just the name, roles and "Check out my recent work!": the carousel waits below the fold */
@media (min-width: 701px) {
  .hero { min-height: calc(100vh - 121 * var(--px)); min-height: calc(100svh - 121 * var(--px)); box-sizing: border-box; }
}
.sketch-babeo img { width: 88%; }   /* ba.be.O brief sketch: nearly square, so a bit narrower */
.sketch-dino img { width: 88%; }   /* toy brief: the skeleton sketch, wide like the ba.be.O one */
/* toy brief: the sketch is exactly as tall as "The Brief" + its description (the text sets the height, the sketch fits inside it) */
@media (min-width: 701px) {
  .bsec > .sketch-dino { contain: size; align-self: stretch; min-height: 0; }
  .sketch-dino img { width: auto; height: 100%; max-width: 100%; }
}
@media (min-width: 701px) {
  .bsec > .sketch-dino { position: relative; display: block; }
  .sketch-dino img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
}
@media (min-width: 701px) {
  .sketch-dino img { inset: -6% 0; height: 112%; object-position: right center; }   /* a touch taller than the text, set against the right edge */
}
@media (min-width: 701px) { .sketch-dino img { inset: -12.5% 0; height: 125%; } }
@media (min-width: 701px) { .sketch-dino img { object-position: left center; } }   /* left edge lines up with the colour palette below */
@media (min-width: 701px) { .sketch-dino img { object-position: center center; } }   /* centred in its column */
@media (min-width: 701px) { .sketch-dino img { inset: 27.5% 0; height: 45%; object-position: center center; } }   /* Fossil House logo: small, centred against the brief and over the column below */
/* Banff animals stay put (no dragging); a click still opens them large */
.illus-animal { cursor: zoom-in; touch-action: auto; translate: none; }
