
.v-d { background: linear-gradient(#eef3f4 0 45%, #cfe6f0 75%, #f6d9b8); }   
.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.world img { display: block; user-select: none; }
.sky img { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 30% 100%;
  transform: translate3d(calc(var(--px, 0) * -0.6%), calc(var(--py, 0) * -0.4%), 0); }
.stage { --h: max(64dvh, calc(108vw / 1.5)); position: absolute; bottom: min(0px, calc((100dvh - var(--h)) * .5)); left: 50%; height: var(--h); aspect-ratio: 3 / 2;
  transform: translateX(calc(-50% + var(--shift, 0px))); }
.layer { position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * var(--depth) * -100%), calc(var(--py, 0) * var(--depth) * -30%), 0); }
.layer--sun { --depth: .005; } .layer--far { --depth: .012; } .layer--near { --depth: .022; } .fore { --depth: .035; }
.glint--1 { --x: 37.5%; --y: 76%; --d: 0s; } .glint--2 { --x: 41%; --y: 72%; --d: 2.3s; } .glint--3 { --x: 85.8%; --y: 63.4%; --d: 4.1s; }
.layer img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.layer--near img { translate: 0 6%; }
.glints { translate: 0 6%; }   
.fore { position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * var(--depth) * -100vw), calc(var(--py, 0) * var(--depth) * -20dvh), 0); }
.fore picture { position: absolute; bottom: -2%; }
.fore img { width: 100%; height: auto; }
.fore__l { left: -3vw; width: clamp(130px, 22vw, 360px); }
.fore__r { right: -3vw; width: clamp(130px, 21vw, 350px); }
@media (orientation: portrait) { .fore__l { width: 40vw; left: -4%; } .fore__r { width: 40vw; right: -6%; } }
.sun { position: absolute; left: 36%; bottom: 23%; width: 4.2%; height: 0; padding-bottom: 4.2%; translate: -50% 50%; border-radius: 50%;
  background: radial-gradient(closest-side, #fff4dc 0 35%, #ffd08a 60%, rgb(246 135 34 / .55) 85%, rgb(246 135 34 / 0));
  filter: blur(1px); }                                   
.sun::after { content: ""; position: absolute; inset: -260%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 205 140 / .55), rgb(255 190 120 / .18) 45%, rgb(255 190 120 / 0)); }
.clouds { position: absolute; inset: 0; }
.cloud { position: absolute; width: clamp(220px, 30vw, 520px); height: auto; opacity: .9; }
.cloud--1 { top: 9%; left: -8%; }
.cloud--2 { top: 21%; right: -10%; width: clamp(180px, 24vw, 420px); opacity: .75; }
.glint { position: absolute; left: var(--x); top: var(--y); width: 1.1%; min-width: 9px; fill: #fff; opacity: 0;
  filter: drop-shadow(0 0 4px rgb(255 214 160 / .9)); }
