/* ==========================================================================
   GroundHouse — homepage
   Direction: screenshot-led reset (October 2026), in GroundHouse's cream
   and olive identity: confident uppercase display lines (Archivo Narrow)
   paired with one short script line, pinned photo cards, a circled note
   and a moving olive strip.

   Page order: 1 navigation + typographic opening, 2 moving marquee,
   3 photo feature, 4 café photo cards + note + order action, about
   (company ethos), 5 Co-Work intro + The Common panel + room cards,
   6 rental inquiry form (inside The Study's card), 7 visit panel with
   map, 8 olive footer with social links.

   Colours and type roles live in :root below. Room details, marquee
   phrases and photo sources live at the top of assets/js/site.js.
   ========================================================================== */

/* ---------- fonts (self-hosted; licences in assets/fonts) ---------- */
@font-face { font-family: "Archivo Narrow"; src: url("../fonts/archivo-narrow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Yellowtail"; src: url("../fonts/yellowtail-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ---- palette ---- */
  --cream: #F3EEE5;          /* page */
  --paper: #FFFCF7;          /* nav bar, cards, panels */
  --olive: #3F4A3D;          /* order buttons, secondary text, footer band */
  --olive-deep: #313A2F;     /* hover */
  --charcoal: #231F20;       /* text, fine borders */
  --accent: var(--olive);    /* script lines, pins, promo message, circled note */
  --rule: #D8D1C5;           /* dividers */
  --line: rgba(35, 31, 32, 0.18);        /* fine outlines on cards */
  --grid-line: rgba(35, 31, 32, 0.045);  /* faint square grid */
  --field: #8F867C;          /* form field edges */
  --error: #8A3B2A;
  --status-open: #2E7D32;    /* live "Open" dot */
  --status-closed: #C62828;  /* live "Closed" dot */
  --on-olive: #F3EEE5;
  --on-olive-2: #D6D4C7;
  --line-on-olive: rgba(243, 238, 229, 0.3);
  /* photo placeholder fields */
  --ph-stone: #E6DFD3;
  --ph-olive: #DADDD0;
  --ph-sand: #ECE6DA;
  --map-ground: #E8E6E1;     /* behind the map while it loads */
  /* moving strip */
  --marquee-bg: var(--olive);
  --marquee-fg: var(--cream);

  /* ---- type roles ---- */
  --font-display: "Archivo Narrow", "Be Vietnam Pro", sans-serif;  /* uppercase display lines, bold */
  --font-script: "Yellowtail", cursive;                              /* one short accent line */
  --font-text: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-hero: clamp(2.75rem, 13.9vw, 7.875rem);          /* 54px @390 → 126px @1440 */
  --fs-hero-script: min(6.75rem, calc((100vw - 2 * var(--gutter)) / 8.2)); /* 43px @390 → 108px; one line */
  --fs-display: clamp(2.5rem, 1.55rem + 3.9vw, 5.25rem); /* 40px → 81px */
  --fs-script: clamp(2.5rem, 1.7rem + 3.2vw, 4.5rem);   /* 40px → 73px */
  --fs-promo: clamp(2.5rem, 1.9rem + 3.4vw, 4.75rem);   /* 44px @390 → 76px @1440 */
  --fs-room: clamp(1.625rem, 1.4rem + 0.6vw, 1.875rem); /* 26px → 30px */
  --fs-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);   /* 17px → 20px */
  --fs-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);  /* 16px → 17px */
  --fs-small: 0.9375rem;                                /* 15px */
  --fs-ui: 0.9375rem;                                   /* buttons, 15px */
  --fs-nav: 0.875rem;                                   /* 14px */
  --fs-label: 0.8125rem;                                /* 13px */
  --fs-marquee: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); /* 22px → 30px */

  /* ---- space ---- */
  --content: 1344px;
  --gutter: clamp(20px, 4.2vw, 48px);
  --section: clamp(56px, 2.5rem + 4.4vw, 108px);
  --bar-h: 72px;
  --bar-top: 12px;
  --head: calc(var(--bar-top) + var(--bar-h));
  --logo-w: 224px;
  --radius: 8px;
  --r-ctl: 8px;
  --mq-h: 78px;
  --grid: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (max-width: 1023.98px) { :root { --bar-h: 62px; --logo-w: 156px; } }
@media (max-width: 599.98px)  { :root { --mq-h: 58px; --grid: 46px; --logo-w: 136px; } }
@media (max-width: 379.98px)  { :root { --logo-w: 126px; } }
@media (max-width: 359.98px)  { :root { --logo-w: 112px; } }
@media (max-width: 339.98px)  { :root { --logo-w: 108px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--cream);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, dl, dd, address, fieldset, legend { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--paper); }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.on-olive :focus-visible, .marquee :focus-visible { outline-color: var(--cream); }
main:focus, [data-anchor-focus]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 100; left: var(--gutter); top: -120px;
  padding: 12px 20px; border-radius: var(--r-ctl); background: var(--paper); color: var(--charcoal);
  font-weight: 600; text-decoration: none; box-shadow: 0 0 0 1px var(--olive);
}
.skip:focus { top: calc(var(--bar-top) + env(safe-area-inset-top, 0px)); }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }

