/* ============ Tokens ============ */

:root {

  --navy: #081c30;

  --navy-2: #0c2a45;

  --ink: #0b2236;

  --teal: #2dd4bf;

  --teal-d: #0b7f74;

  --mint: #e8f7f5;

  --bg: #f5f9fa;

  --card: #fff;

  --line: #e0e8ec;

  --muted: #586b7b;

  --r: 20px;

  --shadow: 0 24px 60px -28px rgba(8, 28, 48, .35);

  --ease: cubic-bezier(.22, 1, .36, 1);

  --ff-d: 'Fraunces', Georgia, serif;

  --ff: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --hh: 76px;

}



*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {

  margin: 0;

  font-family: var(--ff);

  color: var(--ink);

  background: #fff;

  line-height: 1.65;

  -webkit-font-smoothing: antialiased;

  overflow-x: hidden;

}

body.lock {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--teal);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}



.wrap {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
}

.i {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}



.progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), #7dd3fc);
  transform: scaleX(0);
  transform-origin: left;
}



/* ============ Buttons ============ */

.btn {

  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;

  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;

  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;

}

.btn .i {
  transition: transform .4s var(--ease);
}

.btn:hover .i:last-child {
  transform: translateX(4px);
}

.btn::after {

  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);

  transform: translateX(-120%);
  transition: transform .8s var(--ease);

}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 17px 28px;
  font-size: 16px;
}

.btn-teal {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 10px 30px -10px rgba(45, 212, 191, .7);
}

.btn-teal:hover {
  box-shadow: 0 16px 36px -10px rgba(45, 212, 191, .8);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  box-shadow: 0 16px 36px -14px rgba(8, 28, 48, .7);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.btn-wa {
  background: #fff;
  border-color: #bfe9e3;
  color: #0a6b61;
}

.btn-wa:hover {
  background: var(--mint);
}



/* ============ Header ============ */

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  transition: transform .5s var(--ease), background .4s, box-shadow .4s;
  color: #fff;
}

.header.scrolled {
  background: rgba(8, 28, 48, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.header.hide {
  transform: translateY(-100%);
}

.nav {
  height: var(--hh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 130;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--navy);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  font-family: var(--ff-d);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.brand-text small {
  display: block;
  font-family: var(--ff);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .65;
  margin-top: 3px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  opacity: .85;
  transition: opacity .3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 130;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease);
}

.burger span:nth-child(1) {
  top: 16px;
}

.burger span:nth-child(2) {
  top: 22px;
}

.burger span:nth-child(3) {
  top: 28px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}



/* Full-screen menu */

.menu {

  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy);
  color: #fff;

  clip-path: circle(0 at calc(100% - 46px) 38px);
  visibility: hidden;

  transition: clip-path .8s var(--ease), visibility 0s .8s;

  overflow-y: auto;

}

.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 500px at 85% 15%, rgba(45, 212, 191, .22), transparent 60%), radial-gradient(500px 400px at 5% 95%, rgba(56, 189, 248, .14), transparent 60%);
  pointer-events: none;
}

.menu.open {
  clip-path: circle(150% at calc(100% - 46px) 38px);
  visibility: visible;
  transition: clip-path .9s var(--ease), visibility 0s;
}

.menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: calc(var(--hh) + 20px) 0 40px;
  position: relative;
}

.menu-links {
  display: grid;
  gap: 2px;
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--ff-d);
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.2;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .4s, transform .4s, color .3s;
}

.menu-links a span {
  font-family: var(--ff);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: .12em;
}

.menu-links a:hover {
  color: var(--teal);
}

.menu.open .menu-links a {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease), color .3s;
  transition-delay: calc(.25s + var(--n, 0) * .06s);
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s, transform .4s;
}

.menu.open .menu-foot {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s;
}

.menu-mail {
  font-size: 15px;
  opacity: .8;
  margin-left: 6px;
}



/* ============ Hero ============ */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: calc(var(--hh) + 56px) 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}

.b1 {
  width: 560px;
  height: 560px;
  right: -120px;
  top: -120px;
  background: #0d9488;
  animation: drift 14s ease-in-out infinite alternate;
}

.b2 {
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -180px;
  background: #1d4ed8;
  opacity: .35;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}

@keyframes drift {
  to {
    transform: translate3d(-40px, 50px, 0) scale(1.1);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 26px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, .7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

.hero h1 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}

.hero h1 em,
h2 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #b9cad8;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14.5px;
  color: #d3e0ea;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chips .i {
  color: var(--teal);
}



.hero-in {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}



.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

.arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden;
  background: #0f3b5c center/cover no-repeat;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.arch.has-photo .arch-art {
  display: none;
}

.arch-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecg {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: ecg 3.4s ease-in-out infinite;
}

@keyframes ecg {
  0% {
    stroke-dashoffset: 520;
  }

  55%,
  85% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -520;
  }
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .55);
  font-size: 13px;
  line-height: 1.3;
}

.float strong {
  display: block;
  font-size: 14px;
}

