/* ===== Block 1 (font-face) ===== */
@font-face {
  font-family: 'UfficioDisplay';
  src: url('./fonts/UfficioDisplay-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FT Calhern';
  src: url('./fonts/ft-calhern/FTCalhern-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Berkeley Mono';
  src: url('/fonts/BerkeleyMono-Regular.woff2') format('woff2'),
       url('/fonts/BerkeleyMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Block 2 (main styles) ===== */
* { box-sizing: border-box; margin: 0; padding: 0; font-feature-settings: 'calt' 0, 'liga' 0, 'dlig' 0, 'ss01' 0, 'ss02' 0, 'ss03' 0, 'ss04' 0, 'ss05' 0, 'ss06' 0, 'ss07' 0, 'ss08' 0; font-variant-ligatures: none; }

body {
  background: #e8f4e8;
  min-height: 100vh;
  font-family: 'UfficioDisplay', sans-serif;
  padding: 28px 36px 80px;
  transition: background 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── HOME ── */
#home { display: block; }

.home-status {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
}
.nav-list { list-style: none; margin-top: 60px; }

.nav-item {
  padding: 4px 0;
}
.nav-item:hover .nav-label { transform: translateX(6px); }

.nav-label {
  font-weight: 900;
  font-size: clamp(48px, 9.5vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #ff2d78;
  display: block;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.nav-label.name { opacity: 0.35; cursor: pointer; }
.nav-label:not(.name) { opacity: 0.92; cursor: pointer; }
.nav-list a.nav-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ── NOTES PAGE ── */
.notes-back {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 60px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.notes-back:hover { transform: translateX(6px); }

/* ── PAGE TRANSITION ── */
.page-wrap {
  animation: none;
}
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: fadeInPage 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── OKOS CASE STUDY (locked: bone white + FT Calhern, single type style) ── */
.case-study {
  background: #FAF8F3 !important;
  min-height: 100vh;
  margin: -28px -36px -80px;
  padding: 0 0 80px;
}

/* Both case studies use pure white — scoped via id selectors (1,0,0)
   so they beat the .case-study (0,1,0) bone-white default. */
#okos-case,
#beezutopia-case { background: #FFFFFF !important; }

.case-study,
.case-study * {
  font-family: 'FT Calhern', 'Helvetica', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 32px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #1a1a1a !important;
}

.case-study .notes-back {
  position: absolute;
  top: 28px;
  left: 36px;
  margin: 0;
}
.case-study .notes-back svg { width: 52px; height: 52px; }

/* ── BIO ── */
#bio {
  min-height: 100vh;
  margin: -28px -36px -80px;
  padding: 28px 36px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.bio-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5rem;
  padding: 80px 0;
  width: 100%;
}

.bio-text {
  font-weight: 900;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: left;
  max-width: 1100px;
  color: var(--scheme-fg, #5C1A1F);
  pointer-events: auto;
}

.bio-contact {
  font-family: 'Berkeley Mono', monospace;
  font-size: clamp(14px, 1.8vw, 22px);
  line-height: 1.5;
  text-align: center;
  color: #aaaaaa;
  letter-spacing: 0;
  pointer-events: auto;
}

.bio-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── COVER GRID ── */
.cover-grid {
  position: relative;
  margin-top: 60px;
  height: 520px;
  width: 100%;
}

.cover-item {
  position: absolute;
  overflow: hidden;
}

.cover-item:nth-child(1) {
  width: 52%;
  top: 0;
  left: 0;
  z-index: 2;
}

.cover-item:nth-child(2) {
  width: 44%;
  top: 120px;
  right: 0;
  z-index: 1;
}

.cover-img {
  width: 100%;
  display: block;
  transition: opacity 0.3s;
}

.cover-item:hover .cover-img {
  opacity: 0.5;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.cover-item:hover .cover-overlay {
  opacity: 1;
}

.cover-play-btn {
  font-family: 'Berkeley Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 10px 20px;
  background: transparent;
}

/* ── RADIO + SHOP LABELS ── */
.radio-title-label {
  font-family: 'UfficioDisplay', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(28px, 4vw, 52px) !important;
  letter-spacing: -0.02em !important;
}


/* ── CONTACT ── */
/* ── CONTACT PAGE ── */

.contact-status {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-top: 60px;
  margin-bottom: 0;
}

.contact-heading-wrap {
  margin-top: 4px;
  margin-bottom: 40px;
}
.contact-heading-wrap .nav-label {
  font-size: clamp(48px, 9.5vw, 108px) !important;
  font-weight: 900 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.02em !important;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 600px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
}

.contact-input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  -webkit-box-shadow: 0 0 0px 1000px #e8f4e8 inset;
  box-shadow: none;
  border: 1.5px solid var(--scheme-fg, #5C1A1F);
  border-radius: 0;
  outline: none;
  font-family: 'Berkeley Mono', monospace;
  font-size: 14px;
  color: var(--scheme-fg, #5C1A1F);
  caret-color: var(--scheme-fg, #5C1A1F);
  width: 100%;
  padding: 12px 14px;
  line-height: 1.5;
}

.contact-input::placeholder {
  color: color-mix(in srgb, var(--scheme-fg, #5C1A1F) 35%, transparent);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-send {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid var(--scheme-fg, #5C1A1F);
  border-radius: 0;
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--scheme-fg, #5C1A1F);
  padding: 10px 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.contact-send:hover { opacity: 0.65; }

.contact-fs-error {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  color: var(--scheme-fg, #5C1A1F);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 4px;
}

.contact-fallback {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #aaaaaa;
  margin-top: 48px;
}

.contact-fallback-link {
  color: var(--scheme-fg, #5C1A1F);
  text-decoration: none;
}
.contact-fallback-link:hover { text-decoration: underline; }

/* ── PERSISTENT PLAYER ── */
.player {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 500;
  border: 1px solid rgba(255,45,120,0.5);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: transparent;
}

.player-track {
  font-family: 'Berkeley Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,45,120,0.7);
  white-space: nowrap;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-btn {
  background: none;
  border: none;
  color: rgba(255,45,120,0.7);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.player-btn:hover { color: #ff2d78; }

/* ── RADIO ── */
.radio-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.radio-title {
  font-family: 'UfficioDisplay', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ff2d78;
  white-space: nowrap;
  opacity: 1 !important;
}

.radio-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,45,120,0.5);
  background: transparent;
  color: #ff2d78;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  align-self: flex-end;
  margin-bottom: 8px;
}

.radio-play:hover {
  border-color: #ffffff;
  background: rgba(240,239,234,0.08);
  transform: scale(1.06);
}

.radio-meta {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,45,120,0.35);
}

/* ── JUOSTA STAMP ── */
.juosta-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#juosta path, #juosta polygon { fill: currentColor; }

.juosta-stamp {
  position: relative;
  display: block;
  line-height: 0;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}
.juosta-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: crisp-edges;
  shape-rendering: crispEdges;
}
.juosta-stamp canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 3 + 4. okos in-section closing stamps + credits stamp — monochrome ink */
.case-study .juosta-stamp { color: #1a1a1a; }

.okos-stamp {
  width: 28px;
  height: 28px;
  margin: 60px 10% 60px;
}
.okos-stamp.right { margin-left: auto; margin-right: 10%; }
.okos-stamp.left  { margin-left: 10%;  margin-right: auto; }

.okos-credits-stamp {
  width: 80px;
  height: 80px;
  margin: 32px 0 0 auto;
}

/* Reel dot indicators — one per slide, centered below the reel */
.reel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 0;
}
.reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px; /* full-round at 6×6, pill-shape when width expands */
  border: none;
  padding: 0;
  background: #8a8a8a;
  opacity: 0.25;
  transition: opacity 200ms ease, width 200ms ease;
  cursor: pointer;
  flex-shrink: 0;
}
.reel-dot.active {
  width: 18px;
  opacity: 0.55;
}

/* Canvas variants — base .okos-canvas is centered row flex; variants override */
.okos-canvas--stack {
  flex-direction: column;
  gap: 32px;
}
.okos-canvas--colors {
  gap: 24px;
}
.okos-canvas--type {
  flex-direction: column;
  gap: 64px;
}

/* Slide 3 — Logo lockups */
.okos-logo--lockup {
  width: 30%;
  height: auto;
  max-height: 35%;
  object-fit: contain;
}

/* Slide 4 — Color palette */
.okos-color-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 18%;
}
.okos-color-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #D0D0D0;
}
.case-study .okos-color-label {
  font-family: 'Berkeley Mono', monospace !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  color: #1A1A1A !important;
  text-transform: none !important;
}

/* Slide 5 — Typography specimens. Defeat .case-study font lock with scoped !important. */
.okos-type-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.case-study .okos-type-aa {
  display: block !important;
  font-size: 120px !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: #1C2431 !important;
}
.case-study .okos-type-aa--sora {
  font-family: system-ui, sans-serif !important;
  font-weight: 600 !important;
}
.case-study .okos-type-aa--jakarta {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-weight: 500 !important;
}
.case-study .okos-type-label {
  font-family: 'Berkeley Mono', monospace !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  color: #1A1A1A !important;
  text-transform: none !important;
}

/* okos-case body type — overrides the .case-study 32px font lock with higher specificity */
#okos-case .okos-section,
#okos-case .okos-credits,
#beezutopia-case .okos-section,
#beezutopia-case .okos-credits {
  max-width: 620px;
  margin-left: 72px; /* prose column inset from viewport edge — reel stays full-bleed */
}
#okos-case .okos-section,
#beezutopia-case .okos-section { margin-top: 96px; }
#okos-case .okos-credits,
#beezutopia-case .okos-credits { margin-top: 96px; }

/* Closing stamp — enlarged & right-aligned to the 720px prose column.
   `margin-left: auto` resolves against .okos-credits' 720px max-width box,
   so the stamp's right edge lands exactly where a full-width paragraph would end. */
#okos-case .okos-credits-stamp {
  width: 120px;
  height: 120px;
  margin: 96px 0 0 auto;
}

#okos-case .okos-section p,
#okos-case .okos-credits p,
#beezutopia-case .okos-section p,
#beezutopia-case .okos-credits p {
  font-family: 'Berkeley Mono', monospace !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  margin: 0 0 32px;
}
#okos-case .okos-section p:last-child,
#okos-case .okos-credits p:last-child,
#beezutopia-case .okos-section p:last-child,
#beezutopia-case .okos-credits p:last-child {
  margin-bottom: 0;
}

/* ── OKOS LAYOUT ── */
.okos-content {
  padding: 120px 0 0;
}

/* Text column cap. Hero image deliberately exempt. */
.okos-hero,
.okos-section,
.okos-credits,
.okos-heading {
  max-width: 920px;
}

.okos-hero {
  margin: 0 0 60px;
  /* font-size/weight/line-height locked by #okos-case * rule */
}

/* Section heading: identical type spec to body, hierarchy via spacing only */
.okos-heading {
  margin: 120px 0 40px;
}

/* Horizontal scroll reel — full bleed (100vw), flush to viewport left */
.okos-reel {
  display: flex;
  align-items: flex-start; /* don't stretch slides to a common height — keeps each slide at its natural height */
  gap: 32px;
  width: 100vw;
  margin: 0;
  padding-bottom: 4px; /* protect drop-shadow from being clipped by overflow */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.okos-reel::-webkit-scrollbar { display: none; }

/* Clip the reel's 100vw breakout so the page doesn't gain a horizontal scrollbar */
.case-study { overflow-x: hidden; }

/* Each slide: 64vw — leaves ~36vw peek of the next slide on the right.
   Default snap-align is center (slides 2+); the first slide pins to start so
   it sits flush-left on load, revealing the next slide as the visible peek. */
.okos-slide {
  flex: 0 0 64vw;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.18),
              0 8px 24px -8px rgba(0,0,0,0.08);
}
.okos-slide:first-child { scroll-snap-align: start; }

/* Slide body — fixed aspect from the hero image so all slides line up */
.okos-slide-body {
  width: 100%;
  flex-shrink: 0;
}
.okos-slide-body:not(.okos-canvas) > img {
  display: block;
  width: 100%;
  height: auto;
}
/* Browser slides: lock to tallest screenshot ratio so all 4 are the same height */
.okos-slide-body--browser {
  aspect-ratio: 2986 / 2122;
  background: #f3f8fc;
  overflow: hidden;
}

/* Browser chrome (existing — unchanged) */
.okos-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: #ebe7df;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.okos-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9c4b8;
  display: inline-block;
}

/* Figma chrome variant — same height as browser chrome so slide outer dimensions match exactly */
.okos-chrome--figma {
  height: 26px;
  padding: 0 12px;
  gap: 6px;
  background: #F5F5F5;
}
.okos-frame-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}
/* Defeat the page-wide #okos-case font lockdown for this single label */
.case-study .okos-frame-label {
  font-family: 'Berkeley Mono', monospace !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #1A1A1A !important;
}

/* Figma canvas — gray body with subtle dot grid; reads as a design-tool surface */
.okos-canvas {
  aspect-ratio: 2978 / 2042;
  background-color: #E5E5E5;
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1.5px);
  background-size: 16px 16px;
  background-position: 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}
.okos-logo {
  width: 33%;
  height: auto;
  display: block;
  /* PNG has a baked white background that we keep — reads as the logo sitting
     in a white frame on the gray canvas, like a Figma artifact. */
}

.okos-section {
  display: block;
  margin: 0 0 60px;
}
.okos-section p { margin: 0 0 32px; }
.okos-section p:last-child { margin-bottom: 0; }

.okos-figure {
  margin: 60px 0;
}
.okos-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #ebe7df;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.12);
}
.okos-figure figcaption {
  margin-top: 24px;
}

.okos-credits {
  margin-top: 40px;
}
.okos-credits p { margin: 0 0 8px; }

/* ========================================================================
   LIGHTBOX
   ======================================================================== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open {
  display: flex;
}
#lightbox.lightbox--mint {
  background: rgba(232, 240, 232, 0.95);
}

#lightboxClose {
  display: none;
}

@media (max-width: 768px) {
  #lightbox.lightbox--mint #lightboxClose {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--scheme-fg, #5C1A1F);
    cursor: pointer;
    padding: 0;
    z-index: 1;
  }
}
#lightboxImg {
  max-width: 72vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}
@media (max-width: 768px) {
  #lightboxImg {
    max-width: 85vw;
    max-height: 80vh;
  }
}

/* ========================================================================
   OKOS CASE ARTICLE
   ======================================================================== */

#okos-case {
  background: #ffffff;
  min-height: 100vh;
  margin: -28px -36px -80px;
  padding: 28px 0 80px;
}
#okos-case .notes-back {
  display: block;
  margin-left: 36px;
  color: #1a1a1a !important;
  cursor: pointer;
}
#okos-case .notes-back svg { width: 52px; height: 52px; }

#okos-case,
#okos-case * {
  font-family: 'Berkeley Mono', monospace !important;
  box-sizing: border-box;
}
#okos-case img,
#photo img {
  cursor: zoom-in;
}

