/* STU Golf Studio — new site (preview at /new until launch).
   Brand: STU Golf Studio design system. Warm White page, black type, Marine field.
   Type: Baton Nouveau Condensed Italic speaks, Baton Nouveau Regular explains,
   IBM Plex Mono for prices and button labels. Square corners. No bold. */

@font-face {
  font-family: "Baton Nouveau Condensed";
  src: url("assets/new/fonts/BatonNouveau-CondensedRegularItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baton Nouveau";
  src: url("assets/new/fonts/BatonNouveau-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page: #fbf8f2;
  --ink: #000;
  --marine: #1e4282;
  --white: #fff;
  --voice: "Baton Nouveau Condensed", sans-serif;
  --text: "Baton Nouveau", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  transition: background-color 0.9s linear;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--page);
}


/* —— Opening: full-screen photo, time and headline in the sky —— */
.open {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}
.open__slide {
  position: absolute;
  inset: 0;
  background: var(--sky, #000);
  opacity: 0;
  transition: opacity 0.9s linear;
}
.open__slide img:not([src]) {
  visibility: hidden;
}
.open__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Blend the top edge of the photo into the browser bar's tint. */
.open__slide::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16%;
  background: linear-gradient(var(--sky, transparent), transparent);
  z-index: 1;
}
.open__lock {
  z-index: 2;
  position: absolute;
  left: 0;
  right: 0;
  top: 7.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: min(2.8vw, 13px);
  color: var(--page);
  font-family: var(--voice);
  font-style: italic;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);
}
.open__time {
  font-size: min(4.1vw, 19px);
  line-height: 1;
}
.open__line {
  font-size: min(6.45vw, 30px);
  line-height: 1.08;
  white-space: nowrap;
}
.open__slide.is-on {
  opacity: 1;
}
/* Without scripts, show the first photo. */
.open:not(.is-live) .open__slide:first-child {
  opacity: 1;
}

/* —— What it is —— */
.what {
  padding: 64px var(--pad) 56px;
}
.what__title {
  font-family: var(--voice);
  font-style: italic;
  font-size: min(13.3vw, 62px);
  line-height: 1.03;
  white-space: nowrap;
}
/* 24/7: the slash leans into the 7, so give it room */
.tf { white-space: nowrap; }
.tf__s { margin: 0 0.05em 0 0.02em; }
.what__title .tf__s, .studio__title .tf__s { margin: 0 0.045em 0 0.015em; }
.what__lead {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.3;
  text-wrap: balance;
}

/* —— The studio: swipe —— */
.studio-head {
  display: none;
}
.studio {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad);
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
}
.studio::-webkit-scrollbar {
  display: none;
}
.studio__card {
  flex: 0 0 302px;
  scroll-snap-align: start;
  min-width: 0;
}
.studio__card img {
  width: 302px;
  height: 224px;
  object-fit: cover;
}
.studio__title {
  margin-top: 18px;
  font-family: var(--voice);
  font-style: italic;
  font-size: 30px;
  line-height: 1.05;
}
.studio__body {
  margin-top: 10px;
  font-size: 17px;
}

/* —— Membership —— */
.plans {
  padding: 88px var(--pad);
}
.section-title {
  font-family: var(--voice);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}
/* One block per plan, the same on every screen, separated by hairlines.
   No boxes: on this page an outlined box is something you press. The plan
   name labels the block, the hours are the headline, the price is set in
   the price face, and access and guests sit under it. Stacked on the phone,
   side by side on desktop. */
.levels {
  margin-top: 28px;
  border-top: 1px solid var(--ink);
}
.level {
  border-bottom: 1px solid var(--ink);
  padding: 26px 0 28px;
}
/* Spacing rule, same on phone and desktop: lines that belong together sit
   close (hours with price, access with guests); a gap twice that size
   separates the name, the offer, and what comes with it; the space between
   plans is larger again. Desktop is the phone scaled by 1.5. */
.level__name {
  font-family: var(--text);
  font-size: 21px;
  line-height: 1;
}
.level__hours {
  margin-top: 19px;
  font-family: var(--voice);
  font-style: italic;
  font-size: 64px;
  line-height: 0.9;
}
.level__price {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1.2;
}
.level__per {
  font-size: 15px;
}
.level__more {
  margin-top: 19px;
  font-size: 17px;
  line-height: 1.5;
}