/* faint square grid: only behind the opening and the café cards */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: calc(50% - var(--grid) / 2) 0;
}
.grid-bg--fade::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade, 140px), #000 calc(100% - var(--fade, 140px)), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 var(--fade, 140px), #000 calc(100% - var(--fade, 140px)), transparent);
}

/* ---------- type ---------- */
.label {
  font-family: var(--font-text); font-size: var(--fs-label); font-weight: 600; line-height: 1.3;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive);
}
/* display heading = chunky uppercase line + one short olive script line */
.display { display: grid; justify-items: center; font-weight: 400; }
.display__caps {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; color: var(--charcoal);
  text-wrap: balance;
}
.display__script {
  font-family: var(--font-script); font-weight: 400; font-size: var(--fs-script);
  line-height: 1.16; color: var(--accent); margin-top: -0.06em; padding-inline: 0.16em;
}
.heading { display: grid; justify-items: center; text-align: center; }
.heading > .label { margin-bottom: clamp(12px, 1.2vw, 16px); }
.heading__lede { margin-top: clamp(14px, 1.6vw, 20px); max-width: 36ch; font-size: var(--fs-lede); line-height: 1.55; text-wrap: balance; }
.ico { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--olive); border-radius: var(--r-ctl);
  background: var(--olive); color: var(--paper);
  font-family: var(--font-text); font-size: var(--fs-ui); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn--line { background: transparent; color: var(--olive); }
.btn--line:hover { background: rgba(63, 74, 61, 0.07); border-color: var(--olive); }
.btn--on-olive { background: var(--on-olive); border-color: var(--on-olive); color: var(--olive); }
.btn--on-olive:hover { background: var(--paper); border-color: var(--paper); }
.btn .ico { width: 15px; height: 15px; }
a:hover > .ico--down { transform: translateY(3px); }
a:hover > .ico--out { transform: translate(2px, -2px); }
a:hover > .ico--up { transform: translateY(-3px); }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* ==========================================================================
   1. Navigation: inset light bar, fine olive border, wordmark centred
   ========================================================================== */
.site-header {
  position: sticky; z-index: 40;
  top: calc(env(safe-area-inset-top, 0px) + var(--bar-top));
  margin-top: var(--bar-top);
}
.bar {
  height: var(--bar-h);
  display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; column-gap: 16px;
  padding-inline: clamp(10px, 1.6vw, 22px);
  background: var(--paper); border: 1px solid var(--olive); border-radius: var(--radius);
}
.bar__group { grid-row: 1; display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.bar__group--start { grid-column: 1; justify-self: start; padding-left: 8px; }
.bar__group--end { grid-column: 3; justify-self: end; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-nav); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: var(--charcoal);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0.08em; bottom: 9px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.bar .btn {
  min-height: 46px; padding: 0 18px 0 calc(18px + 0.08em);
  font-size: var(--fs-nav); letter-spacing: 0.08em; text-transform: uppercase;
}
.brand { grid-column: 2; grid-row: 1; display: flex; align-items: center; min-height: 44px; padding: 6px 8px; }
/* The wordmark file is used exactly as supplied; this box only trims its
   transparent margin (artwork bounds 36–748 × 56–148 of 792 × 216). */
.brand__art { position: relative; display: block; width: var(--logo-w); aspect-ratio: 713 / 93; }
.brand__art img {
  position: absolute; max-width: none; height: auto;
  width: 111.08%; left: -5.049%; top: -60.215%;
  pointer-events: none;
}
.menu-toggle {
  grid-column: 1; grid-row: 1; justify-self: start;
  display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer; color: var(--charcoal);
  font-size: var(--fs-nav); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 18px; height: 10px; flex: none; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0; height: 1.75px; border-radius: 1px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-toggle__icon span:first-child { top: 1px; }
.menu-toggle__icon span:last-child { top: 7.25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span { top: 4.25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: rotate(-45deg); }
.bar__order { grid-column: 3; grid-row: 1; justify-self: end; display: none; }
.bar .bar__order { min-height: 44px; padding: 0 14px 0 calc(14px + 0.08em); }

.menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  max-height: calc(100dvh - var(--head) - 24px); overflow-y: auto;
  padding: 6px clamp(16px, 4vw, 22px) 20px;
  background: var(--paper); border: 1px solid var(--olive); border-radius: var(--radius);
}
.menu__list li + li { border-top: 1px solid var(--rule); }
.menu__list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--charcoal);
}
.menu__list .ico { color: var(--olive); }
.menu__order { width: 100%; margin-top: 14px; }
.menu__meta { margin-top: 14px; font-size: var(--fs-small); color: var(--olive); }

