/* ============================================================
   Valemont Invest — twelve years
   Modern magazine feature / long-read
   Palette: charcoal #16161a · cream #f2ede4 · coral #ff5a3c · stone #8d857a
   ============================================================ */

:root {
  --ink:      #16161a;
  --ink-2:    #1f1f25;
  --ink-3:    #2b2b33;
  --cream:    #f2ede4;
  --cream-2:  #e7e0d3;
  --text:     #232327;
  --coral:    #ff5a3c;
  --coral-dp: #d43f22;
  --stone:    #8d857a;
  --stone-dk: #5f574c;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease:  cubic-bezier(.22,.61,.28,1);
  --ease2: cubic-bezier(.16,.84,.34,1);

  --wrap: 1180px;
  --measure: 43rem;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* film grain over the whole document */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: .05;
  background-image: var(--grain);
  background-size: 320px 320px;
  mix-blend-mode: overlay;
}

img { max-width: 100%; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 10000;
  background: var(--coral);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2.5rem);
}

/* ---------------- masthead ---------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22,22,26,.82);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border-bottom: 1px solid rgba(242,237,228,.12);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  padding: .55rem 0;
}
.mark__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
  transition: transform .45s var(--ease2);
}
.mark:hover .mark__dot,
.mark:focus-visible .mark__dot { transform: scale(1.55); }
.mark__word em { font-style: normal; color: var(--stone); }

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem clamp(.9rem, 2vw, 1.6rem);
}
.masthead__nav a {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  font-size: .83rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .7rem .1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: .8;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 12px;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width .38s var(--ease2);
}
.masthead__nav a:hover,
.masthead__nav a:focus-visible { opacity: 1; color: #fff; }
.masthead__nav a:hover::after,
.masthead__nav a:focus-visible::after { width: 100%; }

/* ---------------- opening band ---------------- */

.opening {
  position: relative;
  min-height: min(94vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 16vh, 9rem) 0 clamp(9rem, 20vh, 13rem);
  background:
    radial-gradient(120% 90% at 12% 6%, rgba(255,90,60,.24), transparent 58%),
    radial-gradient(100% 80% at 92% 88%, rgba(141,133,122,.22), transparent 62%),
    var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.opening__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}
.opening__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.12) contrast(1.05);
}
.opening__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(142deg, #ff5a3c 0%, #d0492c 42%, #6a4144 84%, #3a2c30 100%);
  mix-blend-mode: multiply;
}

.opening__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(22,22,26,.97) 0%,
      rgba(22,22,26,.95) 30%,
      rgba(22,22,26,.90) 48%,
      rgba(22,22,26,.80) 66%,
      rgba(22,22,26,.60) 78%,
      rgba(22,22,26,.26) 90%,
      rgba(22,22,26,.08) 100%),
    linear-gradient(to right, rgba(22,22,26,.55) 0%, rgba(22,22,26,.18) 46%, transparent 74%);
}
.opening__copy {
  position: relative;
  z-index: 2;
  max-width: 60rem;
}

.kicker {
  margin: 0 0 1.1rem;
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral-dp);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px; height: 2px;
  background: var(--coral);
  vertical-align: middle;
  margin-right: .7rem;
  transform: translateY(-2px);
}
.kicker--light { color: var(--coral); }

.opening h1 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 7.2vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.028em;
  color: #fff;
  max-width: 15ch;
  text-wrap: balance;
  text-shadow: 0 1px 6px rgba(0,0,0,.7), 0 2px 40px rgba(0,0,0,.65);
}
.opening__stand {
  margin: 0 0 2.2rem;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  line-height: 1.6;
  color: #e9e3d8;
  text-shadow: 0 1px 16px rgba(0,0,0,.6);
}
.opening__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem clamp(1.4rem, 4vw, 3rem);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242,237,228,.24);
  max-width: 40rem;
}
.opening__facts > div { margin: 0; }
.opening__facts dt {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .2rem;
}
.opening__facts dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  color: #fff;
}

/* ---------------- bands ---------------- */

.band { position: relative; }

.band--cream {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255,90,60,.09), transparent 60%),
    radial-gradient(80% 55% at 0% 100%, rgba(141,133,122,.16), transparent 62%),
    var(--cream);
}
.band--cream::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 320px 320px;
  opacity: .055;
  pointer-events: none;
}
.band--cream > .wrap { position: relative; z-index: 1; }

.band--lift {
  position: relative;
  z-index: 5;
  margin-top: -7rem;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -28px 60px -30px rgba(0,0,0,.8);
}
.band--lift-up {
  position: relative;
  z-index: 5;
  margin-top: -6rem;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -28px 60px -30px rgba(0,0,0,.8);
}

