/* Regoh Live Signal components. Every value is a token from tokens.json. */
.ls { background: var(--bg); color: var(--fg); font-family: var(--font-sora); font-size: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }
.ls :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:where(.ls) :is(h1, h2, h3, p) { margin: 0; }
.ls-display-xl { font-weight: 300; font-size: clamp(3rem, 5.6vw + 1rem, 7.25rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.ls-display-l { font-weight: 300; font-size: clamp(2.25rem, 3.4vw + 1rem, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.ls-display-m { font-weight: 300; font-size: clamp(1.75rem, 1.6vw + 1rem, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.ls-title { font-weight: 400; font-size: clamp(1.25rem, 0.6vw + 1rem, 1.625rem); line-height: 1.25; letter-spacing: -0.015em; }
.ls-lead { font-weight: 400; font-size: clamp(1.125rem, 0.4vw + 1rem, 1.375rem); line-height: 1.45; color: var(--fg-muted); max-width: 40ch; }
.ls-small { font-size: var(--text-small); line-height: 1.5; color: var(--fg-subtle); }
:where(.ls) p { max-width: 34em; text-wrap: pretty; }
.ls-signal { color: var(--signal); }

/* Button: one primary per screen */
.ls-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control); padding: 0 28px; border: 0; border-radius: var(--radius-m);
  background: var(--button-bg); color: var(--button-fg); font: 600 var(--text-body)/1 var(--font-sora); text-decoration: none; cursor: pointer;
  transition: background-color var(--time-micro) var(--ease-color), transform var(--time-micro) var(--ease-out); }
.ls-btn:hover { background: var(--button-bg-hover); }
.ls-btn:active { background: var(--button-bg-active); transform: translateY(1px); }
.ls-btn:disabled { background: var(--button-bg-disabled); color: var(--button-fg-disabled); cursor: not-allowed; transform: none; }
.ls-link { display: inline-flex; align-items: center; min-height: var(--size-target); padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--link-fg); font: 400 var(--text-body)/1.2 var(--font-sora); text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 1px; text-underline-offset: .35em;
  transition: text-decoration-thickness var(--time-short) var(--ease-color), text-underline-offset var(--time-short) var(--ease-color); }
.ls-link:hover { text-decoration-thickness: 2px; text-underline-offset: .25em; }
.ls-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); }

/* Nav */
.ls-nav { display: flex; align-items: center; gap: var(--space-6); min-height: var(--size-nav); padding: 0 var(--space-16); background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.ls-nav__logo { display: flex; align-items: center; min-height: var(--size-target); }
.ls-nav__logo img { width: 140px; height: auto; display: block; }
.ls-nav__links { display: flex; gap: var(--space-1); margin-left: auto; }
.ls-nav__links a { display: inline-flex; align-items: center; min-height: var(--size-target); padding: 0 var(--space-3); color: var(--nav-link); font-size: var(--text-ui); text-decoration: none; transition: color var(--time-short) var(--ease-color); }
.ls-nav__links a:hover { color: var(--nav-link-current); }
.ls-nav__links a[aria-current] { color: var(--nav-link-current); box-shadow: inset 0 -2px 0 var(--nav-indicator); }
.ls-nav__tel { color: var(--fg); font-size: var(--text-ui); font-variant-numeric: tabular-nums; padding-left: var(--space-6); border-left: 1px solid var(--line); white-space: nowrap; }
.ls-nav__menu { display: none; margin-left: auto; align-items: center; gap: var(--space-2); min-height: var(--size-target); padding: 0; border: 0; background: none; color: var(--fg); font: 400 var(--text-ui)/1 var(--font-sora); cursor: pointer; }

/* Phone menu */
.ls-menu { display: flex; flex-direction: column; padding: var(--space-2) var(--space-4) var(--space-6); background: var(--bg); }
.ls-menu a { display: flex; align-items: center; min-height: var(--size-bar); border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 300; font-size: var(--text-menu); letter-spacing: -0.025em; }
.ls-menu a[aria-current] { color: var(--signal-ink); }
.ls-menu a.ls-btn { white-space: nowrap; margin-top: var(--space-6); min-height: var(--size-control); justify-content: center; border-bottom: 0; color: var(--button-fg); font-weight: 600; font-size: var(--text-body); letter-spacing: 0; }

/* Hero */
.ls-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 520px; overflow: hidden; background: var(--surface); }
.ls-hero__photos { position: absolute; inset: 0; z-index: -1; }
.ls-hero__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); opacity: 0; }
/* Crossfade: the incoming photo fades in on top; the outgoing one stays fully visible beneath, so the frame never dims */
.ls-hero__photos:not(.is-live) img:first-child, .ls-hero__photos img.is-prev { opacity: 1; }
.ls-hero__photos img.is-current { opacity: 1; z-index: 1; transition: opacity var(--time-crossfade) var(--ease-in-out); }
.ls-hero__photos::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, var(--scrim-strong), transparent 55%), linear-gradient(90deg, var(--hero-scrim), transparent 80%); }
/* Copy sits in the bottom-left corner; the actions row shares its centre line with the pause button in the bottom-right */
.ls-hero { --hero-gutter: var(--space-16); --hero-foot: var(--space-12); }
.ls-hero__in { display: grid; gap: var(--space-6); width: min(100%, var(--size-container)); margin-inline: auto;
  padding: var(--space-28) calc(var(--hero-gutter) + var(--size-target) + var(--space-4)) var(--hero-foot) var(--hero-gutter); }
