/* Cut paper. Loaded after styles.css; the layout stays as it is there, this file changes what everything is made of.
   The direction is Rod's (Miro "Site and marketing content", 2026-11-21: his own cut-paper piece, "cut paper design
   language: human, symbolic, artful abstraction", "we are about the Real") and Connor's go on 2026-11-24 to lean into it.
   The page is a collage: a kraft ground, sheets of white, dark and yolk paper laid on it a hair off square, shapes cut
   by hand, and words cut out of the dark paper. Nothing glows, nothing is glossy, nothing has a round corner.
   The papers and Rod's piece come from his photo (tools/paper-art.py). Motion is in paper.js. */

:root {
  --kraft: #cbb494;
  --plum: #3a3038;
  --cream: #ece8de;
  --yolk: #f3b732;
  --ink: #2a232e;            /* the dark paper, a shade deeper, for words that have to read small */
  --white: var(--cream);
  --sh: 46, 28, 14;          /* the colour of a shadow on kraft */
  --p-kraft: url("/img/paper/kraft.jpg");
  --p-plum: url("/img/paper/plum.jpg");
  --p-cream: url("/img/paper/cream.jpg");
  --p-yolk: url("/img/paper/yolk.jpg");
  --tile: 732px 304px;
  --rule: 0 solid transparent;   /* the heavy rules become strips of paper, below */
  --lay: 0 1px 0 rgba(var(--sh), 0.2), 0 2px 3px rgba(var(--sh), 0.24), 0 16px 28px -12px rgba(var(--sh), 0.42);   /* a sheet lying on the ground */
  --lay-small: 0 1px 1px rgba(var(--sh), 0.38), 0 5px 7px -3px rgba(var(--sh), 0.4);                                /* a small piece lying on a sheet */
}

body { position: relative; background: var(--kraft) var(--p-kraft) 0 0 / var(--tile); color: var(--ink); }
/* Light falls from the top left, as it does on a desk. */
body::before { content: ""; position: absolute; z-index: 0; inset: 0 0 auto 0; height: 1700px; pointer-events: none; background: radial-gradient(95% 70% at 16% 0%, rgba(255, 247, 228, 0.3), rgba(255, 247, 228, 0) 72%); }
.paper-defs { position: absolute; }
/* Sheets and pieces run past the sides of the screen. Each band of the page cuts them off at its own edge, so the
   page never becomes wider than the screen (the body's own clip is handed to the viewport and stops nothing there). */
.hero, main, .closing { overflow-x: clip; }
main { position: relative; z-index: 1; }
main > section { position: relative; }

/* A sheet of paper under a block. It runs past both edges of the screen and lies a fraction of a degree off square. */
.sheet { position: relative; isolation: isolate; }
.sheet::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -6vw;
  background: var(--cream) var(--p-cream) 0 0 / var(--tile);
  transform: rotate(var(--tilt, 0.35deg));
  box-shadow: var(--lay);
}
.sheet-yolk::before { background-color: var(--yolk); background-image: var(--p-yolk); }
.sheet-plum { color: var(--cream); }
.sheet-plum a:focus-visible { outline-color: var(--cream); }

/* A strip of dark paper where a heavy rule used to be. */
.person, .bio, .step, .add, .area { position: relative; }
.person::before, .bio::before, .step::before, .add::before, .area::before, .step:last-child::after, .add:last-child::after {
  content: ""; position: absolute; left: -0.35rem; right: -0.35rem; top: 0; height: 5px;
  background: var(--plum) var(--p-plum) 0 0 / var(--tile);
  transform: rotate(-0.22deg);
  box-shadow: 0 1px 1px rgba(var(--sh), 0.32);
}
.step:nth-child(even)::before, .add:nth-child(even)::before, .person + .person::before { transform: rotate(0.28deg); }
.step:last-child::after, .add:last-child::after { top: auto; bottom: -2px; transform: rotate(0.18deg); }
.walk-list li { border-top: 4px solid var(--plum); }   /* this list's ::before carries its number, so it keeps a plain rule */
.walk-list li:last-child { border-bottom: 4px solid var(--plum); }

/* ---- Top of the page ---- */
.hero { z-index: 2; overflow-x: clip; overflow-y: visible; background: none; padding-bottom: clamp(3rem, 8vh, 6rem); }
.wordmark { display: inline-flex; align-items: center; gap: 0.5em; }
.mark-egg { height: 1.55em; width: auto; overflow: visible; transform: rotate(9deg); filter: drop-shadow(0 1px 0.5px rgba(var(--sh), 0.4)); }
.bar-cta { background: var(--plum) var(--p-plum) 40px 60px / var(--tile); color: var(--cream); transform: rotate(-1.3deg); box-shadow: var(--lay-small); }
.hero-main { display: flex; flex-direction: column; }

