/* Fennick Physio & Osteopathy — styles.css — 2026-09-16 */
:root {
  --paper: #ffffff; --paper-2: #f3f3f1; --ink: #1a1a1a; --ink-2: rgba(26, 26, 26, 0.64); --line: rgba(26, 26, 26, 0.18); --poppy: #ff4f2e;
  --font: "Schibsted Grotesk", system-ui, sans-serif; --rail: 72px; --bar: 52px; --pad: clamp(16px, 3vw, 44px);
}
*, *::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: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, dl, dd, address, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--poppy); outline-offset: 3px; }
.label { font-size: 13px; letter-spacing: 0.01em; color: var(--ink-2); }
.big { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 400; }
.huge { font-size: clamp(48px, 9vw, 140px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 400; }
.n { color: var(--poppy); font-variant-numeric: tabular-nums; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.2s; }
.link:hover { color: var(--poppy); }
.up { text-transform: uppercase; letter-spacing: 0.02em; }

/* rail + frame */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); border-right: 1px solid var(--line); background: var(--paper); z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 0 24px; }
.logo { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; }
.logo b { font-weight: 500; color: var(--poppy); }
.burger { width: 40px; height: 40px; display: grid; place-items: center; gap: 0; }
.burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 3px 0; }
.frame { margin-left: var(--rail); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--bar); background: var(--paper); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; padding: 0 var(--pad); font-size: 16px; }
.topbar a:hover { color: var(--poppy); }
.secbar { position: sticky; top: var(--bar); z-index: 20; height: 40px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); font-size: 15px; }
.secbar b { font-weight: 400; color: var(--poppy); }
.mobile-head { display: none; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding: 16px var(--pad) 24px; overflow: auto; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.sheet-top .wordmark b { color: var(--poppy); font-weight: 500; }
.sheet nav { align-self: center; display: grid; gap: 2px; padding: 24px 0; }
.sheet nav a { display: grid; grid-template-columns: 3ch 1fr; gap: 16px; align-items: baseline; font-size: clamp(26px, 4.5vw, 52px); letter-spacing: -0.03em; line-height: 1.15; padding: 6px 0; border-top: 1px solid var(--line); }
.sheet nav a:last-child { border-bottom: 1px solid var(--line); }
.sheet nav a:hover, .sheet nav a:focus-visible { color: var(--poppy); }
.sheet nav a .n { font-size: 15px; letter-spacing: 0; }
.sheet-pages { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.track { display: inline-flex; animation: mq var(--dur, 40s) linear infinite; will-change: transform; }
.track span { padding-right: 0.35em; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-huge { font-size: clamp(72px, 16vw, 240px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }

/* sections */
.sec { border-bottom: 1px solid var(--line); }
.hero-media { position: relative; overflow: hidden; height: min(72vh, 720px); border-bottom: 1px solid var(--line); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: brightness(0.94); }
.hero-h1 { position: absolute; left: var(--pad); top: 24%; color: #fff; font-size: 18px; line-height: 1.3; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.hero-marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); color: #fff; mix-blend-mode: normal; }
.approach { display: grid; grid-template-columns: 1.6fr 1fr 1fr; }
.approach > * { padding: clamp(28px, 4vw, 56px) var(--pad); border-left: 1px solid var(--line); min-height: 380px; }
.approach > *:first-child { border-left: 0; }
.approach-copy { display: grid; gap: 20px; align-content: start; }
.approach-copy .big { text-indent: 6ch; max-width: 26ch; }
.box { display: grid; grid-template-rows: auto 1fr; gap: 40px; }
.box h2 { font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; font-weight: 400; text-transform: uppercase; display: grid; grid-template-columns: 3.2ch 1fr; gap: 8px; }
.box h2 .n { font-size: 16px; padding-top: 6px; }
.box p { font-size: 16px; color: var(--ink-2); align-self: end; text-indent: 3ch; }

.head { padding: clamp(28px, 4vw, 56px) var(--pad) clamp(20px, 3vw, 40px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.grid > * { padding: 24px var(--pad) 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr; gap: 14px; align-content: start; min-height: 220px; }
.grid > *:nth-child(3n) { border-right: 0; }
.grid h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 400; }
.grid p { font-size: 15px; color: var(--ink-2); }
.grid .n { font-size: 14px; }

.impress { background: var(--paper-2); }
.clinics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.clinic { padding: clamp(24px, 3vw, 40px) var(--pad); border-right: 1px solid var(--line); display: grid; gap: 20px; }
.clinic:last-child { border-right: 0; }
.clinic h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.clinic h3 small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.clinic figure { aspect-ratio: 16 / 10; overflow: hidden; }
.clinic img { width: 100%; height: 100%; object-fit: cover; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.strip figure { aspect-ratio: 4 / 3; overflow: hidden; border-right: 1px solid var(--line); }
.strip figure:last-child { border-right: 0; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { display: none; }
.impress .marquee { padding: clamp(16px, 2vw, 28px) 0; border-top: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 24px var(--pad) 40px; border-right: 1px solid var(--line); display: grid; gap: 40px; align-content: start; min-height: 260px; }
.step:last-child { border-right: 0; }
.step .label { text-transform: uppercase; }
.step .label .n { font-size: 28px; display: block; margin-top: 4px; }
.step p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -0.01em; }
.quote { display: grid; grid-template-columns: 1fr 1fr; }
.quote > * { padding: clamp(28px, 4vw, 56px) var(--pad); }
.quote figure { padding: 0; border-right: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.quote img { width: 100%; height: 100%; object-fit: cover; }
.quote-copy { display: grid; gap: 28px; align-content: space-between; }
.quote-copy .who { font-size: clamp(26px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.quote-copy .who small { display: block; text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink-2); margin-top: 10px; }
.quote-copy blockquote { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }

.team-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.team-head .count { font-size: 15px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.team-head .count .n { font-size: 44px; line-height: 1; }
.people { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.person { padding: 20px var(--pad) 28px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-height: 240px; grid-template-rows: auto auto auto 1fr; }
.person:last-child { border-right: 0; }
.person .label { min-height: 2.4em; }
.person h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
.person p { font-size: 15px; color: var(--ink-2); }
.person .link { align-self: end; justify-self: start; font-size: 15px; }

.fees { display: grid; grid-template-columns: 1fr 1fr; }
.fees > * { padding: clamp(28px, 4vw, 56px) var(--pad); }
.fees > *:first-child { border-right: 1px solid var(--line); display: grid; gap: 32px; align-content: start; }
.fees h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.fees p { max-width: 52ch; }
.price-list { display: grid; gap: 28px; }
.price-group h3 { margin-bottom: 4px; }
.price-group dl { display: grid; grid-template-columns: 1fr auto; }
.price-group dt, .price-group dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-group dd { text-align: right; font-variant-numeric: tabular-nums; }

.locs { display: grid; grid-template-columns: 1fr 1fr; }
.loc { border-right: 1px solid var(--line); display: grid; gap: 24px; padding-bottom: clamp(28px, 4vw, 56px); }
.loc:last-child { border-right: 0; }
.loc .marquee { padding: 12px 0; border-bottom: 1px solid var(--line); }
.loc .mq-huge { font-size: clamp(56px, 9vw, 128px); }
.loc address { padding: 0 var(--pad); font-style: normal; display: grid; gap: 16px; font-size: 17px; }
.loc address a { display: block; }

.footer { padding: clamp(40px, 6vw, 88px) var(--pad) 32px; display: grid; gap: 40px; }
.footer .huge { font-size: clamp(36px, 5.5vw, 88px); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; color: var(--ink-2); }
.foot-row a:hover { color: var(--poppy); }

/* inner pages */
.page-head { padding: clamp(28px, 4vw, 56px) var(--pad); display: grid; gap: 24px; border-bottom: 1px solid var(--line); }
.page-head p { max-width: 60ch; }
.detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail > * { padding: clamp(28px, 4vw, 56px) var(--pad); }
.detail > *:first-child { border-right: 1px solid var(--line); }
.detail figure { padding: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.detail img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 16px; align-content: start; }
.prose p { color: var(--ink-2); max-width: 56ch; }
.prose h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }
.therapy { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 24px; padding: 28px var(--pad); border-bottom: 1px solid var(--line); }
.therapy h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
.therapy p { color: var(--ink-2); max-width: 56ch; }
.therapy small { display: block; margin-top: 8px; color: var(--ink); }
.profile { display: grid; grid-template-columns: 1fr 1.4fr; border-bottom: 1px solid var(--line); }
.profile figure { aspect-ratio: 4 / 3; overflow: hidden; border-right: 1px solid var(--line); }
.profile img { width: 100%; height: 100%; object-fit: cover; }
.profile .prose { padding: clamp(24px, 3vw, 44px) var(--pad); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--font); background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; color: var(--ink); border-radius: 0; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; background: var(--ink); color: var(--paper); font-weight: 500; transition: background 0.2s; }
.btn:hover { background: var(--poppy); }
.form .btn { justify-self: start; }
.form-status { color: var(--poppy); min-height: 1.4em; }

/* demo note */
.demo-note { position: fixed; left: calc(var(--rail) + 12px); bottom: 12px; z-index: 50; padding: 6px 10px; border-radius: 999px; background: rgba(26, 26, 26, 0.65); color: rgba(255, 255, 255, 0.9); font: 500 11px/1 var(--font); backdrop-filter: blur(6px); }
.demo-note:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { .track { animation: none; } html { scroll-behavior: auto; } * { transition-duration: 0.001s !important; } }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(3, 1fr); } .person:nth-child(3) { border-right: 0; } .person:nth-child(n+4) { border-top: 1px solid var(--line); } .person:nth-child(5) { border-right: 0; } .approach { grid-template-columns: 1fr 1fr; } .approach-copy { grid-column: 1 / -1; border-bottom: 1px solid var(--line); min-height: 0; } .approach > *:nth-child(2) { border-left: 0; } .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } .step:nth-child(4) { border-right: 0; } }
@media (max-width: 900px) {
  :root { --rail: 0px; --bar: 56px; }
  .rail { display: none; }
  .mobile-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 25; height: var(--bar); background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 var(--pad); }
  .mobile-head .wordmark b { color: var(--poppy); font-weight: 500; }
  .topbar { display: none; }
  .secbar { top: var(--bar); }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > *:nth-child(3n) { border-right: 1px solid var(--line); }
  .grid > *:nth-child(2n) { border-right: 0; }
  .grid > * { min-height: 0; }
  .clinics, .quote, .fees, .locs, .detail, .profile, .team-head { grid-template-columns: 1fr; }
  .clinic, .loc, .quote figure, .fees > *:first-child, .detail > *:first-child, .profile figure { border-right: 0; }
  .clinic { border-bottom: 1px solid var(--line); }
  .loc:first-child { border-bottom: 1px solid var(--line); }
  .quote figure { border-bottom: 1px solid var(--line); }
  .fees > *:first-child { border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: 1fr 1fr 1fr; }
  .hero-media { height: 60vh; }
  .therapy { grid-template-columns: 56px 1fr; }
  .therapy > div { grid-column: 2; }
  .box { min-height: 0; }
}
@media (max-width: 560px) {
  .grid, .steps, .people, .approach { grid-template-columns: 1fr; }
  .grid > *, .step, .person { border-right: 0 !important; }
  .approach > * { border-left: 0; min-height: 0; border-top: 1px solid var(--line); }
  .approach > *:first-child { border-top: 0; }
  .strip { grid-template-columns: 1fr; }
  .strip figure { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-note { left: 12px; }
}
