/* v2 canon layer — tokens + the mark. The clone css sits underneath. */
:root {
  --ce-bg: #FFFFFF; --ce-paper: #FAF9F7; --ce-border: #E8E6E1;
  --ce-grey: #5A5A5A; --ce-ink: #2A2A2A; --ce-black: #1A1A1A;
  --ce-red: #CC0000;
}
.ce-mark {
  color: var(--ce-red) !important;
  font-family: larken, Georgia, serif !important;
  font-weight: 300 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
  font-style: normal !important;
}
.ce-tagline {
  font-family: larken, Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  color: var(--ce-ink) !important;
  text-transform: none !important;
}
.ce-tagline em { color: var(--ce-red); font-style: italic; }
hr { border-color: var(--ce-border) !important; }
small .ce-mark { font-size: 16px !important; }  /* canon floor: the mark never below 16px */
/* nav + footer meta: Inter, sentence case, quiet */
.studio h1 a, .contact h1 a { font-family: Inter, sans-serif !important; text-transform: none !important; letter-spacing: 0.02em !important; font-weight: 400 !important; }
#footer small { font-family: Inter, sans-serif; text-transform: none; letter-spacing: 0.02em; }
.ce-nowrap { white-space: nowrap; }
.studio h1 a, .contact h1 a { font-size: 60% !important; }  /* nav 40% down, 2026-07-10 */


/* ---------- v3: nav pass + CE work grid + hover stack ---------- */
body.homepage { outline: none !important; }               /* thin page frame off */

/* header mark 40% smaller than v2 (v2 header mark ~20.7px) */
#home h1 .ce-mark { font-size: 60% !important; }

/* nav text much smaller, two items */
.studio h1 a, .contact h1 a { font-size: 42% !important; letter-spacing: 0.06em !important; }

