/* ============================================================
   justinebrian.com — plum & blush
   ============================================================ */

:root {
  --plum:      #7d2d54;
  --plum-dk:   #672442;
  --plum-lt:   #a86487;
  --blush:     #fbeef3;
  --blush-2:   #fdf7f9;
  --cream:     #f1e9e2;
  --cream-rgb: 241, 233, 226;   /* for feathering the portrait into the page */
  --white-rgb: 255, 255, 255;   /* what sits BELOW the portrait when stacked */
  --ink:       #2f2a2c;
  --muted:     #6f666b;
  --line:      #e9dfe4;
  --white:     #fff;

  --serif:  "Lora", Georgia, serif;
  --sans:   "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Parisienne", "Segoe Script", cursive;

  --wrap:   72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:  clamp(3rem, 7vw, 5.5rem);
  --head-h: 4.5rem;
  --r:      14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--plum); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%); z-index: 300;
  background: var(--plum); color: #fff; padding: .7rem 1.2rem; text-decoration: none; border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.script { font-family: var(--script); font-weight: 400; color: var(--plum); line-height: 1.35; }
.script-lg { font-size: clamp(2rem, 5.2vw, 3rem); }

.kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--plum); margin-bottom: .9rem;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--head-h); }
.brand { text-decoration: none; display: grid; gap: .1rem; }
.brand-name {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.brand-tag { font-family: var(--script); font-size: clamp(.95rem, 1.9vw, 1.15rem); color: var(--plum); line-height: 1; }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.menu a {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .16s ease;
}
.menu a:hover { color: var(--plum); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--plum); }
.burger span[aria-hidden] { display: grid; gap: 4px; width: 24px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  background: var(--cream);
  align-items: stretch;
}
.hero-copy { display: flex; align-items: center; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 5vw, 4.5rem) var(--gutter); }
.hero-copy-in { max-width: 34rem; margin-left: auto; padding-right: clamp(1rem, 3vw, 2.5rem); }

.hero h1 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); line-height: 1.24; margin-bottom: 1.1rem; }
.hero h1 .script { display: block; font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-top: .35rem; }
.hero-lede { color: var(--muted); font-size: clamp(.92rem, 1.6vw, 1.02rem); max-width: 26rem; margin-bottom: 1.75rem; }
.hero-btns { display: grid; gap: .7rem; justify-items: start; }

.hero-photo { position: relative; }
.portrait { position: relative; width: 100%; height: 100%; min-height: 22rem; overflow: hidden; background: var(--cream); }
/* No frame: the photo dissolves into the hero rather than sitting in a box.
   Straight edges, soft transitions — the right edge stays full-bleed to the
   viewport, which reads as intentional rather than cropped. */
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right,  rgb(var(--cream-rgb)) 0%, rgba(var(--cream-rgb), 0) 30%),
    linear-gradient(to bottom, rgba(var(--cream-rgb), 0) 80%, rgb(var(--cream-rgb)) 100%),
    linear-gradient(to top,    rgba(var(--cream-rgb), 0) 86%, rgb(var(--cream-rgb)) 100%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
/* Until a real portrait exists this panel has to look deliberate, not broken:
   a branded plum field rather than a grey placeholder box. */
.portrait-fallback {
  display: none;
  position: absolute; inset: 0;
  place-items: center; align-content: center;
  gap: .4rem; text-align: center; padding: 1.5rem;
}
.portrait-fallback::before {
  content: "J";
  font-family: var(--serif); font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: .9; color: #fff; opacity: .92;
}
.portrait-fallback::after {
  content: "People. Operations. Experience.";
  font-family: var(--script); font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: rgba(255,255,255,.82);
}
.portrait.no-photo {
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(155deg, var(--plum-lt) 0%, var(--plum) 55%, var(--plum-dk) 100%);
}
.portrait.no-photo .portrait-fallback { display: grid; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.6rem; border-radius: 6px; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-solid { background: var(--plum); color: #fff; }
.btn-solid:hover { background: var(--plum-dk); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-line:hover { background: var(--plum); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--plum); }
.btn-white:hover { background: var(--blush); transform: translateY(-1px); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- sections ---------- */
.section { padding-block: var(--sec-y); }
.section-tint { background: var(--blush-2); }

.sec-title {
  text-align: center; color: var(--plum);
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.sec-title::after {
  content: ""; display: block; width: 3rem; height: 2px;
  background: var(--plum); margin: .9rem auto 0; opacity: .55;
}
.sec-left { text-align: left; }
.sec-left::after { margin-inline: 0; }
.sec-sub { text-align: center; color: var(--muted); max-width: 40rem; margin: -1.25rem auto 2.25rem; font-size: .96rem; }
.sec-sub b { color: var(--ink); font-weight: 700; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars li { text-align: center; padding: 0 clamp(.75rem, 1.8vw, 1.5rem); border-left: 1px solid var(--line); }
.pillars li:first-child { border-left: 0; }
.badge {
  display: grid; place-items: center;
  width: 3.6rem; height: 3.6rem; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--blush); color: var(--plum);
}
.badge svg { width: 1.7rem; height: 1.7rem; }
.pillars h3 {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--plum); margin-bottom: .6rem; line-height: 1.4;
}
.pillars p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: .25rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 1.6rem; bottom: 1.6rem;
  width: 2px; background: var(--blush); border-radius: 2px;
}
.tl-item {
  position: relative; display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start; gap: 0 clamp(.9rem, 2vw, 1.4rem);
  padding: 1.35rem 0 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline .tl-item:last-child { border-bottom: 0; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--plum); margin-top: 1.6rem;
}
.tl-logo {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.35rem; color: var(--plum);
}
.tl-co {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum); margin-bottom: .25rem;
}
.tl-role { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.tl-when { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .4rem; }
.tl-skills { font-size: .87rem; color: var(--muted); line-height: 1.65; }
.tl-skills b { color: var(--plum-lt); font-weight: 400; padding-inline: .12em; }

details { margin-top: .6rem; }
summary {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum);
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-size: .95rem; }
details[open] summary::before { content: "–"; }
details ul { display: grid; gap: .35rem; margin-top: .6rem; }
details li { position: relative; padding-left: .95rem; font-size: .87rem; color: var(--muted); }
details li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--plum-lt); }

