/* Strawberry time-lapse window (applications/strawberries) and its home teaser. Builds on site.css tokens.
   Dark app window: ink ground, mint hairlines, lime only for the current stage. Cards stack under the photo
   by default (no JS, narrow screens, or copy too long to float); on wide screens they float on the photo. */

.tl-sec .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.tl { margin: 0; }
.tl-win { position: relative; isolation: isolate; border-color: rgba(66, 211, 156, 0.16); box-shadow: 0 40px 90px -40px rgba(7, 18, 15, 0.8), 0 0 0 1px rgba(66, 211, 156, 0.08); }
.tl-win .aw-bar { gap: 14px; height: 48px; }
.tl-win .aw-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl-count { margin-left: auto; display: inline-flex; align-items: baseline; gap: 2px; flex: none; font-variant-numeric: tabular-nums; font-size: 0.78rem; color: #8a9b93; }
.tl-count b { font-size: 0.95rem; font-weight: 800; color: var(--accent); }
.tl-count-n { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.14); color: #eef4f0; font-weight: 700; font-size: 0.82rem; }

/* ---------- layout: photo, scrubber, cards ---------- */
.tl-view { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'bar' 'cards'; }

/* photo stage */
.tl-media { grid-area: stage; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: radial-gradient(110% 90% at 70% 10%, #143a2d 0%, #0b1a15 55%, #07120f 100%); touch-action: pan-y; }
.tl-stills, .tl-film { transform: scale(calc(1 + var(--p, 0) * 0.035)); transform-origin: 50% 60%; }
.tl-stills { position: absolute; inset: 0; transition: transform 2.4s var(--ease); }
.tl.is-film .tl-stills { transition: none; }
.tl.is-snap .tl-still { transition: none !important; }
.tl-still { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.95s var(--ease), visibility 0s linear 0.95s; }
.tl-still.is-on { z-index: 2; opacity: 1; visibility: visible; transition: opacity 0.95s var(--ease); }
.tl-still.is-prev { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.tl-img { position: absolute; inset: 0; display: block; overflow: hidden; }
.tl-img picture, .tl-img img { display: block; width: 100%; height: 100%; }
.tl-img img { object-fit: cover; object-position: var(--o, 50% 50%); transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); }
.tl-film { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; }
.tl.is-film:not(.is-rest) .tl-film { opacity: 1; }
.tl-scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(0deg, rgba(7, 18, 15, 0.42) 0%, rgba(7, 18, 15, 0) 26%); }

/* cards (stacked by default) */
.tl-layers { grid-area: cards; display: grid; padding: 16px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tl-layer { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; visibility: hidden; }
.tl-layer.is-on { visibility: visible; }
.tl-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.tl-card { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09); color: #eef4f0; font-size: 0.86rem; min-width: 0; }
.tl-k { margin: 0 0 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8a9b93; font-variant-numeric: tabular-nums; }
.tl-k small { font-size: inherit; color: #5f7469; margin-left: 2px; }
.tl-when { margin: -2px 0 8px; font-size: 0.8rem; font-weight: 650; line-height: 1.35; color: var(--accent); }
.tl-h { margin: 0 0 6px; font-size: 1.32rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; color: #fff; }
.tl-p { margin: 0; color: #b9cac2; line-height: 1.5; }
.tl-lbl { margin: 0 0 8px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-mint); }
.tl-blk + .tl-blk { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* recipe tiles */
.tl-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 6px; }
.tl-kpis[data-n='1'] { grid-template-columns: 1fr; }
.tl-kpi.is-wide { grid-column: 1 / -1; }
.tl-kpi { min-width: 0; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.tl-kpi b { display: block; font-size: 1.02rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tl-kpi b small { margin-left: 4px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0; color: #8a9b93; white-space: nowrap; }
.tl-kpi b.is-text { font-size: 0.84rem; font-weight: 700; }
.tl-kpi span { display: block; margin-top: 2px; font-size: 0.7rem; line-height: 1.3; color: #b3c3bb; }
.tl-kpi em { display: block; margin-top: 2px; font-style: normal; font-size: 0.66rem; line-height: 1.3; color: #8a9b93; }
.tl-kpi.is-new { border-color: rgba(216, 243, 106, 0.55); background: rgba(216, 243, 106, 0.06); }

/* day schematic: one 24-hour line per stated day length from lights-on; night break centred in the dark */
.tl-day { display: grid; gap: 10px; margin-top: 12px; }
.tl-day-line { display: flex; align-items: center; gap: 8px; font-size: 0.62rem; color: #8a9b93; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-day-bar { position: relative; flex: 1; height: 12px; border-radius: 6px; background: #08140f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); overflow: hidden; }
.tl-day-bar.is-open { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 4px, transparent 4px 8px); }
.tl-day-bar i { position: absolute; top: 0; bottom: 0; }
.tl-day-bar .on { background: linear-gradient(90deg, #42d39c, #b9ec7a); }
.tl-day-bar .on-x { background: repeating-linear-gradient(135deg, rgba(185, 236, 122, 0.7) 0 3px, rgba(185, 236, 122, 0.18) 3px 6px); }
.tl-day-bar .nb { background: #ff5a8e; box-shadow: 0 0 12px rgba(255, 90, 142, 0.6); }
.tl-day-bar .nb-x { background: repeating-linear-gradient(135deg, rgba(255, 90, 142, 0.8) 0 3px, rgba(255, 90, 142, 0.25) 3px 6px); }
.tl-day-bar b { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(7, 18, 15, 0.55); }
.tl-day-bar.is-open b { background: rgba(255, 255, 255, 0.14); }
.tl-day-lg { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 5px 0 0; font-size: 0.7rem; line-height: 1.35; color: #b3c3bb; }
.tl-day-lg .k::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.tl-day-lg .on::before { background: #7fe0a6; }
.tl-day-lg .nb::before { background: #ff5a8e; }

/* ---------- scrubber bar ---------- */
.tl-bar { grid-area: bar; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 18px 8px; background: #0b1a15; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tl-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); color: #eef4f0; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.tl-btn:hover { border-color: rgba(66, 211, 156, 0.6); background: rgba(15, 154, 108, 0.2); }
.tl-btn:focus-visible, .tl-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-btn svg { width: 16px; height: 16px; }
.tl-prev svg { transform: rotate(180deg); }
.tl-play { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl-play:hover { background: #e6fa95; border-color: #e6fa95; color: var(--accent-ink); }
.tl-play svg { width: 14px; height: 14px; }
.tl-play .i-pause, .tl.is-playing .tl-play .i-play { display: none; }
.tl.is-playing .tl-play .i-pause { display: block; }

.tl-track { --x: 0.5; --r: 0; position: relative; height: 66px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tl-rail, .tl-fill, .tl-run { position: absolute; top: 20px; height: 4px; margin-top: -2px; border-radius: 2px; }
.tl-rail { left: calc(50% / var(--n)); right: calc(50% / var(--n)); background: rgba(255, 255, 255, 0.12); }
.tl-fill { left: calc(50% / var(--n)); width: calc(var(--x) * 100% - 50% / var(--n)); background: var(--brand-mint); transition: width 0.5s var(--ease); }
.tl-run { left: calc(var(--x) * 100%); width: calc(var(--r) * 100% / var(--n)); background: linear-gradient(90deg, rgba(216, 243, 106, 0.8), rgba(216, 243, 106, 0.25)); }
.tl-ticks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; pointer-events: none; }
.tl-ticks li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 14px; min-width: 0; }
.tl-ticks i { width: 12px; height: 12px; border-radius: 50%; background: #0b1a15; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); transition: background-color 0.3s, box-shadow 0.3s; }
.tl-ticks .is-done i { background: var(--brand-mint); box-shadow: none; }
.tl-ticks span { max-width: 100%; padding: 0 2px; font-size: 0.74rem; font-weight: 600; line-height: 1.25; text-align: center; color: #7f938a; transition: color 0.3s; }
.tl-ticks .is-done span { color: #b3c3bb; }
.tl-ticks .is-now span { color: #fff; font-weight: 750; }
.tl-thumb { position: absolute; top: 20px; left: calc(var(--x) * 100%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; cursor: grab; transition: left 0.5s var(--ease); touch-action: pan-y; }
.tl-thumb::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #0b1a15, 0 0 0 9px rgba(216, 243, 106, 0.2), 0 8px 20px rgba(0, 0, 0, 0.5); transition: transform 0.2s var(--ease); }
.tl-thumb:hover::before, .tl.is-drag .tl-thumb::before { transform: scale(1.12); }
.tl.is-drag .tl-thumb { cursor: grabbing; }
.tl.is-drag .tl-thumb, .tl.is-drag .tl-fill, .tl.is-film .tl-thumb, .tl.is-film .tl-fill { transition: none; }
.tl figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--fg-3); max-width: 90ch; }

/* no JavaScript: every stage listed under the chosen photo, no controls */
html:not(.js) .tl-bar { display: none; }
html:not(.js) .tl-layers { gap: 12px; }
html:not(.js) .tl-layer { grid-area: auto; visibility: visible; }
html:not(.js) .tl-layer:not(.is-on) { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- wide screens: cards float on the photo ---------- */
@media (min-width: 1101px) {
  .js .tl:not(.is-stacked) .tl-view { grid-template-areas: 'stage' 'bar'; }
  .js .tl:not(.is-stacked) .tl-media { max-height: min(76vh, 740px); min-height: 520px; }
  .js .tl:not(.is-stacked) .tl-scrim { background: linear-gradient(90deg, rgba(7, 18, 15, 0.62) 0%, rgba(7, 18, 15, 0) 34%, rgba(7, 18, 15, 0) 70%, rgba(7, 18, 15, 0.5) 100%), linear-gradient(0deg, rgba(7, 18, 15, 0.38) 0%, rgba(7, 18, 15, 0) 30%); }
  .js .tl:not(.is-stacked) .tl-layers { grid-area: stage; display: block; position: relative; z-index: 5; padding: 0; border: 0; pointer-events: none; }
  .js .tl:not(.is-stacked) .tl-layer { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: stretch; gap: 24px; padding: 22px; }
  .js .tl:not(.is-stacked) .tl-col { display: flex; flex-direction: column; gap: 12px; width: min(318px, 30%); pointer-events: auto; }
  .js .tl:not(.is-stacked) .tl-col-l { justify-content: space-between; }
  .js .tl:not(.is-stacked) .tl-col-r { margin-left: auto; justify-content: flex-end; }
  .js .tl:not(.is-stacked) .tl-card { background: rgba(9, 22, 17, 0.8); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  /* compact overlay for shorter screens, tried before the cards move under the photo */
  .js .tl.is-compact:not(.is-stacked) .tl-layer { padding: 14px; gap: 16px; }
  .js .tl.is-compact:not(.is-stacked) .tl-col { gap: 8px; width: min(300px, 29%); }
  .js .tl.is-compact:not(.is-stacked) .tl-card { padding: 11px 13px; font-size: 0.8rem; }
  .js .tl.is-compact:not(.is-stacked) .tl-h { font-size: 1.14rem; }
  .js .tl.is-compact:not(.is-stacked) .tl-p { line-height: 1.42; }
  .js .tl.is-compact:not(.is-stacked) .tl-blk + .tl-blk { margin-top: 8px; padding-top: 8px; }
  .js .tl.is-compact:not(.is-stacked) .tl-kpi { padding: 6px 9px; }
  .js .tl.is-compact:not(.is-stacked) .tl-day { margin-top: 8px; gap: 6px; }
}

/* card entrance with each stage */
@media (prefers-reduced-motion: no-preference) {
  .js .tl-card { opacity: 0; transform: translateY(10px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
  .js .tl-layer.is-on .tl-card { opacity: 1; transform: none; }
  .js .tl-layer.is-on .tl-c-recipe { transition-delay: 0.08s; }
  .js .tl-layer.is-on .tl-c-ctl { transition-delay: 0.16s; }
  .tl-kpi.is-new { animation: tl-new 1.4s var(--ease) 0.3s both; }
}
@keyframes tl-new { 0% { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); } 35% { border-color: rgba(216, 243, 106, 0.9); background: rgba(216, 243, 106, 0.12); } }
@media (prefers-reduced-motion: reduce) {
  .tl *, .tl-hw, .tlt * { transition: none !important; animation: none !important; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 760px) {
  .tl-count-n { display: none; }
  .tl-layer { grid-template-columns: 1fr; }
  .tl-layers { padding: 14px; }
  .tl-bar { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 12px 6px 12px; }
  .tl-prev, .tl-next { display: none; }
  .tl-ticks span { display: none; }
  .tl-track { height: 44px; margin-right: 4px; }
  .tl-rail, .tl-fill, .tl-run, .tl-thumb { top: 22px; }
  .tl-ticks li { padding-top: 16px; }
  .tl-thumb::before { width: 26px; height: 26px; }
  .tl-h { font-size: 1.22rem; }
}
@media (max-width: 560px) {
  .tl-media { aspect-ratio: 4 / 3; }
  .tl-win .aw-bar { padding: 0 14px; }
  .tl-win .aw-dots { display: none; }
}

/* ---------- How we do it ---------- */
.tl-how-wrap { margin-top: clamp(64px, 8vw, 112px); }
.tl-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.tl-how[data-n='4'] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-how[data-n='2'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-hw { position: relative; display: flex; flex-direction: column; padding: 24px 24px 26px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(7, 18, 15, 0.04); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.tl-hw::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--s450) 0 25%, var(--s520) 25% 50%, var(--s660) 50% 75%, var(--s730) 75%); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.tl-hw:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 44px -28px rgba(7, 18, 15, 0.45); }
.tl-hw:hover::before { transform: scaleX(1); }
.tl-hw-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tl-hw-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ink-1); color: var(--brand-mint); box-shadow: inset 0 0 0 1px rgba(66, 211, 156, 0.25); }
.tl-hw-ic svg { width: 26px; height: 26px; }
.tl-hw-n { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--fg-3); letter-spacing: 0.04em; }
.tl-hw h3 { margin: 0 0 8px; }
.tl-hw p { margin: 0; color: var(--fg-2); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 980px) { .tl-how, .tl-how[data-n='4'] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tl-how, .tl-how[data-n='4'], .tl-how[data-n='2'] { grid-template-columns: 1fr; } .tl-hw { padding: 20px; } .tl-hw-top { margin-bottom: 16px; } }

.tl-src { margin-top: clamp(32px, 4vw, 48px); background: transparent; }

/* ---------- Home teaser ---------- */
.tlt-sec { padding: clamp(40px, 5vw, 72px) 0; }
.tlt { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); overflow: hidden; color: #eef4f0; background: radial-gradient(90% 120% at 100% 0%, #17402f 0%, #0e231b 55%, #0a1813 100%); box-shadow: 0 30px 70px -36px rgba(7, 18, 15, 0.75), 0 0 0 1px rgba(66, 211, 156, 0.14); }
.tlt::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(66, 211, 156, 0.06) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(66, 211, 156, 0.06) 1px, transparent 1px) 0 0 / 28px 28px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.tlt .eyebrow { color: var(--brand-mint); margin-bottom: 14px; }
.tlt-title { margin: 0 0 18px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: #fff; }
.tlt-lead { margin: -6px 0 20px; color: #b9cac2; font-size: 0.98rem; max-width: 46ch; }
.tlt .link-arrow { color: var(--accent); }
.tlt .link-arrow::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.tlt .link-arrow:focus-visible { outline: none; }
.tlt:has(.link-arrow:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tlt-steps { --g: clamp(10px, 1.6vw, 18px); position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.tlt-steps li { position: relative; display: grid; gap: 10px; justify-items: center; align-content: start; text-align: center; min-width: 0; }
.tlt-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #0b1a15; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 34px -18px rgba(0, 0, 0, 0.7); }
.tlt-img .tl-img img { transition: transform 0.8s var(--ease); }
.tlt:hover .tlt-img .tl-img img { transform: scale(calc(var(--z, 1) * 1.05)); }
.tlt-rail { position: relative; display: block; width: 100%; height: 12px; margin-top: 2px; }
.tlt-rail::before { content: ''; position: absolute; top: 5px; height: 2px; left: calc(var(--g) / -2); right: calc(var(--g) / -2); background: rgba(66, 211, 156, 0.45); }
.tlt-steps li:first-child .tlt-rail::before { left: 50%; }
.tlt-steps li:last-child .tlt-rail::before { right: 50%; background: linear-gradient(90deg, rgba(66, 211, 156, 0.45), rgba(216, 243, 106, 0.8)); }
.tlt-rail i { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--brand-mint); box-shadow: 0 0 0 3px rgba(10, 24, 19, 0.9); }
.tlt-steps li:last-child .tlt-rail i { background: var(--accent); box-shadow: 0 0 0 3px rgba(10, 24, 19, 0.9), 0 0 0 7px rgba(216, 243, 106, 0.2); }
.tlt-name { font-size: 0.86rem; font-weight: 700; line-height: 1.25; color: #fff; }
.tlt-name small { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 600; color: #8a9b93; }
@media (max-width: 860px) { .tlt { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tlt { padding: 20px 16px; } .tlt-name { font-size: 0.78rem; } }