.ls-hero .ls-lead, .ls-hero .ls-small { color: var(--fg); }
.ls-hero__pause { position: absolute; right: var(--hero-gutter); bottom: calc(var(--hero-foot) + (var(--size-control) - var(--size-target)) / 2); z-index: 3; display: grid; place-items: center; width: var(--size-target); height: var(--size-target);
  border: 1px solid var(--line-strong); background: var(--scrim); color: var(--fg); cursor: pointer; }
.ls-hero__pause .ls-pause__play, .ls-hero__pause[aria-pressed="true"] .ls-pause__pause { display: none; }
.ls-hero__pause[aria-pressed="true"] .ls-pause__play { display: inline-flex; }

/* Discipline card */
.ls-card { display: grid; grid-template-rows: auto 1fr; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--fg); text-decoration: none; transition: border-color var(--time-short) var(--ease-color); }
.ls-card:focus-visible { border-color: var(--card-border-hover); }
.ls-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ls-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--photo-filter-hover); }
.ls-card__txt { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-8); }
.ls-card__txt p { color: var(--fg-muted); font-size: var(--text-ui); }
.ls-card__go { color: var(--fg); font-size: var(--text-ui); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: .35em; }

/* Project row */
.ls-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row-border); }
.ls-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 4fr); gap: var(--space-6) var(--space-8); align-items: center; padding: var(--space-6) 0; border-bottom: 1px solid var(--row-border); color: var(--fg); text-decoration: none; transition: background-color var(--time-short) var(--ease-color); }
.ls-row__img { aspect-ratio: 4 / 3; overflow: hidden; }
.ls-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--photo-filter); }
.ls-row > p { color: var(--fg-muted); font-size: var(--text-ui); }

/* Gallery and viewer */
.ls-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.ls-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.ls-gallery a { position: relative; display: block; height: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.ls-gallery li:first-child a { aspect-ratio: auto; }
.ls-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--photo-filter-hover); }
/* Photo shade: dims card and gallery photos at rest; hover fades it (opacity only, no filter animation) */
.ls-card__img::after, .ls-gallery a::after, .ls-slide__img::after, .ls-post__img::after { content: ""; position: absolute; inset: 0; background: var(--photo-shade); pointer-events: none; transition: opacity var(--time-short) var(--ease-color); }
.ls-card:focus-visible .ls-card__img::after, .ls-gallery a:focus-visible::after, .ls-slide:focus-visible .ls-slide__img::after, .ls-post:focus-visible .ls-post__img::after { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .ls-card:hover { border-color: var(--card-border-hover); }
  .ls-card:hover .ls-card__img::after, .ls-gallery a:hover::after, .ls-slide:hover .ls-slide__img::after, .ls-post:hover .ls-post__img::after { opacity: 0; }
  .ls-row:hover { background: var(--row-bg-hover); }
}
.ls-viewer { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-3); padding: var(--space-12) var(--space-16); background: var(--viewer-bg); color: var(--fg); }
.ls-viewer img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
/* Photo inside a figure with its caption: the figure takes the viewer's free height and the photo scales to fit it, never scrolls */
.ls-viewer figure { touch-action: pan-y pinch-zoom; margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-3); grid-row: 1 / -1; }
.ls-viewer__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--viewer-button-bg); color: var(--fg); font: 400 var(--text-title)/1 var(--font-sora); cursor: pointer; transition: background-color var(--time-short) var(--ease-color), color var(--time-short) var(--ease-color); }
.ls-viewer__btn:hover { background: var(--signal); color: var(--on-signal); }

