/* Sections: hero sheet, the pieces, envelope-back chart, sewing instructions, notes, contact frame, envelope front. */

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + 12px); padding-bottom: clamp(28px, 4vh, 48px);
  overflow: hidden; isolation: isolate;
}
.hero-layers { position: absolute; inset: 0 var(--tape-w) 0 0; z-index: -1; pointer-events: none; }
.hp-layer { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; will-change: transform; }
.hp-far { opacity: .74; }
.hp-mid { opacity: .75; }
.hp-near { opacity: .9; }
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(22px, 3.4vh, 40px); }

.size-key {
  position: absolute; top: clamp(60px, 10vh, 96px); right: 0;
  display: grid; gap: 5px; padding: 12px 14px 11px; min-width: 148px;
  background: var(--sheet); border: 1px solid var(--ink);
  font-family: var(--f-mono); font-size: 11px; color: var(--ink);
}
.sk-row { display: grid; grid-template-columns: 54px auto; align-items: center; gap: 12px; }
.sk-row svg { width: 54px; height: 8px; overflow: visible; }
.sk-row b { font-weight: 500; }
.sk-cap { margin-top: 4px; padding-top: 7px; border-top: 1px solid rgba(21,23,26,.25); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.hl { position: relative; margin: 0; line-height: 1; }
.hl-text {
  display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(3.4rem, 11vw, 11rem); line-height: .9; letter-spacing: -0.045em; color: var(--ink);
}
.hl-svg { display: none; width: 100%; height: auto; overflow: visible; }
.js .hl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.js .hl-wide { display: block; max-height: calc(100dvh - 330px); width: auto; max-width: 100%; }
.hl-svg, .fw-svg { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-size: 100px; letter-spacing: -4px; line-height: 1; }
.ring-g { stroke: var(--green); }
.ring-b { stroke: var(--blue); }
.ring-r { stroke: var(--red); }
.ring-k { stroke: var(--ink); }
.hl-fill { fill: var(--ink); }
@media (max-width: 699px) {
  .js .hl-wide { display: none; }
  .js .hl-narrow { display: block; }
}
.motion .hl-draw { stroke-dashoffset: 900; }
.motion .hl-fillrect { transform: scaleX(0); }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.hero-sub { max-width: 30ch; font-size: clamp(18px, 1rem + .55vw, 23px); line-height: 1.38; color: var(--ink); font-weight: 450; text-wrap: balance; }
.hero-ctas { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.motion .hero-sub, .motion .hero-ctas > * { clip-path: inset(0 100% 0 0); }

@media (max-width: 699px) {
  .hero { padding-bottom: 28px; }
  .size-key { position: relative; top: auto; right: auto; justify-self: start; align-self: flex-start; margin-bottom: auto; min-width: 0; padding: 9px 11px; }
  .sk-row { grid-template-columns: 40px auto; gap: 9px; }
  .sk-row svg { width: 40px; }
  .hero-inner { gap: 22px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn-ink { flex: 1 1 auto; justify-content: space-between; }
}
@media (max-height: 640px) and (min-width: 700px) { .size-key { display: none; } }

/* ================= WORK: the pieces ================= */
.work, .process, .faq, .contact { position: relative; isolation: isolate; }
.work { padding-top: clamp(110px, 14vw, 200px); padding-bottom: clamp(80px, 10vw, 160px); }
.sheet {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.piece { position: relative; display: grid; gap: 22px 32px; --rot: 0deg; }
.piece-shape { position: relative; aspect-ratio: var(--ar); }
.piece-hit { position: absolute; inset: 0; display: block; pointer-events: none; color: inherit; }
.piece-hit:focus-visible { outline: none; }
.piece-hit:focus-visible .piece-lines .cut { stroke-width: 3.4; }
.piece-lift { position: absolute; inset: 0; transform-origin: 50% 60%; }
.piece-shadow { position: absolute; inset: 0; filter: blur(14px); transform: translate(8px, 16px); opacity: 0; }
.piece-shadow-shape { position: absolute; inset: 0; background: rgba(24, 30, 40, .42); transition: transform .5s var(--ease-spring), opacity .4s ease; opacity: .8; }
.piece-hover { position: absolute; inset: 0; transition: transform .55s var(--ease-spring); }
.piece-clip { position: absolute; inset: 0; pointer-events: auto; background: var(--sheet-3); }
.piece-wipe { position: absolute; inset: 0; }
.piece-wipe video, .piece-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.piece-tissue { position: absolute; inset: 0; background: var(--sheet); opacity: .16; mix-blend-mode: normal; transition: opacity .4s ease; }
.piece-lines, .piece-allow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.piece-lines .cut { fill: none; stroke-width: 2.2; }
.piece-lines .grainline { stroke: #fff; stroke-width: 1.5; fill: none; opacity: .92; }
.piece-lines .grain-shadow { stroke: rgba(10,12,16,.4); stroke-width: 3.5; fill: none; }
.piece-lines .notch { fill: var(--ink); }
.piece-lines .pnum-c { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }
.piece-lines .pnum-t { font-family: var(--f-mono); font-size: 17px; font-weight: 500; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.piece-allow .band { fill: url(#hatch); stroke: none; }
.piece-allow .allow { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.piece-allow .fold { fill: none; stroke: var(--ink); stroke-width: 1; }
.piece-allow .fold-arrow { fill: var(--ink); }
.piece-allow .fold-t { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; fill: var(--ink); text-anchor: middle; }
/* after the cut, the piece rests lifted; hover lifts it further and clears the tissue */
.piece.is-cut .piece-allow .band, .piece.is-cut .piece-allow .allow { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .piece.is-cut .piece-hit:hover .piece-hover { transform: translate(-3px, -12px) rotate(calc(var(--rot) * -0.5)); }
  .piece.is-cut .piece-hit:hover .piece-shadow-shape { transform: translate(8px, 18px) scale(1.01); opacity: 1; }
  .piece.is-cut .piece-hit:hover .piece-tissue { opacity: 0; }
}
.piece-hit:focus-visible .piece-tissue { opacity: 0; }

.piece-label { position: relative; max-width: 36ch; }
.pl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pl-meta svg { width: 34px; height: 6px; overflow: visible; }
.pl-title {
  margin-top: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.75rem, 1.1rem + 1.5vw, 2.6rem); line-height: .98; letter-spacing: -0.035em; color: var(--ink);
  overflow-wrap: anywhere;
}
.pl-ind { margin-top: 8px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink); }
.pl-desc { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pl-live {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 0; font-weight: 500; font-size: 15.5px; color: var(--ink); text-decoration: none; position: relative;
}
.pl-live::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1.5px; background: var(--ink); transform-origin: left; transition: transform .45s var(--ease-out); }
.pl-live svg { transition: transform .35s var(--ease-spring); }
@media (hover: hover) and (pointer: fine) {
  .pl-live:hover::after { transform: scaleX(.35); }
  .pl-live:hover svg { transform: translate(2px, -2px); }
}
.motion .piece:not(.is-in) .piece-label > * { clip-path: inset(0 100% 0 0); }

/* desktop arrangement: pieces laid out on one sheet, off the grid's rhythm */
@media (min-width: 1024px) {
  .piece[data-slot="0"] { grid-column: 1 / 9; grid-template-columns: minmax(0, 1fr) 15rem; align-items: end; --rot: -0.7deg; }
  .piece[data-slot="1"] { grid-column: 9 / 13; margin-top: 22vw; --rot: 0.9deg; }
  .piece[data-slot="2"] { grid-column: 2 / 12; margin-top: -2vw; --rot: 0.4deg; }
  .piece[data-slot="2"] .piece-label { justify-self: center; text-align: center; max-width: 34ch; }
  .piece[data-slot="2"] .pl-meta { justify-content: center; }
  .piece[data-slot="3"] { grid-column: 1 / 6; margin-top: 8vw; --rot: -0.9deg; }
  .piece[data-slot="4"] { grid-column: 7 / 13; margin-top: 16vw; --rot: 0.6deg; }
  .piece[data-slot="4"] .piece-label { margin-left: 12%; }
  .piece[data-slot="5"] { grid-column: 3 / 12; margin-top: 7vw; grid-template-columns: 15rem minmax(0, 1fr); align-items: center; --rot: -0.45deg; }
  .piece[data-slot="5"] .piece-label { grid-row: 1; grid-column: 1; }
  .piece[data-slot="5"] .piece-shape { grid-row: 1; grid-column: 2; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .piece { grid-column: 1 / 11; margin-top: 64px; }
  .piece:nth-child(even) { grid-column: 3 / 13; }
  .piece:first-child { margin-top: 0; }
  .piece[data-slot="0"] { --rot: -0.6deg; } .piece[data-slot="1"] { --rot: 0.7deg; } .piece[data-slot="2"] { --rot: 0.35deg; }
  .piece[data-slot="3"] { --rot: -0.7deg; } .piece[data-slot="4"] { --rot: 0.5deg; } .piece[data-slot="5"] { --rot: -0.4deg; }
  .piece[data-slot="1"] .piece-shape, .piece[data-slot="3"] .piece-shape { width: 72%; }
}
@media (max-width: 699px) {
  .piece { grid-column: 1 / -1; margin-top: 72px; gap: 22px; }
  .piece:first-child { margin-top: 8px; }
  .piece[data-slot="0"] { --rot: -0.5deg; } .piece[data-slot="1"] { --rot: 0.6deg; } .piece[data-slot="2"] { --rot: 0.3deg; }
  .piece[data-slot="3"] { --rot: -0.6deg; } .piece[data-slot="4"] { --rot: 0.45deg; } .piece[data-slot="5"] { --rot: -0.35deg; }
  .piece[data-slot="1"] .piece-shape, .piece[data-slot="3"] .piece-shape { width: 84%; }
  .piece-shape { margin: 0 6px; }
  .piece[data-slot="4"] .piece-shape { width: calc(100% - 52px); }
}

/* ================= SERVICES: envelope back ================= */
.services { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(30px, 3vw, 50px); }
.envelope {
  position: relative; isolation: isolate; background: var(--sheet-2);
  border: 1.5px solid var(--ink);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4.6vw, 72px) clamp(28px, 4vw, 56px);
}
.js .envelope, .js .env-front { border-color: transparent; }
.js .envelope::before { display: none; }
.envelope::before {
  /* the envelope flap fold, printed as a dash-dot fold line */
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 14px, transparent 14px 19px, var(--blue) 19px 21.5px, transparent 21.5px 26.5px);
  opacity: .75;
}
.env-head { margin-bottom: clamp(36px, 5vw, 64px); }
.chart { border-top: 2px solid var(--ink); }
.chart-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 1.5fr);
  gap: 8px 32px; align-items: start; padding: 26px 0 28px;
}
.chart-headrow { padding: 12px 0; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chart-body .chart-row + .chart-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(21,23,26,.24);
}
.chart-body .chart-row::after {
  /* the ruled line that draws across a row on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 18px);
  clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease-out);
}
.c-no { display: flex; }
.c-no b {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.4px solid var(--ink); font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.c-title h3 { font-family: var(--f-display); font-weight: 780; font-stretch: 104%; font-size: clamp(1.45rem, 1rem + 1vw, 2.05rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); padding-top: 4px; }
.c-text p { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 42ch; padding-top: 6px; }
.c-inc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; padding-top: 9px; }
.c-inc li { position: relative; padding-left: 18px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.c-inc li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border: 1.2px solid var(--ink); transform: rotate(45deg) scale(.8); }
@media (hover: hover) and (pointer: fine) {
  .chart-body .chart-row:hover::after { clip-path: inset(0 0 0 0); }
  .chart-body .chart-row:hover .c-no b { background: var(--ink); color: var(--sheet); }
}
.chart-body .chart-row:focus-within::after { clip-path: inset(0 0 0 0); }
/* each size in the chart is printed in its own ink, like graded sizes on the sheet */
.chart-row[data-ink="r"] .c-no b { border-color: var(--red); color: var(--red); border-style: dashed; }
.chart-row[data-ink="b"] .c-no b { border-color: var(--blue); color: var(--blue); }
.chart-row[data-ink="g"] .c-no b { border-color: var(--green); color: var(--green); border-style: dotted; border-width: 2px; }
.chart-row[data-ink="k"]::after { background: var(--ink) !important; }
.chart-row[data-ink="b"]::after { background: repeating-linear-gradient(90deg, var(--blue) 0 14px, transparent 14px 19px, var(--blue) 19px 21.5px, transparent 21.5px 26.5px) !important; }
.chart-row[data-ink="g"]::after { height: 3px !important; background: radial-gradient(circle, var(--green) 1.4px, transparent 1.7px) 0 50% / 7px 3px repeat-x !important; }
@media (hover: hover) and (pointer: fine) {
  .chart-body .chart-row[data-ink="r"]:hover .c-no b { background: var(--red); color: var(--sheet); }
  .chart-body .chart-row[data-ink="b"]:hover .c-no b { background: var(--blue); color: var(--sheet); }
  .chart-body .chart-row[data-ink="g"]:hover .c-no b { background: var(--green); color: var(--sheet); }
}
.notions { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(21,23,26,.3); max-width: 80ch; font-size: 15px; color: var(--ink-2); }
.notions b { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-right: 6px; }
.motion .chart-body .chart-row:not(.is-in) > * { clip-path: inset(0 100% 0 0); }

@media (max-width: 1023px) {
  .chart-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr); }
  .c-inc { grid-column: 2 / -1; }
}
@media (max-width: 699px) {
  .chart-headrow { display: none; }
  .chart-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 14px; padding: 22px 0; }
  .c-text, .c-inc { grid-column: 2 / -1; }
  .c-no b { width: 34px; height: 34px; font-size: 12.5px; }
  .c-inc ul { grid-template-columns: 1fr; gap: 8px; }
  .c-text p { padding-top: 0; }
}

/* ================= PROCESS: sewing instructions ================= */
.process { padding-top: clamp(130px, 13vw, 190px); padding-bottom: clamp(90px, 11vw, 170px); }
.faq > .outline { opacity: .75; }
@media (max-width: 899px) { .faq > .outline { display: none; } }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink); border-left: 1px solid var(--ink); background: var(--sheet);
}
.step, .step-end {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; align-content: start;
  gap: 4px 16px; padding: clamp(18px, 1.8vw, 26px) clamp(16px, 1.6vw, 24px) 30px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.step-n {
  grid-row: 1 / 3; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(52px, 4.6vw, 72px); line-height: .8; letter-spacing: -0.05em; color: var(--ink); min-width: .7em;
}
.step-title { font-family: var(--f-display); font-weight: 780; font-stretch: 104%; font-size: clamp(22px, 1.9vw, 28px); line-height: 1; letter-spacing: -0.025em; color: var(--ink); padding-top: 2px; }
.step-sub { font-size: 15px; font-weight: 500; color: var(--ink); }
.step-fig {
  grid-column: 1 / -1; margin: 18px 0 16px; padding: 14px 6px;
  background: var(--sheet-2); border: 1px solid rgba(21,23,26,.2);
}
.step-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.step-fig .ln { stroke-width: 1.7; }
.step-fig .ann-text { font-size: 10px; }
.step-text { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.step-out { grid-column: 1 / -1; margin-top: 14px; display: grid; gap: 3px; }
.step-out dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.step-out dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.step-detail { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(21,23,26,.3); font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.step-end { background: var(--ink); color: var(--sheet); grid-template-columns: 1fr; }
.step-end .step-fig { margin: 0 0 18px; background: transparent; border-color: rgba(243,244,240,.25); }
.step-end .step-fig .ln-k, .step-end .step-fig .ln-arrow { stroke: var(--sheet); }
.step-end > p { font-family: var(--f-display); font-weight: 780; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; letter-spacing: -0.025em; color: var(--sheet); max-width: 14ch; }
@media (max-width: 1199px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } }
.motion .step:not(.is-in) .step-text, .motion .step:not(.is-in) .step-out, .motion .step:not(.is-in) .step-detail, .motion .step:not(.is-in) .step-title, .motion .step:not(.is-in) .step-sub { clip-path: inset(0 100% 0 0); }
.motion .step:not(.is-in) .step-n { clip-path: inset(0 0 100% 0); }

/* ================= FAQ ================= */
.faq { padding-bottom: clamp(90px, 11vw, 170px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 110px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-list { border-top: 1.5px solid var(--ink); }
.qa { position: relative; }
.qa::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 14px, transparent 14px 19px, var(--blue) 19px 21.5px, transparent 21.5px 26.5px);
  opacity: .8;
}
.qa-btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 24px; align-items: center;
  padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-stretch: 102%; font-size: clamp(1.15rem, .95rem + .6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink);
}
.qa-btn:active .qa-ico { transform: scale(.9); }
.qa-ico { width: 28px; height: 28px; transition: transform .16s var(--ease-out); }
.qa-ico circle { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.qa-ico line { stroke: var(--ink); stroke-width: 1.6; transition: transform .35s var(--ease-out); transform-origin: 14px 14px; }
.qa.is-open .qa-ico .v { transform: scaleY(0); }
.qa-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease-out); }
.qa.is-open .qa-panel { grid-template-rows: 1fr; }
.qa-panel > div { overflow: hidden; }
.qa-panel p { padding: 0 52px 28px 0; max-width: 62ch; color: var(--ink-2); font-size: 16.5px; }
@media (hover: hover) and (pointer: fine) { .qa-btn:hover .qa-ico circle { fill: var(--sheet-2); } }
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .qa-panel p { padding-right: 0; }
}

