:root{
    /* --text-light, --main-lighter, --gold, --ink, and --muted already
       match the global tokens in style.css and no longer need to be
       redeclared here. */
    --bg: #fdfcf9;
    --line: #e2ddd0;
  }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px 120px;
}

/* ---------- Header ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  text-align: center;
  color: var(--main);
  margin: 0 0 20px;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  max-width: 640px;
  margin: 0 auto 84px;
  text-align: center;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Age timeline (signature element) ---------- */
.timeline {
  position: relative;
  height: 34px;
  margin: 0 0 6px;
}
.timeline .rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 1px;
  background: var(--line);
}
.timeline .rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--main), var(--gold));
  opacity: 0.35;
}
.tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tick::after {
  content: "";
  display: block;
  width: 1px;
  height: 10px;
  background: var(--muted);
  opacity: 0.5;
  margin: 5px auto 0;
}
.tick[data-age="3"] {
  left: 0%;
}
.tick[data-age="5"] {
  left: 13.3%;
}
.tick[data-age="11"] {
  left: 53.3%;
}
.tick[data-age="16"] {
  left: 86.7%;
}

@media (max-width: 820px) {
  .timeline {
    display: none;
  }
}

/* ---------- Grid ---------- */
.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: min(100%, 860px);
  margin: 32px auto 0;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 33, 71, 0.05) 0 2px,
      transparent 2px 14px
    ),
    #f1efe6;
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card ---------- */
.card {
  --ox: 50%;
  --oy: 50%;
  position: relative;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
/* origin of each card's fill = the point where all four cards meet */
.card:nth-child(1) {
  --ox: 100%;
  --oy: 100%;
}
.card:nth-child(2) {
  --ox: 0%;
  --oy: 100%;
}
.card:nth-child(3) {
  --ox: 100%;
  --oy: 0%;
}
.card:nth-child(4) {
  --ox: 0%;
  --oy: 0%;
}

/* flip the top two cards so the image sits at the bottom of the card
   instead of the top. .fill is position:absolute so it's unaffected
   by the flex reorder — it keeps expanding from its corner origin. */
.card:nth-child(1),
.card:nth-child(2) {
  display: flex;
  flex-direction: column-reverse;
}

.card .fill {
  position: absolute;
  inset: 0;
  background: var(--main);
  clip-path: circle(0% at var(--ox) var(--oy));
  z-index: 0;
  transition: clip-path 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}
.card:hover .fill,
.card:focus-visible .fill {
  clip-path: circle(145% at var(--ox) var(--oy));
}
.card:hover,
.card:focus-visible {
  box-shadow: 0 18px 34px -18px rgba(0, 33, 71, 0.45);
  z-index: 2;
}

.card > *:not(.fill) {
  position: relative;
  z-index: 1;
}

.content {
  padding: 20px 24px 26px;
  background: #fff;
  text-align: center;
}
.cnt-flipped{

}
.card:nth-child(2) .content,
.card:nth-child(4) .content {
  border-left: 1px solid var(--line);
}
.card:nth-child(3) .content,
.card:nth-child(4) .content {
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .card .content {
    border-left: none !important;
  }
  .card:not(:first-child) .content {
    border-top: 1px solid var(--line);
  }

  /* on mobile the four cards are stacked in one column, so the
     "flip" that makes cards 1 & 2 show the image at the bottom
     (used on desktop to make images meet in the middle of the
     2x2 grid) just looks inconsistent. Un-flip them here so every
     card reads image-on-top, text-on-bottom, same as cards 3 & 4. */
  .card:nth-child(1),
  .card:nth-child(2) {
    flex-direction: column;
  }
  .card:nth-child(1) .image-ph,
  .card:nth-child(2) .image-ph {
    border-top: none;
    border-bottom: 1px dashed var(--line);
  }
  .card:nth-child(1) .badge,
  .card:nth-child(2) .badge {
    margin-top: -17px;
  }
}

/* image placeholder — transparent so the grid's shared pattern
     shows through unbroken across all four cards */
.image-ph {
  position: relative;
  height:60%;
  aspect-ratio: 1/1;
  background: transparent;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s ease;
}
.bro{
  width: 100%;
}
.card:hover .image-ph {
  border-color: rgba(245, 245, 220, 0.3);
}
.image-ph svg {
  width: 38px;
  height: 38px;
  color: var(--muted);
  opacity: 0.6;
  transition:
    color 0.35s ease,
    opacity 0.35s ease;
}
.broo{
  margin-top: 200px;
    width: 100%;
}
.image-ph .ph-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  transition: color 0.35s ease;
}

/* on the flipped cards, the divider needs to sit at the top of the
   image (which is now the bottom of the card) instead of its bottom */
.card:nth-child(1) .image-ph,
.card:nth-child(2) .image-ph {
  border-bottom: none;
  border-top: 1px dashed var(--line);
}

/* age badge — overlaps the image */
.badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--main);
  border: 1px solid var(--accent);
  background: #fffdf4;
  border-radius: 999px;
  padding: 5px 14px;
  margin: -17px 0 20px;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}
.badge span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
}

/* content is on top now for the flipped cards, so the badge no longer
   overlaps an image above it — drop the negative offset */
.card:nth-child(1) .badge,
.card:nth-child(2) .badge {
  margin-top: 0;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--main);
  margin: 0 0 6px;
  transition: color 0.35s ease;
}

.stage {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  transition: color 0.35s ease;
}
.card:hover .stage {
  color: var(--accent);
}

p.desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
  min-height: 88px;
  transition: color 0.35s ease;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--main);
  text-decoration: none;
  transition: color 0.35s ease;
}
.more svg {
  width: 15px;
  height: 15px;
  transition:
    transform 0.35s ease,
    color 0.35s ease;
}
.card:hover .more {
  color: var(--accent);
}
.card:hover .more svg {
  transform: translateX(5px);
}

/* ---------- CTA strip (small nod to reference layout) ---------- */
.cta {
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--main);
  border-radius: 8px;
  padding: 28px 34px;
}
.cta p {
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
}
.cta p strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}
.cta a {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--main);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 4px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.cta a:hover {
  background: #fff;
  transform: translateY(-1px);
}