.float small {
  color: var(--muted);
  font-size: 12px;
}

.f-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.f1 {
  left: -34px;
  top: 18%;
  animation: bob 6s ease-in-out infinite;
}

.f2 {
  right: -22px;
  bottom: 12%;
  animation: bob 7s ease-in-out -2s infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  80%,
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}



/* Marquee */

.marquee {
  background: var(--teal);
  color: var(--navy);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
}

.marquee-set span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--ff-d);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  white-space: nowrap;
}

.marquee-set span::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  opacity: .5;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}



/* ============ Sections ============ */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
}

.section-tint {
  background: var(--bg);
}

.section-dark {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 90% 0%, rgba(45, 212, 191, .16), transparent 60%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-d);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.kicker-light {
  color: var(--teal);
}

h2 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

h2 em {
  color: var(--teal-d);
}

.section-dark h2 em {
  color: var(--teal);
}

.head {
  max-width: 720px;
  margin-bottom: 52px;
}

.head p {
  color: var(--muted);
  font-size: 17px;
}

.head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.head.center .kicker {
  justify-content: center;
}

.head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}



/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}



/* About */

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-photo {
  position: relative;
  max-width: 460px;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #0f3b5c, #0b8a82) center/cover no-repeat;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 18px;
}

.portrait.has-photo .mono,
.portrait.has-photo::before {
  display: none;
}

.mono {
  font-family: var(--ff-d);
  font-size: clamp(72px, 10vw, 120px);
  color: rgba(255, 255, 255, .9);
  letter-spacing: -.04em;
}

.about-badge {
  position: absolute;
  right: -18px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.about-badge .i {
  font-size: 26px;
  color: var(--teal-d);
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.value {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}

.value:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.v-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.value h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.value p {
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}



/* Conditions explorer */

.explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 96px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: all .4s var(--ease);
}

.tab .t-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: none;
  transition: all .4s;
}

.tab strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.tab small {
  color: var(--muted);
  font-size: 12.5px;
}

.tab:hover {
  transform: translateX(4px);
  border-color: #b8e6df;
}

.tab[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 18px 36px -18px rgba(8, 28, 48, .7);
  transform: translateX(6px);
}

.tab[aria-selected="true"] small {
  color: #9fb6c8;
}

.tab[aria-selected="true"] .t-ico {
  background: var(--teal);
  color: var(--navy);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
  min-height: 520px;
}

.panel.swap>* {
  animation: panelIn .7s var(--ease) both;
}

.panel.swap>*:nth-child(2) {
  animation-delay: .06s;
}

.panel.swap>*:nth-child(3) {
  animation-delay: .12s;
}

.panel.swap>*:nth-child(4) {
  animation-delay: .18s;
}

.panel.swap>*:nth-child(5) {
  animation-delay: .24s;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.panel h3 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -.015em;
}

.panel .overview {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

.types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}

.types span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: #09625a;
  font-size: 13px;
  font-weight: 600;
}

.alert {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff4f1;
  border: 1px solid #ffd5ca;
  color: #7a2c18;
  margin: 0 0 24px;
  font-size: 15px;
}

.alert .i {
  font-size: 22px;
  flex: none;
  color: #d9482b;
  margin-top: 2px;
}

.alert.soft {
  background: #eff8ff;
  border-color: #cfe7fb;
  color: #17456b;
}

.alert.soft .i {
  color: #1d7fc4;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.info h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info h4 .i {
  color: var(--teal-d);
  font-size: 20px;
}

.info li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: #33495b;
  line-height: 1.55;
}

.info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.panel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.panel-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 430px;
}



/* Journey */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  counter-reset: s;
}

.steps::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 29px;
  height: 2px;
  background: var(--line);
}

.steps::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 29px;
  height: 2px;
  width: calc(80% * var(--p, 0));
  background: linear-gradient(90deg, var(--teal), #38bdf8);
  transition: width .2s linear;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

.s-ico {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-size: 25px;
  transition: all .6s var(--ease);
}

.step.on .s-ico {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 0 8px rgba(45, 212, 191, .18);
  transform: scale(1.06);
}

.s-num {
  position: absolute;
  z-index: 2;
  top: -6px;
  left: calc(50% + 14px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}



/* Recovery */

.recovery-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-dark p {
  color: #b9cad8;
}

.rtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
}

.rtab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #dce8f1;
  font-size: 14.5px;
  font-weight: 600;
  transition: all .4s var(--ease);
}

.rtab:hover {
  border-color: var(--teal);
}

.rtab[aria-selected="true"] {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

.rpanel {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  min-height: 250px;
}

.rpanel.swap>* {
  animation: panelIn .6s var(--ease) both;
}

.rpanel h3 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 14px;
}

.rpanel li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #d3e0ea;
  font-size: 15.5px;
}

.rpanel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081c30' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat;
}

.urgent {
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  position: sticky;
  top: 100px;
}

.urgent-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffe8e1;
  color: #b13a1f;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.urgent h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 700;
}

