/* JaegerSloan Studio, styled like the Reset guide (catskills.reset.club, ~/porto-reset-club public/city/guide.css):
   dark ink page, 18px bold wordmark and menu icon, a bone menu with 3px and 1px rules.
   Exception agreed with Doug: the wordmark is mixed case (JaegerSloan Studio), not caps. */
@font-face {
  font-family: Inter;
  src: url('./fonts/inter-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #14140f;   /* guide ink: page bg, menu type and rules */
  --bone: #f4f1ea;  /* guide bone: page type and marks, menu bg */
  --g: clamp(20px, 4.6875vw, 48px); /* guide margin, grows to 48px at 1024px */
  --ease: 0.15s ease;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; overflow: hidden; background: var(--ink); color: var(--bone); font-family: Inter, system-ui, sans-serif; font-size: 18px; line-height: 1.5; font-weight: 500; }
button, input, textarea { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
h1:focus, h2:focus, h3:focus { outline: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; }
#world:focus-visible { outline: 0; }

/* Header: the guide's header.top, wordmark at the guide's .nav-logo size */
body > header { position: fixed; top: 0; left: 0; right: 0; max-width: 1200px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) var(--g) 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.brand { pointer-events: auto; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
/* The burger and both close buttons share one corner: icons 20px from the top and right of the screen. */
#aboutButton, #close, #drawerClose { position: fixed; top: max(6px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right)); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; }
#aboutButton { pointer-events: auto; }
/* The city's buildings are bone: the wordmark, menu and pause invert against what is behind them,
   bone over ink and dark over bone, so they stay readable over the ride. */
body > header, body > footer { mix-blend-mode: difference; }

/* Ride controls: circular icon buttons are the one rounded exception (Reset see/space). */
body > footer { position: fixed; top: max(6px, env(safe-area-inset-top)); right: calc(max(6px, env(safe-area-inset-right)) + 44px); }
body > footer { display: flex; }
#talk, #pause { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; font-size: 16px; }
#pause .i-play { display: none; }
#pause[aria-pressed="true"] .i-pause { display: none; }
#pause[aria-pressed="true"] .i-play { display: block; }
#touch { display: none; position: fixed; bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--consent, 0px)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); justify-content: center; gap: 16px; }
#left { margin-right: auto; }
#right { margin-left: auto; }
#touch button { width: 48px; height: 48px; border: 2px solid var(--bone); border-radius: 50%; background: var(--ink); font-size: 20px; font-weight: 700; touch-action: none; user-select: none; transition: background-color var(--ease), color var(--ease); }
#touch, #touch button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#touch.tilting #left, #touch.tilting #right { display: none; }
#tilt[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
#tilt svg { display: block; margin: auto; }
#touch button:active { background: var(--bone); color: var(--ink); }
#notice { position: fixed; bottom: 96px; left: var(--g); right: var(--g); text-align: center; }

/* Studio menu: bone like the guide's menu, Reset type scale and rules inside */
#about { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 76px var(--g) 64px; border: 0; color: var(--ink); background: var(--bone); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); box-shadow: -2px 0 0 var(--ink); transition: transform .28s cubic-bezier(0.2, 0.7, 0.2, 1), display .28s allow-discrete, overlay .28s allow-discrete; }
#about[open] { transform: none; }
#about:focus-visible { outline: 0; }
@starting-style { #about[open] { transform: translateX(100%); } }
#about::backdrop { background: transparent; }
#close { background: var(--bone); z-index: 2; }
.studio-content { max-width: calc(1200px - 2 * var(--g)); margin: auto; }
.studio-nav { border-top: 3px solid var(--ink); margin: 0 0 64px; max-width: 480px; }
@media (min-width: 768px) { .studio-nav { display: none; } }
.studio-nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ink); font-size: 24px; font-weight: 700; text-decoration: none; }
.studio-nav a svg { flex: none; transition: transform var(--ease); }
@media (hover: hover) { .studio-nav a:hover svg { transform: translateX(4px); } }
h1, h2, h3, p { margin-top: 0; }
/* About, from Doug's About Us layout (2026-11-03): title, studio name over a 3px rule,
   24px lead on the left, partners and selected clients in 15px on the right. */
#about h1, #about .contact h2 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 48px; scroll-margin-top: 76px; }
#about .contact h2 { margin-bottom: 16px; }
@media (min-width: 900px) { #about h1 { margin-bottom: 64px; } }
.studio-name { font-size: 28px; line-height: 1.15; font-weight: 700; margin: 0; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-top: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; margin-top: 48px; } }
.about-lead p { font-size: 24px; line-height: 1.4; margin-bottom: 32px; text-wrap: pretty; }
.about-lead p:last-child { margin-bottom: 0; }
.about-side { font-size: 15px; line-height: 1.4; }
.about-side h3 { font-size: 15px; line-height: 1.4; font-weight: 700; margin: 0; scroll-margin-top: 76px; }
.partners { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .partners { grid-template-columns: 1fr 1fr; } }
.partners .role { margin-bottom: 16px; }
.partners p:not(.role) { margin: 0; text-wrap: pretty; }
.partner-contact { display: inline-block; margin-top: 8px; padding: 8px 0; background: none; border: 0; color: inherit; font-size: 16px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.clients { margin-top: 64px; }
.client-list { list-style: none; padding: 0; margin: 16px 0; }
.client-list li { display: inline; }
.client-list li:not(:last-child)::after { content: "\00a0\2022"; }
.clients p { margin: 0; text-wrap: pretty; }
.more { margin-top: 96px; border-top: 3px solid var(--ink); padding-top: 24px; }
.own h2 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 24px; }
.own p { max-width: 720px; margin: 0 0 24px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; }
.own-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin: 0 0 64px; padding: 24px; list-style: none; background: var(--ink); color: var(--bone); }
.stats strong { display: block; margin-bottom: 8px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.stats span { display: block; font-size: clamp(13px, 1.6vw, 16px); line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--ink); padding-top: 16px; }
.more-grid h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.more-grid p, .more-grid ul { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.45; }
#portfolioButton { margin-top: 12px; padding: 0; border: 0; background: none; color: inherit; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 767px) { .more-grid { grid-template-columns: 1fr; } }
.contact { margin-top: 96px; border-top: 3px solid var(--ink); padding-top: 24px; }
.contact > p { max-width: 480px; margin-bottom: 32px; }

/* Footer: the Reset Club v2 footer (brand.reset.club/footer/v2), in the studio ink. */
.rc-foot { margin-top: 96px; padding: 0 0 20px; color: var(--ink); }
.page-foot { margin-top: 48px; }
.rc-foot__bar { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; cursor: pointer; }
.rc-foot__bar::-webkit-details-marker { display: none; }
.rc-foot__brand { font-size: 14px; font-weight: 700; letter-spacing: 0.28px; text-transform: uppercase; text-decoration: none; }
.rc-foot__more .i-minus, .rc-foot__more[open] .i-plus { display: none; }
.rc-foot__more[open] .i-minus { display: block; }
.rc-foot__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.55px; text-transform: uppercase; }
.rc-foot__links a { text-decoration: none; }
@media (hover: hover) { .rc-foot__links a:hover { text-decoration: underline; } }
#cookieSettings { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
@media (hover: hover) { #cookieSettings:hover { text-decoration: underline; } }
.rc-foot__rule { height: 3px; background: var(--ink); }
.rc-foot__copy { padding: 12px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.55px; text-transform: uppercase; }

/* Language switcher: the Vito Loft design, in the same spot as pause. Sits beside the menu close. */
.lang { position: fixed; top: max(6px, env(safe-area-inset-top)); right: calc(max(6px, env(safe-area-inset-right)) + 44px); z-index: 2; background: var(--bone); }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px; font-size: 16px; font-weight: 700; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 0; list-style: none; background: var(--bone); border: 1px solid var(--ink); min-width: 160px; }
.lang li + li { border-top: 1px solid var(--ink); }
.lang button { display: block; width: 100%; padding: 10px 14px; background: none; border: 0; color: var(--ink); font-size: 16px; font-weight: 500; text-align: left; }
.lang button[aria-current] { font-weight: 700; }
@media (hover: hover) { .lang button:hover { background: var(--ink); color: var(--bone); } }
/* Inter has no Japanese or Chinese, so these use the system's own type, set without negative tracking. */
html:lang(ja) #about, html:lang(ja) #drawer { font-family: Inter, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
html:lang(zh) #about, html:lang(zh) #drawer { font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(ja) #about h1, html:lang(ja) #about h2, html:lang(zh) #about h1, html:lang(zh) #about h2 { letter-spacing: 0; }

