/* THE WORK WALL, one home for its styles. Read by work-wall.html,
   work-wall-flat.html AND the homepage, which carries its own token block and
   lacks a few of two-suns-site.css's names, hence the fallbacks on every var. Geometry
   is written by two-suns-wall.js from _reference/MEASURED-SPEC.md; nothing about the
   layout lives in markup. */

.wall{
  /* A full-bleed scene owns its own height (DESIGN.md section 3). The
     standalone page shortens it by the nav so no panel sits behind the links. */
  position:relative;min-height:var(--wall-h,100svh);background:var(--bg-b,#0C0B0A);
  overflow:hidden;isolation:isolate;
  /* 0.462 x stage width, set by two-suns-wall.js: a 94.5 degree field of view, measured
     off the reference. The single number both earlier builds got most wrong. */
  perspective:var(--persp,665px);perspective-origin:50% 50%;
  /* the phone drives the wall by scroll, so nothing here may trap a touch */
  touch-action:pan-y;
}
.wall-field{
  position:absolute;inset:0;transform-style:preserve-3d;
  /* The field must not take the pointer itself. Its own box sits at z 0 while
     every panel sits behind it, so without this the field wins every hit test
     and no panel ever sees a hover. */
  pointer-events:none;
  /* The room slides as one rigid piece. Panels at different depths move
     different amounts on screen, which is the parallax; nothing rotates. */
  transform:translate3d(var(--px,0px),var(--py,0px),0);
  will-change:transform;
}
.wall-tile{
  position:absolute;top:50%;left:50%;width:var(--w,640px);pointer-events:auto;
  transform:
    translate(-50%,-50%)
    translate3d(var(--tx,0px),var(--ty,0px),var(--tz,0px))
    rotateY(var(--ry,0deg));
  backface-visibility:hidden;
}
/* Rest brightness .42 (the recording measures .36; Liam asked for about 15%
   more, 2026-09-01) and hovered .86. The reference's resting panels are dim
   but in FULL colour, so no grayscale here even though the notes index runs
   its covers grey. */
.wall-tile img{
  display:block;width:100%;height:auto;border-radius:var(--r-inner,14px);
  filter:brightness(.42);
  transition:filter var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1));
}
.wall-tile:hover img,.wall-tile:focus-visible img{filter:brightness(.86)}
.wall-tile:focus-visible{outline:2px solid var(--ink,#EDE9E1);outline-offset:4px}

.wall-lock{
  position:absolute;inset:0;z-index:3;pointer-events:none;
  display:grid;place-content:center;justify-items:center;
  gap:var(--s-3,16px);text-align:center;padding:0 var(--gutter,24px);
}
.wall-lock h2{
  margin:0;font-family:var(--font-display);font-weight:200;
  font-size:var(--t-3,clamp(26px,3.8vw,54px));
  line-height:1.0;letter-spacing:-.02em;color:var(--ink,#EDE9E1);
}

/* The pill is a flat overlay in screen space that follows the pointer, not a
   child of the panel: in the capture it stays square to the viewport while
   its panel is angled away. It fades in over 60ms and out over 110ms, both
   measured off the recording. */
.wall-pill{
  position:absolute;z-index:4;pointer-events:none;
  display:inline-flex;align-items:center;gap:var(--s-2,10px);
  padding:var(--s-2,10px) var(--s-3,16px);
  background:var(--ink,#EDE9E1);color:var(--bg-b,#0C0B0A);border-radius:999px;
  font-family:var(--font,'Schibsted Grotesk',system-ui,sans-serif);
  font-size:var(--t-7,clamp(13px,1.1vw,16px));line-height:1;white-space:nowrap;
  opacity:0;transition:opacity var(--dur-1) var(--ease,cubic-bezier(.22,1,.36,1));
}
.wall-pill::after{content:"\2197"}
.wall-pill[data-on]{opacity:1;transition-duration: var(--dur-1)}

/* No pointer, no parallax: the field sits still and every panel stays reachable
   by tab. */
@media(prefers-reduced-motion:reduce){.wall-field{transform:none}}

/* The flat variant. Same panels and same pill, room removed: every panel sits
   at one depth facing forward, and only the field itself drifts. */
.wall--flat .wall-tile{transform:translate(-50%,-50%) translate3d(var(--tx,0px),var(--ty,0px),0)}

/* THE PROOF SECTION on the homepage: Case studies with a toggle between the
   SEO and GEO cases and the websites, which are the wall. One section, two
   views, and the switch is the show: the cards blur back into the ground
   while the room's panels rise out of the dark and take their places, centre
   first, rims last. The way back runs the same film in reverse. */
.proof{--proof-dur:1.1s}
.proof .wall{position:absolute;inset:0;min-height:0;z-index:1}
/* the header floats over the room, so the top of the room sinks into the
   ground just enough for the label and the toggle to read. The reference
   has no falloff anywhere; this is the one concession, and only up top. */
.proof .wall::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,var(--bg-b,#0C0B0A) 0%,rgba(12,11,10,.55) 14%,rgba(12,11,10,0) 34%)}
/* Phones and tablets stack the case bento into one column, 2,625px tall on a
   390px phone, and the hidden cards kept that height in the websites view, so
   the wall stretched to it: a screen of black under the toggle and the middle
   of the room a screen and a half down (Liam, October 23, 2026). Here the wall
   is one screen from the top of the section in both views, so two-suns-wall.js builds
   the ring for that height, and while the websites show the cards give up
   their height and the section is one screen again. two-suns-home.css drops the
   section's min-height on phones for the cards, hence the !important. */
@media(max-width:900px){
  .proof .wall{bottom:auto;height:100svh}
  .proof[data-view="web"]{min-height:100svh !important;justify-content:flex-start !important}
  .proof[data-view="web"] [data-proof-cases]{height:0}
}

/* the toggle: the mono label for the cases on its cream block. Websites used to
   be its second label; the peek below took its place (October 25, 2026). */
.proof-toggle{position:relative;display:inline-flex;flex:none;align-self:flex-start;padding:3px;border:1px solid var(--line,rgba(237,233,225,.13));border-radius:var(--r-sm,4px)}
.proof-toggle button{
  position:relative;z-index:1;background:none;border:0;margin:0;padding:10px 16px;cursor:pointer;
  min-height:44px;
  font-family:'Geist Mono',monospace;font-size:var(--t-label,11px);font-weight:500;letter-spacing:.22em;
  text-transform:uppercase;color:var(--quiet,#8C8579);white-space:nowrap;
  transition:color var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1));
}
.proof-toggle button[aria-pressed="true"]{color:var(--bg-b,#0C0B0A)}
.proof-toggle button:focus-visible{outline:2px solid var(--ink,#EDE9E1);outline-offset:2px}
.proof-toggle i{
  position:absolute;top:3px;bottom:3px;left:var(--l,3px);width:var(--w,0px);
  background:var(--ink,#EDE9E1);border-radius:calc(var(--r-sm,4px) - 2px);
  transition:left var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),width var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1));
}

/* THE FILM. One camera, and it only ever moves forward. Three eases:
   --in starts slow and lands soft, for anything arriving; --out leaves
   fast, for anything dissolving; --pass accelerates through the middle,
   for anything travelling past the lens.
   IN  (cases to websites)  the cards come at the camera and pass it, growing
       and blurring, 0 to .7s; the room arrives from deep: scaled down and
       dark it opens to full size over 1.4s while its panels rise from 1.5
       stage widths back, centre first, the last one starting at .55s.
   OUT (websites to cases)  the room keeps coming. Each panel pushes half a
       stage width toward the camera, rims first, brightening to full as it
       passes the light and dissolving before it reaches the lens, so no
       panel ever goes black and none ends up behind the camera; the room
       swells and is gone by 1s. From .45s, while the last centre panels are
       still passing, the cards arrive from deep, small and soft, and
       sharpen over 1.1s. The overlap is what makes it one move.
   Both films start from a DEEP pose that two-suns-wall.js parks the arriving view in
   for one frame (data-prime) before it releases the switch; the hidden pose
   each view rests in is the PASSED one. */
.proof{--in:cubic-bezier(.65,0,.15,1);--out:cubic-bezier(.5,0,.75,.2);--pass:cubic-bezier(.7,0,.3,1)}

/* the two headings share one cell and trade places */
.proof-h{display:grid;align-items:end}
/* either view's heading, or a heading with its introduction */
.proof-h>*{grid-area:1/1;transition:opacity var(--dur-2) var(--in),transform var(--dur-3) var(--in)}
.proof[data-view="web"] .proof-h>[data-proof-h="seo"]{opacity:0;transform:translateY(-16px);pointer-events:none;transition-timing-function:var(--out)}
.proof[data-view="seo"] .proof-h>[data-proof-h="web"]{opacity:0;transform:translateY(16px);pointer-events:none;transition-timing-function:var(--out)}
.proof[data-view="web"] .proof-h>[data-proof-h="web"]{transition-delay:.35s}
.proof[data-view="seo"] .proof-h>[data-proof-h="seo"]{transition-delay:.55s}
[data-proof-arrows]{transition:opacity var(--dur-2) var(--in) .6s}
.proof[data-view="web"] [data-proof-arrows]{opacity:0;pointer-events:none;transition-delay:0s}

/* the cards: rest, passed (hidden), deep (the one-frame start) */
[data-proof-cases]{
  transition:opacity var(--dur-3) var(--in) .45s,transform 1.2s var(--in) .45s,filter var(--dur-3) var(--in) .45s,visibility 0s .45s;
}
.proof[data-view="web"] [data-proof-cases]{
  opacity:0;transform:scale(1.06) translateY(-12px);filter:blur(14px);pointer-events:none;visibility:hidden;
  transition:opacity var(--dur-2) var(--out) .1s,transform var(--dur-3) var(--pass),filter var(--dur-2) var(--out),visibility 0s .75s;
}
.proof[data-prime="seo"] [data-proof-cases]{
  opacity:0;transform:scale(.94) translateY(28px);filter:blur(14px);visibility:hidden;transition:none;
}

/* the room as a whole: rest, passed, deep */
.proof .wall{transition:transform 1.4s var(--in),opacity var(--dur-3) var(--in),visibility 0s}
.proof[data-view="seo"] .wall{
  transform:scale(1.1);opacity:0;visibility:hidden;pointer-events:none;
  transition:transform var(--dur-3) var(--pass),opacity var(--dur-3) var(--out) .3s,visibility 0s 1s;
}
.proof[data-prime="web"] .wall{transform:scale(.88);opacity:0;visibility:hidden;transition:none}

/* the panels. --d is the stagger, written per panel by two-suns-wall.js from its
   distance to the middle of the stage: centre first on the way in, rims
   first on the way out. --push and --deep are half and one and a half stage
   widths, also from two-suns-wall.js, so the travel scales with the room. */
.proof .wall-tile{transition:transform 1.4s var(--in) var(--d,0ms)}
.proof .wall-tile img{transition:filter var(--dur-3) var(--in) calc(var(--d,0ms) + .15s),opacity var(--dur-3) var(--in) var(--d,0ms)}
.proof[data-view="seo"] .wall-tile{
  transform:translate(-50%,-50%) translate3d(var(--tx,0px),var(--ty,0px),calc(var(--tz,0px) + var(--push,700px))) rotateY(var(--ry,0deg));
  transition:transform var(--dur-3) var(--pass) var(--d,0ms);
}
/* full light as it passes, then gone: never a black slab on the ground */
.proof[data-view="seo"] .wall-tile img{
  filter:brightness(1);opacity:0;
  transition:filter var(--dur-2) var(--out) var(--d,0ms),opacity var(--dur-2) var(--out) calc(var(--d,0ms) + .25s);
}
.proof[data-prime="web"] .wall-tile{
  transform:translate(-50%,-50%) translate3d(var(--tx,0px),var(--ty,0px),calc(var(--tz,0px) - var(--deep,2200px))) rotateY(var(--ry,0deg));
  transition:none;
}
.proof[data-prime="web"] .wall-tile img{filter:brightness(0);opacity:0;transition:none}
/* once the room has settled, hover answers at its normal speed again */
.proof[data-settled] .wall-tile img{transition:filter var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)) 0s}
@media(prefers-reduced-motion:reduce){
  .proof .wall,.proof .wall-tile,.proof .wall-tile img,.proof-h>*,[data-proof-cases],[data-proof-arrows],.proof-toggle i{transition-duration: 0s;transition-delay:0s}
}

/* THE PEEK (October 25, 2026): the way in to the websites, in place of the
   toggle's Websites button. Three of the wall's own screenshots fanned beside
   the toggle, dim the way the wall rests, over a mono go-link (the Go link's
   hairline and travelling arrow). It sits on the toggle's row and wraps under
   it on a phone. Dealt out once by two-suns-wall.js (data-peek="in", held back while
   "wait"); it steps aside in the websites view, where SEO and AI search takes
   a leading arrow and becomes the way back. */
.proof-tog{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;align-self:flex-start}
.cue-peek{display:flex;align-items:center;gap:16px;margin:0;padding:0;background:none;border:0;cursor:pointer;
  color:var(--ink,#EDE9E1);white-space:nowrap;
  transition:opacity var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)) .45s,visibility 0s}
.cue-peek:focus-visible{outline:2px solid var(--ink,#EDE9E1);outline-offset:6px;border-radius:var(--r-sm,4px)}
.peek-fan{position:relative;flex:none;width:100px;height:44px}
.peek-fan img{position:absolute;left:50%;top:50%;width:58px;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;
  border-radius:var(--r-sm,4px);box-shadow:0 0 0 1px var(--line,rgba(237,233,225,.13)),0 6px 16px rgba(0,0,0,.45);
  filter:brightness(.5);transform:var(--t);
  transition:transform var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),filter var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1))}
.peek-fan img:nth-child(1){--t:translate(-50%,-50%) translateX(-24px) rotate(-9deg)}
.peek-fan img:nth-child(2){--t:translate(-50%,-50%) translateX(24px) rotate(9deg)}
.peek-fan img:nth-child(3){--t:translate(-50%,-50%) translateY(-3px);z-index:1;filter:brightness(.78)}
.cue-peek:hover .peek-fan img,.cue-peek:focus-visible .peek-fan img{filter:brightness(.92)}
.cue-peek:hover .peek-fan img:nth-child(1){transform:translate(-50%,-50%) translateX(-31px) rotate(-13deg)}
.cue-peek:hover .peek-fan img:nth-child(2){transform:translate(-50%,-50%) translateX(31px) rotate(13deg)}
.cue-peek:hover .peek-fan img:nth-child(3){transform:translate(-50%,-50%) translateY(-6px)}
.peek-label{font-family:'Geist Mono',monospace;font-size:var(--t-label,11px);font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  padding-bottom:6px;border-bottom:1px solid var(--line,rgba(237,233,225,.13))}
.peek-label::after{content:"\2192";display:inline-block;margin-left:10px;transition:transform var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1))}
.cue-peek:hover .peek-label::after{transform:translateX(4px)}
/* dealt out of the toggle, centre card last, then the line */
.proof[data-peek="wait"] .cue-peek{opacity:0}
.proof[data-peek="in"] .peek-fan img{animation:peek-in .7s var(--ease,cubic-bezier(.22,1,.36,1)) backwards}
.proof[data-peek="in"] .peek-fan img:nth-child(2){animation-delay:.08s}
.proof[data-peek="in"] .peek-fan img:nth-child(3){animation-delay:.16s}
.proof[data-peek="in"] .peek-label{animation:peek-label .6s var(--ease,cubic-bezier(.22,1,.36,1)) .3s backwards}
@keyframes peek-in{from{opacity:0;transform:translate(-50%,-50%) translateX(-40px) scale(.8) rotate(0deg)}}
@keyframes peek-label{from{opacity:0;transform:translateX(-8px)}}
/* the websites view: the peek steps aside, the block fades where it stands,
   and SEO and AI search reads as the way back */