/* Test-group fold */
.ls-fold { border-bottom: 1px solid var(--row-border); }
.ls-fold button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--size-bar); cursor: pointer; color: var(--fg); font: 400 var(--text-title)/1.25 var(--font-sora); }
.ls-fold button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ls-fold button::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--fold-chevron); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--time-short) var(--ease-in-out); }
.ls-fold button[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ls-fold__body { padding-bottom: var(--space-6); }
.ls-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); color: var(--fg-muted); font-size: var(--text-ui); }
.ls-ticks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-2); }
.ls-ticks li::before { content: ""; width: 8px; height: 1px; margin-top: .8em; background: var(--signal); }

/* Form field */
.ls-field { display: grid; gap: var(--space-2); }
.ls-field label { font-size: var(--text-small); font-weight: 600; color: var(--fg); }
.ls-field label span, .ls-field__hint { font-weight: 400; color: var(--fg-subtle); font-size: var(--text-small); }
.ls-field input, .ls-field select, .ls-field textarea { width: 100%; min-height: var(--size-control); padding: var(--space-3) var(--space-4); border: 1px solid var(--input-border); border-radius: var(--radius-m); background: var(--input-bg); color: var(--fg); font: 400 var(--text-body)/1.4 var(--font-sora); transition: border-color var(--time-short) var(--ease-color); }
.ls-field input:hover, .ls-field select:hover, .ls-field textarea:hover { border-color: var(--input-border-hover); }
.ls-field input:focus-visible, .ls-field select:focus-visible, .ls-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ls-field [aria-invalid="true"] { border-color: var(--input-error); border-width: 2px; }
.ls-field__err { color: var(--input-error); font-size: var(--text-small); font-weight: 600; }
.ls-form__msg { grid-column: 1 / -1; margin: 0; padding: var(--space-4); border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font-size: var(--text-body); }
.ls-form__msg--error { border-color: var(--error); color: var(--error); }

/* Call bar (phones) */
.ls-callbar { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: var(--size-bar); padding: 0 var(--space-4); background: var(--callbar-bg); color: var(--callbar-fg); text-decoration: none; font-size: var(--text-body); font-variant-numeric: tabular-nums; transition: transform var(--time-sheet) var(--ease-drawer), opacity var(--time-short) var(--ease-color); }
.ls-callbar.is-hidden { transform: translateY(110%); pointer-events: none; }
.ls-callbar span { font-size: var(--text-small); font-weight: 600; }
.ls-callbar:active { background: var(--signal-pressed); }

/* Footer */
/* Footer: the call, a row of labelled columns, the logo across the full width, a base line */
.ls-footer { display: grid; gap: var(--space-16); padding: var(--space-28) var(--space-16) var(--space-8); border-top: 1px solid var(--line); color: var(--footer-fg); font-size: var(--text-ui); }
.ls-footer__call { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) var(--space-16); align-items: end; }
.ls-footer__call > div { display: grid; gap: var(--space-6); }
.ls-footer__call h2 { color: var(--fg); }
.ls-footer__tels a { display: block; color: var(--fg); font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 3.75rem); line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }
/* Two groups: contact details (white) | a hairline | site links (grey) */
.ls-footer__cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-8) var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.ls-footer__group { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-8); align-content: start; }
.ls-footer__group > * { display: grid; align-content: start; gap: var(--space-1); }
.ls-footer__group--links { padding-left: var(--space-16); border-left: 1px solid var(--line); }
.ls-footer__cols p { color: var(--fg); }
.ls-footer .ls-footer__group--links a { color: var(--fg-muted); } /* beats .ls-footer a */
.ls-footer__label { margin: 0 0 var(--space-2); color: var(--fg-subtle); font-size: var(--text-small); font-weight: 400; }
.ls-footer__cols p { margin: 0; }
.ls-footer a { color: var(--fg); text-decoration-color: var(--link-underline); text-underline-offset: .35em; }
.ls-footer__cols nav a { display: flex; align-items: center; min-height: var(--size-target); text-decoration: none; }
.ls-footer__social { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ls-footer__social a { display: grid; place-items: center; width: var(--size-target); height: var(--size-target); border: 1px solid var(--line-strong); border-radius: var(--radius-m); transition: border-color var(--time-short) var(--ease-color); }
.ls-footer__logo { display: block; }
.ls-footer__logo img { display: block; width: 100%; height: auto; }
.ls-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); color: var(--fg-subtle); font-size: var(--text-small); }
.ls-footer__base p { margin: 0; }
.ls-footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.ls-footer__legal a { display: inline-flex; align-items: center; min-height: var(--size-target); color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .35em; }
@media (hover: hover) and (pointer: fine) {
  .ls-footer__cols nav a:hover, .ls-footer__cols p a:hover { text-decoration: underline; text-decoration-color: var(--link-underline); }
  .ls-footer .ls-footer__group--links a:hover { color: var(--fg); }
  .ls-footer__tels a:hover { color: var(--signal-ink); }
  .ls-footer__social a:hover { border-color: var(--card-border-hover); }
}