.urgent li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #33495b;
}

.urgent li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef6a4c;
}

.urgent .urgent-99 {
  margin: 0;
}

.urgent-999 {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink) !important;
  font-size: 14.5px;
}



/* Carousel */

.car-ctrl {
  display: flex;
  gap: 10px;
}

.round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: all .4s var(--ease);
}

.round:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: scale(1.06);
}

.carousel {
  overflow: hidden;
  margin: 0 -10px;
  padding: 14px 0 30px;
  cursor: grab;
  touch-action: pan-y;
}

.carousel.drag {
  cursor: grabbing;
}

.car-track {
  display: flex;
  transition: transform .8s var(--ease);
  will-change: transform;
}

.carousel.drag .car-track {
  transition: none;
}

.slide {
  flex: 0 0 calc(100% / var(--pv, 3));
  padding: 0 10px;
  user-select: none;
  -webkit-user-select: none;
}

.review {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -26px rgba(8, 28, 48, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.review:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.r-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  font-size: 18px;
}

.r-quote {
  color: var(--teal);
  font-size: 34px;
  opacity: .5;
}

.review blockquote {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #26394a;
  flex: 1;
}

.r-by {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.r-by strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.r-by small {
  color: var(--muted);
  font-size: 13px;
}

.sample {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff4d6;
  color: #8a5a00;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9d6de;
  transition: all .5s var(--ease);
}

.dot[aria-current="true"] {
  width: 30px;
  background: var(--teal-d);
}



/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-intro p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 26px;
}

.faq {
  border-bottom: 1px solid var(--line);
}

.faq:first-child {
  border-top: 1px solid var(--line);
}

.faq button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
}

.faq button .i {
  font-size: 22px;
  color: var(--teal-d);
  transition: transform .5s var(--ease);
}

.faq button:hover {
  color: var(--teal-d);
}

.faq.open button .i {
  transform: rotate(180deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}

.faq.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body>div {
  overflow: hidden;
}

.faq-body p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
}



/* Contact */

.contact {
  background: linear-gradient(180deg, #fff, var(--mint));
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-copy>p {
  color: var(--muted);
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 24px;
}

.contact-list a,
.c-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  font-weight: 600;
  font-size: 16px;
}

.contact-list a:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.contact-list small {
  display: block;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.c-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal-d);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
}

.c-wa {
  background: #dcf8e6;
  color: #12803b;
}

.note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff4f1;
  border: 1px solid #ffd5ca;
  color: #7a2c18 !important;
  font-size: 14px !important;
}

.note .i {
  flex: none;
  font-size: 20px;
  color: #d9482b;
  margin-top: 2px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
  position: relative;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: var(--bg);
  margin-bottom: 24px;
}

.seg label {
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  transition: all .4s var(--ease);
}

.seg input:checked+span {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(8, 28, 48, .8);
}

.seg input:focus-visible+span {
  outline: 3px solid var(--teal);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field label em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 15.5px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586b7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat;
  padding-right: 42px;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-d);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .2);
}

.field.err input,
.field.err select {
  border-color: #e5533c;
  background-color: #fff8f6;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 6px;
  font-size: 14.5px;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal-d);
  flex: none;
}

.consent.err span {
  color: #c2381f;
}

.fine {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 20px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions .btn {
  flex: 1 1 200px;
}

.form-msg {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}

.form-msg.bad {
  color: #c2381f;
}

.btn.loading {
  pointer-events: none;
  opacity: .8;
}

.btn.loading .lbl::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  border-top-color: transparent;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success {
  text-align: center;
  padding: 30px 10px;
  animation: panelIn .8s var(--ease) both;
}

.success[hidden] {
  display: none;
}

.success .ok {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 36px;
  animation: pop .7s var(--ease) both;
}

@keyframes pop {
  from {
    transform: scale(.3);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.success h3 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 10px;
}

.success p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 24px;
}

.success a {
  color: var(--teal-d);
  font-weight: 600;
  text-decoration: underline;
}



/* Footer */

.footer {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.foot-grid p {
  color: #9fb6c8;
  font-size: 15px;
  margin-top: 18px;
  max-width: 360px;
}

.foot-grid h4 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.foot-grid>div>a:not(.brand) {
  display: block;
  margin-bottom: 10px;
  color: #cfdce7;
  font-size: 15px;
  transition: color .3s, transform .3s;
}

.foot-grid>div>a:not(.brand):hover {
  color: var(--teal);
  transform: translateX(4px);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7f98ab;
  font-size: 13px;
}



/* Dock + back to top */

.dock {
  display: none;
}

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 14px 30px -10px rgba(8, 28, 48, .7);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all .5s var(--ease);
}

.totop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}



/* ============ Responsive ============ */