/* The headline: letters cut from the dark paper, each laid down a hair off the line. */
.flip { color: var(--plum); }
.flip .wi { position: relative; }
.flip .ch { display: inline-block; transform: rotate(var(--r)) translateY(var(--y)); }
.flip .cut { position: relative; }
.flip .cut-shadow { position: absolute; left: 0; top: 0; white-space: nowrap; color: transparent; text-shadow: 0 0.014em 0.012em rgba(var(--sh), 0.55); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .flip .cut .ch { background: var(--plum) var(--p-plum) var(--bx) var(--by) / var(--tile); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.strike { height: 0.1em; background: var(--yolk) var(--p-yolk) 0 0 / var(--tile); box-shadow: 0 0.012em 0.012em rgba(var(--sh), 0.45); }

/* Rod's piece. The starburst and the nest are two pieces of paper, so each throws its own shadow; the shadows are
   part of the two images (tools/paper-art.py), and so is the margin around each piece that holds its shadow. */
.hero-art { order: 5; position: relative; width: min(98%, 32rem); aspect-ratio: 1800 / 1294; margin: clamp(2rem, 6vw, 3rem) auto -5.75rem; transform: rotate(-3deg); }
.hero-art img { position: absolute; display: block; max-width: none; }
.art-burst { inset: 0; width: 100%; height: 100%; }
.art-nest { left: 19.06%; top: 27.17%; width: 63.22%; height: auto; }

.btn { box-shadow: var(--lay-small); transform: rotate(-0.7deg); }
.btn, .bar-cta { transition: box-shadow 0.25s ease; }
.btn:hover, .bar-cta:hover { box-shadow: 0 2px 2px rgba(var(--sh), 0.3), 0 13px 16px -7px rgba(var(--sh), 0.5); }   /* picked up off the sheet */
::selection { background: var(--yolk); color: var(--ink); }
.btn.dark { background: var(--yolk) var(--p-yolk) 120px 30px / var(--tile); color: var(--ink); }

/* ---- The story: a white sheet, slid under the bottom of Rod's piece ---- */
main > section.sheet { padding-top: clamp(4.5rem, 10vw, 8.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.who.sheet { --tilt: 0.35deg; margin-top: -1rem; }
.person, .bio { padding-top: 1.75rem; }
/* Two halves, two papers, one egg: the two of us. With motion on they start apart and meet as the story is reached. */
.halves { width: 7.5rem; margin: 0 0 1.5rem; transform: rotate(9deg); }
.halves .egg { display: block; width: 100%; height: auto; }
.halves-egg .egg-top { transform: translate(-0.6px, -1.4px); }
.js .halves-egg:not(.is-in) .egg-top { transform: translate(-30px, -34px) rotate(-17deg); }
.js .halves-egg:not(.is-in) .egg-bottom { transform: translate(26px, 24px) rotate(12deg); }

/* ---- Why it works: the dark sheet. Chicken wire is cut into its top edge, and an egg sits safe behind it. ---- */
main > section.why {
  --wire-h: clamp(112px, 14vw, 196px);
  isolation: isolate; margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: calc(var(--wire-h) + clamp(3.25rem, 7vw, 6.5rem)); padding-bottom: clamp(4.5rem, 10vw, 8.5rem);
}
.sheet-bg { position: absolute; z-index: -1; inset: 0 -6vw; transform: rotate(var(--tilt, -0.4deg)); }
.sheet-fill { position: absolute; inset: calc(var(--wire-h) - 1px) 0 0 0; background: var(--plum) var(--p-plum) 0 0 / var(--tile); box-shadow: 0 2px 3px rgba(var(--sh), 0.24), 0 16px 28px -12px rgba(var(--sh), 0.45); }
.wire-wrap { position: absolute; inset: 0 0 auto 0; height: var(--wire-h); filter: drop-shadow(0 2px 1.5px rgba(var(--sh), 0.5)); }
.wire, .wire-wrap::before { background: var(--plum) var(--p-plum) 0 0 / var(--tile); }
.wire { position: absolute; inset: 0; -webkit-mask: url("/img/paper/wire.svg") 50% 100% / 78px auto repeat; mask: url("/img/paper/wire.svg") 50% 100% / 78px auto repeat; }
.wire-wrap::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 8px; }   /* the top rail */
.wire-egg { position: absolute; top: calc(var(--wire-h) * 0.1); right: 21%; height: calc(var(--wire-h) * 0.92); width: auto; transform: rotate(18deg); }
.why h2 { color: var(--cream); }

/* The quote: each line is a strip of white paper with the words on it. With motion on, the strips are laid down
   one after another as the quote is scrolled to (paper.js moves --q from 0 to the number of lines). */
.why .quote blockquote { --q: 99; color: var(--ink); }
.why .quote figcaption { color: var(--cream); }
html:not(.js) .why .quote blockquote { display: inline; padding: 0.03em 0.18em; background: var(--cream) var(--p-cream) 0 0 / var(--tile); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.why .ql {
  --w: clamp(0, var(--q) - var(--i, 0), 1);
  padding: 0.045em 0.2em 0.02em; margin: 0.1em 0 0.1em -0.2em;
  transform: rotate(-0.45deg);
  /* Top layer: the words, dark where the strip has reached and white where it hasn't. Under it: the strip itself. */
  background-image: linear-gradient(90deg, var(--ink) calc(var(--w) * 100%), var(--cream) calc(var(--w) * 100%)), linear-gradient(var(--cream), var(--cream)) !important;
  background-size: 100% 100%, calc(var(--w) * 100%) 100% !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text, padding-box; background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  position: relative; z-index: 0;
}
/* The strip's shadow: an empty box the width the strip has reached, which draws only the shadow around itself.
   (Not a filter on the line: a filter over words that change as the strip arrives broke up on Intel graphics.) */
.why .ql::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: calc(var(--w) * 100%); box-shadow: var(--lay-small); opacity: min(1, calc(var(--w) * 12)); }
.why .ql:nth-child(2) { --i: 1; transform: rotate(0.5deg); }
.why .ql:nth-child(3) { --i: 2; transform: rotate(-0.25deg); }
.why .ql:nth-child(4) { --i: 3; transform: rotate(0.4deg); }
.why .ql:nth-child(5) { --i: 4; }
.why .ql:nth-child(6) { --i: 5; transform: rotate(0.3deg); }

/* ---- How it goes: on the kraft, an egg beside each step, a little further along each time ---- */
main > section.steps { padding-top: clamp(4.5rem, 10vw, 8.5rem); }
.step-n { font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: 0.95; padding-right: 5.6rem; }
.step-egg { position: absolute; right: -0.9rem; top: -0.2rem; height: 7rem; width: auto; transform: rotate(var(--lean, -7deg)); }
.step-body h3 { padding-right: 4.6rem; }   /* on a narrow screen the egg sits at the row's top right; the step's name stops short of it */
.step:nth-child(2) .step-egg { --lean: 5deg; }
.step:nth-child(3) .step-egg { --lean: -3deg; }
.step:nth-child(4) .step-egg { --lean: 4deg; }

.egg, .shards { overflow: visible; }
.egg-sliver { fill: #b89d79; }
.egg-crack { fill: none; stroke: #5d4a3a; stroke-width: 1.7; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s ease 0.25s; }
.egg-piece { transform-box: view-box; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(0.2, 0.9, 0.25, 1.06); }
.egg-s2 .egg-top { transform-origin: 44px -8px; transform: rotate(-22deg); }   /* opens like a lid, hinged at the crack's right end */
.egg-s2 .egg-bottom { transform: translate(1px, 3px) rotate(1.5deg); }
.egg-s3 .egg-top { transform: translate(-66px, 8px) rotate(-64deg); }   /* the cap lies beside the cup */
.egg-s3 .egg-bottom { transform: translate(6px, 6px) rotate(4deg); }
.egg-s3 .egg-yolk { transform: translate(7px, -13px); }
/* With motion on, each egg stays whole until its step is reached. */
.js .step-egg:not(.is-in) .egg-piece { transform: rotate(0deg); }
.js .step-egg:not(.is-in) .egg-yolk { transform: translate(0, 18px) scale(0.55); }
.js .step-egg:not(.is-in) .egg-crack { stroke-dashoffset: 1; }

/* ---- The two ways in: whole eggs in the nest on white, a broken shell on the dark paper ---- */
main > section.offers { padding-top: clamp(4.5rem, 10vw, 8.5rem); }
.offer { position: relative; isolation: isolate; }
.offer::before { content: ""; position: absolute; z-index: -1; inset: 0 -6vw; transform: rotate(var(--tilt)); box-shadow: var(--lay); }
.offer.before { --tilt: 0.4deg; background: none; }
.offer.before::before { background: var(--cream) var(--p-cream) 200px 90px / var(--tile); }
.offer.after { --tilt: -0.5deg; background: none; color: var(--cream); margin-top: -1.1rem; }
.offer.after::before { background: var(--plum) var(--p-plum) 80px 40px / var(--tile); }
.offer.after h3 { color: var(--cream); }
/* The nest hangs over the top edge of its sheet, half on the kraft: one more layer in the stack. */
.offer-art { width: min(78%, 21rem); margin: calc(-1 * clamp(4.5rem, 9vw, 8.5rem)) 0 clamp(1.5rem, 3vw, 2.5rem); transform: rotate(-4deg); }
.offer-art img { display: block; width: 100%; height: auto; }
.offer.after .offer-art { width: min(66%, 17rem); margin-top: 0; transform: rotate(3deg); }
.shards { display: block; width: 100%; height: auto; }

/* ---- The ask: a sheet of yolk paper. The footer is back on the kraft. ---- */
.closing { background: none; color: var(--ink); position: relative; z-index: 1; padding-top: clamp(3.5rem, 8vw, 7rem); }
.start.sheet { --tilt: -0.35deg; }
.start h2 { color: var(--ink); }
.start .btn { background: var(--plum) var(--p-plum) 300px 10px / var(--tile); color: var(--cream); }
.closing a:focus-visible { outline-color: var(--ink); }
.foot { padding-top: clamp(2.5rem, 5vw, 4rem); }
.foot p, .foot .foot-links + p { border-top-color: rgba(var(--sh), 0.35); }

/* ---- The other pages, in the same paper ---- */
.phero.dark { background: none; isolation: isolate; color: var(--cream); }
.phero.dark::before { content: ""; position: absolute; z-index: -1; inset: -3rem -6vw 0; background: var(--plum) var(--p-plum) 0 0 / var(--tile); transform: rotate(-0.3deg); box-shadow: var(--lay); }
.phero.dark .offer-name, .phero.dark .ptitle { color: var(--yolk); }
.phero.dark .bar-cta, .phero.dark .btn.dark { background: var(--yolk) var(--p-yolk) 0 0 / var(--tile); color: var(--ink); }
.phero.dark a:focus-visible { outline-color: var(--cream); }
.ptitle { color: var(--plum); text-shadow: 0 0.014em 0.012em rgba(var(--sh), 0.45); }
.pairing { isolation: isolate; background: none; margin-top: clamp(3rem, 7vw, 6rem); }
.pairing::before { content: ""; position: absolute; z-index: -1; inset: 0 -6vw; background: var(--yolk) var(--p-yolk) 0 0 / var(--tile); transform: rotate(0.35deg); box-shadow: var(--lay); }

/* On a phone the bar's first row holds the mark, the name and the button: the mark gives up a little size for that. */
@media (max-width: 879px) {
  .bar { column-gap: 0.7rem; }
  .wordmark { gap: 0.3em; font-size: 0.86rem; }
  .mark-egg { height: 1.4em; }
}
/* Between a tablet and a small laptop the bar has the least room: keep it on one line. */
@media (min-width: 880px) and (max-width: 1180px) {
  .bar { gap: 0.5rem 1.1rem; }
  .bar-links { gap: 0.4rem 1.05rem; font-size: 0.94rem; }
  .wordmark { font-size: 1.14rem; }
}
@media (min-width: 880px) {
  /* The headline takes the left of the first screen in three lines; Rod's piece takes the right. */
  .hero-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); column-gap: var(--col-gap); align-items: center; margin-top: clamp(1rem, 3.5vh, 3rem); }
  .hero-main > .was, .hero-main > .hero-copy { grid-column: 1 / -1; }
  .hero-main > .flip { grid-column: 1; font-size: clamp(3.4rem, min(8.8vw, 19vh), 12.6rem); }
  /* The piece is taller than the headline beside it. It hangs past the row above and below, so the row stays short. */
  /* Its size follows the window's height: what is left once the bar, the headline's row and the words under it have their room. */
  .hero-art { grid-column: 2; grid-row: 2; justify-self: center; width: clamp(22rem, calc((100vh - 29rem) * 1.39), 114%); margin: -4.25rem 0 0; }
  .hero-copy { margin-top: clamp(1.5rem, 4vh, 3rem); }

  .step-n, .step-body h3 { padding-right: 0; }
  .step-egg { right: calc(55% + 2.25rem); top: 50%; height: clamp(8rem, 12.4vw, 14rem); transform: translateY(-50%) rotate(var(--lean, -7deg)); }
  .offer-art { width: min(66%, 27rem); }
  .offer.after .offer-art { width: min(52%, 20rem); }
  /* The two-halves egg sits in the open left half, beside the story. */
  .who .halves { position: absolute; left: calc(var(--pad) + 17%); width: clamp(10rem, 15.5vw, 18.5rem); margin: -0.5rem 0 0; }
  .who .story { min-height: clamp(11rem, 17vw, 19rem); }
  .foot .foot-links + p { border-top-color: rgba(var(--sh), 0.35); }
}