/* ================= CONTACT ================= */
.contact { padding-bottom: clamp(90px, 11vw, 170px); scroll-margin-top: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 96px); align-items: start; }
.contact-side { position: sticky; top: calc(var(--nav-h) + 32px); }
.contact-head { margin-bottom: clamp(40px, 5vw, 72px); }
.brief-host { margin-top: 40px; }
.contact-direct { margin-top: 26px; font-size: 15.5px; color: var(--ink-2); }
.contact-direct a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.worksheet { position: relative; isolation: isolate; background: var(--sheet); border: 1.5px solid var(--ink); padding: clamp(20px, 3.6vw, 52px); }
.worksheet > .outline { left: -12px; top: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
.ws-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid rgba(21,23,26,.3); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.motion .worksheet:not(.is-in) { clip-path: inset(0 0 100% 0); }
@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .brief-host { margin-top: 28px; }
}
@media (max-width: 699px) { .worksheet > .outline { left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); } }

/* ================= FOOTER: envelope front ================= */
.foot { padding-bottom: clamp(16px, 3vw, 40px); }
.env-front { position: relative; isolation: isolate; border: 1.5px solid var(--ink); background: var(--sheet-2); padding: clamp(30px, 3.6vw, 56px) clamp(18px, 3.6vw, 56px) clamp(22px, 3vw, 40px); }
.ef-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.ef-line { max-width: 32ch; font-size: 17px; color: var(--ink); font-weight: 500; }
.ef-size { display: grid; border: 1.5px solid var(--ink); text-align: center; font-family: var(--f-mono); flex: none; }
.ef-size span { padding: 4px 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); color: var(--ink-3); }
.ef-size b { padding: 6px 12px; font-weight: 500; font-size: 13px; color: var(--ink); }
.ef-art { margin-top: clamp(28px, 4vw, 56px); padding: clamp(18px, 2.4vw, 32px) 0; border-top: 1px solid rgba(21,23,26,.3); }
.ef-pieces { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(10px, 2.4vw, 40px); }
.efp { display: grid; justify-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.efp svg { width: 100%; max-width: 150px; height: auto; overflow: visible; }
.efp .ln { stroke-width: 2.2; }
.efp figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--ink); display: grid; place-items: center; width: 26px; height: 26px; border: 1.2px solid var(--ink); border-radius: 50%; }
.ef-art-cap { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ef-mark { margin: clamp(26px, 4vw, 56px) 0 clamp(24px, 3vw, 44px); }
@media (max-width: 699px) { .ef-pieces { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 18px; align-items: end; } }
.fw-svg { width: 100%; height: auto; overflow: visible; }
.fw-narrow { display: none; }
@media (max-width: 699px) { .fw-wide { display: none; } .fw-narrow { display: block; } }
.fw-fill { fill: var(--ink); }
.motion .fw-draw { stroke-dashoffset: 900; }
.motion .fw-fillrect { transform: scaleX(0); }
.ef-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px 40px; flex-wrap: wrap; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.ef-email {
  font-family: var(--f-display); font-weight: 760; font-stretch: 104%; font-size: clamp(1.35rem, .8rem + 2.2vw, 2.9rem);
  letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
  position: relative; padding-bottom: 4px;
}
.ef-email::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ef-email:hover::after { transform: scaleX(1); } }
.ef-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ef-nav a { padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ef-nav a:hover { text-decoration: underline; text-decoration-style: dashed; text-decoration-color: var(--red); } }
.ef-fine { margin-top: 26px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 699px) { .ef-top { flex-direction: column; } }

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .piece-shadow { opacity: .8; }
}

/* ================= JS motion gates ================= */
.motion .hp-trace { visibility: hidden; }
.motion .hp-layer > :not(.hp-trace) { opacity: 0; }
.piece.is-static .piece-lift { transform: translateY(-7px) rotate(var(--rot)); }
.piece.is-static .piece-shadow { opacity: 1; }
main, .foot { overflow-x: clip; }

/* layout slots repeat every six pieces: a piece that starts a new run needs room above it */
@media (min-width: 1024px) {
  .piece[data-slot="0"]:not(:first-child) { margin-top: 12vw; }
}
