/* One visual language: warm paper, clear type, quiet framing and purposeful motion. */
body { text-wrap:pretty; }
.hero { gap:72px; padding-block:72px 64px; }
.hero h1 { font-size:clamp(58px,6vw,86px); }
.hero-description { max-width:440px; font-size:17px; line-height:1.75; }
.hero-art { width:100%; max-width:440px; justify-self:center; }
.hero-actions .button, .nav-cta { border-radius:4px; }
.hero-location { letter-spacing:.08em; font-size:10px; }
.project-grid { column-gap:40px; row-gap:48px; }
.project>p { font-size:14px; line-height:1.75; }
.project-links { font-size:12px; }
.section-intro { font-size:15px; }
.principles { padding-block:20px; }
.button:hover { transform:none; }

/* Project Starter shares the site palette; the work stays in front of the art. */
body.atlas-view .starter-header { background:var(--paper); color:var(--ink); border-color:var(--line); }
body.atlas-view .starter-header :is(a,button,.starter-brand-caption,.starter-page-name) { color:var(--ink); }
#barta-living-atlas-orbs { --ink:#f3f3e9; --soft:#d0d9ca; --lime:#d0ef80; background:#17291f; min-height:700px; }
#barta-living-atlas-orbs :is(.atlas-tint,.atlas-water-canvas,.atlas-canvas,.atlas-water-note) { display:none; }
#barta-living-atlas-orbs .atlas-top { inset:28px 6% auto; }
#barta-living-atlas-orbs .atlas-intro { top:168px; left:7%; width:44%; max-width:500px; padding:0; margin:0; background:none; border-radius:0; }
#barta-living-atlas-orbs .atlas-intro h1 { font-size:clamp(40px,4.1vw,58px); line-height:1.13; letter-spacing:-1.7px; }
#barta-living-atlas-orbs .atlas-welcome-copy { max-width:370px; font-size:16px; }
#barta-living-atlas-orbs .atlas-poster { left:auto; right:6%; top:165px; width:37%; max-width:410px; }
#barta-living-atlas-orbs .atlas-intro-actions { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-top:28px; }
#barta-living-atlas-orbs .atlas-intro-actions button { position:static; width:auto; height:auto; min-height:48px; aspect-ratio:auto; padding:12px 18px; border-radius:4px; font-size:14px; line-height:1.5; }
#barta-living-atlas-orbs .atlas-own-start { background:var(--lime); color:#17291f; border:1px solid var(--lime); font-weight:600; }
#barta-living-atlas-orbs .atlas-intro-actions .atlas-core-hit { background:transparent; border:1px solid #b5c5ac; }
#barta-living-atlas-orbs .atlas-core-hit span { position:static; display:inline; margin:0; padding:0; border:0; border-radius:0; transform:none; color:var(--ink); background:none; font-size:inherit; }
#barta-living-atlas-orbs .atlas-start-note { color:var(--soft); font-size:12px; margin-top:17px; }
#barta-living-atlas-orbs :is(.atlas-index-open,.atlas-primary,.atlas-secondary,.atlas-index-filter) { border-radius:4px; }
#barta-living-atlas-orbs .atlas-category strong { font-family:Arial,Helvetica,sans-serif; font-size:20px; background:transparent; }
#barta-living-atlas-orbs .atlas-categories { gap:28px; }
#barta-living-atlas-orbs .atlas-orb-space { max-width:200px; }
#barta-living-atlas-orbs .atlas-choice { border:1px solid #60725b; border-radius:6px; background:#1d3024; padding:16px; }
#barta-living-atlas-orbs .atlas-choice[aria-pressed=true] { border-color:var(--lime); background:#30432b; }
#barta-living-atlas-orbs .atlas-choice-label { background:none; font-size:14px; }
#barta-living-atlas-orbs .atlas-section-title { font-size:clamp(28px,3vw,40px); }
#barta-living-atlas-orbs :is(.atlas-return-copy,.atlas-breadcrumb button) { background:transparent; }
#barta-living-atlas-orbs .atlas-return-art { display:none; }
#barta-living-atlas-orbs .atlas-return { left:5%; min-height:44px; }
#barta-living-atlas-orbs .atlas-return-copy { max-width:none; }
.starter-library-intro h2 { font-size:clamp(32px,3vw,46px); line-height:1.12; }
.starter-selection .starter-canvas-scene { max-height:260px; }

