/* DIGITHRONEX · The Cut · Web: the sites we built, in the studio room (white, like a browser).
   - 01 The address bar: our domains type into a browser's bar; each site loads beneath; then this page, whose page is
     the title
   - 02 Eight sites: a laptop frame and a phone frame, each scrolling through a site's whole home page as you scroll
   - 03 The X-ray: a real first screen taken back to its measured layout, then built up again
   - 04 Four kinds of site · 05 In and out
   Only transforms and opacity move. Behavior: web-page.js. Load after home.css and story.css. */

/* ---------- the room's shared parts ---------- */
.studio .eyebrow { color: var(--s-text3); }
.w-head { display: grid; gap: 14px; max-width: 52rem; margin-bottom: clamp(40px, 5vw, 80px); }
.w-title { font-size: clamp(38px, 5vw, 86px); color: var(--s-text); text-wrap: balance; }
.w-lead { margin: 0; max-width: 38em; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--s-text2); }

/* a browser: its bar (the address in mono, a caret while it types) and the page under it; the brand cut on its corner */
.wbrowser {
  --c: var(--cut-m); position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--s-surface);
  box-shadow: inset 0 0 0 1px var(--s-line), 0 40px 80px -48px rgba(11, 12, 14, .45);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.wbrowser-bar { display: flex; align-items: center; gap: 14px; height: clamp(30px, 2.6vw, 40px); padding: 0 calc(var(--c) + 10px) 0 14px; background: var(--s-raised); box-shadow: inset 0 -1px 0 var(--s-line); }
.wbrowser-dots { display: flex; gap: 6px; }
.wbrowser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #C9CDD3; }
.wbrowser-url { flex: 1; display: flex; align-items: center; min-width: 0; height: 66%; padding: 0 12px; border-radius: 3px; background: var(--s-surface); box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-text); font-size: clamp(11px, .85vw, 13px); white-space: nowrap; overflow: hidden; }
.wbrowser-host { overflow: hidden; text-overflow: clip; }
.wbrowser-caret { flex: none; width: 1px; height: 1.15em; margin-left: 1px; background: var(--s-text); animation: wcaret 1.06s steps(1) infinite; }
@keyframes wcaret { 50% { opacity: 0; } }
.wbrowser-view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
/* the page loading: a line in the brand's azure across the top (an instrument line) */
.wbrowser-load { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 2px; background: var(--brand-azure); transform: scaleX(var(--load, 0)); transform-origin: 0 50%; opacity: 0; will-change: transform, opacity; }

/* ---------- 01 The address bar ---------- */
.waddr-track { position: relative; height: 440vh; }
.waddr-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 84px var(--margin) 72px; background: var(--s-ground); }
.waddr-browser { width: min(100%, calc((100svh - 196px) * 1.6)); }
.waddr-view { container-type: inline-size; }
/* a page loading, as a browser does it: the old page clears to white while the line runs, then the new one settles
   in, fading up and easing into place. Going off takes 5 frames; coming on, 12 to 18 */
.waddr-page {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; translate: 0 1.4%; scale: 1.012; transform-origin: 50% 0; will-change: opacity, translate, scale;
  transition: opacity calc(5 * var(--f)) linear, translate 0s linear calc(5 * var(--f)), scale 0s linear calc(5 * var(--f));
}
.waddr-page.is-on {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity calc(12 * var(--f)) var(--ease-focus), translate calc(18 * var(--f)) var(--ease-focus), scale calc(18 * var(--f)) var(--ease-focus);
}
.waddr-captions { position: absolute; left: 50%; top: 50%; z-index: 2; width: 88%; transform: translate(-50%, -50%); }
.waddr-captions .beat-text { font-size: clamp(32px, 8.4cqw, 120px); color: var(--s-text); }
.waddr .beat-cue { color: var(--s-text3); }
/* this page, as the last address loads: white, and the title on it */
.waddr-title {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 2.2cqw;
  padding: 0 7cqw; text-align: center; background: #fff; opacity: 0; pointer-events: none; transition: opacity calc(5 * var(--f)) linear;
}
.waddr-title.is-on { opacity: 1; transition: opacity calc(10 * var(--f)) var(--ease-focus); }
.waddr-title .statement { font-size: clamp(64px, 22cqw, 340px); color: var(--s-text); }
.waddr-kicker { color: var(--s-text3); }
.waddr-lead { max-width: 34em; font-size: clamp(15px, 1.7cqw, 21px); color: var(--s-text2); }
.waddr-credit { position: absolute; left: var(--margin); bottom: clamp(20px, 4vh, 44px); display: flex; align-items: center; gap: 10px; margin: 0; color: var(--s-text2); }
.waddr-rec { flex: none; width: 7px; height: 7px; background: var(--brand-azure); }
.waddr-hint { position: absolute; right: var(--margin); bottom: clamp(20px, 4vh, 44px); margin: 0; color: var(--s-text3); transition: opacity calc(10 * var(--f)) linear; }
.waddr.is-moved .waddr-hint { opacity: 0; }
.js .waddr:not(.is-ready) :is(.waddr-kicker, .waddr-title .statement, .waddr-lead) { opacity: 0; }
.rise-run:not([data-arrival]) .waddr:not(.is-in) .waddr-cue { opacity: 0; animation: waddr-failsafe 1ms linear 2.5s forwards; }
@keyframes waddr-failsafe { to { opacity: 1; } }
.waddr.is-static .waddr-track { height: auto; }
.waddr.is-static .waddr-stage { position: relative; height: auto; min-height: 100vh; }
.waddr.is-static .waddr-title { opacity: 1; }
.waddr.is-static :is(.waddr-captions, .waddr-hint) { display: none; }