/* Long-form text (Insights articles) */
.ls-prose { max-width: 34em; font-size: var(--text-body); line-height: 1.6; color: var(--fg); }
.ls-prose > * + * { margin-top: var(--space-6); }
.ls-prose h2 { margin-top: var(--space-16); font-weight: 300; font-size: clamp(1.75rem, 1.6vw + 1rem, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.ls-prose h3 { margin-top: var(--space-12); font-weight: 400; font-size: clamp(1.25rem, 0.6vw + 1rem, 1.625rem); line-height: 1.25; letter-spacing: -0.015em; }
.ls-prose h2 + *, .ls-prose h3 + * { margin-top: var(--space-4); }
.ls-prose p, .ls-prose li { text-wrap: pretty; }
.ls-prose ul { margin-bottom: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.ls-prose li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-2); }
.ls-prose li::before { content: ""; width: 8px; height: 1px; margin-top: .8em; background: var(--signal); }
.ls-prose a { color: var(--fg); text-decoration-color: var(--link-underline); text-underline-offset: .3em; }

/* Icons (Phosphor regular), theme toggle, menu button glyphs */
.ls [hidden] { display: none !important; }
.ls .ico { width: 1.25em; height: 1.25em; flex: none; }
.ls-theme { display: inline-flex; align-items: center; justify-content: center; width: var(--size-target); height: var(--size-target); padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; }
.ls-theme__moon, .ls-nav__menu .ls-menu__close { display: none; }
:root[data-theme="light"] .ls-theme__sun, .ls[data-theme="light"] .ls-theme__sun { display: none; }
:root[data-theme="light"] .ls-theme__moon, .ls[data-theme="light"] .ls-theme__moon { display: inline-flex; }
.ls-nav__menu[aria-expanded="true"] .ls-menu__open { display: none; }
.ls-nav__menu[aria-expanded="true"] .ls-menu__close { display: inline-flex; }
.ls-card__go { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Corners: contained boxes take radius-m; overflow clips the photos inside */
.ls-card, .ls-row__img, .ls-gallery a, .ls-wall, .ls-viewer__btn, .ls-hero__pause, .ls-theme { border-radius: var(--radius-m); }
.ls-card, .ls-wall { overflow: hidden; }

/* Bento of cards: feature tile 2 columns x 3 rows, a tall tile spanning 2 rows, the rest 1x1; auto-placement fills every cell.
   Photos in the feature and tall tiles fill whatever height the grid gives them, so no tile drives the row heights with its photo. */
.ls-cards.ls-cards--bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.ls-card--feature { grid-column: span 2; grid-row: span 3; }
.ls-card--tall { grid-row: span 2; }
.ls-card--feature, .ls-card--tall { grid-template-rows: minmax(0, 1fr) auto; }
.ls-card--feature .ls-card__img, .ls-card--tall .ls-card__img { aspect-ratio: auto; min-height: 12rem; }
.ls-card--feature .ls-card__img img, .ls-card--tall .ls-card__img img { position: absolute; inset: 0; }
.ls-card--call .ls-card__txt { align-content: end; height: 100%; background: var(--surface); }
.ls-card--call a { color: var(--fg); font-size: clamp(1.25rem, 1.5vw, 1.75rem); font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }
.ls-card--strip { grid-column: 1 / -1; grid-template-rows: auto; }
.ls-card--strip .ls-card__txt { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: var(--space-8); }

/* Gallery arrangements: lead photo left (default), right, or three in a row */
.ls-gallery.ls-gallery--flip li:first-child { grid-column: 3 / 5; grid-row: 1 / 3; }
.ls-gallery.ls-gallery--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ls-gallery.ls-gallery--row li:first-child { grid-column: auto; grid-row: auto; }
.ls-gallery.ls-gallery--row a, .ls-gallery.ls-gallery--row li:first-child a { aspect-ratio: 4 / 5; }
/* Phones: lead photo full width at 3:2, the other four in two columns */
@media (max-width: 639px) {
  .ls-gallery, .ls-gallery.ls-gallery--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-gallery li:first-child, .ls-gallery.ls-gallery--flip li:first-child, .ls-gallery.ls-gallery--row li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .ls-gallery a, .ls-gallery.ls-gallery--row a { aspect-ratio: 4 / 3; }
  .ls-gallery li:first-child a, .ls-gallery.ls-gallery--row li:first-child a { aspect-ratio: 3 / 2; }
}

/* Project slider: photo slides on the left with the next one peeking, a fixed intro and controls on the right */
.ls-slider { --slide: 85%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "track intro" "track controls"; grid-template-rows: auto 1fr; gap: 0 var(--space-12); }
.ls-slider__intro { grid-area: intro; display: grid; gap: var(--space-6); align-content: start; }
.ls-slider__view { grid-area: track; overflow: hidden; touch-action: pan-y; }
.ls-slider__track { display: flex; gap: var(--space-6); margin: 0; padding: 0; list-style: none; transform: translateX(calc(var(--at, 0) * -1 * (var(--slide) + var(--space-6)) + var(--drag, 0px))); transition: transform var(--time-move) var(--ease-in-out); }
/* While a finger drags the track it follows 1:1, no easing */
.ls-slider__track.is-dragging { transition: none; }
.ls-slider__track > li { flex: 0 0 var(--slide); }
.ls-slide { display: grid; gap: var(--space-4); color: var(--fg); text-decoration: none; }
.ls-slide__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m); }
.ls-slide__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter-hover); }
.ls-slide__txt { display: grid; gap: var(--space-2); }
.ls-slide__where { color: var(--fg-subtle); font-size: var(--text-small); }
.ls-slider__controls { grid-area: controls; align-self: end; display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-8); }
.ls-slider__btns { display: flex; gap: var(--space-2); }
.ls-slider__btns button { display: grid; place-items: center; width: var(--size-target); height: var(--size-target); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: none; color: var(--fg); cursor: pointer; transition: border-color var(--time-short) var(--ease-color); }
.ls-slider__count { margin: 0; color: var(--fg-muted); font-size: var(--text-ui); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .ls-slide:hover .ls-title { text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: .2em; }
  .ls-slider__btns button:hover { border-color: var(--card-border-hover); }
}
@media (prefers-reduced-motion: reduce) { .ls-slider__track { transition: none; } }
@media (max-width: 959px) {
  .ls-slider { --slide: 88%; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "track" "controls"; grid-template-rows: auto; gap: var(--space-8); }
  .ls-slider__controls { margin-top: 0; }
}