.glint--sm { width: .75%; min-width: 7px; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 92%; ascent-override: 98%; descent-override: 33%; }
@font-face { font-family: "Alegreya Sans fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 88%; ascent-override: 102%; descent-override: 30%; }
.v-d {
  --d-ink: #33281e;        
  --d-blue: #065a87;       
  --d-orange: #f68722;     
  --d-scale: 1;
}
body.v-d { font-family: "Alegreya", "Alegreya fallback", Georgia, serif; }
.v-d ::selection { background: var(--d-orange); color: var(--d-ink); }
.v-d .splash { z-index: 1; inset: 0 0 auto 0; --c: .43; height: calc(var(--c) * 200dvh);
  padding: 0 clamp(22px, 6vw, 48px); }
.v-d .splash__logo img { width: min(calc(460px * var(--d-scale)), 74vw, 40dvh * 7.44); }
.v-d .splash__line {
  margin: clamp(16px, 3.2dvh, 30px) 0 0;
  max-width: 38ch;
  font-family: "Alegreya", "Alegreya fallback", Georgia, serif;
  font-size: calc(clamp(1.125rem, 0.85rem + 1vw, 1.75rem) * var(--d-scale));
  font-weight: 450;
  line-height: 1.36;
  letter-spacing: 0.002em;
  color: var(--d-ink);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-wrap: balance;
}
.v-d { --d-paper: 255 249 238; --d-shade: 98 72 44; --d-brick: #8f2a16; --d-ease: cubic-bezier(.25, 1, .5, 1); }
.v-d .contact { width: min(100%, 23rem); margin-top: clamp(12px, 2.2dvh, 22px); text-align: left; }
.contact__title { margin: 0 0 clamp(6px, 1.1dvh, 10px); text-align: center; font-family: "Alegreya", "Alegreya fallback", Georgia, serif; font-weight: 600; font-size: 1.125rem; line-height: 1.2;
  color: var(--d-ink); text-decoration: underline 1.5px var(--d-orange); text-underline-offset: .3em; }
.contact__body { display: grid; }
.contact__fields, .contact__done { grid-area: 1 / 1; transition: opacity 220ms var(--d-ease), visibility 0s; }
.contact__fields { display: grid; gap: clamp(6px, 1.1dvh, 10px); }
.contact__done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; text-align: center; opacity: 0; visibility: hidden; transition-delay: 0s, 220ms; }
.is-done .contact__fields { opacity: 0; visibility: hidden; transition-delay: 0s, 220ms; }
.is-done .contact__done { opacity: 1; visibility: visible; transition-delay: 0s; }
.contact__done:focus { outline: none; }
.contact__done p { margin: 0; }
.contact__done-title { font-family: "Alegreya", "Alegreya fallback", Georgia, serif; font-weight: 600; font-size: 1.375rem; line-height: 1.2; color: var(--d-ink); }
.contact__done-text { font-family: "Alegreya", "Alegreya fallback", Georgia, serif; font-weight: 450; font-size: 1.0625rem; line-height: 1.35; color: var(--d-ink); max-width: 28ch; text-wrap: balance; }
.contact__again { margin-top: 4px; padding: 8px 6px; border: 0; background: none; cursor: pointer; font-family: "Alegreya Sans", "Alegreya Sans fallback", Arial, sans-serif; font-weight: 500; font-size: 1rem;
  letter-spacing: .03em; color: var(--d-blue); text-decoration: underline 1.5px var(--d-orange); text-underline-offset: .32em; }
.contact__again:hover { color: var(--d-ink); text-decoration-thickness: 2.5px; }
.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-height: 1.25rem; padding: 0 2px; }
.field label, .field__err { font-family: "Alegreya Sans", "Alegreya Sans fallback", Arial, sans-serif; font-weight: 500; font-size: .9375rem; line-height: 1.25; letter-spacing: .02em; }
.field label { color: var(--d-ink); }
.field__err { color: var(--d-brick); }
.field input, .field textarea { display: block; width: 100%; margin: 0; padding: 7px 11px; font-family: "Alegreya", "Alegreya fallback", Georgia, serif; font-weight: 450; font-size: 1.0625rem; line-height: 1.3;
  color: var(--d-ink); background: rgb(var(--d-paper) / .88); border: 1.5px solid transparent; border-radius: 7px;
  box-shadow: inset 0 1.5px 3px rgb(var(--d-shade) / .32), 0 1px 0 rgb(255 255 255 / .6), 0 2px 9px rgb(150 105 50 / .18);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: box-shadow 160ms var(--d-ease), background-color 160ms var(--d-ease); }
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: #66553f; opacity: 1; }
.field input:hover, .field textarea:hover { background: rgb(var(--d-paper) / .94); }
.field input:focus, .field textarea:focus { background: rgb(var(--d-paper) / .97); box-shadow: inset 0 1px 2px rgb(var(--d-shade) / .16), 0 0 0 4px rgb(6 90 135 / .14); }
.field [aria-invalid] { background: rgb(255 234 226 / .94); box-shadow: inset 0 -2.5px 0 var(--d-brick), 0 2px 8px rgb(150 105 50 / .14); }
.field :focus-visible { outline-offset: 2px; border-radius: 7px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__send { justify-self: center; min-height: 40px; margin-top: 4px; padding: 0 1.75rem; cursor: pointer; border: 0; border-radius: 7px;
  font-family: "Alegreya Sans", "Alegreya Sans fallback", Arial, sans-serif; font-weight: 500; font-size: 1.0625rem; letter-spacing: .04em; color: rgb(var(--d-paper)); background: var(--d-blue);
  box-shadow: 0 3px 0 var(--d-orange); transition: background-color 160ms var(--d-ease), transform 160ms var(--d-ease), box-shadow 160ms var(--d-ease); }
.contact__send:hover { background: #054a70; transform: translateY(-1px); box-shadow: 0 4px 0 var(--d-orange); }
.contact__send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--d-orange); }
.contact__send[aria-disabled] { cursor: progress; background: #3d6f8a; transform: none; box-shadow: 0 3px 0 var(--d-orange); }
@media (prefers-reduced-motion: reduce) { .v-d .contact *, .v-d .contact { transition: none !important; } .contact__send:hover { transform: none; } }
.v-d :focus-visible { outline: 2px solid var(--d-blue); outline-offset: 3px; border-radius: 2px; }
@media (max-width: 480px) { .v-d .splash__line { max-width: 28ch; line-height: 1.4; } }
@media (max-height: 520px) and (orientation: landscape) {
  .v-d .splash { display: grid; grid-template: "logo form" auto "line form" auto / minmax(0, 1fr) minmax(0, 17.5rem); column-gap: 22px; align-content: start; justify-items: center; padding-top: 22px; }
  .v-d .splash__logo { grid-area: logo; align-self: end; }
  .v-d .splash__logo img { width: min(270px, 40vw); }
  .v-d .splash__line { grid-area: line; align-self: start; font-size: 1.0625rem; max-width: 30ch; margin-top: 10px; line-height: 1.3; }
  .v-d .contact { grid-area: form; align-self: start; width: 100%; margin-top: 0; }
  .contact__title { margin-bottom: 3px; font-size: 1rem; }
  .field__head { min-height: 1rem; }
  .field label, .field__err { font-size: .8125rem; line-height: 1.2; }
  .field input, .field textarea { padding: 4px 9px; font-size: 1rem; line-height: 1.2; }
  .contact__fields { gap: 3px; }
  .contact__send { min-height: 32px; margin-top: 3px; font-size: 1rem; }
  .contact__done-title { font-size: 1.1875rem; } .contact__done-text { font-size: 1rem; }
}
@media (orientation: portrait) { .fore__l { width: 40vw; left: -4%; } .fore__r { width: 40vw; right: -6%; } }
.sun { position: absolute; left: 36%; bottom: 23%; width: 4.2%; height: 0; padding-bottom: 4.2%; translate: -50% 50%; border-radius: 50%;
  background: radial-gradient(closest-side, #fff4dc 0 35%, #ffd08a 60%, rgb(246 135 34 / .55) 85%, rgb(246 135 34 / 0));
  filter: blur(1px); }                                   
.sun::after { content: ""; position: absolute; inset: -260%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 205 140 / .55), rgb(255 190 120 / .18) 45%, rgb(255 190 120 / 0)); }
.clouds { position: absolute; inset: 0; }
.cloud { position: absolute; width: clamp(220px, 30vw, 520px); height: auto; opacity: .9; }
.cloud--1 { top: 9%; left: -8%; }
.cloud--2 { top: 21%; right: -10%; width: clamp(180px, 24vw, 420px); opacity: .75; }
.glint { position: absolute; left: var(--x); top: var(--y); width: 1.1%; min-width: 9px; fill: #fff; opacity: 0;
  filter: drop-shadow(0 0 4px rgb(255 214 160 / .9)); }
