/* AgentHour v2 homepage body, 2026-09-24.
   Five compositions after the film, each with one job and one kind of motion:
   statement (a doorway opens), work (Ink task switcher), method (the approved
   Measure-to-Compound fill), proof (a ripple reveals the scene), clock (the mark
   opens into your local time). All scroll motion is keyed to Scroll Craft's --sc-p,
   so it reverses when you scroll back up, and it only runs under html.v2-motion. */

#post-hero { position: relative; isolation: isolate; }

/* Content never hides if the engine is absent or motion is paused. */
html:not(.v2-motion) [data-sc-in],
html:not(.v2-motion) [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
.motion-off [data-sc-parallax], .motion-off [data-sc-magnet] { transform: none !important; }

/* Line masks: each headline line rises from behind a clean edge. */
.line { display: block; overflow: clip; padding-block: .08em .16em; margin-block: -.08em -.16em; }
.line__i { display: block; }

/* ---------- 1. Statement: "Make room for human work." ---------- */
.s-statement {
  position: relative; overflow: clip; background: var(--ah-bone);
  padding-block: clamp(2.25rem, 1rem + 2.5vw, 3.75rem) var(--v2-section);
}
.s-statement__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem); align-items: center;
}
.s-statement__text {
  position: relative; z-index: 2; grid-column: 1 / span 7; grid-row: 1;
  display: grid; justify-items: start; gap: clamp(1.5rem, 2.4vw, 2.25rem);
}
.s-statement__body { display: grid; justify-items: start; gap: 1rem; max-width: 34rem; }
.s-statement__body .lede { color: var(--v2-text-soft); }
.s-statement__art {
  --open: 1;
  position: relative; z-index: 1; grid-column: 8 / -1; grid-row: 1;
  margin-right: calc(-1 * var(--v2-bleed));
  aspect-ratio: .92; overflow: hidden; background: #d9cfc1;
  border-radius: var(--ah-radius-media) 0 0 var(--ah-radius-media);
}
.s-statement__art .plane { position: absolute; inset: -7% 0; }
.s-statement__art img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.s-statement__art figcaption {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .55rem .85rem; border-radius: var(--ah-radius-control);
  background: rgb(11 13 14 / .72); color: var(--ah-bone);
  font-size: .8125rem; font-weight: 650; letter-spacing: .01em;
}
.s-statement__art figcaption .colon { --c: .26rem; }
.v2-motion .s-statement .line:nth-child(1) .line__i { --l: clamp(0, calc((var(--sc-p, 1) - .02) * 6), 1); }
.v2-motion .s-statement .line:nth-child(2) .line__i { --l: clamp(0, calc((var(--sc-p, 1) - .06) * 6), 1); }
.v2-motion .s-statement .line__i { transform: translate3d(0, calc((1 - var(--l)) * 108%), 0); }
.v2-motion .s-statement__art { --open: clamp(0, calc((var(--sc-p, 1) - .06) * 3.1), 1); }
.v2-motion .s-statement__art {
  clip-path: inset(0 calc((1 - var(--open)) * 44%) 0 calc((1 - var(--open)) * 44%) round var(--ah-radius-media) 0 0 var(--ah-radius-media));
}
.v2-motion .s-statement__art img { transform: scale(calc(1.14 - var(--open) * .14)); }
.v2-motion .s-statement__body { opacity: clamp(0, calc((var(--sc-p, 1) - .14) * 5), 1); }

