/* jmco.app: a page over a living city. The text adapts to the sky (body.sky-light by day);
   everything that needs reading sits on paper. */
:root {
  --ink: #f4f1ea; --soft: rgba(244,241,234,.8); --faint: rgba(244,241,234,.6); --line: rgba(244,241,234,.22); --chip: rgba(10,14,24,.42);
  --paper: #f6f3ec; --paper-2: #fffdf8; --paper-ink: #17181c; --paper-soft: #4b4f58; --paper-line: #e4ded1;
  --accent: #c8862e; --accent-ink: #8a5a14; --night: #0a0d18;
  --serif: Fraunces, Georgia, serif; --sans: Inter, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 64px);
}
body.sky-light { --ink: #12161f; --soft: rgba(18,22,31,.76); --faint: rgba(18,22,31,.6); --line: rgba(18,22,31,.2); --chip: rgba(255,255,255,.5); }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--night); scroll-behavior: smooth; }
body { overflow-x: hidden; font-family: var(--sans); color: var(--ink); transition: color .8s; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
canvas#city { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; object-fit: cover; object-position: 55% 62%; image-rendering: pixelated; z-index: 0; }
.page { position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The top bar */
nav.top { display: flex; justify-content: space-between; align-items: center; padding: 24px var(--pad); }
.mark { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; }
.mark small { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-left: 10px; font-weight: 400; }
nav.top ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav.top a { color: var(--soft); text-decoration: none; font-size: 14px; }
nav.top a:hover { color: var(--ink); }
nav.top a.cta { color: var(--ink); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }

/* The hero, over the city */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0 var(--pad); }
.hero .copy { margin-top: 11vh; max-width: 600px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -.03em; margin-bottom: 26px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--soft); max-width: 520px; margin-bottom: 34px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font-size: 14px; font-weight: 500; padding: 14px 24px; border-radius: 999px; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--ink); color: #111; }
body.sky-light .btn.primary { color: #fff; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.caption { margin-top: auto; margin-bottom: 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.chip { background: var(--chip); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
button.chip { cursor: pointer; font: inherit; overflow: visible; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; flex: none; }
.dot.off { background: #9aa0a6; box-shadow: none; }
.year { font-family: var(--serif); font-size: 15px; letter-spacing: 0; }

/* Sections on paper, with windows between them where the city shows */
.window { height: 58vh; }
.window.short { height: 30vh; }
.panel { background: var(--paper); color: var(--paper-ink); padding: clamp(56px, 8vw, 104px) var(--pad); border-radius: 24px 24px 0 0; }
.panel + .panel { border-radius: 0; border-top: 1px solid var(--paper-line); }
.panel.last { border-radius: 0 0 24px 24px; }
.inner { max-width: 1160px; margin: 0 auto; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.panel h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.02em; line-height: 1.04; margin-bottom: 18px; max-width: 820px; }
.panel p.sub { color: var(--paper-soft); font-size: 18px; line-height: 1.65; max-width: 640px; margin-bottom: 48px; }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }
.work .group { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-soft);
               padding: 14px 0 0; border-top: 1px solid var(--paper-line); margin-top: 10px; }
.work .group:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.card p.offer-line { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--accent-ink); background: rgba(0,0,0,.025); color: var(--paper-ink); font-size: 14.5px; }
.card { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 16px; padding: 26px 26px 22px; display: flex; flex-direction: column; }
.card.feature { grid-column: span 2; }
@media (max-width: 760px) { .card.feature { grid-column: auto; } }
.card img.shot { width: calc(100% + 52px); height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; margin: -26px -26px 18px; border-radius: 16px 16px 0 0; border-bottom: 1px solid var(--paper-line); display: block; }
.card .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { color: var(--paper-soft); font-size: 15px; line-height: 1.62; }
.card .facts { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-family: var(--mono); font-size: 11px; color: #6b6f78; }
.card .facts a { color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.card .facts a:hover { text-decoration: underline; }

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; }
.offer .n { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); margin-bottom: 14px; }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 4px; }
.offer .tag { font-size: 14px; color: #6b6f78; margin-bottom: 14px; }
.offer p { color: var(--paper-soft); font-size: 15.5px; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
.step { padding: 26px 22px 6px 0; border-right: 1px solid var(--paper-line); }
.step:last-child { border-right: 0; }
.step + .step { padding-left: 22px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--paper-soft); font-size: 14.5px; line-height: 1.62; }
@media (max-width: 900px) { .step, .step + .step { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--paper-line); padding-bottom: 20px; } }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.about p { color: var(--paper-soft); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.about dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; color: var(--paper-soft); }
.about dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a8e96; padding-top: 3px; }
.links { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.links a { color: var(--accent-ink); font-weight: 500; text-decoration: none; font-size: 15px; }
.links a:hover { text-decoration: underline; }

/* The city section: the page steps aside */
.city-panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; color: #eef0f6; padding: clamp(40px, 6vw, 72px) var(--pad);
  background: linear-gradient(180deg, rgba(8,10,18,.72) 0%, rgba(8,10,18,.45) 34%, rgba(8,10,18,0) 52%); }