@media (max-width: 1080px) {

  .nav-links,
  .nav-phone {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    width: min(86%, 400px);
  }

  .f1 {
    left: -14px;
  }

  .f2 {
    right: -8px;
  }

  .about-grid,
  .recovery-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 380px;
  }

  .urgent,
  .faq-intro {
    position: static;
  }

  .explorer {
    grid-template-columns: 1fr;
  }

  .tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    width: auto;
    flex: none;
    scroll-snap-align: start;
    padding: 10px 16px 10px 10px;
  }

  .tab small {
    display: none;
  }

  .tab:hover,
  .tab[aria-selected="true"] {
    transform: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
  }

  .steps::before {
    left: 29px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 2px;
    height: auto;
  }

  .steps::after {
    left: 29px;
    top: 30px;
    width: 2px;
    height: calc((100% - 60px) * var(--p, 0));
  }

  .step {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 20px;
    text-align: left;
    padding: 0 0 34px;
  }

  .s-ico {
    margin: 0;
    grid-row: 1 / span 2;
  }

  .s-num {
    left: 38px;
    top: -6px;
  }

  .step h3 {
    margin: 4px 0 4px;
    align-self: end;
  }

  .step p {
    grid-column: 2;
  }

}

@media (max-width: 760px) {

  :root {
    --hh: 68px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .nav-actions .btn {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero {
    padding-bottom: 80px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .scroll-cue {
    display: none;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .about-badge {
    right: 10px;
  }

  .head.split {
    align-items: start;
  }

  .car-ctrl {
    display: none;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid>div:first-child {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    flex-direction: column;
  }

  .totop {
    bottom: 88px;
    right: 16px;
  }

  body {
    padding-bottom: 72px;
  }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    position: fixed;
    z-index: 95;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px;
    border-radius: 22px;
    background: rgba(8, 28, 48, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55);
    transition: transform .5s var(--ease);
  }

  .dock.hide {
    transform: translateY(140%);
  }

  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 8px;
    border-radius: 15px;
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
  }

  .dock .dock-main {
    background: var(--teal);
    color: var(--navy);
  }

}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .hero-in,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

}


/* ============================================================
   Berkshire Surgery | refined clinical visual identity
   Deliberately quiet, accessible, responsive and consultant-led.
   ============================================================ */
:root {
  --navy: #142a3a;
  --navy-2: #203b4a;
  --ink: #172d3a;
  --teal: #9dc8bf;
  --teal-d: #376f69;
  --mint: #edf5f2;
  --bg: #f7f9f8;
  --line: #dfe7e5;
  --muted: #526774;
  --r: 14px;
  --shadow: 0 16px 44px -28px rgba(20, 42, 58, .25);
}

body {
  line-height: 1.7;
}

.header.scrolled {
  background: rgba(20, 42, 58, .97);
}

.brand-mark {
  border-radius: 8px;
}

.btn {
  border-radius: 8px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.btn::after {
  display: none;
}

.btn:hover {
  transform: none;
}

.btn-teal {
  box-shadow: none;
  background: #b8d7d0;
}

.btn-teal:hover {
  background: #d1e7e1;
  box-shadow: none;
}

.btn-navy:hover {
  box-shadow: 0 8px 20px -16px rgba(20, 42, 58, .5);
}

.progress {
  background: #a8cbc2;
}

.hero {
  background: linear-gradient(115deg, #142a3a 0%, #203d4b 100%);
  padding-top: calc(var(--hh) + 78px);
  padding-bottom: 108px;
}

.hero-bg .blob,
.hero-bg .grid {
  display: none;
}

.hero-grid {
  gap: clamp(36px, 5vw, 80px);
}

.hero h1 {
  font-size: clamp(40px, 5.1vw, 70px);
  line-height: 1.1;
  max-width: 660px;
}

.hero h1 em {
  color: #c5ded7;
}

.hero .lead {
  color: #d7e3e7;
}

.hero .eyebrow {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #cbdedb;
  font-size: 13px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero .pulse {
  display: none;
}

.hero .arch {
  border-radius: 170px 170px 12px 12px;
  box-shadow: 0 20px 52px -28px rgba(0, 0, 0, .5);
}

.hero .ecg {
  animation: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: .45;
}

.hero .float {
  display: none;
}

.scroll-cue {
  opacity: .5;
}

.care-strip {
  background: #eaf2ef;
  border-bottom: 1px solid var(--line);
}

.care-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 27px;
  align-items: center;
  min-height: 76px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
  color: #415b64;
}

.care-strip-label {
  color: #2f6761;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
}

.care-strip-inner>a {
  margin-left: auto;
  color: #275e59;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.care-strip-inner>a .i {
  width: 14px;
  height: 14px;
}

.kicker {
  letter-spacing: .12em;
}

h2 {
  font-size: clamp(32px, 4vw, 51px);
}

h2 em {
  color: #376f69;
}

.section-dark h2 em {
  color: #b8d7d0;
}

.credential-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  margin: 28px 0 30px;
}

.credential-panel>div {
  padding: 18px 16px;
}

.credential-panel>div+div {
  border-left: 1px solid var(--line);
}

.credential-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-d);
  font-weight: 700;
  margin-bottom: 8px;
}

.credential-panel strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

.feedback-section {
  background: #f5f8f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.feedback-inner>div {
  max-width: 690px;
}

.feedback-inner p {
  color: var(--muted);
  margin-bottom: 0;
}

.feedback-inner .btn {
  flex-shrink: 0;
}

/* Remove distracting decorative animation while preserving useful interactions */
.b1,
.b2,
.pulse,
.marquee-track,
.float,
.ecg {
  animation: none !important;
}

.value,
.info,
.form-card,
.review {
  box-shadow: var(--shadow);
}

@media(max-width:900px) {
  .credential-panel {
    grid-template-columns: 1fr;
  }

  .credential-panel>div+div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feedback-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .care-strip-inner>a {
    margin-left: 0;
  }
}

@media(max-width:600px) {
  .hero {
    padding-top: calc(var(--hh) + 42px);
    padding-bottom: 72px;
  }

  .care-strip-inner {
    gap: 10px 17px;
  }

  .care-strip-label {
    flex-basis: 100%;
  }

  .credential-panel>div {
    padding: 15px;
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .hero-in,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Clean, contemporary typography across the entire site */
:root {
  --ff: 'Inter', Arial, sans-serif;
  --ff-d: 'Inter', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
.brand-text,
.menu-links a,
.mono {
  font-family: var(--ff);
  font-style: normal;
  letter-spacing: -.035em;
}

h1 em,
h2 em,
h3 em,
h4 em,
.hero h1 em,
.section-dark h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.hero h1 {
  font-weight: 650;
}

h2 {
  font-weight: 650;
}

.brand-text {
  font-weight: 650;
}

/* Hide the decorative medical illustration on phones only */
@media (max-width: 600px) {
  .hero-visual {
    display: none !important;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero {
    padding-bottom: 66px;
  }

  .hero-copy {
    min-width: 0;
  }
}

/* Berkshire Surgery header logo */
.header .brand-logo {
  width: auto;
  height: 54px;
  max-width: min(330px, 42vw);
  object-fit: contain;
}

.footer .brand-logo {
  width: min(320px, 100%);
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .header .brand-logo {
    height: 42px;
    max-width: 46vw;
  }

  .nav-actions {
    margin-left: auto;
  }
}

/* Keep the mobile menu toggle at the far right regardless of flex order. */
@media (max-width: 1080px) {
  .header .nav {
    position: relative;
  }

  .header .brand {
    margin-right: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .header .nav-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .header .nav-actions .burger {
    display: block;
    margin-left: auto;
  }
}

/* Preserve the requested white header, including after scrolling. */
.header,
.header.scrolled {
  background: #ffffff;
  color: #142a3a;
  box-shadow: 0 1px 0 rgba(20, 42, 58, .10);
}

.header .nav-links a,
.header .nav-phone {
  color: #142a3a;
}

.header .burger {
  border-color: rgba(20, 42, 58, .22);
  background: rgba(20, 42, 58, .04);
}

.header .burger span {
  background: #142a3a;
}

/* Centre the logo in the mobile/tablet header while keeping the menu on the right. */
@media (max-width: 1080px) {
  .header .nav {
    position: relative;
  }

  .header .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: calc(100% - 112px);
    justify-content: center;
  }

  .header .brand-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .header .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .header .brand-logo {
    height: 49px;
    max-width: 100%;
  }
}

/* Mr Hancu profile and appointment additions */
.portrait-caption {
  font-size: .82rem;
  color: #526477;
  margin: 14px 0 0;
  text-align: center
}

.profile-extra {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 55px;
  align-items: center
}

.profile-story h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin: 10px 0 20px;
  color: #102b42
}

.profile-story p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #526477
}

.clinical-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.clinical-gallery figure {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px #08243b12
}

.clinical-image {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-color: #dbe7ec
}

.clinical-theatre {
  background-image: linear-gradient(140deg, #0b304a55, #0d847b44), url('operating-theatre.jpg')
}

.clinical-recovery {
  background-image: linear-gradient(140deg, #0b304a55, #0d847b44), url('recovery-home.jpg')
}

.clinical-gallery figcaption {
  padding: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: #17344a
}

.hospital-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px
}

.hospital-card {
  background: #fff;
  border: 1px solid #dce7ea;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 30px #08243b0b
}

.hospital-card h3 {
  font-size: 1.25rem;
  color: #12314a;
  margin: 0
}

.hospital-card p {
  color: #526477;
  line-height: 1.65;
  flex: 1;
  margin: 0
}

.hospital-card p a {
  overflow-wrap: anywhere;
  color: #087b76
}

.hospital-card>.btn {
  align-self: flex-start;
  font-size: .85rem
}

.appointment-notes {
  margin-top: 26px;
  padding: 26px 30px;
  border-radius: 18px;
  background: #e4f2f1;
  display: grid;
  gap: 10px
}

.appointment-notes p {
  margin: 0;
  line-height: 1.65;
  color: #173c48
}

@media(max-width:900px) {
  .profile-extra {
    grid-template-columns: 1fr
  }

  .hospital-grid {
    grid-template-columns: 1fr
  }

  .clinical-gallery {
    max-width: 650px
  }
}

@media(max-width:550px) {
  .clinical-gallery {
    gap: 10px
  }

  .hospital-card {
    padding: 22px
  }

  .appointment-notes {
    padding: 20px
  }
}

/* Private health insurance logo grid */
.insurance-section {
  background: #fff
}

.insurance-section .head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto
}

.insurance-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px
}

.insurance-logo {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #fff;
  border: 1px solid #e4ebef;
  border-radius: 18px;
  box-shadow: 0 5px 22px rgba(8, 28, 48, .045)
}

.insurance-logo img {
  display: block;
  width: 100%;
  height: 66px;
  max-width: 180px;
  object-fit: contain
}

.insurance-note {
  max-width: 760px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b
}

@media(max-width:760px) {
  .insurance-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  .insurance-logo {
    min-height: 100px;
    padding: 16px
  }

  .insurance-logo img {
    height: 54px
  }
}

/* Screenshot-inspired light editorial redesign */
:root {
  --ref-ink: #24252b;
  --ref-green: #557d73
}

body {
  color: var(--ref-ink)
}

.header {
  background: #fff !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e4e6e5
}

.header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none
}

.dh-mark {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #27292a;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  flex: none
}

.dh-brand-name {
  font-size: 17px;
  color: #222;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap
}

.dh-brand-name small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px
}

