/* Contact panel (chosen by Alik, 11 Nov 2026), drawn in the "Drafting lines" design he chose on 24 Nov 2026 ("Lets do
   option 2"). Used with contact.js in this folder, on builds made with BUILDERS_CONTACT_PANEL=sheet. The pill itself keeps
   the live look from contact-first/contact.css, which stays loaded; its rules below are unchanged.
   The panel is drawn like a plan: its four edges trace one after another, bronze crosses mark the corners, the row rules
   follow, then the deep green fill washes in and the words rise through soft masks. Transforms and opacity only (each
   line is a 1 px strip scaled from one end); CSS animations, no library. Closing plays it back in about 0.27 s (contact.js).
   Typefaces: Marcellus and Alegreya Sans (SIL Open Font Licence 1.1), the same files as /fonts/home-options/option-4.css. */
@font-face{font-family:'Marcellus';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/home-options/marcellus/marcellus-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/home-options/alegreya-sans/alegreya-sans-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/home-options/alegreya-sans/alegreya-sans-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/home-options/alegreya-sans/alegreya-sans-latin-700-normal.woff2) format('woff2')}

.eb-sheet{
  --ebs-ivory:#f1ede2;--ebs-forest:#243e33;--ebs-forest-deep:#1a2e26;
  --ebs-display:'Marcellus','Optima','Palatino Linotype',serif;--ebs-body:'Alegreya Sans','Gill Sans',Arial,sans-serif;
  --ebs-spring:cubic-bezier(.22,1,.36,1);--ebs-press:cubic-bezier(.2,.8,.2,1);--ebs-exit:cubic-bezier(.4,0,1,1);
  --ebs-bg:#f6f4ec;--ebs-ink:#242722;--ebs-soft:#51594c;--ebs-hair:rgba(36,39,34,.14);--ebs-tint:rgba(36,39,34,.07);--ebs-tint-strong:rgba(36,39,34,.13);--ebs-surface:#fdfcf8;--ebs-ring:#7b5a2c;
  /* the drafting panel: the site's deep green, cream and bronze, as on the approved preview */
  --ebd-green:#263c35;--ebd-cream:#eef0e5;--ebd-bronze:#c8a780;--ebd-soft:rgba(238,240,229,.8);--ebd-rim:rgba(238,240,229,.6);
  --ebd-edge:rgba(238,240,229,.85);--ebd-rule:rgba(238,240,229,.26);--ebd-ease:cubic-bezier(.2,.7,.2,1);
  --ebd-draw:cubic-bezier(.45,0,.55,1);--ebd-out:cubic-bezier(.215,.61,.355,1);
  /* the pill inherits these, exactly as it did from the old panel's wrapper */
  font-family:"IBM Plex Sans",Arial,sans-serif;color:#243e33;
}
@supports (transition-timing-function:linear(0,1)){
  .eb-sheet{--ebs-spring:linear(0,.0018,.0069 1.15%,.026 2.3%,.0637,.1135 5.18%,.2229 7.78%,.5977 15.84%,.7014,.7904,.8641,.9228,.9676 28.8%,1.0032 31.68%,1.0225,1.0352 36.29%,1.0431 38.88%,1.046 42.05%,1.0448 44.35%,1.0407 47.23%,1.0118 61.63%,1.0025 69.41%,.9981 80.35%,.9992 99.94%)}
}
/* ---------- the pill: live look, plus a 44 px place to press and a press response ---------- */
.eb-sheet .eb-contact-launcher{transition:scale .2s var(--ebs-press),opacity .12s ease;-webkit-tap-highlight-color:transparent}
.eb-sheet .eb-contact-launcher::after{content:"";position:absolute;inset:-4px 0}
.eb-sheet .eb-contact-launcher:active{scale:.95}
/* Under the open panel the pill is not drawn. It stays in place so focus can return to it. */
.eb-sheet .eb-contact-launcher[aria-expanded="true"]{opacity:0}