.glint--sm { width: .75%; min-width: 7px; }
@media (orientation: portrait) { .stage { --shift: -19%; } .cloud--1 { top: 3%; left: -20%; } .cloud--2 { top: 56%; } .v-d .splash { --c: .42; } }
@media (max-height: 520px) and (orientation: landscape) { .v-d .splash { --c: .32; } }
@media (max-height: 340px) and (orientation: landscape) {
  .v-d .splash { padding-top: 8px; }
  .v-d .splash__logo img { width: min(230px, 38vw); }
  .v-d .splash__line { font-size: 1rem; margin-top: 6px; }
  .contact__title { margin-bottom: 1px; }
  .field input, .field textarea { padding-block: 3px; }
  .contact__send { min-height: 30px; margin-top: 2px; }
}
@media (max-height: 700px) and (orientation: portrait) {
  .v-d .splash { --c: .395; }
  .v-d .splash__line { margin-top: 12px; }
  .v-d .contact { margin-top: 10px; }
  .contact__title { margin-bottom: 4px; }
  .contact__fields { gap: 4px; }
  .field input, .field textarea { padding-block: 5px; }
  .contact__send { min-height: 38px; margin-top: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cloud--1 { animation: drift 140s linear infinite alternate; }
  .cloud--2 { animation: drift 190s linear -60s infinite alternate-reverse; }
  .sun::after { animation: glow 7s ease-in-out infinite alternate; }
  .glint { animation: glint 6.5s var(--d) ease-in-out infinite; }
  .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
}
@keyframes drift { to { translate: 22vw 0; } }
@keyframes glow { from { opacity: .7; scale: .94; } to { opacity: 1; scale: 1.06; } }
@keyframes glint { 0%, 70%, 100% { opacity: 0; scale: .4; rotate: 0deg; } 80% { opacity: .95; scale: 1; rotate: 45deg; } 90% { opacity: 0; scale: .6; rotate: 90deg; } }
@media (prefers-reduced-motion: reduce) { .glint { opacity: .55; } }