.oa-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem;
}

/* Meta line */
.oa-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin: 0 0 2.5rem;
}

/* Client label */
.oa-client {
  font-size: 13px;
  color: #aaaaaa;
  margin: 0 0 0.5rem;
  letter-spacing: 0;
}

/* Hero heading */
.oa-heading {
  font-size: 28px;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

/* Tag row */
.oa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2rem;
}
.oa-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888888;
  border: 1px solid #cccccc;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Rules */
.oa-rule {
  border: none;
  border-top: 0.5px solid #e0e0e0;
  margin: 2.5rem 0;
}

/* Section labels */
.oa-section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin: 0 0 1.25rem;
}

/* Body text */
.oa-body {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.9;
  margin: 0 0 1.25rem;
  letter-spacing: 0;
}

/* Before / After grid */
.oa-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.5rem 0 0.6rem;
}

.oa-ba-panel {
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

/* — Before panel (generic template) — */
.oa-ba-panel--before { background: #f2f2f2; }

.oa-mb-header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oa-mb-logo {
  font-size: 7px;
  color: #333;
  letter-spacing: 0.06em;
}
.oa-mb-nav { display: flex; gap: 8px; }
.oa-mb-nav span { font-size: 6.5px; color: #777; }

.oa-mb-hero {
  background: #e5e5e5;
  border-bottom: 1px solid #d0d0d0;
  padding: 14px 10px;
  text-align: center;
}
.oa-mb-title { font-size: 10px; color: #333; margin-bottom: 4px; }
.oa-mb-sub   { font-size: 6.5px; color: #777; line-height: 1.4; margin-bottom: 8px; }
.oa-mb-btn   {
  display: inline-block;
  background: #1a6ec2;
  color: #fff;
  font-size: 6.5px;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}

.oa-mb-cards {
  display: flex;
  gap: 8px;
  padding: 10px;
}
.oa-mb-card {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
}
.oa-mb-icon  { width: 12px; height: 12px; background: #1a6ec2; margin-bottom: 4px; }
.oa-mb-card-t { font-size: 7px; color: #333; margin-bottom: 3px; }
.oa-mb-card-b { font-size: 6px; color: #999; line-height: 1.4; }

/* — After panel (Okos redesign) — */
.oa-ba-panel--after { background: #1C2431; padding: 0; }

.oa-ba-img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.oa-ma-header {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.oa-ma-logo { font-size: 9px; color: #33BBA5; letter-spacing: 0.04em; }
.oa-ma-nav  { display: flex; gap: 7px; align-items: center; }
.oa-ma-nav span { font-size: 6px; color: rgba(255,255,255,0.4); }
.oa-ma-cta  {
  background: #33BBA5 !important;
  color: #1C2431 !important;
  font-size: 6px !important;
  padding: 2px 7px;
  letter-spacing: 0.03em;
}

.oa-ma-hero { padding: 13px 10px 8px; }
.oa-ma-eyebrow {
  font-size: 5.5px;
  color: #33BBA5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.oa-ma-title {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 7px;
}
.oa-ma-sub  { font-size: 6px; color: rgba(255,255,255,0.45); line-height: 1.55; margin-bottom: 9px; }
.oa-ma-btns { display: flex; gap: 6px; }
.oa-ma-btn-p {
  background: #33BBA5;
  color: #1C2431;
  font-size: 6px;
  padding: 3px 8px;
  letter-spacing: 0.03em;
}
.oa-ma-btn-o {
  border: 1px solid #33BBA5;
  color: #33BBA5;
  font-size: 6px;
  padding: 3px 8px;
}
.oa-ma-logos {
  padding: 6px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 12px;
  align-items: center;
}
.oa-ma-logos span { font-size: 5.5px; color: rgba(255,255,255,0.22); letter-spacing: 0.08em; }

/* Captions */
.oa-caption {
  font-size: 11px;
  color: #aaaaaa;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}
.oa-caption--italic { font-style: italic; }

/* Pullquote */
.oa-pullquote {
  border-left: 1.5px solid #cccccc;
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.75;
  font-style: normal;
  letter-spacing: 0;
}

/* Full-width article image */
.oa-full-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 1.5rem 0 0.5rem;
  border: 1px solid #e0e0e0;
}

/* Full-width image placeholder */
.oa-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  font-size: 11px;
  color: #aaaaaa;
  letter-spacing: 0.06em;
}

/* Brand section */
.oa-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.5rem 0 1rem;
}
.oa-brand-panel {
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.oa-brand-panel--light { background: #ffffff; }
.oa-brand-panel--dark  { background: #1C2431; }
.oa-brand-panel img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 180px;
}

.oa-palette {
  display: flex;
  gap: 12px;
  margin: 0 0 1.5rem;
}
.oa-swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oa-swatch-color {
  width: 100%;
  aspect-ratio: 3 / 2;
}
.oa-swatch-label {
  font-size: 10px;
  color: #888888;
  letter-spacing: 0.04em;
}
.oa-swatch-hex {
  font-size: 10px;
  color: #aaaaaa;
  letter-spacing: 0.04em;
}

/* Tool block */
.oa-tool-block {
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.oa-tool-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin: 0 0 0.75rem;
}
.oa-tool-desc {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.9;
  margin: 0;
}
.oa-tool-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  border: 0.5px solid #e0e0e0;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #aaaaaa;
  letter-spacing: 0.06em;
}

.oa-tool-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin-top: 1.25rem;
  border-top: 0.5px solid #e0e0e0;
}

/* Bottom nav */
.oa-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.oa-bottom-nav span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  cursor: pointer;
}
.oa-bottom-nav span:hover { color: #888888; }

/* ========================================================================
   PHOTO PAGE
   ======================================================================== */

#photo {
  min-height: 100vh;
}

.photo-client {
  margin-bottom: 60px;
}

.photo-nav-list {
  margin-top: 20px !important;
  margin-bottom: 0;
}
.photo-nav-list .nav-item:hover .nav-label {
  transform: none;
}

.photo-label--muted {
  opacity: 0.3 !important;
}

.photo-meta {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-top: 8px;
  margin-bottom: 12px;
}

.photo-rule {
  border: none;
  border-top: 0.5px solid #e0e0e0;
  margin: 0 0 4px;
}

/* Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.photo-cell { overflow: hidden; }
.photo-cell--2 { grid-column: span 2; }
.photo-cell--3 { grid-column: span 3; }
.photo-cell--4 { grid-column: span 4; }
.photo-cell--6 { grid-column: span 6; }

.photo-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cell--2 img,
.photo-cell--3 img,
.photo-cell--4 img { aspect-ratio: 4 / 3; }
.photo-cell--6 img  { aspect-ratio: 16 / 9; }

.photo-count {
  font-family: 'Berkeley Mono', monospace;
  font-size: 11px;
  color: #aaaaaa;
  margin-top: 12px;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-cell--2,
  .photo-cell--3,
  .photo-cell--4,
  .photo-cell--6 { grid-column: span 2; }
  .photo-cell--6 img { aspect-ratio: 4 / 3; }
  #photo .nav-label { font-size: 17.5vw; line-height: 1.05; letter-spacing: -0.02em; }
}

/* ========================================================================
   BEEZUTOPIA CASE ARTICLE
   ======================================================================== */

#beezutopia-case {
  background: #ffffff;
  min-height: 100vh;
  margin: -28px -36px -80px;
  padding: 28px 0 80px;
}

#beezutopia-case,
#beezutopia-case * {
  font-family: 'Berkeley Mono', monospace !important;
  box-sizing: border-box;
}

#beezutopia-case img { cursor: zoom-in; }

#beezutopia-case .notes-back {
  display: block;
  margin-left: 36px;
  color: #1a1a1a !important;
  cursor: pointer;
}
#beezutopia-case .notes-back svg { width: 52px; height: 52px; }

/* Before/after flush panel */
.bz-ba-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.5rem 0 0.5rem;
  border: 0.5px solid #e0e0e0;
}
.bz-ba-panel img {
  display: block;
  width: 100% !important;
  height: 600px !important;
  object-fit: cover;
  object-position: top center;
}
.bz-ba-panel img:first-child {
  border-right: 0.5px solid #e0e0e0;
}

/* Full-width site image at 500px */
.bz-full-img {
  height: 500px !important;
  object-fit: cover !important;
  object-position: top center !important;
}

/* ========================================================================
   REMMLO CASE ARTICLE
   ======================================================================== */

#remmlo-case {
  background: #ffffff;
  min-height: 100vh;
  margin: -28px -36px -80px;
  padding: 28px 0 80px;
  position: relative;
}

#remmlo-case,
#remmlo-case * {
  font-family: 'Berkeley Mono', monospace !important;
  box-sizing: border-box;
}

#remmlo-case img { cursor: zoom-in; }

#remmlo-case .notes-back {
  display: block;
  margin-left: 36px;
  color: #1a1a1a !important;
  cursor: pointer;
}
#remmlo-case .notes-back svg { width: 52px; height: 52px; }

/* Full-width image variants */
.oa-full-img--ratio169 {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}
.oa-full-img--fixed {
  height: 600px;
  object-fit: cover;
}

/* Remmlo image grids */
.rc-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.5rem 0 0.5rem;
}
.rc-img-grid + .rc-img-grid {
  margin-top: 12px;
}
.rc-img-grid img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border: 0.5px solid #e0e0e0;
  object-fit: cover;
}
.rc-img-grid--photo  img { aspect-ratio: 4 / 3; }
.rc-img-grid--square img { aspect-ratio: 1 / 1; }
.rc-img-grid--wide   img { aspect-ratio: 16 / 9; }