.band--ink {
  background:
    radial-gradient(110% 85% at 88% 0%, rgba(255,90,60,.17), transparent 60%),
    radial-gradient(90% 70% at 4% 96%, rgba(141,133,122,.2), transparent 64%),
    var(--ink);
  color: var(--cream);
}
.band--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 320px 320px;
  opacity: .07;
  pointer-events: none;
}
.band--ink > .wrap { position: relative; z-index: 1; }

/* ---------------- story prose ---------------- */

.story {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(3.6rem, 8vw, 7rem);
}
.story > section + section { margin-top: clamp(3rem, 6vw, 4.8rem); }

.story p { margin: 0 0 1.35rem; }
.story p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.28rem, 2.5vw, 1.68rem);
  line-height: 1.42;
  letter-spacing: -.012em;
  color: var(--ink);
  margin-bottom: 1.9rem !important;
  max-width: 36rem;
}
.lede::before {
  content: "";
  display: block;
  width: 62px; height: 4px;
  background: var(--coral);
  margin-bottom: 1.5rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.024em;
  color: var(--ink);
  margin: 0 0 1.3rem;
  text-wrap: balance;
}

h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.16rem, 2.2vw, 1.4rem);
  line-height: 1.22;
  letter-spacing: -.012em;
  margin: 2.4rem 0 .8rem;
}

.story a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 0 var(--coral);
  padding-bottom: 1px;
  transition: background-color .32s var(--ease), box-shadow .32s var(--ease), color .32s var(--ease);
}
.story a:hover,
.story a:focus-visible {
  color: #fff;
  background-color: var(--coral);
  box-shadow: inset 0 -2px 0 0 var(--coral);
}

strong { font-weight: 600; color: var(--ink); }

/* ---------------- pull quotes ---------------- */

.pullquote {
  margin: clamp(2.4rem, 5vw, 3.6rem) 0;
  padding: 0 0 0 clamp(1rem, 3vw, 2.2rem);
  border-left: 5px solid var(--coral);
}
.pullquote p {
  margin: 0 !important;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.42rem, 3.5vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote--wide {
  border-left: none;
  border-top: 1px solid rgba(22,22,26,.22);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  text-align: center;
}
.pullquote--wide p { color: var(--coral-dp); }

/* ---------------- figures ---------------- */

.figure {
  margin: clamp(2.4rem, 5vw, 3.4rem) 0;
}
.figure--offset { margin-left: calc(-1 * clamp(0rem, 7vw, 6rem)); margin-right: clamp(0rem, 2vw, 1.5rem); }
.figure--offset-right { margin-right: calc(-1 * clamp(0rem, 7vw, 6rem)); margin-left: clamp(0rem, 2vw, 1.5rem); }

.figure figcaption {
  margin-top: .85rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--stone-dk);
  padding-left: 1rem;
  border-left: 2px solid var(--coral);
}

/* duotone treatment: coral highlights, charcoal shadows */
.duo {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 4px;
}
.duo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) brightness(1.1) contrast(1.05);
  transform: scale(1.001);
  transition: transform 1.1s var(--ease2);
}
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(142deg, #ff5a3c 0%, #c9432a 40%, #4a3138 84%, #2c2429 100%);
  mix-blend-mode: multiply;
}
.figure:hover .duo img { transform: scale(1.035); }

/* ---------------- timeline ---------------- */

.band--timeline { padding: clamp(4rem, 9vw, 7rem) 0 clamp(7rem, 14vw, 11rem); }

.band__title {
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.026em;
  margin: 0 0 1rem;
  max-width: 22rem;
}
.band__lede {
  max-width: 38rem;
  color: var(--stone);
  font-size: 1.02rem;
  margin: 0 0 clamp(3rem, 7vw, 4.6rem);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--coral) 0%, rgba(255,90,60,.35) 45%, rgba(141,133,122,.5) 100%);
}

.tl {
  position: relative;
  padding-bottom: clamp(2.6rem, 6vw, 4rem);
}
.tl::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 15px; height: 15px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border: 3px solid var(--coral);
  box-shadow: 0 0 0 7px rgba(255,90,60,.13);
  z-index: 2;
  transition: box-shadow .5s var(--ease2), background-color .5s var(--ease2);
}
.tl:hover::before { box-shadow: 0 0 0 11px rgba(255,90,60,.24); background: var(--coral); }

.tl__card {
  width: calc(50% - 3.4rem);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(242,237,228,.16);
  border-radius: 4px;
  background: linear-gradient(155deg, rgba(242,237,228,.055), rgba(242,237,228,.014));
  transition: border-color .45s var(--ease), transform .55s var(--ease2), background-color .45s var(--ease);
}
.tl:hover .tl__card { border-color: rgba(255,90,60,.6); transform: translateY(-3px); }

.tl:nth-child(odd) .tl__card { text-align: right; margin-left: 0; }
.tl:nth-child(even) .tl__card { margin-left: auto; }

.tl__year {
  margin: 0 0 .55rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: -.02em;
  color: var(--coral);
  line-height: 1;
}
.tl__title {
  margin: 0 0 .7rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
}
.tl__card p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.66;
  color: rgba(242,237,228,.82);
}