/* ---------- the layer ---------- */
.eb-sheet .ebs-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ebd-cream);overflow:hidden;overflow:clip;font:400 17px/1.4 var(--ebs-body);letter-spacing:normal;text-align:left;text-transform:none;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;--ebd-rise:100%}
.eb-sheet .ebs-dialog:not([open]){display:none}
.eb-sheet .ebs-dialog::backdrop{background:transparent}
/* The pages this sits on bring their own rules for headings, links and buttons. Start every part from nothing. */
.ebs-dialog :is(div,header,nav,h2,p,a,button,strong,span,svg){box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:inherit;color:inherit;letter-spacing:inherit;text-transform:none;text-decoration:none;text-align:inherit;text-shadow:none;min-width:0;max-width:none;float:none;opacity:1;-webkit-tap-highlight-color:transparent}
.ebs-dialog :is(div,header,nav,h2,p,a,button,strong,span)::before,.ebs-dialog :is(div,header,nav,h2,p,a,button,strong,span)::after{box-sizing:border-box}
.ebs-dialog button{cursor:pointer;-webkit-appearance:none;appearance:none}
.ebs-dialog svg{display:block;flex:none;fill:none;stroke:currentColor}
.eb-sheet .ebs-dialog :is(a,button):focus-visible{outline:2px solid var(--ebd-bronze);outline-offset:2px}
.eb-sheet .ebs-dialog [hidden]{display:none!important}
.eb-sheet .ebs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* A plain tint over the page, no blur: the panel itself is opaque. */
.eb-sheet .ebs-scrim{position:absolute;inset:0;background:rgba(14,18,15,.42)}

/* ---------- the panel: a drawn sheet ---------- */
.eb-sheet .ebs-panel{position:absolute;display:flex;flex-direction:column;min-height:0;color:var(--ebd-cream);isolation:isolate}
.eb-sheet .ebs-fill{position:absolute;inset:0;z-index:-1;background:var(--ebd-green);box-shadow:0 22px 54px rgba(0,0,0,.4);pointer-events:none}
.eb-sheet .ebs-edge{position:absolute;z-index:1;background:var(--ebd-edge);pointer-events:none}
.eb-sheet :is(.ebs-edge-top,.ebs-edge-bottom){left:0;right:0;height:1px}
.eb-sheet :is(.ebs-edge-left,.ebs-edge-right){top:0;bottom:0;width:1px}
.eb-sheet .ebs-edge-top{top:0;transform-origin:0 50%}
.eb-sheet .ebs-edge-right{right:0;transform-origin:50% 0}
.eb-sheet .ebs-edge-bottom{bottom:0;transform-origin:100% 50%}
.eb-sheet .ebs-edge-left{left:0;transform-origin:50% 100%}
/* Construction marks: each corner's two lines run 10 px past the edge, as on a drawn plan. */
.eb-sheet .ebs-mark{position:absolute;z-index:1;width:22px;height:22px;pointer-events:none}
.eb-sheet .ebs-mark::before,.eb-sheet .ebs-mark::after{content:"";position:absolute;background:var(--ebd-bronze)}
.eb-sheet .ebs-mark::before{left:0;right:0;top:10px;height:1px}
.eb-sheet .ebs-mark::after{top:0;bottom:0;left:10px;width:1px}
.eb-sheet .ebs-mark-tl{left:-10px;top:-10px}.eb-sheet .ebs-mark-tr{right:-11px;top:-10px}
.eb-sheet .ebs-mark-br{right:-11px;bottom:-11px}.eb-sheet .ebs-mark-bl{left:-10px;bottom:-11px}
.eb-sheet .ebs-top{flex:none;position:relative}
.eb-sheet .ebs-grabber{display:none}
.eb-sheet .ebs-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 22px 0}
/* the words rise inside their own block, which clips them: the soft mask */
.eb-sheet .ebs-heading{min-width:0;overflow:hidden;padding-bottom:2px}
.eb-sheet .ebs-eyebrow{font:700 12px/1.4 var(--ebs-body);letter-spacing:.16em;text-transform:uppercase;color:var(--ebd-bronze)}
.eb-sheet .ebs-title{margin-top:2px;font:400 30px/1.12 var(--ebs-display);letter-spacing:-.005em;color:var(--ebd-cream);text-wrap:balance}
.eb-sheet .ebs-lead{margin-top:2px;font-size:16px;line-height:1.45;color:var(--ebd-soft)}
.eb-sheet .ebs-close{flex:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--ebd-rim);border-radius:50%;color:var(--ebd-cream);transition:scale .18s var(--ebs-press),background-color .2s ease}
.eb-sheet .ebs-close:active{scale:.92;background:rgba(238,240,229,.14)}
.eb-sheet .ebs-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 22px 16px;scrollbar-width:thin}
.eb-sheet .ebs-note{display:block;padding-top:12px;font-size:13.5px;line-height:1.4;color:var(--ebd-soft);text-wrap:pretty}