/* ---------- 2. Work: Ink stage, pick a task, watch the handoff ---------- */
.s-work {
  position: relative; overflow: clip; background: var(--ah-ink); color: var(--ah-bone);
  padding-block: var(--v2-section);
}
.s-work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
.s-work > .v2-shell { position: relative; z-index: 3; }
.s-work__head { display: grid; justify-items: start; gap: 1.1rem; }
.s-work__side { display: grid; align-content: center; gap: clamp(1.75rem, 3vw, 2.75rem); }
.s-work__head .v2-label { color: var(--v2-bone-soft); }
.s-work__head .h2 { max-width: 16ch; }
.s-work__head .h2 .w-light { color: var(--v2-bone-soft); }
.s-work__grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5.5rem); align-items: center;
}
.task-list { display: flex; flex-direction: column; align-items: flex-start; }
.task {
  --t0: .06; --topen: 1;
  position: relative; appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: clamp(1.625rem, 1rem + 1.9vw, 2.625rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05;
  color: rgb(243 236 227 / .34); text-align: left; min-height: 48px;
  padding: .2em 0 .2em 1em;
  transition: color 220ms var(--v2-ease);
}
.task .colon {
  position: absolute; left: .08em; top: 50%; --c: .14em;
  opacity: 0; transform: translateY(-50%) scale(.4);
  transition: opacity 220ms var(--v2-ease), transform 320ms var(--v2-ease);
}
.task[aria-pressed="true"] { color: var(--ah-bone); }
.task[aria-pressed="true"] .colon { opacity: 1; transform: translateY(-50%) scale(1); }
.task:nth-child(2) { --t0: .1; }
.task:nth-child(3) { --t0: .14; }
.v2-motion .task { --topen: clamp(0, calc((var(--sc-p, 1) - var(--t0)) * 4), 1); }
.v2-motion .task { opacity: calc(.2 + var(--topen) * .8); transform: translate3d(calc((1 - var(--topen)) * -2.75rem), 0, 0); }
.v2-motion .task:focus-visible { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .task:not([aria-pressed="true"]):hover { color: rgb(243 236 227 / .72); }
}
.work-panel {
  --wopen: 1;
  position: relative; overflow: hidden; background: var(--v2-ink-raised);
  border-radius: var(--ah-radius-media);
  box-shadow: var(--v2-edge), 0 60px 110px -50px rgb(0 0 0 / .9);
  transform-origin: 50% 80%;
}
.v2-motion .work-panel { --wopen: clamp(0, calc((var(--sc-p, 1) - .08) * 2.8), 1); }
.v2-motion .work-panel { transform: translate3d(0, calc((1 - var(--wopen)) * 5rem), 0) scale(calc(.94 + var(--wopen) * .06)); }
.work-panel__art { position: relative; aspect-ratio: 2.1; overflow: hidden; }
.work-panel__art .work-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  opacity: 0; transition: opacity 420ms var(--v2-ease);
}
.work-panel__art .work-img.is-active { opacity: 1; }
.work-panel__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.work-panel__label {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ah-emerald); margin-bottom: .9rem;
}
.work-panel h3 { font-size: var(--v2-t-h3); letter-spacing: -.03em; line-height: 1.15; margin-bottom: .7rem; }
.work-panel p { color: var(--v2-bone-soft); max-width: 50ch; line-height: 1.65; }
.handoff-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 2rem; list-style: none;
}
.handoff-steps li {
  position: relative; padding-top: 1rem; border-top: 1px solid var(--v2-ink-line);
  font-size: .9375rem; line-height: 1.45; color: rgb(243 236 227 / .45);
  transition: color 320ms var(--v2-ease);
}
.handoff-steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--ah-emerald); transform: scaleX(0); transform-origin: left;
  transition: transform 520ms var(--v2-ease);
}
.handoff-steps li b {
  display: block; margin-bottom: .35rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(243 236 227 / .45); transition: color 320ms var(--v2-ease);
}
.handoff-steps li.is-on { color: var(--ah-bone); }
.handoff-steps li.is-on b { color: var(--ah-emerald); }
.handoff-steps li.is-on::before { transform: scaleX(1); }
#example-content.is-swapping { animation: swap-in 260ms var(--v2-ease); }
@keyframes swap-in { from { opacity: .35; transform: translate3d(8px, 0, 0); } to { opacity: 1; transform: none; } }

