/* Haven Pacific Advisory - the introduction document, made into a website.
   Palette sampled from the document itself: cream F1F0EC, greige DEDACF and
   the warm near-black the photography is overlaid with. Two faces do all the
   work, as they do in print: Cormorant Garamond for anything that speaks,
   Jost for anything that labels. */

:root {
  --cream:    #F1F0EC;
  --greige:   #DEDACF;
  --paper:    #F7F5F2;
  --ink:      #2C2620;
  --ink-soft: #5B5148;
  --bronze:   #9C8A73;
  --line:     rgba(44, 38, 32, 0.16);
  --line-light: rgba(247, 245, 242, 0.32);
  --overlay:  rgba(48, 40, 33, 0.52);
  --gutter:   clamp(24px, 5vw, 64px);
  --shell:    1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band  { padding: clamp(64px, 9vw, 128px) 0; }
.band--tight { padding: clamp(48px, 6vw, 80px) 0; }
.band--greige { background: var(--greige); }
.band--cream  { background: var(--cream); }

/* ── Type ──────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--bronze);
  margin: 0 0 22px;
}
.display, h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}
h1, .d1 { font-size: clamp(42px, 6.4vw, 86px); }
h2, .d2 { font-size: clamp(32px, 4.4vw, 58px); }
h3, .d3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.16; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
p { margin: 0 0 18px; }
.measure { max-width: 64ch; }

/* ── Header ────────────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(241, 240, 236, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__row {
  max-width: var(--shell); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lockup { display: block; line-height: 1; }
.lockup__name {
  display: block;
  font-size: 19px; letter-spacing: 0.42em; text-transform: uppercase;
  font-weight: 300; color: var(--ink);
}
.lockup__sub {
  display: block; margin-top: 6px;
  font-size: 8px; letter-spacing: 0.34em; text-transform: uppercase;
  font-weight: 400; color: var(--bronze);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 400; color: var(--ink-soft); white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ondark { border-color: var(--line-light); background: transparent; color: var(--paper); }
.btn--ondark:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Photographic bands ────────────────────────────────────────────────── */
/* A warm ground stands in until the photograph is dropped in, so a missing
   file reads as a design choice rather than a hole. */
.scene {
  position: relative;
  background-color: #6B5C4E;
  background-image: linear-gradient(140deg, #7C6C5C 0%, #55483D 58%, #3E342C 100%);
  background-size: cover; background-position: center;
  color: var(--paper);
  isolation: isolate;
}
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--overlay);
}
.scene--hero { min-height: min(84vh, 760px); display: flex; align-items: flex-end; }
.scene--hero .shell { width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 6vw, 82px); }
.scene .eyebrow { color: rgba(247, 245, 242, 0.76); }
.scene .lede { color: rgba(247, 245, 242, 0.84); }

/* ── Statistics ────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 38px; }
.scene .stats { border-top-color: var(--line-light); }
.stat__figure { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.stat__label { display: block; margin-top: 10px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); }
.scene .stat__label { color: rgba(247, 245, 242, 0.7); }

/* ── Numbered grid ─────────────────────────────────────────────────────── */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 4vw, 54px); margin-top: 56px; }
.point__no { font-size: 11px; letter-spacing: 0.3em; color: var(--bronze); display: block; margin-bottom: 14px; }
.point h3 { margin-bottom: 10px; }
.point p { color: var(--ink-soft); margin: 0; }

/* ── Split ─────────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { aspect-ratio: 4 / 5; background: var(--greige) center/cover; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 3 / 2; background: var(--greige) center/cover; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card__tag { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); }
.card__meta { font-size: 14px; color: var(--ink-soft); }

/* ── Team ──────────────────────────────────────────────────────────────── */
/* Capped rather than fractional: with one agent on the page, auto-fit at
   1fr stretched a single card the full width of the grid. */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 310px));
        justify-content: start; gap: clamp(28px, 3.5vw, 44px); }
.member__portrait { aspect-ratio: 4 / 5; background: var(--greige) center/cover; margin-bottom: 20px; }
.member__role { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); margin: 8px 0 12px; }
.member p { color: var(--ink-soft); font-size: 15px; }
.member__more { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 4px; }