/* work grid */
.ce-work {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 5vw, 56px) 0 0;
}
.work-card { display: block; text-decoration: none; color: var(--ce-ink); }
.work-card .stack {
  position: relative; aspect-ratio: 4 / 3; overflow: visible;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.work-card .s {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--ce-paper);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s, opacity .4s;
  will-change: transform;
}
.work-card .hero { z-index: 5; box-shadow: 0 1px 2px rgba(0,0,0,.10); }
.work-card .s:not(.hero) { z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* fan the stack out from behind the hero on hover */
.work-card:hover { z-index: 20; position: relative; }
/* removed: leftover CSS hover-transforms on tiles — the JS scatter owns all tile motion now (was overriding inline rotation on hover / iOS sticky-hover) */

.work-card .cap {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 14px; position: relative; z-index: 1;
}
.work-card .cap .brand {
  font-family: larken, Georgia, serif; font-weight: 400; font-size: 17px;
  letter-spacing: -0.01em; color: var(--ce-ink);
}
.work-card .cap .role {
  font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0.02em;
  color: var(--ce-grey); text-transform: none;
}

@media (max-width: 880px) {
  .ce-work { grid-template-columns: 1fr; gap: 40px; }
  /* tiles stay in the DOM (opacity 0 at rest) so tap-to-scatter can reveal them */
  .work-card .s:not(.hero) { display: block; }
}


/* ---------- v3.1: v1-format grid, tagline to bottom, equal padding ---------- */

/* equal top + side padding; lift the header */
bodycopy.content_padding, .content_padding { padding: 30px !important; }
#home { margin-top: 0 !important; }
#home > div:first-child, #home h1 { margin-top: 0 !important; }
#home h1:first-child { padding-top: 0 !important; }

/* grid = v1 format: 2 columns, tight even spacing, no captions, no shadow */
.ce-work {
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  padding: 20px 0 0 !important;
}
.work-card .cap { display: none !important; }
.work-card .hero { box-shadow: none !important; }
.work-card .s:not(.hero) { box-shadow: none !important; border: 3px solid #fff; }

/* footer: only the tagline, small, one line, Larken, nav size (8.7px) */
#footer { margin-top: 40px; }
.ce-footer { padding-top: 16px; border-top: 1px solid var(--ce-border); }
.ce-footer-tag {
  font-family: larken, Georgia, serif !important;
  font-style: italic; font-weight: 400;
  font-size: 8.7px; letter-spacing: 0.02em;
  color: var(--ce-ink); white-space: nowrap;
}
.ce-footer-tag em { color: var(--ce-red); font-style: italic; }

@media (max-width: 880px) {
  .ce-work { grid-template-columns: 1fr 1fr !important; }  /* keep 2-col like v1 even on mobile */
}


/* ---------- v3.2: equal top/side + succession-cycle hover ---------- */
/* the page container adds a top-only margin -> kill it so top == sides (30px) */
.container.container_width, .page.container_width, .page_container:first-child .page { margin-top: 0 !important; }

/* drop the fan: no rotate/offset, no white frame, no shadow */

.work-card .s:not(.hero) { border: 0 !important; box-shadow: none !important; }
.work-card .hero { box-shadow: none !important; }
/* transition managed inline by JS */
.work-card:hover { z-index: 1; }

/* header row: strip grid pad/gutter so the mark sits exactly at the 30px content edge */
#home > div[grid-row]:first-child { margin: 0 !important; }
#home > div[grid-row]:first-child > [grid-col] { padding-top: 0 !important; padding-left: 0 !important; }
#home > div[grid-row]:first-child h1 { margin-top: 0 !important; padding-top: 0 !important; }

/* header as a clean flex row: mark hard against the 30px content edge, nav to the right */
#home > div[grid-row]:first-child {
  display: flex !important; justify-content: space-between !important; align-items: flex-start !important;
  margin: 0 !important; padding: 0 !important;
}
#home > div[grid-row]:first-child > [grid-col] { width: auto !important; padding: 0 !important; margin: 0 !important; flex: 0 0 auto; }
#home > div[grid-row]:first-child > [grid-col]:first-child { margin-right: auto !important; }
#home > div[grid-row]:first-child h1 { margin: 0 !important; padding: 0 !important; }
#home > div[grid-row]:first-child .studio, #home > div[grid-row]:first-child .contact { padding-left: 48px; }

/* container centers content (~36px each side); go full-width so the 30px padding is the whole inset */
.page.container_width, .container.container_width, .content_container, .main_container {
  max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
}


/* v3.3: no hairline under the top nav; tighten top a touch */
#home > div[grid-row]:first-child hr { display: none !important; }
bodycopy.content_padding, .content_padding { padding: 30px !important; }


/* seat the mark cap at the 30px inset (kill the font ascent leading above it) so top reads == sides */
#home > div[grid-row]:first-child h1 .ce-mark { display: inline-block; line-height: 1 !important; }
#home > div[grid-row]:first-child { margin-top: -6px !important; }


/* v3.4: no white scrim + 16:9 */
.work-card .s { background: transparent !important; }   /* no paper showing through */
.work-card .stack { aspect-ratio: 16 / 9 !important; }  /* all cards 16:9 */

/* v3.5: NO hover effect on the cards — kill the inherited a:hover opacity 0.5 wash. only the image swaps. */
.work-card, .work-card:hover, .work-card:focus, .work-card:active { opacity: 1 !important; transform: none !important; filter: none !important; }


/* v3.6: tilted pile needs to spill past the card edges */
/* stack-overflow-visible-v35 */
.work-card .stack { overflow: visible !important; }
/* transition managed inline by JS */

/* v3.8: brand.ai cream background + all-black text (experiment) */
html, body.homepage, .main_container, .content_container, .page, .page_container, .container_width, bodycopy.content_padding {
  background-color: #F7F5F2 !important;
}
.ce-mark { color: #000 !important; }
.ce-tagline, .ce-tagline em, .ce-footer-tag, .ce-footer-tag em { color: #000 !important; }
.studio h1 a, .contact h1 a { color: #000 !important; }

/* v3.9: curiosity line -> Inter semibold, pinned to the window bottom */
.ce-footer-tag {
  font-family: Inter, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  position: fixed !important;
  left: 30px !important;
  bottom: 30px !important;
  z-index: 50 !important;
}
#footer, .ce-footer { border-top: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }

/* v3.10: no italics on the curiosity line; cap whole container at 1440 centered */
.ce-footer-tag em { font-style: normal !important; }
.container.container_width { max-width: 1440px !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }

/* v3.11: lottie tile fills its scatter slot like a photo */
.lottie-s { background: #0a1a15 !important; }
.lottie-s svg { width: 100% !important; height: 100% !important; display: block; }

/* v3.12: webm video tile fills its scatter slot like a photo */
.video-s { object-fit: cover; background: #0a1a15 !important; }

/* v3.13: logo 2x (60% -> 120%); remove nav items for now */
#home h1 .ce-mark { font-size: 120% !important; }
#home > div[grid-row]:first-child > [grid-col]:not(:first-child) { display: none !important; }


/* v3.14: logo inert (no link/hover) + red end-dot; curiosity line aligned to the 1440 container, +2px, red key words */
.ce-mark { pointer-events: none !important; cursor: default !important; text-decoration: none !important; }
.ce-mark:hover { opacity: 1 !important; }
.ce-dot { color: var(--ce-red) !important; }
.ce-footer-tag { font-size: 10.7px !important; left: max(30px, calc((100vw - 1440px) / 2 + 30px)) !important; }
.ce-footer-tag em { color: var(--ce-red) !important; font-style: normal !important; }


/* v3.15: mobile IA pass — one full-width column; curiosity line flows after the work (kills the fixed-footer dead space) */
@media (max-width: 768px) {
  .ce-work { grid-template-columns: 1fr !important; gap: 16px !important; }
  .work-card { cursor: pointer; }
  .ce-footer-tag {
    position: static !important; left: auto !important; bottom: auto !important;
    display: block !important; white-space: normal !important;
    margin: 22px 30px 44px !important;
  }
}


/* v3.16: bottom bar ported from the live homepage (social + hidden breadcrumb + skill CTA); curiosity line lives inside it now */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 68px;
  background: #fff; border-top: 1px solid #e8e8e8;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 48px); gap: 16px; z-index: 40;
}
.bar-left { display: flex; align-items: center; gap: clamp(10px,1.5vw,20px); flex-shrink: 0; }
.bar-fox { font-size: clamp(13px,1.1vw,17px); line-height: 1; flex-shrink: 0; }
.bar-mystery { font-family: Inter, sans-serif; font-size: clamp(9px,0.7vw,11px); font-weight: 400; color: #fff; letter-spacing: 0.08em; user-select: text; white-space: nowrap; cursor: text; }
.bar-mystery::selection { background: #cc0000; color: #fff; }
.social-links { display: flex; align-items: center; gap: clamp(10px,1.2vw,18px); flex-shrink: 0; }
.social-links a { display: flex; align-items: center; color: #bbb; text-decoration: none; transition: color .2s; }
.social-links a:hover { color: #cc0000; }
.social-links svg { width: 16px; height: 16px; }
.bar-tagline { font-family: larken, Georgia, serif; font-style: italic; font-size: 12.7px; letter-spacing: 0.02em; color: #1a1a1a; white-space: nowrap; }
.bar-tagline em { color: #cc0000; font-style: normal; }
.bar-legal { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #999; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; align-self: center; flex-shrink: 0; }
.skill-btn { display: inline-block; background: #cc0000; color: #fff; font-family: Inter, sans-serif; font-size: clamp(10px,0.85vw,13px); font-weight: 500; letter-spacing: 0.04em; padding: 0 20px; height: 38px; line-height: 38px; border-radius: 3px; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: opacity .15s; }
.skill-btn:hover { opacity: .85; }
/* clear the fixed bar so the last project isn't hidden behind it */
.container.container_width { padding-bottom: 96px !important; }
/* mobile: bar flows after the work and wraps, so nothing is crammed */
@media (max-width: 768px) {
  .bottom-bar { position: static; height: auto; flex-wrap: wrap; gap: 12px 16px; padding: 18px 22px 30px; }
  .bar-tagline { white-space: normal; font-size: 13px; flex-basis: 100%; order: -1; }
  .container.container_width { padding-bottom: 24px !important; }
}


/* v3.17: taps register cleanly (never treated as a scroll gesture); belt-and-suspenders social icon size */
.work-card { touch-action: manipulation; }
.social-links svg { width: 16px !important; height: 16px !important; }


/* v3.18: curiosity line + legal grouped on the right (sentence, then legal); skill button removed */
.bar-right { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); flex-shrink: 0; }
@media (max-width: 768px) {
  .bar-right { flex-basis: 100%; order: -1; justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; }
  .bar-tagline { flex-basis: auto; order: 0; font-size: 13px; white-space: normal; }
}
