/* The Barkitekt: styled like the brand's blueprint artwork (navy drafting paper, cream linework, tan accents). */
:root {
  --navy: #17314f;
  --navy-deep: #0d2238;
  --blueprint: #143246;
  --cream: #f6eedb;
  --cream-dim: #cfd6df;
  --tan: #d49a5c;
  --ink: #0f1c2b;
  --paper: #f7f3ea;
  --muted: #5b6573;
  --line: rgba(246, 238, 219, .14);
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --hand: "Architects Daughter", "Comic Sans MS", cursive;
  --wrap: 1180px;
  /* Blueprint grid: fine lines every 24px, heavier every 120px */
  --grid: linear-gradient(rgba(246, 238, 219, .05) 1px, transparent 1px) 0 0 / 24px 24px,
          linear-gradient(90deg, rgba(246, 238, 219, .05) 1px, transparent 1px) 0 0 / 24px 24px,
          linear-gradient(rgba(246, 238, 219, .09) 1px, transparent 1px) 0 0 / 120px 120px,
          linear-gradient(90deg, rgba(246, 238, 219, .09) 1px, transparent 1px) 0 0 / 120px 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--cream); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
mark.todo { background: #ffe36e; color: #3a2a00; padding: 0 .3em; border-radius: 3px; box-shadow: 0 0 0 1px #d6b100 inset; font-family: var(--font); }
.draft-note { background: #2b2b29; color: #d6d6d2; text-align: center; font: 600 .78rem/1 var(--font); padding: .55rem 1rem; }

/* Blueprint surfaces */
.blueprint { background: var(--grid), var(--blueprint); color: var(--cream); }
.note { font-family: var(--hand); color: var(--tan); font-size: 1.15rem; margin-bottom: .6rem; width: fit-content; }
.blueprint .muted { color: var(--cream-dim); }
.label { font: 700 .75rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: #9a6a33; margin-bottom: .8rem; }
.blueprint .label { color: var(--tan); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 700 .9rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.5rem; border-radius: 6px; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: #fff; }
.btn-line { border-color: var(--cream); color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13, 34, 56, .96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--cream); }
.brand img { width: 52px; height: 52px; }
.brand strong { font: 800 1.15rem/1 var(--font); text-transform: uppercase; letter-spacing: .04em; }
.brand small { display: block; font: 500 .72rem/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--cream); text-decoration: none; font: 600 .85rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.site-nav a:not(.btn):hover { color: var(--tan); }
.site-nav .btn { padding: .7rem 1rem; font-size: .8rem; }
.menu-toggle { display: none; background: none; border: 2px solid var(--cream); color: var(--cream); font: 700 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; padding: .6rem .9rem; border-radius: 6px; cursor: pointer; }

/* Hero */
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.kicker { display: block; font: 700 clamp(.85rem, 1.5vw, 1rem)/1.3 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--tan); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 900; text-transform: uppercase; line-height: .95; margin-bottom: 1.5rem; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--cream-dim); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* The poster, presented as a drawing sheet with a title block */
.sheet { position: relative; background: var(--navy-deep); border: 2px solid var(--cream); padding: 12px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); --tilt: 1.5deg; transform: rotate(var(--tilt)); }
.sheet img { width: 100%; }
.title-block { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--cream); border-top: 0; font: 600 .62rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); }
.title-block div { padding: .45rem .55rem; border-left: 1px solid var(--line); }
.title-block div:first-child { border-left: 0; }
.title-block b { display: block; color: var(--cream); font-size: .72rem; letter-spacing: .06em; }

/* The hero's grid sits on its own layer so it can sweep in (see Motion) */
.hero { position: relative; isolation: isolate; }
.hero.blueprint { background: var(--blueprint); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grid); }

/* Drafting dimension lines around the poster: "any breed" across, "any age" down */
.dim { position: absolute; color: var(--tan); pointer-events: none; }
.dim::before { content: ""; position: absolute;
  background: var(--arrow-a) no-repeat, var(--arrow-b) no-repeat, linear-gradient(currentColor, currentColor) no-repeat; }