/* Statement: who Regoh is, in one large light paragraph and one link (after WSP's homepage intro) */
.ls-intro { display: grid; gap: var(--space-8); justify-items: start; }
.ls-statement { margin: 0; max-width: 34ch; font-weight: 300; font-size: clamp(1.75rem, 2.2vw + 1rem, 3.25rem); line-height: 1.4; letter-spacing: -0.025em; color: var(--fg); text-wrap: pretty; }

/* Post cards: the latest articles as photo and title, heading left and the all-insights link right (after WSP's "Innovative thinking") */
.ls-posts__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-8); margin-bottom: var(--space-12); }
.ls-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--space-12) var(--space-6); margin: 0; padding: 0; list-style: none; }
.ls-post { display: grid; gap: var(--space-4); align-content: start; color: var(--fg); text-decoration: none; }
.ls-post__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-m); }
.ls-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter-hover); }
.ls-post__txt { display: grid; gap: var(--space-2); }
.ls-post .ls-title { max-width: 30ch; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .ls-post:hover .ls-title { text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: .2em; }
}

/* Dimension line: a drawing-style measure under a job photo, labelled with the job's real figure */
.ls-dim { max-width: none; display: flex; align-items: center; gap: var(--space-3); color: var(--fg-muted); font-size: var(--text-small); line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-dim::before, .ls-dim::after { content: ""; flex: 1; height: 9px; background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat; }
.ls-dim::before { border-left: 1px solid var(--line-strong); transform-origin: right; }
.ls-dim::after { border-right: 1px solid var(--line-strong); transform-origin: left; }
.ls-gallery + .ls-dim { margin-top: var(--space-4); }
@media (prefers-reduced-motion: no-preference) {
  .ls-dim::before, .ls-dim::after { transition: transform 600ms var(--ease-out) 200ms; }
  .ls-reveal:not(.is-in) .ls-dim::before, .ls-reveal:not(.is-in) .ls-dim::after, .ls-reveal:not(.is-in).ls-dim::before, .ls-reveal:not(.is-in).ls-dim::after { transform: scaleX(0); }
}

/* Client wall: one cell per client, a name until the logo file is cleared for use */
.ls-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ls-wall li { display: grid; place-items: center; min-height: 7rem; padding: var(--space-4); background: var(--bg); color: var(--fg-muted); font-size: var(--text-ui); text-align: center; }

/* Call line: the short close on secondary pages */
.ls-callline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }

/* Scroll reveal: blocks rise in once as they enter (script adds .ls-reveal, then .is-in); blocks already on screen when the page loads are left alone */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ls-rise { from { opacity: 0; transform: translateY(24px); } }
  .js .ls-hero__in > * { animation: ls-rise 600ms var(--ease-out) both; }
  .js .ls-hero__in > :nth-child(2) { animation-delay: 60ms; }
  .js .ls-hero__in > :nth-child(3) { animation-delay: 120ms; }
  .ls-reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .ls-reveal.is-in { opacity: 1; transform: none; }
}

/* Light theme: opt-in with data-theme="light" on the root (or on an .ls wrapper). Dark stays the brand default.
   Amber stays the fill; amber as text or a thin line uses the darker ink. Component aliases are restated so they pick up the new values. */
:root, .ls { color-scheme: dark; }
:root[data-theme="light"], .ls[data-theme="light"] { color-scheme: light;
  --bg: var(--paper-100); --surface: var(--paper-50); --surface-raised: var(--paper-200); --line: var(--paper-300); --line-strong: var(--paper-400); --control-border: var(--gray-650);
  --fg: var(--ink-950); --fg-muted: var(--gray-800); --fg-subtle: var(--gray-700); --signal-ink: var(--amber-800); --focus: var(--amber-800); --error: var(--red-700);
  --photo-shade: rgba(237, 237, 237, 0.18);
  --nav-bg: var(--bg);
  --nav-link: var(--fg-muted);
  --nav-link-current: var(--fg);
  --nav-indicator: var(--signal);
  --button-bg: var(--signal);
  --button-fg: var(--on-signal);
  --button-bg-hover: var(--signal-hover);
  --button-bg-active: var(--signal-pressed);
  --button-bg-disabled: var(--line-strong);
  --button-fg-disabled: var(--fg-muted);
  --link-fg: var(--fg);
  --link-underline: var(--signal);
  --card-bg: var(--surface);
  --card-border: var(--line);
  --card-border-hover: var(--signal);
  --row-border: var(--line);
  --row-bg-hover: var(--surface);
  --fold-chevron: var(--signal);
  --input-bg: var(--surface);
  --input-border: var(--control-border);
  --input-border-hover: var(--fg-muted);
  --input-error: var(--error);
  --callbar-bg: var(--signal);
  --callbar-fg: var(--on-signal);
  --footer-fg: var(--fg-muted);
  --hero-scrim: var(--scrim);
  --viewer-bg: var(--scrim-strong);
  --viewer-button-bg: var(--surface-raised);
  --link-underline: var(--amber-700); --fold-chevron: var(--amber-800); --card-border-hover: var(--amber-800); }
/* The hero and the photo viewer sit on dark photos in both themes */
.ls-hero, .ls-viewer { --fg: var(--white); --fg-muted: var(--gray-400); --fg-subtle: var(--gray-400); --link-fg: var(--white); --link-underline: var(--amber-400);
  --line-strong: var(--black-700); --focus: var(--amber-400); --viewer-button-bg: var(--black-850); color: var(--fg); }
