:root{color-scheme:light;
 --paper:#f7f3ea;--ink:#22402d;--green:#3b6e4c;--gold:#9b7b3a;--muted:#667262;--rule:#d6ceb9;--error:#a23a2e;
 --bird:clamp(72px,21vw,110px);--perch:clamp(140px,38vw,260px)}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--paper)}
/* Cream paper with a faint grain. */
body{margin:0;min-height:100vh;color:var(--ink);font:16px/1.55 Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased;
 background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .24 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
button,input{font:inherit;color:inherit}
.skip-link{position:absolute;top:-100px;left:16px;padding:10px 14px;background:#fffdf8;z-index:10;border-radius:8px}
.skip-link:focus{top:12px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* One full-bleed page: intro and form in a column, the toucan with its disco
   ball beside the heading, and the hummingbirds flying over the form itself. */
.page{position:relative;max-width:1320px;margin:0 auto;padding:30px 20px 40px;overflow-x:clip}
.intro{position:relative;z-index:1;display:flow-root}
.keep-top,.keep{float:right;clear:right;width:1px;margin-right:-1px;height:0}
.eyebrow{margin:0 0 12px;font:600 11.5px/1.3 Inter,Arial,sans-serif;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}
.eyebrow span{font:italic 400 15px 'Playfair Display',Georgia,serif;letter-spacing:0;text-transform:none}
h1{margin:0;font:400 clamp(44px,14.4vw,64px)/.98 'Playfair Display',Georgia,serif;letter-spacing:-.035em}
h1 em{display:block;font-style:italic;color:var(--green);padding-right:.04em}
.lede{clear:right;margin:0;padding-top:18px;max-width:30em;font-size:16.5px;line-height:1.55;color:var(--muted)}

/* Toucan on its painted twig. The twig sits where the mesh draws the toucan
   (74% of the box, offset .05/.23), so its feet land on the branch. */
.perch{position:absolute;top:8px;right:-6px;width:var(--perch);aspect-ratio:1;z-index:2;pointer-events:none}
.toucan{position:absolute;left:0;top:0;width:100%;aspect-ratio:1}
.toucan canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.twig{position:absolute;left:9.721%;top:58.407%;width:66.092%;height:auto;display:block}
.disco{position:absolute;left:-40%;top:0;width:140%;height:150%;display:block}

/* Form */
#form-view{margin-top:38px}
form{display:grid;gap:46px}
.group{display:grid;gap:32px;min-width:0;margin:0;padding:0;border:0}
.group-title{display:flex;align-items:baseline;gap:12px;width:100%;margin:0;padding:0;font:italic 400 27px/1.2 'Playfair Display',Georgia,serif;color:var(--ink)}
legend.group-title{margin-bottom:32px}
/* Section titles stand alone, without a rule running out of them. */
.group-title::after{content:none}
.row{display:grid;gap:32px}
.row.three{grid-template-columns:1fr 1fr;column-gap:24px;row-gap:32px}
.row.three .field:first-child{grid-column:1/-1}
.field{display:grid;gap:3px;min-width:0;position:relative}
.field label{font:600 11px/1.3 Inter,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.optional{margin-left:6px;font-weight:500;letter-spacing:.06em;text-transform:none;color:#9aa093}
.field input{width:100%;padding:5px 0 9px;border:0;border-bottom:1.5px solid var(--rule);border-radius:0;background:transparent;
 font:400 21px/1.3 'Playfair Display',Georgia,serif;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.field input:hover{border-bottom-color:#bdb398}
.field input:focus{outline:none;border-bottom-color:var(--green);box-shadow:0 1px 0 var(--green)}
.field input[aria-invalid=true]{border-bottom-color:var(--error);box-shadow:0 1px 0 var(--error)}
.field input:-webkit-autofill{-webkit-text-fill-color:var(--ink);transition:background-color 600000s 0s}
/* Messages sit in the gap under the field, so showing or clearing one never moves the page. */
.field .error{position:absolute;left:0;top:calc(100% + 4px);font-size:12px;line-height:1.3;white-space:nowrap;color:var(--error)}
.trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Another contact */
.extra{gap:30px}
.add-person{display:inline-flex;align-items:center;gap:16px;justify-self:start;padding:4px 0;border:0;background:none;text-align:left;cursor:pointer}
.add-person .plus{position:relative;flex:none;width:46px;height:46px;border:1.5px solid var(--green);border-radius:50%;transition:background .2s}
.add-person .plus::before,.add-person .plus::after{content:'';position:absolute;left:50%;top:50%;width:16px;height:1.5px;background:var(--green);transform:translate(-50%,-50%);transition:background .2s}
.add-person .plus::after{transform:translate(-50%,-50%) rotate(90deg)}
.add-person:hover .plus{background:var(--green)}
.add-person:hover .plus::before,.add-person:hover .plus::after{background:#fff}
.add-text strong{display:block;font:italic 400 23px/1.2 'Playfair Display',Georgia,serif}
.person-2,.address-2{display:grid;gap:32px;min-width:0;margin:0;padding:0;border:0}
.remove{order:2;margin-left:4px;padding:2px 0;border:0;background:none;font:500 13px Inter,Arial,sans-serif;font-style:normal;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.check{display:inline-flex;align-items:center;gap:12px;justify-self:start;font-size:15.5px;cursor:pointer}
.check input{position:absolute;width:1px;height:1px;opacity:0}
.check .box{display:grid;place-items:center;width:21px;height:21px;border:1.5px solid var(--green);border-radius:6px;transition:background .15s}
.check input:checked+.box{background:var(--green)}
.check input:checked+.box::after{content:'';width:9px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}

/* Send */
.submit{display:grid;gap:14px;justify-items:start;margin-top:-6px}
.form-status{margin:0;font-size:14px;color:var(--error)}
.form-status:empty{display:none}
.send{min-width:220px;height:58px;padding:0 44px;border:0;border-radius:999px;background:var(--ink);color:#fdfbf5;
 font:600 14px Inter,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;
 box-shadow:0 14px 30px -16px #22402d;transition:background .2s,transform .15s}
.send:hover{background:var(--green)}
.send:active{transform:translateY(1px)}
.send[disabled]{opacity:.75;cursor:progress}
.privacy{margin:0;font-size:13px;color:var(--muted)}
.add-person:focus-visible,.send:focus-visible,.remove:focus-visible,.text-button:focus-visible,.motion-toggle:focus-visible,.check input:focus-visible+.box{outline:2px solid var(--ink);outline-offset:4px}

/* Thank you */
.thanks{margin-top:44px;padding-bottom:40px}
.thanks:focus{outline:none}
.thanks h2{margin:0;font:italic 400 clamp(38px,10vw,72px)/1.04 'Playfair Display',Georgia,serif;letter-spacing:-.03em}
.thanks .lede{padding-top:12px;font-size:18px}
.text-button{margin-top:26px;padding:0 0 3px;border:0;border-bottom:1.5px solid var(--green);background:none;color:var(--green);font-weight:600;cursor:pointer}

/* The orchid beside "Add another contact" (sized and placed in contact.js). */
.orchid{position:absolute;left:0;top:0;z-index:2;width:120px;height:auto;pointer-events:none;transition:opacity .45s}
.orchid.away{opacity:0}

/* Hummingbirds fly between spots over the page; a bird facing right is mirrored. */
.bird{position:absolute;left:0;top:0;z-index:3;width:var(--bird);aspect-ratio:1;pointer-events:none;
 transition:transform .8s cubic-bezier(.22,.9,.28,1);will-change:transform}
.bird canvas{display:block;width:100%;height:100%;transition:transform .35s ease}
.bird.facing-right canvas{transform:scaleX(-1)}
.bird.instant,.bird.instant canvas{transition:none}

.page-foot{position:relative;padding:8px 16px 28px;text-align:center}
.motion-toggle{padding:6px 2px;border:0;border-bottom:1px solid var(--rule);background:none;font-size:12px;color:var(--muted);cursor:pointer}

@media(min-width:560px){
 .row{grid-template-columns:1fr 1fr;column-gap:30px}
 .row.street{grid-template-columns:2fr 1fr}
 .row.three{grid-template-columns:1.3fr 1fr 1fr}
 .row.three .field:first-child{grid-column:auto}
}
/* Tablets: the lede sits beside the toucan instead of under it. */
@media(min-width:560px) and (max-width:959px){
 .intro{min-height:calc(var(--perch)*1.34)}
 .lede{clear:none;max-width:min(30em,calc(100% - var(--perch)*1.22 - var(--bird)*.5))}
}
@media(max-width:559px){
 h1{font-size:clamp(36px,10.6vw,46px);line-height:1.02}
 .add-text strong{font-size:21px}
 .submit{justify-items:stretch}
 .send{width:auto}
 .privacy{text-align:left}
}
/* Wide screens: the form keeps a comfortable column; the right side is open
   air where the toucan stays in view and the hummingbirds come and go. */
@media(min-width:960px){
 :root{--bird:clamp(124px,9.6vw,150px);--perch:clamp(300px,26vw,380px)}
 .page{display:grid;grid-template-columns:minmax(0,660px) minmax(330px,1fr);column-gap:clamp(56px,7vw,120px);padding:64px clamp(40px,6vw,96px) 56px}
 .intro{grid-column:1;grid-row:1}
 #form-view,.thanks{grid-column:1;grid-row:2}
 .perch{position:sticky;top:36px;grid-column:2;grid-row:1/3;right:auto;align-self:start;margin:-20px 0 0 calc(var(--perch)*.26)}
 h1{font-size:clamp(76px,7.4vw,108px)}
 h1 em{display:inline}
 .lede{font-size:18px}
 #form-view{margin-top:56px}
}
@media(prefers-reduced-motion:reduce){.bird,.bird canvas,.send,.field input{transition:none}}


/* Contact page: a quiet address-book layout with a tree at the page edge. */
@font-face{font-family:'Magnolia Script';src:url('fonts/magnolia-script.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
/* Scene geometry is in CSS pixels, never viewport height or form height.
   Change these scene variables to reposition the illustration as one piece. */
:root{--ink:#304a39;--muted:#747a6c;--rule:#d7d9cb;--green:#46634c;--bird:92px;
 --tree-w:640px;--tree-h:960px;--tree-top:0px;--tree-right:-51.2px;
 --tree-show:588.8px;--perch-size:268.8px;--perch-left:76.8px;--perch-top:144px;
 --pad-x:clamp(48px,8vw,150px);--tree-gap:40px}
html{overflow-x:clip}
body{font-size:14px;line-height:1.65}
.page{display:block;max-width:none;margin:0;padding:64px var(--pad-x) 40px;min-height:calc(var(--tree-h) + var(--tree-top));overflow:clip;isolation:isolate}
.intro,#form-view,.thanks{position:relative;z-index:1;width:min(540px,calc(100% + var(--pad-x) - var(--tree-show) - var(--tree-gap)));max-width:none}
.intro{min-height:0;display:block}
.eyebrow{margin:0 0 26px;font-size:10px;font-weight:500;letter-spacing:.25em;color:var(--ink)}
.eyebrow span{font-family:Georgia,serif;color:inherit}
h1{margin:0;font:400 clamp(42px,4.2vw,58px)/1.28 'Magnolia Script',Georgia,serif;letter-spacing:0;color:var(--ink)}
.lede{padding:0;margin:20px 0 0;font-size:14px;line-height:1.8;max-width:27em;clear:none;color:var(--muted)}
#form-view{margin-top:40px}
form{gap:36px}
.group,.person-2,.address-2{gap:25px}
.group-title{font:400 21px/1.3 'Playfair Display',Georgia,serif;gap:11px}
legend.group-title{margin-bottom:25px}
.row,.row.three{gap:25px 22px}
.field{gap:7px}
.field label{font-size:9px;letter-spacing:.13em;font-weight:500}
.field input{font:400 16px/1.5 Inter,Arial,sans-serif;padding:4px 0 7px;border-bottom-width:1px}
.optional{font-size:9px;margin-left:4px}
.field .error{font-size:11px;white-space:normal}
.add-person{gap:12px;padding:4px 0}
.add-person .plus{width:34px;height:34px;border-width:1px}
.add-person .plus::before,.add-person .plus::after{width:12px;height:1px}
.add-text strong{font:400 18px/1.4 'Playfair Display',Georgia,serif}
.check{font-size:13px;gap:10px}
.check .box{width:19px;height:19px;border-radius:3px;border-width:1px}
.send{height:46px;min-width:174px;padding:0 28px;border-radius:5px;font-size:10px;font-weight:500;letter-spacing:.18em;box-shadow:none}
.privacy{font-size:11px}
.submit{gap:12px;margin-top:0}
.thanks h2{font:400 48px/1.3 'Magnolia Script',Georgia,serif;letter-spacing:0}
.thanks .lede{font-size:14px}
.tree-scene{position:absolute;top:var(--tree-top);right:var(--tree-right);width:var(--tree-w);height:var(--tree-h);pointer-events:none;z-index:0}
.tree-art{position:relative;width:100%;height:100%}
.tree-art picture{display:block;width:100%;height:100%}
.ceiba{display:block;width:100%;height:100%;object-fit:contain}
/* The perch is tied to painted coordinates, so it cannot walk or scale on resize. */
.perch{position:absolute;left:var(--perch-left);top:var(--perch-top);right:auto;width:var(--perch-size);aspect-ratio:1;margin:0;z-index:2;transform:none}
.bird{z-index:3;width:var(--bird)}
/* The tapir and the cake stand across the foot of the page, the cake in the middle
   (contact.js); the strip's height comes from --cake-w (820px at most; full width on
   phones, where the tapir is drawn larger: --cake-r is the height over that width).
   The page keeps room for them under the form. */
:root{--cake-w:min(calc(100vw - var(--pad-x)),820px);--cake-r:.3}
.page{padding-bottom:calc(var(--cake-w) * var(--cake-r) + 24px)}
.cake-scene{position:absolute;left:0;right:0;bottom:8px;z-index:1;height:calc(var(--cake-w) * var(--cake-r));pointer-events:none}
.cake-scene canvas{display:block;width:100%;height:100%}
.page-foot{padding:4px var(--pad-x) 32px;text-align:left}
.motion-toggle{font-size:10px;letter-spacing:.06em;color:var(--muted)}
@media(min-width:560px){.row{column-gap:22px}.row.street{grid-template-columns:2fr 1fr}.row.three{grid-template-columns:1.3fr 1fr 1fr}}
@media(min-width:960px){.intro{min-height:0}.lede{max-width:27em}h1{font-size:clamp(46px,4.2vw,58px)}}
@media(min-width:960px) and (max-width:1199px){
 :root{--tree-w:480px;--tree-h:720px;--tree-right:-38.4px;--tree-show:441.6px;
  --perch-size:201.6px;--perch-left:57.6px;--perch-top:108px}
}
@media(min-width:760px) and (max-width:959px){
 :root{--tree-w:360px;--tree-h:540px;--tree-right:-28.8px;--tree-show:331.2px;
  --perch-size:151.2px;--perch-left:43.2px;--perch-top:81px;--pad-x:32px;--tree-gap:24px;--bird:78px}
 .page{padding:48px 32px 36px}
 .intro,#form-view,.thanks{min-width:0}
 .row,.row.three,.row.street{grid-template-columns:1fr}
 .row.three .field:first-child{grid-column:auto}
}
@media(max-width:759px){
 /* The tall ceiba (836 x 1882) on phones. Every number below is in px on a 390px-wide
    phone and multiplied by --u (one 390th of the width), so every phone sees the same
    picture; width changes only when the phone turns, so the keyboard, browser bars,
    scrolling and the extra contact never move or scale anything.
    Tune these with tools/contact-tune.html (served locally), then copy the values here.
    --tree-s: painting scale; --tree-y: its top (the canopy clipped by the page top);
    --tree-x: its right edge past the window (cutting the trunk); --toucan: perch box size;
    --toucan-x/-y: perch box top-left in the painting's own pixels, so it stays on the
    branch when the tree is scaled (the claws are at 48%/75% of the box; positions are
    set with tools/contact-tune.html). The text column stays on the left edge. */
 :root{--u:clamp(.8px,calc(100vw / 390),1.25px);
  --tree-s:0.64;--tree-y:-61;--tree-x:-31;--toucan:193;--toucan-x:373;--toucan-y:148;
  --page-top:57;--h1:28.5;--eyebrow-gap:9;--form-top:27;--section-gap:31;--field-gap:14;
  --title:18;--label:9;--input:16;--col-right:100;--page-h:0;
  --art-w:724;--art-h:2172;/* the painting's pixel size (contact-ceiba-tall-3.webp) */
  --tree-w:calc(var(--art-w) * var(--tree-s) * var(--u));--tree-h:calc(var(--art-h) * var(--tree-s) * var(--u));
  --tree-top:calc(var(--tree-y) * var(--u));--tree-right:calc(var(--tree-x) * var(--u));
  --perch-size:calc(var(--toucan) * var(--u));--perch-left:calc(var(--toucan-x) * var(--tree-s) * var(--u));
  --perch-top:calc(var(--toucan-y) * var(--tree-s) * var(--u));
  --fade-end:max(calc(var(--page-h) * var(--u) - var(--tree-top)),calc(var(--tree-h) + 160 * var(--u)));
  --pad-x:20px;--bird:62px}
 /* If the page ends before the roots (--page-h), they fade out instead of being cut off. */
 .ceiba{-webkit-mask-image:linear-gradient(#000 calc(var(--fade-end) - 160 * var(--u)),transparent var(--fade-end));
  mask-image:linear-gradient(#000 calc(var(--fade-end) - 160 * var(--u)),transparent var(--fade-end))}
 /* The page reaches past the tree's roots, so the tapir and his cake stand below them. */
 .page{padding:calc(var(--page-top) * var(--u)) calc(var(--col-right) * var(--u)) 28px 20px;
  min-height:max(calc(var(--page-h) * var(--u)),calc(var(--tree-top) + var(--tree-h) + var(--cake-w) * var(--cake-r) + 20px))}
 .intro,#form-view,.thanks{width:100%;min-width:0;max-width:480px}
 :root{--cake-w:100vw;--cake-r:.6}
 .page{padding-bottom:calc(var(--cake-w) * var(--cake-r) + 16px)}
 .intro h1{font-size:calc(var(--h1) * var(--u));line-height:1.3}
 .intro h1 span{white-space:nowrap}
 .eyebrow{font-size:9px;margin-bottom:calc(var(--eyebrow-gap) * var(--u))}
 #form-view{margin-top:calc(var(--form-top) * var(--u))}
 form{gap:calc(var(--section-gap) * var(--u))}
 .group,.person-2,.address-2,.row,.row.three,.row.street{gap:calc(var(--field-gap) * var(--u))}
 legend.group-title{margin-bottom:calc(var(--field-gap) * var(--u))}
 .group-title{font-size:calc(var(--title) * var(--u))}
 .field label{font-size:calc(var(--label) * var(--u));letter-spacing:.09em}
 /* Inputs never go under 16px: iPhones zoom the whole page into smaller ones. */
 .field input{font-size:max(16px,calc(var(--input) * var(--u)))}
 .row,.row.three,.row.street{grid-template-columns:1fr}
 .row.three .field:first-child{grid-column:auto}
 .add-text strong{font-size:17px}
 /* Send and its note stay on the left, clear of the buttress roots. */
 .submit{justify-items:start}
 .send{width:auto;min-width:min(174px,100%)}
 .privacy{text-align:left}
 .page-foot{padding:0 20px 26px;text-align:left}
 .thanks{padding-top:20px}
 .thanks h2{font-size:36px}
 .extra{scroll-margin-top:24px}
 .check{align-items:flex-start}
 .check .box{flex:none;margin-top:2px}
 /* Text that can sit over the trunk or roots keeps a soft paper halo, so it stays legible. */
 .group-title,.field label,.field input,.check,.remove,.add-text,.privacy,.form-status,.page-foot{text-shadow:0 0 4px var(--paper),0 0 8px var(--paper),0 0 14px var(--paper)}
 .privacy{color:var(--ink);text-shadow:0 0 3px var(--paper),0 0 6px var(--paper),0 0 10px var(--paper),0 0 16px var(--paper),0 0 22px var(--paper)}
}
/* Wider phones and small tablets: the leafy end of the branch comes into view, so the heading keeps to one line above it. */
@media(min-width:520px) and (max-width:759px){.intro h1 br{display:none}}
@media(max-width:359px){.group-title{font-size:18px}.add-text strong{font-size:16px}}
/* Wider screens set their own page padding above; keep the room for the cake scene. */
@media(min-width:760px){.page{padding-bottom:calc(var(--cake-w) * var(--cake-r) + 24px)}}