/* Contact drawer: the Reset booking drawer (agent-booking panel). Two colours, --c paper and --c-ink type.
   Labels 12.8px/700 caps at 0.02em, 2px underline fields that brighten on focus, 3px opens the footer. */
#writeButton { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 360px; min-height: 56px; padding: 0 16px; background: var(--ink); color: var(--bone); border: 2px solid var(--ink); border-radius: 0; font-weight: 700; }
#drawer { --c: var(--ink); --c-ink: var(--bone); position: fixed; inset: 0 0 0 auto; width: 33.333%; min-width: 360px; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0 20px; border: 0; border-left: 2px solid var(--c-ink); background: var(--c); color: var(--c-ink); font-size: 16px; line-height: 1.5; transform: translateX(100%); transition: transform .28s cubic-bezier(0.2, 0.7, 0.2, 1), display .28s allow-discrete, overlay .28s allow-discrete; }
#consent:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px var(--g) max(12px, env(safe-area-inset-bottom)); background: var(--bone); color: var(--ink); font-size: 14px; line-height: 1.35; }
@media (pointer: coarse), (max-width: 767px) { #consent:not([hidden]) { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 12px 16px; border: 2px solid var(--ink); } }
#consent p { flex: 1 1 280px; margin: 0; }
#consent div { display: flex; align-items: center; gap: 20px; }
#consentAccept { min-height: 44px; min-width: 104px; padding: 8px 16px; border: 0; border-radius: 0; background: var(--ink); color: var(--bone); font-weight: 700; cursor: pointer; }
#consentDecline { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
#drawer.on-ride { --c: var(--bone); --c-ink: var(--ink); } /* the opposite of the ink ride; over the bone menu it stays ink */
#drawer[open] { display: flex; flex-direction: column; transform: none; animation: drawer-in .28s cubic-bezier(0.2, 0.7, 0.2, 1); }
#drawer::backdrop { background: var(--ink); opacity: 0; transition: opacity .28s, display .28s allow-discrete, overlay .28s allow-discrete; }
#drawer[open]::backdrop { opacity: .6; }
@starting-style { #drawer[open]::backdrop { opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (max-width: 767px) { #drawer { width: 100%; min-width: 0; border-left: 0; } }
/* Title and X share one row, with the X in the shared corner. */
.drawer-head { flex: 0 0 auto; display: flex; align-items: center; min-height: 56px; padding: max(6px, env(safe-area-inset-top)) 44px 6px 0; border-bottom: 3px solid var(--c-ink); }
#drawerClose { color: inherit; }
.drawer-now { margin: 0; font-size: 12.8px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5; text-transform: uppercase; }
#contactForm { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 24px; padding: 24px 0 16px; overscroll-behavior: contain; }
.field { display: grid; gap: 4px; }
.field-error { position: relative; justify-self: start; max-width: 100%; margin-top: 12px; padding: 7px 10px; background: var(--c-ink); color: var(--c); font-size: 14px; line-height: 1.35; font-weight: 500; }
.field-error::before { content: ""; position: absolute; left: 0; top: -10px; width: 0; height: 0; border-bottom: 10px solid var(--c-ink); border-right: 12px solid transparent; }
.field input[aria-invalid], .field textarea[aria-invalid] { border-bottom-color: var(--c-ink); }
.field-label { font-size: 12.8px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5; text-transform: uppercase; }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 2px solid color-mix(in srgb, var(--c-ink) 20%, var(--c)); border-radius: 0; background: none; color: var(--c-ink); font-size: 16px; line-height: 1.5; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--c-ink); }
.trap { position: absolute; left: -9999px; }
.drawer-foot { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: center; padding: 12px 0 16px; border-top: 3px solid var(--c-ink); }
.form-note { margin: 0; font-size: 12.8px; line-height: 1.4; }
.drawer-send { min-height: 48px; padding: 0 16px; background: var(--c-ink); color: var(--c); border: 2px solid var(--c-ink); border-radius: 0; font-weight: 700; }
.drawer-send[disabled] { cursor: default; }
#contactStatus { grid-column: 1 / -1; margin: 0 0 12px; font-weight: 700; }
#contactStatus:empty { display: none; }
#drawerDone p { margin: 0; }
#drawerDone p:first-child { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
#back { display: block; border: 0; background: transparent; padding: 0; margin-top: 64px; font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (hover: hover) { #back:hover { text-decoration-line: underline; } }

@media (pointer: coarse), (max-width: 700px) { #touch { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  #about { transition: none; }
  #drawer, #drawer[open], #drawer::backdrop { transition: none; animation: none; }
}
#contactForm .trap { position: absolute; left: -9999px; }