/* ---------- the list: rows ruled like a drawing ---------- */
.eb-sheet .ebs-group{display:block;position:relative}
/* the rule under the heading */
.eb-sheet .ebs-group::before{content:"";display:block;height:1px;background:var(--ebd-rule);transform-origin:0 50%}
.eb-sheet .ebs-row{position:relative;display:flex;align-items:center;gap:4px}
/* the rule under each row */
.eb-sheet .ebs-row::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--ebd-rule);transform-origin:0 50%;pointer-events:none}
/* The measuring tick: a short bronze dimension mark |-| drawn on the row's rule when the row is pointed at or focused. */
.eb-sheet .ebs-row::before{content:"";position:absolute;z-index:1;left:0;bottom:-4px;width:28px;height:9px;border-left:1px solid var(--ebd-bronze);border-right:1px solid var(--ebd-bronze);background:linear-gradient(var(--ebd-bronze),var(--ebd-bronze)) 0 4px/100% 1px no-repeat;transform:scaleX(0);transform-origin:0 50%;transition:transform .24s var(--ebd-ease);pointer-events:none}
.eb-sheet .ebs-row:has(.ebs-link:focus-visible)::before{transform:scaleX(1)}
.eb-sheet .ebs-link{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:14px;min-height:58px;padding:8px 0;overflow:hidden;color:var(--ebd-cream)}
.eb-sheet .ebs-dialog .ebs-link:focus-visible{outline-offset:2px;border-radius:2px}
.eb-sheet .ebs-tile{flex:none;display:grid;place-items:center;width:24px;height:24px;color:var(--ebd-bronze)}
.eb-sheet .ebs-text{flex:1 1 auto;min-width:0;display:grid;gap:0}
.eb-sheet .ebs-text strong{display:block;font-weight:700;font-size:16px;line-height:1.25}
.eb-sheet .ebs-text span{display:block;font-size:15px;line-height:1.3;color:var(--ebd-soft);overflow-wrap:anywhere}
.eb-sheet .ebs-chevron{flex:none;margin-left:auto;display:grid;color:var(--ebd-bronze);transition:transform .22s var(--ebd-ease)}
.eb-sheet .ebs-link:focus-visible .ebs-chevron{transform:translateX(4px)}
.eb-sheet .ebs-copy{flex:none;display:grid;place-items:center;position:relative;width:44px;height:44px;border-radius:50%;color:var(--ebd-cream);transition:scale .18s var(--ebs-press),background-color .2s ease,color .2s ease}
.eb-sheet .ebs-dialog .ebs-copy:focus-visible{border-radius:50%}
.eb-sheet .ebs-copy:active{scale:.88}
.eb-sheet .ebs-copy[data-copied]{color:var(--ebd-bronze)}
.eb-sheet .ebs-copy .ebs-done,.eb-sheet .ebs-copy[data-copied] .ebs-todo{display:none}
.eb-sheet .ebs-copy[data-copied] .ebs-done{display:block}

.eb-sheet .ebs-primary,.eb-sheet .ebs-quiet{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:10px 16px;border:1px solid var(--ebd-bronze);border-radius:2px;color:var(--ebd-cream);font-weight:700;font-size:16px;line-height:1.2;text-decoration:none;overflow:hidden;transition:scale .2s var(--ebs-press),background-color .2s ease}
.eb-sheet .ebs-primary{margin-top:16px}
.eb-sheet .ebs-quiet{margin-top:8px;border-color:var(--ebd-rim);font-weight:500}
.eb-sheet .ebs-primary:active,.eb-sheet .ebs-quiet:active{scale:.98}
@media (hover:hover){
  .eb-sheet .ebs-close:hover,.eb-sheet .ebs-copy:hover,.eb-sheet .ebs-quiet:hover{background:rgba(238,240,229,.1)}
  .eb-sheet .ebs-link:hover .ebs-chevron{transform:translateX(4px)}
  .eb-sheet .ebs-row:has(.ebs-link:hover)::before{transform:scaleX(1)}
  .eb-sheet .ebs-primary:hover{background:rgba(200,167,128,.14)}
}

