/* ===================================================================
   The homepage: one film and one section of facts.

   The film's ground is the site's own, so nothing frames it. Header, film
   and sections all sit on the film's grid and read as one surface. Grid in
   film pixels, 1920 across: Claude's window 40 to 641, Bluffy's 671 to 1881.
   --u is one film pixel at whatever size the film is showing.
   =================================================================== */
.home{--head:52px;--strip:0px;--vh:100vh;}
@supports (height:100svh){ .home{--vh:100svh;} }
/* The film brings its own light at its top edge; the page's would show around it. */
.home::before{display:none;}
.home :focus-visible{outline:2px solid var(--ac);outline-offset:2px;}

.film-shell{width:min(100%,2880px,calc((var(--vh) - var(--head) - var(--strip))*16/9));margin-inline:auto;
  container-type:inline-size;--u:calc(100cqw/1920);}

/* ===== HEADER: the mark over Claude's window, the line over Bluffy's ===== */
.film-head{position:relative;isolation:isolate;height:var(--head);display:flex;align-items:center;
  padding-inline:calc(40*var(--u)) calc(39*var(--u));}
/* Carries the film's rose light up behind the header, so its top edge shows no line. */
.film-head::before{content:"";position:absolute;inset:0;z-index:-1;transition:opacity .5s ease;
  background:linear-gradient(to bottom,var(--ground),rgba(10,10,12,0)),
    linear-gradient(to right,#0a0a0c 0%,#0a0a0c 37.5%,#150e12 50%,#1c1114 62.5%,#1d1215 75%,#180e13 87.5%,#0d0a0e 100%);}
.film-mark{flex:none;width:calc(631*var(--u));font-family:'Gochi Hand',cursive;font-size:25px;line-height:1;
  letter-spacing:.07em;color:var(--ac);transition:opacity .5s ease;}
.film-tag{flex:1;min-width:0;font-size:13.5px;font-weight:500;color:var(--ink-1);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;transition:opacity .5s ease;}
.film-tag span{font-weight:400;color:var(--ink-3);}
.film-head .hero-cta{flex:none;margin:0 0 0 1rem;}
.home .lnk{white-space:nowrap;}

/* ===== THE FILM ===== */
.film-stage{position:relative;}
.film-frame{position:relative;width:100%;aspect-ratio:16/9;cursor:pointer;}
.film-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}

/* Sound and pause, in the empty space right of the section's title, on Bluffy's right edge. */
.film-ctl{position:absolute;right:calc(39*var(--u));top:calc(131*var(--u));transform:translateY(-50%);
  display:flex;gap:6px;transition:opacity .4s ease;}
.film-pill{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:15px;
  font-size:12.5px;font-weight:500;color:var(--ink-1);white-space:nowrap;
  background:rgba(246,244,241,.07);border:1px solid rgba(255,255,255,.16);
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;}
.film-pill:hover{background:rgba(246,244,241,.14);border-color:rgba(255,255,255,.32);}
.film-pill svg{flex:none;width:14px;height:14px;}
.film-pill.icon{width:30px;padding:0;justify-content:center;color:var(--ink-2);}
.film-pill.on{background:none;border-color:var(--line-1);color:var(--ink-3);}

/* Shown when the film has not started by itself: blocked autoplay, thin data, reduced motion. */
.film-start{position:absolute;left:calc(1276*var(--u));top:calc(530*var(--u));width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--ink-1);
  background:rgba(10,10,12,.72);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(6px);
  animation:film-start .3s ease 1.2s both;}
.film-start svg{width:24px;height:24px;}
.film-started .film-start{display:none;}
@keyframes film-start{from{opacity:0;}to{opacity:1;}}

/* ===== THE SECTIONS: in the empty band under Bluffy, on its edges, ending
   level with the bottom of Claude's window ===== */
.film-strip{position:absolute;left:calc(671*var(--u));width:calc(1210*var(--u));top:calc(936*var(--u));
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:calc(10*var(--u));transition:opacity .4s ease;}
.film-s{display:block;width:100%;min-width:0;text-align:left;}
/* Thirteen sections share the band, so the pictures go nearly square to fill its height. */
.film-pic{display:block;position:relative;height:calc(76*var(--u));overflow:hidden;border-radius:calc(7*var(--u));background:var(--panel);}
.film-pic img{width:100%;height:100%;object-fit:cover;opacity:.72;transition:opacity .25s ease;}
.film-pic::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);pointer-events:none;}
.film-bar{position:absolute;left:0;right:0;bottom:0;z-index:1;height:2px;background:var(--ac);
  transform:scaleX(var(--p,0));transform-origin:left;}
.film-name{display:block;margin-top:calc(6*var(--u));font-size:max(10.5px,calc(16.5*var(--u)));line-height:1.2;color:var(--ink-3);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s ease;}
.film-s:hover img,.film-s.on img{opacity:1;}
.film-s:hover .film-name,.film-s.on .film-name{color:var(--ink-1);}