.edu { margin-top: 1.75rem; font-size: .88rem; color: var(--muted); display: grid; gap: .2rem; }
.edu b { color: var(--ink); }

/* ---------- where I'm going ---------- */
.panel {
  background: var(--blush); border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.panel-copy p { font-size: .92rem; color: var(--muted); }
/* must out-specify `.panel-copy p` above, or the script collapses to body size */
.panel-copy p.script-lg { font-size: clamp(1.75rem, 4.4vw, 2.5rem); color: var(--plum); margin-bottom: .9rem; }
.lanes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem;
  border-left: 1px solid rgba(125,45,84,.18); padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.lanes li {
  display: grid; justify-items: center; gap: .55rem; text-align: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--plum); line-height: 1.35;
}
.lanes svg { width: 1.75rem; height: 1.75rem; color: var(--plum); }

/* ---------- beyond / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 1.4vw, 1rem); }
.cards a {
  position: relative; display: block; aspect-ratio: 4/3;
  overflow: hidden; border-radius: 10px; text-decoration: none; background: #2b2226;
}
.cards img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,.8,.3,1), opacity .3s ease; }
.cards a:hover img, .cards a:focus-visible img { transform: scale(1.06); opacity: .82; }
.cards span {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .8rem .7rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}
.cards-cta { text-align: center; margin-top: 2rem; }

/* ---------- connect ---------- */
.connect { background: var(--plum); color: #fff; padding-block: clamp(2.75rem, 6vw, 4.5rem) 1.5rem; }
.connect-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start;
}
.connect-copy > p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 1.5rem; max-width: 24rem; }
/* same specificity trap as the panel — keep this after `.connect-copy > p` */
.connect-copy > p.script-lg { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .6rem; }

.connect-links { display: grid; gap: .85rem; margin-bottom: 1.75rem; }
.connect-links li { display: flex; align-items: center; gap: .75rem; }
.connect-links span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255,255,255,.14); flex: none; }
.connect-links svg { width: 1.05rem; height: 1.05rem; color: #fff; }
.connect-links a { color: #fff; font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.connect-links a:hover { border-bottom-color: #fff; }

.form {
  background: #fff; border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  display: grid; gap: .85rem;
  box-shadow: 0 18px 45px rgba(60, 20, 40, .22);
}
.field { display: grid; gap: .3rem; }
.field label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--blush-2);
  border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.55; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--plum); background: #fff;
  box-shadow: 0 0 0 3px rgba(125,45,84,.12);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c1553f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .85rem; min-height: 1.3em; color: var(--muted); text-align: center; }
