/* contact email surfaces (static, not motion) */
.ico { width: 20px; height: 20px; flex: none; }
.hero-email { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 10px; }
.hero-email a { display: inline-flex; align-items: center; min-height: 44px; font: 400 clamp(1rem, 3.9vw, 1.2rem)/1.1 var(--serif); letter-spacing: .02em; color: var(--ink); text-underline-offset: 5px; white-space: nowrap; }
.contact-aside dd .mail-big { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; font: 400 clamp(1rem, 3.9vw, 1.45rem)/1.2 var(--serif); white-space: nowrap; text-transform: none; letter-spacing: .01em; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.contact-aside dd .mail-big .ico { width: .9em; height: .9em; }
.contact-strip { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 0 0 28px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-item { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 400 clamp(1rem, 3.9vw, 1.3rem)/1.1 var(--serif); letter-spacing: .02em; color: var(--ink); white-space: nowrap; min-width: 0; }
.cs-item:hover { color: var(--accent); }
@media (max-width: 760px) { .hero-email { justify-content: flex-start; } }
/* 3D pass: everything below is scoped under .fx (added by fx.js unless reduced motion). */
/* 1 hero depth */
.fx .hero.fx-hero { background-image: none; isolation: isolate; }
.fx-hero-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/sketch.png") center 78% / cover no-repeat; will-change: transform; }
.fx-hero-palms { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221344%22%20height%3D%22752%22%20viewBox%3D%220%200%201344%20752%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22g%22%3E%3Cstop%20offset%3D%22.62%22%20stop-color%3D%22%23fff%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fff%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cellipse%20cx%3D%22405%22%20cy%3D%22182%22%20rx%3D%22190%22%20ry%3D%22142%22%20fill%3D%22url(%23g)%22%2F%3E%3Cellipse%20cx%3D%22942%22%20cy%3D%22242%22%20rx%3D%22172%22%20ry%3D%22132%22%20fill%3D%22url(%23g)%22%2F%3E%3C%2Fsvg%3E") center 78% / cover no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221344%22%20height%3D%22752%22%20viewBox%3D%220%200%201344%20752%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22g%22%3E%3Cstop%20offset%3D%22.62%22%20stop-color%3D%22%23fff%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fff%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cellipse%20cx%3D%22405%22%20cy%3D%22182%22%20rx%3D%22190%22%20ry%3D%22142%22%20fill%3D%22url(%23g)%22%2F%3E%3Cellipse%20cx%3D%22942%22%20cy%3D%22242%22%20rx%3D%22172%22%20ry%3D%22132%22%20fill%3D%22url(%23g)%22%2F%3E%3C%2Fsvg%3E") center 78% / cover no-repeat; }
.fx .hero-copy { will-change: transform; }
@media (max-width: 760px) {
  .fx-hero-layer { background-size: auto 62%; background-position: 54% 100%; }
  .fx-hero-palms { -webkit-mask-size: auto 62%; mask-size: auto 62%; -webkit-mask-position: 54% 100%; mask-position: 54% 100%; }
}
/* 2 tilt + paper sheen on unit cards */
.fx .card { position: relative; }
.fx .card.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: opacity .9s var(--ease), transform .7s var(--ease), border-color .3s var(--ease), box-shadow .5s var(--ease); }
.fx .card.is-in:hover { --lift: -2px; }
.fx .card.is-tilting { transition: opacity .9s var(--ease), transform .14s linear, border-color .3s var(--ease), box-shadow .5s var(--ease); box-shadow: 0 22px 34px -26px rgba(35, 36, 31, .45); }
.fx .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 253, 247, .62), rgba(255, 253, 247, 0) 58%); }
.fx .card.is-tilting::after { opacity: 1; }
/* 2+3 chapter numerals: extrusion, entrance rotation, tilt */
.fx .ch-num { justify-self: start; transform-origin: 20% 85%;
  --ex: 14deg; --ey: 20deg;
  transform: perspective(1000px) rotateX(calc(var(--rx, 0deg) + var(--ex))) rotateY(calc(var(--ry, 0deg) + var(--ey)));
  transition: transform 1.6s var(--ease) .1s;
  text-shadow: 1px 1px 0 #8f4f37, 2px 2px 0 #864a34, 3px 3px 0 #7c4430, 4px 4px 0 #723f2c, 6px 8px 16px rgba(60, 32, 20, .2); }
.fx .is-in .ch-num { --ex: 0deg; --ey: 0deg; }
.fx .ch-num.is-tilting { transition: transform .14s linear; }
.fx .ch.chapter--dark .ch-num { text-shadow: 1px 1px 0 #c6b68c, 2px 2px 0 #b4a47a, 3px 3px 0 #a19269, 4px 4px 0 #8e8159, 6px 9px 18px rgba(0, 0, 0, .35); }
.fx .chapters { overflow-x: clip; }
/* 3 progress label rule fills with scroll */
.fx .index i::after { transform-origin: left center; transform: scaleX(var(--s, .15)); transition: transform .25s linear; }
/* 4 floating 3D sprig + cursor light on the green chapters */
.fx .chapter--dark > .wrap { position: relative; z-index: 1; }
.fx-sprig { position: absolute; z-index: 0; top: clamp(26px, 7vw, 96px); right: clamp(12px, 7vw, 130px); width: clamp(58px, 8.5vw, 118px); aspect-ratio: 2 / 3;
  perspective: 700px; color: var(--sand); opacity: .3; pointer-events: none; }
.fx-sprig-in { position: absolute; inset: 0; transform-style: preserve-3d; animation: fx-drift 17s ease-in-out infinite alternate; animation-play-state: paused; }
@media (min-width: 861px) { .ch > .fx-sprig { right: auto; left: 41%; top: 24%; opacity: .34; } }
.fx-sprig--b .fx-sprig-in { animation-duration: 21s; animation-delay: -7s; }
.fx-sprig.fx-live .fx-sprig-in { animation-play-state: running; }
.fx-sprig svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.fx-sprig .fx-l2 { transform: translate3d(16%, 10%, 34px) rotateY(42deg) rotateZ(16deg); opacity: .75; }
@keyframes fx-drift {
  0% { transform: translate3d(0, 0, 0) rotateX(12deg) rotateY(-28deg) rotateZ(-8deg); }
  50% { transform: translate3d(-8px, 10px, 18px) rotateX(-6deg) rotateY(22deg) rotateZ(3deg); }
  100% { transform: translate3d(5px, -6px, 0) rotateX(8deg) rotateY(-6deg) rotateZ(9deg); }
}
.fx-light { position: absolute; z-index: 0; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 201, 160, .13), rgba(217, 201, 160, 0)); opacity: 0; transition: opacity .6s var(--ease), transform .35s var(--ease); }
.is-lit > .fx-light { opacity: 1; }
/* 5 pill nav: 3D press, magnetic Inquire, staggered 3D menu flip */
.fx .pillbar .pill, .fx .menu-btn, .fx .brand {
  transform: perspective(500px) translate3d(var(--mgx, 0px), var(--mgy, 0px), 0);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .45s var(--ease); }
.fx .pillbar .pill:active, .fx .menu-btn:active, .fx .brand:active {
  transform: perspective(500px) translate3d(var(--mgx, 0px), var(--mgy, 0px), 0) rotateX(16deg) scale(.95); transition-duration: .25s, .25s, .25s, .08s; }
.fx .menu-links { perspective: 900px; }
.fx .menu.is-open .menu-links li { transform-origin: 50% 0; animation: fx-flip .7s var(--ease) both; }
.fx .menu.is-open .menu-links li:nth-child(2) { animation-delay: .06s; }
.fx .menu.is-open .menu-links li:nth-child(3) { animation-delay: .12s; }
.fx .menu.is-open .menu-links li:nth-child(4) { animation-delay: .18s; }
.fx .menu.is-open .menu-links li:nth-child(5) { animation-delay: .24s; }
.fx .menu.is-open .menu-links li:nth-child(6) { animation-delay: .30s; }
.fx .menu.is-open .menu-side { animation: fx-rise .7s var(--ease) .3s both; }
@keyframes fx-flip { from { opacity: 0; transform: rotateX(-78deg) translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-sprig, .fx-light, .fx-hero-layer { display: none; } }
