/* ==========================================================================
   Phil Choy Real Estate — Calgary
   Visual system adapted from the Stewart & Co Real Estate template
   Palette, typography and motion mirror the reference site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy:        #2e4157;
  --navy-80:     #2e4157d9;
  --navy-dark:   #223145;
  --cream:       #f4efeb;
  --mint:        #bed9d8;
  --white:       #ffffff;
  --white-70:    #ffffffb3;
  --white-20:    #ffffff33;
  --black:       #000000;
  --line:        #2e415726;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Fragment Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: 40px;
  --maxw: 1440px;
  --nav-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Several components set an explicit `display`, which would otherwise beat the
   UA stylesheet's [hidden] rule and leak "Load more" rows onto the page. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0;
}
h1, .h1 { font-size: clamp(34px, 5.2vw, 72px); }
h2, .h2 { font-size: clamp(30px, 3.6vw, 52px); }
h3, .h3 { font-size: clamp(22px, 2.2vw, 32px); }
h4, .h4 { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: 0.08em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy-80);
  margin: 0 0 22px;
  display: block;
}
.eyebrow--light { color: var(--white-70); }
/* Company wordmark in the hero — reads as the brand without competing with the h1 */
.eyebrow--brand {
  font-size: 13px; letter-spacing: 0.3em; color: var(--mint);
  text-shadow: 0 1px 16px #1b2739e6, 0 0 4px #1b273999; /* holds up over the bright snow */
}
.lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; color: var(--navy-80); }
.muted { color: var(--navy-80); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section--tight { padding: clamp(56px, 6vw, 90px) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .eyebrow { color: var(--white-70); }
.section--white { background: var(--white); }
.section--mint { background: var(--mint); }
.grid { display: grid; gap: 28px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--navy .rule { background: var(--white-20); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--navy);
  --btn-line: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  z-index: 0;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-line);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); transform-origin: left center; }