@media (max-width: 1023.98px) {
  .bar__group { display: none; }
  .menu-toggle, .bar__order { display: inline-flex; }
}
@media (max-width: 599.98px) {
  .bar { column-gap: 8px; padding-inline: 8px; }
  .bar .bar__order { padding: 0 12px 0 calc(12px + 0.08em); }
  .brand { padding-inline: 2px; }
}
@media (max-width: 379.98px) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bar { column-gap: 6px; }
  .bar .bar__order { padding: 0 10px 0 calc(10px + 0.08em); }
}
@media (max-width: 339.98px) { .bar .bar__order { font-size: 0.8125rem; letter-spacing: 0.04em; padding: 0 8px 0 calc(8px + 0.04em); } }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* ==========================================================================
   1. Opening: two-style headline, line art at the outer edges, no photos
   ========================================================================== */
.opening { position: relative; margin-top: calc(-1 * var(--head)); padding-top: var(--head); }
.hero {
  position: relative;
  display: grid;
  min-height: clamp(30rem, calc(100vh - var(--head) - var(--mq-h)), min(52rem, 86vw));
  min-height: clamp(30rem, calc(100svh - var(--head) - var(--mq-h)), min(52rem, 86vw));
}
.hero__content {
  align-self: center;
  display: grid; justify-items: center; text-align: center;
  padding-block: clamp(24px, 4vh, 48px);
}
.hero__title { margin-top: clamp(14px, 2.4vh, 26px); display: grid; justify-items: center; font-weight: 400; }
.hero__caps {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-hero);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; color: var(--charcoal);
}
.hero__script {
  font-family: var(--font-script); font-weight: 400; font-size: var(--fs-hero-script);
  line-height: 1.14; color: var(--accent); margin-top: -0.04em; padding-inline: 0.16em;
}
.hero__lede { margin-top: clamp(16px, 2.8vh, 30px); max-width: 30em; font-size: var(--fs-lede); line-height: 1.55; text-wrap: balance; }
.hero__actions {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
}
@media (max-width: 599.98px) {
  .hero {
    min-height: clamp(28rem, calc(100vh - var(--head) - var(--mq-h)), 36rem);
    min-height: clamp(28rem, calc(100svh - var(--head) - var(--mq-h)), 36rem);
  }
  .hero__content { padding-block: 24px 32px; }
  .hero__actions { flex-direction: column; align-self: stretch; width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   2. Moving strip (olive): one semantic copy; clones are added by the script and
      hidden from assistive technology. The track moves by exactly one group.
      It pauses on hover and while it has keyboard focus, and stays still
      (scrollable) for visitors who prefer reduced motion.
   ========================================================================== */
.marquee {
  position: relative; z-index: 1;
  height: var(--mq-h); overflow: hidden;
  background: var(--marquee-bg); color: var(--marquee-fg);
}
.marquee__viewport { height: 100%; overflow: hidden; }
.marquee__track { display: flex; width: max-content; height: 100%; }
.marquee.is-running .marquee__track {
  animation: gh-marquee var(--mq-dur, 50s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__viewport:focus-visible { outline: 2px solid var(--marquee-fg); outline-offset: -5px; }
@keyframes gh-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% / var(--mq-n, 2)), 0, 0); }
}
.marquee__group { display: flex; flex: none; align-items: center; height: 100%; }
.marquee__item {
  display: flex; align-items: center;
  font-family: var(--font-text); font-size: var(--fs-marquee); font-weight: 700; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
}
.marquee__star { width: 0.56em; height: 0.56em; margin-inline: 0.95em; flex: none; opacity: 0.72; }
/* reduced motion (or no script): one static, scrollable sequence */
.marquee.is-static .marquee__viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(243, 238, 229, 0.7) transparent; }
.marquee.is-static .marquee__group { padding-inline: var(--gutter); }
@media (prefers-reduced-motion: reduce) {
  .marquee .marquee__track { animation: none !important; }
  .marquee__viewport { overflow-x: auto; }
}

/* ==========================================================================
   Photo slots: one reusable frame. Without a photo it shows a flat, labelled
   placeholder; with a photo the same frame crops the image.
   ========================================================================== */