/* ========================================================================
   MOBILE — typographically maximalist homepage. Scoped to #home only.
   Desktop (>768px) is untouched.
   ======================================================================== */
@media (max-width: 768px) {

  /* Wordmark line break — hidden on desktop, shown on mobile */
  .wm-break { display: block; }

  /* Break out of body's 28/36/80 padding so #home can fill the viewport
     Universal 24px gutters on mobile. */

  /* ── UNIVERSAL 24px side gutter ─────────────────────────────────────── */

  /* Home: break out of body padding, 24px sides */
  #home {
    min-height: 100vh;
    height: auto;
    margin: -28px -36px -80px;
    padding: 56px 24px 80px;
    overflow-y: auto;
  }

  /* Work: same treatment */
  #work {
    min-height: 100vh;
    margin: -28px -36px -80px;
    padding: 24px 24px 80px;
  }

  /* Other inner pages: break out horizontally, 24px sides */
  #contact, #bio, #photo, #radio {
    margin-left: -36px;
    margin-right: -36px;
    padding-left: 24px;
    padding-right: 24px;
  }
  #bio    { margin-top: -28px; padding-top: 24px; }
  #contact, #photo { margin-top: -28px; padding-top: 24px; }

  /* Case studies already break out — just set 24px top */
  #okos-case, #remmlo-case, #beezutopia-case { padding-top: 24px; }

  /* Case study article: 24px sides to match */
  .oa-article { padding-left: 24px !important; padding-right: 24px !important; }

  /* ── LARGE NAV TYPE — scaled to fit 24px gutters ─────────────────────── */
  /* Available width = 100vw - 48px. "rimavičius"/"beezutopia" need ~14vw. */
  #home .nav-label,
  #work .nav-label,
  #photo .nav-label {
    font-size: 17vw;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  #contact .nav-label {
    font-size: 17vw !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
  }

  /* ── BACK ARROWS — no extra offset needed since sections provide 24px ── */
  #work .notes-back,
  #bio .notes-back,
  #contact .notes-back,
  #photo .notes-back { margin-left: 0; }

  #okos-case .notes-back,
  #remmlo-case .notes-back,
  #beezutopia-case .notes-back { margin-left: 24px; }

  /* ── MISC ── */
  #home .nav-list { margin-top: 0; padding: 0; }
  #home .nav-item { padding: 0; }
  #work .nav-list { margin-top: 16px !important; padding: 0; }
  #work .nav-item { padding: 0; }
  .home-status { font-size: 9px; }
  .bio-text-wrap { padding-top: 20px; }
}