/* ---------- 02 Eight sites ---------- */
/* Each site has 140vh of scroll: its address types in, it loads, and both pages scroll through their first screens,
   at about the pace of your own scroll (DIGITHRONEX found the whole page in 70vh too fast, 9 October 2026). The pictures
   are captures of the live home pages; two of each, so the next is ready before it's needed. */
.wsites-track { position: relative; height: calc(100vh + var(--n, 8) * 140vh); }
.wsites-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: var(--gutter);
  padding: clamp(92px, 12vh, 124px) var(--margin) clamp(28px, 5vh, 56px);
}
.wsites-head { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: baseline; gap: 24px; margin-bottom: clamp(16px, 3vh, 36px); }
.wsites-head .w-title { font-size: clamp(30px, 3vw, 52px); }
.wsites-devices { grid-column: 1 / span 8; grid-row: 2; position: relative; align-self: center; }
.wsites-desk { width: min(88%, calc((100svh - 330px) * 1.6)); }
.wsites-page {
  position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; max-width: none;
  opacity: 0; translate: 0 16px; will-change: transform, opacity, translate;
  transition: opacity calc(5 * var(--f)) linear, translate 0s linear calc(5 * var(--f));
}
/* loading: the old page clears while the line runs, then the new one settles in (as in the opening) */
.wsites-page.is-on { opacity: 1; translate: 0 0; transition: opacity calc(12 * var(--f)) var(--ease-focus), translate calc(18 * var(--f)) var(--ease-focus); }
/* the phone: a plain dark body round the screen, standing in front of the laptop's corner */
.wphone { position: absolute; right: 0; bottom: -6%; height: 76%; aspect-ratio: 390 / 844; padding: 7px; border-radius: 30px; background: #0B0C0E; box-shadow: 0 30px 60px -30px rgba(11, 12, 14, .55); }
.wphone-view { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 23px; background: #fff; }
.wsites-info { grid-column: 9 / span 4; grid-row: 2; align-self: center; display: grid; gap: 12px; }
.wsites-no { margin: 0; color: var(--s-text3); }
.wsites-name { margin: 0; font-stretch: 75%; font-weight: 760; font-size: clamp(44px, 4.6vw, 92px); line-height: .9; letter-spacing: -.015em; color: var(--s-text); }
.wsites-kind { margin: 0; color: var(--s-signal); }
.wsites-what { margin: 4px 0 0; max-width: 26em; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; color: var(--s-text2); }
.wsites-facts { display: grid; margin: 8px 0 0; border-top: 1px solid var(--s-line); }
.wsites-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--s-line); }
.wsites-facts dt { color: var(--s-text3); }
.wsites-facts dd { margin: 0; font-size: 15px; color: var(--s-text); text-align: right; }
.wsites-visit { justify-self: start; margin-top: 8px; font-size: 17px; }
.wsites-hint { position: absolute; right: var(--margin); bottom: clamp(16px, 3vh, 32px); margin: 0; color: var(--s-text3); }
.wsites.is-static .wsites-track { height: auto; }
.wsites.is-static .wsites-stage { position: relative; height: auto; min-height: 100vh; }
.wsites.is-static .wsites-hint { display: none; }

/* ---------- 03 The X-ray ---------- */
/* The first screen's real layout, drawn: blocks as fine lines, words as grey bars, pictures as crossed boxes, controls
   in azure. Then the screen itself comes back in the same order: its words, its pictures, then all of it, colour and
   all. Each layer is the real capture, cut to the measured boxes. */