/* ===== THE ENDING: the film's end card is the page's ground, so real buttons land on it ===== */
.film-end{position:absolute;left:50%;top:calc(770*var(--u));transform:translateX(-50%);display:flex;gap:.45rem;
  opacity:0;pointer-events:none;transition:opacity .15s ease;}
.film-end .hero-cta{margin:0;}
.film-again{padding:.55rem 1.05rem;font-size:9.5px;letter-spacing:.18em;border-radius:4px;border-color:rgba(255,255,255,.16);color:var(--ink-3);
  transition:color .2s ease,border-color .2s ease;}
.film-again:hover{color:var(--ink-1);border-color:rgba(255,255,255,.30);}
.at-end .film-end{opacity:1;pointer-events:auto;transition:opacity .6s ease .15s;}
.at-end .film-strip,.at-end .film-ctl{opacity:0;pointer-events:none;}
.at-end .film-head::before,.at-end .film-mark,.at-end .film-tag{opacity:0;}
.at-end .film-frame{cursor:default;}

/* ===== THE FACTS: one section, on the film's two columns ===== */
.film-more{padding-inline:calc(40*var(--u)) calc(39*var(--u));}
.core{display:grid;grid-template-columns:calc(601*var(--u)) 1fr;column-gap:calc(30*var(--u));align-items:start;
  padding-block:clamp(2.8rem,5vw,4.6rem);}
/* The film's own title type, not the site's serif (owner, 2026-11-05). */
.core .h2{margin:0;font-family:'Instrument Sans',system-ui,sans-serif;font-weight:600;font-size:clamp(1.7rem,calc(46*var(--u)),2.75rem);
  line-height:1.14;letter-spacing:-.022em;}
.core .h2 em{display:block;margin-top:.4em;font-style:normal;font-weight:400;font-size:.6em;line-height:1.3;letter-spacing:-.008em;
  color:var(--ink-2);text-wrap:balance;}
.core-go{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem 1rem;margin-top:1.6rem;}
.core-go .hero-cta{margin:0;}
.core-go span{font-size:.88rem;color:var(--ink-3);}
.facts{display:grid;grid-template-columns:1fr 1fr;column-gap:calc(30*var(--u));}
.facts div{padding-block:1.05rem 1.5rem;border-top:1px solid var(--line-1);}
.facts dt{font-size:clamp(1.05rem,1.5vw,1.25rem);font-weight:500;color:var(--ink-1);}
.facts dd{margin-top:.3rem;font-size:clamp(.95rem,1.2vw,1.05rem);line-height:1.45;color:var(--ink-3);}
.film-more .foot{padding-inline:0;}

@media (max-width:1180px){ .film-tag span{display:none;} }

/* Narrow windows: the band under Bluffy is too small, so the sections drop below the film. */
@media (max-width:1040px) and (min-aspect-ratio:1/1){
  .home{--strip:76px;}
  .film-strip{position:static;width:auto;margin:12px calc(40*var(--u)) 0;gap:6px;}
  .film-pic{height:auto;aspect-ratio:16/9;border-radius:4px;}
  .film-name{margin-top:4px;font-size:10.5px;}
  .core{grid-template-columns:1fr;row-gap:2.2rem;}
}
/* A phone on its side: the film takes the screen, the sections wait below it. */
@media (max-height:500px) and (min-aspect-ratio:1/1){ .home{--strip:0px;} }

/* Phones and upright tablets: the tall cut, with its empty top and bottom bands trimmed. */
@media (max-aspect-ratio:1/1){
  .home{--head:50px;--strip:104px;}
  .film-shell{width:min(100%,calc((var(--vh) - var(--head) - var(--strip))*1080/1810));--u:calc(100cqw/1080);}
  .film-head{padding-inline:12px;}
  .film-tag{display:none;}
  .film-mark{width:auto;margin-right:auto;font-size:23px;}
  .film-frame{aspect-ratio:1080/1810;}
  .film-frame video{object-position:50% 32%;}
  /* In Claude's title bar: long section titles fill the row beside the title. */
  .film-ctl{right:calc(58*var(--u));top:calc(47*var(--u));}
  .film-pill{height:24px;padding:0 10px;font-size:11.5px;}
  .film-pill svg{width:12px;height:12px;}
  .film-pill.icon{display:none;}
  .film-start{left:50%;top:calc(1457*var(--u));}
  .film-strip{position:relative;left:0;top:0;width:auto;margin:10px 0 0;padding:0 12px 4px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;}
  .film-strip::-webkit-scrollbar{display:none;}
  .film-s{flex:0 0 100px;}
  .film-pic{height:auto;aspect-ratio:16/9;border-radius:5px;}
  .film-name{margin-top:5px;font-size:11.5px;}
  .film-end{top:calc(1175*var(--u));}
  .film-more{padding-inline:16px;}
  .core{grid-template-columns:1fr;row-gap:2.2rem;}
  .core .h2{font-size:1.75rem;}
  .facts{column-gap:16px;}
}
@media (max-width:600px) and (max-aspect-ratio:1/1){ .film-shell{width:100%;} }