.nav-links a {
  font-size: 13px;
  color: #303337 !important
}

.nav-actions .btn {
  background: #262626 !important;
  border-radius: 40px;
  color: white !important
}

.nav-phone {
  color: #303337 !important
}

.hero {
  background: #fafbfa !important;
  color: #24252b !important;
  min-height: auto;
  padding: 70px 0 95px
}

.hero-bg,
.scroll-cue {
  display: none !important
}

.hero-grid {
  align-items: center;
  grid-template-columns: 1.3fr .9fr;
  gap: 55px
}

.hero-copy h1 {
  font-size: clamp(46px, 5.2vw, 80px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: 1.06;
  color: #24252b
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--ref-green)
}

.hero-copy .eyebrow {
  color: #596568;
  font-size: 12px;
  letter-spacing: 2px
}

.hero-copy .lead {
  color: #565e63;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.8
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero-cta .btn {
  border-radius: 50px;
  font-size: 11px;
  letter-spacing: 1.4px
}

.hero-cta .btn-teal {
  background: #252628 !important;
  color: white !important
}

.hero-cta .btn-ghost {
  color: #353535 !important;
  border: 1px solid #d5d7d8 !important
}

.hero-photo-hancu {
  height: 550px;
  position: relative;
  background: #e4e9e9 url('hero.jpg') center/cover no-repeat
}

.hero-photo-label {
  position: absolute;
  bottom: -18px;
  left: 20px;
  right: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 24px #0000000c;
  display: flex;
  flex-direction: column;
  gap: 5px
}

.hero-photo-label strong {
  font-weight: 500
}

.hero-photo-label span {
  font-size: 11px;
  letter-spacing: 1px
}

.hero-photo-label small {
  font-size: 11px;
  color: #6a6d72
}

.hero-stats {
  display: flex;
  gap: 55px;
  border-top: 1px solid #ddd;
  margin-top: 44px;
  padding-top: 22px
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.hero-stats small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #757a7c
}

.hero-stats strong {
  font-size: 27px;
  font-weight: 400
}

.section h2 {
  font-weight: 400;
  letter-spacing: -.04em
}

.section {
  scroll-margin-top: 95px
}

.ref-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 38px
}

