@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-500.woff2") format("woff2");
}

:root {
  --navy: #214076;   /* the background of their logo */
  --cobalt: #0a5bb0; /* the blue of their walls */
  --red: #d9141e;    /* the runner of their logo, actions only */
  --paper: #f3f5f8;  /* their white walls */
  --ink: #101a2c;
  --sky: #bfddee;    /* the pale stripes of the logo */
  --on-navy: #e8eff6;
  --rule-dark: rgba(16, 26, 44, 0.14);
  --rule-light: rgba(255, 255, 255, 0.18);
  --radius: 4px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  padding-bottom: 88px; /* room for the pinned action */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 300ms ease;
}
.btn--big { min-height: 56px; padding: 16px 32px; font-size: 18px; }

/* Header */
.top { background: var(--navy); color: #fff; }
.top__in { display: flex; align-items: center; gap: 16px; height: var(--top); }
.top__logo { margin-right: auto; }
.top__logo img { height: 40px; width: auto; }
.top__tel { font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; }
.top__book { display: none; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--top));
  min-height: calc(100svh - var(--top));
  background: var(--navy);
  color: #fff;
}
.hero__photo { flex: 0 0 31vh; flex-basis: 31svh; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__panel { flex: 1 0 auto; display: flex; align-items: flex-end; padding: 24px var(--gutter) 96px; }
.hero__text { width: 100%; }
.hero__name {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: calc((100vw - 2 * var(--gutter)) / 6);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.hero__name span { display: block; }
.hero__name span:last-child { color: var(--sky); }
.hero__lead { margin-top: 16px; font-size: 18px; line-height: 1.45; color: var(--on-navy); max-width: 34em; }
.hero__proof { margin-top: 16px; font-size: 16px; font-weight: 500; }
.stars { color: var(--sky); letter-spacing: 0.08em; margin-right: 4px; }
.hero__today { margin-top: 4px; font-size: 16px; color: var(--on-navy); }
.hero__today::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sky);
  vertical-align: 2px;
}
.hero__today.is-open::before { background: #fff; }
.hero__book { display: none; }
.hero__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.link-light {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--sky);
}

/* Quote */
.quote { padding: 72px 0 56px; }
.quote__big p {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.28;
  max-width: 30em;
  text-wrap: pretty;
}
.quote__big footer { margin-top: 24px; font-size: 15px; color: var(--cobalt); font-weight: 500; }

/* Session */
.session { padding: 32px 0 80px; }
.session__grid { display: grid; gap: 40px; }
.session__num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 160px;
  line-height: 0.78;
  color: var(--cobalt);
  letter-spacing: -0.01em;
}
.session__unit {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}
.session__line { display: block; margin-top: 16px; font-weight: 500; font-size: 21px; line-height: 1.35; }
.session__list { margin-top: 32px; }
.session__list li { padding: 16px 0; border-top: 1px solid var(--rule-dark); }
.session__list li:last-child { border-bottom: 1px solid var(--rule-dark); }
.session__photo img { width: 100%; aspect-ratio: 900 / 1080; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); }

/* Team, the line-up */
.team { background: var(--navy); color: #fff; padding: 80px 0 72px; }
.team__head h2, .close h2 { text-wrap: balance; }
.team__head h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 0.9;
}
.team__head p { margin-top: 16px; color: var(--on-navy); font-size: 18px; max-width: 30em; }
.roster { margin-top: 48px; counter-reset: none; }
.player {
  display: grid;
  grid-template-columns: 96px 1fr;
  column-gap: 16px;
  row-gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule-light);
}
.player:last-child { border-bottom: 1px solid var(--rule-light); }
.player__num {
  grid-column: 2; grid-row: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--sky);
  letter-spacing: 0.04em;
}
.player__photo {
  grid-column: 1; grid-row: 1 / span 2;
  width: 96px; height: 128px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cobalt);
}
.player__photo--none { display: flex; align-items: flex-end; padding: 8px; }
.player__photo--none span { font-size: 13px; color: var(--sky); }
.player__main { grid-column: 2; grid-row: 2; padding-top: 4px; min-width: 0; }
.player__name {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 48px;
  line-height: 0.9;
}
.player__skills { margin-top: 12px; color: var(--on-navy); font-size: 16px; line-height: 1.5; }
.player__quote { margin-top: 16px; }
.player__quote p { font-weight: 500; font-size: 17px; line-height: 1.45; color: #fff; }
.player__quote footer { margin-top: 4px; font-size: 14px; color: var(--sky); }
.player__side { grid-column: 1 / -1; grid-row: 3; margin-top: 20px; }
.player__cv { font-size: 15px; color: var(--sky); line-height: 1.6; }
.player__book {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 0;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--red);
}