.photo {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius);
  background: var(--ph-stone);
}
.photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(35, 31, 32, 0.16);
}
.photo--stone { background: var(--ph-stone); }
.photo--olive { background: var(--ph-olive); }
.photo--sand { background: var(--ph-sand); }
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
}
@media (max-width: 599.98px) { .photo img { object-position: var(--pos-m, var(--pos, 50% 50%)); } }
.photo__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: clamp(10px, 1.2vw, 16px);
}
.photo__tag {
  font-size: 0.6875rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(35, 31, 32, 0.62);
}
.photo__label {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--charcoal);
}
.photo__icon { width: 20px; height: 20px; flex: none; color: rgba(35, 31, 32, 0.66); }
.photo--small .photo__ph { padding: 9px 10px; }
.photo--small .photo__tag { font-size: 0.625rem; letter-spacing: 0.12em; }
.photo--small .photo__label { font-size: 0.75rem; gap: 6px; }
.photo--small .photo__icon { width: 17px; height: 17px; }
@media (max-width: 599.98px) { .photo--small .photo__tag { display: none; } .photo--small .photo__ph { justify-content: flex-end; } }

/* ==========================================================================
   3. GroundHouse photo feature
   ========================================================================== */
.feature { padding-top: var(--section); }
.feature__figure { position: relative; margin-top: clamp(32px, 3vw, 44px); }
.feature .photo { --ratio: 16 / 9; }
.feature__caption {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 32px;
}
.feature__name { font-size: 1.0625rem; font-weight: 600; }
.feature__welcome { color: var(--olive); max-width: 48ch; }
@media (max-width: 599.98px) {
  .feature .photo { --ratio: 4 / 3; }
  .feature__caption { flex-direction: column; }
}

/* ==========================================================================
   4. Café: pinned photo cards, circled note, ordering action
   ========================================================================== */
.cafe { padding-block: var(--section); margin-top: clamp(8px, 1vw, 16px); }
.moments {
  margin-top: clamp(40px, 4.4vw, 64px);
  display: grid; grid-template-columns: 300px minmax(0, 792px); justify-content: center; align-items: center; column-gap: 44px;
}
.cards { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: flex-start; padding-block: 10px 6px; }
.pin-card {
  position: relative; flex: 0 1 268px; min-width: 0;
  margin-top: var(--y, 0px); margin-left: -6px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.35s var(--ease);
}
.pin-card:first-child { margin-left: 0; }
.pin-card:nth-child(1) { --r: -3deg; --y: 8px; }
.pin-card:nth-child(2) { --r: 2deg;  --y: 36px; }
.pin-card:nth-child(3) { --r: -2deg; --y: 4px; }
.pin-card__frame {
  position: relative;
  padding: 12px 12px 4px;
  background: var(--paper);
  border: 1px solid rgba(35, 31, 32, 0.22); border-radius: 6px;
  box-shadow: 0 16px 30px -20px rgba(35, 31, 32, 0.5), 0 2px 5px rgba(35, 31, 32, 0.07);
}
/* the pin */
.pin-card__frame::before {
  content: ""; position: absolute; z-index: 2; top: -7px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 3.5px rgba(35, 31, 32, 0.14), 0 3px 4px 1px rgba(35, 31, 32, 0.22);
}
.pin-card .photo { --ratio: 3 / 4; border-radius: 3px; }
.pin-card__caption { padding: 11px 2px 10px; font-size: var(--fs-small); font-weight: 600; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
  .pin-card:hover { transform: rotate(calc(var(--r, 0deg) * 0.4)) translateY(-4px); z-index: 3; }
}

/* the circled note */
.note { grid-column: 1; grid-row: 1; position: relative; width: 300px; aspect-ratio: 340 / 230; display: grid; place-items: center; }
.note__loops { position: absolute; inset: 0; width: 100%; height: 100%; }
.note__text {
  position: relative; width: 84%; margin: 0 0 1% -1%;
  font-size: 1rem; line-height: 1.5; color: var(--olive); text-align: center;
  transform: rotate(-6deg);
}
.note__arrow { position: absolute; pointer-events: none; }
.note__arrow--right { width: 88px; left: 90%; top: 7%; }
.note__arrow--up { display: none; width: 78px; left: 78%; bottom: 74%; }
.cafe__action { margin-top: clamp(40px, 4vw, 56px); display: flex; justify-content: center; }

@media (max-width: 1179.98px) {
  .moments { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cards { grid-column: 1; }
  .note { grid-column: 1; grid-row: 2; justify-self: center; }
  .note__arrow--right { display: none; }
  .note__arrow--up { display: block; }
}
@media (max-width: 899.98px) {
  .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 230px)); justify-content: center; gap: 30px 24px; }
  .pin-card { margin-left: 0; }
  .pin-card:nth-child(odd) { --y: 0px; }
  .pin-card:nth-child(even) { --y: 26px; }
}
@media (max-width: 599.98px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .pin-card:nth-child(1) { --r: -1.5deg; }
  .pin-card:nth-child(2) { --r: 1.5deg; --y: 18px; }
  .pin-card:nth-child(3) { --r: -1deg; }
  /* an odd card out sits centred under the pair above it */
  .pin-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .pin-card__frame { padding: 9px 9px 2px; }
  .pin-card__caption { padding: 9px 1px 8px; font-size: 0.875rem; }
  .note { width: min(300px, 88%); }
  .note__text { font-size: 0.9375rem; }
  .cafe__action .btn { width: 100%; }
}
@media (max-width: 359.98px) {
  .cards { grid-template-columns: minmax(0, 250px); }
  .pin-card:nth-child(n) { --y: 0px; }
  .pin-card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
}

