/* The site proposal (2 Nov 2026). One office floor at night, and photos from inside the same building.
   Night blue, warm window light, Albert Sans. Shared parts here; a.css is the home page, about.css the About page.
   Window 4 (the fifth from the left) is the one person who used the tools. */

@font-face { font-family: "Albert Sans"; src: url("fonts/albert-normal-100-900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-italic-100-900.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ground: #0b1220;
  --panel: #0f182a;
  --ink: #e8ecf2;
  --ink-2: #a9b3c3;
  --line: rgba(232, 236, 242, 0.15);
  --line-2: rgba(232, 236, 242, 0.34);
  --warm: #ffc56e;
  --on-warm: #1a1206;
  --night: #070c16;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #2a3550 var(--ground); scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.6 "Albert Sans", system-ui, sans-serif; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
main:focus { outline: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--warm); color: var(--on-warm); }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -64px; z-index: 70; padding: 12px 16px; background: var(--ink); color: var(--ground); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 80px; }
.top-name { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 4px 22px; }
.top-nav > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.top-nav > a[aria-current="page"] { color: var(--warm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 4px; font-weight: 700; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-main { background: var(--warm); color: var(--on-warm); }
.btn-line { border-color: var(--line-2); background: rgba(7, 12, 22, 0.35); color: var(--ink); }
@media (hover: hover) {
  .btn-main:hover { background: #ffd795; }
  .btn-line:hover { border-color: var(--ink); }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* The lights. data-state on the picture decides which windows are on. */
.w-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.w-l { opacity: 0; transition: opacity 0.7s ease; }
.w-l[data-w="1"] { transition-delay: 0.32s; }
.w-l[data-w="2"] { transition-delay: 0.64s; }
.w-l[data-w="3"] { transition-delay: 0.96s; }
.w-l[data-w="4"] { transition-delay: 0s; }
.w-l[data-w="5"] { transition-delay: 1.28s; }
.w-l[data-w="6"] { transition-delay: 1.6s; }
.w-halo { opacity: 0; mix-blend-mode: screen; transition: opacity 1s ease; }
[data-state="all"] .w-warm .w-l { opacity: 1; }
[data-state="one"] .w-warm .w-l[data-w="4"],
[data-state="tools"] .w-warm .w-l[data-w="4"],
[data-state="trust"] .w-warm .w-l[data-w="4"] { opacity: 1; }
[data-state="trust"] .w-warm .w-l[data-w="4"] { animation: w-doubt 4s steps(1) infinite; }
[data-state="bright"] .w-warm .w-l[data-w="4"] { opacity: 1; }
[data-state="bright"] .w-halo { opacity: 1; }
[data-state="floor"] .w-warm .w-l { opacity: 0.34; transition-delay: 0s; }
[data-state="floor"] .w-warm .w-l[data-w="4"] { opacity: 1; }
@keyframes w-doubt { 0%, 86%, 100% { opacity: 1; } 88% { opacity: 0.55; } 90% { opacity: 1; } 92% { opacity: 0.7; } }

/* The first screen, full bleed */
.hero { position: relative; }
.w-hero { min-height: max(100svh, 640px); overflow: hidden; background: var(--night); }
.w-frame { position: absolute; inset: 0; }
.lead { color: var(--ink-2); }

/* The note under each reason */
.saw { font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); max-width: 46ch; }

/* Sections below */
.s { padding: 128px 0; }
.s h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.06; margin-bottom: 48px; max-width: 24ch; }
.s h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.s .intro { font-size: 20px; max-width: 54ch; margin: -20px 0 30px; color: var(--ink-2); }
.s .outro { margin-top: 30px; color: var(--ink-2); max-width: 60ch; }
.prose p { font-size: 20px; max-width: 58ch; }
.prose p + p { margin-top: 1em; }
.s-in .btn, .s-hi .btn { margin-top: 32px; }

/* The other way round: three photos, read left to right, one short line each */
.way { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.way-pic { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: var(--night); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.85); }
.way-pic img { width: 100%; height: 100%; object-fit: cover; }
.way h3 { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--warm); font-size: 24px; line-height: 1.2; }
.way p { margin-top: 10px; color: var(--ink-2); max-width: 38ch; }

/* The work I have led: videos you start yourself, nothing plays by itself */
.s-work { background: var(--panel); border-block: 1px solid var(--line); }
.wks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.wk-media { aspect-ratio: 16 / 9; background: var(--night); border-radius: 3px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.85); }
.wk-media video, .wk-media img { width: 100%; height: 100%; object-fit: cover; }
.wk h3 { margin-top: 22px; font-size: 24px; }
.wk-line { margin-top: 8px; color: var(--ink); max-width: 52ch; }
.wk-src { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.wk-src a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.wk-text { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.wk-text summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.wk-text ol { list-style: decimal; padding-left: 1.3em; }
.wk-text li + li { margin-top: 6px; }
.wk-note { margin-top: 48px; font-size: 15px; color: var(--ink-2); }

/* How to work with me: four steps in order */
.in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; counter-reset: in; }
.in li { counter-increment: in; padding-top: 22px; border-top: 1px solid var(--line-2); }
.in li::before { content: counter(in); display: block; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--warm); font-variant-numeric: tabular-nums; }
.in p { margin-top: 10px; color: var(--ink-2); }

