/* ── Doré Design · case.css — imported work-page patterns from aidandore.com, bridged to the dore.design system. Load BEFORE shared.css. ── */

main > section + section {
  margin-top: var(--section-gap);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul, ol {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--text {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 160px;
}
@media (max-width: 1200px) {
.container--text {
    padding: 0 80px;
  }
}
@media (max-width: 768px) {
.container--text {
    padding: 0 32px;
  }
}
/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
}
.nav-logo {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--color-text-primary);
}
/* Work */
.work {
  padding: 80px 0;
}
.work-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 16px;
}
.work-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.project-card {
  display: block;
  border-bottom: 1px solid #2a2a2a;
}
.project-image {
  background-color: var(--color-surface);
  height: 560px;
  width: 100%;
  transition: background-color 0.2s ease;
}
.project-card:hover .project-image {
  background-color: #2e2e30;
}
.project-info {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-info h2 {
  font-size: 18px;
  font-weight: 400;
}
.project-info span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* More Work */
.more-work {
  margin-top: 80px;
}
.more-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.more-card {
  display: block;
}
.more-image {
  background-color: var(--color-surface);
  height: 280px;
  width: 100%;
  transition: background-color 0.2s ease;
}
.more-card:hover .more-image {
  background-color: #2e2e30;
}
.more-info {
  padding: 14px 0;
}
.more-info p {
  font-size: 14px;
  font-weight: 400;
}
/* ============================================
   Browser frame component
   Used to wrap full-page screenshots across
   case study pages.
   ============================================ */

.browser-frame {
  display: block;
  width: 100%;
  background-color: #2a2a2c;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.browser-frame__header {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #1c1c1e;
  border-bottom: 1px solid #3a3a3c;
}
.browser-frame__lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser-frame__lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.browser-frame__lights span:nth-child(1) { background-color: #e25549; }
.browser-frame__lights span:nth-child(2) { background-color: #d49b29; }
.browser-frame__lights span:nth-child(3) { background-color: #28a83d; }
.browser-frame__arrows {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  color: #5a5a5c;
}
.browser-frame__arrows svg {
  width: 18px;
  height: 18px;
  display: block;
}
.browser-frame__url {
  flex: 1;
  min-width: 0;
  max-width: 1000px;
  height: 26px;
  background-color: #2a2a2c;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
  letter-spacing: 0.02em;
}
.browser-frame__add {
  flex-shrink: 0;
  color: #5a5a5c;
}
.browser-frame__add svg {
  width: 18px;
  height: 18px;
  display: block;
}
.browser-frame__content {
  display: block;
  width: 100%;
}
.browser-frame__content img {
  width: 100%;
  height: auto;
  display: block;
}
/* Light variant — for use on light-coloured housings */
.browser-frame--light {
  background-color: #FFFFFF;
  border: 1px solid rgba(10, 37, 64, 0.08);
}
.browser-frame--light .browser-frame__header {
  background-color: #FDFDFC;
  border-bottom-color: rgba(10, 37, 64, 0.06);
}
.browser-frame--light .browser-frame__url {
  background-color: #FFFFFF;
  color: rgba(10, 37, 64, 0.6);
  border: 1px solid rgba(10, 37, 64, 0.08);
}
.browser-frame--light .browser-frame__arrows,
.browser-frame--light .browser-frame__add {
  color: rgba(10, 37, 64, 0.4);
}
/* Project Page */
.project-hero {
  width: 100%;
  height: 70vh;
  background-color: var(--color-surface);
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-header {
  padding: 100px 0 60px;
}
.project-header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.project-meta,
.project-meta * {
  font-family: var(--font-mono);
}
.project-meta {
  padding-top: 10px;
}
.meta-row {
  font-size: 12px;
  margin-bottom: 24px;
}
.meta-label {
  display: block;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.meta-value {
  color: var(--color-text-primary);
}
.project-intro h1 {
  font-size: 48px;
  font-weight: 400;
}
.project-intro p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin-top: 20px;
}
/* Project bento */
.project-bento {
  padding: 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 480px;
  gap: 16px;
}
/* Reusable tile span classes */
.bento-tile--span-2 { grid-column: span 2; }
.bento-tile--span-3 { grid-column: span 3; }
.bento-tile--span-4 { grid-column: span 4; }
.bento-tile--span-5 { grid-column: span 5; }
.bento-tile--span-6 { grid-column: span 6; }
.bento-tile--span-7 { grid-column: span 7; }
.bento-tile--span-8 { grid-column: span 8; }
.bento-tile {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  border-radius: 16px;
}
.bento-tile img,
.bento-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Row 1 */
.bento-tile--brand-mark { grid-column: span 3; }
.bento-tile--brand-visual { grid-column: span 4; }
.bento-tile--laptop { grid-column: span 5; }
/* Row 2 */
.bento-tile--phone-cards { grid-column: span 3; }
.bento-tile--swatches-colour { grid-column: span 2; }
.bento-tile--swatches-grey { grid-column: span 2; }
.bento-tile--phone-dial { grid-column: span 5; }
/* Swatch tiles */
.bento-tile--swatches-colour,
.bento-tile--swatches-grey {
  overflow: hidden;
}
.bento-tile--swatches-colour img,
.bento-tile--swatches-grey img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  padding: 0;
  transform: none;
  min-height: 0;
}
/* Phone mockup: scale up to fill tile */
.bento-tile--phone-cards img {
  transform: scale(1.25);
  transform-origin: center;
  object-position: 70% center;
}
/* Brand mark: smaller, left-aligned */
.bento-tile--brand-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8% 0 8% 8%;
  background-color: var(--dimply-red);
}
.bento-tile--brand-mark img {
  width: auto;
  height: auto;
  max-width: 55%;
  max-height: 70%;
  object-fit: contain;
  transform: scale(0.45);
  transform-origin: center;
}
.bento-tile--swatches-colour,
.bento-tile--swatches-grey {
  background-color: #363332;
}
/* Mastercard — bento logo tile */
.bento-tile--mc-logo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12%;
  background-color: #141413;
}
.bento-tile--mc-logo img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.mc-logo--top {
  max-width: 65%;
  max-height: 40%;
}
.mc-logo--bottom {
  max-width: 30%;
  max-height: 25%;
}
/* Mastercard — spacing tile right-aligned */
.bento-tile--mc-spacing img {
  object-position: left center;
}
/* Mobile: 1 column */
@media (max-width: 600px) {
  .bento-tile {
    grid-column: span 12 !important;
    height: 280px;
  }
}
/* Project full pages */
.project-full-pages {
  padding: 0;
}
.full-pages-housing {
  background: #2a2a2c;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  gap: 24px;
}
.full-pages-housing .full-page {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.project-full-pages .browser-frame {
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 1200px) {
.full-pages-housing {
    padding: 32px;
  }
}
@media (max-width: 768px) {
.full-pages-housing {
    padding: 16px;
    flex-direction: column;
    gap: 16px;
  }
}
/* Project marquee */
.project-marquee {
  padding: 0;
}
.marquee {
  width: 100%;
  background-color: #75153A;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  border-radius: 16px;
}
.marquee__row {
  width: 100%;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
/* Top row: scrolls right-to-left */
.marquee__row--ltr .marquee__track {
  animation: marquee-ltr 90s linear infinite;
}
@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Bottom row: scrolls left-to-right */
.marquee__row--rtl .marquee__track {
  animation: marquee-rtl 90s linear infinite;
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
/* Variable-width tiles, fixed height */
.marquee__tile {
  flex-shrink: 0;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
.marquee__tile img {
  width: auto;
  height: 100%;
  display: block;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__row--ltr .marquee__track,
  .marquee__row--rtl .marquee__track {
    animation: none;
  }
}
/* Mobile marquee */
@media (max-width: 600px) {
  .marquee__tile {
    height: 240px;
  }
  .marquee {
    padding: 40px 0;
    gap: 16px;
  }
}
/* Project micro details */
.project-micro {
  padding: 0;
}
.micro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.micro-tile {
  width: 100%;
  aspect-ratio: 1760 / 1558;
  overflow: hidden;
  border-radius: 16px;
  background-color: #2a2a2c;
  position: relative;
}
/* Inner wrapper: positioned absolutely, defines the visible box */
.micro-tile--clean .micro-tile__inner {
  position: absolute;
  top: 80px;
  left: 80px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 8px 0 0 0;
  isolation: isolate;
}
@media (max-width: 768px) {
.micro-grid {
    grid-template-columns: 1fr;
  }
.micro-tile--clean .micro-tile__inner {
    top: 40px;
    left: 40px;
  }
}
/* Project mockups */
/* Project video */
.project-video {
  padding: 0;
}
.project-video video {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.mockups {
  padding: 0;
}
.mockups .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mockup {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.mockup img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
.mockups .container {
    gap: 16px;
  }
.mockup {
    border-radius: 8px;
  }
}
.mockup-pair {
  display: flex;
  gap: 32px;
}
.mockup-pair .mockup {
  flex: 1;
  aspect-ratio: 4 / 3;
}
.mockup-pair .mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
.mockup-pair {
    flex-direction: column;
    gap: 16px;
  }
.mockup-pair .mockup {
    aspect-ratio: auto;
  }
.mockup-pair .mockup img {
    height: auto;
  }
}
/* Project close */
.close {
  padding: 0;
}
/* About */
.about {
  padding: 140px 0 120px;
}
.about-title {
  font-size: clamp(40px, 5vw, 65px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 66px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
.about-label {
  grid-column: 1 / 3;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding-top: 6px;
}
.about-content {
  grid-column: 3 / 7;
  grid-row: 1;
}
.about-content p {
  color: #9a9a9a;
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 24px;
}
.about-content p:last-child {
  margin-bottom: 0;
}
.about-image {
  grid-column: 8 / 13;
  grid-row: 1;
  margin-right: -32px;
}
.about-photo {
  width: 100%;
  border-radius: 20px 0 0 20px;
  object-fit: cover;
  display: block;
}
.email-link {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.email-link:hover {
  color: var(--color-accent);
}
@media (max-width: 768px) {
.about-title {
    font-size: clamp(32px, 8vw, 48px);
  }
.about-grid {
    display: flex;
    flex-direction: column;
  }
.about-label {
    padding-top: 0;
    margin-bottom: 16px;
  }
.about-content {
    margin-bottom: 40px;
  }
.about-image {
    margin-right: 0;
  }
.about-photo {
    max-width: 400px;
    border-radius: 20px;
  }
}
/* Contact */
.contact {
  padding: 140px 0 clamp(64px, 8vw, 100px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.5fr);
  column-gap: 48px;
  align-items: start;
}
.contact-title {
  font-size: clamp(40px, 5vw, 65px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #9a9a9a;
}
.contact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}
.contact-right {
  padding-top: calc(clamp(40px, 5vw, 65px) * 1.05 + 72px);
}
.contact-framing {
  font-size: 18px;
  line-height: 1.65;
  color: #9a9a9a;
  margin: 0 0 32px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 0.5px solid rgba(240, 237, 232, 0.1);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 0.2s ease;
}
.contact-row:first-child {
  border-top: 0.5px solid rgba(240, 237, 232, 0.1);
}
.contact-row:hover {
  color: var(--color-accent);
}
.contact-row:hover .contact-arrow {
  transform: translateX(4px);
}
.contact-row:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.contact-method {
  font-size: 18px;
}
.contact-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}
@media (max-width: 768px) {
.contact-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
.contact-right {
    padding-top: 0;
  }
}
/* ============================================
   Reveal footer — fixed behind .site
   ============================================ */

.site {
  background: var(--color-base);
  position: relative;
  z-index: 2;
  margin-bottom: var(--footer-h);
}
/* CONTACT BLOCK — divider spans full container width */
.reveal-footer__contact {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* END BLOCK — 12-col grid, wordmark + meta share it */
.reveal-footer__end {
  margin-top: 48px;
  padding-inline: 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  width: 100%;
}
/* Wordmark — two separate words in the grid, bleeding off opposite edges.
   Both are aria-hidden; a visually-hidden span carries the name for AT. */
.reveal-footer__wordmark {
  margin: 0;
  font-family: 'Saans', sans-serif;
  font-weight: 400;
  font-size: clamp(120px, 16vw, 207px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--color-base);
  pointer-events: none;
  position: static;
}
/* "Aidan" sits top-right, bleeding off the right edge */
.reveal-footer__wordmark--top {
  grid-column: 8 / -1;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  transform: translate(min(8vw, 80px), -0.18em);
}
/* "Doré" sits bottom-left, bleeding off the left edge */
.reveal-footer__wordmark--bottom {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: start;
  transform: translate(min(-8vw, -80px), -0.18em);
}
/* MOBILE */
@media (max-width: 720px) {
  .reveal-footer__contact-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 24px;
    gap: 32px;
  }
  .reveal-footer__heading {
    font-size: 32px;
  }
  .reveal-footer__actions {
    flex-wrap: wrap;
  }
  .reveal-footer__end {
    padding-inline: 24px;
  }
  .reveal-footer__wordmark {
    font-size: clamp(96px, 26vw, 160px);
  }
  .reveal-footer__wordmark--top {
    transform: translate(8vw, -0.18em);
  }
  .reveal-footer__wordmark--bottom {
    transform: translate(-8vw, -0.18em);
  }
}
/* ============================================
   Sherry FitzGerald — bento logo tile
   ============================================ */

.bento-tile--sf-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0A2540;
}
.bento-tile--sf-logo img {
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}
/* SF housing colour overrides — soft blue */
.full-pages-housing--sherry {
  background: #E1EDFA;
}
.micro-tile--sherry {
  background-color: #E1EDFA;
}
/* ============================================
   SF marquee — pinned cover + scrolling slides
   ============================================ */

.marquee--sf {
  background-color: transparent;
  padding: 0;
  overflow: visible;
  border-radius: 0;
}
.marquee--sf .marquee-housing {
  background: #0A2540;
  border-radius: 16px;
  padding: 32px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.marquee-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 320px;
}
/* Pinned cover slide */
.marquee-cover {
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #0A2540;
}
.marquee-cover img {
  display: block;
  height: 100%;
  width: auto;
}
/* Shadow on cover inner edge — slides pass "under" */
.marquee-row--cover-left .marquee-cover {
  margin-left: 24px;
  margin-right: -12px;
  border-radius: 16px 16px 16px 16px;
  box-shadow: 12px 0 20px rgba(0, 0, 0, 0.3);
}
.marquee-row--cover-right .marquee-cover {
  margin-right: 24px;
  margin-left: -12px;
  border-radius: 16px 16px 16px 16px;
  box-shadow: -12px 0 20px rgba(0, 0, 0, 0.3);
}
/* Scrolling track */
.marquee-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  min-width: 0;
  height: 100%;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 16px;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.marquee-track img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
.marquee-track {
    transform: none !important;
  }
}
@media (max-width: 768px) {
.marquee--sf .marquee-housing {
    padding: 16px 0;
  }
.marquee-row {
    height: 240px;
  }
.marquee-track {
    gap: 12px;
  }
.marquee-row--cover-left .marquee-cover {
    margin-left: 16px;
    margin-right: -8px;
  }
.marquee-row--cover-right .marquee-cover {
    margin-right: 16px;
    margin-left: -8px;
  }
}
/* Mini — bento logo tile */
.bento-tile--mini-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}
.bento-tile--mini-logo img {
  width: auto;
  height: auto;
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
}
/* Mini — colour picker tile */
.bento-tile--mini-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 12%;
}
.bento-tile--mini-picker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Mastercard marquee overrides */
.marquee--mc { background-color: #FF671B; }
/* Mini marquee overrides */
.marquee--mini .marquee-housing { background: #111111; }
.marquee--mini .marquee-cover { background: #111111; }
.marquee--mini .marquee-row--cover-left .marquee-cover { box-shadow: 12px 0 20px rgba(0, 0, 0, 0.4); }
/* ============================================
   Workings module — full-width flat-lay image
   ============================================ */

.workings {
  padding: 0;
}
.workings-image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.workings-image img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
.workings-image {
    border-radius: 8px;
  }
}
/* ============================================
   Mobile collection — single static image
   ============================================ */

.mobile-collection {
  padding: 0;
}
.mobile-collection-image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.mobile-collection-image img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
.mobile-collection-image {
    border-radius: 8px;
  }
}
/* ============================================
   Homepage — Hero
   ============================================ */

.hero {
  padding: 180px 0 0;
}
/* ============================================
   Homepage — Featured Projects
   ============================================ */

.featured {
  margin-top: 120px !important;
}
/* Hovered: grow ~6% */
.featured-row:hover .featured-tile:hover.featured-tile--8 { flex: 8.48; }
/* Non-hovered: shrink ~6% */
.featured-row:hover .featured-tile:not(:hover).featured-tile--8 { flex: 7.52; }
/* ============================================
   Homepage — Secondary Projects
   ============================================ */

.secondary {
  margin-top: 120px !important;
  padding-bottom: clamp(64px, 8vw, 120px);
}
/* Hovered: grow ~6% */
.secondary-row:hover .secondary-tile:hover.secondary-tile--2 { flex: 2.12; }
/* Non-hovered: shrink ~6% */
.secondary-row:hover .secondary-tile:not(:hover).secondary-tile--2 { flex: 1.88; }
/* ============================================
   Secondary project pages
   ============================================ */

.secondary-project {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
/* ============================================
   Project nav — unified prev / next footer
   ============================================ */

.project-nav {
  background: var(--color-base);
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
}
.project-nav__inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}
.project-nav__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
}
.project-nav__heading {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 36px;
  line-height: 0.91;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0;
}
.project-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(240, 237, 232, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.project-nav__index:hover {
  color: var(--color-text-primary);
}
.project-nav__grid {
  display: flex;
  gap: 16px;
}
.project-nav__col {
  flex: 1;
  min-width: 0;
  transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-nav__grid:hover .project-nav__col:hover {
  flex: 1.06;
}
.project-nav__grid:hover .project-nav__col:not(:hover) {
  flex: 0.94;
}
.project-nav__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: var(--color-text-primary);
}
.project-nav__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #2a2a2a;
}
.project-nav__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-nav__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.project-nav__arrow--prev {
  left: 36px;
}
.project-nav__arrow--next {
  right: 36px;
}
.project-nav__card:hover .project-nav__arrow {
  color: rgba(255, 255, 255, 0.8);
}
.project-nav__meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.project-nav__title {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--color-text-primary);
}
.project-nav__subtitle {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  color: #9a9a9a;
}
@media (max-width: 720px) {
.project-nav {
    padding: 48px 0 64px;
  }
.project-nav__inner {
    padding: 0 24px;
  }
.project-nav__grid {
    flex-direction: column;
  }
.project-nav__col {
    flex: none !important;
  }
}
/* ============================================
   Context block — text intro before a section
   ============================================ */

.context-block {
  padding: 0;
  margin-top: calc(var(--section-gap) * 2);
}
.context-block__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 160px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.context-block__label {
  grid-column: 1 / span 6;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}
.context-block__body {
  grid-column: 1 / span 6;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin: 0;
}
@media (max-width: 1200px) {
.context-block__inner { padding: 0 80px; }
}
@media (max-width: 768px) {
.context-block__inner { padding: 0 32px; }
.context-block__label,
  .context-block__body { grid-column: 1 / -1; }
.context-block__body { font-size: 18px; }
}

/* ════ DORÉ DESIGN BRIDGE — remap the imported system to our tokens ════ */
/* IMPORTANT: declared on body (not :root) so var(--paper) etc resolve AFTER
   body.theme-dark has flipped the tokens. On :root they bake in light values. */
body {
  --color-base: var(--paper);
  --color-surface: var(--surface);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--text-secondary);
  --color-accent: var(--mid);
  --ink-muted: var(--mid);
  --dimply-red: #75153A;
  --section-gap: 32px;
  /* the imported system's font tokens — without these every imported mono
     label silently falls back to the sans face */
  --font-mono: var(--mono);
  --font-sans: var(--font);
}
main.site { margin-bottom: 0 !important; background: var(--paper); }
/* Clip marquee/full-bleed overflow WITHOUT creating a scroll container —
   overflow-x: hidden on body silently kills position: sticky (the nav). */
html, body { overflow-x: clip; }
main.site video { max-width: 100%; height: auto; display: block; }
/* bento/keep-going videos must cover their tile (the rule above would letterbox them) */
main.site .bento-tile video { width: 100%; height: 100%; object-fit: cover; }

/* Rules dropped by the original import filter */
.micro-tile--clean .micro-tile__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom left;
  display: block;
}
.close-video { margin: 0; overflow: hidden; background: var(--color-surface); }
.close-video video { display: block; width: 100%; height: auto; }

/* Angular sweep: imported tiles go sharp */
.bento-tile, .micro-tile, .micro-tile__inner, .browser-frame, .mockup, .mockup img,
.full-page, .marquee-track img, .workings-image img, .context-block,
.project-hero img, .project-nav__media, .mobile-collection-image img,
.bento-tile img, .micro-tile img,
.full-pages-housing, .marquee, .marquee--sf .marquee-housing, .marquee--mini .marquee-housing,
.marquee-row--cover-left .marquee-cover, .marquee-row--cover-right .marquee-cover,
.marquee-cover, .marquee__tile, .workings-image, .mobile-collection-image,
.close-video, .project-video video, .browser-frame__url,
.micro-tile--clean .micro-tile__inner { border-radius: 0 !important; }
:focus-visible { border-radius: 0; }

/* Containers lock to the page grid: same inset as every other section */
.container { max-width: none; padding: 0 var(--space-m); }
.mockups .container { gap: var(--space-m); }
.mockup-pair { gap: var(--space-m); }
.micro-grid { gap: var(--space-m); }
.project-nav__inner { max-width: none; padding: 0; }
.project-nav__header { padding: 0 var(--space-m); }
.project-nav__meta { padding: 0 var(--space-m); }
.project-nav__grid { gap: 0; } /* prev/next tiles meet flush at the centre line */
/* Closing full-width mockup breaks out of the container to the viewport edges */
.mockup--full { margin-left: calc(-1 * var(--space-m)); margin-right: calc(-1 * var(--space-m)); }
/* Context blocks lock to the page grid: mono eyebrow col 1, body cols 2-3 */
.context-block__inner {
  max-width: none;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.context-block__label {
  grid-column: 1;
  padding: 0 var(--space-m);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0;
}
.context-block__body {
  grid-column: 2 / span 2;
  padding: 0 var(--space-m);
}
@media (max-width: 767px) {
  .context-block__label { margin-bottom: 12px; }
}

/* Keep going — grid-locked tiles per design: 4:3 media, name left / type on the tile's centre line */
.project-nav__heading {
  font-size: var(--text-h2-work);
  letter-spacing: -0.02em;
}
.project-nav__media { aspect-ratio: 4 / 3; }
.project-nav__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
  align-items: baseline;
}

/* ════ WORK HERO (more-work + case pages) ════
   Title cols 1–2 · intro col 3 (bottom) · mono meta col 1 (bottom) — per Figma "Work - More work". */
.mw-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  min-height: clamp(22rem, 38vw, 34.5rem);
  padding-top: var(--space-l);
}
.mw-hero__title {
  grid-column: 1 / span 2;
  grid-row: 1;
  padding: 0 var(--space-m);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.037em;
  color: var(--ink);
}
.mw-hero__intro {
  grid-column: 3 / span 1;
  grid-row: 2;
  align-self: end;
  padding: var(--space-xl) var(--space-m) 0;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--text-secondary);
}
.mw-hero__intro a { color: var(--ink); }
.mw-hero__meta {
  grid-column: 1 / span 2;
  grid-row: 2;
  align-self: end;
  padding: var(--space-xl) var(--space-m) 0;
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.7;
}
/* Case-study variant: label/value meta rows in cols 3–4, bottom-aligned like the intro */
.mw-hero__rows {
  grid-column: 3 / span 2;
  grid-row: 2;
  align-self: end;
  padding: var(--space-xl) var(--space-m) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.mw-hero__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.mw-hero__row .mw-label {
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mid);
}
.mw-hero__row .mw-value { font-size: var(--text-base); line-height: 1.5; color: var(--ink); }