/* ==========================================================================
   About: company ethos. Heading left, reading column right (stacked on
   smaller screens); plain cream, no imagery.
   ========================================================================== */
.about { padding-block: clamp(8px, 1vw, 16px) var(--section); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(40px, 9vw - 50px, 112px); align-items: start;
}
.about__head > .label { margin-bottom: clamp(12px, 1.2vw, 16px); }
.about .display { justify-items: start; text-align: left; }
.about .display__script { margin-left: -0.06em; padding-inline: 0 0.16em; }
.about__copy { max-width: 31em; margin-top: -0.32em; font-size: var(--fs-lede); line-height: 1.6; }
.about__copy p + p { margin-top: 1.1em; }
.about__copy .about__closing { margin-top: 1.6em; font-weight: 600; color: var(--olive); }
@media (max-width: 999.98px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(24px, 4vw, 36px); }
  .about__copy { margin-top: 0; }
}

/* ==========================================================================
   5. Co-Work: intro, The Common panel, room cards
   ========================================================================== */
.cowork { padding-top: clamp(8px, 1vw, 16px); }
.status {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  border: 1px solid var(--olive); border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* wide promotional panel, adapted to The Common */
.promo {
  position: relative; overflow: hidden;
  margin-top: clamp(40px, 4.4vw, 60px);
  min-height: clamp(180px, 15vw, 220px);
  display: grid; align-content: center; justify-items: center; text-align: center;
  padding: clamp(28px, 2.8vw, 40px) clamp(24px, 4vw, 56px);
  background: var(--paper); border: 1px solid var(--charcoal); border-radius: var(--radius);
}
.promo__title {
  margin-top: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-promo);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; color: var(--accent);
}
.promo__copy { margin-top: 12px; max-width: 56ch; font-size: var(--fs-body); text-wrap: balance; }
@media (max-width: 599.98px) { .promo { padding: 24px 22px; } }
@media (max-width: 359.98px) { .promo { padding-inline: 16px; } }

/* room cards: one column per space on wide screens */
.rooms { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: repeat(var(--room-count, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.room-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.room-card .photo { --ratio: 4 / 3; border-radius: 0; flex: none; }
.room-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 1.8vw, 24px); }
.room-card__name { font-size: var(--fs-room); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; }
.room-card__descriptor { margin-top: 4px; font-size: var(--fs-small); font-weight: 500; color: var(--olive); }
.tag {
  margin-top: 14px; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border: 1px solid var(--olive); border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive);
}
.tag--free { background: var(--olive); color: var(--paper); }
.room-card__copy { margin-top: 14px; max-width: 40ch; }
.room-card__inquiry { align-self: stretch; }
/* side by side (wide screens), a photo grows to match a taller neighbour so both cards end level */
@media (min-width: 1180px) {
  .room-card .photo { flex: 1 0 auto; }
  .room-card .photo + .room-card__body { flex: none; }
}
@media (max-width: 1179.98px) {
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .room-card { flex-direction: row; }
  .room-card .photo { width: 46%; aspect-ratio: 4 / 3; align-self: stretch; }
  .room-card__body { justify-content: center; }
}
@media (max-width: 599.98px) {
  .room-card { flex-direction: column; }
  .room-card .photo { width: auto; align-self: auto; }
}

/* ==========================================================================
   6. Rental inquiry: an email form inside The Study's card. Without a form
      service it opens the visitor's email app with the inquiry written out.
   ========================================================================== */
.inquiry { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); container-type: inline-size; }
.inquiry__title { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.inquiry__intro { margin-top: 4px; font-size: var(--fs-small); line-height: 1.5; color: var(--olive); }
.inquiry__grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { padding: 0; font-size: var(--fs-label); font-weight: 600; line-height: 1.35; letter-spacing: 0.02em; }
.field__opt { font-weight: 400; color: var(--olive); }
.field__input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--field); border-radius: var(--r-ctl); background: var(--paper);
  font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__input:not([type="date"]) { -webkit-appearance: none; appearance: none; }