.ref-section-head h2 {
  max-width: 570px
}

.ref-section-head>p {
  max-width: 500px;
  line-height: 1.8;
  color: #60676d
}

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px
}

.procedure-card,
.video-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 18px
}

.procedure-art {
  height: 240px;
  background: #f5f5f3;
  display: grid;
  place-items: center;
  overflow: hidden
}

.procedure-art img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.procedure-card h3,
.video-card h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 20px 0 10px
}

.procedure-card small,
.video-card small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #666;
  line-height: 1.7
}

.procedure-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #60666b
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px
}

.video-placeholder {
  height: 300px;
  background: linear-gradient(135deg, #c7d6d6, #dce2e1);
  display: grid;
  place-items: center
}

.video-placeholder span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  width: 64px;
  height: 64px;
  font-size: 24px;
  color: #303030
}

.video-card p {
  font-size: 13px;
  color: #777
}

.personal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 90px;
  align-items: center
}

.personal-photo {
  min-height: 520px;
  background: #e5e6e4
}

.personal-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover
}

.personal-grid h2 {
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.16
}

.personal-grid p {
  color: #666f74;
  line-height: 1.85
}

.personal-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 35px
}

.personal-benefits>div {
  border-top: 1px solid #d6d8d8;
  padding-top: 22px
}

