/* fx.css: the experience layer. Additive by rule: delete the two tags that load fx.css and fx.js
   and every page is exactly what it was. Notes live in fx/NOTES.md, outside the served folder. */

/* fx.js reads this before it touches the page: no stylesheet, no script */
:root{--fx:1}

/* page to page */
@view-transition{navigation:auto}
::view-transition-old(root){animation:fx-out 170ms cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:fx-in 420ms cubic-bezier(.2,.7,.2,1) both}
@keyframes fx-out{to{opacity:0;transform:translateY(-10px)}}
@keyframes fx-in{from{opacity:0;transform:translateY(16px)}}

/* the room: light, grain, progress */
.fx-air{position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;z-index:40;pointer-events:none;opacity:0;transition:opacity 1200ms ease}
.fx-air.on{opacity:1}
.fx-grain{position:fixed;inset:0;z-index:41;pointer-events:none;opacity:.05;
  background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.fx-progress{position:fixed;left:0;top:0;width:100%;height:2px;z-index:70;pointer-events:none;transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,#f5921f,#d4a95c 60%,#f6f2ea)}

/* a location line that wraps on a phone breaks into even halves, so "Texas Hill Country" stays whole */
html .eyebrow{text-wrap:balance}

/* hero */
@media (min-width:900px){
  html main.hero h1{font-size:clamp(56px,5.9vw,88px);max-width:900px;letter-spacing:-.01em}
  html main.hero h1:has([data-stroke="loose"]){font-size:clamp(50px,5vw,72px)}
  html main.hero h1:has([data-stroke="party"]){font-size:clamp(46px,4.6vw,66px)}
  html main.hero .sub-italic{font-size:clamp(28px,2.7vw,40px);margin-top:-6px}
  html main.hero:has(h1 [data-stroke="party"]) .sub-italic{font-size:clamp(24px,2.1vw,30px)}
  html main.hero .lede{font-size:18px;max-width:560px}
  @supports (overflow:clip){html.fx:not(.fx-still) main.hero>.house-bed{scale:1.05}}
}
@media (min-width:900px) and (hover:hover) and (pointer:fine){html.fx:not(.fx-still) main.hero>.house-bed{will-change:translate}}

/* buttons: a sheen on hover, a lean toward the pointer (fx.js) */
html .btn-primary{position:relative;overflow:hidden}
html .btn-primary::after{content:"";position:absolute;inset:0;pointer-events:none;transform:translateX(-130%);
  background:linear-gradient(105deg,transparent 32%,rgba(255,255,255,.5) 50%,transparent 68%)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){html:not(.fx-still) .btn-primary:hover::after{transform:translateX(130%);transition:transform 720ms cubic-bezier(.2,.7,.2,1)}}
@media (hover:hover) and (pointer:fine){html.fx:not(.fx-still) .day:not([aria-pressed="true"]):hover{translate:0 -3px}}

/* the ticker under the hero */
.fx-marquee{position:relative;overflow:hidden;padding:30px 0 34px;contain:content;
  border-top:1px solid rgba(246,242,234,.08);border-bottom:1px solid rgba(246,242,234,.08);
  -webkit-mask:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
.fx-track{display:flex;align-items:center;width:max-content;white-space:nowrap;will-change:transform;transition:opacity 260ms ease}
.fx-track.swap{opacity:0}
.fx-track span{font-family:var(--font-display,Georgia,serif);font-style:italic;font-weight:500;font-size:clamp(34px,5.6vw,80px);line-height:1.05;
  padding:0 .32em;color:transparent;-webkit-text-stroke:1px rgba(212,169,92,.6)}
/* a bare outline traces the joins inside this font's letters: where text can paint stroke-then-fill
   (the same browsers that know light-dark()), ink over the inner half of a 2px stroke hides them */
@supports (color:light-dark(#000,#fff)){.fx-track span{color:var(--ink,#0b0a0c);paint-order:stroke fill;-webkit-text-stroke:2px rgba(212,169,92,.6)}}
.fx-track span:nth-of-type(3n+1){color:#f6f2ea;-webkit-text-stroke:0}
.fx-track i{flex:none;width:9px;height:9px;rotate:45deg;background:linear-gradient(135deg,#f5921f,#d4a95c)}
html.fx-still .fx-marquee{-webkit-mask:none;mask:none}
html.fx-still .fx-track{width:auto;flex-wrap:wrap;justify-content:center;white-space:normal;row-gap:8px}

/* section heads: the eyebrow again, enormous and faint, sliding behind */
html.fx .fx-clip{overflow-x:clip}
html.fx .sec-head{position:relative}
html.fx .sec-head>:not(.fx-ghost){position:relative}
.fx-ghost{position:absolute;left:50%;top:50%;margin:0;white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;
  font-family:var(--font-display,Georgia,serif);font-style:italic;font-weight:500;font-size:clamp(96px,17vw,250px);line-height:1;
  color:rgba(212,169,92,.07);translate:-50% -52%;will-change:transform;
  opacity:0;transition:opacity 900ms ease 200ms}
html.fx .sec-head.in .fx-ghost{opacity:1}
@supports not ((overflow:clip) and (translate:0)){.fx-ghost{display:none}}
@media (forced-colors:active){.fx-ghost{display:none}}

/* photographs: brighter, soft at the edges, drifting as you pass. Dimmed by opacity alone (no
   filter on a moving layer); the drift is for a desktop that is keeping up. */
html :is(section,.pullwrap)>.house-bed{opacity:.21;filter:none;
  -webkit-mask:linear-gradient(transparent,#000 24%,#000 76%,transparent);mask:linear-gradient(transparent,#000 24%,#000 76%,transparent)}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference) and (min-width:900px) and (hover:hover) and (pointer:fine){
    html:not(.fx-still):is(:not(.fx-lite),.fx-hold) :is(section,.pullwrap)>.house-bed{scale:1.16;animation:fx-drift linear both;animation-timeline:view()}
    html:not(.fx-still):is(:not(.fx-lite),.fx-hold) .house-plate{view-timeline:--fx-plate block}
    html:not(.fx-still):is(:not(.fx-lite),.fx-hold) .house-plate .house-med{scale:1.12;animation:fx-drift linear both;animation-timeline:--fx-plate}
    html.fx-hold :is(section,.pullwrap)>.house-bed,html.fx-hold .house-plate .house-med{animation-play-state:paused!important}
  }
}
@keyframes fx-drift{from{translate:0 -5%}to{translate:0 5%}}

/* cards: smoked glass, lit by the pointer. NO backdrop blur, on purpose: under the light canvas
   it is recomputed every frame (14 to 17 frames a second with it, 54 without; fx/NOTES.md). */
html .cards{perspective:1400px}
html .card{isolation:isolate;border-color:rgba(246,242,234,.12);
  background:linear-gradient(180deg,rgba(28,22,19,.66),rgba(11,10,12,.78))}
html .card::before,html .card::after{content:"";position:absolute;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity 320ms ease}
html .card::before{inset:0;z-index:-1;background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),rgba(212,169,92,.13),transparent 62%)}
html .card::after{inset:-1px;padding:1px;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,0%),#f5921f,rgba(212,169,92,.55) 42%,transparent 72%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
@media (hover:hover) and (pointer:fine){html .card:hover::before,html .card:hover::after{opacity:1}}

/* what people said */
html .said blockquote::before{content:"\201C";display:block;height:34px;font-family:var(--font-display,Georgia,serif);font-size:84px;line-height:1;color:#d4a95c;opacity:.55}
html .said .lede{font-family:var(--font-display,Georgia,serif);font-style:italic;font-weight:500;font-size:23px;line-height:1.35;color:#f6f2ea}

/* "The beat never stops": the rule under it is a level meter */
html.fx #set .rule{display:none}
.fx-eq{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:30px}
.fx-eq i{width:3px;height:100%;border-radius:2px;background:linear-gradient(#f5921f,#d4a95c);transform-origin:50% 100%;transform:scaleY(var(--h,.4));
  animation:fx-eq var(--d,900ms) ease-in-out var(--o,0ms) infinite alternate;animation-play-state:paused}
.fx-eq.on i{animation-play-state:running}
@keyframes fx-eq{from{transform:scaleY(.1)}to{transform:scaleY(1)}}
html.fx-still .fx-eq i{animation:none}

/* the last word */
@media (min-width:900px){html #close .sec-head h2{font-size:clamp(48px,5.4vw,80px);max-width:none}}
html.fx footer{overflow:hidden}
.fx-wordmark{margin:44px 0 -.1em!important;padding:0 0 .16em;text-align:center;white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;
  font-family:var(--font-display,Georgia,serif);font-weight:600;font-size:clamp(58px,17vw,270px);line-height:.92;letter-spacing:-.015em;
  color:transparent;
  background:linear-gradient(90deg,#f5921f,#d4a95c 55%,#f6f2ea) no-repeat 0 0/0% 100%,linear-gradient(rgba(212,169,92,.2),rgba(212,169,92,.2));-webkit-background-clip:text;background-clip:text}
html.fx-still .fx-wordmark{background-size:100% 100%,auto}
@media (forced-colors:active){.fx-wordmark{color:CanvasText;background:none}}

/* long reading pages keep the room dim */
html.fx-quiet .fx-grain{opacity:.035}

@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .fx-air,.fx-track,.fx-ghost{transition:none}
}
@media print{.fx-air,.fx-grain,.fx-progress,.fx-marquee,.fx-ghost,.fx-eq,.fx-wordmark{display:none!important}}