/* Reflections: the words over a desk by a window late at night */
.s-ref { position: relative; overflow: hidden; background: var(--night); }
.ref-bg { position: absolute; inset: 0; }
.ref-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.ref-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 12, 22, 0.94) 0%, rgba(7, 12, 22, 0.82) 46%, rgba(7, 12, 22, 0.3) 100%); }
.ref-in { position: relative; z-index: 1; }
.ref-in > * { max-width: 680px; }
.s-ref .pieces li { border-top-color: var(--line-2); }
.s-ref .pieces li:last-child { border-bottom-color: var(--line-2); }
.pieces li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.pieces li:last-child { border-bottom: 1px solid var(--line); }
.pc-t { font-size: 22px; font-weight: 600; line-height: 1.3; max-width: 44ch; }
.pc-s { font-size: 14px; color: var(--warm); white-space: nowrap; }

/* Say hi */
.s-hi h2 { font-size: clamp(56px, 8vw, 108px); line-height: 0.96; letter-spacing: -0.035em; }
.s-hi p { font-size: 21px; max-width: 46ch; }
.foot { padding-bottom: 76px; }
.foot p { padding: 26px 0 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* A button for the steps of the talk */
.w-btn {
  min-height: 48px; padding: 0 24px; border: 1px solid var(--line-2); border-radius: 4px; background: transparent;
  font-weight: 600; font-size: 16px; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.w-btn:disabled { opacity: 0.38; cursor: default; }
@media (hover: hover) { .w-btn:not(:disabled):hover { border-color: var(--ink); } }

@media (max-width: 1000px) {
  .way { gap: 0 24px; }
  .way h3 { font-size: 20px; }
  .in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}
@media (max-width: 760px) {
  .way { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .way h3 { font-size: 22px; }
}
@media (max-width: 900px) {
  .wks { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .ref-bg::after { background: linear-gradient(180deg, rgba(7, 12, 22, 0.78) 0%, rgba(7, 12, 22, 0.9) 100%); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .s { padding: 84px 0; }
  .s h2 { margin-bottom: 36px; }
  .top-in { min-height: 64px; }
  .top-sur, .top-nav > .top-li { display: none; }
  .top-nav { gap: 4px 16px; font-size: 16px; }
  .saw { font-size: 20px; }
  .cta .btn { flex: 1 1 100%; }
  .in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .top-nav > .top-ref { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w-l, .w-halo { transition: none !important; }
  [data-state] .w-warm .w-l { animation: none; }
}

/* On phones, browse related items sideways instead of stacking the whole collection. */
.mobile-controls { display: none; }
@media (max-width: 760px) {
  .s { padding-block: 56px; }
  .s h2 { margin-bottom: 28px; }
  .a-talk { padding-block: 56px; }
  .mobile-carousel {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -20px; padding: 4px 20px 12px; scroll-padding-inline: 20px;
  }
  .mobile-carousel::-webkit-scrollbar { display: none; }
  .mobile-carousel > li { flex: 0 0 calc(100% - 20px); min-width: 0; scroll-snap-align: start; overflow-wrap: anywhere; }
  .mobile-carousel > li:last-child { margin-right: 20px; }
  .mobile-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
  .mobile-count { margin-right: auto; color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
  .mobile-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; }
  .mobile-arrow svg { width: 18px; height: 18px; }
  .mobile-arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
  .mobile-arrow:not([aria-disabled="true"]):hover { background: var(--panel); border-color: var(--warm); }
  .mobile-carousel.in { counter-reset: in; }
  .mobile-carousel .wk h3 { font-size: 22px; }
}
@media (min-width: 601px) and (max-width: 760px) {
  .mobile-carousel { margin-inline: -48px; padding-inline: 48px; scroll-padding-inline: 48px; }
  .mobile-carousel > li { flex-basis: calc(100% - 48px); }
  .mobile-carousel > li:last-child { margin-right: 48px; }
}