.proof[data-view="web"] .cue-peek{opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity var(--dur-2) var(--out,cubic-bezier(.5,0,.75,.2)),visibility 0s .35s}
.proof [data-proof-ind]{transition:left var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),width var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),opacity var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1))}
.proof[data-view="web"] [data-proof-ind]{opacity:0}
.proof-toggle [data-proof-to="seo"]::before{content:"\2190";display:inline-block;width:0;margin-right:0;opacity:0;overflow:hidden;vertical-align:top;
  transition:width var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),margin var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),opacity var(--dur-2)}
.proof[data-view="web"] .proof-toggle [data-proof-to="seo"]::before{width:1.2em;margin-right:.5em;opacity:1}
.proof[data-view="web"] .proof-toggle [data-proof-to="seo"]:hover{color:var(--ink,#EDE9E1)}
@media(max-width:720px){
  .cue-peek{gap:12px}
  .peek-label{font-size:var(--t-micro,10px);letter-spacing:.18em}
  /* a smaller fan, so the row keeps inside the gutters on a 360px phone */
  .peek-fan{width:80px;height:38px;margin-left:2px}
  .peek-fan img{width:46px}
  .peek-fan img:nth-child(1){--t:translate(-50%,-50%) translateX(-16px) rotate(-9deg)}
  .peek-fan img:nth-child(2){--t:translate(-50%,-50%) translateX(16px) rotate(9deg)}
}
/* under 360px the line is wider than the room beside the fan, so it takes two */
@media(max-width:359px){
  .cue-peek{min-width:0;white-space:normal;text-align:left}
  .peek-label{line-height:1.6}
}
@media(prefers-reduced-motion:reduce){.proof .peek-fan img,.proof .peek-label{animation:none !important}}
