/* =========================================================================
   Affiliated Eye Specialists, P.A. — site styles
   Plain CSS, no build step. Custom properties → layout → components.
   ========================================================================= */

:root {
  /* Palette: white paper, graphite type, the theme teal as the accent */
  --paper:      #ffffff;
  --paper-2:    #f4f7f7;
  --paper-3:    #e6eded;
  --ink:        #222726;   /* headings */
  --ink-2:      #14201f;   /* dark bands + footer */
  --ink-3:      #1d2b2a;
  --text:       #5d6564;   /* body copy */
  --muted:      #737b7a;   /* labels, meta */
  --line:       #dde4e4;
  --line-dark:  #2c3a39;
  --brand:      #007c7b;   /* Consultivo theme colour carried over */
  --brand-soft: #0a9d9b;
  --brand-ink:  #00615f;   /* brand at text contrast on white */

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 76rem;      /* max content width */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

::selection { background: var(--brand); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.h-xl { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.05; }
.h-lg { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; }

/* Section headings are teal on this site, per the brand */
.h-lg, .h-md { color: var(--brand); }

.eyebrow {
  font-family: var(--font-display);
  line-height: 1.7;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  flex: 0 0 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.lede {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem);
  color: #4d5554;
  line-height: 1.7;
}

.dim { color: var(--muted); }

/* ---------- layout ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 88rem; }

.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 1.8rem; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.8rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--brand-soft); transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }

/* Underlined text link with a sweeping rule */
.link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-ink);
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .35s var(--ease), color .3s var(--ease);
}
.link:hover { color: var(--brand); background-size: 0% 1px; }

/* =========================================================================
   Header — thin contact strip above the main bar
   ========================================================================= */
.topbar {
  background: var(--ink-2);
  color: #b3bebd;
  font-size: .78rem;
  letter-spacing: .04em;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.8rem;
  padding-block: .6rem;
}
.topbar a { text-decoration: none; transition: color .3s var(--ease); }
.topbar a:hover { color: var(--brand-soft); }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--brand-soft); flex: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  padding-block: 1.1rem;
  transition: padding .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-stuck {
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(20, 32, 31, .07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  width: auto;
  height: clamp(44px, 5.5vw, 60px);
  transition: height .35s var(--ease);
}
.header.is-stuck .brand img { height: clamp(38px, 4.6vw, 48px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.9rem); }

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .3rem;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--brand); }

.nav__cta { margin-left: .5rem; padding: .65rem 1.3rem; }

/* Mobile menu button */
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 2;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  /* keep the logo above the full-screen menu */
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 1rem; letter-spacing: .2em; }
  .nav__cta { margin-left: 0; }
  body.nav-open { overflow: hidden; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(84svh, 780px);
  display: grid;
  place-items: center;
  padding-block: 6rem 4rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink-2) center/cover no-repeat;
  transform: scale(1.05);
  animation: heroDrift 24s var(--ease) forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(10,22,21,.44), rgba(10,22,21,.80) 76%),
    linear-gradient(to bottom, rgba(10,22,21,.74), rgba(10,22,21,.38) 40%, rgba(10,22,21,.90));
}
@keyframes heroDrift { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media { animation: none; transform: none; } }

.hero h1 { color: #fff; }
.hero__welcome {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .9rem + 1.1vw, 1.6rem);
  font-weight: 700;
  color: var(--brand-soft);
  letter-spacing: .02em;
}
.hero__name {
  display: block;
  font-size: clamp(2.1rem, 6.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.hero__tagline {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.8rem);
  font-weight: 300;
  line-height: 1.45;
  max-width: 26ch;
  margin-inline: auto;
  color: rgba(255,255,255,.85);
}
.hero__rule {
  width: 96px; height: 3px;
  margin-inline: auto;
  background: var(--brand-soft);
  border: 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

/* The capability words under the hero copy */
.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem clamp(1.25rem, 3.4vw, 2.75rem);
  list-style: none;
  padding: 0;
}
.pillars li {
  font-family: var(--font-display);
  font-size: clamp(.78rem, .74rem + .28vw, .98rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}

/* thin scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  translate: -50% 0;
  width: 1px; height: 48px;
  background: linear-gradient(var(--brand-soft), transparent);
  opacity: .9;
}

/* =========================================================================
   Page header for interior pages
   ========================================================================= */
.pagehead {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 120% at 82% 0%, rgba(0,124,123,.12), transparent 64%);
  pointer-events: none;
}
.pagehead__inner { position: relative; }
.pagehead h1 { margin-top: .6rem; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); }

/* breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--muted);
}
.crumbs a { text-decoration: none; transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--brand); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .55; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* =========================================================================
   Generic split / feature blocks
   ========================================================================= */