.ls .ls-logo--light { display: none; } /* beats .ls-nav__logo img and .ls-footer__logo img */
:root[data-theme="light"] .ls-logo--light, .ls[data-theme="light"] .ls-logo--light { display: block; }
:root[data-theme="light"] .ls-logo--dark, .ls[data-theme="light"] .ls-logo--dark { display: none; }

/* Layout helpers */
.ls-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); padding: var(--space-8); }
.ls-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-8); }
/* On the site the call bar is fixed and phone-only */
.ls-callbar.is-fixed { position: fixed; inset: auto 0 0; z-index: 10; padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 960px) { .ls-callbar.is-fixed { display: none; } }

@media (max-width: 959px) {
  .ls-nav { padding: 0 var(--space-6); }
  .ls-nav__links, .ls-nav__tel { display: none; }
  .ls-nav__menu { display: inline-flex; }
  .ls-hero { --hero-gutter: var(--space-6); --hero-foot: var(--space-8); }
  .ls-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .ls-row > p { grid-column: 2; }
  .ls-footer { gap: var(--space-12); padding: var(--space-20) var(--space-6) var(--space-6); }
  .ls-footer__call { grid-template-columns: minmax(0, 1fr); }
  .ls-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ls-footer__group--links { padding: var(--space-8) 0 0; margin-top: var(--space-8); border-left: 0; border-top: 1px solid var(--line); }
  .ls-viewer { padding: var(--space-12) var(--space-6); }
  .ls-theme { margin-left: auto; }
  .ls-theme + .ls-nav__menu { margin-left: 0; }
  .ls-cards.ls-cards--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-card--feature { grid-column: 1 / -1; grid-row: auto; }
  .ls-card--feature .ls-card__img { min-height: 0; aspect-ratio: 16 / 9; }
  .ls-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .ls-nav { padding: 0 var(--space-4); }
  .ls-hero { --hero-gutter: var(--space-4); --hero-foot: var(--space-6); }
  .ls-hero__in { padding: var(--space-20) var(--hero-gutter) calc(var(--hero-foot) + var(--size-target) + var(--space-4)); }
  .ls-hero__pause { bottom: var(--hero-foot); }
  .ls-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .ls-row > p { grid-column: auto; }
  .ls-cards, .ls-form { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .ls-footer { padding: var(--space-16) var(--space-4) calc(var(--space-6) + var(--size-bar)); }
  .ls-footer__group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
  .ls-viewer { padding: var(--space-12) var(--space-4); }
  .ls-cards.ls-cards--bento { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .ls-card--tall { grid-row: auto; }
  .ls-card--tall .ls-card__img { min-height: 0; aspect-ratio: 16 / 10; }
  .ls-card--strip .ls-card__txt { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .ls-wall { grid-template-columns: minmax(0, 1fr); }
}

/* Theme switch: everything changes together (no colour transitions lagging behind), crossfaded where View Transitions exist */
.ls-theme-switching, .ls-theme-switching * { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--ease-color); }

/* Photo viewer: fades in from 98% (fade only under reduced motion); the close is quicker */
dialog.ls-viewer { opacity: 1; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
dialog.ls-viewer:not([open]) { opacity: 0; transform: scale(0.98); transition-duration: 150ms; }
@starting-style { dialog.ls-viewer[open] { opacity: 0; transform: scale(0.98); } }

/* Press: icon buttons move 1px down like the primary button */
.ls-slider__btns button:active, .ls-hero__pause:active, .ls-viewer__btn:active, .ls-theme:active, .ls-nav__menu:active, .ls-footer__social a:active { transform: translateY(1px); }

/* Reduced motion: drop movement, keep colour and opacity feedback */
@media (prefers-reduced-motion: reduce) {
  .ls-btn:active, .ls-slider__btns button:active, .ls-hero__pause:active, .ls-viewer__btn:active, .ls-theme:active, .ls-nav__menu:active, .ls-footer__social a:active { transform: none; }
  dialog.ls-viewer:not([open]), dialog.ls-viewer[open] { transform: none; }
  @starting-style { dialog.ls-viewer[open] { transform: none; } }
  .ls-fold button::after { transition: none; }
  .ls-callbar.is-hidden { transform: none; opacity: 0; }
  .ls-hero__pause { display: none; }
}