.dim i { position: absolute; left: 50%; top: 50%; font: 400 .95rem/1 var(--hand); white-space: nowrap; background: var(--blueprint); padding: .1rem .45rem; transform: translate(-50%, -50%); }
.dim-w { left: -2px; right: -2px; top: -40px; height: 13px; border-inline: 1px solid; }
.dim-w::before { left: 0; right: 0; top: 3px; height: 7px; background-position: left center, right center, center; background-size: 8px 7px, 8px 7px, 100% 1px;
  --arrow-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 7'%3E%3Cpath d='M0 3.5 8 0v7z' fill='%23d49a5c'/%3E%3C/svg%3E");
  --arrow-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 7'%3E%3Cpath d='M8 3.5 0 0v7z' fill='%23d49a5c'/%3E%3C/svg%3E"); }
.dim-h { top: -2px; bottom: -2px; left: -40px; width: 13px; border-block: 1px solid; }
.dim-h::before { top: 0; bottom: 0; left: 3px; width: 7px; background-position: center top, center bottom, center; background-size: 7px 8px, 7px 8px, 1px 100%;
  --arrow-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M3.5 0 7 8H0z' fill='%23d49a5c'/%3E%3C/svg%3E");
  --arrow-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M3.5 8 0 0h7z' fill='%23d49a5c'/%3E%3C/svg%3E"); }
.dim-h i { transform: translate(-50%, -50%) rotate(-90deg); }
@media (max-width: 980px) { .dim-h { display: none; } }
@media (max-width: 760px) { .dim-w { top: -26px; } }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head p:last-child { color: var(--muted); }
.blueprint .section-head p:last-child { color: var(--cream-dim); }

/* Services: cards drawn like plan sheets */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.plan { position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 4px; padding: 2rem 2rem 1.6rem; box-shadow: 8px 8px 0 var(--navy); }
.plan .sheet-no { position: absolute; top: 1rem; right: 1.2rem; font: 700 .7rem/1 var(--font); letter-spacing: .18em; color: var(--muted); }
.plan h3 { font-size: 1.7rem; text-transform: uppercase; margin-bottom: .8rem; color: var(--navy); }
.plan ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.plan li { margin-bottom: .3rem; }
.plan li::marker { color: var(--tan); }
.plan .fine { font-size: .9rem; color: var(--muted); margin: 0; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
/* The dashed outline is four gradient edges so it can draw itself clockwise (see Motion) */
.steps li { position: relative; counter-increment: step; padding: 1.5rem; --dash: rgba(246, 238, 219, .45);
  background: repeating-linear-gradient(90deg, var(--dash) 0 5px, transparent 5px 9px) left top / var(--dt, 100%) 1px no-repeat,
              repeating-linear-gradient(180deg, var(--dash) 0 5px, transparent 5px 9px) right top / 1px var(--dr, 100%) no-repeat,
              repeating-linear-gradient(270deg, var(--dash) 0 5px, transparent 5px 9px) right bottom / var(--db, 100%) 1px no-repeat,
              repeating-linear-gradient(0deg, var(--dash) 0 5px, transparent 5px 9px) left bottom / 1px var(--dl, 100%) no-repeat; }
.steps li::before { content: "0" counter(step); display: block; font: 900 2.2rem/1 var(--font); color: var(--tan); margin-bottom: .6rem; }
.steps h3 { text-transform: uppercase; margin-bottom: .5rem; }
.steps p { color: var(--cream-dim); margin: 0; font-size: .95rem; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.why div { border-top: 3px solid var(--navy); padding-top: 1.1rem; }
.why b { display: block; font-size: 1.05rem; text-transform: uppercase; color: var(--navy); margin-bottom: .4rem; }
.why span { color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about .photo { aspect-ratio: 4 / 5; border: 2px dashed var(--navy); border-radius: 4px; display: grid; place-content: center; text-align: center; padding: 1.5rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.contact-card { display: block; text-decoration: none; border: 1px solid var(--cream); border-radius: 4px; padding: 1.6rem; transition: background .2s, color .2s; }
.contact-card:hover { background: var(--cream); color: var(--navy); }
.contact-card .label { margin-bottom: .6rem; }
.contact-card b { display: block; font-size: 1.3rem; }
.contact-card span { color: var(--cream-dim); font-size: .92rem; }
.contact-email { margin: 1.6rem 0 0; color: var(--cream-dim); }
.contact-email a { color: var(--cream); font-weight: 600; }
.contact-email a:hover { color: var(--tan); }
.contact-card:hover span { color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--cream-dim); padding: 3rem 0 2rem; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 84px; }
.footer-brand strong { color: var(--cream); text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: var(--cream); }
.copyright { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
  .steps, .why, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-inner, .plans, .about, .contact-grid, .steps, .why { grid-template-columns: minmax(0, 1fr); }
  .sheet { --tilt: 0deg; }
  .brand small { display: none; }
  .title-block { grid-template-columns: repeat(2, 1fr); }
}

/* Social icon buttons */
.social { display: flex; gap: .6rem; margin: .9rem 0 0; }
.social a { display: grid; place-content: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--cream); color: var(--cream); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--cream); color: var(--navy); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* Hero "dimension" stats */
.dims { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.6rem; }
.dims li { border-left: 2px solid var(--tan); padding-left: .8rem; }
.dims b { display: block; font: 900 1.8rem/1 var(--font); color: var(--cream); }
.dims span { font: 600 .72rem/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }

/* Plans with photos and prices */
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.plan > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--navy); }
.plan-body { position: relative; padding: 1.6rem 1.7rem 1.5rem; }
.plan .price { font: 900 2rem/1 var(--font); color: var(--navy); margin: .1rem 0 .3rem; }
.plan .for { font: 600 .78rem/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #9a6a33; margin-bottom: 1rem; }
.plan li b { color: var(--navy); }
.homework { max-width: 46rem; margin: 2.2rem 0 0; color: var(--muted); }
.homework .note { display: inline; margin-right: .3rem; color: #9a6a33; }
.pullquote { font-family: var(--hand); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--cream); text-align: center; max-width: 44rem; margin: 3rem auto 0; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.skills h3 { text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; font-size: 1.05rem; letter-spacing: .06em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font: 600 .85rem/1 var(--font); color: var(--navy); background: #fff; border: 1.5px solid var(--navy); border-radius: 999px; padding: .55rem .85rem; }

/* Boarding */
.boarding-band { background: #efe7d5; }
.boarding { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.boarding > img { width: 100%; border: 2px solid var(--navy); box-shadow: 10px 10px 0 var(--navy); border-radius: 4px; }
.boarding h2 { margin-bottom: 1rem; }
.price.big { font: 900 2.8rem/1 var(--font); color: var(--navy); margin-bottom: 1.2rem; }
.price.big small { font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { position: relative; padding: .4rem 0 .4rem 1.8rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .35rem; font-weight: 900; color: var(--navy); }
.boarding .fine { color: var(--muted); font-size: .92rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.review-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.review { margin: 0; border: 1px solid rgba(246, 238, 219, .4); border-radius: 4px; padding: 1.6rem 1.7rem; background: rgba(13, 34, 56, .35); }
.review blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: var(--cream); }
.review figcaption { font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.via { margin-top: 1.4rem; font-size: .85rem; color: var(--cream-dim); }

/* About */
.about .portrait { width: 100%; border: 2px solid var(--navy); box-shadow: -10px 10px 0 var(--navy); border-radius: 4px; }
.certs { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.certs li { font: 700 .72rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: var(--cream); border-radius: 4px; padding: .55rem .75rem; }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }

@media (max-width: 980px) {
  .plans.three, .skills { grid-template-columns: minmax(0, 1fr); }
  .plans.three { max-width: 560px; }
}
@media (max-width: 760px) {
  .boarding, .reviews { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .dims { gap: 1.1rem; }
}

/* Credentials strip under the hero */
.creds { background: var(--navy-deep); color: var(--cream-dim); border-top: 1px solid var(--line); }
.creds ul { list-style: none; margin: 0 auto; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; font-size: .88rem; line-height: 1.45; }
.creds li { border-left: 2px solid var(--tan); padding-left: .9rem; }
.creds b { display: block; color: var(--cream); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }

/* Guarantee */
.guarantee { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; background: var(--navy); color: var(--cream); border-radius: 4px; padding: 1.8rem 2rem; margin-bottom: 2.2rem; box-shadow: 8px 8px 0 var(--tan); }
.guarantee h3 { text-transform: uppercase; margin-bottom: .4rem; }
.guarantee p { margin: 0; color: var(--cream-dim); }
.stamp { display: grid; place-content: center; width: 112px; aspect-ratio: 1; border-radius: 50%; border: 3px double var(--tan); color: var(--tan); font: 800 .7rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-12deg); }

/* Board & train cards */
.plans.bnt { grid-template-columns: 1fr 1.25fr; align-items: start; }
.plan.featured { box-shadow: 8px 8px 0 var(--tan); border-color: var(--navy); }
.ribbon { display: inline-block; margin: 1.4rem 0 0 1.7rem; background: var(--tan); color: var(--navy-deep); font: 800 .68rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px; }
.plan.featured .plan-body { padding-top: .9rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks > li { position: relative; padding: .35rem 0 .35rem 1.6rem; }
.ticks > li::before { content: "✓"; position: absolute; left: 0; top: .35rem; font-weight: 900; color: var(--tan); }
.cmds { list-style: none; padding: .5rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; font-size: .92rem; }
.cmds li { color: var(--muted); }
.cmds b { color: var(--navy); }
.bnt-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.4rem; }
.requirements { background: #fff; border: 2px dashed var(--navy); border-radius: 4px; padding: 1.5rem 1.7rem; }
.requirements .checks { margin: 0; }
.lessons { border-top: 1px solid rgba(23, 49, 79, .15); }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(23, 49, 79, .18); padding: 1.1rem 0; max-width: 52rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font: 800 1.4rem/1 var(--font); color: var(--tan); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

@media (max-width: 980px) {
  .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans.bnt, .bnt-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .creds ul { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .guarantee { grid-template-columns: minmax(0, 1fr); }
  .stamp { width: 86px; }
  .cmds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion ----------
   The page "drafts" itself: the hero draws in on load, sections slide up as they scroll into view (js/site.js),
   the blueprint steps outline themselves, the pull quote writes itself and a paw trail crosses the boarding section.
   Everything is off for people who ask for reduced motion, and printing shows it all. */
@property --dt { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --dr { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --db { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --dl { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Arrows between the blueprint steps (only when they sit in one row) */
@media (min-width: 981px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 1.2rem; height: 10px; margin-top: -5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M2 5h15M13 1.5 18 5l-5 3.5' fill='none' stroke='%23d49a5c' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the grid sweeps in, the note writes itself, the sheet is pinned up and dimensioned */
  .hero::before { -webkit-mask: linear-gradient(100deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat;
                  mask: linear-gradient(100deg, #000 40%, transparent 60%) 100% 0 / 250% 100% no-repeat; animation: grid-in 1.8s ease-out both; }
  .hero .note { animation: write 1.1s linear .15s both; }
  .hero h1, .hero .lede, .hero .dims, .hero .actions { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .3s; }
  .hero .lede { animation-delay: .45s; }
  .hero .dims { animation-delay: .6s; }
  .hero .actions { animation-delay: .72s; }
  .sheet { animation: pin 1.1s cubic-bezier(.3, .7, .3, 1) .2s both; }
  .dim { animation: fade .3s 1.1s both; }
  .dim-w::before { animation: draw-x .7s ease-out 1.2s both; }
  .dim-h::before { animation: draw-y .7s ease-out 1.35s both; }
  .dim i { animation: fade .5s 1.75s both; }
}
@keyframes grid-in { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes pin {
  0% { opacity: 0; transform: translate(26px, -46px) rotate(calc(var(--tilt) + 7deg)); }
  55% { opacity: 1; transform: translate(0, 4px) rotate(calc(var(--tilt) - 1.6deg)); }
  78% { transform: translate(0, 0) rotate(calc(var(--tilt) + .6deg)); }
  100% { transform: rotate(var(--tilt)); }
}

/* Scroll reveal (classes added by js/site.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal .note { clip-path: inset(0 100% 0 0); transition: clip-path .9s linear calc(var(--d, 0s) + .2s); }
.reveal.in .note { clip-path: inset(0); }

/* The blueprint steps draw their outlines one after another, then fill in */
.steps.draw li { --dt: 0%; --dr: 0%; --db: 0%; --dl: 0%; }
.steps.draw li > *, .steps.draw li::before { opacity: 0; transition: opacity .6s; }
.steps.draw li::after { clip-path: inset(0 100% 0 0); transition: clip-path .3s linear; }
.steps.draw.in li { animation: trace .9s linear forwards; animation-delay: calc(var(--i, 0) * .35s); }
.steps.draw.in li > *, .steps.draw.in li::before { opacity: 1; transition-delay: calc(var(--i, 0) * .35s + .55s); }
.steps.draw.in li::after { clip-path: inset(0); transition-delay: calc(var(--i, 0) * .35s + .8s); }
@keyframes trace {
  0% { --dt: 0%; --dr: 0%; --db: 0%; --dl: 0%; }
  25% { --dt: 100%; --dr: 0%; --db: 0%; --dl: 0%; }
  50% { --dt: 100%; --dr: 100%; --db: 0%; --dl: 0%; }
  75% { --dt: 100%; --dr: 100%; --db: 100%; --dl: 0%; }
  100% { --dt: 100%; --dr: 100%; --db: 100%; --dl: 100%; }
}

/* The pull quote inks in letter by letter */
.pullquote .w, .pullquote .ch { display: inline-block; }
.pullquote.write .ch { opacity: 0; transform: translateY(.12em); transition: opacity .3s, transform .3s; }
.pullquote.write.in .ch { opacity: 1; transform: none; transition-delay: calc(var(--c) * 26ms); }

/* A dog walks across the bottom of the boarding section */
#boarding { position: relative; overflow: hidden; }
.boarding { position: relative; z-index: 1; }
.paws { position: absolute; inset: 0; pointer-events: none; }
.paws i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; animation: pawprint 3.2s ease-out both; animation-delay: var(--d);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317314f'%3E%3Cellipse cx='12' cy='16.5' rx='5.5' ry='4.6'/%3E%3Cellipse cx='4.8' cy='10.2' rx='2.1' ry='2.7' transform='rotate(-25 4.8 10.2)'/%3E%3Cellipse cx='9.2' cy='5.8' rx='2.2' ry='2.9' transform='rotate(-8 9.2 5.8)'/%3E%3Cellipse cx='14.8' cy='5.8' rx='2.2' ry='2.9' transform='rotate(8 14.8 5.8)'/%3E%3Cellipse cx='19.2' cy='10.2' rx='2.1' ry='2.7' transform='rotate(25 19.2 10.2)'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes pawprint {
  0% { opacity: 0; transform: rotate(var(--r)) scale(.5); }
  6% { opacity: .26; transform: rotate(var(--r)) scale(1.1); }
  12% { transform: rotate(var(--r)) scale(1); }
  65% { opacity: .26; transform: rotate(var(--r)); }
  100% { opacity: 0; transform: rotate(var(--r)); }
}

@media print {
  .reveal, .pullquote .ch, .steps li > *, .steps li::before { opacity: 1 !important; transform: none !important; }
  .reveal .note, .steps li::after { clip-path: none !important; }
  .steps li { --dt: 100% !important; --dr: 100% !important; --db: 100% !important; --dl: 100% !important; }
  .paws { display: none; }
}
