/* Beneath the surface (Nov 2026). The 11.11 artwork as a live scene, shared by the
   homepage and /1111. The plate is surface-plate.jpg, cut from the poster by
   scripts/surface art.py. Its lit edge sits at 66.7% across, 47.2% down; art/surface.js
   places the frame so that point lands where each layout wants it, and every layer
   (glint, sweep, push in) is anchored to it. The scene is dark in both themes. */

@font-face{font-family:"Basier Square Mono";src:url("/fonts/basiersquaremono-400.woff2") format("woff2");font-weight:400;font-display:swap}
@property --sf-r{syntax:"<percentage>";inherits:false;initial-value:160%}

.sf{position:relative;overflow:hidden;background:#030303;color:#F2EEE8;isolation:isolate}
.sf-par{position:absolute;inset:0;will-change:transform}
.sf-frame{position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:66.7% 47.2%;will-change:transform}
.sf-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}

/* The light comes on from the upper left, the way the poster is lit. */
html.sfm .sf.intro .sf-frame img{animation:sfLight 3.2s cubic-bezier(.3,.1,.2,1) .15s both;
  -webkit-mask-image:radial-gradient(ellipse at 8% 4%,#000 calc(var(--sf-r) - 40%),transparent var(--sf-r));
          mask-image:radial-gradient(ellipse at 8% 4%,#000 calc(var(--sf-r) - 40%),transparent var(--sf-r))}
@keyframes sfLight{from{--sf-r:0%;filter:brightness(.35) saturate(.6)}to{--sf-r:160%;filter:none}}

/* The lit edge of the disc: a core, a long anamorphic streak, and a slow breath. */
.sf-glint{position:absolute;left:66.7%;top:47.2%;width:0;height:0;pointer-events:none;mix-blend-mode:screen}
.sf-glint i{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:block}
.sf-glint .core{width:9%;aspect-ratio:1;min-width:46px;
  background:radial-gradient(circle,rgba(255,236,214,.95) 0,rgba(240,190,140,.45) 22%,rgba(214,150,96,.12) 48%,transparent 70%);
  animation:sfBreath 5.5s ease-in-out infinite}
.sf-glint .streak{width:62vw;max-width:900px;height:2px;
  background:linear-gradient(90deg,transparent,rgba(240,196,150,.0) 18%,rgba(250,214,176,.55) 50%,rgba(240,196,150,0) 82%,transparent);
  filter:blur(.6px);opacity:.55;animation:sfStreak 5.5s ease-in-out infinite}
.sf-glint .halo{width:34%;aspect-ratio:1;min-width:220px;background:radial-gradient(circle,rgba(214,150,96,.16),transparent 62%);animation:sfBreath 5.5s ease-in-out infinite reverse}
@keyframes sfBreath{0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(.86)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}}
@keyframes sfStreak{0%,100%{opacity:.25;transform:translate(-50%,-50%) scaleX(.7)}50%{opacity:.75;transform:translate(-50%,-50%) scaleX(1)}}
html.sfm .sf.intro .sf-glint{animation:sfFade 2.4s ease 2.2s both}
@keyframes sfFade{from{opacity:0}to{opacity:1}}

/* A band of light that crosses the stone now and then; overlay keeps black black. */
.sf-sweep{position:absolute;inset:-20%;pointer-events:none;mix-blend-mode:overlay;opacity:.7;
  background:linear-gradient(115deg,transparent 40%,rgba(255,214,170,.38) 48%,rgba(255,230,205,.55) 50%,rgba(255,214,170,.38) 52%,transparent 60%);
  transform:translateX(-70%);animation:sfSweep 11s cubic-bezier(.45,0,.2,1) 3.4s infinite}
@keyframes sfSweep{0%{transform:translateX(-70%)}38%,100%{transform:translateX(70%)}}

.sf-dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}
.sf-shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(3,3,3,.55) 0,rgba(3,3,3,0) 16%,rgba(3,3,3,0) 50%,rgba(3,3,3,.82) 78%,#030303 100%),
             radial-gradient(ellipse at 66% 46%,transparent 30%,rgba(3,3,3,.45) 100%)}
