/* Bay 312 - the website.
   ------------------------------------------------------------------
   Built on the coworking landing template the client chose: a tall
   yellow panel with the name set sideways in it, a black bar for the
   menu with a yellow square hanging off its end, and white space with
   one picture and a short "about us" beside it.

   Mobile first. Everything before the first media query is the phone,
   where most of this page will be read: short sections, a menu that
   stays at the top, and the one action -- ask about a seat -- docked
   at the bottom of the screen until the form itself is in view.

   From 1024px each section is one screen: it fills the window under the
   bar and its contents are sized against the window height, so a scroll
   moves from one whole section to the next.

   Yellow is a ground, never a text colour: ink reads on it at 9:1 and
   white does not, so white on yellow is kept to the one place the
   template insists on it -- the sideways headline, at a size where the
   letters are shapes. Everything small on yellow is ink. */

:root {
	--sun: #f0b120;
	--ink: #171614;
	--paper: #f4f4f2;
	--white: #ffffff;
	--muted: #5c5852;
	--line: #e2e0db;
	--bad: #b3261e;

	--display: "Oswald", "Arial Narrow", sans-serif;
	--text: "Montserrat", system-ui, -apple-system, sans-serif;

	--wide: 1240px;
	--pad: 20px;
	--sec: 48px;
	--bar: 56px;
	--dock: 68px;
	--ease: cubic-bezier(0.2, 0.7, 0.25, 1);
}

@media (min-width: 720px) {
	:root {
		--pad: 32px;
		--sec: 72px;
	}
}

