/* Desktop hero. Scene geometry remains in its original 2688 × 1520 coordinates. */
:root {
  --ink: #171c14;
  --cream: #fff6e4;
  --muted: #dfdacb;
  --gold: #efc583;
  --gutter: clamp(32px, 5vw, 96px);
  --ui-font: "DM Sans", sans-serif;
  --display-font: "Rozha One", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--cream); }
body { font: 400 16px/1.6 var(--ui-font); }
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 20; top: 16px; left: 16px; padding: 12px 24px; background: var(--cream); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.sq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  height: 100svh;
  width: 100%;
  background: var(--ink);
  touch-action: pan-y;
}
/* A directional scrim protects the copy while leaving the squirrel in sunlight. */
.sq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 23, 16, .86) 0%, rgba(15, 23, 16, .72) 25%, rgba(15, 23, 16, .22) 51%, transparent 68%), linear-gradient(180deg, rgba(15, 23, 16, .5), transparent 25%, transparent 72%, rgba(15, 23, 16, .84));
}
.header-contact { position: relative; isolation: isolate; overflow: hidden; min-height: 44px; display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; border: 1px solid rgba(255, 246, 228, .5); border-radius: 999px; font-size: 14px; font-weight: 500; transition: color 300ms ease, border-color 300ms ease; }
.header-contact svg { width: 15px; height: 15px; }
.header-contact:hover, .header-contact:focus-visible { color: var(--ink); border-color: var(--cream); }
.header-contact::before { background: var(--cream); }
.header-contact:hover svg, .header-contact:focus-visible svg { animation: arrow-out-in-diag 520ms cubic-bezier(.6, 0, .2, 1); }

/* The copy block is deliberately not a stacking context (no z-index, no transform), so the petal layer
   (.sq-front, z 5) can pass over the headline and under the buttons. The two spacers place it exactly
   where top: 49% + translateY(-43%) did: a 10.53% base plus 43:57 of the free height. */
