/* Step 1: intentionally scoped to the homepage entrance. Existing content,
   Alicia widget and video controls retain their own styles and behavior. */
.home-refinement { --home-bg:#101722; --home-panel:#1a2433; --home-text:#f4f0e9; --home-muted:#c3cad4; --home-accent:#f5b582; }
.home-refinement > .home-header { width:100%; background:var(--home-bg); color:var(--home-text); border-bottom:1px solid #354051; }
.home-header .nav { width:min(1240px,calc(100% - 96px)); margin:auto; height:96px; background:transparent; border:0; gap:28px; }
.home-header .brand-logo { width:160px; height:52px; border-radius:6px; mix-blend-mode:normal; }
.home-header .navlinks { color:var(--home-text); margin-left:auto; gap:26px; }
.home-header .navlinks > a:not(.btn) { display:flex; align-items:center; min-height:44px; font-size:14px; font-weight:500; }
.home-header .navlinks > a:hover { color:var(--home-accent); }
.home-header .home-languages { display:flex; gap:2px; align-items:center; flex-shrink:0; }
.home-header .home-languages a { display:grid; place-items:center; width:38px; height:44px; font:600 12px 'DM Sans',sans-serif; color:var(--home-muted); border-radius:5px; }
.home-header .home-languages a[aria-current=page] { color:var(--home-accent); text-decoration:underline; text-underline-offset:7px; }
.home-header .btn, .home-hero .btn { display:inline-flex; justify-content:center; align-items:center; font:700 15px/1.4 'DM Sans',sans-serif; min-height:54px; padding:14px 22px; gap:16px; border:1px solid var(--home-accent); border-radius:8px; background:var(--home-accent); color:#101722; text-decoration:none; cursor:pointer; }
.home-header .btn { min-height:46px; padding:10px 17px; font-size:14px; }
.home-header .btn:hover, .home-hero .btn:hover { background:#ffca9f; border-color:#ffca9f; color:#101722; transform:none; }
.home-header .menu { color:var(--home-text); border:1px solid #596678; border-radius:6px; background:transparent; }
.home-refinement .home-intro { background:var(--home-bg); color:var(--home-text); }
.home-refinement .home-hero { width:min(1240px,calc(100% - 96px)); display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); grid-template-areas:'copy media'; gap:60px; align-items:center; margin:auto; padding:58px 0 48px; min-height:0; background:transparent; }
.home-hero::before { display:none; }
.home-hero .hero-copy { min-width:0; }
.home-hero .eyebrow { display:block; margin:0 0 26px; font:600 12px/1.5 'DM Sans',sans-serif; color:var(--home-muted); letter-spacing:.1em; }
.home-hero .eyebrow::before { display:none; }
.home-refinement .home-intro .home-hero h1 { font:700 clamp(42px,4.8vw,70px)/1.08 'Manrope',sans-serif; letter-spacing:-.05em; margin:0 0 26px; max-width:680px; }
.home-hero h1 em { color:var(--home-accent); font-style:normal; }
.home-hero .lead { max-width:520px; color:var(--home-muted); font:400 19px/1.65 'DM Sans',sans-serif; margin:0 0 30px; }
.home-hero .actions { display:flex; flex-wrap:wrap; gap:14px 26px; align-items:center; margin:0; }
.home-hero .home-projects-link { display:inline-flex; gap:10px; align-items:center; min-height:48px; color:var(--home-text); font:600 15px/1.4 'DM Sans',sans-serif; text-decoration:underline; text-decoration-color:#637083; text-underline-offset:6px; }
.home-hero .home-projects-link:hover { color:var(--home-accent); }
.home-hero .home-location { display:block; color:#b8c3d3; font:400 13px/1.7 'DM Sans',sans-serif; margin:28px 0 0; }
.home-hero .home-reassurance { border-top:1px solid #3b4655; padding-top:20px; margin:24px 0 0; display:flex; flex-wrap:wrap; gap:10px 26px; list-style:none; color:#e5e5e8; font:500 13px/1.5 'DM Sans',sans-serif; }
.home-hero .home-reassurance li { margin:0; padding:0; }
.home-hero .mascot-presentation { min-width:0; width:100%; max-width:440px; justify-self:end; border:1px solid #41516b; border-radius:18px; background:var(--home-panel); box-shadow:0 18px 46px #0003; }
.home-hero .mascot-media-frame { border-bottom:1px solid #41516b; }
.home-hero .mascot-presentation figcaption { padding:18px 22px 14px; }
.home-hero .mascot-presentation strong { font:600 17px/1.5 'DM Sans',sans-serif; color:var(--home-text); }
.home-hero .mascot-presentation p { color:var(--home-muted); font-size:14px; line-height:1.55; }
.home-hero .mascot-presentation .mascot-media-button { display:inline-flex; min-height:44px; padding:8px 14px; font-size:14px; border-radius:7px; margin-top:12px; }
.home-hero .mascot-presentation .media-state { font-size:12px; line-height:1.5; color:#edc6a6; }
.home-hero .mascot-presentation details { font-size:13px; color:var(--home-muted); }
.home-hero .mascot-presentation summary { line-height:1.5; padding:14px 0 8px; min-height:44px; }
.home-needs { width:min(1240px,calc(100% - 96px)); margin:auto; padding:30px 0 40px; border-top:1px solid #3b4655; }
.home-needs-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:28px; }
.home-needs h2 { font:650 27px/1.3 'Manrope',sans-serif; letter-spacing:-.035em; margin:0; color:var(--home-text); }
.home-needs-heading p { color:var(--home-muted); font:400 14px/1.5 'DM Sans',sans-serif; margin:0; }
.home-needs-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.home-need { display:flex; flex-direction:column; text-decoration:none; gap:12px; padding:4px 26px 6px; border-left:1px solid #3b4655; color:var(--home-text); transition:background .15s; }
.home-need:first-child { border-left:0; padding-left:0; }
.home-need:last-child { padding-right:0; }
.home-need:hover { background:#1c2736; }
.home-need-top { display:flex; justify-content:space-between; align-items:center; color:var(--home-accent); font:500 12px 'DM Sans',sans-serif; }
.home-need-top img, .home-projects-link img { filter:invert(1); }
.home-need strong { font:600 19px/1.3 'Manrope',sans-serif; letter-spacing:-.03em; color:var(--home-text); max-width:230px; }
.home-need-description { font:400 14px/1.55 'DM Sans',sans-serif; color:var(--home-muted); }
.home-need-action { margin-top:auto; padding-top:4px; color:var(--home-accent); font:500 12px/1.5 'DM Sans',sans-serif; }
.home-refinement .agency-ribbon { display:none; }
.home-refinement.home-inline-alicia-visible .alice-launch:not([aria-expanded=true]) { display:none; }
.home-header :is(a,button):focus-visible,.home-intro :is(a,button,summary):focus-visible { outline:3px solid #f5b582; outline-offset:5px; }
.home-header .btn:focus-visible,.home-hero .btn:focus-visible { outline-color:#fff; }
@media(max-width:1100px) {
  .home-header .nav { width:calc(100% - 64px); gap:18px; }
  .home-refinement .home-hero { width:calc(100% - 64px); gap:32px; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); }
  .home-needs { width:calc(100% - 64px); }
  .home-header .navlinks { gap:16px; }
  .home-need { padding-inline:18px; }
}
@media(max-width:1050px) {
  .home-header .nav { position:relative; }
  .home-header .menu { display:block; order:4; margin:0; }
  .home-header .home-languages { margin-left:auto; }
  .home-header .navlinks { display:none; }
  .home-header .navlinks.open { display:flex; position:absolute; top:86px; left:0; right:0; flex-direction:column; align-items:stretch; background:#1a2433; padding:22px; border:1px solid #56637a; border-radius:12px; z-index:90; }
}
@media(max-width:800px) {
  .home-refinement .home-hero { gap:32px; padding-top:40px; }
  .home-refinement .home-intro .home-hero h1 { font-size:44px; }
  .home-hero .lead { font-size:17px; }
  .home-needs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 0; }
  .home-need:nth-child(3) { border-left:0; padding-left:0; }
  .home-need:nth-child(2) { padding-right:0; }
  .home-needs-heading { display:block; }
  .home-needs-heading p { margin-top:10px; }
}
@media(max-width:650px) {
  .home-header .nav { width:calc(100% - 40px); height:78px; gap:10px; }
  .home-header .brand-logo { width:128px; height:44px; }
  .home-header .home-languages a { width:32px; }
  .home-header .navlinks.open { top:70px; }
  .home-refinement .home-hero { width:calc(100% - 40px); grid-template-columns:1fr; grid-template-areas:'copy' 'media'; padding:34px 0 30px; gap:30px; }
  .home-refinement .home-intro .home-hero h1 { font-size:clamp(37px,10.7vw,58px); margin-bottom:20px; line-height:1.09; }
  .home-hero .eyebrow { font-size:10px; letter-spacing:.08em; margin-bottom:18px; }
  .home-hero .lead { font-size:17px; line-height:1.55; margin-bottom:23px; }
  .home-hero .actions { align-items:stretch; gap:8px; }
  .home-hero .actions .btn { width:100%; padding:14px 12px; font-size:15px; }
  .home-hero .home-projects-link { justify-content:center; }
  .home-hero .home-location { margin-top:15px; font-size:12px; }
  .home-hero .home-reassurance { margin-top:17px; padding-top:15px; font-size:12px; gap:8px 20px; }
  .home-hero .mascot-presentation { justify-self:center; max-width:400px; }
  .home-needs { width:calc(100% - 40px); padding-top:27px; padding-bottom:36px; }
  .home-needs h2 { font-size:25px; }
  .home-need { padding-inline:15px; }
  .home-need strong { font-size:17px; }
  .home-need-description { font-size:13px; }
}
@media(max-width:360px) {
  .home-header .nav { width:calc(100% - 28px); gap:5px; }
  .home-header .brand-logo { width:112px; }
  .home-header .home-languages a { width:30px; }
  .home-refinement .home-hero,.home-needs { width:calc(100% - 32px); }
  .home-needs-grid { grid-template-columns:1fr; gap:0; }
  .home-need,.home-need:first-child,.home-need:nth-child(3) { border-left:0; border-top:1px solid #3b4655; padding:18px 0; }
}
@media(prefers-reduced-motion:reduce) { .home-need { transition:none; } }
/* Compact the first screen without cropping the existing square video. */
.home-header .nav { height:86px; }
.home-refinement .home-hero { padding-top:38px; padding-bottom:36px; }
.home-hero .mascot-presentation { max-width:380px; }
.home-hero .mascot-presentation figcaption { display:grid; grid-template-columns:1fr auto; gap:0 12px; padding:15px 18px 9px; }
.home-hero .mascot-presentation figcaption > strong { grid-column:1; grid-row:1; align-self:center; font-size:16px; }
.home-hero .mascot-presentation .mascot-media-button { grid-column:2; grid-row:1; margin:0; }
.home-hero .mascot-presentation figcaption > p,.home-hero .mascot-presentation details { grid-column:1/-1; }
.home-hero .home-reassurance { padding-inline:0; }
@media(max-width:650px) {
  .home-header .nav { height:78px; }
  .home-refinement .home-hero { padding-top:30px; padding-bottom:30px; }
  .home-refinement .home-intro .home-hero h1 { font-size:clamp(33px,9.3vw,49px); }
}