/* ---------- drawing it: one timeline, under 0.7 s; contact.js plays it backwards to close ---------- */
@keyframes ebd-x{from{scale:0 1}to{scale:1 1}}
@keyframes ebd-y{from{scale:1 0}to{scale:1 1}}
@keyframes ebd-fade{from{opacity:0}to{opacity:1}}
@keyframes ebd-rise{from{opacity:0;translate:0 var(--ebd-rise)}to{opacity:1;translate:0 0}}
.eb-sheet .ebs-dialog[open] .ebs-scrim{animation:ebd-fade .26s ease-out both}
.eb-sheet .ebs-dialog[open] .ebs-edge-top{animation:ebd-x .12s var(--ebd-draw) both}
.eb-sheet .ebs-dialog[open] .ebs-edge-right{animation:ebd-y .1s var(--ebd-draw) .1s both}
.eb-sheet .ebs-dialog[open] .ebs-edge-bottom{animation:ebd-x .12s var(--ebd-draw) .18s both}
.eb-sheet .ebs-dialog[open] .ebs-edge-left{animation:ebd-y .1s var(--ebd-draw) .28s both}
.eb-sheet .ebs-dialog[open] .ebs-mark{animation:ebd-fade .12s linear both}
.eb-sheet .ebs-dialog[open] .ebs-mark-tl{animation-delay:.06s}.eb-sheet .ebs-dialog[open] .ebs-mark-tr{animation-delay:.08s}
.eb-sheet .ebs-dialog[open] .ebs-mark-br{animation-delay:.1s}.eb-sheet .ebs-dialog[open] .ebs-mark-bl{animation-delay:.12s}
.eb-sheet .ebs-dialog[open] .ebs-group::before,.eb-sheet .ebs-dialog[open] .ebs-row::after{animation:ebd-x .2s var(--ebd-draw) .14s both}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(1)::after{animation-delay:.17s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(2)::after{animation-delay:.2s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(3)::after{animation-delay:.23s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(4)::after{animation-delay:.26s}
.eb-sheet .ebs-dialog[open] :is(.ebs-copy,.ebs-primary,.ebs-quiet){animation:ebd-fade .18s linear .24s both}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(2) .ebs-copy{animation-delay:.27s}
.eb-sheet .ebs-dialog[open] .ebs-primary{animation-delay:.3s}
.eb-sheet .ebs-dialog[open] .ebs-fill{animation:ebd-fade .18s ease-out .26s both}
.eb-sheet .ebs-dialog[open] :is(.ebs-heading>*,.ebs-close,.ebs-link>*,.ebs-primary>*,.ebs-quiet>*,.ebs-note){animation:ebd-rise .2s var(--ebd-out) .3s both}
.eb-sheet .ebs-dialog[open] .ebs-title{animation-delay:.32s}
.eb-sheet .ebs-dialog[open] .ebs-lead{animation-delay:.34s}
.eb-sheet .ebs-dialog[open] .ebs-close{animation-delay:.36s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(1) .ebs-link>*{animation-delay:.38s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(2) .ebs-link>*{animation-delay:.4s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(3) .ebs-link>*{animation-delay:.42s}
.eb-sheet .ebs-dialog[open] .ebs-row:nth-child(4) .ebs-link>*{animation-delay:.44s}
.eb-sheet .ebs-dialog[open] :is(.ebs-primary,.ebs-quiet)>*{animation-delay:.46s}
.eb-sheet .ebs-dialog[open] .ebs-note{animation-delay:.48s}

/* ---------- phones: a drawn card inset from every edge, so the corner crosses keep 13 px of clear space ---------- */
@media (max-width:760px){
  .eb-sheet .ebs-dialog{--ebd-rise:60%}
  .eb-sheet .ebs-scrim{background:rgba(14,18,15,.5)}
  .eb-sheet .ebs-panel{left:calc(24px + env(safe-area-inset-left,0px));right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .eb-sheet .ebs-header{padding:18px 16px 0}
  .eb-sheet .ebs-title{font-size:27px}
  .eb-sheet .ebs-body{padding:12px 16px 14px}
  .eb-sheet .ebs-link{gap:12px}
}
/* ---------- wide screens: the card sits where the pill is, wherever the visitor has moved it ---------- */
@media (min-width:761px){
  .eb-sheet .ebs-panel{right:var(--ebs-right,24px);bottom:var(--ebs-bottom,88px);width:392px;max-width:calc(100vw - 48px);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}
}
/* Reduced motion (the phone setting, or the site's own switch html[data-eb-motion]): no movement anywhere, every state is immediate. */
@media (prefers-reduced-motion:reduce){
  .eb-sheet *,.eb-sheet *::before,.eb-sheet *::after{transition:none!important;animation:none!important}
}
html[data-eb-motion] .eb-sheet *,html[data-eb-motion] .eb-sheet *::before,html[data-eb-motion] .eb-sheet *::after{transition:none!important;animation:none!important}