.field__input:hover { border-color: var(--charcoal); }
.field__input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }
textarea.field__input { min-height: 84px; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--error); }
/* rental length: three choices shown as buttons (real radio inputs underneath) */
.field--choice { display: block; }
.field--choice > legend { float: left; width: 100%; margin-bottom: 8px; }
.field--choice > legend + * { clear: both; }
.field--choice .field__error { margin-top: 6px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__option { position: relative; display: inline-flex; }
.choice__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: var(--r-ctl); background: var(--paper);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.2;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.choice__option:hover span { border-color: var(--charcoal); }
.choice__option input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.choice__option input:focus-visible + span { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.field--choice.is-invalid .choice__option input:not(:checked) + span { border-color: var(--error); }
.inquiry__actions { margin-top: 20px; display: grid; gap: 10px; }
.inquiry__actions .btn { width: 100%; justify-content: space-between; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.inquiry__note { font-size: 0.875rem; line-height: 1.45; color: var(--olive); }
.inquiry__note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inquiry__status:not(:empty) {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r-ctl);
  background: var(--ph-olive); box-shadow: inset 0 0 0 1px rgba(35, 31, 32, 0.12);
  font-size: var(--fs-small); line-height: 1.5;
}
.inquiry__status.is-error { background: #F4E6E1; box-shadow: inset 0 0 0 1px rgba(138, 59, 42, 0.35); }
.inquiry__status p + p { margin-top: 4px; }
.inquiry__status a, .inquiry__copy { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inquiry__copy { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
@container (max-width: 359.98px) { .inquiry__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599.98px) { .inquiry__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   7. Visit: one bordered panel, information left, map right
   ========================================================================== */
.visit { padding-block: var(--section); }
.visit__panel {
  display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
  min-height: clamp(480px, 38vw, 560px);
  background: var(--paper); border: 1px solid var(--charcoal); border-radius: var(--radius); overflow: hidden;
}
.visit__info { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 2.6vw, 36px) clamp(24px, 2.8vw, 40px); container-type: inline-size; }
.visit .display { justify-items: start; text-align: left; margin-top: 12px; }
.visit .display__caps { font-size: clamp(2.5rem, 1.75rem + 2.4vw, 3.75rem); }
@media (min-width: 900px) { .visit .display__caps { font-size: clamp(2.25rem, 5.3vw - 6.5px, 3.75rem); font-size: clamp(2.25rem, 20cqi, 3.75rem); } }
.visit .display__script { font-size: clamp(2.5rem, 1.8rem + 2vw, 3.75rem); margin-left: -0.06em; padding-inline: 0 0.16em; }
.visit__address { margin-top: 14px; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.hours { margin-top: 16px; width: 100%; max-width: 22rem; }
.hours__title { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-bottom: 6px; }
.hours__head .hours__title { margin-bottom: 0; }
/* live status: green dot + Open during posted hours, red dot + Closed outside them */
.open-status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: 600; line-height: 1.2; color: var(--charcoal); }
.open-status__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--status-closed); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.16); }
.open-status.is-open .open-status__dot { background: var(--status-open); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.18); }
.hours__list { display: grid; gap: 2px; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-small); }
.hours__row dd { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours__note { margin-top: 6px; font-size: 0.875rem; line-height: 1.45; color: var(--olive); }
.visit__contact { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.visit__contact a { min-height: 40px; font-size: var(--fs-small); }
.visit__cta { margin-top: auto; padding-top: 18px; }
/* the Google map fills the whole right-hand panel, edge to edge */
.visit__map { position: relative; min-height: 300px; border-left: 1px solid var(--line); background: var(--map-ground); }
.visit__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.visit__parking { margin-top: 18px; max-width: 72ch; font-size: var(--fs-body); line-height: 1.6; }
.visit__parking strong { font-weight: 600; }
@media (max-width: 899.98px) {
  .visit__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .visit__map { min-height: 0; height: clamp(280px, 52vw, 340px); border-left: 0; border-top: 1px solid var(--line); }
  .visit__cta { margin-top: 0; }
}
@media (max-width: 599.98px) { .visit__cta, .visit__cta .btn { width: 100%; } }

/* ==========================================================================
   8. Footer: broad olive band
   ========================================================================== */
.footer { background: var(--olive); color: var(--on-olive); padding-top: clamp(36px, 4vw, 56px); }
.footer__body { padding-bottom: 14px; }
.footer__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; }
/* the supplied GH monogram, shown as a badge so its charcoal ground reads as intended */
.footer__badge { display: block; width: 60px; border-radius: 10px; overflow: hidden; }
.footer__badge img { width: 100%; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-nav); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.footer__nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.footer__contact {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 0 24px;
  font-size: var(--fs-small); color: var(--on-olive-2);
}
.footer__contact > * { display: inline-flex; align-items: center; min-height: 44px; }
.footer__contact a { color: var(--on-olive); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer__base {
  margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line-on-olive);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
  font-size: 0.8125rem; color: var(--on-olive-2);
}
.footer__base a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-olive); text-decoration: none; }
.footer__base a .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer__endorse { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
/* Instagram and TikTok (@groundhousenj) */
.footer__social { margin-left: auto; flex-wrap: wrap; gap: 8px 14px; }
.footer__handle { font-weight: 600; color: var(--on-olive); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social li { display: flex; }
.footer__contact .social__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px;
  border: 1px solid var(--line-on-olive); border-radius: var(--r-ctl);
  font-weight: 600; text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__contact .social__link:hover { background: rgba(243, 238, 229, 0.1); border-color: rgba(243, 238, 229, 0.6); }
.social__icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 1179.98px) { .footer__social { margin-left: 0; } }
@media (max-width: 899.98px) {
  .footer__top { grid-template-columns: auto minmax(0, 1fr); }
  .footer__top .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 599.98px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__top .btn { width: 100%; }
  .footer__contact { flex-direction: column; }
  .footer__endorse { flex-direction: column; align-items: flex-start; }
  .footer__endorse > [aria-hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* phone numbers never break across lines */
a[href^="tel:"] { white-space: nowrap; }

/* ==========================================================================
   Not-found page (404.html)
   ========================================================================== */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter) 72px; }
.notfound__inner { display: grid; justify-items: center; text-align: center; }
.notfound__brand { display: block; width: var(--logo-w); margin-bottom: clamp(40px, 6vw, 72px); }
.notfound__brand img { width: 100%; height: auto; }
.notfound__actions { margin-top: clamp(28px, 3vw, 36px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 599.98px) { .notfound__actions, .notfound__actions .btn { width: 100%; } }

/* ==========================================================================
   Contact pop-up
   The Contact buttons in the navigation (the desktop bar and the
   phone/tablet menu) open this form. It sends with Netlify Forms, form
   name "contact". Everything below is new and only styles the Contact
   buttons and the pop-up.
   ========================================================================== */

/* the Contact buttons look exactly like the links beside them */
.nav-link--button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.menu__button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--charcoal);
}