/* Find us */
.find { padding: 80px 0; }
.find__address {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: calc((100vw - 2 * var(--gutter)) / 9.4);
  line-height: 0.95;
  white-space: pre-line;
}
.find__grid { display: grid; gap: 48px; margin-top: 48px; }
.find__label {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--cobalt);
  margin-bottom: 12px;
}
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th, .hours td { padding: 12px 0; border-top: 1px solid var(--rule-dark); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--rule-dark); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours td span + span::before { content: " · "; }
.hours .off { color: rgba(16, 26, 44, 0.55); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; color: var(--cobalt); }
.find__side p + p { margin-top: 16px; }
.find__tel { font-weight: 500; color: var(--red); text-underline-offset: 4px; }
.find__links a {
  display: block;
  padding: 8px 0;
  font-weight: 500;
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Close */
.close { background: var(--cobalt); color: #fff; padding: 72px 0; }
.close h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 40px;
  line-height: 0.95;
}
.close p { margin-top: 16px; font-size: 18px; }
.close p a { font-weight: 500; text-underline-offset: 4px; }
.close .btn { margin-top: 32px; }

/* Footer */
.foot { background: var(--navy); color: var(--on-navy); padding: 48px 0 32px; font-size: 15px; }
.foot__in { display: grid; gap: 24px; }
.foot__logo { width: 180px; }
.foot__contact a { color: #fff; font-weight: 500; text-decoration: none; font-size: 17px; }
.foot__since { color: var(--sky); }
.foot__legal a { margin-right: 16px; color: var(--sky); }
.foot__by { color: var(--sky); }

/* The one action pinned on the phone */
.pin {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(16, 26, 44, 0.28);
}

/* Section reveal, once */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover, .pin:hover { background: #b50f17; }
  .link-light:hover, .player__book:hover { text-decoration-color: #fff; }
  .find__links a:hover { color: #b50f17; }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__name { font-size: calc((100vw - 2 * var(--gutter)) / 7.4); }
  .quote__big p { font-size: 34px; }
  .player { grid-template-columns: 136px 1fr; column-gap: 24px; }
  .player__photo { width: 136px; height: 182px; }
  .player__side { grid-column: 2; }
  .find__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --gutter: 48px; --top: 80px; }
  body { padding-bottom: 0; }
  .pin { display: none; }
  .top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; }
  .top__logo img { height: 48px; }
  .top__in { gap: 32px; }
  .top__book { display: inline-flex; }

  .hero {
    display: grid;
    grid-template-columns: 11fr 9fr;
    height: 100vh;
    min-height: 640px;
    padding-top: var(--top);
  }
  .hero__photo { order: 2; height: 100%; }
  .hero__panel { order: 1; padding: 48px var(--gutter) 64px; }
  .hero__name { font-size: min(calc((55vw - 2 * var(--gutter)) / 5.95), 132px); }
  .hero__book { display: inline-flex; }
  .hero__call { display: none; }
  .hero__lead { font-size: 21px; margin-top: 24px; }
  .hero__proof, .hero__today { font-size: 17px; }
  .hero__actions { margin-top: 32px; }

  .quote { padding: 120px 0 40px; }
  .quote__big p { font-size: 46px; line-height: 1.2; max-width: 24em; }

  .session { padding: 48px 0 128px; }
  .session__grid { grid-template-columns: 7fr 5fr; gap: 96px; align-items: center; }
  .session__num { font-size: 260px; }
  .session__unit { font-size: 56px; }
  .session__line { font-size: 26px; }
  .session__list { margin-top: 48px; font-size: 19px; max-width: 36em; }
  .session__photo img { aspect-ratio: 900 / 1192; }

  .team { padding: 128px 0 112px; }
  .team__head { display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: end; }
  .team__head h2 { font-size: 112px; }
  .team__head p { font-size: 20px; }
  .roster { margin-top: 72px; }
  .player {
    grid-template-columns: 56px 168px minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 40px;
    padding: 40px 0;
    align-items: start;
  }
  .player__num { grid-column: 1; grid-row: 1; font-size: 22px; padding-top: 8px; }
  .player__photo { grid-column: 2; grid-row: 1; width: 168px; height: 224px; }
  .player__main { grid-column: 3; grid-row: 1; padding-top: 0; }
  .player__name { font-size: 96px; line-height: 0.82; }
  .player__skills { font-size: 18px; margin-top: 20px; max-width: 34em; }
  .player__quote p { font-size: 19px; }
  .player__side { grid-column: 4; grid-row: 1; margin-top: 8px; }
  .player__cv { font-size: 16px; }

  .find { padding: 128px 0; }
  .find__address { font-size: 104px; line-height: 0.88; }
  .find__grid { grid-template-columns: 7fr 5fr; gap: 96px; margin-top: 72px; }
  .hours { font-size: 19px; }

  .close { padding: 112px 0; }
  .close__in { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 32px 96px; align-items: end; }
  .close h2 { font-size: 72px; grid-column: 1 / -1; max-width: 13em; }
  .close p { font-size: 20px; margin-top: 0; }
  .close .btn { margin-top: 0; justify-self: end; }

  .foot__in { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; }
  .foot__by { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pin { transition: none; }
}