/* ---------- 3. Method: the Measure-to-Compound fill (kept from the approved study) ---------- */
.s-method { position: relative; background: var(--v2-bone-deep); padding-block: var(--v2-section); }
.s-method__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem); align-items: start;
}
.s-method__intro {
  grid-column: 1 / span 5; position: sticky; top: clamp(1.5rem, 9vh, 6rem);
  display: grid; justify-items: start; gap: 1.25rem;
}
.s-method__intro .h2 { max-width: 11ch; }
.s-method__intro > p { color: var(--v2-text-soft); max-width: 34ch; }
.s-method__art {
  position: relative; width: 100%; max-width: 30rem; aspect-ratio: 1.15; margin-top: 1.25rem;
  overflow: hidden; border-radius: var(--ah-radius-media); background: #d6cbbb;
  box-shadow: var(--v2-shadow-lg);
}
.s-method__art .plane { position: absolute; inset: -9% 0; }
.s-method__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.m-rows { grid-column: 7 / -1; list-style: none; }
.m-row {
  --sp: 1;
  position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1.25rem;
  padding: clamp(1.75rem, 1rem + 1.6vw, 2.75rem) 0;
  border-bottom: 1px solid rgb(11 13 14 / .12);
}
.m-row:first-child { padding-top: .25rem; }
.m-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ah-emerald); transform: scaleX(var(--sp)); transform-origin: left;
}
.v2-motion .m-row { --sp: clamp(0, calc((var(--sc-p, 1) - .3) * 3.2), 1); }
.m-row__mark {
  position: relative; box-sizing: border-box; width: 1.3rem; height: 1.3rem; margin-top: 1.55rem;
  border: 1.5px solid #8a8e86;
}
.m-row__mark::before {
  content: ""; position: absolute; inset: -1.5px; background: var(--ah-emerald);
  transform: scaleY(var(--sp)); transform-origin: bottom;
}
.m-row__n {
  display: block; margin-bottom: .45rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; color: var(--ah-link);
}
.m-row h3 {
  font-size: clamp(1.9rem, 1.1rem + 2vw, 3rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.02;
  color: color-mix(in oklab, var(--ah-ink) calc(35% + var(--sp) * 65%), #8f928b);
}
.m-row p { margin-top: .6rem; color: var(--v2-text-soft); font-size: 1.0625rem; max-width: 44ch; }

/* ---------- 4. Proof: a ripple opens onto the scene ---------- */
.s-proof {
  position: relative; display: grid; align-items: center; overflow: clip;
  min-height: max(100svh, 46rem); background: #e9dfd2;
}
.s-proof__iris { --iris: 1; position: absolute; inset: 0; overflow: hidden; }
.v2-motion .s-proof__iris { --iris: clamp(0, calc((var(--sc-p, 1) - .02) * 2.5), 1); }
.v2-motion .s-proof__iris { clip-path: circle(calc(6% + var(--iris) * 112%) at 74% 30%); }
.s-proof__bed { position: absolute; inset: -9% 0; }
.s-proof__bed img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 24%; }
.s-proof__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(243 236 227 / .95) 0%, rgb(243 236 227 / .88) 28%, rgb(243 236 227 / .4) 50%, rgb(243 236 227 / 0) 64%);
}
.s-proof__inner { position: relative; z-index: 1; padding-block: var(--v2-section); }
.s-proof .h2 { max-width: 11ch; }
.principles { list-style: none; margin-top: clamp(2rem, 4vw, 3.25rem); max-width: 33rem; }
.principles li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem;
  padding: 1.35rem 0; border-top: 1px solid rgb(11 13 14 / .16);
}
.principles li .colon { --c: .4rem; margin-top: .4rem; }
.principles h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.principles p { margin-top: .35rem; color: var(--v2-text-soft); font-size: 1.0625rem; line-height: 1.55; }

