/* Sunset homepage: the console surfaces from /integrations/ in the homepage's warm ink.
   World: an analog studio console. Brushed aluminium faceplates, rack screws, amber
   valve LEDs, a VU needle and patch points. Decoration never changes layout. */
.sunset-home{--hg-al1:#3a3541;--hg-al2:#26232e;--hg-al3:#191720;--hg-well:linear-gradient(180deg,#141219,#0e0d14);--hg-amber:#ffb86a;--hg-ember:#ff8a4a;--hg-mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;--hg-rule:inset 0 0 0 1px #ffffff17,inset 0 1px 0 #ffffff1f}

/* The embedded audition settles near this height, so the page below does not jump when it loads. */
.sunset-home .studio-window iframe{height:344px}

.hg-section{padding-block:0 84px}
.hg-section>.section-heading{align-items:start}
.hg-section>.section-heading>p{max-width:38ch;padding-top:30px}
.hg-section h3{color:var(--sunset-text)}
.hg-lede{max-width:70ch;margin:0 0 18px;font-size:17px;line-height:1.75;color:var(--sunset-muted)}
.hg-note{max-width:78ch;margin:18px 0 0;font-size:14px;line-height:1.75;color:var(--sunset-muted)}
.hg-section a:not(.button),.hg-intro a:not(.button){color:var(--sunset-gold)}
.hg-more{display:inline-flex;align-items:center;min-height:44px;font:650 14px/1.5 system-ui,sans-serif;text-underline-offset:5px}
.hg-more:not(:hover){text-decoration:none}
.hg-links{display:flex;flex-wrap:wrap;gap:6px 26px;margin-top:14px}
.hg-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}