.city-panel .inner { width: 100%; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.city-panel h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.02em; margin-bottom: 14px; }
.city-panel p { color: rgba(238,240,246,.82); font-size: 16.5px; line-height: 1.65; max-width: 680px; margin-bottom: 14px; }
.city-panel .tries { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.city-panel .tries button { font: 500 13px var(--sans); color: #eef0f6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.city-panel .tries button:hover, .city-panel .tries button[aria-pressed="true"] { background: rgba(255,255,255,.2); }
.city-panel .src { font-family: var(--mono); font-size: 11px; color: rgba(238,240,246,.6); line-height: 1.7; margin-top: 18px; }

.contact h2 { margin-bottom: 14px; }
.contact .mail { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); color: var(--paper-ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
footer { color: rgba(238,240,246,.7); padding: 28px var(--pad) 40px; font-size: 13px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: rgba(8,10,18,.7); }
footer a { color: rgba(238,240,246,.85); }

@media (max-width: 720px) {
  nav.top { padding: 18px 20px; }
  nav.top ul li:not(:last-child), .mark small { display: none; }
  nav.top a.cta { font-size: 13px; padding: 7px 12px; }
  .hero .copy { margin-top: 5vh; }
  .lead { font-size: 16px; }
  .caption .chip.wide { display: none; }
  .window { height: 34vh; }
  .city-panel { background: linear-gradient(180deg, rgba(8,10,18,.8) 0%, rgba(8,10,18,.55) 45%, rgba(8,10,18,0) 62%); }
  .city-panel p { font-size: 15px; }
  .city-panel p.more, .city-panel .src { display: none; }
  .city-panel .tries { gap: 8px; margin-top: 16px; }
  .city-panel .tries button { padding: 8px 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The flight card: tap a plane in the city (js/flight-card.js) */
.flight { position: fixed; z-index: 20; width: 320px; background: var(--paper-2); color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: 14px; }
.flight.sheet { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; }
.flight .fl-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--paper-soft); cursor: pointer; padding: 4px 8px; }
.fl-head b { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.01em; display: block; padding-right: 28px; }
.fl-head small, .fl-end small, .fl-note, .fl-photo small { color: var(--paper-soft); font-size: 12px; }
.fl-head small { font-family: var(--mono); letter-spacing: .04em; }
.fl-route { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 14px 0 6px; }
.fl-end b { font-family: var(--mono); font-size: 20px; font-weight: 500; display: block; }
.fl-end:last-child { text-align: right; }
.fl-end small { display: block; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-bar { position: relative; height: 3px; background: var(--paper-line); border-radius: 2px; }
.fl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.fl-bar span { position: absolute; top: 50%; transform: translate(-50%, -54%); color: var(--accent-ink); font-size: 15px; }
.fl-bar.off i, .fl-bar.off span { display: none; }
.fl-eta { margin: 4px 0 10px; color: var(--paper-ink); }
.fl-eta.muted { color: var(--paper-soft); font-size: 13px; }
.fl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--paper-line); }
.fl-facts div:first-child { grid-column: 1 / -1; }
.fl-facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-soft); }
.fl-facts dd { margin-top: 2px; }
.fl-photo { display: block; text-decoration: none; margin-bottom: 8px; }
.fl-photo img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; background: var(--paper-line); }
.fl-note { display: block; line-height: 1.45; }
.fl-note a { color: var(--accent-ink); }
@media (max-width: 639px) { .flight .fl-photo img { height: 96px; } .flight .fl-facts { gap: 6px 14px; } }