.sq-copy {
  position: absolute;
  left: var(--gutter);
  top: 0;
  bottom: 0;
  width: min(43vw, 640px);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.sq-copy::before { content: ""; flex: 43 1 10.5263%; }
.sq-copy::after { content: ""; flex: 57 1 0; }
.sq-copy > * { position: relative; z-index: 2; pointer-events: auto; }
.sq-copy > .hero-action { z-index: 6; }
.sq-copy:focus { outline: none; }
.sq-copy h1 { margin: 0; font: 400 clamp(54px, 5.65vw, 82px)/.99 var(--display-font); letter-spacing: -.035em; }
.sq-copy h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.sq-copy h1 .line > span { display: block; transform: translateY(110%); animation: rise 1100ms cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(180ms + var(--i, 0) * 110ms); }
.sq-copy h1 .line:nth-child(2) > span { --i: 1; }
.sq-copy h1 .line:nth-child(3) > span { --i: 2; }
.sq-copy h1 .accent { color: var(--gold); }
.hero-description, .hero-action { opacity: 0; transform: translateY(14px); animation: settle 900ms cubic-bezier(.16, 1, .3, 1) forwards; }
.hero-description { animation-delay: 620ms; }
.hero-action { animation-delay: 740ms; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes settle { to { opacity: 1; transform: translateY(0); } }
.hero-description { max-width: 420px; margin: 28px 0 0; font-size: 17px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.hero-action { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button-quiet { position: relative; padding: 10px 0; font-size: 15px; font-weight: 500; color: rgba(255, 246, 228, .85); transition: color 180ms ease; }
.button-quiet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; opacity: .5; transition: opacity 180ms ease, transform 280ms cubic-bezier(.2, .7, .2, 1); }
.button-quiet:hover { color: var(--gold); }
.button-quiet:hover::after { opacity: 1; }
.button-primary { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 40px; min-height: 56px; padding: 16px 24px; background: var(--cream); color: var(--ink); border-radius: 3px; font-weight: 600; font-size: 15px; }
.button-primary::before { background: var(--gold); }
.button-primary:not(:disabled):hover svg, .button-primary:focus-visible svg { animation: arrow-out-in 520ms cubic-bezier(.6, 0, .2, 1); }
/* Hover never moves a button. A fill rises from the bottom and leaves through the top, and the arrow slips out
   one side and back in from the other. */
.button-primary::before, .header-contact::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: 50% 0; transition: transform 460ms cubic-bezier(.7, 0, .2, 1); }
.button-primary:not(:disabled):hover::before, .button-primary:focus-visible::before, .header-contact:hover::before, .header-contact:focus-visible::before { transform: scaleY(1); transform-origin: 50% 100%; }
@keyframes arrow-out-in { 0% { transform: none; } 45% { transform: translateX(14px); opacity: 0; } 46% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arrow-out-in-diag { 0% { transform: none; } 45% { transform: translate(10px, -10px); opacity: 0; } 46% { transform: translate(-10px, 10px); opacity: 0; } 100% { transform: none; opacity: 1; } }


.sq-stage { position: absolute; top: 0; left: 0; width: 2688px; height: 1520px; transform-origin: 0 0; opacity: 0; transition: opacity 900ms ease; will-change: transform; user-select: none; }
.sq-hero.is-ready .sq-stage { opacity: 1; }
.sq-front { z-index: 5; pointer-events: none; } /* above the scrim and the headline, below the buttons and the header */
.sq-layer { position: absolute; display: block; pointer-events: none; will-change: transform; backface-visibility: hidden; }
.sq-layer img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.sq-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1200ms ease; pointer-events: none; }
.sq-bg-video.is-playing { opacity: 1; }
.sq-petal { top: 0; left: 0; transform-origin: 40% 30%; filter: drop-shadow(0 18px 14px rgba(60, 20, 0, .18)); }
.scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.scene-unavailable { background: var(--ink) url("assets/layers-v3/master.jpg") 65% center / cover no-repeat; }
.scene-unavailable .sq-stage { display: none; }
/* ---- Dawn: the hero loads as the garden before sunrise (dawn.js). The page waits, the copy holds
   at the start of its animation, and the header comes in with the light. */
html.is-dawn { overflow: hidden; }
.is-dawn main { pointer-events: none; }
.is-dawn .sq-copy h1 .line > span, .is-dawn .hero-description, .is-dawn .hero-action { animation-play-state: paused; }
.dawn-plate { position: absolute; top: 0; left: 0; width: 2688px; height: 1520px; transform-origin: 0 0; opacity: 0; transition: opacity 700ms ease; pointer-events: none; user-select: none; }
.dawn-plate.is-shown { opacity: 1; }
.dawn-light, .dawn-glow { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dawn-light { width: 100%; height: 100%; mix-blend-mode: multiply; }
.dawn-glow { mix-blend-mode: screen; opacity: 0; background: radial-gradient(70% 70% at 0% 0%, rgba(255, 196, 120, .7), rgba(255, 150, 70, .22) 35%, transparent 65%); }
/* The loader stands where the headline will, above every scene layer, and hands over to it. */
.dawn-loader { --p: 0; position: absolute; z-index: 7; left: var(--gutter); top: 47%; transform: translateY(-50%); width: min(46vw, 600px); color: var(--cream); pointer-events: none; text-shadow: 0 2px 24px rgba(8, 12, 20, .6); transition: opacity 700ms ease, transform 900ms cubic-bezier(.16, 1, .3, 1), filter 700ms ease; animation: dawn-in 900ms cubic-bezier(.16, 1, .3, 1) backwards; }
.dawn-kicker { display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--ui-font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.dawn-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dawn-msg { display: grid; margin: 22px 0 30px; font: 400 clamp(36px, 3.4vw, 52px)/1.06 var(--display-font); letter-spacing: -.02em; }
.dawn-msg > span { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity 420ms ease, transform 620ms cubic-bezier(.16, 1, .3, 1), filter 420ms ease; }
.dawn-msg > span.is-on { opacity: 1; transform: none; filter: none; transition-delay: 160ms; }
.dawn-msg em { font: italic 400 1.02em/1 "Fraunces", Georgia, serif; letter-spacing: -.01em; color: #ffd9a8; }
.dawn-bar { position: relative; display: block; height: 1px; background: rgba(255, 246, 228, .2); }
.dawn-bar i { position: absolute; inset: 0; transform: scaleX(var(--p)); transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255, 196, 120, .35), var(--gold) 70%, #ffe2b0); }
.dawn-bar::after { content: ""; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff3dc; box-shadow: 0 0 0 3px rgba(255, 200, 120, .18), 0 0 16px 4px rgba(255, 180, 90, .75); }
.dawn-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font: 500 12px/1 var(--ui-font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 246, 228, .66); font-variant-numeric: tabular-nums; }
.dawn-time i { font-style: normal; animation: dawn-colon 1.1s steps(1) infinite; }
.dawn-pct { font: 400 20px/1 var(--display-font); letter-spacing: 0; color: var(--cream); }
.dawn-pct b { font-weight: 400; }
@keyframes dawn-colon { 50% { opacity: .25; } }
@keyframes dawn-in-m { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes dawn-in { from { opacity: 0; transform: translateY(calc(-50% + 14px)); } }
.dawn-loader.is-done { opacity: 0; transform: translateY(calc(-50% - 18px)); filter: blur(4px); }
/* Compact desktop heights keep the entire introduction in view. */
@media (min-width: 1000px) and (max-height: 780px) {
  .sq-hero { min-height: 640px; }
  .sq-copy::before { flex: 40 1 11.6667%; } /* top: 47% + translateY(-40%) */
  .sq-copy::after { flex-grow: 60; }
  .sq-copy h1 { font-size: clamp(51px, 4.9vw, 68px); }
  .hero-description { margin-top: 20px; font-size: 15px; line-height: 1.65; }
  .hero-action { margin-top: 24px; }
}
/* Phones and narrow windows. Portrait screens get their own tall garden (assets/layers-m): the headline
   sits in the sky, the squirrel on the branch in the middle third, the reading text and buttons in the
   garden below. */
@media (max-width: 999px) {
  :root { --gutter: 24px; }
  .sq-hero { min-height: 640px; }
  .sq-copy { inset: 0; width: auto; align-items: center; padding: clamp(112px, 15svh, 134px) var(--gutter) calc(22px + env(safe-area-inset-bottom)); text-align: center; }
  .sq-copy::before, .sq-copy::after { display: none; }
  .dawn-loader { left: 50%; top: clamp(112px, 17svh, 150px); width: min(100% - var(--gutter) * 2, 320px); transform: translateX(-50%); text-align: center; animation-name: dawn-in-m; }
  .dawn-loader.is-done { transform: translate(-50%, -18px); }
  .dawn-kicker { justify-content: center; }
  .dawn-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
  .dawn-msg { margin: 18px 0 26px; font-size: clamp(32px, 9vw, 38px); text-wrap: balance; }
  .sq-copy h1 { font-size: clamp(36px, 12.6vw, 64px); line-height: .98; text-shadow: 0 1px 3px rgba(15, 23, 16, .5), 0 2px 22px rgba(15, 23, 16, .7); }
  .site-header .topbar-brand { filter: drop-shadow(0 1px 8px rgba(15, 23, 16, .6)); } /* lifts the logo off the blossoms (the visible logo is drawn by ::before and ::after) */
  .hero-description { max-width: 342px; margin: auto 0 0; font-size: 16.5px; line-height: 1.6; color: rgba(255, 246, 228, .86); text-wrap: balance; }
  .hero-action { width: min(100%, 342px); flex-direction: column; gap: 4px; margin-top: 18px; }
  .hero-action .button-primary { width: 100%; }
  .hero-action .button-quiet { display: none; } /* phones: one clear action, at the bottom */
  /* sky above for the headline, garden below for the reading text; the branch and the squirrel stay in full light */
  .sq-hero::after { background: radial-gradient(ellipse 78% 20% at 50% 25%, rgba(15, 23, 16, .28), transparent 72%), linear-gradient(180deg, rgba(15, 23, 16, .64) 0%, rgba(15, 23, 16, .44) 18%, rgba(15, 23, 16, .26) 30%, rgba(15, 23, 16, .08) 38%, transparent 44%, transparent 57%, rgba(15, 23, 16, .55) 66%, rgba(15, 23, 16, .86) 77%, rgba(15, 23, 16, .96) 90%, rgba(15, 23, 16, .98)); }
}
/* Phones held sideways keep the landscape garden, so the copy moves back to the left like desktop. */
@media (max-width: 999px) and (min-aspect-ratio: 4/5) {
  .sq-hero { min-height: 560px; }
  .sq-copy { align-items: flex-start; justify-content: center; width: min(58%, 520px); padding-top: 84px; text-align: left; }
  .sq-copy h1 { font-size: clamp(40px, 6.4vw, 60px); }
  .hero-description { margin-top: 18px; max-width: 400px; text-wrap: pretty; }
  .hero-action { width: auto; flex-direction: row; align-items: center; gap: 20px; }
  .hero-action .button-primary { width: auto; }
  .dawn-loader { left: var(--gutter); top: 50%; width: min(52%, 420px); transform: translateY(-50%); text-align: left; animation-name: dawn-in; }
  .dawn-loader.is-done { transform: translateY(calc(-50% - 18px)); }
  .dawn-kicker { justify-content: flex-start; }
  .dawn-kicker::after { display: none; }
  .sq-hero::after { background: linear-gradient(90deg, rgba(15, 23, 16, .86), rgba(15, 23, 16, .66) 34%, rgba(15, 23, 16, .14) 58%, transparent 70%), linear-gradient(180deg, rgba(15, 23, 16, .45), transparent 22%); }
}
@media (max-aspect-ratio: 4/5) {
  .scene-unavailable { background-image: url("assets/layers-m/master.jpg"); background-position: 66% center; }
  .scene-fallback { object-position: 66% center; }
}
@media (max-width: 599px) {
  .header-contact { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .sq-copy h1 .line > span { transform: none; }
  .hero-description, .hero-action { opacity: 1; transform: none; }
}