.form-status.is-ok { color: var(--plum); font-weight: 700; }
.form-status.is-error { color: #c1553f; }

.colophon {
  text-align: center; margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .78rem; letter-spacing: .06em; color: rgba(255,255,255,.7);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.16,.8,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 62rem) {
  .lanes { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 52rem) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .lanes { border-left: 0; padding-left: 0; border-top: 1px solid rgba(125,45,84,.18); padding-top: 1.5rem; }
  .connect-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 0; }
  .pillars li:nth-child(odd) { border-left: 0; }
}

@media (max-width: 46rem) {
  :root { --head-h: 4rem; }

  .burger { display: block; }
  .menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem; display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { display: block; padding: .8rem 0; font-size: .82rem; border-bottom: 1px solid var(--line); }
  .menu li:last-child a { border-bottom: 0; }

  /* hero keeps the side-by-side portrait — it's the signature of this design */
  .hero { grid-template-columns: 1.08fr .92fr; }
  .hero-copy { padding: 2rem 0 2rem var(--gutter); }
  .hero-copy-in { padding-right: .9rem; }
  .hero h1 { font-size: 1.45rem; line-height: 1.3; }
  .hero h1 .script { font-size: 1.4rem; }
  .hero-lede { font-size: .85rem; margin-bottom: 1.25rem; }
  .btn { padding: .7rem 1.1rem; font-size: .7rem; letter-spacing: .1em; }
  .hero-btns { gap: .55rem; justify-items: stretch; }
  .portrait { min-height: 0; }

  .tl-item { grid-template-columns: auto minmax(0, 1fr); gap: 0 .9rem; }
  .tl-logo { display: none; }
  .tl-dot { margin-top: .5rem; }
  .tl-role { font-size: .95rem; }
  .tl-when { display: block; margin-left: 0; }

  .lanes { grid-template-columns: repeat(3, 1fr); gap: 1.25rem .75rem; }
  .lanes li { font-size: .62rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Below this the side-by-side hero leaves the text column under ~200px, which
   wraps the headline to five lines. The portrait moves beneath instead. */
@media (max-width: 34rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 2.25rem var(--gutter) 2rem; }
  .hero-copy-in { padding-right: 0; max-width: none; margin-left: 0; }
  .hero h1 { font-size: 1.65rem; }
  .hero h1 .script { font-size: 1.6rem; }
  .hero-lede { font-size: .92rem; max-width: none; }
  /* Deliberately NOT given a definite height: the portrait renders at its full
     aspect so she is shown whole. Constraining the height makes object-fit:cover
     crop her to a letterbox strip of eyes, which reads far worse than asking
     someone to scroll. Do not "fix" the fold by cropping this. */
  .portrait { min-height: 21rem; }
  .portrait img { object-position: center 25%; }
  /* Stacked: feather top and bottom instead of the left edge. Each edge must
     fade to whatever it actually meets — cream above (the hero copy), white
     below (the next section). Fading the bottom to cream leaves a visible
     cream-on-white seam. */
  .portrait::after {
    background:
      linear-gradient(to top,    rgba(var(--cream-rgb), 0) 78%, rgb(var(--cream-rgb)) 100%),
      linear-gradient(to bottom, rgba(var(--white-rgb), 0) 72%, rgb(var(--white-rgb)) 100%);
  }
}

@media (max-width: 26rem) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li { border-left: 0; }
  .lanes { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- print: clean résumé ---------- */
@media print {
  :root { --plum: #000; --plum-dk: #000; --plum-lt: #444; --blush: #fff; --blush-2: #fff; --cream: #fff; --ink: #000; --muted: #333; --line: #ccc; }
  .masthead, .burger, .menu, .hero-btns, .hero-photo, .cards, .cards-cta,
  .form, .btn, .badge, .lanes svg, .colophon { display: none !important; }
  body { font-size: 10.5pt; line-height: 1.4; color: #000; }
  .hero { display: block; background: #fff; }
  .hero-copy { padding: 0 0 .5rem; }
  .hero h1 { font-size: 18pt; }
  .hero h1 .script, .script { font-family: var(--serif); color: #000; }
  .section, .connect { padding-block: .7rem; background: #fff; color: #000; }
  .connect-copy .script-lg { color: #000; }
  .connect-links a { color: #000; }
  .sec-title { text-align: left; letter-spacing: .12em; }
  .sec-title::after { margin-inline: 0; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillars li { border-left: 0; text-align: left; padding-left: 0; }
  .panel { background: #fff; padding: 0; }
  details ul { display: grid !important; }
  summary { display: none; }
  .tl-item { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; color: #000; }
}
