@font-face {
  font-family: Figtree;
  src: url("assets/Figtree-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: Cal;
  src: url("assets/CalSansVF.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f5f5f5;
  --ink: #111;
  --muted: #373737;
  --soft: #7c7c7c;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --stage-font: clamp(36px, 4vw, 56px);
}
* { box-sizing: border-box; }
html, body { min-width: 320px; margin: 0; min-height: 100%; background: var(--paper); }
body {
  color: var(--ink);
  font-family: Figtree, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; font: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
::selection { color: #fff; background: #111; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 38px 48px 26px;
  overflow: hidden;
  background: var(--paper);
}
.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.site-shell::before {
  z-index: 0;
  inset: 0;
  background: var(--paper);
  opacity: .94;

}
.site-shell::after {
  z-index: 1;
  background: rgba(255, 255, 255, .20);
}
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .94; }
.liquid[hidden] { display: none; }
.header, .footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -1px;
}
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 12px 0 12px 18px;
  font-size: 13px;
}
.menu-symbol { display: flex; flex-direction: column; gap: 4px; width: 17px; }
.menu-symbol i {
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform .6s var(--ease), width .6s var(--ease);
}
.menu-symbol i:last-child { width: 11px; align-self: flex-end; }
.menu-toggle:hover i:last-child { width: 17px; }
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child {
  width: 17px;
  transform: translateY(-2.5px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  outline: none;
}
.experience {
  position: relative;
  width: min(740px, 100%);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8px auto 32px;
}
.stage { position: relative; width: 100%; height: 315px; margin-top: 18px; }
.words {
  position: absolute;
  inset: 0;
  font-family: Cal, Figtree, sans-serif;
  font-size: var(--stage-font);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.word {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  white-space: nowrap;
  transform-origin: center center;
  will-change: transform, opacity;
}
.word.accent { color: var(--ink); }
.word.emphasis { font-family: Georgia, serif; font-style: italic; letter-spacing: -.065em; }
.word.measure { visibility: hidden; transform: none !important; }
.afterword {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 112px;
  margin-top: 14px;
  padding: 0 20px;
  gap: 16px;
  text-align: center;
  transition: opacity .35s, transform .6s var(--ease);
}
.afterword p {
  max-width: 360px;
  min-height: 22px;
  margin: 0;
  color: #292929;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .015em;
  text-wrap: balance;
}
.continue {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 44px;
  padding: 11px 14px 11px 18px;
  border: 1px solid rgba(48, 61, 67, .24);
  border-radius: 14px;
  background: rgba(248, 249, 249, .94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 1px rgba(44,59,67,.12), 0 3px 9px rgba(35,48,56,.08);
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  font-size: 12px;
  line-height: 18px;
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .continue {
    background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(238,243,245,.53));
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
    backdrop-filter: blur(8px) saturate(1.08);
  }
}
.continue::before {
  content: "";
  position: absolute;
  inset: 1px 12px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  pointer-events: none;
}
.continue:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(44,59,67,.15), 0 5px 13px rgba(35,48,56,.12); }
.continue:active { transform: translateY(1px); background: rgba(239,244,246,.85); }
.arrow {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transform: translate(-1px, 1px);
  transition: transform .45s var(--ease);
}
.continue:hover .arrow,
.continue:focus-visible .arrow { transform: translate(-1px, -1px); }

.footer { min-height: 40px; }
.page-nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}
.page-nav a { display: grid; place-items: center; width: 30px; height: 34px; }
.page-nav span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #777;
  transition: height .5s var(--ease), width .5s var(--ease), background .4s;
}
.page-nav a[aria-current="page"] span { width: 18px; height: 4px; border-radius: 3px; background: var(--ink); }
.menu {
  position: fixed;
  inset: 0;
  padding: max(92px, env(safe-area-inset-top)) 24px max(92px, env(safe-area-inset-bottom));
  align-items: center;
  overflow-y: auto;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu:not([hidden]) { display: flex; }
.menu-pages { width: max-content; max-width: 100%; }
.menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(24px) rotate(2deg);
  animation: menu-in .85s var(--ease) forwards;
}
.menu a:nth-child(2) { animation-delay: 70ms; }
.menu-pages > a:nth-child(3) { animation-delay: 140ms; }
.menu-word {
  font-family: Cal, Figtree, sans-serif;
  font-size: 43px;
  line-height: 1.05;
  letter-spacing: -.04em;
  transition: transform .6s var(--ease), color .4s;
}
.menu-pages > a:hover .menu-word,
.menu-pages > a:focus-visible .menu-word { transform: translateX(8px); }
.menu-account {
  display: flex;
  justify-content: center;
  gap: 28px;
  width: min(380px, 100%);
  margin: 18px auto 0;
  padding: 15px 18px 0;
  border-top: 1px solid rgba(17, 17, 17, .22);
}
.menu-account[hidden] { display: none !important; }
.menu-account a {
  padding: 6px 0;
  font-family: Figtree, Arial, sans-serif;
  font-size: 12px;
  opacity: 1;
  transform: none;
  animation: none;
  transition: opacity .25s ease;
}
.menu-account a:hover,
.menu-account a:focus-visible { opacity: .62; }
.menu-open .afterword { opacity: 0; pointer-events: none; }
.menu-open .afterword { transform: translateY(12px); }
@keyframes menu-in { to { opacity: 1; transform: translateY(0) rotate(0); } }

