/* Ada page (/ada), built by tools/build_ada_page.py. Aaron 2026-11-06: "it looks
   just like Ada". The page is Ada's Brief screen (ai-portal BriefAda.jsx and its
   .brief-* styles, .ghost labels in ai-portal/src/index.css) in her darkroom
   colours: square corners, hairline rules, Ano display, Barlow body, tiny
   wide-tracked caps. Look only: no working controls from the app. The site's
   header and footer stay as they are. */

@font-face { font-family: "Barlow"; src: url("/fonts/barlow/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.ad-page {
  --ground: #0E0D0C; --char: #121110; --surface-in: #000;
  --ink: #ECE7DE; --ink-2: #ABA59B; --ink-3: #7C776F;
  --rule: rgba(236, 231, 222, .10); --rule-2: rgba(236, 231, 222, .18); --rule-3: rgba(236, 231, 222, .36);
  --pist: #ECE7DE;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Ano-web, "Ano", "Barlow Condensed", sans-serif;
  --m: 16px;
  overflow-x: clip;
}
@media (min-width: 720px) { .ad-page { --m: 28px; } }

.ad { background: var(--ground); color: var(--ink); font-family: var(--body); padding: 0 var(--m) 96px; }
.ad :where(h1, h2, p, ol, dl, dd) { margin: 0; }
.ad-meta { font-family: var(--body); font-size: 10px; line-height: 16px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Ada's logo, "Note G" (AdaMark.jsx, tone 'ada') ---------- */
.ad-mark { display: inline-flex; align-items: flex-start; flex: none; }
.ad-mark-a { font-family: var(--display); line-height: 1; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.ad-mark-g { box-sizing: border-box; border: 1px solid var(--note); display: flex; align-items: center; justify-content: center; flex: none; }
.ad-mark-g > span { display: block; font-family: var(--display); line-height: 1; color: var(--note); }
.ad-mark-g > span > span { display: block; }
.ad-page { --note: #E0482F; }

/* ---------- above the app ---------- */
.ad-top { max-width: 1360px; margin: 0 auto; padding: 64px 0 40px; }
@media (min-width: 720px) { .ad-top { padding: 96px 0 56px; } }
@media (max-width: 719px) { .ad-mark.is-hero { transform: scale(.66); transform-origin: left top; margin-bottom: -24px; } }
.ad-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 26px !important;
  font-family: var(--body); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ad-by .ad-soon { font-size: 10px; letter-spacing: .26em; color: var(--ink-3); border: 1px solid var(--rule-2); padding: 3px 9px; }
.ad-h1 { margin-top: 28px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink-2); }
@media (min-width: 720px) { .ad-h1 { font-size: 32px; } }

/* ---------- Ada's app: studio bar, the veiled studio, the sheet on top ---------- */
.ad-app { max-width: 1360px; margin: 0 auto; background: var(--char); border: 1px solid var(--rule); overflow: hidden; }
.ad-bar { display: flex; align-items: center; gap: 20px; min-height: 56px; padding: 12px 28px; border-bottom: 1px solid var(--rule); }
.ad-lockup { display: flex; align-items: center; gap: 18px; }
.ad-wordmark {
  width: 128px; height: 23.2px; flex: none;
  background-image: linear-gradient(100deg, #BFC4CA 0%, #D9DDE1 30%, #FFFFFF 44%, #F1F3F5 50%, #D9DDE1 62%, #BFC4CA 100%);
  background-size: 260% 100%; animation: ad-sweep 11s cubic-bezier(.5, 0, .5, 1) infinite;
  -webkit-mask: url("/media/bespoke-wordmark.svg") no-repeat center / contain; mask: url("/media/bespoke-wordmark.svg") no-repeat center / contain;
}
@keyframes ad-sweep { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.ad-div { width: 1px; height: 18px; background: var(--rule-2); flex: none; }
@media (max-width: 719px) { .ad-bar { padding: 12px 16px; } .ad-bar .ad-ghost:not([data-lead]) { display: none; } .ad-wordmark { width: 96px; height: 17.4px; } }

.ad-studio { position: relative; height: min(80vh, 780px); min-height: 560px; }
.ad-tiles { position: absolute; inset: 0; padding: 28px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-content: start; }
.ad-tiles i { aspect-ratio: 4 / 5; background: #1c1b19 center / cover no-repeat; }
.ad-veil { position: absolute; inset: 0; display: flex; padding: 28px; background: rgba(8, 8, 8, .5); backdrop-filter: blur(22px) saturate(120%); -webkit-backdrop-filter: blur(22px) saturate(120%); }
@media (max-width: 719px) { .ad-veil { padding: 10px; } .ad-tiles { grid-template-columns: repeat(3, 1fr); } .ad-studio { height: 78vh; min-height: 540px; } }

/* the sheet (.brief-sheet) */
.ad-sheet {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: rgba(18, 17, 16, .58); border: 1px solid var(--rule-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.ad-head { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.ad-title { font-family: var(--display); font-size: 20px; color: var(--ink); }
.ad-sp { flex: 1; }
.ad-ghost {
  appearance: none; background: transparent; border: none; cursor: pointer; padding: 0; text-decoration: none;
  font-family: var(--body); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3); transition: color 130ms; display: inline-flex; align-items: center; gap: 6px;
}
.ad-ghost:hover { color: var(--ink); }
.ad-ghost[data-lead="1"] { color: var(--ink); }
.ad-ghost[data-lead="1"]:hover { color: #fff; }
.ad-ghost.is-quiet { cursor: default; }
.ad-ghost.is-quiet:hover { color: var(--ink-3); }
.ad-ghost:focus-visible, .ad-chip:focus-visible { outline: 2px solid var(--pist); outline-offset: 3px; }
@media (max-width: 719px) { .ad-head { padding: 12px 16px; } .ad-ghost.is-quiet { display: none; } }

.ad-body { flex: 1; display: grid; grid-template-columns: minmax(340px, 520px) minmax(0, 1fr); min-height: 0; }
@media (max-width: 899px) {
  .ad-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(300px, 46%) minmax(0, 1fr); }
  .ad-stage { order: -1; } .ad-talk { border-right: 0; border-top: 1px solid var(--rule); }
  .ad-studio { height: 92vh; min-height: 720px; }
  .ad-empty { padding-bottom: 0; } .ad-big { font-size: 26px; }
  .ad-stagebar .ad-pill { display: none; }
}
.ad-talk { display: flex; flex-direction: column; min-height: 0; padding: 18px 22px; border-right: 1px solid var(--rule); }
@media (max-width: 719px) { .ad-talk { padding: 16px; } }

/* empty state (.brief-empty) */
.ad-empty { margin: auto 0; padding-bottom: 6vh; }
.ad-empty[hidden] { display: none; }
.ad-big { font-family: var(--display); font-size: 34px; line-height: 1.15; color: var(--ink); }
.ad-sub { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 18px !important; max-width: 460px; }
.ad-chips, .ad-asks { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
[data-asks] { padding: 4px 0 12px; }
.ad-chips[hidden] { display: none; }

/* chips (.brief-chip) */
.ad-chip {
  text-align: left; background: transparent; border: 1px solid var(--rule-2); color: var(--ink);
  font-family: var(--body); font-size: 13px; line-height: 1.4; padding: 7px 11px; cursor: pointer; text-decoration: none;
  border-radius: 0; transition: border-color 130ms;
}
.ad-chip:hover { border-color: var(--pist); }
.ad-chip.is-access { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* log (.brief-log / .brief-msg) */
.ad-log { flex: 1; overflow-y: auto; list-style: none; padding: 0 0 10px; display: flex; flex-direction: column; gap: 14px; }
.ad-log[hidden] { display: none; }
.ad-m p { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.ad-m.is-you { align-self: flex-end; max-width: 85%; }
.ad-m.is-you p { color: var(--ink); text-align: left; padding: 10px 14px; background: rgba(236, 231, 222, .06); border: 1px solid var(--rule-2); }
.ad-m.is-you::before { content: "You"; display: block; text-align: right; margin-bottom: 6px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.ad-m.is-ada::before { content: "Ada"; display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.ad-m.is-ada { max-width: 100%; animation: ad-in .45s ease; }
.ad-m p.is-thinking { color: var(--ink-2); animation: ad-pulse 1.4s ease-in-out infinite; }
@keyframes ad-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ad-pulse { 50% { opacity: .45; } }

/* composer (.brief-compose) */
.ad-compose { display: flex; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--rule); }
.ad-compose textarea {
  flex: 1; resize: none; background: transparent; border: 1px solid var(--rule-2); border-radius: 0; color: var(--ink);
  font-family: var(--body); font-size: 14px; line-height: 1.5; padding: 10px 12px; outline: none;
}
.ad-compose textarea::placeholder { color: var(--ink-3); }
.ad-compose textarea:focus { border-color: var(--rule-3); }
.ad-compose .ad-ghost { padding-bottom: 12px; }

/* results stage (.brief-stage): answers the conversation with mock-ups */
.ad-stage { position: relative; display: flex; flex-direction: column; min-height: 0; background: rgba(0, 0, 0, .55); }
.ad-stagebar { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(20, 19, 18, .5); border: 1px solid var(--rule-2);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.ad-stage-ada { font-family: var(--display); font-size: 18px; letter-spacing: .32em; color: var(--ink); }
.ad-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--rule-2); font-size: 12px; color: var(--ink); }
.ad-share { padding: 7px 14px; background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 500; }
.ad-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); flex: none; }
.ad-scenes { position: relative; flex: 1; overflow: hidden; }
.ad-scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.ad-scene.is-on { opacity: 1; }
.ad-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-dim { filter: brightness(.55) saturate(.9); }

/* glass bits on top of the pictures */
.ad-gchip { position: absolute; z-index: 2; padding: 8px 12px; font-size: 12px; color: var(--ink);
  background: rgba(20, 19, 18, .5); border: 1px solid var(--rule-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ad-gchip.is-bl { left: 14px; bottom: 14px; }
.ad-gcard { position: absolute; z-index: 2; left: 50%; top: 54%; transform: translate(-50%, -50%); width: min(340px, 82%);
  padding: 20px 22px; background: rgba(20, 19, 18, .55); border: 1px solid var(--rule-2);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.ad-gcard p { font-size: 14px; line-height: 1.6; color: var(--ink); }
.ad-gcard p + p { margin-top: 6px; }
.ad-gk { display: flex; align-items: center; gap: 8px; font-size: 10px !important; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2) !important; margin-bottom: 10px; }
.ad-app-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.ad-app-row span { margin-left: auto; font-size: 11px; color: var(--ink-2); }
.ad-app-row .ad-dot { background: #8fb98a; }
.ad-muted { color: var(--ink-2) !important; font-size: 13px !important; margin-top: 10px !important; }

/* mark-up: Ada's chinagraph red */
.ad-markup { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ad-markup ellipse { fill: none; stroke: var(--note); stroke-width: .5; vector-effect: non-scaling-stroke; stroke-width: 2.5px; }
.ad-note-pin { position: absolute; z-index: 2; transform: translate(-100%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 12px 7px 8px; font-size: 12px; color: var(--ink); background: rgba(20, 19, 18, .62); border: 1px solid var(--note);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ad-note-pin b { font-weight: 500; color: var(--note); }

/* gallery + consistent set */
.ad-grid { position: absolute; inset: 72px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-grid.is-row { grid-template-columns: repeat(3, 1fr); inset: 72px 14px 64px; }
.ad-grid img, .ad-grid video, .ad-cell { width: 100%; height: 100%; object-fit: cover; min-height: 0; display: block; }
.ad-cell { position: relative; }
.ad-tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  background: rgba(20, 19, 18, .5); border: 1px solid var(--rule-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* presentation slide */
.ad-deck { position: absolute; inset: 72px 14px 64px; display: flex; align-items: center; justify-content: center; }
.ad-slide { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; background: #ECE7DE; color: #1b1a18; padding: 4% 5%;
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 3%; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); container-type: inline-size; }
.ad-slide p { color: #1b1a18; font-size: clamp(9px, 1.9cqi, 14px); line-height: 1.45; }
.ad-sk { font-size: clamp(7px, 1.3cqi, 10px) !important; letter-spacing: .24em; text-transform: uppercase; color: #6d675e !important; }
.ad-st { font-family: var(--display); font-size: clamp(14px, 4.2cqi, 30px) !important; line-height: 1.1 !important; }
.ad-scols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ad-sw { display: flex; gap: 4px; margin-top: 4px; }
.ad-sw i { width: 18%; aspect-ratio: 1; display: block; }
.ad-sthumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; min-height: 0; }
.ad-sthumbs img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }

.ad-note { max-width: 1360px; margin: 14px auto 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.ad-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.ad-js) .ad-compose, html:not(.ad-js) .ad-chips { display: none; }

/* ---------- early access ---------- */
.ad-cta { max-width: 720px; margin: 88px auto 0; text-align: center; }
.ad-cta-t { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.ad-btn {
  display: inline-block; margin-top: 22px; padding: 13px 26px; border-radius: 0;
  background: var(--ink); color: var(--ground); font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
}
.ad-btn:hover { background: #fff; }

/* ---------- FAQ: for search engines and no-JS; hidden once the chat runs ---------- */
.ad-faq { max-width: 720px; margin: 88px auto 0; }
.ad-faq h2 { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.ad-faq dl { display: grid; gap: 22px; margin-top: 18px; }
.ad-faq dt { font-family: var(--display); font-size: 18px; line-height: 1.3; }
.ad-faq dd { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.ad-js .ad-faq { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) { .ad-m.is-ada, .ad-m p.is-thinking, .ad-wordmark { animation: none; } .ad-scene { transition: none; } }

/* the picture as in Ada: 4:5, centred under the glass bar, on a soft blur of itself */
.ad-amb { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(40px) brightness(.55); }
.ad-layer { position: absolute; top: 72px; bottom: 14px; left: 50%; transform: translateX(-50%); aspect-ratio: 4 / 5; max-width: calc(100% - 28px); }
.ad-layer .ad-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.ad-layer .ad-note-pin { font-size: 11.5px; }
.ad-note-pin.is-right { transform: translate(0, -50%); }

/* Faces never cropped through the middle (Aaron 2026-11-06): portrait (4:5) pictures in wide or square
   frames are anchored where the face is, per picture. */
.ad-grid img, .ad-grid video { object-position: 50% 30%; }
.ad-grid img[src$="/skin.jpg"] { object-position: 50% 12%; }
.ad-grid video[poster$="/morning-film.jpg"] { object-position: 60% 30%; }
.ad-grid img[src$="/paris.jpg"] { object-position: 50% 6%; }
.ad-grid img[src$="/morning.jpg"] { object-position: 62% 30%; }
.ad-sthumbs img[src$="/paris.jpg"] { object-position: 50% 8%; }
.ad-sthumbs img[src$="/morning.jpg"] { object-position: 55% 32%; }
.ad-sthumbs img[src$="/shoe.jpg"] { object-position: 50% 62%; }
.ad-grid img[src$="/skin.jpg"] { object-position: 50% 0%; }
.ad-grid.is-row img[src$="/perfume.jpg"] { object-position: 62% 50%; }
