/* ==========================================================================
   Autumn Kent — Engel & Völkers Aspen
   Palette: plaster / ink / spruce / brass  |  Type: Bodoni Moda + Jost
   ========================================================================== */

:root {
  --ink:        #15171a;
  --ink-soft:   #4a4f55;
  --ink-faint:  #82868b;
  --plaster:    #ecebe6;
  --plaster-2:  #e3e1da;
  --white:      #fafaf8;
  --spruce:     #33413a;
  --spruce-2:   #435449;
  --brass:      #9c7b45;
  --rule:       #cfccc3;
  --rule-dark:  rgba(250, 250, 248, .22);

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body:    "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gut: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* --- type ----------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

.display {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.015em;
}
.display em { font-style: italic; }

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 20px;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* --- layout --------------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(44px, 6vw, 84px); }
.hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* --- header --------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 235, 230, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.28rem; letter-spacing: .06em; text-decoration: none; line-height: 1;
}
.wordmark span { display: block; font-family: var(--body); font-size: 9.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding-block: 6px;
  border-bottom: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

.nav-toggle { display: none; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn__arrow { transition: transform .28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.textlink {
  text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .25s var(--ease);
}
.textlink:hover { border-bottom-color: var(--ink); }

/* --- hero ----------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 76px); align-items: center;
}
.hero__sub { margin-top: 30px; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.hero__figure { position: relative; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.figcap {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 12px;
}

/* --- signature: the provenance line --------------------------------------- */
.line {
  background: var(--spruce); color: var(--white);
  padding-block: clamp(40px, 5vw, 62px); overflow: hidden;
}
.line__label {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(250,250,248,.5); margin-bottom: 30px;
}
.line__track { position: relative; padding-top: 30px; }
.line__track::before {
  content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%;
  background: var(--rule-dark);
  transform-origin: left;
  transition: transform 1.5s var(--ease);
}
.js .line__track::before { transform: scaleX(0); }
.line__track.is-in::before { transform: scaleX(1); }
.line__stops {
  display: flex; justify-content: space-between; gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.line__stops li {
  position: relative; flex: 1 1 0; min-width: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .line__stops li { opacity: 0; transform: translateY(10px); }
.line__track.is-in .line__stops li { opacity: 1; transform: none; }
.line__stops li::before {
  content: ""; position: absolute; top: -31px; left: 0; width: 1px; height: 11px; background: var(--brass);
}
.line__stops li:last-child::before { height: 22px; top: -42px; width: 2px; }
.stop__place {
  font-family: var(--display); font-size: clamp(.95rem, 1.7vw, 1.45rem); line-height: 1.1;
  display: block;
}
.stop__note {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250,250,248,.5); margin-top: 7px; display: block;
}
.line__stops li:last-child .stop__place { font-style: italic; color: #e8d4b0; }

/* --- facts ---------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts > div { padding: clamp(26px, 3.4vw, 44px) 0; border-top: 1px solid var(--rule); }
.facts > div + div { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2.6vw, 36px); }
.fact__n { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1; display: block; letter-spacing: -.025em; }
.fact__l { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; display: block; }

/* --- services ------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 54px; }
.service { border-top: 1px solid var(--ink); padding-top: 22px; }
.service h3 { margin-bottom: 12px; }
.service p { font-size: .96rem; color: var(--ink-soft); }

/* --- split (about preview / bands) ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--portrait { grid-template-columns: .82fr 1.18fr; align-items: start; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; position: relative; z-index: 1; }
.portrait::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--brass);
  transform: translate(16px, 16px); pointer-events: none;
}

.pullquote {
  font-family: var(--display); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.28;
  font-style: italic; margin: 0 0 30px; padding-left: 26px; border-left: 1px solid var(--brass);
}

/* --- dark band ------------------------------------------------------------ */
.band { background: var(--spruce); color: var(--white); }
.band .lede, .band p { color: rgba(250,250,248,.76); }
.band .eyebrow { color: #d8b782; }
.band .hr { border-top-color: var(--rule-dark); }

/* --- credentials ---------------------------------------------------------- */
.creds { list-style: none; margin: 0; padding: 0; }
.creds li {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.creds li:last-child { border-bottom: 1px solid var(--rule); }
.creds dt, .creds .k {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
.creds .v { font-size: .98rem; }

/* --- contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.detail { border-top: 1px solid var(--rule); padding: 20px 0; }
.detail__k { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.detail__v { font-family: var(--display); font-size: 1.32rem; margin-top: 8px; }
.detail__v a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.detail__v a:hover { border-bottom-color: var(--brass); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 0; border-radius: 0;
  transition: border-color .25s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--brass); }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
  linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: right 6px center, right 1px center; background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat; padding-right: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .84rem; color: var(--ink-faint); }
.form__status { font-size: .92rem; padding: 14px 16px; border: 1px solid var(--rule); display: none; }
.form__status.is-ok { display: block; border-color: var(--spruce); background: rgba(51,65,58,.06); }
.form__status.is-err { display: block; border-color: #a4392f; background: rgba(164,57,47,.06); }

/* --- image bands ---------------------------------------------------------- */
.band-img img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.duo img { width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(250,250,248,.7); padding-block: 56px 30px; }
.footer a { color: rgba(250,250,248,.7); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__mark { font-family: var(--display); font-size: 1.5rem; color: var(--white); }
.footer h4 { font-family: var(--body); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(250,250,248,.45); margin: 0 0 16px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(250,250,248,.14);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 11px; letter-spacing: .1em; color: rgba(250,250,248,.45);
}

/* --- reveal --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid, .split, .split--portrait, .contact-grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .services { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div + div { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 20px; }
  .footer__top { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .line__stops { flex-wrap: wrap; row-gap: 26px; }
  .line__stops li { flex: 0 0 46%; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--rule);
    padding: 9px 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--plaster); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .row2 { grid-template-columns: 1fr; }
  .creds li { grid-template-columns: 1fr; gap: 6px; }
  .duo { grid-template-columns: 1fr; }
  .portrait::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal, .js .line__stops li { opacity: 1; transform: none; }
  .js .line__track::before { transform: scaleX(1); }
}