/* while it's open the page behind stays put, with no jump where the scrollbar was */
html.contact-lock { overflow: hidden; }
html.contact-lock--gutter { scrollbar-gutter: stable; }

.contact:not([open]) { display: none; }
.contact {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(16px, 3vw, 40px); border: 0; overflow: hidden;
  background: transparent; color: var(--charcoal);
}
.contact[open] { display: grid; place-items: center; }
.contact::backdrop { background: transparent; }
.contact__scrim {
  position: absolute; inset: 0; touch-action: none;
  background: rgba(35, 31, 32, 0.46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.contact__panel {
  position: relative; width: min(100%, 940px); max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
  background: var(--paper); border: 1px solid var(--olive); border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(35, 31, 32, 0.55), 0 2px 6px rgba(35, 31, 32, 0.08);
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease);
}
.contact__panel:focus { outline: none; }
.contact.is-open .contact__scrim { opacity: 1; }
.contact.is-open .contact__panel { opacity: 1; transform: none; }
.contact.is-closing .contact__scrim { transition-duration: 0.3s; }
.contact.is-closing .contact__panel {
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 1, 1), transform 0.28s cubic-bezier(0.4, 0, 1, 1);
}
/* the contents settle in just after the panel */
.contact__reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.65s var(--ease); }
.contact.is-open .contact__reveal { opacity: 1; transform: none; }
.contact.is-open .contact__intro .contact__reveal { transition-delay: 0.08s; }
.contact.is-open .contact__form { transition-delay: 0.14s; }
.contact.is-open .contact__direct { transition-delay: 0.2s; }
.contact.is-closing .contact__reveal { opacity: 1; transform: none; transition: none; }

/* the close button stays in the corner, even while the form scrolls */
.contact__bar { position: sticky; top: 0; z-index: 2; height: 0; display: flex; justify-content: flex-end; }
.contact__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 12px 12px 0 0; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--charcoal); cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contact__close:hover { border-color: var(--olive); background: var(--cream); }
.contact__close svg { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.contact__close:hover svg { transform: rotate(90deg); }

/* desktop: the heading sits in a cream, faintly gridded column beside the form */
.contact__layout {
  --aside: clamp(290px, 35%, 340px);
  position: relative; display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro main" "direct main";
}
.contact__layout::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--aside); pointer-events: none;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(to bottom, rgba(243, 238, 229, 0) 30%, var(--cream) 85%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) -1px -1px / 36px 36px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) -1px -1px / 36px 36px,
    var(--cream);
}
.contact__intro { grid-area: intro; position: relative; padding: 54px 34px 24px 38px; }
.contact__main { grid-area: main; position: relative; padding: 54px 44px 40px; }
.contact__direct { grid-area: direct; position: relative; align-self: end; margin: 0 34px 36px 38px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact .display { margin-top: 12px; justify-items: start; text-align: left; }
.contact .display__caps { font-size: clamp(2.625rem, 2.2rem + 1.3vw, 3.5rem); }
.contact .display__script { font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.25rem); margin-left: -0.06em; padding-inline: 0 0.16em; }
.contact__lede { margin-top: 14px; max-width: 30ch; font-size: var(--fs-body); line-height: 1.6; text-wrap: balance; }