/* ---------------- FAQ ---------------- */

.faq { margin-top: 1.6rem; }
.faq details {
  border-top: 1px solid rgba(22,22,26,.2);
}
.faq details:last-child { border-bottom: 1px solid rgba(22,22,26,.2); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem .2rem;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.04rem, 2.1vw, 1.24rem);
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--ink);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: .34rem;
  border-radius: 50%;
  border: 2px solid var(--coral);
  transition: background-color .3s var(--ease), transform .4s var(--ease2);
}
.faq summary:hover,
.faq summary:focus-visible { color: var(--coral-dp); padding-left: .55rem; }
.faq details[open] > summary::before { background: var(--coral); transform: scale(.78); }

.faq__body { padding: 0 0 1.4rem 2.05rem; }
.faq__body p { margin: 0; font-size: .99rem; line-height: 1.7; }

/* ---------------- closing band ---------------- */

.closing { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4.5rem, 11vw, 8rem); }
.closing__inner { max-width: 54rem; }
.closing__quote {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.05rem, 6.2vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
.closing__copy {
  max-width: 36rem;
  color: var(--stone);
  font-size: 1.02rem;
  margin: 0;
}

/* ---------------- footer ---------------- */

.foot {
  background: #101014;
  color: var(--cream);
  padding: clamp(3.2rem, 7vw, 5rem) 0 3rem;
  border-top: 1px solid rgba(242,237,228,.1);
}
.foot__brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
}
.foot__brand em { font-style: normal; color: var(--coral); }
.foot__blurb {
  max-width: 40rem;
  color: var(--stone);
  font-size: .96rem;
  margin: 0 0 2.6rem;
}

.foot__net-title {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(242,237,228,.12);
}

.linknet {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  columns: 2;
  column-gap: clamp(1.4rem, 4vw, 3.4rem);
}
.linknet li { break-inside: avoid; }
.linknet a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  padding: .62rem .2rem;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  font-size: .93rem;
  border-bottom: 1px solid rgba(242,237,228,.09);
  transition: color .3s var(--ease), padding-left .3s var(--ease), background-color .3s var(--ease);
}
.linknet a span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: .82rem;
  color: var(--coral);
  flex: none;
}
.linknet a:hover,
.linknet a:focus-visible { color: #fff; padding-left: .75rem; background: rgba(255,90,60,.12); }

.foot__legal {
  border-top: 1px solid rgba(242,237,228,.12);
  padding-top: 1.5rem;
  color: var(--stone);
  font-size: .84rem;
  line-height: 1.7;
}
.foot__legal p { margin: 0 0 .8rem; }
.foot__legal a { color: var(--cream); }

/* ---------------- scroll reveal (JS-enhanced) ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease2), transform .8s var(--ease2);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .figure--offset,
  .figure--offset-right { margin-left: 0; margin-right: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1.02rem; }

  .masthead__nav { display: none; }

  .opening { padding: 4rem 0 8rem; min-height: 84vh; }
  .opening h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .opening__facts { gap: .7rem 1.6rem; }

  .band--lift, .band--lift-up { margin-top: -3.5rem; border-radius: 22px 22px 0 0; }

  .pullquote { border-left-width: 4px; }
  .pullquote--wide { text-align: left; }

  /* timeline collapses to a single left rail */
  .timeline::before { left: 9px; transform: none; }
  .tl::before { left: 9px; transform: translateX(-50%); }
  .tl__card {
    width: auto;
    margin-left: 2.6rem !important;
    text-align: left !important;
  }

  .linknet { columns: 1; }
}

@media (max-width: 420px) {
  .opening__facts { flex-direction: column; gap: .9rem; padding-top: 1.2rem; }
  .story { padding-top: 3rem; }
  .faq__body { padding-left: .2rem; }
  .faq summary { padding-left: 0; }
  .faq summary:hover, .faq summary:focus-visible { padding-left: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .duo img, .figure:hover .duo img { transform: none; }
}

/* ---------- brand logo ---------- */
/* Sized relative to the adjacent wordmark (em) with an absolute cap, so each
   site's own type scale governs the mark instead of one fixed pixel height. */
.brand-logo {
  display: inline-block;
  height: min(1.1em, 18px);
  width: auto;
  margin-right: 0.45em;
  vertical-align: -0.22em;
}
.foot__brand .brand-logo,
.foot__wordmark .brand-logo,
.foot__logo .brand-logo {
  height: min(1.3em, 26px);
  margin-right: 0.45em;
  vertical-align: -0.24em;
}
@media (max-width: 640px) {
  .brand-logo { height: min(1.05em, 16px); margin-right: 0.35em; }
  .foot__brand .brand-logo,
  .foot__wordmark .brand-logo { height: min(1.2em, 22px); }
}