.btn:hover { color: var(--cream); }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--light { --btn-fg: var(--white); --btn-line: var(--white); }
.btn--light:hover { color: var(--navy); }
.btn--solid { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--solid::after { background: var(--cream); }
.btn--solid:hover { color: var(--navy); }

/* Underline text link */
.link-u {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 5px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-u:hover { background-size: 100% 1px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--white);
  transition: background-color .5s var(--ease), color .5s var(--ease),
              box-shadow .5s var(--ease), height .5s var(--ease);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #00000059, transparent);
  opacity: 1;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.nav.is-stuck {
  background: var(--cream);
  color: var(--navy);
  height: 70px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-stuck::before { opacity: 0; }
.nav--solid { background: var(--navy); color: var(--white); }
.nav--solid::before { opacity: 0; }

.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  position: relative; z-index: 1;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  opacity: .7; margin-top: 6px;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }

.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 12px 24px; --btn-fg: currentColor; --btn-line: currentColor; }
.nav.is-stuck .nav__cta .btn:hover { color: var(--cream); }

.nav__burger { display: none; width: 30px; height: 18px; position: relative; }
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 8px; }
.nav__burger span:nth-child(3) { top: 16px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 60px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu a {
  font-family: var(--serif); font-size: clamp(30px, 7vw, 54px); font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: block; padding: 10px 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
body.menu-open .menu a { opacity: 1; transform: none; }
.menu__foot { margin-top: 46px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--white-70); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero--inner { min-height: 62svh; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14);
  animation: heroZoom 2.6s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #1b2739e6 0%, #1b273966 45%, #1b273933 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 8vw, 110px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__tag {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint);
  margin-top: 26px;
}
.hero__body { color: var(--white-70); font-size: 15.5px; line-height: 1.8; max-width: 52ch; }
.hero__body .btn { margin-top: 28px; }

/* Word-by-word reveal (mirrors the reference site's headline animation) */
.reveal-words > span {
  display: inline-block;
  opacity: 0.001;
  transform: translateY(10px);
}
.reveal-words.is-in > span {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0.001; transform: translateY(24px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal], .reveal-words > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ==========================================================================
   Intro / split blocks
   ========================================================================== */
.intro { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: clamp(28px, 5vw, 90px); }
.intro__copy p { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.75; font-weight: 300; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 84px); align-items: center; }
.split__media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.split__media:hover img { transform: scale(1.05); }
.split--flip .split__media { order: 2; }

/* ==========================================================================
   Search bar
   ========================================================================== */
.searchbar {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: stretch;
}
.searchbar__field { padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.searchbar__field label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--navy-80);
}
.searchbar__field select {
  border: 0; background: none; padding: 0; width: 100%;
  font-size: 15px; color: var(--navy); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232e4157' fill='none' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.searchbar__field select:focus { outline: none; }
.searchbar__submit {
  background: var(--navy); color: var(--cream);
  padding: 0 46px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .4s var(--ease);
}
.searchbar__submit:hover { background: var(--navy-dark); }

/* ==========================================================================
   Property cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: block; position: relative; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #dcd6d0; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--cream); color: var(--navy);
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 12px;
}
.card__badge--sold { background: var(--navy); color: var(--white); }
.card__price {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 60px 18px 16px;
  background: linear-gradient(to top, #1b2739e6, #1b273980 45%, transparent);
  text-shadow: 0 1px 12px #1b273959;
  color: var(--white);
  font-family: var(--serif); font-size: 22px; letter-spacing: .06em;
}
.card__body { padding: 18px 2px 0; }
.card__title { font-size: 20px; margin-bottom: 6px; }
.card__sub { font-size: 13px; color: var(--navy-80); margin-bottom: 16px; }
.card__specs {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.card__spec { display: flex; flex-direction: column; gap: 3px; }
.card__spec b { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: .04em; }
.card__spec span { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-80); }
.card__area { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-80); margin-top: 12px; }

.cards--3 .card__media { aspect-ratio: 4/3; }
.section--navy .card__badge { background: var(--mint); }
.section--navy .card__sub,
.section--navy .card__spec span,
.section--navy .card__area { color: var(--white-70); }
.section--navy .card__specs { border-color: var(--white-20); }

.load-more { display: flex; justify-content: center; margin-top: 56px; }

/* ==========================================================================
   Feature / CTA panels
   ========================================================================== */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel {
  position: relative; overflow: hidden;
  min-height: 460px;
  display: flex; align-items: flex-end;
  color: var(--white);
  padding: 40px;
}
.panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #1b2739f2 0%, #1b2739b3 45%, #1b27394d 100%);
}
.panel:hover img { transform: scale(1.06); }
.panel__inner { position: relative; z-index: 2; max-width: 42ch; }
.panel__inner p { color: var(--white-70); font-size: 15px; margin: 14px 0 26px; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.stat b {
  display: block;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 8vw, 118px); line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.stat p { font-size: 14.5px; line-height: 1.7; color: var(--white-70); max-width: 30ch; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
}
.quote p { font-family: var(--serif); font-size: 21px; font-weight: 300; line-height: 1.5; letter-spacing: .01em; }
.quote cite {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; font-style: normal; color: var(--navy-80);
  margin-top: 28px;
}

/* ==========================================================================
   Steps / process
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { padding-top: 26px; border-top: 1px solid var(--line); }
.section--navy .step { border-color: var(--white-20); }
.step b {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--navy-80); margin-bottom: 22px;
}
.section--navy .step b { color: var(--mint); }
.step h4 { margin-bottom: 12px; }
.step p { font-size: 14.5px; line-height: 1.75; color: var(--navy-80); }
.section--navy .step p { color: var(--white-70); }

/* ==========================================================================
   Community tiles
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile { position: relative; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; padding: 30px; color: var(--white); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #1b2739e0, #1b273933 65%); }
.tile:hover img { transform: scale(1.07); }
.tile__inner { position: relative; z-index: 2; }
.tile__inner h4 { margin-bottom: 8px; }
.tile__inner span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--white-70); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.news { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.news__form { display: flex; gap: 0; border-bottom: 1px solid var(--white-20); padding-bottom: 12px; }
.news__form input {
  flex: 1; background: none; border: 0; color: var(--white);
  font-size: 16px; padding: 8px 0;
}
.news__form input::placeholder { color: var(--white-70); }
.news__form input:focus { outline: none; }
.news__form button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--white); padding: 8px 0 8px 20px;
  transition: color .4s var(--ease);
}
.news__form button:hover { color: var(--mint); }
.news__fine { font-size: 11.5px; line-height: 1.7; color: var(--white-70); margin-top: 20px; }
.news__fine a { text-decoration: underline; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-80); }
.field input, .field select, .field textarea {
  border: 0; border-bottom: 1px solid var(--line); background: none;
  padding: 10px 0; font-size: 16px; border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }

/* ==========================================================================
   Contact detail list
   ========================================================================== */
.details { display: flex; flex-direction: column; gap: 30px; }
.detail { padding-top: 22px; border-top: 1px solid var(--line); }
.detail span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-80); margin-bottom: 10px; }
.detail a, .detail p { font-family: var(--serif); font-size: 24px; font-weight: 300; letter-spacing: .04em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy); color: var(--white); padding: clamp(60px, 7vw, 96px) 0 34px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .6fr)); gap: 46px; padding-bottom: 54px; }
.footer__brand .brand__name { font-size: 26px; }
.footer__blurb { color: var(--white-70); font-size: 14.5px; line-height: 1.8; max-width: 40ch; margin-top: 24px; }
.footer h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mint); margin: 0 0 22px; font-weight: 400;
}
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 14.5px; color: var(--white-70); transition: color .35s var(--ease); }
.footer li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--white-20);
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--white-70);
}
.footer__bottom nav { display: flex; gap: 26px; flex-wrap: wrap; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.pagehead { position: relative; padding: calc(var(--nav-h) + 90px) 0 clamp(56px, 7vw, 100px); background: var(--navy); color: var(--white); overflow: hidden; }
.pagehead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #1b2739cc, #1b273959); }
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead h1 { color: var(--white); max-width: 16ch; }
.pagehead p { color: var(--white-70); max-width: 56ch; margin-top: 22px; font-size: 16px; line-height: 1.8; }

/* ==========================================================================
   Misc
   ========================================================================== */
.notice {
  background: var(--mint); color: var(--navy);
  padding: 18px 24px; font-size: 13px; line-height: 1.6;
  border-left: 2px solid var(--navy);
}
.headshot {
  aspect-ratio: 4/5; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: var(--white);
}
.headshot b { font-family: var(--serif); font-size: 72px; font-weight: 300; letter-spacing: .12em; }
.headshot span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--white-70); text-align: center; padding: 0 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .searchbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .searchbar__submit { grid-column: 1 / -1; padding: 20px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .intro, .split, .news { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .panels { grid-template-columns: 1fr; }
  .steps, .quotes, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr; gap: 46px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --nav-h: 70px; }
  .cards, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .card__title { font-size: 17px; }
  .card__specs { gap: 12px; }
  .steps, .quotes, .tiles { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .panel { min-height: 380px; padding: 28px; }
}
@media (max-width: 480px) {
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
}