@media (max-width: 767px) {
  .mw-hero { display: flex; flex-direction: column; gap: var(--space-l); min-height: auto; }
  .mw-hero__intro, .mw-hero__meta { padding-top: 0; }
}

/* ════ CASE STORY — one text rail in col 1 (situation → diagnosis → outcome
   flowing at a steady rhythm), figures stacked flush in cols 3-4 ════ */
.case-story {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  padding: var(--space-2xl) 0;
}
.case-story__rail {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: 0 var(--space-m);
}
/* Figures run flush from the centre line to the right edge — no inset, no chrome */
.case-story__figs {
  grid-column: 3 / span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.case-story__figs figure { margin: 0; }
.case-story__figs img { width: 100%; height: auto; display: block; }
.case-story h2 {
  font-size: var(--text-h2-work);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-l);
}
.case-story p {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--text-secondary);
}
.case-story p + p { margin-top: var(--space-s); }
@media (max-width: 767px) {
  .case-story { display: flex; flex-direction: column; gap: var(--space-l); }
  .case-story h2 { margin-bottom: var(--space-m); }
}

/* Lesson — quiet grid block */
.case-lesson {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-2xl) 0;
  align-items: start;
}
.case-lesson__label { grid-column: 1; padding: 0 var(--space-m); }
.case-lesson__title {
  grid-column: 2 / span 2;
  padding: 0 var(--space-m);
  font-size: var(--text-h3-lg);
  font-weight: 400;
  line-height: 1.238;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.case-lesson__title .blue { color: var(--blue); }
@media (max-width: 767px) {
  .case-story, .case-lesson { display: flex; flex-direction: column; gap: var(--space-l); }
  .case-story__block, .case-story__figure { max-width: none; }
}

/* ════ 4-COL BENTO — tiles live in exact quarter cells of the page grid ════
   Full-bleed grid, each tile inset var(--space-m) inside its cell, so tile
   boundaries centre on the visible grid lines (same system as work.html). */
.project-bento .container { padding: 0; } /* bento manages its own inset */
/* Outer tracks give up half the inset each side so every internal tile
   boundary lands exactly on a page grid line (25% / 50% / 75%). */
.bento-grid--4 {
  display: grid;
  grid-template-columns:
    calc(25% - var(--space-m) / 2)
    calc(25% + var(--space-m) / 2)
    calc(25% + var(--space-m) / 2)
    calc(25% - var(--space-m) / 2);
  grid-auto-rows: clamp(16rem, 30vw, 27rem);
  gap: 0; /* tiles sit flush; the page grid lines do the separating */
  padding: 0 var(--space-m);
}
.b4-1 { grid-column: span 1 !important; }
.b4-2 { grid-column: span 2 !important; }

.stats-bento--4 {
  display: grid;
  grid-template-columns:
    calc(25% - var(--space-m) / 2)
    calc(25% + var(--space-m) / 2)
    calc(25% + var(--space-m) / 2)
    calc(25% - var(--space-m) / 2);
  gap: 0;
  padding: 0 var(--space-m);
  margin-top: 16px;
}

/* Wide stat tile: mono label left column, content right column */
.bento-tile--stat.b4-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(2 * var(--space-m));
  align-content: start;
  justify-content: stretch;
}
.bento-tile--stat.b4-2 > .bento-stat-label { grid-column: 1; grid-row: 1; }
.bento-tile--stat.b4-2 > :not(.bento-stat-label) { grid-column: 2; grid-row: 1; }

@media (max-width: 767px) {
  .bento-grid--4 { display: flex; flex-direction: column; gap: var(--space-m); }
  .bento-grid--4 .bento-tile { height: 280px; }
  .stats-bento--4 { display: flex; flex-direction: column; gap: var(--space-m); margin-top: var(--space-m); }
  .bento-tile--stat.b4-2 { display: flex; flex-direction: column; }
}

/* ════ BENTO STAT TILES — the case-study key boxes, folded into the bento ════ */
.bento-tile--stat {
  min-height: clamp(14rem, 10rem + 10vw, 19rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-l);
  padding: var(--space-l);
  background-color: var(--color-surface);
}
.bento-stat-label {
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mid);
}
.bento-stat-num { font-size: var(--text-h2-work); font-weight: 400; line-height: 1; color: var(--ink); }
.bento-stat-desc { font-size: var(--text-base); line-height: 1.5; color: var(--text-secondary); }
.bento-stat-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.bento-stat-list li { font-size: var(--text-base); line-height: 1.5; color: var(--ink); }
.bento-stat-content { display: flex; flex-direction: column; gap: 12px; }