.wxray-track { position: relative; height: 400vh; }
.wxray-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--gutter);
  padding: clamp(96px, 13vh, 132px) var(--margin) clamp(28px, 5vh, 56px);
}
.wxray-head { grid-column: 1 / span 4; grid-row: 1; align-self: start; display: grid; gap: 14px; }
.wxray-head .w-title { font-size: clamp(32px, 3.4vw, 60px); }
.wxray-browser { grid-column: 5 / span 8; grid-row: 1 / span 2; align-self: center; justify-self: end; width: min(100%, calc((100svh - 230px) * 1.6)); }
.wxray-view { background: #fff; }
.wxray-wire { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; will-change: opacity; }
.wxray-block { fill: none; stroke: #B9BEC6; stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.wxray-media rect { fill: rgba(11, 12, 14, .03); stroke: #8A9099; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wxray-media path { fill: none; stroke: #C9CDD3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wxray-text { fill: rgba(11, 12, 14, .1); }
.wxray-control { fill: rgba(1, 128, 255, .06); stroke: var(--brand-azure); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.wxray-layer { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; }
.wxray-words { clip-path: url(#xr-words); }
.wxray-pics { clip-path: url(#xr-pics); }
.wxray-full { z-index: 3; }
.wxray-defs { position: absolute; }
.wxray-steps { grid-column: 1 / span 4; grid-row: 2; align-self: end; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wxray-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 10px 0 10px 14px; border-left: 2px solid var(--s-line); opacity: .38; transition: opacity calc(6 * var(--f)) linear, border-color calc(6 * var(--f)) linear; }
.wxray-steps li.is-on { opacity: 1; border-left-color: var(--brand-azure); }
.wxray-n { grid-row: 1 / span 2; color: var(--s-text3); }
.wxray-name { font-stretch: 112.5%; font-weight: 560; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.1; color: var(--s-text); }
.wxray-line { color: var(--s-text2); }
.wxray.is-static .wxray-track { height: auto; }
.wxray.is-static .wxray-stage { position: relative; height: auto; min-height: 100vh; }
.wxray.is-static .wxray-full { opacity: 1; }
.wxray.is-static .wxray-steps li { opacity: 1; }

/* ---------- 04 Four kinds of site ---------- */
.wkinds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.wkind { display: grid; align-content: start; gap: 12px; padding-top: 18px; border-top: 1px solid var(--s-text); }
.wkind-no { margin: 0; color: var(--s-text3); }
.wkind-name { margin: 0; font-stretch: 75%; font-weight: 760; font-size: clamp(36px, 3.4vw, 64px); line-height: .92; letter-spacing: -.015em; color: var(--s-text); }
.wkind-list { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.wkind-list li { padding: 14px 0; border-bottom: 1px solid var(--s-line); }
.wkind-site { display: grid; gap: 4px; color: var(--s-text); text-decoration: none; }
.wkind-site-name { font-stretch: 112.5%; font-weight: 560; font-size: clamp(17px, 1.3vw, 20px); }
.wkind-site-host { color: var(--s-signal); }
.wkind-site:hover .wkind-site-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wkind-site-meta { margin: 4px 0 0; color: var(--s-text3); }

/* ---------- 05 In and out ---------- */
.wbrief-cols { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.wbrief-cut { background: var(--s-line); }
.wbrief-tag { margin: 0 0 18px; color: var(--s-signal); }
.wbrief-list { display: grid; margin: 0; border-top: 1px solid var(--s-line); }
.wbrief-list div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--s-line); }
.wbrief-list dt { font-stretch: 112.5%; font-weight: 560; font-size: clamp(17px, 1.3vw, 20px); color: var(--s-text); }
.wbrief-list dd { margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--s-text2); }
.wbrief .fact { white-space: normal; }

@media (max-width: 900px) {
  /* phones see the phone captures: the first screens are the top of each phone page */
  .waddr-stage { padding: 76px 16px 64px; }
  .waddr-browser { width: min(100%, calc((100svh - 180px) * .5)); }
  .waddr-view { aspect-ratio: 390 / 700; }
  .waddr-title .statement { font-size: clamp(64px, 30cqw, 160px); }
  .waddr-lead { font-size: 15px; }
  .waddr-hint { display: none; }
  .wsites-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; padding-top: 80px; }
  .wsites-head { grid-column: 1; flex-direction: column; gap: 6px; margin-bottom: 10px; }
  .wsites-devices { grid-column: 1; grid-row: 2; display: grid; place-items: center; min-height: 0; height: 100%; }
  .wsites-desk { display: none; }
  .wphone { position: relative; right: auto; bottom: auto; height: 100%; max-height: 520px; }
  .wsites-info { grid-column: 1; grid-row: 3; gap: 6px; padding-top: 14px; }
  .wsites-name { font-size: clamp(34px, 10vw, 52px); }
  .wsites-what, .wsites-facts { display: none; }
  .wsites-hint { display: none; }
  .wxray-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; padding-top: 80px; row-gap: 14px; }
  .wxray-head { grid-column: 1; grid-row: 1; gap: 8px; }
  .wxray-head .w-lead { display: none; }
  .wxray-browser { grid-column: 1; grid-row: 2; width: 100%; justify-self: center; }
  .wxray-steps { grid-column: 1; grid-row: 3; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .wxray-steps li { grid-template-columns: minmax(0, 1fr); padding-left: 8px; }
  .wxray-n, .wxray-line { display: none; }
  .wxray-name { font-size: 15px; }
  .wkinds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .wbrief-cols { grid-template-columns: minmax(0, 1fr); }
  .wbrief-cut { display: none; }
  .wbrief-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 560px) {
  .wkinds-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wbrowser-caret { animation: none; }
  .wxray-steps li, .waddr-hint, .waddr-page, .waddr-page.is-on, .waddr-title, .waddr-title.is-on, .wsites-page, .wsites-page.is-on { transition: none; }
}
