/* Carry the portrait cover's black, ember and orange palette through the portfolio.
   Scoped to the portfolio HTML. Embedded demos keep their own product UI. */
:root{
  --bg:#0a0808;
  --bg-raised:#17100e;
  --bg-soft:#241610;
  --fg:#f7f1ed;
  --fg-muted:#bdada4;
  --line:rgba(255,127,70,.23);
  --accent:#ff630f;
  --accent-soft:#ffb17c;
  --color-bg:var(--bg);
  --color-bg-raised:var(--bg-raised);
  --color-fg:var(--fg);
  --color-fg-muted:var(--fg-muted);
  --color-line:var(--line);
  --color-accent:var(--accent)
}
body{
  background:radial-gradient(ellipse 76% 44% at 103% 0%,rgba(188,54,12,.15),transparent 70%),
             radial-gradient(ellipse 60% 35% at -9% 63%,rgba(111,34,12,.10),transparent 72%),
             var(--bg);
  color:var(--fg)
}
.atmosphere:before{opacity:.022}
.atmosphere>header{border-bottom-color:var(--line);background:rgba(10,8,8,.82)}
.atmosphere>header a:hover,.atmosphere>header button:hover,[aria-current=page]{color:var(--accent)}
::selection{background:#ff630f;color:#180c08}
:focus-visible{outline-color:var(--accent)}

/* The two old ivory bands were the main visual break after the hero. */
.band-ivory{
  --fg:#f7f1ed;
  --fg-muted:#bdada4;
  --bg:#0a0808;
  --bg-raised:#17100e;
  --line:rgba(255,127,70,.23);
  --accent:#ff630f;
  --color-fg:var(--fg);
  --color-fg-muted:var(--fg-muted);
  --color-bg:var(--bg);
  --color-bg-raised:var(--bg-raised);
  --color-line:var(--line);
  --color-accent:var(--accent);
  color:var(--fg);
  background:radial-gradient(ellipse 72% 68% at 100% 4%,rgba(143,40,13,.18),transparent 70%),
             radial-gradient(ellipse 64% 50% at -12% 100%,rgba(125,30,8,.12),transparent 70%),
             linear-gradient(180deg,#120b0a,#0b0808)
}
.band-ivory .surface-panel,.band-ivory .bg-bg-raised{background-color:var(--bg-raised)}
.band-ivory .text-fg,.band-ivory .type-headline{color:var(--fg)}
.band-ivory .text-fg-muted{color:var(--fg-muted)}
.band-ivory .text-accent{color:var(--accent)}
.band-ivory .border-line,.band-ivory .hairline-t{border-color:var(--line)}
.band-ivory a.group,.portfolio-card a.group,section[aria-label="项目列表"] a.group{
  border-color:var(--line);
  background:linear-gradient(155deg,rgba(255,121,61,.045),transparent 38%),var(--bg-raised)
}
.band-ivory a.group:hover,section[aria-label="项目列表"] a.group:hover{
  border-color:rgba(255,121,61,.7);
  box-shadow:0 12px 42px rgba(204,58,14,.12)
}
a.group[href="/projects/meituan-after-sales"]>div:first-child[style]{
  background:radial-gradient(circle at 52% 48%,#5b2815,#2b160e 55%,#100a09 100%)!important
}
a.group[href="/kangaroo"] .bg-linear-to-br{
  background-image:linear-gradient(135deg,#34200c,#1c110d 62%,#0b0808)!important
}
section[aria-label="项目列表"] button[aria-pressed="true"]{
  background:var(--accent);border-color:var(--accent);color:#160b07
}
section[aria-label="项目列表"] button[aria-pressed="false"]:hover{border-color:var(--accent);color:var(--accent)}

/* Transparent 3D art remains untouched; the cards now inherit the cover. */
.practice-section,.practice-shell,.practice-tools,.practice-arena{background-color:#0a0808;background-image:none}
.practice-section{border-top-color:var(--line);color:var(--fg);overflow:clip}
.practice-question .practice-summary{
  background:linear-gradient(150deg,#261610 0%,#181010 49%,#110d0d 100%);
  border:1px solid rgba(255,128,72,.30);
  color:var(--fg)
}
.practice-question .practice-summary:hover{border-color:rgba(255,128,72,.68)}
@media(min-width:768px){
  /* Match the first card: same side-column width and square summary on desktop. */
  .practice-section .practice-question{width:100%;max-width:none}
  .practice-section .practice-question .practice-summary{aspect-ratio:1;min-height:19rem}
}
.practice-question-bar{
  background:linear-gradient(90deg,#1c1110 0%,rgba(28,17,16,.98) 72%,rgba(28,17,16,.85) 90%,transparent 100%)
}
.practice-question-title{color:#fbf4ef}
.practice-question-meta{color:#ffb287}
.practice-question-caption,.practice-answer p{color:#c8b6ac}
.practice-question .practice-plus{background:#ff630f;border-color:#ffad78;color:#1a0b06}
.practice-chip{box-shadow:0 10px 30px rgba(0,0,0,.50)}
.practice-chip-alt{background:#241610;color:#f2e6df;border:1px solid rgba(255,121,61,.25)}
.practice-years{color:#bdada4}
/* The physics world now spans the whole Practice section. Let pointers pass
   through empty space so all four question cards stay clickable. */
.practice-section .practice-tools{position:static;padding-bottom:240px}
.practice-section .practice-arena{
  position:absolute;inset:0;width:100%;height:100%;margin:0;
  background:transparent;pointer-events:none;touch-action:pan-y;z-index:2;overflow:hidden
}
.practice-section .practice-chip{pointer-events:auto;touch-action:pan-y}
.practice-section .practice-tools-caption{position:relative;z-index:3;pointer-events:none}

/* Dark inner pages, article reading and contact follow the same temperature. */
#main>section:last-child:not(.band-ivory):not(.practice-section){
  background:radial-gradient(ellipse 60% 85% at 100% 55%,rgba(160,49,16,.13),transparent 70%),#0b0808;
  border-top-color:var(--line)
}
#main>section:last-child>p.rounded-full{
  background:#2b150e;
  border:1px solid rgba(255,99,15,.55);
  color:#ffe3ce
}
.about-page .about-case,.about-page .about-portrait,.kit-aside,.skill-hero,.case-banner{
  border-color:var(--line)
}
.about-page .about-case,.about-page .about-portrait{background:#17100e}
.about-page .about-job-summary,.about-page .about-description,.about-page .about-case-summary,
.article-copy,.case-copy,.skill-copy,.kit-copy,.kit-note{color:var(--fg-muted)}
.about-page .about-results dd,.about-page .about-eyebrow{color:var(--accent)}
.case-banner{background:radial-gradient(circle at 75% 20%,#713014,#24120d 53%,#11100f 85%)}
.case-banner strong{color:#ffae77}
.case-demo-link,.skill-download,.kit-download{background:var(--accent);color:#170b07}
.case-demo-link:hover,.skill-download:hover,.kit-download:hover{background:#ff9b66;color:#170b07}
.kit-aside,.kit-command{background:#15100e;border-color:var(--line)}
.kit-source,.kit-meta span{border-color:var(--line)}
.skill-hero{background:radial-gradient(circle at 75% 10%,#56270f,#21130e 55%,#100d0c 85%)}
.skill-hero strong,.skill-step{color:#ffe1cf}
.skill-step{border-color:#955032;background:#352016}

.atmosphere>footer{background:#090707;border-top:1px solid var(--line)}
.atmosphere>footer a:hover{color:var(--accent)}
@media(max-width:767px){
  #main>div.site-gutter>header h1.type-mega{font-size:clamp(2.5rem,10vw,3rem);letter-spacing:-.06em}
  .band-ivory{background:linear-gradient(180deg,#130b09,#0b0808)}
  .practice-question-bar{background:linear-gradient(90deg,#1c1110 0%,rgba(28,17,16,.96) 78%,transparent 100%)}
}
@media(prefers-reduced-motion:reduce){
  .band-ivory a.group{transition:none}
  /* Static chips return to their footer row when physics is intentionally off. */
  .practice-section .practice-tools{position:relative;padding-bottom:0}
  .practice-section .practice-arena{
    position:relative;inset:auto;width:100%;height:auto;min-height:10rem;
    margin-top:1.25rem;overflow:visible;pointer-events:auto;z-index:auto
  }
  .practice-section .practice-chip{position:relative}
}