.personal-benefits strong {
  font-weight: 500
}

.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px
}

.fees-grid h2 {
  font-size: clamp(36px, 4vw, 60px);
  max-width: 380px
}

.fees-grid p {
  line-height: 1.8;
  color: #656b70
}

.fee-row {
  border-top: 1px solid #d5d8d8;
  padding: 24px 0
}

.fee-row h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0
}

.fee-row p {
  margin: 5px 0 0
}

.insurer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0
}

.insurer-pills span {
  border: 1px solid #cbd0d0;
  padding: 10px 17px;
  border-radius: 30px;
  font-size: 14px
}

.profile-headshot img {
  max-width: 330px;
  width: 100%;
  margin-top: 20px
}

.ref-foot-grid {
  grid-template-columns: 1.3fr .9fr 1fr !important;
  gap: 65px
}

.footer {
  background: #f7f8f7 !important;
  color: #323639 !important
}

.footer a,
.footer p,
.footer h4 {
  color: #34383a !important
}

.footer h4 {
  font-size: 11px;
  letter-spacing: 2px
}

.footer-person {
  display: flex;
  gap: 16px;
  align-items: center
}

.footer-person>div {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.footer-person strong {
  font-weight: 500
}

.footer-person span:not(.dh-mark) {
  font-size: 13px
}

.footer .btn {
  background: #262626 !important;
  color: #fff !important;
  border-radius: 35px;
  display: inline-flex;
  margin-top: 15px
}

.ref-foot-grid p {
  line-height: 1.8
}

.ref-foot-grid p strong {
  font-weight: 500
}

.clinical-image.clinical-theatre {
  background: url('operating-theatre.jpg') center/cover no-repeat !important
}

.clinical-image.clinical-recovery {
  background: url('recovery-home.jpg') center/cover no-repeat !important
}

@media(max-width:950px) {

  .hero-grid,
  .personal-grid,
  .fees-grid,
  .ref-section-head {
    grid-template-columns: 1fr;
    gap: 35px
  }

  .hero {
    padding: 45px 0 70px
  }

  .hero-photo-hancu {
    height: 430px
  }

  .procedure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ref-foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px
  }

  .nav-links {
    display: none
  }
}

@media(max-width:620px) {
  .hero-copy h1 {
    font-size: clamp(39px, 10vw, 55px)
  }

  .hero-copy .lead {
    font-size: 15px
  }

  .hero-stats {
    gap: 20px;
    justify-content: space-between
  }

  .hero-stats strong {
    font-size: 23px
  }

  .hero-photo-hancu {
    height: 410px
  }

  .procedure-grid,
  .video-grid,
  .personal-benefits,
  .ref-foot-grid {
    grid-template-columns: 1fr !important
  }

  .procedure-art {
    height: 240px
  }

  .personal-photo,
  .personal-photo img {
    height: 340px;
    min-height: 340px
  }

  .video-placeholder {
    height: 210px
  }

  .dh-brand-name {
    font-size: 13px
  }

  .dh-brand-name small {
    font-size: 8px
  }

  .dh-mark {
    width: 36px;
    height: 36px;
    font-size: 14px
  }

  .hero-cta .btn {
    font-size: 10px
  }

  .fees-grid {
    gap: 20px
  }
}

/* Full treatment directory */
.treatment-directory {
  margin-top: 68px;
  padding-top: 50px;
  border-top: 1px solid #d9dfde
}

.treatment-heading {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 30px
}

.treatment-heading h3 {
  font-size: clamp(29px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -.04em;
  margin: 12px 0
}

.treatment-heading p {
  color: #66706e;
  line-height: 1.75;
  max-width: 610px
}

.treatment-search-label {
  font-size: 12px;
  letter-spacing: .06em;
  color: #485b58;
  font-weight: 600
}

.treatment-search-label input {
  display: block;
  margin-top: 9px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #cbd5d2;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: normal;
  color: #25302f;
  outline-offset: 3px
}

.treatment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start
}

.treatment-item {
  background: #fff;
  border: 1px solid #dfe6e4;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0
}

.treatment-item[open] {
  border-color: #9cb9b0;
  box-shadow: 0 8px 25px #1b43340d
}

.treatment-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  cursor: pointer
}

.treatment-item summary::-webkit-details-marker {
  display: none
}

.treatment-item summary:focus-visible {
  outline: 3px solid #5d9587;
  outline-offset: -3px
}

.treatment-num {
  font-size: 12px;
  color: #79948d;
  padding-top: 3px
}

.treatment-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0
}

.treatment-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #63877b;
  font-weight: 700
}

.treatment-main strong {
  font-size: 19px;
  font-weight: 550;
  color: #26332f;
  line-height: 1.3
}

.treatment-short {
  font-size: 13px;
  line-height: 1.65;
  color: #6a7572
}

.treatment-expand {
  font-size: 25px;
  color: #4c796c;
  line-height: 1;
  transition: transform .2s
}

.treatment-item[open] .treatment-expand {
  transform: rotate(45deg)
}