/* Faceplate: brushed aluminium, rack screws, engraved hairlines. */
.hg-plate{position:relative;border-radius:16px;padding:clamp(24px,3vw,32px);background:repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 3px),linear-gradient(180deg,var(--hg-al1),var(--hg-al2) 38%,var(--hg-al3));box-shadow:inset 0 1px 0 #ffffff38,inset 0 0 0 1px #ffffff14,inset 0 0 0 5px #00000033,inset 0 0 0 6px #ffffff0d,0 30px 60px -30px #000,0 2px 0 #0008}
.hg-plate::before,.hg-plate::after,.hg-screw{content:"";position:absolute;top:11px;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d9dce8,#6d7187 60%,#2b2e3d);box-shadow:0 1px 1px #000a}
.hg-plate::before{left:11px}.hg-plate::after{right:11px}
.hg-screw{top:auto;bottom:11px}.hg-screw.l{left:11px}.hg-screw.r{right:11px}
.hg-strip{display:inline-flex;align-items:center;gap:10px;margin:0;padding:6px 12px;border-radius:6px;background:#0d0c13;box-shadow:inset 0 1px 2px #000,0 1px 0 #ffffff14;font:700 11px/1.5 var(--hg-mono);letter-spacing:.16em;text-transform:uppercase;color:#e8e2f2}
.hg-led{flex:none;display:inline-block;width:9px;height:9px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff3d0,var(--hg-amber) 45%,var(--hg-ember));box-shadow:0 0 10px #ffb86acc,0 0 22px #ff8a4a66;transition:background .18s,box-shadow .18s;transition-delay:calc(var(--i,0)*110ms)}
.hg-led.off,.hg-armed .hg-led{background:#5a2a12;box-shadow:inset 0 1px 1px #0008}
.hg-jack{flex:none;display:inline-block;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle,#05060c 0 30%,#3d4258 33%,#a9adbf 46%,#585c70 60%,#1b1d29 72%);box-shadow:0 2px 3px #000b,inset 0 1px 0 #fff4}

/* Intro and the jump list, wired like a patch bay. */
.hg-intro{padding-block:0 76px}
.hg-intro-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center}
.hg-intro h2{font:650 clamp(30px,3.5vw,44px)/1.15 system-ui,sans-serif;letter-spacing:-.05em;margin:0 0 22px}
.hg-toc{padding-top:30px}
.hg-toc ul{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hg-toc a{display:flex;align-items:center;gap:11px;min-height:52px;height:100%;padding:8px 12px;border-radius:12px;background:var(--hg-well);box-shadow:inset 0 1px 2px #000c,0 1px 0 #ffffff12;font-size:14px;line-height:1.3;color:var(--sunset-text);text-decoration:none;transition:box-shadow .15s,color .15s}
.hg-toc a:hover{color:var(--sunset-gold);box-shadow:inset 0 1px 2px #000c,0 1px 0 #ffffff12,inset 0 0 0 1px #ffb86a66,0 0 18px #ffb86a22}

/* Steps. */
.hg-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hg-step,.hg-card{position:relative;padding:24px;border-radius:14px;background:linear-gradient(180deg,#25222c,#1c1a23);box-shadow:var(--hg-rule)}
.hg-label{display:flex;align-items:center;gap:9px;font:700 11.5px/1.5 var(--hg-mono);letter-spacing:.12em;color:var(--hg-amber)}
.hg-step h3,.hg-card h3{font:650 20px/1.3 system-ui,sans-serif;letter-spacing:-.03em;margin:13px 0 9px}
.hg-step p,.hg-card p{margin:0;font-size:14.5px;line-height:1.7;color:var(--sunset-muted)}
.hg-step-go{display:flex;flex-direction:column;justify-content:space-between;gap:20px;background:linear-gradient(180deg,#332832,#261f28);box-shadow:inset 0 0 0 1px #8b695599,inset 0 1px 0 #ffffff1f}
.hg-step-go .button{align-self:flex-start;margin-top:auto}

/* Screens from the app sit in a rack-mounted bezel. */
.hg-shot{margin:0 0 28px;padding-bottom:clamp(24px,3vw,32px)}
.hg-shot a{display:block;margin-top:6px}
.hg-shot img,.hg-rail img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 0 0 1px #000a,0 1px 0 1px #ffffff24}
.hg-shot figcaption,.hg-rail figcaption{margin-top:14px;font-size:13px;line-height:1.65;color:#d8d0dc}

/* The signal chain: patched modules in order. */
.hg-chain{display:grid;grid-template-columns:minmax(0,332px) minmax(0,1fr);gap:28px;align-items:start}
.hg-rail{margin:0;position:sticky;top:24px}
.hg-rack{list-style:none;margin:0;padding:0;display:grid;gap:12px;position:relative}
.hg-module{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;padding:15px 18px 15px 14px;border-radius:12px;background:var(--hg-well);box-shadow:inset 0 1px 2px #000c,0 1px 0 #ffffff12}
.hg-module:not(:last-child)::after{content:"";position:absolute;z-index:1;left:23px;top:39px;bottom:-29px;width:4px;border-radius:3px;background:linear-gradient(180deg,#ff8a4a,#c2541f);box-shadow:0 0 0 1px #0006}
.hg-module .hg-jack{position:relative;z-index:2}
.hg-module h3{font:650 17px/1.3 system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 4px}
.hg-module p{margin:0;font-size:14.5px;line-height:1.65;color:var(--sunset-muted)}

.hg-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.hg-cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.hg-block{margin-top:44px}
.hg-block>.hg-shot{margin-bottom:0}

/* Target meter: the same VU face as the console pages, scaled in LUFS. */
.hg-meter-grid{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:28px;align-items:start}
.hg-meter{padding-top:28px;text-align:center}
.hg-meter .hg-strip{margin-bottom:18px}
.hg-vu{position:relative;width:min(300px,100%);aspect-ratio:2/1.15;margin:0 auto;border-radius:10px 10px 6px 6px;overflow:hidden;background:radial-gradient(140% 110% at 50% 100%,#fff2cf,#f3d79c 55%,#d8ad62);box-shadow:inset 0 0 0 2px #2a1d10,inset 0 6px 14px #00000040,0 0 24px #ffb86a40}
.hg-vu svg{position:absolute;inset:0;width:100%;height:100%}
.hg-needle{transform-origin:50% 92%;will-change:transform}
.hg-vu::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,#ffffff55 0,transparent 38%);pointer-events:none}
.hg-lcd{display:block;margin:16px auto 0;padding:11px 14px;border-radius:10px;background:#07080f;box-shadow:inset 0 2px 10px #000,inset 0 0 0 1px #ffffff12,0 1px 0 #ffffff14;font:500 14px/1.5 var(--hg-mono);color:#ffd9a3;text-shadow:0 0 8px #ffb86a40}
.hg-meter-hint{margin:14px 0 0;font-size:13px;line-height:1.6;color:#d8d0dc}

.hg-sub{font:650 22px/1.3 system-ui,sans-serif;letter-spacing:-.035em;margin:0 0 8px}
.hg-sub+p{margin:0 0 16px;font-size:15px;line-height:1.7;color:var(--sunset-muted)}
.hg-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.hg-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.5;border-radius:14px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff1c;overflow-wrap:normal}
.hg-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hg-table th,.hg-table td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid #ffffff12}
.hg-table thead th{font:700 11px/1.5 var(--hg-mono);letter-spacing:.12em;text-transform:uppercase;color:#e0d9ea;background:#0d0c13}
.hg-table tbody th{font-weight:600;color:var(--sunset-text);background:#1b1922}
.hg-table td{color:var(--sunset-muted);background:#1b1922}
.hg-table td.m{font-family:var(--hg-mono);color:var(--sunset-gold);white-space:nowrap}
.hg-table tr:last-child>*{border-bottom:0}
.hg-table tr.is-on>*{background:#2e2429}
.hg-pick{appearance:none;display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:-12px 0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;text-align:left;cursor:pointer}
.hg-pick:hover{color:var(--sunset-gold)}
.hg-pick[aria-pressed="false"] .hg-led{background:#5a2a12;box-shadow:inset 0 1px 1px #0008}

.hg-spec{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hg-spec>div{padding:15px 18px;border-radius:12px;background:var(--hg-well);box-shadow:inset 0 1px 2px #000c,0 1px 0 #ffffff12}
.hg-spec dt{font:700 11.5px/1.5 var(--hg-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--hg-amber)}
.hg-spec dd{margin:6px 0 0;font-size:14.5px;line-height:1.6;color:var(--sunset-muted)}

/* Who it fits: lit and unlit channels. */
.hg-fit{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:stretch}
.hg-fit h3{font:650 20px/1.3 system-ui,sans-serif;letter-spacing:-.03em;margin:0 0 6px}
.hg-fit ul{list-style:none;margin:0;padding:0}
.hg-fit li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:15px 0;border-top:1px solid #ffffff14;font-size:14.5px;line-height:1.65;color:var(--sunset-muted)}
.hg-fit li:first-child{border-top:0}
.hg-fit li .hg-led{margin-top:7px}
.hg-fit strong{display:block;font-weight:650;font-size:15.5px;color:var(--sunset-text)}

.hg-compare{table-layout:fixed}
.hg-compare thead th:first-child{width:26%}

@media(max-width:1000px){
.hg-steps,.hg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.hg-spec{grid-template-columns:repeat(2,minmax(0,1fr))}
.hg-meter-grid{grid-template-columns:minmax(0,1fr)}
.hg-meter{max-width:460px;width:100%;justify-self:center}
}
@media(max-width:850px){
.hg-intro-grid,.hg-fit{grid-template-columns:minmax(0,1fr);gap:28px}
.hg-chain{grid-template-columns:minmax(0,1fr)}
.hg-rail{position:static;max-width:332px;width:100%;justify-self:center}
.hg-section{padding-block:0 64px}
.hg-section>.section-heading>p{padding-top:0}
}
@media(max-width:640px){
.sunset-home .studio-window iframe{height:325px}
.hg-intro{padding-block:0 52px}
.hg-section{padding-block:0 52px}
.hg-steps,.hg-cards,.hg-cards.two,.hg-spec{grid-template-columns:minmax(0,1fr)}
.hg-toc{padding-inline:18px}
.hg-toc a{min-height:58px;padding:8px 10px;gap:9px;font-size:13.5px}
.hg-toc .hg-jack{width:18px;height:18px}
.hg-step,.hg-card{padding:21px}
.hg-actions .button{width:100%}
.hg-lede{font-size:16px}
.hg-table th,.hg-table td{padding:11px 12px}
/* Comparison stacks into channel strips; the role attributes keep it a table for assistive tech. */
.hg-compare,.hg-compare tbody,.hg-compare tr,.hg-compare tbody th,.hg-compare td{display:block;width:auto}
.hg-compare thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hg-compare{border-radius:0;box-shadow:none;overflow:visible}
.hg-compare tr{margin-bottom:12px;border-radius:12px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff1c}
.hg-compare tbody th{background:#0d0c13;font-size:14.5px}
.hg-compare td::before{content:attr(data-label);display:block;margin-bottom:3px;font:700 11px/1.5 var(--hg-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--hg-amber)}
}
@media(prefers-reduced-motion:reduce){.hg-led,.hg-toc a{transition:none}.hg-rail{position:static}}
.hg-card.wide{grid-column:1/-1}
