/* ==========================================================================
   The Brightest Yellow — site design system (T2b, "Studio on paper")
   One stylesheet for every page. Tokens first, then base, layout and
   components. Decisions behind it: claude-workspace/brand/explorations/
   stage-1-blueprint/DECISIONS.md.
   ========================================================================== */

:root {
  /* Colour */
  --paper: #fbf8f1;      /* page */
  --white: #ffffff;      /* frames, cards */
  --canvas: #f4efe4;     /* quiet surfaces, browser bars */
  --ink: #1f1e1c;        /* text, the Y, buttons */
  --ink-soft: #625d55;   /* secondary text */
  --ink-mute: #8a8378;   /* captions */
  --label: #6a6359;      /* frame labels */
  --hair: #ece6d8;       /* hairlines, card edges */
  --dots: #e2d9c6;       /* the dotted canvas */
  --signal: #ffd400;     /* the mark, the marker, the one accent */
  --sticky: #fff1bf;     /* sticky notes */
  --coral: #ff6b57;      /* the client's voice: their cursor, their notes */

  /* Type */
  --font: 'Geologica', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --hand: 'Playpen Sans', 'Comic Sans MS', cursive;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 0, 0.1), 0 18px 34px -22px rgba(60, 40, 0, 0.5);
  --shadow-note: 0 12px 22px -14px rgba(60, 40, 0, 0.5);
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --nav-h: 72px;                       /* the sticky header */
  --section-pad: clamp(56px, 8vw, 96px); /* space above every section */
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }  /* width/height attributes only reserve space; CSS sets the shape */
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--white); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Layout ---- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-pad) 0; }
/* Jumping to a section lands its heading just under the sticky header: the target
   cancels its own top padding instead of adding it to the header's height. */
.section[id] { scroll-margin-top: calc(var(--nav-h) + 20px - var(--section-pad)); }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 46em; }
.section-head h2 { font: 600 clamp(28px, 3.6vw, 36px)/1.1 var(--font); letter-spacing: -0.03em; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.dotted { background: radial-gradient(var(--dots) 1.2px, transparent 1.4px) 0 0 / 18px 18px, var(--paper); }

/* ---- Type helpers ---- */
.label { font: 500 11.5px/1.3 var(--mono); color: var(--label); letter-spacing: 0.01em; }
.hand { font: 500 15px/1.25 var(--hand); color: var(--ink); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 32em; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 241, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 700 17px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 600; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary i { display: grid; gap: 3px; } .nav-menu summary i b { display: block; width: 14px; height: 2px; background: var(--ink); }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 8px; display: grid; background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair), var(--shadow); }
.nav-menu a { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.nav-menu a:hover { background: var(--paper); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav .wrap { gap: 10px; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 420px) { .logo span { display: none; } }

/* ---- Buttons & links ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: var(--white); font: 700 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--small { padding: 10px 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 5px; text-underline-offset: 1px; text-decoration-skip-ink: none; }
.link:hover { text-decoration-thickness: 8px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---- Devices: browser and phone frames ---- */
.browser { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--white); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--canvas); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d9d1c1; }
.browser-bar span { margin-left: 8px; flex: 1; max-width: 62%; padding: 3px 12px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .shot { position: relative; }
.browser img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top; }
.phone { overflow: hidden; border-radius: 22px; border: 6px solid #23201c; background: #23201c; box-shadow: 0 22px 44px -22px rgba(60, 40, 0, 0.6); }
.phone img { width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; }

/* ---- The studio devices: marker ring, pen note, sticky note, cursors ---- */
.ring { position: absolute; z-index: 4; fill: none; stroke: var(--signal); stroke-width: 6; stroke-linecap: round; pointer-events: none; }
.ring-note { position: absolute; z-index: 5; padding: 4px 10px; border-radius: 6px; background: var(--paper); white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(60, 40, 0, 0.45); }
.sticky { display: grid; gap: 6px; padding: 12px 14px 14px; background: var(--sticky); font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-note); }
.sticky .who { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.sticky .who::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.cursor { position: absolute; z-index: 7; display: flex; align-items: flex-start; gap: 0; pointer-events: none; }
.cursor svg { width: 20px; height: 20px; }
.cursor span { margin: 20px 0 0 -2px; padding: 3px 8px; border-radius: 4px; font: 700 11px/1.2 var(--font); white-space: nowrap; }
.cursor--client svg path { fill: var(--coral); } .cursor--client span { background: var(--coral); color: var(--white); }
.cursor--us svg path { fill: var(--ink); } .cursor--us span { background: var(--signal); color: var(--ink); }

/* ---- Home hero ---- */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero h1 { font: 600 clamp(38px, 5.2vw, 56px)/1.05 var(--font); letter-spacing: -0.035em; }
.studio { position: relative; padding: 22px 76px 44px 0; }
.studio > .label { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: 4px; background: var(--paper); }
.studio .phone { position: absolute; z-index: 2; right: 0; bottom: 4px; width: 26%; }
.studio .sticky { position: absolute; z-index: 6; right: -16px; top: -14px; width: 214px; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .studio { padding-right: 56px; }
}
@media (max-width: 560px) {
  .studio { padding: 22px 40px 30px 0; }
  .studio .sticky { position: relative; right: auto; top: auto; width: auto; margin-top: 28px; }
  .studio .cursor, .studio .ring-note { display: none; }
}

/* ---- Services ---- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair); }
.service h3 { font: 600 17px/1.25 var(--font); }
.service p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.px-tile { display: inline-grid; place-items: center; justify-self: start; padding: 7px; border-radius: 6px; background: var(--signal); }
.px-tile svg { width: 30px; height: 30px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---- Work ---- */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.project { display: grid; gap: 8px; align-content: start; text-decoration: none; }
.project .thumb { overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; background: var(--canvas); box-shadow: 0 0 0 1px var(--hair); }
.project img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s; }
.project:hover img { transform: scale(1.03); }
.project b { font: 600 17px/1.25 var(--font); }
.project span { font-size: 14px; color: var(--ink-soft); }
.project .go { color: var(--ink); font-size: 13.5px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .project img { transition: none; } .project:hover img { transform: none; } }
@media (max-width: 1000px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .work { grid-template-columns: minmax(0, 1fr); } }