.sf-veil{position:absolute;inset:-2px;background:#030303;opacity:0;pointer-events:none}
.sf-grain{position:absolute;inset:-50%;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:sfGrain 1.2s steps(6) infinite}
@keyframes sfGrain{0%{transform:translate(0,0)}20%{transform:translate(-4%,3%)}40%{transform:translate(3%,-5%)}60%{transform:translate(-6%,-2%)}80%{transform:translate(5%,4%)}100%{transform:translate(0,0)}}

/* Words in the dark. */
.sf-mono{font-family:"Basier Square Mono",ui-monospace,Menlo,monospace;font-weight:400}
.sf-date{font-family:"Basier Square Mono",ui-monospace,Menlo,monospace;color:#D9A57A;letter-spacing:.42em;padding-left:.42em;font-size:clamp(15px,1.5vw,21px)}
.sf-title{font-family:var(--display,"mencken-std-head",Georgia,serif);font-weight:400;color:#F2EEE8;letter-spacing:-.015em;line-height:1;
  font-size:clamp(44px,7.4vw,118px);text-wrap:balance;text-shadow:0 2px 40px rgba(0,0,0,.6)}
html.sfm .sf.intro .sf-in > *{animation:sfRise 1.6s cubic-bezier(.16,1,.3,1) both}
html.sfm .sf.intro .sf-in > *:nth-child(1){animation-delay:1.5s}
html.sfm .sf.intro .sf-in > *:nth-child(2){animation-delay:1.9s}
html.sfm .sf.intro .sf-in > *:nth-child(3){animation-delay:2.3s}
html.sfm .sf.intro .sf-in > *:nth-child(4){animation-delay:2.6s}
html.sfm .sf.intro .sf-in > *:nth-child(5){animation-delay:2.9s}
@keyframes sfRise{from{opacity:0;transform:translateY(22px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}

/* Scroll cue: a hairline with a bead of light running down it. */
.sf-cue{position:absolute;left:50%;bottom:22px;width:1px;height:54px;background:rgba(242,238,232,.16);overflow:hidden;transform:translateX(-50%);z-index:3}
.sf-cue::after{content:"";position:absolute;left:0;top:-40%;width:1px;height:40%;background:linear-gradient(transparent,#EDC8A3);animation:sfCue 2.4s cubic-bezier(.6,0,.3,1) infinite}
@keyframes sfCue{to{top:110%}}

/* Words that light up one by one as you scroll (surface.js splits them). */
[data-lightup] .w{opacity:1}
html.sfm [data-lightup] .w{opacity:.14;transition:opacity .25s linear}
html.sfm [data-lightup] .w.lit{opacity:1}

/* Generic reveal for this campaign's sections. */
html.sfm .sv{opacity:0;transform:translateY(28px);transition:opacity 1.2s cubic-bezier(.16,1,.3,1),transform 1.2s cubic-bezier(.16,1,.3,1)}
html.sfm .sv.on{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  .sf-glint *,.sf-sweep,.sf-grain,.sf-cue::after{animation:none !important}
  .sf-sweep{display:none}
}

/* The plate's foot, melted into the scene's black so no edge shows when it rides up. */
.sf-frame::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:24%;background:linear-gradient(rgba(3,3,3,0),#030303);pointer-events:none}

/* ── The event header: the poster itself, whole and untouched (surface-poster.*, 1080×1920).
   It stands at full height in the dark; a blurred wash of the same stone carries it to the
   edges of a wide screen, and its sides melt into that wash. The glint, sweep and dust sit
   on the poster's own lit edge (66%, 35.9%). ── */
.sfp{position:relative;overflow:hidden;background:#030303;isolation:isolate;display:flex;justify-content:center;align-items:flex-start}
.sfp-amb{position:absolute;inset:-6%;background:#030303 url("/surface-ambient.jpg") center 30%/cover no-repeat;opacity:.9;pointer-events:none}
.sfp-amb::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 70% 80% at 50% 36%,rgba(3,3,3,0) 20%,rgba(3,3,3,.5) 62%,#030303),linear-gradient(0deg,#030303 0,rgba(3,3,3,0) 45%)}
.sfp-poster{position:relative;z-index:1;width:min(100vw,calc(max(640px,100svh) * .6075));aspect-ratio:1080/1920;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 76%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 76%,transparent 100%)}
.sfp-poster::after{content:"";position:absolute;left:0;right:0;bottom:0;height:10%;z-index:2;pointer-events:none;background:linear-gradient(rgba(3,3,3,0),#030303)}
.sfp::after{content:"";position:absolute;left:0;right:0;top:0;height:120px;z-index:3;pointer-events:none;background:linear-gradient(rgba(3,3,3,.55),rgba(3,3,3,0))}
.sfp-par{position:absolute;inset:-14px;will-change:transform}
.sfp-par img{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);display:block;user-select:none;-webkit-user-drag:none}
.sfp .sf-glint{left:66%;top:35.9%}
.sfp .sf-glint .core{width:12%;min-width:34px}
.sfp .sf-glint .streak{width:120%;max-width:none}
.sfp .sf-glint .halo{width:46%;min-width:150px}
.sfp .sf-sweep{inset:-30% -60%}
.sfp .sf-dust{z-index:2}
.sfp .sf-cue{bottom:18px}
@media (max-width:640px){.sfp-poster{-webkit-mask-image:none;mask-image:none}.sfp .sf-cue{display:none}}
html.sfm .sfp.intro .sfp-par img{animation:sfLight 3.2s cubic-bezier(.3,.1,.2,1) .15s both;
  -webkit-mask-image:radial-gradient(ellipse at 8% 4%,#000 calc(var(--sf-r) - 40%),transparent var(--sf-r));
          mask-image:radial-gradient(ellipse at 8% 4%,#000 calc(var(--sf-r) - 40%),transparent var(--sf-r))}
html.sfm .sfp.intro .sf-glint{animation:sfFade 2.4s ease 2.2s both}
html.sfm .sfp.intro .sfp-amb{animation:sfAmb 3s ease .6s both}
@keyframes sfAmb{from{opacity:0}to{opacity:.9}}
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