.plans__corp {
  margin-top: 20px;
  font-size: 17px;
}
.plans__corp a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* —— Request a tour —— */
.tour {
  background: var(--marine);
  color: var(--white);
  padding: 64px var(--pad);
}
.tour__intro {
  margin-top: 28px;
}
.tour__join {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
/* Every field is the same thing: a plain-language label above a single
   white line. No boxes. Same on phone and desktop. */
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.field__label {
  font-size: 15px;
}
.field__input,
.field__select {
  width: 100%;
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field__select option {
  color: #000;
}
/* The note is one line that grows as you type. */
.field__textarea {
  width: 100%;
  min-height: 44px;
  field-sizing: content;
  border: 0;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.4;
  padding: 9px 0;
  resize: none;
}
.field__textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.field__input:focus-visible,
.field__select:focus-visible,
.field__textarea:focus-visible,
.seg__btn:focus-visible,
.btn:focus-visible,
.form__submit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.field__input:focus-visible,
.field__select:focus-visible,
.field__textarea:focus-visible {
  outline-offset: 0;
}
/* Choose one of two: a segmented bar, as on an iPhone. One thin outline
   split in two; the chosen half is filled. It is the only outlined control
   in the form. */
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid var(--white);
}
.seg__btn {
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  padding: 0;
  cursor: pointer;
}
.seg__btn.is-active {
  background: var(--white);
  color: var(--marine);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__submit {
  height: 52px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 15px;
  cursor: pointer;
}
.form__submit:disabled {
  opacity: 0.6;
}
/* A missed field: its line thickens and a short message says what is
   needed. No colour change; the page keeps to white on Marine. */
.field.is-bad .field__input,
.field.is-bad .field__select {
  border-bottom-width: 2px;
}
.field__error {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
}
.form__status:empty {
  display: none;
}
.form__status {
  min-height: 1.5em;
  font-size: 15px;
}

/* —— How membership works —— */
/* The last row of the membership block: it shares the block's hairlines
   instead of adding a box. A down arrow says it opens; it flips when open. */
.works__panel {
  border-bottom: 1px solid var(--ink);
}
.works__title {
  font-size: 17px;
}
.works__panel summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  list-style: none;
  cursor: pointer;
}
.works__panel summary::-webkit-details-marker {
  display: none;
}
.works__chevron {
  flex: none;
  transition: transform 0.2s;
}
.works__panel[open] .works__chevron {
  transform: rotate(180deg);
}
.works__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0 32px;
}
.works__heading {
  font-family: var(--voice);
  font-style: italic;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.works__sign {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 12px;
}
.works__photo {
  width: 132px;
  height: 176px;
  object-fit: cover;
  flex: none;
}
.works__name {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 14px;
}

/* —— Footer —— */
.footer {
  padding: 56px var(--pad) 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer__logo {
  width: 96px;
  height: 80px;
}
.footer__lines {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}
.footer__what {
  margin-bottom: 14px;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.4;
}
.footer__bar {
  white-space: nowrap;
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
}

/* —— Fixed buttons —— */
.cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--page);
  border-top: 1px solid var(--ink);
  transition: opacity 0.25s linear, visibility 0s linear 0s;
}
/* Away over the opening photo and while the tour form is on screen.
   visibility: hidden also keeps Safari from tinting its bottom bar from the
   buttons, so the photo shows through under the toolbar. */