.split {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
  .split--narrow { grid-template-columns: minmax(0, 380px) 1fr; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__media--portrait img { aspect-ratio: 4 / 5; object-position: top center; }
.split__media--wide img { aspect-ratio: 16 / 7; }
/* teal hairline frame, offset behind the photo */
.split__media::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(0,124,123,.42);
  border-radius: var(--radius);
  z-index: -1;
}

/* stat / detail row */
.facts {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.fact__label {
  margin-top: .45rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================================
   Service cards
   ========================================================================= */
.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}
.card {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background-color .4s var(--ease);
}
@media (min-width: 620px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card:hover { background: var(--paper-2); }
.card__icon {
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  opacity: .9;
}
.card__index {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .18em;
}
.card h3 { margin: .85rem 0 .65rem; font-size: 1.25rem; color: var(--brand); font-weight: 600; }
.card__icon + h3 { margin-top: 0; }
.card p { color: var(--text); font-size: .96rem; line-height: 1.7; }

/* =========================================================================
   Checklist — advantages, awards, memberships, insurance carriers
   ========================================================================= */
.checklist { list-style: none; padding: 0; margin-top: 1.5rem; }
.checklist li {
  position: relative;
  padding: .55rem 0 .55rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  line-height: 1.6;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .35rem; top: 1.15rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
/* two-up on wide screens, for the longer inventories */
@media (min-width: 760px) {
  .checklist--cols { columns: 2; column-gap: clamp(1.5rem, 4vw, 3rem); }
  .checklist--cols li { break-inside: avoid; }
}

/* =========================================================================
   Insurance panel
   ========================================================================= */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.panel + .panel { margin-top: 1.5rem; }
.panel h3 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.panel .note { font-size: .92rem; color: var(--muted); line-height: 1.7; }
.panel .note + .note { margin-top: 1rem; }

/* =========================================================================
   Testimonials
   ========================================================================= */
.quotes {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin-top: 3rem;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover {
  border-color: rgba(0,124,123,.5);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,32,31,.08);
}
.quote::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: .8;
  color: var(--brand);
  opacity: .35;
}
.quote blockquote { font-size: .98rem; line-height: 1.75; color: var(--text); }
.quote figcaption {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

/* =========================================================================
   New-patient document callout
   ========================================================================= */
.doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}
.doc svg { width: 28px; height: 28px; fill: var(--brand); flex: none; }
.doc__text { flex: 1 1 16rem; }
.doc__text p { font-size: .92rem; color: var(--muted); margin-top: .2rem; }
.doc a.doc__link {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.doc a.doc__link:hover { color: var(--brand); }

/* =========================================================================
   Education resources
   ========================================================================= */
.resources { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.resource {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  text-decoration: none;
  transition: background-color .35s var(--ease);
}
.resource:hover { background: var(--paper-2); }
.resource p { flex: 1 1 24rem; font-size: .98rem; line-height: 1.7; color: var(--text); }
.resource__url {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand-ink);
  white-space: nowrap;
}
.resource:hover .resource__url { color: var(--brand); }

/* =========================================================================
   Frame brands
   ========================================================================= */
.tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin-top: 1.5rem; }
.tags li {
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
  background: var(--paper);
}

/* =========================================================================
   Contact details
   ========================================================================= */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.detail + .detail { margin-top: 1.85rem; }
.detail__label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
.detail__value {
  margin-top: .35rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  text-decoration: none;
  display: inline-block;
  font-style: normal;
  transition: color .3s var(--ease);
}
a.detail__value:hover { color: var(--brand); }

/* map embed */
.map {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.map iframe { width: 100%; height: clamp(280px, 42vw, 420px); border: 0; }

/* =========================================================================
   CTA band
   ========================================================================= */
.band {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  background: var(--ink-2);
  color: #c2cccb;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 140% at 50% 100%, rgba(0,124,123,.30), transparent 70%);
}
.band > * { position: relative; }
.band .h-lg { color: #fff; }
.band .eyebrow { color: var(--brand-soft); }

.band__lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem clamp(2rem, 6vw, 4.5rem);
  margin-top: 2.5rem;
}
.band__line { text-align: center; }
.band__label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.band__value {
  display: inline-block;
  margin-top: .35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  font-style: normal;
  transition: color .3s var(--ease);
}
.band__value:hover { color: var(--brand-soft); }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; background: var(--ink-2); color: #96a2a1; }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.footer__logo { width: 170px; margin-bottom: 1.15rem; background: #fff; padding: .6rem .8rem; border-radius: var(--radius); }
.footer h2 {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: .55rem; }
.footer a { text-decoration: none; color: #96a2a1; font-size: .95rem; transition: color .3s var(--ease); }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; color: #96a2a1; font-size: .95rem; line-height: 1.7; }
.footer p { font-size: .95rem; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8rem;
  letter-spacing: .04em;
}

/* back-to-top */
.to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 50;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-soft); }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================================
   Reveal on scroll (JS adds .is-in)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* Never leave content hidden if JS fails */
.no-js .reveal { opacity: 1; transform: none; }

/* visually hidden (available to screen readers and crawlers) */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* skip link */
.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .7rem 1.2rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }
