/* Tiramisu website. White and near-black bands, outlined square controls, one orange accent (dots and underline only). */
:root {
  --bg: #fff; --text: #161616; --muted: #575757; --border: #161616; --fill: #161616; --on-fill: #fff;
  --danger: #b3261e; --success: #1b6b3a; --accent: #e8500e;
  --mono: Outfit, "Helvetica Neue", Arial, sans-serif; --sans: Outfit, "Helvetica Neue", Arial, sans-serif;
}
/* Outfit (SIL Open Font License, see fonts/OFL.txt), served from this site. */
@font-face { font-family: Outfit; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Outfit_400Regular.ttf") format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Outfit_500Medium.ttf") format("truetype"); }
@font-face { font-family: Outfit; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Outfit_700Bold.ttf") format("truetype"); }
@font-face { font-family: Outfit; font-weight: 800 900; font-style: normal; font-display: swap; src: url("fonts/Outfit_800ExtraBold.ttf") format("truetype"); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--mono); overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fill); color: var(--on-fill); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1.5px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { font: 800 18px var(--sans); letter-spacing: 4px; text-decoration: none; text-transform: uppercase; display: inline-flex; min-height: 48px; align-items: center; }
.logo span { color: var(--accent); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
nav.main a { display: inline-flex; min-height: 48px; align-items: center; font: 800 12px var(--sans); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-btn { display: none; min-height: 48px; min-width: 48px; border: 1.5px solid var(--border); background: transparent; color: var(--text); font: 800 12px var(--sans); letter-spacing: 2px; text-transform: uppercase; padding: 0 16px; cursor: pointer; }

/* Menu: works without JavaScript (links just wrap). With JavaScript on a phone it collapses behind a button. */
@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1.5px solid var(--border); padding: 8px 16px 16px; }
  .js nav.main.open { display: block; }
  .js nav.main ul { flex-direction: column; }
  header.site .bar { flex-wrap: wrap; }
  html:not(.js) nav.main { width: 100%; }
}

section.band { padding: 48px 0; }
.light { background: #fff; color: #161616; --muted: #575757; --border: #161616; --fill: #161616; --on-fill: #fff; }
.dark { background: #1a1a1a; color: #fff; --muted: #bdbdbd; --border: #fff; --fill: #fff; --on-fill: #1a1a1a; --text: #fff; }
.band .grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.band .art { max-width: 260px; margin: 0 auto; width: 100%; }
@media (min-width: 761px) {
  .band .grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .band.flip .art { order: 2; }
  .band .art { max-width: 320px; }
}
h1, h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 3px; font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(22px, 6vw, 36px); }
h2 { font-size: clamp(18px, 4.5vw, 24px); }
h3 { font: 800 14px var(--sans); letter-spacing: 2px; text-transform: uppercase; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; border: 1.5px solid var(--border); background: var(--fill); color: var(--on-fill); font: 800 12px var(--sans); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; max-width: 100%; }
.btn.secondary { background: transparent; color: var(--text); }
.btn:hover { opacity: .85; }
.note { border: 1.5px solid var(--border); padding: 12px 16px; margin: 0 0 24px; }

/* Contact form and its messages */
form { display: grid; gap: 16px; max-width: 560px; }
label { font: 800 12px var(--sans); letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 4px; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--border); background: transparent; color: var(--text); font: 15px var(--mono); border-radius: 0; }
textarea { min-height: 120px; resize: vertical; }
.msg { padding: 12px 16px; border: 1.5px solid var(--border); border-left-width: 8px; margin: 0; }
.msg[hidden] { display: none; }
.msg.ok { border-color: var(--success); }
.msg.err { border-color: var(--danger); }
.dark .msg.ok { border-color: #7bd99a; }
.dark .msg.err { border-color: #ff8a80; }
.field-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.dark .field-error { color: #ff8a80; }

/* Policy pages */
.doc { padding: 40px 16px 64px; max-width: 760px; }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }

footer.site { border-top: 1.5px solid #fff; background: #1a1a1a; color: #fff; padding: 40px 0; --muted: #bdbdbd; }
footer.site ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
footer.site a { display: inline-flex; min-height: 48px; align-items: center; }
footer.site .logo { color: #fff; }
.err404 { padding: 64px 0; text-align: center; }
.err404 .art { margin: 0 auto 24px; max-width: 220px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Motion. Everything below is extra: the page is complete without it, and it stays still for reduced motion. ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero { position: relative; overflow: hidden; padding: 32px 0 96px; }
.hero .grid { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: clamp(28px, 7vw, 48px); }
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > span { display: inline-block; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; fill: #f5f3f0; }

.scene { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; pointer-events: none; }
.floater { position: absolute; }
.floater img { width: 100%; }
.main-art { width: 64%; left: 18%; top: 18%; z-index: 1; }
.hat { width: 27%; left: 2%; top: 3%; }
.tray { width: 30%; right: 1%; top: 7%; }
.table { width: 32%; left: 3%; bottom: 1%; z-index: 2; }
.card-a { width: 38%; right: 2%; bottom: 8%; }
.card-b { width: 30%; left: 30%; top: 1%; opacity: .6; }
.ghost { display: grid; gap: 8px; padding: 12px; border: 1.5px solid #cfcac4; background: #fff; }
.ghost i { display: block; height: 6px; background: #e4e0db; }
.ghost i:first-child { width: 60%; background: #bdb7b0; }
.ghost i:last-child { width: 40%; background: var(--accent); opacity: .7; }

.jobs { background: #f5f3f0; padding: 32px 0 56px; }
.job-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.job-list li { display: flex; }
.job { display: flex; flex-direction: column; width: 100%; padding: 20px; border: 1.5px solid var(--border); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.job h3 { margin-top: 8px; }
.tag { font: 800 11px var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0; }
.pay { font: 800 22px var(--sans); margin-top: auto; }
.pay small { font: 13px var(--mono); color: var(--muted); }
.apply { display: none; position: relative; overflow: hidden; }
.js .apply { display: inline-flex; }
.apply[data-state] { cursor: default; opacity: 1; }
.apply[data-state="sending"]::before { content: ""; width: 12px; height: 12px; margin-right: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.apply[data-state="done"] { background: var(--success); border-color: var(--success); color: #fff; }
.apply-note { font-size: 13px; color: var(--muted); margin: 0; }
.apply-note:not(:empty) { margin-top: 12px; }
.btn { transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background-color .3s ease; }
@media (hover: hover) {
  .job:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(22, 22, 22, .12); }
  .btn:not([data-state]):hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
}
.btn:not([data-state]):active { transform: translateY(0); box-shadow: none; }

@media (min-width: 761px) {
  .hero { padding: 56px 0 112px; }
  .hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .wave { height: 80px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .word > span { animation: word-up .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .14s + .1s); }
  .rise { animation: rise .7s ease both; animation-delay: calc(var(--i) * .15s + .4s); }
  .enter { animation: pop-in .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--delay); }
  .float { animation: float 7s ease-in-out infinite alternate; animation-delay: var(--delay); }
  .hat .float { animation-duration: 8.5s; }
  .tray .float { animation-duration: 6.5s; animation-direction: alternate-reverse; }
  .table .float { animation-duration: 9.5s; }
  .card-a .float { animation-duration: 11s; animation-direction: alternate-reverse; }
  .card-b .float { animation-duration: 10s; }
  .hero.away .word > span, .hero.away .rise, .hero.away .enter { animation: none; }
  .band .art { animation: float 9s ease-in-out infinite alternate; }

  /* Scroll reveals. site.js adds .motion and then .in, so nothing is ever hidden without JavaScript. */
  .motion [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * .12s); }
  .motion [data-reveal="art"] { translate: 0 16px; scale: .92; }
  .motion [data-reveal].in, .motion [data-reveal]:focus-within { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes word-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(-5px) rotate(-1deg); } to { transform: translateY(5px) rotate(1deg); } }

/* Pricing page */
.pricing { padding: 40px 16px 64px; }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; padding: 0; list-style: none; }
@media (min-width: 761px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { border: 1.5px solid var(--border); padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.plan h2 { font-size: 16px; margin: 0; }
.plan .price { font: 800 28px var(--sans); margin: 0; }
.plan .price small { font: 12px var(--mono); color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; }
.plan li { margin-bottom: 6px; }
.soon { font: 800 10px var(--sans); letter-spacing: 1.5px; text-transform: uppercase; border: 1.5px solid var(--accent); color: var(--accent); padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.pricing table { border-collapse: collapse; width: 100%; margin: 16px 0 24px; }
.pricing th, .pricing td { border: 1.5px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.pricing .scroll { overflow-x: auto; }
