.timefold { --ink: #271a18; --muted: #52342c; --paper: #fff8ea; --edge: #d6b5a0; --accent: #251918; --accent-hover: #5d2724; --focus: #201210; --corner: 2px; }
.timefold .masthead { background: #fff8ea; border-bottom: 1px solid #3c201a; }
.fold-hero { background: #ff6756; }
.fold-opening {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: 1rem clamp(2rem, 6vw, 6rem); padding-block: clamp(3.2rem, 6.2vw, 6.1rem) clamp(3.6rem, 6.2vw, 6.45rem);
}
.fold-copy h1 { font-size: clamp(4.2rem, 8.5vw, 7.85rem); font-weight: 700; line-height: .83; letter-spacing: -.08em; }
.fold-copy .lead { margin-block: 1.4rem 1.35rem; max-inline-size: 42ch; }
.fold-copy .terms, .fold-copy .lead { color: #3f211b; }
.fold-tour { min-inline-size: 0; position: relative; isolation: isolate; }
.fold-toggle {
  min-block-size: 44px; min-inline-size: 44px; inline-size: fit-content; cursor: pointer; display: inline-flex;
  align-items: center; gap: 1.15rem; padding-inline: .75rem; border: 1px solid #49221c;
  background: #ff9180; font-size: .92rem; font-weight: 650;
}
.fold-toggle:hover { background: #fff1d4; text-decoration: underline; text-underline-offset: .2em; }
.fold-control:focus-visible + .fold-toggle { outline: 3px solid var(--focus); outline-offset: 4px; }
.fold-glyph { inline-size: .85rem; block-size: .85rem; border-inline-start: 1.5px solid; border-block-end: 1.5px solid; transform: skewY(-24deg); }
.fold-control:checked + .fold-toggle .fold-glyph { transform: rotate(180deg) skewY(-24deg); }
.to-tasks, .fold-control:checked ~ .fold-visual .task-state, .fold-control:checked + .fold-toggle .to-project { display: none; }
.fold-control:checked + .fold-toggle .to-tasks { display: inline; }
.fold-control:checked ~ .fold-visual .team-state { display: grid; }
.fold-visual > .sample-label { margin-top: .6rem; color: #3f211b; }
.fold-piles { display: grid; align-items: center; min-block-size: 21.25rem; padding-block: 2.6rem 2.15rem; }
.sculpture { list-style: none; padding: 0; margin: 0; gap: .28rem; transform: skewY(-9deg); display: grid; }
.sculpture li { --step: 0%; --strip: 63%; position: relative; isolation: isolate; width: var(--strip); margin-inline-start: var(--step); min-inline-size: 0; }
.sculpture li:nth-child(2) { --step: 12%; --strip: 73%; }
.sculpture li:nth-child(3) { --step: 22%; --strip: 65%; }
.sculpture li:nth-child(4) { --step: 33%; --strip: 65%; }
.sculpture li span {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-block-size: 52px; background: #fff3cf; color: #2b1c16; padding: .45rem clamp(.55rem, 2vw, 1.4rem);
  font-size: clamp(1rem, 2.2vw, 1.65rem); line-height: 1.05; font-weight: 600; letter-spacing: -.035em;
}
.sculpture li b { font-size: .74em; white-space: nowrap; }
.sculpture li:nth-child(even) span { background: #ffd49d; }
.sculpture li::before { content: ""; position: absolute; inset: 0 -7.5% -60% 39%; background: #743229; clip-path: polygon(0 0, 88% 0, 100% 38%, 100% 100%); z-index: -2; }
.sculpture li::after { content: ""; z-index: -1; position: absolute; inset: 16% -7.5% -58% 66%; background: #b04434; clip-path: polygon(71% 0, 100% 23%, 100% 100%, 0 57%); }
.sculpture li:last-child::before, .sculpture li:last-child::after { inset-inline-end: 0; }
.team-state { display: none; gap: 2.6rem; }
.team-state li { --strip: 75%; }
.team-state li:nth-child(2) { --step: 22%; --strip: 69%; }
.team-state li span { min-block-size: 74px; }
.fold-control:checked ~ .fold-visual .sculpture li span { animation: pleat 400ms var(--lift) both; transform-origin: center top; }
@keyframes pleat { from { opacity: .5; transform: perspective(300px) rotateX(-32deg) scaleY(.84); } to { opacity: 1; transform: none; } }
.fold-total { margin-inline-start: auto; background: #2a1a18; color: #fff3da; width: min(100%, 22rem); padding: .7rem 1rem .8rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .72rem; border-bottom: 4px solid #fcd09d; }
.fold-total > span { font-size: .88rem; font-weight: 600; }
.fold-total strong { font-size: clamp(1.2rem, 2.25vw, 1.65rem); line-height: 1; letter-spacing: -.04em; }
.fold-total small { font-size: .55em; font-weight: 500; letter-spacing: 0; }
.fold-apps { position: relative; background: #fff8ea; padding-block: clamp(4rem, 10vw, 8rem) clamp(3.3rem, 7.5vw, 6rem); }
.fold-apps::before { content: ""; position: absolute; inset: -2.15rem 0 100%; background: #fff8ea; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.fold-app-composition { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(1.4rem, 8vw, 8rem); align-items: center; }
.fold-screen { max-inline-size: 29rem; }
.fold-screen img { border: 1px solid #cfc2b5; }
.fold-apps h2 { max-inline-size: 12ch; }
.fold-apps .feat-copy { max-inline-size: 41ch; }
.fold-scope { --ink: #fff5df; color: var(--ink); background: #2a1c1b; }
.fold-scope .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 1.4rem clamp(2rem, 10vw, 9rem); padding-block: clamp(3.75rem, 8.5vw, 8rem); }
.fold-scope h2 { max-inline-size: 14ch; color: #fff5df; }
.scope-copy { color: #f4ddc8; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.scope-copy p + p { margin-top: .85rem; }
.fold-offer { background: #ff6756; }
.fold-offer .wrap { padding-block: clamp(3.25rem, 7.5vw, 6rem); display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 1.15rem clamp(2rem, 7vw, 5rem); }
.fold-offer h2 { max-inline-size: 14ch; }
.fold-offer p { margin-bottom: 1rem; }

@media (max-width: 54rem) {
  .fold-copy h1 { font-size: clamp(3.5rem, 9vw, 4.95rem); }
  .fold-opening { column-gap: 2.15rem; }
}
@media (max-width: 44rem) {
  .fold-opening { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.9rem 3.15rem; }
  .fold-copy h1 { font-size: clamp(2.975rem, 13vw, 5.3rem); }
  .fold-break { display: none; }
  .fold-copy .lead { margin-block: .95rem .75rem; }
  .fold-copy .terms { margin-block-start: .5rem; font-size: .8125rem; }
  .fold-tour { max-inline-size: 30rem; }
  .fold-piles { min-block-size: 14rem; padding-block: 1.1rem 1.33rem; }
  .sculpture { transform: skewY(-7deg); }
  .sculpture li span { min-block-size: 38px; }
  .team-state { gap: 1.33rem; }
  .team-state li span { min-block-size: 56px; }
  .fold-total { max-inline-size: 18rem; padding: .53rem .7rem; }
  .fold-apps::before { inset-block-start: -1.05rem; }
  .fold-app-composition, .fold-scope .wrap, .fold-offer .wrap { grid-template-columns: 1fr; }
  .fold-app-composition > div { grid-row: 1; }
}