.treatment-detail {
  border-top: 1px solid #edf0ee;
  padding: 8px 24px 26px 49px
}

.treatment-detail h4 {
  font-size: 15px;
  color: #283f38;
  margin: 22px 0 8px
}

.treatment-detail p {
  font-size: 14px;
  line-height: 1.8;
  color: #596964;
  margin: 0
}

.treatment-link {
  display: inline-block;
  margin-top: 22px;
  color: #356f60;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  font-size: 13px
}

.treatment-no-results,
.treatment-disclaimer {
  font-size: 13px;
  color: #6a7672;
  line-height: 1.7;
  margin-top: 22px
}

.treatment-no-results[hidden] {
  display: none !important
}

@media(max-width:850px) {

  .treatment-heading,
  .treatment-list {
    grid-template-columns: 1fr
  }

  .treatment-directory {
    margin-top: 42px;
    padding-top: 35px
  }
}

@media(max-width:600px) {
  .treatment-item summary {
    padding: 18px;
    gap: 10px
  }

  .treatment-main strong {
    font-size: 17px
  }

  .treatment-detail {
    padding: 8px 18px 24px 39px
  }
}

/* Restore the clean white editorial hero without changing the header or other sections. */
.hero {
  background: #fafbfa !important;
  color: #24252b !important;
}

.hero .hero-bg {
  display: none !important;
}

.hero .hero-copy h1 {
  color: #24252b !important;
}

.hero .hero-copy h1 em {
  color: #557d73 !important;
}

.hero .hero-copy .lead {
  color: #565e63 !important;
}

.hero .hero-copy .eyebrow {
  color: #596568 !important;
}

.hero .hero-cta .btn-ghost {
  color: #353535 !important;
  border-color: #d5d7d8 !important;
}

/* Restore the original header logo without changing the rest of the site */
.header .brand-logo {
  display: block !important;
  width: auto !important;
  height: 54px !important;
  max-width: min(330px, 42vw) !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.header .brand {
  display: flex;
  align-items: center;
}

@media(max-width:950px) {
  .header .nav {
    position: relative
  }

  .header .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: 58%;
  }

  .header .brand-logo {
    height: 49px !important;
    max-width: 100% !important
  }

  .header .nav-actions {
    margin-left: auto
  }

  .header .burger {
    display: block
  }
}

@media(max-width:600px) {
  .header .brand-logo {
    height: 45px !important;
    max-width: 100% !important
  }
}

/* Condition tabs and educational video placeholders */
#conditions .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#conditions .tabs .tab {
  max-width: 100%;
}

#videos .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

#videos .video-card {
  min-width: 0;
}

#videos .video-placeholder {
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: linear-gradient(145deg, #102c45, #136c70);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#videos .video-placeholder span {
  font-size: 32px;
}

#videos .video-placeholder small {
  letter-spacing: .12em;
  font-size: 11px;
}

@media(max-width:900px) {
  #videos .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:600px) {
  #videos .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Additional recovery timeline, scoped to avoid changing existing sections */
.recovery-timeline-section {
  background: #fff;
}

.recovery-timeline-section .head {
  max-width: 820px;
}

.recovery-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.recovery-timeline-card {
  background: #f5f9fa;
  border: 1px solid #e0e8ec;
  border-radius: 20px;
  padding: 28px 23px;
  min-width: 0;
}

.recovery-timeline-period {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 99px;
  background: #e8f7f5;
  color: #0b7f74;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 22px;
}

.recovery-timeline-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.recovery-timeline-card p {
  margin: 0;
  color: #586b7b;
  font-size: 15px;
}

.recovery-timeline-note {
  margin: 24px 0 0;
  color: #586b7b;
  font-size: 14px;
  max-width: 900px;
}

@media (max-width: 950px) {
  .recovery-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .recovery-timeline-grid {
    grid-template-columns: 1fr;
  }

  .recovery-timeline-card {
    padding: 24px;
  }
}

/* Keep video play icon and coming-soon label together inside each thumbnail. */
#videos .video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

#videos .video-placeholder span {
  flex: 0 0 64px;
  line-height: 1;
}

#videos .video-placeholder small {
  display: block;
  max-width: calc(100% - 24px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  color: #334b50;
}

/* Keep all five YouTube embeds inside their video cards on every screen size. */
#videos .video-card {
  min-width: 0;
  overflow: hidden;
}

#videos .video-placeholder:has(iframe) {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
}

#videos .video-placeholder iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.hero-photo-hancu {
  background-image: url("surgeon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 450px;
}

.portrait {
  background-image: url("hacnu.png");
  background-size: cover;
  background-position: center;
}

/* Bigger header logo on desktop */
.header .brand-logo {
  width: auto !important;
  height: 75px !important;
  max-width: 400px !important;
  object-fit: contain;
}

/* Bigger header logo on mobile */
@media (max-width: 950px) {
  .header .brand-logo {
    height: 60px !important;
    max-width: 100% !important;
  }
}