@media (min-width: 1024px) {
	:root {
		--pad: 40px;
		--bar: 64px;
		/* Air above and below a section, from the window height: a short
		   laptop screen gets less, so the section still fits. */
		--sec: clamp(28px, 5vh, 64px);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	/* Room for the dock, so it never sits on the last lines of the page. */
	padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
}

.on-dark :focus-visible,
.nav :focus-visible,
.dock :focus-visible,
.foot :focus-visible {
	outline-color: var(--sun);
}

/* Every jump lands under the bar, not behind it. */
[id] {
	scroll-margin-top: var(--bar);
}

.ico {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.wrap {
	width: 100%;
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0 var(--pad);
}

/* The template's section mark: a short rule, then a small capital label. */
.eyebrow {
	display: inline-block;
	position: relative;
	padding-top: 14px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: currentColor;
}

.h2 {
	margin: 12px 0 0;
	font-family: var(--display);
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	text-wrap: balance;
}

.lede {
	max-width: 560px;
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
}

/* ------------------------------------------------------------ buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid var(--ink);
	font-family: var(--text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--ink {
	background: var(--ink);
	color: var(--white);
}

.btn--line {
	background: transparent;
	color: var(--ink);
}

.btn--sun {
	background: var(--sun);
	border-color: var(--sun);
	color: var(--ink);
}

.btn--sm {
	min-height: 44px;
	padding: 0 16px;
}

/* Hover only where there is a pointer that hovers; a tap on a phone
   should not leave a button stuck in its hover colour. */
@media (hover: hover) {
	.btn--ink:hover {
		background: var(--sun);
		border-color: var(--sun);
		color: var(--ink);
	}

	.btn--line:hover {
		background: var(--ink);
		color: var(--white);
	}

	.btn--sun:hover {
		background: var(--white);
		border-color: var(--white);
	}
}

.btn:active {
	transform: translateY(1px);
}

/* ------------------------------------------------------------- the bar */

.nav {
	position: fixed;
	z-index: 30;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	height: var(--bar);
	padding: 0 var(--pad);
	background: var(--ink);
	color: var(--white);
}

.nav__mark {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.nav__mark img {
	width: auto;
	height: 26px;
}

.nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-left: auto;
	padding: 0 4px;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.nav__toggle .ico {
	font-size: 22px;
}

.nav__links {
	position: absolute;
	top: var(--bar);
	left: 0;
	right: 0;
	display: none;
	flex-direction: column;
	padding: 4px var(--pad) 16px;
	background: var(--ink);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3);
}

.nav.is-open .nav__links {
	display: flex;
}

.nav__links a {
	display: flex;
	align-items: center;
	min-height: 52px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Where you are, in the colour that means "this one". */
.nav__links a[aria-current] {
	color: var(--sun);
}

@media (hover: hover) {
	.nav__links a:hover {
		color: var(--sun);
	}
}

.nav__badge,
.nav__cta {
	display: none;
}

/* ----------------------------------------------------------- the dock */

/* The one action, under the thumb. It steps aside when the form is on
   screen -- two "ask" buttons at once is one too many. */
.dock {
	position: fixed;
	z-index: 25;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--dock);
	padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
	background: var(--ink);
	color: var(--white);
	transition: transform 0.25s var(--ease);
}

.dock.is-away {
	transform: translateY(110%);
}

.dock__price {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
}

.dock__price b {
	display: block;
	color: var(--white);
	font-family: var(--display);
	font-size: 18px;
	white-space: nowrap;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ the hero */

.hero {
	position: relative;
	padding-top: var(--bar);
	background: var(--paper);
	overflow: hidden;
}

.hero__stage {
	position: relative;
	height: clamp(500px, calc(100svh - var(--bar) - var(--dock) - 16px), 680px);
}

.hero__shot {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.hero__shot img,
.hero__still img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* On a phone the panel reads across: the photo above, the name set
   large and level, a rule, then what is on the floor. The sideways
   setting is kept for wide screens, where the panel is tall enough for
   it to read as a headline rather than a puzzle. */
.hero__panel {
	position: absolute;
	bottom: 0;
	left: 6%;
	right: 6%;
	display: grid;
	grid-template-columns: 1fr;
	align-content: end;
	gap: 0;
	padding: 24px 22px 26px;
	background: var(--sun);
	/* Width only: on a phone the panel is as tall as its words. */
	container-type: inline-size;
	animation: rise 0.9s var(--ease) both;
}

.hero__title {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: min(19cqw, 120px);
	line-height: 0.88;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--white);
	white-space: nowrap;
}

.hero__title span {
	display: block;
}

.hero__title .hero__kicker {
	margin-bottom: 0.35em;
	color: var(--ink);
	font-size: 0.3em;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.5;
}

.hero__rule {
	height: 2px;
	margin: 20px 0 6px;
	background: var(--white);
}

.hero__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero__list li {
	padding: 8px 0;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero__list li + li {
	border-top: 1px solid rgba(23, 22, 20, 0.25);
}

.hero__side {
	display: grid;
	gap: 22px;
	padding: 28px var(--pad) 32px;
	background: var(--white);
}

/* On a phone the picture behind the yellow already shows the floor;
   a second one only pushes "about us" a screen further down. */
.hero__still {
	display: none;
	margin: 0;
	aspect-ratio: 4 / 3;
	box-shadow: 0 18px 40px rgba(23, 22, 20, 0.16);
}

.hero__about p {
	margin: 12px 0 20px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}

.hero__acts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.hero__acts .btn {
	padding: 0 12px;
}

.hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.hero__where {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
}

.hero__where .ico {
	font-size: 22px;
}

.hero__where b {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.hero__where span span {
	color: var(--muted);
}

.hero__foot > .btn {
	display: none;
}

.hero__icons {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.hero__icons a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--ink);
	color: var(--white);
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

@media (hover: hover) {
	.hero__icons a:hover {
		background: var(--sun);
		color: var(--ink);
	}
}

.hero__icons .ico {
	font-size: 18px;
}

@keyframes rise {
	from {
		clip-path: inset(100% 0 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@media (min-width: 720px) {
	.hero__still {
		display: block;
	}

	.hero__acts {
		display: flex;
		flex-wrap: wrap;
	}

	.hero__acts .btn {
		padding: 0 22px;
	}

	.hero__foot > .btn {
		display: inline-flex;
	}
}

/* ------------------------------------------------------------ included */

.about {
	padding: var(--sec) 0;
}

.about__top {
	margin-bottom: 28px;
}

.perks {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--line);
	border: 1px solid var(--line);
}

.perks li {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 16px 14px 18px;
	background: var(--white);
}

.perks .tile {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 8px;
	background: var(--sun);
	font-size: 18px;
}

.perks b {
	font-family: var(--display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
}

.perks span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.45;
}

@media (min-width: 900px) {
	.about__top {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: end;
		gap: 48px;
		margin-bottom: clamp(24px, 5vh, 44px);
	}

	.about__top .lede {
		margin: 0;
	}

	.perks {
		grid-template-columns: repeat(4, 1fr);
	}

	.perks li {
		padding: clamp(18px, 3.4vh, 30px) 24px;
	}

	.perks .tile {
		width: 44px;
		height: 44px;
		font-size: 20px;
	}

	.perks b {
		font-size: 19px;
	}
}

/* -------------------------------------------------------------- spaces */

.spaces {
	padding: var(--sec) 0;
	background: var(--paper);
}

.spaces__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.spaces__head .btn {
	display: none;
}

.spaces__grid {
	display: grid;
	gap: 12px;
}

/* On a phone a place is a row -- picture left, name and price right --
   so five of them are one screen, not three. */
.space {
	display: flex;
	background: var(--white);
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(23, 22, 20, 0.06);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.space figure {
	flex: none;
	width: 40%;
	min-height: 118px;
	margin: 0;
	overflow: hidden;
}

.space img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.space__bar {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	background: var(--ink);
	color: var(--white);
}

.space__id {
	padding: 14px 14px 10px;
}

.space__id h3 {
	margin: 0;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
}

.space__id p {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	line-height: 1.4;
}

.space__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 8px 14px;
	background: var(--sun);
	color: var(--ink);
}

.space__price b {
	font-family: var(--display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.05;
}

.space__price span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (hover: hover) {
	.space:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 40px rgba(23, 22, 20, 0.14);
	}

	.space:hover img {
		transform: scale(1.04);
	}
}

@media (min-width: 720px) {
	.spaces__head .btn {
		display: inline-flex;
	}

	.spaces__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.space {
		flex-direction: column;
	}

	.space figure {
		flex: 1;
		width: auto;
		min-height: 200px;
	}

	.space--big {
		grid-column: 1 / -1;
	}

	.space--big figure {
		min-height: 320px;
	}

	.space__bar {
		flex: none;
		flex-direction: row;
		align-items: stretch;
	}

	.space__id {
		flex: 1;
		padding: 12px 16px;
	}

	.space__id h3 {
		font-size: 21px;
	}

	.space__price {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0;
		min-width: 92px;
		padding: 8px 12px;
		text-align: center;
	}

	.space__price b {
		font-size: 22px;
	}

	.space__price span {
		font-size: 11px;
		letter-spacing: 0.1em;
	}
}

@media (min-width: 1024px) {
	.spaces__head {
		margin-bottom: clamp(16px, 3vh, 28px);
	}

	/* Four columns, two rows: the open plan takes a square of four cells and
	   the other four places fill the rest, so there is never a hole. Each row
	   is a share of what the window has left after the bar,
	   the air and the heading. */
	.spaces__grid {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: clamp(110px, calc((100svh - var(--bar) - var(--sec) * 2 - 150px) / 2), 330px);
	}

	.space--big {
		grid-column: span 2;
		grid-row: span 2;
	}

	.space figure,
	.space--big figure {
		min-height: 0;
	}
}

/* ------------------------------------------------------------- pricing */

.pricing {
	padding: var(--sec) 0;
}

.pricing__head {
	margin-bottom: 24px;
}

.plans {
	display: grid;
	gap: 14px;
}

.plan {
	padding: 24px 20px 22px;
}

.plan--day {
	background: var(--sun);
}

.plan--month {
	background: var(--ink);
	color: var(--white);
}

.plan h3 {
	margin: 10px 0 0;
	font-family: var(--display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.plan__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 10px;
	margin: 14px 0 4px;
}

.plan__price b {
	font-family: var(--display);
	font-size: 52px;
	font-weight: 700;
	line-height: 0.95;
}

.plan--month .plan__price b {
	color: var(--sun);
}

.plan__price span {
	font-size: 14px;
	font-weight: 600;
}

.plan__say {
	margin: 6px 0 14px;
	font-size: 14px;
	line-height: 1.55;
}

.plan--month .plan__say,
.plan--month .plan__rows span {
	color: rgba(255, 255, 255, 0.8);
}

.plan__rows {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.plan__rows li {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid rgba(23, 22, 20, 0.22);
	font-size: 14px;
	line-height: 1.45;
}

.plan--month .plan__rows li {
	border-top-color: rgba(255, 255, 255, 0.16);
}

.plan__rows b {
	padding-top: 2px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.plan .btn {
	width: 100%;
}

.pricing__fine {
	max-width: 760px;
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
}

@media (min-width: 900px) {
	.plans {
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}

	.plan {
		padding: clamp(24px, 4.4vh, 40px) clamp(24px, 3vw, 44px);
	}

	.plan h3 {
		font-size: 28px;
	}

	.plan__price b {
		font-size: clamp(48px, 7vh, 72px);
	}

	.plan__rows li {
		padding: clamp(7px, 1.3vh, 12px) 0;
	}

	.plan .btn {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.pricing__head {
		display: flex;
		flex-wrap: wrap;
		align-items: end;
		justify-content: space-between;
		gap: 12px 40px;
		margin-bottom: clamp(16px, 3vh, 32px);
	}

	.pricing__head .pricing__fine {
		max-width: 420px;
		margin: 0;
	}
}

/* ------------------------------------------------------------- gallery */

/* The one section not held to a screen. Pictures are only worth showing
   at a size you can see something in, so the tiles take their height from
   the width and the page scrolls. */
.gallery {
	padding: var(--sec) 0;
}

.gallery__head {
	display: grid;
	gap: 14px;
	margin-bottom: 20px;
}

/* The yellow label, set level: a strip on a phone, a block on a wide
   screen -- the panel from the hero, small. */
.gallery__label {
	margin: 0;
	padding: 16px 18px 18px;
	background: var(--sun);
	font-family: var(--display);
	font-size: 54px;
	font-weight: 700;
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--white);
}

.gallery__label span {
	display: block;
	margin-bottom: 0.3em;
	color: var(--ink);
	font-size: 0.24em;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.6;
}

.gallery__head .lede {
	margin: 0;
}

/* On a phone, one picture to a row at its own shape -- the page is
   longer, and every picture is big enough to read. */
.gallery__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__grid li {
	aspect-ratio: 3 / 2;
}

.gallery__grid .g-void {
	aspect-ratio: 4 / 3;
}

/* A large phone or a small tablet: pairs, with the double height and the
   open plan across both columns, so seven pictures leave no hole. */
@media (min-width: 560px) {
	.gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.gallery__grid li {
		aspect-ratio: 4 / 3;
	}

	.gallery__grid .g-void,
	.gallery__grid .g-open {
		grid-column: 1 / -1;
		aspect-ratio: 16 / 9;
	}
}

.gallery__grid li {
	margin: 0;
	overflow: hidden;
	background: var(--paper);
}

.gallery__open {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.gallery__open:focus-visible {
	outline-offset: -4px;
}

.gallery__grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

@media (hover: hover) {
	.gallery__open:hover img {
		transform: scale(1.04);
	}
}

@media (min-width: 900px) {
	.gallery__head {
		grid-template-columns: auto 1fr;
		align-items: end;
		gap: 32px;
		margin-bottom: 28px;
	}

	.gallery__label {
		padding: 22px 28px 24px;
		font-size: 76px;
	}

	.gallery__head .lede {
		max-width: 420px;
		padding-bottom: 6px;
	}

	/* Three columns: the double height a square of four tiles, the
	   boardroom across two, the rest one each -- four rows, no holes. */
	.gallery__grid {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: clamp(220px, 21vw, 340px);
		gap: 14px;
	}

	.gallery__grid li,
	.gallery__grid .g-void,
	.gallery__grid .g-open {
		aspect-ratio: auto;
	}

	.gallery__grid .g-void {
		grid-column: span 2;
		grid-row: span 2;
	}

	.gallery__grid .g-open {
		grid-column: auto;
	}

	.gallery__grid .g-board {
		grid-column: span 2;
	}
}

/* -------------------------------------------------------------- viewer */

.viewer {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(12, 11, 10, 0.94);
	color: var(--white);
}

.viewer::backdrop {
	background: rgba(12, 11, 10, 0.6);
}

.viewer[open] {
	display: grid;
	place-items: center;
}

.viewer__fig {
	display: grid;
	gap: 12px;
	justify-items: center;
	margin: 0;
	padding: 64px 16px 80px;
}

.viewer__img {
	max-width: min(1400px, 100%);
	max-height: calc(100vh - 190px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.viewer__cap {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

.viewer__btn {
	position: fixed;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	background: var(--sun);
	color: var(--ink);
	font-size: 22px;
	cursor: pointer;
}

.viewer__btn .ico {
	stroke-width: 2;
}

.viewer__close {
	top: 12px;
	right: 12px;
}

.viewer__prev,
.viewer__next {
	bottom: 16px;
}

.viewer__prev {
	left: calc(50% - 56px);
}

.viewer__next {
	left: calc(50% + 8px);
}

@media (min-width: 900px) {
	.viewer__prev,
	.viewer__next {
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}

	.viewer__prev {
		left: 20px;
	}

	.viewer__next {
		left: auto;
		right: 20px;
	}

	.viewer__fig {
		padding: 72px 88px 28px;
	}

	.viewer__img {
		max-height: calc(100vh - 140px);
	}
}

/* ------------------------------------------------------------- contact */

/* The form comes first. Every "ask about a seat" on the page lands here,
   and on a phone it should land on the fields, not on a screen of
   address to scroll past. On a wide screen the details go back to the
   left, beside it. */
.talk {
	display: grid;
	background: var(--paper);
}

.talk__form {
	padding: var(--sec) var(--pad);
}

.talk__form .lede {
	margin-bottom: 24px;
}

.talk__say {
	padding: var(--sec) var(--pad);
	background: var(--ink);
	color: var(--white);
}

.talk__say h3 {
	margin: 0;
	font-family: var(--display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.talk__say > p {
	max-width: 440px;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
}

.talk__facts {
	display: grid;
	gap: 14px;
	margin: 26px 0 26px;
	padding: 0;
	list-style: none;
}

.talk__facts li {
	display: flex;
	gap: 14px;
	font-size: 14px;
	line-height: 1.5;
}

.talk__facts .tile {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	background: var(--sun);
	color: var(--ink);
	font-size: 18px;
	flex: none;
}

.talk__facts b {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sun);
}

.talk__facts a {
	display: inline-block;
	padding: 12px 0;
	margin: -12px 0;
	text-underline-offset: 3px;
}

@media (min-width: 1024px) {
	.talk {
		grid-template-columns: 5fr 7fr;
	}

	.talk__say {
		order: -1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-left: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
		padding-right: 56px;
	}

	.talk__say h3 {
		font-size: clamp(30px, 5vh, 44px);
	}

	.talk__form {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-left: 64px;
		padding-right: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
	}

	.talk__form .lede {
		margin-bottom: clamp(14px, 2.6vh, 24px);
	}
}

/* The form keeps its old class names: the script that sends it reads them. */
.bay-ask {
	display: grid;
	gap: 16px;
}

.bay-ask__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* Name and phone side by side at 375px leaves each 160px: enough for a
   phone number, too little for a full name. Stack them until there is room. */
.bay-ask__pair--who {
	grid-template-columns: 1fr;
}

.bay-ask__pair:has(.bay-ask__field--n) {
	grid-template-columns: 1fr 96px;
}

@media (min-width: 560px) {
	.bay-ask__pair--who {
		grid-template-columns: 1fr 1fr;
	}

	.bay-ask__pair:has(.bay-ask__field--n) {
		grid-template-columns: 1fr 130px;
	}
}

.bay-ask__field {
	display: grid;
	align-content: start;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.bay-ask__field label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bay-ask__field label span {
	color: var(--muted);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

.bay-ask input,
.bay-ask select,
.bay-ask textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #b9b5ad;
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--text);
	font-size: 16px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.bay-ask textarea {
	resize: vertical;
}

.bay-ask input:focus,
.bay-ask select:focus,
.bay-ask textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px var(--sun);
}

.bay-ask [aria-invalid="true"] {
	border-color: var(--bad);
}

.bay-ask__err {
	color: var(--bad);
	font-size: 13px;
	font-weight: 600;
}

.bay-ask__err:empty {
	display: none;
}

.bay-ask__rate {
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.bay-ask__rate:empty {
	display: none;
}

.bay-ask__pot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bay-ask__go {
	min-height: 52px;
	width: 100%;
}

.bay-ask__go:disabled {
	opacity: 0.6;
	cursor: progress;
}

.bay-ask__said {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.bay-ask__said:empty {
	display: none;
}

.bay-ask__said.is-bad {
	color: var(--bad);
}

.bay-ask__done {
	margin: 0;
	padding: 22px 24px;
	background: var(--sun);
	font-size: 15px;
	line-height: 1.6;
}

@media (min-width: 720px) {
	.bay-ask__go {
		justify-self: start;
		width: auto;
		padding: 0 32px;
	}
}

/* Two columns on a wide screen -- who you are across the top, then the
   rest in pairs -- so the whole form, button included, fits the screen. */
@media (min-width: 1024px) {
	.bay-ask {
		grid-template-columns: 1fr 1fr;
		gap: clamp(10px, 1.8vh, 16px) 20px;
	}

	.bay-ask__pair--who,
	.bay-ask__go,
	.bay-ask__said,
	.bay-ask__done {
		grid-column: 1 / -1;
	}

	.bay-ask__pair:has(.bay-ask__field--n) {
		grid-template-columns: 1fr 96px;
	}

	.bay-ask textarea {
		min-height: 48px;
		height: 48px;
	}
}

/* -------------------------------------------------------------- footer */

.foot {
	padding: 40px 0 24px;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
}

.foot__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 20px;
}

.foot__cols > :first-child {
	grid-column: 1 / -1;
}

.foot__mark {
	font-family: var(--display);
	font-size: 28px;
	font-weight: 700;
	color: var(--white);
	text-transform: uppercase;
}

.foot__mark span {
	color: var(--sun);
}

.foot address {
	margin-top: 8px;
	font-style: normal;
	line-height: 1.65;
}

.foot h3 {
	margin: 0 0 8px;
	color: var(--sun);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.foot p {
	margin: 0 0 8px;
}

.foot ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot li b {
	color: var(--white);
}

.foot__hours {
	font-family: var(--display);
	font-size: 24px;
	color: var(--white);
}

.foot__fine {
	margin: 32px 0 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 900px) {
	.foot {
		padding: 56px 0 28px;
	}

	.foot__cols {
		grid-template-columns: 1.2fr 1fr 1fr;
		gap: 32px;
	}

	.foot__cols > :first-child {
		grid-column: auto;
	}
}

/* ================================================== one screen a section */

@media (min-width: 1024px) {
	html {
		/* Proximity, not mandatory: a scroll that stops near a section
		   settles on it, one that stops mid-way is left alone. */
		scroll-snap-type: y proximity;
	}

	body {
		padding-bottom: 0;
	}

	.dock {
		display: none;
	}

	.hero,
	.about,
	.spaces,
	.pricing,
	.talk {
		scroll-snap-align: start;
	}

	.about,
	.spaces,
	.pricing {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: calc(100svh - var(--bar));
	}

	.talk {
		min-height: calc(100svh - var(--bar));
	}

	/* ---- the hero, as the template draws it: one sheet, placed */

	.nav {
		position: absolute;
		top: var(--navtop);
		left: 38%;
		right: 0;
		padding: 0 0 0 36px;
	}

	.nav__mark,
	.nav__toggle {
		display: none;
	}

	.nav__links {
		position: static;
		display: flex;
		flex: 1;
		flex-direction: row;
		justify-content: space-between;
		gap: 8px;
		max-width: min(520px, calc(100% - 240px));
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
	}

	.nav__links a {
		min-height: var(--bar);
		border: 0;
		font-size: 12px;
	}

	.nav__links a[aria-current] {
		box-shadow: inset 0 -3px 0 var(--sun);
	}

	/* The yellow square on the end of the bar carries the mark: the stacked
	   lockup in ink, because the ochre 312 disappears into the yellow. */
	.nav__badge {
		position: absolute;
		top: -22px;
		right: 6%;
		display: grid;
		place-items: center;
		width: 104px;
		height: calc(var(--bar) + 22px);
		padding: 10px;
		background: var(--sun);
	}

	.nav__badge img {
		width: auto;
		height: calc(var(--bar) + 2px);
	}

	/* Past the hero the bar comes with you: the whole width, the name at
	   the start and the ask at the end, so every section is one click
	   from every other. */
	.nav.is-stuck {
		position: fixed;
		top: 0;
		left: 0;
		padding: 0 var(--pad);
		animation: drop 0.28s var(--ease) both;
	}

	.nav.is-stuck .nav__mark {
		display: inline-flex;
		margin-right: clamp(32px, 6vw, 96px);
	}

	.nav.is-stuck .nav__badge {
		display: none;
	}

	.nav.is-stuck .nav__cta {
		display: inline-flex;
		margin-left: auto;
	}

	/* Exactly the window, whatever its height: the hero is one screen. */
	.hero {
		--navtop: 10%;
		height: 100svh;
		min-height: 520px;
		padding-top: 0;
	}

	.hero__stage {
		position: absolute;
		inset: 0;
		height: auto;
	}

	/* The photograph fills the whole left half and the yellow sits inside
	   it, in from the top and the left, so the room shows as a wide band
	   above the panel and a strip down its side -- the template's L of
	   photograph, large enough to see what it is. */
	.hero__shot {
		width: 47%;
		height: 100%;
	}

	.hero__panel {
		top: clamp(96px, 21%, 210px);
		left: 11%;
		right: auto;
		width: 36%;
		container-type: size;
		grid-template-columns: auto 1px 1fr;
		align-content: stretch;
		align-items: end;
		gap: 0 22px;
		padding: clamp(24px, 4.6vh, 40px) 40px clamp(24px, 5vh, 44px) 26px;
	}

	/* Sideways, reading up from the bottom, the first line leftmost --
	   which is what vertical-rl turned half a circle gives. */
	.hero__title {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		font-size: min(18.5cqh, 28cqw);
	}

	.hero__title .hero__kicker {
		margin-bottom: 0;
		margin-left: 0.18em;
	}

	.hero__rule {
		align-self: stretch;
		height: auto;
		margin: 18% 0 0;
	}

	.hero__list li {
		padding: clamp(6px, 1.1vh, 9px) 0;
		font-size: 13px;
	}

	/* The right of the hero is a column under the bar: picture, about,
	   location, all on one left edge. The picture takes whatever height
	   the text leaves, so it is as big as the window allows and nothing
	   ever falls off the bottom. */
	.hero__side {
		position: absolute;
		top: calc(var(--navtop) + var(--bar) + clamp(12px, 3vh, 36px));
		right: 0;
		bottom: clamp(16px, 4vh, 44px);
		left: 47%;
		display: flex;
		flex-direction: column;
		gap: clamp(14px, 2.6vh, 28px);
		padding: 0 7% 0 6%;
		background: none;
	}

	.hero__still {
		flex: 1 1 0;
		min-height: 160px;
		aspect-ratio: auto;
	}

	.hero__about p {
		max-width: 560px;
		margin: clamp(8px, 1.4vh, 12px) 0 clamp(12px, 2vh, 18px);
		font-size: 14px;
		line-height: 1.65;
	}

	.hero__foot {
		flex-wrap: nowrap;
		padding-top: 0;
		border-top: 0;
	}

	.h2 {
		font-size: clamp(30px, min(4.4vw, 7vh), 56px);
	}
}

/* A short window -- a laptop at 125% or 150% display scaling is about
   600px tall -- and everything gives a little so each section still fits
   under the bar: shorter text, tighter rows, the extras left out. */
/* Under 1280px the column is too narrow for the location, the map
   button and the two icons on one line; the icons repeat the map button
   and the address in the footer, so they go. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.hero__icons {
		display: none;
	}
}

/* A short window: the bar moves up, the location row goes (the paragraph
   says 400 m from EON Free Zone), and the picture gets the height. */
@media (min-width: 1024px) and (max-height: 700px) {
	.hero {
		--navtop: 5%;
	}

	.hero__foot {
		display: none;
	}
}

@media (min-width: 1024px) and (max-height: 780px) {
	.plan__say {
		display: none;
	}
}

/* Up to 900px tall the two plans set their terms in two columns -- four
   rows of terms become two -- so the pair fits beside its heading. */
@media (min-width: 1024px) and (max-height: 900px) {
	.plan > .eyebrow {
		display: none;
	}

	.plan h3 {
		margin: 0;
	}

	.plan__price {
		margin: 8px 0 12px;
	}

	.plan__rows {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 20px;
		margin-bottom: 16px;
	}

	.plan__rows li {
		grid-template-columns: 1fr;
		gap: 2px;
		font-size: 13px;
	}
}

/* Narrow and short: the terms wrap to more lines, so the plans tighten. */
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 780px) {
	.plan {
		padding: 18px 24px;
	}

	.plan__price b {
		font-size: 44px;
	}

	.plan__rows li {
		padding: 7px 0;
		font-size: 12px;
	}

	.pricing__head .pricing__fine {
		font-size: 12px;
	}
}

@media (min-width: 1024px) and (max-height: 680px) {
	:root {
		--sec: clamp(18px, 4vh, 28px);
	}

	.about__top .lede {
		font-size: 14px;
	}

	.perks li {
		padding: 12px 18px 14px;
	}

	.perks .tile {
		width: 34px;
		height: 34px;
		margin-bottom: 4px;
		font-size: 16px;
	}

	.perks b {
		font-size: 16px;
	}

	.perks span {
		font-size: 12px;
	}

	.pricing__head {
		margin-bottom: 12px;
	}

	.pricing__head .pricing__fine {
		font-size: 12px;
		line-height: 1.45;
	}

	/* The plans: the label over the price, and the terms in two columns. */
	.plan {
		padding: 18px 24px;
	}

	.plan > .eyebrow {
		display: none;
	}

	.plan h3 {
		margin: 0;
		font-size: 22px;
	}

	.plan__price {
		margin: 6px 0 10px;
	}

	.plan__price b {
		font-size: 44px;
	}

	.plan__rows {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 18px;
		margin-bottom: 12px;
	}

	.plan__rows li {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 7px 0;
		font-size: 12px;
		line-height: 1.4;
	}

	.plan .btn {
		min-height: 44px;
	}

	.talk__form > .eyebrow,
	.talk__form .lede {
		display: none;
	}

	.talk__form .h2 {
		margin: 0 0 14px;
	}

	.bay-ask {
		gap: 10px 20px;
	}

	.bay-ask__field {
		gap: 4px;
	}

	.bay-ask input,
	.bay-ask select,
	.bay-ask textarea {
		min-height: 44px;
		padding: 9px 12px;
	}

	.bay-ask textarea {
		height: 44px;
	}

	.talk__facts {
		gap: 10px;
		margin: 18px 0;
	}
}

@keyframes drop {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