/* ── Reviews ───────────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.review blockquote { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.42; font-weight: 300; }
.review figcaption { margin-top: 16px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); }
.stars { letter-spacing: 0.3em; color: var(--bronze); font-size: 12px; margin-bottom: 14px; }

/* ── Questions ─────────────────────────────────────────────────────────── */
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 3vw, 44px); }
.qa > div { border-top: 1px solid var(--line); padding-top: 20px; }
.qa h3 { font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; margin-bottom: 8px; }
.qa p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ── Form ──────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 14px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
input, select, textarea {
  width: 100%; min-height: 52px; padding: 14px 15px;
  font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 300; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0; outline: none;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
::placeholder { color: #A2968A; }
.note { font-size: 13px; color: var(--ink-soft); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: #2C2620; color: rgba(247, 245, 242, 0.82); padding: clamp(56px, 6vw, 88px) 0 40px; }
.footer a { color: rgba(247, 245, 242, 0.82); }
.footer a:hover { color: var(--paper); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 26px; margin: 30px 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.footer__base { border-top: 1px solid var(--line-light); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; }
.footer .lockup__name { color: var(--paper); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .masthead__row { flex-wrap: wrap; gap: 12px 16px; padding: 12px var(--gutter); }
  .nav { width: 100%; justify-content: space-between; gap: 10px; }
  .nav a { font-size: 10px; letter-spacing: 0.14em; }
  .lockup__name { font-size: 16px; letter-spacing: 0.34em; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat__label { margin-top: 0; }
}
@media (max-width: 420px) {
  .nav a { font-size: 9px; letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── Photography ───────────────────────────────────────────────────────────
   Two layers, and the first one that exists wins: the photograph for this
   band if it has been added, and a warm gradient under it so a band is never
   bare. Dropping scene-<name>.jpg into assets is the whole of adding a
   photograph, and nothing here needs editing.

   The brand render was tried underneath as a stand-in and taken out again:
   it is a square tile with its own ground rather than a cut-out mark, so it
   either fought the headline or showed its own edges. A plain warm ground
   reads as a choice. A watermark reads as a mistake. */
.scene[data-scene] { background-repeat: no-repeat; background-size: cover; background-position: center; }

[data-scene="hero"]     { background-image: url('/assets/scene-hero.jpg'),     linear-gradient(140deg,#7C6C5C,#55483D 58%,#3E342C); }
[data-scene="about"]    { background-image: url('/assets/scene-about.jpg'),    linear-gradient(160deg,#75665A,#4E423A 60%,#3A312A); }
[data-scene="team"]     { background-image: url('/assets/scene-team.jpg'),     linear-gradient(120deg,#7A6A5B,#524539 62%,#3C332B); }
[data-scene="services"] { background-image: url('/assets/scene-services.jpg'), linear-gradient(200deg,#786959,#514438 55%,#3B322A); }
[data-scene="results"]  { background-image: url('/assets/scene-results.jpg'),  linear-gradient(170deg,#7E6E5E,#564839 58%,#3D342C); }
[data-scene="familiar"] { background-image: url('/assets/scene-familiar.jpg'), linear-gradient(135deg,#6E6053,#463B32 60%,#332B25); }
[data-scene="quote"]    { background-image: url('/assets/scene-quote.jpg'),    linear-gradient(215deg,#7B6B5B,#4B3F35 58%,#372F28); }
[data-scene="contact"]  { background-image: url('/assets/scene-contact.jpg'),  linear-gradient(150deg,#6F6154,#473C33 60%,#342C26); }

/* ── Agent profile ─────────────────────────────────────────────────────────
   A person, not a hero band. The portrait is a fixed column rather than half
   the page, cropped from the top so a face survives the crop, and the name
   sits at section scale. */
.profile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.profile__portrait { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; background: var(--greige) center top / cover; }
.profile__name { font-size: clamp(32px, 3.6vw, 50px); }
.profile .lede { font-size: 17px; }
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile__portrait { max-width: 210px; }
}
