/* PhysioSport concept demo, BASE 38, 28-07-2026 */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/manrope-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('fonts/ibmplexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('fonts/ibmplexmono-500.woff2') format('woff2'); }

:root {
  --ink: #14181c;
  --ink-soft: #3c464e;
  --paper: #ffffff;
  --mist: #eef5f9;
  --blue: #60c0e8;
  --blue-text: #16739e;
  --line: #dbe7ee;
  --star: #eea31d;
  --r: 4px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  max-width: 100%;
  overflow-x: hidden;
}
body { max-width: 100%; overflow-x: clip; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-text); }
button { font: inherit; }
.mobile-only { display: none !important; }
.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  padding: 11px 16px;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  color: #fff;
  background: var(--ink);
  border-radius: var(--r);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.cards,
.team-grid,
.lab-grid,
.loc-grid { list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* Demo banner */
.demo-note {
  background: var(--ink);
  color: #cfd8de;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 16px;
  text-align: center;
}
.demo-note a { color: var(--blue); text-decoration: none; }
.demo-note a:hover { text-decoration: underline; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 74px;
}
.site-head img { width: 168px; height: auto; flex: none; }
.site-head nav { display: flex; gap: 26px; margin-left: auto; }
.site-head nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
}
.site-head nav a:hover { color: var(--blue-text); }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}
.btn:hover { background: var(--mist); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #2a343c; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.btn.blue:hover { background: #7fcdee; border-color: #7fcdee; }
.site-head .btn { padding: 10px 20px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch;
}
.hero-copy {
  padding: 84px 56px 84px max(28px, calc((100vw - 1240px) / 2 + 28px));
  align-self: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero-copy h1 em { font-style: normal; color: var(--blue-text); }
.hero-copy .lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 26px;
}
.scores { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 30px; }
.score { font-family: var(--mono); font-size: 14px; color: var(--ink-soft); }
.score b { color: var(--ink); font-size: 16px; }
.score .st { color: var(--star); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { min-height: 480px; }
.hero-photo picture { width: 100%; height: 100%; display: block; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 88px 0; }
.sec-head { max-width: 62ch; margin-bottom: 46px; }
.sec-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.sec-head p { color: var(--ink-soft); font-size: 17.5px; }

/* Treat */
.treat { background: var(--mist); }
.treat-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 42px;
  align-items: start;
}
.treat-photo { position: sticky; top: 98px; }
.treat-photo img { border-radius: var(--r); width: 100%; height: 520px; object-fit: cover; }
.treat-photo figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 28px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.person { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.person img { width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; }
.person .p-body { padding: 18px 20px 22px; }
.person h3 { font-size: 18.5px; font-weight: 700; }
.person .p-role { color: var(--blue-text); font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.person .p-loc { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.person p.p-note { font-size: 14.5px; color: var(--ink-soft); }
.team-more { margin-top: 30px; color: var(--ink-soft); font-size: 16px; max-width: 70ch; }

/* Lab */
.lab { background: var(--ink); color: #eef3f6; }
.lab .sec-head h2 { color: #fff; }
.lab .sec-head p { color: #aeb9c1; }
.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lab-card {
  border: 1px solid #2c363e;
  border-radius: var(--r);
  padding: 30px;
  background: #1a2026;
}
.lab-card .tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}
.lab-card h3 { font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.lab-card p { font-size: 15.5px; color: #aeb9c1; }
.lab-photo { margin-top: 26px; border-radius: var(--r); overflow: hidden; }
.lab-photo img { width: 100%; height: 340px; object-fit: cover; }
.lab-photo figcaption { font-family: var(--mono); font-size: 12.5px; color: #87949e; margin-top: 10px; }

/* Quote */
.quote { padding: 72px 0; border-bottom: 1px solid var(--line); }
.quote blockquote {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
  max-width: 30ch;
}
.quote blockquote .st { color: var(--star); }
.quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.loc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.loc img { width: 100%; height: 300px; object-fit: cover; }
.loc .l-body { padding: 26px 28px 30px; }
.loc h3 { font-size: 22px; font-weight: 800; }
.loc .l-side { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.loc address { font-style: normal; color: var(--ink-soft); margin-bottom: 6px; }
.loc .l-tel { font-weight: 700; color: var(--ink); text-decoration: none; }
.loc .l-tel:hover { color: var(--blue-text); }
.loc table { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin: 16px 0 8px; border-collapse: collapse; }
.loc table td { padding: 2px 18px 2px 0; }
.loc .score { display: block; margin-bottom: 18px; }
.loc .btn { width: 100%; text-align: center; }

/* Slot CTA */
.cta { background: var(--mist); text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 10px; }
.cta p { color: var(--ink-soft); max-width: 54ch; }
.cta .hero-ctas { justify-content: flex-end; }

/* Footer */
footer {
  background: var(--ink);
  color: #87949e;
  padding: 42px 0 48px;
  font-size: 13.5px;
}
footer .wrap { display: grid; gap: 8px; max-width: 900px; }
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 28px 48px; }
  .hero-photo { min-height: 340px; order: -1; }
  .treat-grid { grid-template-columns: 1fr; }
  .treat-photo { position: static; }
  .treat-photo img { height: 320px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: 1fr; }
  .cta .wrap { grid-template-columns: 1fr; }
  .cta .hero-ctas { justify-content: flex-start; }
}
@media (max-width: 940px) {
  .site-head nav { display: none; }
}

@media (max-width: 700px) {
  :root { --mobile-gutter: 20px; }
  html { scroll-padding-top: 74px; }
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .wrap { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .mobile-only { display: revert !important; }
  .desktop-only { display: none !important; }

  .demo-note {
    min-height: 30px;
    padding: 7px 12px 6px;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .site-head .wrap {
    height: 62px;
    gap: 14px;
  }
  .site-head img { width: 140px; }
  .site-head .btn {
    min-height: 44px;
    margin-left: auto;
    padding: 9px 20px;
    display: inline-flex;
    align-items: center;
  }

  .hero { padding: 0; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-photo {
    order: 0;
    min-height: 0;
    height: clamp(270px, 39svh, 340px);
  }
  .hero-photo img { object-position: 52% center; }
  .hero-copy {
    order: 1;
    padding: 32px var(--mobile-gutter) 38px;
  }
  .hero-copy h1 {
    max-width: 11ch;
    margin-bottom: 14px;
    font-size: clamp(35px, 10vw, 42px);
    line-height: 1.02;
    letter-spacing: -1.1px;
  }
  .hero-copy .lede {
    max-width: 34ch;
    margin-bottom: 20px;
    font-size: 16.5px;
    line-height: 1.5;
  }
  .scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }
  .score {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--mist);
    font-size: 11.5px;
    line-height: 1.45;
  }
  .score b { font-size: 15px; }
  .hero-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero .hero-ctas { display: none; }
  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
    padding: 11px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
  }

  .sec-head { margin-bottom: 26px; }
  .sec-head h2 {
    margin-bottom: 9px;
    font-size: 30px;
    line-height: 1.08;
  }
  .sec-head p {
    max-width: 34ch;
    font-size: 15.5px;
    line-height: 1.5;
  }

  .treat-grid { display: block; }
  .treat-photo {
    margin: 0 0 22px;
    position: static;
  }
  .treat-photo img {
    width: 100%;
    height: 184px;
    object-position: center 44%;
  }
  .treat-photo figcaption { display: none; }

  .carousel-rail {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-rail::-webkit-scrollbar { display: none; }
  .carousel-slide {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .carousel-rail:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
  }
  .carousel-controls.mobile-only {
    --carousel-progress: 0.1667;
    min-height: 44px;
    margin-top: 16px;
    display: grid !important;
    grid-template-columns: 1fr auto 44px 44px;
    align-items: center;
    gap: 8px;
    position: relative;
  }
  .carousel-controls::before,
  .carousel-controls::after {
    content: "";
    width: 86px;
    height: 2px;
    position: absolute;
    bottom: 4px;
    left: 0;
    background: var(--line);
  }
  .carousel-controls::after {
    width: 86px;
    background: var(--blue-text);
    transform: scaleX(var(--carousel-progress));
    transform-origin: left;
  }
  .carousel-hint,
  .carousel-status {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1;
    color: var(--ink-soft);
  }
  .carousel-status { padding-right: 2px; }
  .carousel-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .carousel-controls button:active {
    border-color: var(--blue-text);
    background: var(--mist);
    transform: translateY(1px);
  }
  .carousel-controls button:disabled {
    opacity: 0.32;
    cursor: default;
  }

  .cards { display: flex; }
  .card {
    min-height: 198px;
    padding: 23px 22px 24px;
  }
  .card h3 {
    max-width: 16ch;
    font-size: 19px;
    line-height: 1.2;
  }
  .card p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .team-grid { display: flex; }
  .team-grid .carousel-slide { flex-basis: min(74vw, 288px); }
  .person img {
    height: 260px;
    aspect-ratio: auto;
    object-position: center top;
  }
  .person .p-body {
    min-height: 172px;
    padding: 17px 18px 20px;
  }
  .person h3 {
    font-size: 18px;
    line-height: 1.2;
  }
  .person .p-role { font-size: 13.5px; }
  .person .p-loc { margin: 4px 0 9px; font-size: 10.5px; }
  .person p.p-note {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .team-more {
    margin-top: 20px;
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.5;
  }

  .lab .wrap {
    display: flex;
    flex-direction: column;
  }
  .lab .sec-head { order: 1; }
  .lab-photo {
    order: 2;
    margin: 0 0 22px;
  }
  .lab-photo img { height: 194px; }
  .lab-photo figcaption { display: none; }
  .lab-grid {
    order: 3;
    display: flex;
  }
  .lab .carousel-controls { order: 4; }
  .lab .carousel-controls::before { background: #2c363e; }
  .lab .carousel-controls::after { background: var(--blue); }
  .lab .carousel-hint,
  .lab .carousel-status { color: #aeb9c1; }
  .lab .carousel-controls button {
    color: #fff;
    border-color: #35414a;
    background: #1a2026;
  }
  .lab .carousel-controls button:active { background: #25303a; }
  .lab-card {
    min-height: 238px;
    padding: 25px 23px 26px;
  }
  .lab-card .tag { margin-bottom: 13px; font-size: 10.5px; }
  .lab-card h3 {
    max-width: 16ch;
    font-size: 20px;
    line-height: 1.2;
  }
  .lab-card p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .quote { padding: 43px 0 46px; }
  .quote blockquote {
    font-size: 23px;
    line-height: 1.3;
  }
  .quote cite { margin-top: 12px; font-size: 11.5px; }

  .loc-grid { display: flex; }
  .loc-grid .carousel-slide { flex-basis: min(86vw, 336px); }
  .loc img { height: 178px; }
  .loc .l-body { padding: 21px 21px 23px; }
  .loc h3 { font-size: 20px; }
  .loc .l-side { margin-bottom: 9px; font-size: 10.5px; }
  .loc address { font-size: 14px; }
  .loc table {
    width: 100%;
    margin: 13px 0 7px;
    font-size: 11.5px;
  }
  .loc table td:last-child {
    padding-right: 0;
    text-align: right;
  }
  .loc .score {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 11.5px;
  }
  .loc .btn {
    display: none;
  }

  .cta { display: none; }

  .mobile-book-dock.mobile-only {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(20, 24, 28, 0.12);
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .mobile-book-dock a {
    min-height: 52px;
    padding: 7px 8px 8px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-book-dock a:first-child {
    color: var(--ink);
    background: var(--blue);
  }
  .mobile-book-dock a:active { transform: translateY(1px); }
  .mobile-book-dock span {
    margin-bottom: 2px;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.7;
    text-transform: uppercase;
  }

  footer {
    padding: 38px 0 calc(112px + env(safe-area-inset-bottom));
    font-size: 11.5px;
    line-height: 1.55;
  }
  footer .wrap { gap: 10px; }

  a:focus-visible,
  button:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid var(--blue-text);
    outline-offset: 3px;
    scroll-margin-block: 82px 100px;
  }
  .carousel-rail:focus-visible {
    outline-color: var(--blue);
    outline-offset: -4px;
  }
}

@media (max-width: 360px) {
  :root { --mobile-gutter: 16px; }
  .demo-note { font-size: 9.5px; }
  .site-head img { width: 126px; }
  .site-head .btn { padding-right: 17px; padding-left: 17px; }
  .hero-copy h1 { font-size: 34px; }
  .scores { grid-template-columns: 1fr; }
  .score { padding: 8px 10px; }
  .carousel-slide { flex-basis: min(80vw, 288px); }
  .team-grid .carousel-slide { flex-basis: min(78vw, 276px); }
  .loc-grid .carousel-slide { flex-basis: min(82vw, 288px); }
  .carousel-hint { font-size: 10px; }
}

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