/* the form uses the same fields as the rental inquiry */
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.contact textarea.field__input { min-height: 136px; }
.contact__select { position: relative; }
.contact__select .field__input { padding-right: 46px; font-family: var(--font-text); color: var(--charcoal); cursor: pointer; text-overflow: ellipsis; }
.contact__select .field__input:invalid { color: var(--olive); }
.contact__select option { color: var(--charcoal); }
.contact__chevron { position: absolute; top: 50%; right: 16px; width: 16px; height: 16px; margin-top: -8px; color: var(--olive); pointer-events: none; }
.contact__actions { margin-top: 24px; }
.contact__actions .btn { width: 100%; justify-content: space-between; }
.contact__status:not(:empty) {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r-ctl);
  background: var(--ph-olive); box-shadow: inset 0 0 0 1px rgba(35, 31, 32, 0.12);
  font-size: var(--fs-small); line-height: 1.5;
}
.contact__status.is-error { background: #F4E6E1; box-shadow: inset 0 0 0 1px rgba(138, 59, 42, 0.35); }
.contact__status p + p { margin-top: 4px; }
.contact__status a, .contact__copy { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact__copy { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.contact__direct-title { font-size: var(--fs-label); font-weight: 600; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.contact__direct-links { margin-top: 2px; display: flex; flex-direction: column; align-items: flex-start; }
.contact__direct-links .textlink { min-height: 40px; font-size: var(--fs-small); }

/* sent: a short thank-you in place of the form */
.contact__main.is-done { display: flex; flex-direction: column; justify-content: center; }
.contact__done { display: flex; flex-direction: column; align-items: flex-start; animation: contact-rise 0.6s var(--ease) both; }
.contact__check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--olive); color: var(--paper); }
.contact__check svg { width: 32px; height: 32px; }
.contact__check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: contact-draw 0.55s 0.25s var(--ease) forwards; }
.contact .contact__done-title { margin-top: 20px; }
.contact__done-title:focus { outline: none; }
.contact__done .display__caps { font-size: clamp(2.375rem, 2rem + 1.2vw, 3.125rem); }
.contact__done .display__script { font-size: clamp(2.25rem, 1.9rem + 1.1vw, 3rem); }
.contact__done-copy { margin-top: 12px; max-width: 34ch; font-size: var(--fs-lede); line-height: 1.55; }
.contact__done-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.contact__done-actions .btn { min-width: 140px; }
.contact__again {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--olive); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.contact__again:hover { text-decoration-thickness: 2px; }
@keyframes contact-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes contact-draw { to { stroke-dashoffset: 0; } }

/* tablets: one column, heading on top */
@media (max-width: 899.98px) {
  .contact__panel { width: min(100%, 640px); }
  .contact__layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "main" "direct"; }
  .contact__layout::before { display: none; }
  .contact__intro {
    padding: 34px 76px 26px 32px; border-bottom: 1px solid var(--line);
    background:
      linear-gradient(to right, var(--grid-line) 1px, transparent 1px) -1px -1px / 36px 36px,
      linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) -1px -1px / 36px 36px,
      var(--cream);
  }
  .contact__main { padding: 28px 32px 8px; }
  .contact__direct { align-self: auto; margin: 18px 32px 30px; }
  .contact__direct-links { flex-direction: row; flex-wrap: wrap; gap: 0 22px; }
}
/* phones: a sheet that rises from the bottom of the screen */
@media (max-width: 599.98px) {
  .contact { padding: max(12px, env(safe-area-inset-top)) 0 0; }
  .contact[open] { place-items: end stretch; }
  .contact__panel {
    width: 100%; border-width: 1px 0 0; border-radius: 12px 12px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    opacity: 1; transform: translateY(100%);
    transition: transform 0.5s var(--ease);
  }
  .contact.is-open .contact__panel { transform: none; }
  .contact.is-closing .contact__panel { transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1); }
  .contact__close { margin: 12px 12px 0 0; }
  .contact__intro { padding: 26px 68px 22px 20px; }
  .contact__main { padding: 22px 20px 4px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact__direct { margin: 16px 20px 24px; }
}
/* phones on their side: a shorter heading so the form shows sooner */
@media (max-width: 899.98px) and (max-height: 520px) {
  .contact__intro { padding-top: 22px; padding-bottom: 18px; }
  .contact .display { margin-top: 8px; }
  .contact .display__caps { font-size: 2.125rem; }
  .contact .display__script { font-size: 2rem; }
  .contact__lede { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact__panel, .contact.is-closing .contact__panel, .contact__reveal { transform: none !important; }
  .contact__reveal { opacity: 1 !important; transition-delay: 0s !important; }
  .contact__done, .contact__check path { animation: none; }
  .contact__check path { stroke-dashoffset: 0; }
}