/* Booking a call, in the contact section (js/book.js) */
.book { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--paper-line); max-width: 720px; }
.book h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; margin-bottom: 8px; }
.book .b-where { color: var(--paper-soft); line-height: 1.55; margin-bottom: 18px; }
.b-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.b-day { flex: none; min-width: 64px; padding: 9px 10px; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--paper-2); color: var(--paper-ink); font: inherit; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.b-day b { font-weight: 600; font-size: 13px; } .b-day span { font-size: 12px; color: var(--paper-soft); }
.b-day.on, .b-time.on { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper-2); }
.b-day.on span { color: var(--paper-line); }
.b-times { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.b-time { padding: 9px 14px; border: 1px solid var(--paper-line); border-radius: 999px; background: var(--paper-2); color: var(--paper-ink); font: inherit; font-size: 14px; cursor: pointer; }
.b-day:hover, .b-time:hover { border-color: var(--accent); }
.b-form { display: grid; gap: 12px; margin-top: 18px; max-width: 520px; }
.b-form label { display: grid; gap: 6px; font-size: 14px; color: var(--paper-ink); font-weight: 500; }
.b-form label small { color: var(--paper-soft); font-weight: 400; }
.b-form input, .b-form textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper-2); color: var(--paper-ink); }
.b-form input:focus, .b-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.b-picked { font-weight: 600; }
.b-cf:empty { display: none; }
.b-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b-go { justify-self: start; border: 0; cursor: pointer; background: var(--paper-ink); color: var(--paper-2); }
.b-go:disabled { opacity: .6; }
.b-msg { color: var(--accent-ink); font-size: 14px; margin-top: 8px; }
.book .btn.ghost { border-color: var(--paper-line); color: var(--paper-ink); background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; margin: 0 8px 8px 0; }

/* The first visit's intro (index.html's head sets html.intro-on; js/site.js runs it): the city full screen,
   a live greeting and one button; the page comes in when it's pressed or scrolled. The page-level switch
   has its own name: html.intro would also match .intro below and hide the whole page. */
.intro { display: none; }
html.intro-on .intro { display: block; margin-top: 7vh; max-width: 660px; animation: intro-in 1.2s ease both .3s; }
html.intro-on .hero .copy, html.intro-on .caption, html.intro-on .page > :not(.hero) { display: none; }
html.intro-on body { overflow: hidden; }
.intro-hello { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 20px; }
.intro-now { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--soft); max-width: 560px; margin-bottom: 26px; min-height: 3.2em; }
.intro .buttons { align-items: center; }
.intro .btn { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; }
.intro-hint { font-size: 13px; color: var(--faint); margin-left: 6px; }
.hero .copy.arrive { animation: intro-in .7s ease both; }
@keyframes intro-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.intro-on .intro, .hero .copy.arrive { animation: none; } }
@media (max-width: 700px) { html.intro-on .intro { margin-top: 9vh; } .intro-hint { display: block; margin: 12px 0 0; } }
@media (min-width: 701px) and (max-height: 780px) { html.intro-on .intro { margin-top: 3vh; } .intro-hello { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 14px; } .intro-now { margin-bottom: 18px; } }