.no-script {
  position: fixed;
  inset: 25% 10%;
  z-index: 15;
  max-width: 700px;
  margin: auto;
  padding: 50px;
  background: var(--paper);
  line-height: 1.7;
}
@media (min-width: 1500px) {
  .site-shell { padding: 44px 64px 30px; }
  .experience { margin-bottom: 42px; }
}
@media (max-width: 650px) {
  :root { --stage-font: clamp(32px, 8.2vw, 46px); }
  .site-shell { padding: 22px 24px 20px; }
.site-shell::after { background: rgba(255, 255, 255, .20); }
  .wordmark { font-size: 20px; }
  .menu-toggle { font-size: 12px; }
  .menu-symbol { width: 15px; }
  .menu-symbol i { width: 15px; }
  main { min-height: 500px; }
  .experience { min-height: 410px; margin: 0 auto 28px; }
  .stage { height: 280px; margin-top: 20px; }
  .afterword { margin-top: 8px; padding: 0 10px; gap: 13px; }
  .afterword p { max-width: 280px; font-size: 12px; }
  .menu { padding-inline: 18px; }
  .menu-word { font-size: 36px; }
  .menu-pages > a { gap: 22px; padding: 17px 10px; }
  .menu-account { gap: 22px; padding-inline: 10px; }
}
@media (max-width: 360px) {
  .site-shell { padding-right: 18px; padding-left: 18px; }
  :root { --stage-font: 31px; }
  .menu-word { font-size: 31px; }
}
@media (max-height: 650px) and (min-width: 651px) {
  .site-shell { padding-top: 20px; padding-bottom: 12px; }
  main { min-height: 390px; }
  .experience { min-height: 350px; margin: 0; }
  .stage { height: 250px; }
  .afterword { min-height: 80px; margin-top: 5px; gap: 5px; }
  :root { --stage-font: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .menu a { opacity: 1; transform: none; }
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #080e16; --ink: #edf2f5; --muted: #bdc8d2; --soft: #8595a6; color-scheme: dark; }
  .site-shell::after { background: rgba(1,5,10,.12); }
  .afterword p { color: #d3dce4; }
  .continue { border-color: rgba(180,207,226,.32); background: #172330;
    box-shadow: inset 0 1px 0 rgba(227,244,255,.32), inset 0 -1px 1px rgba(0,0,0,.65), 0 3px 12px rgba(0,0,0,.25); }
  @supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .continue { background: linear-gradient(145deg,rgba(46,65,83,.78),rgba(16,29,42,.82)); }
  }
  .continue::before { background: linear-gradient(90deg,transparent,rgba(225,243,255,.6),transparent); }
  .continue:hover { box-shadow: inset 0 1px 0 rgba(227,244,255,.55), inset 0 -1px 1px #000, 0 5px 15px rgba(0,0,0,.4); }
  .continue:active { background: #101d29; }
  .menu-account { border-color: rgba(220,236,248,.24); }
  .page-nav span { background: #8797a8; }
  ::selection { color: #080e16; background: #edf2f5; }
}

/* Contact delivery remains disabled until server configuration and verification succeed. */
.contact-form[hidden] { display: none; }
.contact-form { width: min(420px, 100%); display: grid; gap: 14px; text-align: left; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 7px; font-size: 12px; line-height: 1.4; }
.contact-form label small { color: var(--muted); font: inherit; }
.contact-form input, .contact-form textarea {
  width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--soft);
  border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit;
  font-size: 14px; line-height: 1.5;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form :is(input,textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form #contact-availability { width: 100%; justify-self: center; font-size: 12px; min-height: 0; color: var(--muted); text-align: center; }
.contact-form button { width: 100%; min-height: 44px; justify-content: center; justify-self: stretch; }
.contact-form button:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.experience[data-route="contact"] .stage { height: 220px; }
.experience[data-route="contact"] .afterword {
  width: min(460px, 100%); align-items: stretch;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.experience[data-route="contact"] #description { align-self: center; }
.experience[data-route="contact"] #continue {
  width: 100%; min-height: 44px; justify-content: center;
  background: transparent; border-color: transparent; box-shadow: none;
}
.experience[data-route="contact"] #continue::before { display: none; }
.experience[data-route="contact"] #continue:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (max-width: 650px) {
  .contact-fields { grid-template-columns: 1fr; }
  .experience[data-route="contact"] .stage { height: 200px; }
}
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .contact-privacy { font-size: 11px; color: var(--muted); min-height: 0; text-align: left; }
#contact-verification { width: 100%; min-width: 0; display: flex; justify-content: center; }

.contact-privacy summary { width: max-content; min-height: 32px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.contact-privacy summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form .contact-privacy p { margin: 6px 0 0; font-size: 11px; text-align: left; color: var(--muted); min-height: 0; }

@media (max-width: 650px) {
  .experience[data-route="contact"] .afterword { width: min(420px, calc(100vw - 20px)); max-width: none; padding-inline: 0; }
}
/* Let the grid/flex track shrink independently of the 300px verification panel. */
main, .experience { min-width: 0; }