.has-js .cta:not(.is-ready),
.cta.is-away {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s linear, visibility 0s linear 0.25s;
}
.cta__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.btn {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  text-decoration: none;
}
.btn--join {
  background: var(--marine);
  color: var(--white);
  border: 1px solid var(--marine);
}
.btn--tour {
  background: var(--page);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.what__logo,
.what__actions,
.studio-nav {
  display: none;
}

/* —— The other pages (privacy, terms, page not found). Same paper, type
   and footer as the homepage. The logo at the top goes home. —— */
.page--plain .footer {
  padding-bottom: 56px;
}
.top {
  padding: 32px var(--pad) 0;
}
.top__logo {
  display: block;
  width: 72px;
  height: 60px;
}
.doc {
  padding: 56px var(--pad) 72px;
}
.doc__body {
  margin-top: 28px;
}
.doc__body h2 {
  margin-top: 44px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 400;
}
.doc__body h3 {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}
.doc__body p,
.doc__body ul {
  margin-top: 12px;
}
.doc__body ul {
  padding-left: 1.15em;
  list-style: disc;
}
.doc__body li + li {
  margin-top: 6px;
}
.doc__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc__body > :first-child {
  margin-top: 0;
}
.lost__text {
  margin-top: 28px;
}
.lost .btn {
  margin-top: 32px;
}

/* Tour request received: the form gives way to a short confirmation in
   the same place. */
.tour__done {
  display: none;
}
.tour.is-done .tour__ask,
.tour.is-done .tour__intro,
.tour.is-done .form {
  display: none;
}
.tour.is-done {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.tour.is-done .tour__done {
  display: block;
}
.tour__done p {
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.3;
}
.tour__done:focus {
  outline: none;
}

/* —— Tablets and wider. The same page as the phone, wider.
   Opening: the whole photo at full width, time and headline centred in the
   sky. You scroll down the photo to the member, then into the page.
   (Landscape windows from 900px replace this with the split opening below.)
   Below: the studio photos scroll sideways with arrows and the three plans
   sit side by side. —— */
@media (min-width: 700px) {
  :root {
    --pad: clamp(32px, 5vw, 80px);
    --wide: 1200px;
    --side: max(var(--pad), calc((100% - var(--wide)) / 2));
  }
  .page {
    max-width: none;
    margin: 0;
  }
  .open {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .open__slide::before {
    display: none;
  }
  .open__lock {
    top: 5.6vw;
    gap: 1.3vw;
  }
  .open__time {
    font-size: 2.6vw;
  }
  .open__line {
    font-size: 4.6vw;
  }
  .what {
    padding: 136px var(--side) 0;
  }
  .what__title {
    font-size: min(104px, 13.3vw);
  }
  .what__lead {
    margin-top: 26px;
    font-size: clamp(21px, 3.4vw, 28px);
    max-width: 20em;
  }

  .studio,
  .plans,
  .tour,
  .footer {
    padding-left: var(--side);
    padding-right: var(--side);
  }
  /* Arrows share the statement's last line, on the right. */
  .studio-head {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: -52px;
    padding: 0 var(--side);
  }
  .studio-head .section-title {
    display: none;
  }
  .studio-nav {
    display: flex;
    gap: 12px;
  }
  .studio-nav__btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s linear;
  }
  .studio-nav__btn:disabled {
    opacity: 0.25;
    cursor: default;
  }
  .studio {
    gap: 24px;
    padding-top: 72px;
    scroll-padding-left: var(--side);
  }
  .studio__card {
    flex: 0 0 404px;
  }
  .studio__card img {
    width: 404px;
    height: 300px;
  }
  .studio__title {
    font-size: 36px;
  }
  .studio__body {
    font-size: 18px;
  }

  .section-title {
    font-size: 64px;
  }
  .plans {
    padding-top: 152px;
    padding-bottom: 152px;
  }
  /* Three equal text columns: the first starts at the margin, the next two
     start 32px after their divider. */
  .levels {
    display: grid;
    grid-template-columns: calc((100% - 64px) / 3) 1fr 1fr;
    margin-top: 48px;
    border-bottom: 1px solid var(--ink);
  }
  .level {
    border-bottom: 0;
    padding: 40px clamp(16px, 2.2vw, 32px) 44px 0;
  }
  .level + .level {
    border-left: 1px solid var(--ink);
    padding-left: clamp(16px, 2.2vw, 32px);
  }
  .level__name {
    font-size: clamp(21px, 2.2vw, 28px);
  }
  .level__hours {
    margin-top: clamp(22px, 2.4vw, 31px);
    font-size: clamp(52px, 7.4vw, 96px);
  }
  .level__price {
    margin-top: 6px;
    font-size: clamp(21px, 2.2vw, 28px);
  }
  .level__per {
    font-size: clamp(15px, 1.4vw, 18px);
  }
  .level__more {
    margin-top: clamp(22px, 2.5vw, 32px);
    font-size: clamp(17px, 1.4vw, 18px);
  }
  
  .tour {
    padding-top: 128px;
    padding-bottom: 128px;
  }
  .tour__intro {
    margin-top: 28px;
    font-size: 18px;
    max-width: 30em;
  }
  .form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 48px;
  }
  /* Paired fields share a row; controls are no wider than they need to be.
     The note spans both columns. The button is sized to its label and sits
     at the left edge of the fields, as on the rest of the page. */
  .form > :nth-child(n + 7) {
    grid-column: 1 / -1;
  }
  .form__submit {
    justify-self: start;
    padding: 0 56px;
  }
  /* The bar ends on the same line as the field beside it. */
  .field__input,
  .field__select,
  .field__textarea,
  .seg__btn {
    font-size: 18px;
  }
  .seg__btn {
    height: 34px;
  }

  .works__title {
    font-size: 18px;
  }
  .plans__corp {
    margin-top: 24px;
    font-size: 18px;
  }
  .works__panel summary {
    min-height: 72px;
  }
  .works__sign {
    gap: 24px;
  }
  .works__photo {
    width: 168px;
    height: 224px;
  }
  .works__body {
    margin-left: calc((100% + 32px) / 3);
    gap: 28px;
    padding-top: 16px;
    font-size: 18px;
  }
  .footer {
    padding-top: 96px;
    padding-bottom: 72px;
  }
  #plans,
  #tour {
    scroll-margin-top: 40px;
  }

  /* Buttons: away over the photo, then a bar across the top. */
  .cta {
    top: 0;
    bottom: auto;
    border-top: 0;
    border-bottom: 1px solid var(--ink);
  }
  .cta__inner {
    max-width: none;
    margin: 0;
    padding: 14px var(--side);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  .cta .btn {
    height: 44px;
    padding: 0 24px;
  }

}

@media (min-width: 900px) and (orientation: landscape) {
  /* —— The desktop opening: the portrait photo on the left at
     full height, logo, statement and buttons on the right. Time and headline
     follow the 4:5 Feed ad: left-aligned. —— */
  .hero-split {
    --hero-h: max(100vh, 720px);
    --photo: min(80vh, 50vw);
    --pane: calc(100vw - var(--photo));
  }
  .hero-split .page {
    position: relative;
  }
  .hero-split .open {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--photo);
    height: var(--hero-h);
    min-height: 0;
    aspect-ratio: auto;
    container-type: inline-size;
  }
  .hero-split .open__lock {
    left: 7.4cqw;
    right: 7.4cqw;
    top: 7.4cqw;
    align-items: flex-start;
    text-align: left;
    gap: 2.2cqw;
  }
  .hero-split .open__time {
    font-size: 4.07cqw;
  }
  .hero-split .open__line {
    font-size: 6.48cqw;
  }
  .hero-split .what {
    position: relative;
    margin-left: var(--photo);
    height: var(--hero-h);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--pad) 0 clamp(48px, 7vw, 120px);
  }
  .hero-split .what__logo {
    display: block;
    position: absolute;
    left: clamp(48px, 7vw, 120px);
    top: 56px;
    width: 96px;
    height: 80px;
  }
  .hero-split .what__title {
    font-size: min(104px, calc(var(--pane) * 0.125));
  }
  .hero-split .what__lead {
    font-size: clamp(19px, calc(var(--pane) * 0.037), 28px);
    margin-top: clamp(14px, calc(var(--pane) * 0.03), 22px);
    max-width: none;
  }
  .hero-split .what__actions {
    display: flex;
    gap: 10px;
    margin-top: 48px;
  }
  .hero-split .what__actions .btn {
    height: 52px;
    padding: 0 32px;
  }
  .hero-split .studio-head {
    justify-content: space-between;
    margin-top: 0;
    padding-top: 136px;
  }
  .hero-split .studio-head .section-title {
    display: block;
  }
  .hero-split .studio {
    padding-top: 48px;
  }
}

@media (min-width: 700px) {
  .top {
    padding: 56px var(--side) 0;
  }
  .top__logo {
    width: 96px;
    height: 80px;
  }
  .doc {
    padding: 96px var(--side) 128px;
  }
  .doc__body {
    margin-top: 40px;
    max-width: 40em;
    font-size: 18px;
  }
  .doc__body h2 {
    margin-top: 56px;
    font-size: 28px;
  }
  .doc__body p,
  .doc__body ul {
    margin-top: 14px;
  }
  .lost__text {
    font-size: 18px;
  }
  .lost .btn {
    display: inline-flex;
    padding: 0 56px;
  }
  .tour__done p {
    margin-top: 24px;
    font-size: 28px;
  }
}

/* Tour form: title and intro on the left, fields on the right, once the
   window is wide enough for both. */
@media (min-width: 1100px) {
  .tour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 32px;
    align-items: start;
    grid-template-rows: auto 1fr;
  }
  .tour__intro {
    grid-column: 1;
    grid-row: 2;
    max-width: 17em;
  }
  .form {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 8px;
  }
  .footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .doc--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 32px;
    align-items: start;
  }
  .doc--split .doc__body {
    margin-top: 8px;
  }
}
