/* "Work with me" + footer, shared from the homepage (css/style.css) for case-study pages */
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-light-italic.woff") format("woff"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-light.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-light-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-regular.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-italic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("../assets/fonts/apple-garamond-bold-italic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
/* everything lives inside .site-end so the case-study page styles can't leak in (and vice versa) */
.site-end{--black:#000;--text-meta:#6b6b6b;--green:#039100;--green-dark:#1b6a2c;--serif:"Apple Garamond","Instrument Serif",Georgia,serif;--sans:"Inter",system-ui,-apple-system,sans-serif;--page:1444px;--gutter:72px;--content:1135px;
  --col-base:max(24px,calc((100vw - var(--page)) / 2 + 40px));--nav-w:96px;--nav-gap:clamp(56px,5.5vw,80px);--col-left:calc(var(--col-base) + var(--nav-w) + var(--nav-gap));
  font-family:var(--sans);color:var(--black);line-height:normal;letter-spacing:normal;font-size:16px}
.site-end a{color:inherit;text-decoration:none}
.site-end h2,.site-end p{margin:0;font-weight:inherit}
.site-end .wrap{margin-left:var(--col-left);margin-right:auto;width:min(var(--content),calc(100% - var(--col-left) - var(--gutter)))}
.site-end .footer{position:relative;z-index:1}
.lk { position: relative; display: inline-flex; align-items: baseline; transition: color .2s; outline: none; }
.lk__b, .lk__t { position: relative; display: inline-block; transition: color .2s, transform .3s cubic-bezier(.3,1.5,.5,1); }
.lk:focus-visible { outline: 1.5px solid var(--green-dark); outline-offset: 3px; }

