:root {
  --ink: #11212d;
  --ink-soft: #3d4f5c;
  --paper: #fbf6ec;
  --paper-2: #f3ebd9;
  --sandstone: #e7d3a8;
  --harbour: #1f6f8b;
  --harbour-dark: #143f55;
  --accent: #d96b3b;
  --line: rgba(17, 33, 45, .12);
  --shadow: 0 18px 60px -28px rgba(17, 33, 45, .35);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--harbour); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.08;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--harbour);
  font-weight: 600;
  margin-bottom: 18px;
  padding: 6px 12px;
  background: rgba(31, 111, 139, .08);
  border-radius: 999px;
}
.eyebrow--center { display: block; width: max-content; margin: 0 auto 18px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
}
.logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--harbour);
  color: var(--paper);
  border-radius: 50%;
  font-size: 1.25rem;
}
.logo__text em {
  font-style: normal;
  font-weight: 400;
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: .94rem;
  font-weight: 500;
}
.nav__links a { color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--harbour); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--harbour-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--paper-2); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 65%;
  height: 70%;
  background: radial-gradient(ellipse at top right, rgba(31, 111, 139, .14), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 em { display: inline; }
.lede {
  margin: 24px 0 32px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__stats {
  list-style: none;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--harbour);
  font-weight: 800;
  line-height: 1;
}
.hero__stats span { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* postcard */
.hero__art { display: flex; justify-content: center; }
.postcard {
  width: 100%;
  max-width: 420px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  position: relative;
  font-family: 'Fraunces', serif;
}
.postcard::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(17, 33, 45, .25);
  border-radius: 3px;
  pointer-events: none;
}
.postcard__stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: .72rem;
  line-height: 1.1;
  letter-spacing: .08em;
  border: 3px solid var(--paper-2);
  transform: rotate(-6deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}
.postcard__photo {
  height: 260px;
  margin-bottom: 14px;
  border-radius: 3px;
  background-image:
    linear-gradient(180deg, rgba(20, 63, 85, .12), rgba(20, 63, 85, .25)),
    url('sydney.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  filter: sepia(.18) saturate(1.05);
}
.postcard__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.18));
  pointer-events: none;
}
.postcard__caption {
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 8px 4px;
}

/* ---------- sections shared ---------- */
section { padding: 90px 0; }

/* ---------- story ---------- */
.story { background: var(--paper-2); border-block: 1px solid var(--line); }
.story__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.story__text p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.story__signature {
  margin-top: 28px !important;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink) !important;
}
.story__quote {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 28px 28px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 120px;
}
.story__quote blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
}
.story__quote-meta {
  display: block;
  margin-top: 14px;
  font-size: .85rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* ---------- timeline ---------- */
.timeline { background: var(--paper); }
.tl {
  list-style: none;
  margin-top: 60px;
  position: relative;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.tl::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.tl__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  margin-bottom: 28px;
  position: relative;
}
.tl__item::before {
  content: '';
  position: absolute;
  left: 82px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--harbour);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--line);
}
.tl__item--now::before { background: var(--accent); }
.tl__year {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--harbour);
  padding-top: 14px;
  text-align: right;
}
.tl__item--now .tl__year { color: var(--accent); }
.tl__card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tl__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tl__card h3 { margin-bottom: 8px; }
.tl__card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- doctors ---------- */
.doctors { background: var(--paper-2); border-block: 1px solid var(--line); }
.doc-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doc__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.doc__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.2));
}
.doc__photo--edmund,
.doc__photo--iris,
.doc__photo--tom,
.doc__photo--alice {
  background-size: cover;
  background-position: center top;
}
.doc__photo--edmund {
  background-image: url('doc-edmund.jpg');
  filter: grayscale(.85) sepia(.55) contrast(.95) brightness(1.02);
}
.doc__photo--iris {
  background-image: url('doc-iris.jpg');
  background-position: center 18%;
  filter: sepia(.35) saturate(.85) contrast(.96);
}
.doc__photo--tom {
  background-image: url('doc-tom.jpg');
  filter: saturate(.92) contrast(.98);
}
.doc__photo--alice {
  background-image: url('doctor.jpg');
}
.doc__photo--alice::after {
  background: linear-gradient(180deg, transparent 55%, rgba(20, 63, 85, .35));
}
.doc__era {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--paper);
  background: rgba(17, 33, 45, .7);
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.doc--current {
  background: var(--paper);
  border-color: var(--harbour);
  box-shadow: 0 18px 50px -25px rgba(31, 111, 139, .35);
  position: relative;
}
.doc--current::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  border: 2px solid var(--harbour);
  pointer-events: none;
  opacity: .25;
}
.doc__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(217, 107, 59, .35);
}
.doc__role {
  display: block;
  font-size: .82rem;
  color: var(--harbour);
  font-weight: 600;
  letter-spacing: .04em;
  margin: 4px 0 12px;
}
.doc p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- legends ---------- */
.legends { background: var(--paper); }
.legend-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.legend {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 26px 80px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.legend:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.legend span {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--harbour);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.2rem;
}
.legend p { font-size: .98rem; color: var(--ink-soft); }