@media(min-width:721px) { #barta-living-atlas-orbs[data-stage=home] { height:700px; } }
@media(max-width:1000px) {
  .hero { gap:32px; padding-block:50px; }
  .hero-description { font-size:16px; }
  #barta-living-atlas-orbs .atlas-intro { left:6%; width:46%; }
  #barta-living-atlas-orbs .atlas-poster { right:3%; width:40%; top:195px; }
}
@media(max-width:720px) {
  #barta-living-atlas-orbs { min-height:0; }
  #barta-living-atlas-orbs[data-stage=home] { display:flex; flex-direction:column; height:auto; padding:108px 24px 34px; }
  #barta-living-atlas-orbs[data-stage=home] .atlas-intro { position:static; width:100%; max-width:500px; margin:16px auto 0; }
  #barta-living-atlas-orbs .atlas-intro h1 { font-size:42px; }
  #barta-living-atlas-orbs[data-stage=home] .atlas-poster { position:static; transform:none; width:min(72%,250px); margin:28px auto 8px; }
  #barta-living-atlas-orbs[data-stage=home] .atlas-bottom { position:static; margin-top:14px; }
  #barta-living-atlas-orbs .atlas-intro-actions { gap:12px; }
  #barta-living-atlas-orbs .atlas-intro-actions button { flex:1 1 180px; text-align:center; }
  #barta-living-atlas-orbs .atlas-top { inset:24px 24px auto; }
  #barta-living-atlas-orbs .atlas-brand { font-size:20px; }
  #barta-living-atlas-orbs .atlas-brand small { display:none; }
  #barta-living-atlas-orbs .atlas-choice { padding:10px; }
  #barta-living-atlas-orbs .atlas-choice-label { font-size:13px; }
  .hero { gap:24px; padding-block:38px; }
  .hero h1 { font-size:clamp(52px,12.5vw,74px); }
  .hero-art { max-width:310px; }
  .hero-location { font-size:9px; }
  .project-grid { gap:40px; }
}

/* Keep each learning action distinct, including when the AI entry becomes visible. */
.learning-actions { display:flex; flex-direction:column; align-items:flex-start; gap:12px; margin-top:20px; }
.learning-actions :is(.text-link,.assistant-entry) { margin:0; min-height:44px; max-width:100%; white-space:normal; text-align:left; }

/* Match the expanded marker used by the other homepage disclosures. */
.course-outline summary>span { display:inline-block; }
.course-outline[open] summary>span { transform:rotate(45deg); }

/* Keep navigation readable and reachable on tablets and short phone screens. */
@media screen and (max-width:900px) {
  .js-ready .header { position:relative; z-index:10; }
  .js-ready .header .menu-toggle { display:block; min-height:44px; }
  .js-ready .header nav {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:16px 22px;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 20px #0000000a;
    max-height:calc(100vh - 100px);
    max-height:calc(100dvh - 100px);
    overflow-y:auto;
    font-size:14px;
  }
  .js-ready .header nav[data-open=true] {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 20px;
    align-items:center;
  }
  .header nav :is(a,button) { min-height:44px; }
  .header #main-nav>a { display:flex; align-items:center; }
  .header .nav-cta { margin-left:0; }
  html:not(.js-ready) .header {
    height:auto;
    min-height:79px;
    flex-wrap:wrap;
    padding-block:18px;
    gap:18px;
  }
  html:not(.js-ready) .header nav {
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:8px 20px;
    font-size:14px;
  }
}

/* A long brief must be scrollable with a keyboard as well as a pointer. */
#brief-content:focus-visible {
  outline:3px solid var(--lime);
  outline-offset:3px;
}

/* Keep decorative icons inside their definition terms, with the same layout. */
.starter-preview-facts>div { position:relative; }
.starter-preview-facts :is(dt,dd) { grid-column:2; }
.starter-preview-facts dt img { position:absolute; top:0; left:0; }
@media (min-width:621px) and (max-width:1150px) {
  .starter-preview-facts dt img { position:static; display:block; }
}

/* Keep editable text comfortable to read on small screens and touch devices. */
@media (max-width:760px), (pointer:coarse) {
  .contact :is(input,textarea,select),
  .starter-body :is(input,textarea,select),
  .starter-body .starter-search #starter-search,
  .starter-body #starter-audience {
    font-size:max(16px,1rem);
  }
  .contact #brief-form label { font-size:14px; }
}