/* hover: brackets spring apart, word goes dark green + underlined, and a small ↗ arrow appears */
.lk__a {   /* ↗ arrow that slides in inside the brackets, sized and centred to the text */
  display: inline-block; align-self: center; width: 0; height: 0.58em; margin-left: 0;
  background: var(--green-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 8.8 8.6 1.4M3.2 1.2h5.6v5.6' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 8.8 8.6 1.4M3.2 1.2h5.6v5.6' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translate(-3px, 3px);
  transition: width .3s cubic-bezier(.3,1.3,.5,1), margin .3s cubic-bezier(.3,1.3,.5,1), opacity .2s, transform .35s cubic-bezier(.3,1.5,.5,1);
}
.lk:hover .lk__a, .lk:focus-visible .lk__a { width: 0.58em; margin-left: 0.22em; opacity: 1; transform: none; }
.lk .lk__t { text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.lk:hover .lk__t, .lk:focus-visible .lk__t { color: var(--green-dark); text-decoration-color: currentColor; }
.lk:hover .lk__b:first-child, .lk:focus-visible .lk__b:first-child { transform: translateX(-4px); }
.lk:hover .lk__b:last-child, .lk:focus-visible .lk__b:last-child { transform: translateX(4px); }

/* email: copies instead of opening mail — copy icon on hover, tick + "copied" once clicked */
button.lk { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.lk--copy .lk__a {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5.5' y='5.5' width='8' height='8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M10.5 3.5v-2h-9v9h2' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5.5' y='5.5' width='8' height='8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M10.5 3.5v-2h-9v9h2' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  height: 0.7em;
}
.lk--copy:hover .lk__a, .lk--copy:focus-visible .lk__a, .lk--copy.is-copied .lk__a { width: 0.7em; margin-left: 0.22em; opacity: 1; transform: none; }
.lk--copy.is-copied .lk__a {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lk--copy.is-copied .lk__t { color: var(--green-dark); }
.lk__toast {
  position: absolute; left: 50%; bottom: calc(100% + 8px); white-space: nowrap; pointer-events: none;
  font-family: var(--sans, inherit); font-size: 13px; line-height: 1; padding: 6px 9px; border-radius: 0;
  background: var(--green-dark); color: #fff;
  opacity: 0; transform: translate(-50%, 6px) scale(.9); transition: opacity .2s, transform .35s cubic-bezier(.3,1.5,.5,1);
}
.lk--copy.is-copied .lk__toast { opacity: 1; transform: translate(-50%, 0) scale(1); }
.footer .lk__toast { bottom: calc(100% + 6px); }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
/* ---------- CTA ---------- */
.cta { margin-top: 143px; display: flex; justify-content: center; }
.cta__inner { position: relative; }
.cta__title { font-family: var(--serif); font-size: 184px; line-height: 1.3; letter-spacing: -0.035em; white-space: nowrap; color: var(--black); }
.cta__title em { font-style: italic; }
.cta__title a { display: inline-block; }
.cta__badge {
  position: absolute; left: calc(100% + 13px); top: 25px; z-index: 3;
  background: var(--green); color: #fff; padding: 8px; white-space: nowrap;
  font-weight: 500; font-size: 16px; letter-spacing: -0.64px; line-height: 1.2;
  display: inline-flex; align-items: center; min-height: calc(1.2em + 16px);
}
.cta__caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; background: #fff; animation: blink 1s steps(1) infinite; }
.cta__caret.is-done { animation: blink 1s steps(1) 2, fadeout .3s 2s forwards; }

/* "Work with me": a vine draws itself along the heading, weaving through the letters, then flowers open */
.cta__title { position: relative; z-index: 1; }
.garden { position: absolute; left: -200px; top: -200px; width: calc(100% + 400px); height: calc(100% + 400px); overflow: visible; pointer-events: none; z-index: 0; }
.garden--front { z-index: 2; }
.garden .stem { fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset var(--dout, .5s) cubic-bezier(.5,0,.75,.4) var(--out, 0s); }
.garden .leaf, .garden .flower, .garden .bud {
  transform-box: view-box; transform-origin: var(--ox) var(--oy);
  transform: rotate(var(--r0, 0deg)) scale(0); opacity: 0;
  transition: transform .45s cubic-bezier(.5,0,.75,.4) var(--out, 0s), opacity .3s var(--out, 0s);
}
.garden .leaf { transform: rotate(var(--rot)) scale(0); }
.cta__inner.is-grown .garden .stem { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur, 1s) cubic-bezier(.35,.1,.45,1) var(--in, 0s); }
.cta__inner.is-grown .garden .leaf { transform: rotate(var(--rot)) scale(1); opacity: 1; transition: transform .7s cubic-bezier(.25,1.4,.5,1) var(--in, 0s), opacity .2s var(--in, 0s); }
.cta__inner.is-grown .garden .bud { transform: scale(1); opacity: 1; transition: transform .6s cubic-bezier(.25,1.5,.5,1) var(--in, 0s), opacity .2s var(--in, 0s); }
.cta__inner.is-grown .garden .flower { transform: rotate(0deg) scale(1); opacity: 1;
  transition: transform 1.1s cubic-bezier(.2,1.25,.35,1) var(--in, 0s), opacity .35s var(--in, 0s); }
/* the nudge: only the earliest tendrils, leaves and buds grow, slower and softer than the real thing, then ease back */
.cta__inner.is-peek .garden .stem.early { stroke-dashoffset: 0; transition: stroke-dashoffset calc(var(--dur, 1s) * 1.8) cubic-bezier(.4,.05,.3,1) calc(var(--in, 0s) * 1.8); }
.cta__inner.is-peek .garden .leaf.early { transform: rotate(var(--rot)) scale(1); opacity: 1; transition: transform 1.1s cubic-bezier(.3,.9,.4,1) calc(var(--in, 0s) * 1.8 + .15s), opacity .5s calc(var(--in, 0s) * 1.8 + .15s); }
.cta__inner.is-peek .garden .bud.early { transform: scale(1); opacity: 1; transition: transform 1s cubic-bezier(.3,.9,.4,1) calc(var(--in, 0s) * 1.8 + .2s), opacity .5s calc(var(--in, 0s) * 1.8 + .2s); }
.cta__inner.is-peek .garden .flower.early { transform: rotate(0deg) scale(1); opacity: 1; transition: transform 1.4s cubic-bezier(.3,.9,.4,1) calc(var(--in, 0s) * 1.8 + .2s), opacity .6s calc(var(--in, 0s) * 1.8 + .2s); }
.cta__inner.is-peek .garden .flower.peek-bloom { transition: transform 1.3s cubic-bezier(.25,1.2,.4,1) calc(var(--in, 0s) * 1.8), opacity .5s calc(var(--in, 0s) * 1.8); }
/* easing back: leaves and buds fade first, then the tendril slowly withdraws */
.cta__inner.is-peek-out .garden .stem.early { transition: stroke-dashoffset 1.6s cubic-bezier(.45,0,.2,1) .35s; }
.cta__inner.is-peek-out .garden .leaf.early, .cta__inner.is-peek-out .garden .bud.early, .cta__inner.is-peek-out .garden .flower.early {
  transition: transform .9s cubic-bezier(.45,0,.3,1), opacity .7s ease .1s; }
@media (prefers-reduced-motion: reduce) { .garden * { transition: none !important; } }
/* ---------- Footer ---------- */
.footer {
  max-width: var(--page); margin: 64px auto 0; padding: 0 var(--gutter) 73px;   /* room for the garland below the heading */
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__meta.is-empty { visibility: hidden; }   /* keeps the footer balanced until a city loads */
.footer__meta { font-size: 14px; line-height: 24px; color: var(--text-meta); }
.footer__links { display: flex; gap: 64px; font-family: var(--serif); font-size: 20px; color: var(--black); }
@media (max-width:1100px){ .site-end{--gutter:40px} .site-end .wrap{margin-left:var(--gutter);margin-right:var(--gutter);width:auto;max-width:none} .cta__title{font-size:clamp(72px,15vw,184px)} }
@media (max-width:860px){
  .cta{margin-top:96px;overflow-x:clip}
  .cta__inner{display:flex;flex-direction:column;align-items:center}
  .cta__badge{position:static;order:-1;margin-bottom:8px}
  .footer{flex-direction:column;gap:16px;padding-top:24px;margin-top:0;text-align:center}
  .footer__links{gap:24px;flex-wrap:wrap;justify-content:center}
}
@media (max-width:560px){ .site-end{--gutter:20px} .footer__links{font-size:18px;gap:16px} }
#copyStatus{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