/* ---------- banner ---------- */
.banner {
  padding: 0;
  background-image: url('sydney.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.banner__overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 63, 85, 0) 0%, rgba(20, 63, 85, .35) 45%, rgba(20, 63, 85, .85) 100%);
  padding: 120px 0 70px;
  color: var(--paper);
}
.banner h2 {
  color: var(--paper);
  max-width: 760px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}
.banner p {
  color: rgba(251, 246, 236, .9);
  max-width: 600px;
  margin-top: 14px;
  font-size: 1.05rem;
}
.banner .eyebrow {
  color: #ffd7a8;
  background: rgba(255, 215, 168, .15);
}

/* ---------- visit ---------- */
.visit {
  background: linear-gradient(180deg, var(--harbour-dark), var(--harbour));
  color: var(--paper);
}
.visit .eyebrow { color: #ffd7a8; background: rgba(255, 215, 168, .12); }
.visit h2 { color: var(--paper); }
.visit__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.visit__copy p {
  margin: 22px 0;
  color: rgba(251, 246, 236, .85);
  font-size: 1.05rem;
  max-width: 540px;
}
.visit__list {
  list-style: none;
  margin: 28px 0 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 246, 236, .15);
}
.visit__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(251, 246, 236, .12);
}
.visit__list strong {
  font-family: 'Fraunces', serif;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd7a8;
  font-weight: 600;
}
.visit__copy .btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.visit__copy .btn--primary:hover { background: #b75324; }

.visit__card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
  transform: rotate(-1.5deg);
}
.visit__card-stamp {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  font-size: 1rem;
  border: 4px solid var(--paper);
  transform: rotate(12deg);
}
.visit__card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.visit__card ul { list-style: none; }
.visit__card li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.visit__card li:last-child { border-bottom: none; }
.visit__card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--harbour);
  font-weight: 800;
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 60px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
}
.logo--footer {
  display: inline-block;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer__tagline { color: rgba(251, 246, 236, .6); max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 {
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__cols a {
  display: block;
  color: rgba(251, 246, 236, .65);
  font-size: .94rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer__cols a:hover { color: var(--paper); }
.footer__bottom {
  border-top: 1px solid rgba(251, 246, 236, .1);
  padding: 22px 0;
  color: rgba(251, 246, 236, .5);
  font-size: .85rem;
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .hero { padding: 60px 0; }
  .hero__grid, .story__grid, .visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .story__quote { position: static; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .legend-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  section { padding: 70px 0; }
  .banner { background-attachment: scroll; min-height: 360px; padding: 0; }
  .banner__overlay { padding: 90px 0 50px; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.8rem; }
  .hero__stats { gap: 22px; }
  .hero__stats strong { font-size: 1.8rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .tl::before { left: 28px; }
  .tl__item { grid-template-columns: 60px 1fr; gap: 18px; }
  .tl__item::before { left: 22px; }
  .tl__year { font-size: 1.1rem; text-align: left; padding-top: 6px; }
  .visit__list li { grid-template-columns: 1fr; gap: 2px; }
  .postcard__photo { height: 180px; }
}