/* ---------- 5. Clock: the mark opens and shows your time ---------- */
.s-clock {
  position: relative; overflow: clip; background: var(--ah-surface);
  padding-block: var(--v2-section) calc(var(--v2-section) * .85);
}
.s-clock::before {
  content: ""; position: absolute; left: 50%; top: 34%; width: 150vmax; height: 150vmax;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at center, rgb(11 13 14 / 0) 0 5.5rem, rgb(11 13 14 / .045) 5.5rem calc(5.5rem + 1px));
  -webkit-mask: radial-gradient(circle at center, #000 0 22%, transparent 48%);
          mask: radial-gradient(circle at center, #000 0 22%, transparent 48%);
}
.s-clock__inner { position: relative; display: grid; justify-items: center; text-align: center; }
.clock {
  --u: min(2.4px, calc((100vw - 2 * var(--ah-gutter)) / 500));
  --ph: calc(var(--u) * 90);
  --open: 1;
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: calc(var(--u) * 16); height: var(--ph);
}
/* The clock is its own act: it stays the closed mark until the whole mark is on screen, then opens
   by the time it reaches the middle of the viewport. */
.v2-motion .s-clock .clock { --open: clamp(0, calc((var(--sc-p, 1) - .26) * 3.125), 1); }
.clock__pillar {
  position: relative; z-index: 2; flex: none;
  width: calc(var(--u) * 32); height: var(--ph); background: var(--ah-ink);
}
.clock__pillar--l { transform: translate3d(calc(var(--shift-l, 0px) * (1 - var(--open))), 0, 0); }
.clock__pillar--r { transform: translate3d(calc(var(--shift-r, 0px) * (var(--open) - 1)), 0, 0); }
.clock__colon {
  position: relative; z-index: 1; flex: none;
  display: flex; flex-direction: column; justify-content: space-between;
  width: calc(var(--u) * 28); height: var(--ph);
  transform: translate3d(calc(var(--shift-c, 0px) * (var(--open) - 1)), 0, 0);
}
.clock__colon i { display: block; width: 100%; aspect-ratio: 1; background: var(--ah-emerald); }
.clock__digits {
  position: relative; z-index: 1; flex: none;
  font-size: calc(var(--ph) / .72); line-height: 1; height: 1em;
  display: flex; align-items: center;
  font-weight: 700; letter-spacing: -.02em; font-variant-numeric: proportional-nums;
  /* Outline only. The stroke is painted under the fill, so the font's internal overlaps stay hidden. */
  color: var(--ah-surface); -webkit-text-stroke: calc(2 * max(1.25px, .011em)) var(--ah-ink); paint-order: stroke fill;
  opacity: var(--open);
}
/* Fallback: each pair gets a box as wide as "00" and hugs the colon. home.js then trims each box to
   its pair's ink (.is-balanced): every gap is 27 units less an optical allowance for open digit
   sides, so the space beside each bar always matches. The hour always shows two digits. */
.clock__digits { width: 1.32em; }
.clock__digits--h { justify-content: flex-end; }
.clock__digits--m { justify-content: flex-start; }
.clock.is-balanced { gap: calc(var(--u) * 27); }
.clock.is-balanced .clock__digits { justify-content: flex-start; }
.clock__digits span {
  display: block;
  transform: translate3d(calc(var(--dx, 0px) + var(--shift-c, 0px) * (var(--open) - 1)), -.023em, 0) scale(calc(.86 + var(--open) * .14));
}
.clock.is-live .clock__colon i { animation: colon-tick 2s linear infinite; }
@keyframes colon-tick { 0%, 46% { opacity: 1; } 54%, 100% { opacity: .62; } }
.clock-zone { color: var(--ah-muted); }
.clock-caption {
  margin-top: clamp(1.4rem, 2.4vw, 2.25rem);
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-link);
}
/* The clock stays centered as the mark; the invitation below it sits on the grid, left-aligned. */
.s-clock__close {
  justify-self: stretch; text-align: left;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 1.75rem;
  align-items: start; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ah-border);
}
.s-clock .h2 { grid-column: 1 / span 6; margin: 0; max-width: 12ch; }
.s-clock__body { grid-column: 8 / -1; display: grid; justify-items: start; }
.s-clock .lede { margin: 0; max-width: 34rem; color: var(--v2-text-soft); }
.s-clock .v2-cta { margin-top: 1.75rem; }
.s-clock__fine { margin-top: 1rem; font-size: .9375rem; color: var(--ah-muted); }
.s-clock__talk { margin-top: .5rem; font-size: .9375rem; color: var(--ah-muted); display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.s-clock__talk .v2-link { font-size: .9375rem; min-height: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .s-statement__text { grid-column: 1 / span 7; }
  .s-statement__art { grid-column: 8 / -1; }
  .s-method__intro { grid-column: 1 / span 5; }
  .m-rows { grid-column: 6 / -1; }
}
@media (max-width: 760px) {
  .s-statement { padding-top: 2.75rem; }
  .s-statement__inner { display: block; }
  .s-statement__text { gap: 1.5rem; }
  .s-statement__art {
    margin: 2.25rem calc(-1 * var(--ah-gutter)) 0 0;
    aspect-ratio: 1.2; border-radius: var(--ah-radius-media) 0 0 var(--ah-radius-media);
  }
  .s-statement__art img { object-position: 60% 50%; }
  .s-statement__body { margin-top: 2rem; }
  .s-work__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .task { padding-left: .9em; }
  .handoff-steps { grid-template-columns: 1fr; gap: .9rem; }
  .handoff-steps li { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: .75rem; padding-top: .8rem; }
  .handoff-steps li b { margin: .15rem 0 0; }
  .s-method__grid { display: block; }
  .s-method__intro { position: static; }
  .s-method__art { max-width: none; aspect-ratio: 1.5; }
  .m-rows { margin-top: 3rem; }
  .s-proof { display: block; min-height: 0; background: var(--ah-bone); }
  .s-proof__iris { position: relative; inset: auto; aspect-ratio: 4 / 3.2; }
  .s-proof__scrim { display: none; }
  .s-proof__inner { padding-block: 2.75rem 4.5rem; }
  .s-clock .h2, .s-clock__body { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .s-statement__art figcaption { left: .9rem; bottom: .9rem; }
}