.starter-draft-tools { border-bottom:1px solid var(--line); padding:0 40px; }
.starter-draft-tools>summary { min-height:44px; display:flex; align-items:center; gap:12px; font-size:13px; font-weight:600; }
.starter-draft-tools>summary::after { content:'+'; margin-left:auto; }
.starter-draft-tools[open]>summary::after { content:'−'; }
.starter-draft-tools>p { max-width:760px; font-size:13px; color:var(--muted); margin:0 0 16px; }
.starter-draft-tools>p:empty { display:none; }
.starter-draft-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px; margin-bottom:16px; }
.starter-draft-actions .text-link { min-height:44px; text-align:left; }
.starter-draft-tools .starter-replace { max-width:760px; margin-bottom:20px; }
.starter-draft-tools .starter-replace .text-link { margin:0; }
@media (min-width:761px) {
  .starter-body:has(#idea-draft-tools:not([hidden])) .starter-explorer { height:calc(100vh - 166px); height:calc(100dvh - 166px); }
}
@media (max-width:760px) { .starter-draft-tools { padding-inline:20px; } }

/* Keep the draft reminder readable beside the file disclosure at every width. */
.starter-draft-reminder{margin:0 0 20px;padding:0 40px;font-size:13px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
@media (max-width:760px){.starter-draft-reminder{padding-inline:20px}}

/* Summary labels and unfinished answers must remain readable on the paper. */
.idea-board>.eyebrow,.idea-board>p,#idea-board dt,#idea-board dd[data-empty=true]{color:#526047}

/* When scripting is available, start phones in the collapsed header that
   app.js enables. Otherwise the expanded no-JS navigation paints first and the
   whole page jumps up when the deferred script runs (CLS ~0.2). Browsers
   without the scripting media feature keep the previous behavior. Scoped to
   headers with the app.js menu (#main-nav); other pages do not load app.js. */
@media (max-width:620px) and (scripting: enabled) {
  html:not(.js-ready) .header:has(> #main-nav) { height:79px; min-height:0; flex-wrap:nowrap; padding-block:0; gap:0; }
  html:not(.js-ready) .header > #main-nav { display:none; }
}

/* idea-interview.js always reveals the draft-file tools; hold their row from
   first paint so the Project Starter explorer does not jump down. */
@media (scripting: enabled) {
  #idea-draft-tools[hidden] { display:block!important; visibility:hidden; }
}

/* Project Starter on phones: the category filters and the idea list are
   rendered by project-starter.js. If the first paint happens before it runs,
   both are empty and the page jumps when they fill in (CLS ~0.31). The
   filters always render once the script runs, so ":empty" filters mean
   "not initialized yet"; an empty search result never matches this rule.
   Heights match the rendered filter rows and the list's 54svh cap. */
@media (scripting: enabled) and (max-width:760px) {
  .starter-filters:empty { min-height:40px; }
  .starter-filters:empty ~ .starter-ideas:empty { min-height:54vh; min-height:54svh; }
}
@media (scripting: enabled) and (max-width:585px) { .starter-filters:empty { min-height:87px; } }
@media (scripting: enabled) and (max-width:353px) { .starter-filters:empty { min-height:134px; } }

/* The homepage keeps its desktop launcher and gives phones a shortcut near the first action. */
.home-mobile-assistant { display:none; }
@media screen and (max-width:900px) {
  .js-ready .home-mobile-assistant { display:inline-flex; min-width:88px; min-height:44px; align-items:center; }
  .home-mobile-assistant button { min-height:44px; color:var(--ink); background:none; border:0; padding:0; cursor:pointer; }
}
@media (scripting:enabled) and (max-width:900px) {
  .home-mobile-assistant { display:inline-flex; min-width:88px; min-height:44px; }
}
.home-motion-toggle { flex:none; min-height:44px; color:var(--ink); background:none; border:0; padding:0 0 0 4px; cursor:pointer; letter-spacing:normal; font-size:12px; }
@media (scripting:enabled) and (prefers-reduced-motion:no-preference) {
  .hero-location:has(> .home-motion-toggle) { min-height:44px; }
}
html[data-home-motion-paused] { scroll-behavior:auto; }
html[data-home-motion-paused] :is(.hero-art,.portfolio-visual),
html[data-home-motion-paused] :is(.hero-art,.portfolio-visual) *,
html[data-home-motion-paused] :is(.hero-art,.portfolio-visual)::before,
html[data-home-motion-paused] :is(.hero-art,.portfolio-visual)::after {
  animation-play-state:paused;
  transition:none;
}
#brief-result .brief-actions { margin-top:16px; }
#email-brief[hidden] + #download-brief { color:var(--ink); background:var(--lime); border-color:var(--lime); }
#inquiry-retry { min-height:44px; }
