/* Shared "Dia-style" layer for the V4 draft homepage and the Dia-style case studies.
   All text is General Sans (weights kept from the Dia originals). Light only for now. */
@font-face { font-family: "General Sans"; src: url("/mapds/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/mapds/fonts/GeneralSans-VariableItalic.woff2") format("woff2"); font-weight: 200 700; font-style: italic; font-display: swap; }

:root {
  --paper: #fbfaf6;
  --ink: rgba(0,0,0,.88);
  --ink-2: rgba(0,0,0,.58);
  --ink-3: rgba(0,0,0,.3);
  --line: rgba(0,0,0,.09);
  --sans: "General Sans", system-ui, sans-serif;
  --out: cubic-bezier(.23,1,.32,1);
  --pad: clamp(20px, 5.5vw, 110px);
}

/* placeholder background behind visuals: a plain light grey until real images go in */
.paint { position: absolute; inset: 0; overflow: hidden; background: #ededea; } /* same grey as the homepage frames */

/* type */
.d1 { font: 600 clamp(56px, 9vw, 128px)/.95 var(--sans); letter-spacing: -.05em; }
.d2 { font: 600 clamp(40px, 5.6vw, 76px)/1 var(--sans); letter-spacing: -.045em; }
.d3 { font: 500 clamp(28px, 3.2vw, 44px)/1.08 var(--sans); letter-spacing: -.035em; }
.kick { font: 500 13px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.kick b { font-weight: 500; margin: 0 .7em; }

/* floating top nav */
.topnav { position: fixed; z-index: 50; top: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 6px 8px 6px 10px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 4px 18px rgba(0,0,0,.05); white-space: nowrap; }
.topnav .logo { width: 32px; height: 32px; display: grid; place-items: center; margin-right: 6px; color: #111; }
.topnav .logo svg, .topnav .logo img { width: 30px; height: 28px; display: block; }
.topnav button.l { border: 0; background: none; cursor: pointer; }
.topnav .l { font: 400 17px/1.2 var(--sans); padding: 6px 9px; color: rgba(0,0,0,.66); border-radius: 8px; text-decoration: none; transition: color .2s var(--out), transform .16s var(--out); }
.topnav .l:active { transform: scale(.97); }
.topnav .l[aria-current] { color: #000; }
@media (hover:hover) and (pointer:fine) { .topnav .l:hover { color: #000; } }
/* scrolls away going down, comes back going up (dia.js toggles .is-hidden) */
.topnav { transition: transform .35s var(--out); }
.topnav.is-hidden { transform: translate(-50%, calc(-100% - 28px)); }

/* tilted painted band at the very top (release-notes hero) */
.band { position: relative; margin: 0 calc(var(--pad) * -1 + 30px); height: clamp(150px, 19vw, 230px); background: #fff; padding: 0 30px 30px; transform: rotate(-.9deg) translateY(-34px); transform-origin: left top; box-shadow: 0 70px 90px -40px rgba(0,0,0,.22); }
.band .in { position: relative; height: 100%; overflow: hidden; }

/* buttons */
.bigbtn { display: inline-flex; align-items: center; justify-content: center; height: 72px; padding: 0 52px; border-radius: 999px; background: #000; color: #fff; font: 500 20px/1 var(--sans); border: 0; cursor: pointer; text-decoration: none; transition: transform .16s var(--out), background .2s; }
.bigbtn:active { transform: scale(.97); }
@media (hover:hover) and (pointer:fine) { .bigbtn:hover { background: #262626; } }

.dia-foot { padding: 40px var(--pad) 48px; text-align: center; color: var(--ink-2); font: 400 15px/1.4 var(--sans); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dia-foot .tiles { display: flex; gap: 8px; }
.dia-foot .tile { width: 44px; height: 44px; border-radius: 12px; background: #f0eee6; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); display: grid; place-items: center;
  transition: transform .28s var(--out); }
/* hover: the tile tilts to a random angle (set by dia.js) and grows 20%; eases back when the cursor leaves */
@media (hover:hover) and (pointer:fine) { .dia-foot .tile:hover { transform: rotate(var(--tilt, 8deg)) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .dia-foot .tile { transition-duration: .01s; } }
.dia-foot .tile img { width: 28px; height: 26px; display: block; position: relative; z-index: 1; }
.dia-foot .tile:first-child img { width: 30px; height: 28px; }
/* mystical gradient on hover or press; the grey fill returns when the cursor leaves or the press ends */
.dia-foot .tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .28s var(--out);
  background: radial-gradient(circle at 30% 25%, #f5e9ff 0%, transparent 55%), linear-gradient(135deg, #b86bff 0%, #6a4dff 45%, #ff7ac8 100%); }
.dia-foot .tile { position: relative; }
.dia-foot .tile:hover::before, .dia-foot .tile:active::before { opacity: 1; }
/* Claude’s tile: yellow instead, so the mark stays visible against the purple */
.dia-foot .tile-claude::before { background: radial-gradient(circle at 30% 25%, #fff8d6 0%, transparent 55%), linear-gradient(135deg, #ffe066 0%, #ffc52e 50%, #ffb000 100%); }
.dia-foot .tile svg { width: 26px; height: 26px; }
.dia-foot .tile-claude img { width: 26px; height: 26px; object-fit: contain; }
.dia-foot .tile-claude svg { display: none; }               /* stand-in only shows when the file is missing */
.dia-foot .tile-claude.no-file svg { display: block; }

@media (max-width: 820px) {
  .topnav .l { font-size: 15px; padding: 6px 7px; }
  .kick { font-size: 10px; letter-spacing: .14em; }
  .bigbtn { height: 60px; padding: 0 36px; font-size: 17px; }
}