/* ---- Product card (Lumi on the home page) ---- */
.product { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; margin-top: 28px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: var(--white); box-shadow: 0 0 0 1px var(--hair); }
.product .copy { display: grid; gap: 12px; justify-items: start; }
.product h3 { font: 600 30px/1.1 var(--font); letter-spacing: -0.03em; }
.product p { color: var(--ink-soft); }
.product .browser img { aspect-ratio: 16 / 8.4; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* Products: Lumi, then what's coming */
.products { display: grid; gap: 20px; }
.products .product { margin-top: 0; }
.product--soon { grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); }
.product--soon h3 { font-size: 26px; }
.soon-mark { width: 96px; height: 96px; border-radius: 22px; }
.soon-tag { justify-self: start; padding: 4px 11px; border-radius: 999px; background: var(--signal); font: 600 12.5px/1.3 var(--font); }
@media (max-width: 860px) { .product--soon { grid-template-columns: minmax(0, 1fr); } .soon-mark { width: 72px; height: 72px; border-radius: 16px; } }

/* ---- Sticky-note steps (how we work) ---- */
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); }
.note { display: grid; gap: 8px; align-content: start; padding: 18px 18px 22px; background: var(--sticky); box-shadow: var(--shadow-note); }
.note .hand { font-size: 22px; }
.note h3 { font: 600 18px/1.25 var(--font); }
.note p { font-size: 14.5px; line-height: 1.5; color: #4c463d; }
@media (max-width: 1000px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .notes { grid-template-columns: minmax(0, 1fr); } }

/* ---- Contact band ---- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--ink); color: var(--paper); }
.cta h2 { font: 600 clamp(26px, 3vw, 32px)/1.1 var(--font); letter-spacing: -0.03em; max-width: 14em; }
.cta p { margin-top: 8px; opacity: 0.8; }
.cta .contact { display: grid; gap: 10px; justify-items: start; font-size: 14.5px; }
.cta .contact a:not(.btn) { color: var(--paper); text-decoration-color: rgba(255, 255, 255, 0.4); }

/* ---- Footer ---- */
.footer { margin-top: 40px; border-top: 1px solid var(--hair); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; font-size: 14px; color: var(--ink-soft); }
.footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 4px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Page header: breadcrumb as a frame label, title, one line */
.page-head { padding-block: clamp(36px, 5vw, 56px) clamp(48px, 6vw, 72px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.page-head .copy { display: grid; gap: 18px; justify-items: start; }
.page-head h1 { font: 600 clamp(36px, 4.8vw, 52px)/1.05 var(--font); letter-spacing: -0.035em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: '/ '; }
.page-head--plain .wrap { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .page-head .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Spec sheet: the facts about a project or product, as a labelled frame */
.spec { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-top: 8px; background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair); }
.spec > .label { position: absolute; top: -20px; left: 0; }
.spec div { display: grid; gap: 4px; min-width: 0; padding: 18px 20px; border-right: 1px solid var(--hair); }
.spec dd { overflow-wrap: anywhere; }
.spec div:last-child { border-right: 0; }
.spec dt { font: 500 11.5px/1.3 var(--mono); color: var(--label); }
.spec dd { font-weight: 600; font-size: 15px; }
.spec dd a { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
@media (max-width: 700px) { .spec div { border-right: 0; border-bottom: 1px solid var(--hair); } .spec div:last-child { border-bottom: 0; } }

/* Prose block next to an aside */
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.story .prose { display: grid; gap: 16px; font-size: 17.5px; line-height: 1.65; color: #3d3831; max-width: 38em; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } }

/* Feature cards (Lumi) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair); }
.feature h3 { font: 600 19px/1.25 var(--font); }
.feature p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Video tiles: a still and a play button; the YouTube player loads on click */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video { display: grid; gap: 10px; }
.video .player { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--ink); box-shadow: var(--shadow); }
.video .player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video .player button { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.video .player button span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--signal); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6); transition: transform 0.15s; }
.video .player button:hover span { transform: scale(1.06); }
.video .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video b { font-size: 15.5px; }
.video small { color: var(--ink-mute); font-size: 13px; }
@media (max-width: 860px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .videos { grid-template-columns: minmax(0, 1fr); } }

/* Booking page */
.booking { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.booking .copy { display: grid; gap: 18px; justify-items: start; position: sticky; top: 104px; }
.booking h1 { font: 600 clamp(36px, 4.6vw, 50px)/1.05 var(--font); letter-spacing: -0.035em; }
.expect { display: grid; gap: 10px; }
.expect li { display: flex; gap: 12px; align-items: baseline; }
.expect li::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); translate: 0 1px; }
.calendar { position: relative; padding: 18px; background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair), var(--shadow); min-height: 560px; }
.calendar > .label { position: absolute; top: -20px; left: 0; }
.calendar .tidycal-embed { min-height: 520px; }
.calendar noscript a { font-weight: 700; }
@media (max-width: 900px) { .booking { grid-template-columns: minmax(0, 1fr); } .booking .copy { position: static; } }

/* Play page: the puzzle column (the game's own look is in logo-puzzle*.css) */
.play { max-width: 560px; margin-inline: auto; padding-bottom: clamp(56px, 8vw, 96px); }
