/* About page: a turquoise hero, then white sections in the style of robin-noguier.com/about. */
:root {
  --bg: #ffffff; --ink: #1b1b1f; --muted: rgba(27,27,31,.68); --accent: #c15bff; --teal: #0e8a8f; --line: rgba(27,27,31,.14);
  --turquoise: #29c5c9;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body { color: var(--ink); font-family: var(--sans); min-height: 100vh; }
a { color: inherit; }

/* Fixed top bar: dark text throughout; a white fade behind it once past the hero */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(16px, 4vh, 36px) clamp(20px, 4vw, 56px);
  color: #1b1b1f; transition: color .3s, background .3s;
}
.top.on-dark { background: linear-gradient(to bottom, #ffffff 55%, rgba(255,255,255,0)); }
.back { text-decoration: none; font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.back span { display: inline-block; transition: translate .3s ease; }
.back:hover span, .back:focus-visible span { translate: -4px 0; }

/* Hero: avatar, "Hello, I am / Jessica!" and the teal double swash */
.hero {
  background: var(--turquoise); color: #1b1b1f; text-align: center;
  display: flex; flex-direction: column; align-items: center; padding: clamp(96px, 14vh, 140px) 20px clamp(64px, 10vh, 110px);
}
.hero-avatar { width: clamp(84px, 9vw, 124px); height: auto; margin-bottom: clamp(1.6rem, 4vh, 2.6rem); animation: pop .7s cubic-bezier(.2,.9,.3,1.3) .1s both; }
.hero-title { font: 600 clamp(3rem, 8vw, 6.6rem)/1.02 var(--serif); letter-spacing: -0.02em; color: #ffffff; }
.hero-title em { font-style: italic; }
.hero-title .name { color: #1b1b1f; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: .3s; }
.hero-title .line:nth-child(2) > span { animation-delay: .43s; }
.hero-swash { width: clamp(180px, 22vw, 330px); height: auto; margin-top: .4rem; overflow: visible; }
.hero-swash path { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .7s ease-out forwards; }
.hero-swash path:nth-child(1) { animation-delay: .9s; }
.hero-swash path:nth-child(2) { animation-delay: 1.1s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes rise { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Sections */
main > section:not(.hero) { padding-left: clamp(20px, 7vw, 120px); padding-right: clamp(20px, 7vw, 120px); }
.intro { margin-top: clamp(3.5rem, 9vh, 6rem); max-width: 900px; }
.lead { font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.4; font-weight: 600; margin-bottom: 2rem; }
.roles { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.roles a { text-decoration: none; font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.roles a:hover, .roles a:focus-visible { color: var(--accent); }

.block { margin-top: clamp(5rem, 14vh, 9rem); }
.section-title { font: 600 clamp(2rem, 3.4vw, 3rem)/1.1 var(--serif); letter-spacing: -0.02em; margin-bottom: 1.6rem; }
.block-text { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 6rem); margin-bottom: 3rem; }
.split .section-title { margin-bottom: 0; }

/* About me: text with a photo collage of Jessica and the cats */
.about-me { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-copy p { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; color: var(--muted); margin-bottom: 1.4rem; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-copy a { color: var(--teal); text-underline-offset: 3px; }
.collage { position: relative; aspect-ratio: 4 / 5.2; }
.collage img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(27,27,31,.18); }
.c-main { left: 0; top: 0; width: 78%; height: 72%; }
.c-cat-1 { right: 0; top: 52%; width: 44%; height: 34%; }
.c-cat-2 { left: 12%; bottom: 0; width: 40%; height: 32%; }
.c-cat { object-position: 50% 38%; }   /* keep the cats' faces in frame */

/* Experience timeline: newest down the left column, older down the right, with a divider */
.experience {
  list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto);
  column-gap: clamp(2rem, 6vw, 7rem); row-gap: 2.4rem;
}
.experience::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.experience li { display: flex; align-items: flex-start; gap: clamp(1rem, 2.4vw, 2rem); }
.x-tile { position: relative; flex: none; width: clamp(110px, 12vw, 170px); aspect-ratio: 5 / 4; border-radius: 18px; }
.x-tile img { position: absolute; inset: 22% 16%; width: 68%; height: 56%; object-fit: contain; }
.x-meta { display: flex; flex-direction: column; gap: .5rem; }
.x-dates { font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.x-company { font: 600 clamp(1.3rem, 2vw, 1.75rem)/1.1 var(--sans); }
.x-sub { color: var(--ink); font-size: .95rem; font-weight: 600; }
.x-highlight { color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 42ch; }

/* Writing, interviews & talks: one horizontally scrollable row with previous/next buttons */
.media-nav { display: flex; justify-content: flex-end; gap: 10px; margin: -1.5rem 0 1.2rem; }
.media-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(27,27,31,.25); background: transparent; color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: background .2s, border-color .2s;
}
.media-btn:hover, .media-btn:focus-visible { background: rgba(193,91,255,.12); border-color: var(--accent); }
.media {
  list-style: none; padding: 14px 8px 18px; margin: -14px -8px 0; scroll-padding-inline: 8px;   /* room for the hover lift and ring */
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(27,27,31,.25) transparent; outline: none;
}
.media:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 18px; }
.media > li { flex: 0 0 clamp(260px, 30vw, 360px); scroll-snap-align: start; }
.media a { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; background: var(--m); color: #ffffff; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.media a:hover, .media a:focus-visible { transform: translateY(-6px); }
.media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #fff; }
.m-type { padding: 22px 24px 0; font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.m-title { padding: 8px 24px 24px; font: 600 clamp(1.05rem, 1.4vw, 1.25rem)/1.35 var(--sans); }

/* Beyond product: two split cards side by side. Each is a colour panel with the text and the full photo
   on the other side; the split is the photo's own edge. --a is the panel, --b the accent (arrow chip). */
.split-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.split-card {
  position: relative; display: grid; grid-template-columns: 58% 42%; grid-template-rows: 100%; height: 200px;
  overflow: hidden; border-radius: 24px; color: #fff; text-decoration: none; background: var(--a);
}
.sc-text { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 20px clamp(18px, 2.2vw, 30px); min-width: 0; }
.sc-eyebrow { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.sc-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.sc-title { font: 600 clamp(1.35rem, 2vw, 1.9rem)/1.06 var(--serif); letter-spacing: -0.02em; }
.split-card:nth-child(2) .sc-title { font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.sc-more { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.sc-more span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--b); color: var(--b-ink); letter-spacing: 0; transition: translate .3s ease; }
.sc-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.split-card:hover .sc-img, .split-card:focus-visible .sc-img { transform: scale(1.05); }
.split-card:hover .sc-more span, .split-card:focus-visible .sc-more span { translate: 4px 0; }
.split-card:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
@media (max-width: 900px) {
  .split-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .split-card { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .sc-img { order: -1; aspect-ratio: 4 / 3; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .sc-img, .sc-more span { transition: none; } }

/* Footer: Let's connect, in the teal from jexyla.com */
.connect {
  margin-top: clamp(5rem, 14vh, 9rem); background: var(--turquoise); color: #ffffff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(20px, 7vw, 120px);
}
.connect-title { font: 600 clamp(3rem, 7vw, 6rem)/1 var(--serif); letter-spacing: -0.02em; }
.connect-title em { display: block; }
.connect-links { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 4px solid #fff; display: grid; gap: 1.6rem; justify-items: start; }
.connect-email { display: inline-flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; font: 600 clamp(1.15rem, 1.8vw, 1.5rem) var(--serif); }
.connect-email:hover, .connect-email:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.connect-email svg { width: 30px; height: 30px; flex: none; }
.socials { list-style: none; padding: 0; display: flex; gap: 14px; }
.socials a {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--turquoise); transition: transform .25s ease, background .25s, color .25s;
}
.socials a:hover, .socials a:focus-visible { transform: translateY(-3px); background: #1b1b1f; color: #fff; }
.socials svg { width: 24px; height: 24px; }
.connect .back { grid-column: 1 / -1; margin-top: 1.5rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .split, .about-me, .connect { grid-template-columns: 1fr; }
  .experience { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .experience::before { display: none; }
  .collage { max-width: 460px; }
  .connect-links { padding-left: 1.2rem; }
  .media > li { flex-basis: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-avatar, .hero-title .line > span, .hero-swash path { animation: none; transform: none; opacity: 1; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Links purple, hovers light purple (applies across the About page) */
:root { --link: #9b34d8; --hover-bg: #f1e3fd; --hover-ring: #e2c6fa; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.back { color: var(--link); padding: .35rem .6rem; margin: -.35rem -.6rem; border-radius: 999px; transition: background .2s; }
.back:hover, .back:focus-visible { background: var(--hover-bg); }

.roles a { color: var(--link); border-bottom-color: var(--link); padding: .2rem .3rem 6px; margin: 0 -.3rem; border-radius: 6px 6px 0 0; transition: background .2s; }
.roles a:hover, .roles a:focus-visible { color: var(--link); background: var(--hover-bg); }

.about-copy a { color: var(--link); border-radius: 4px; transition: background .2s; }
.about-copy a:hover, .about-copy a:focus-visible { background: var(--hover-bg); }

.media a:hover, .media a:focus-visible { box-shadow: 0 0 0 4px var(--hover-ring); }
.media-btn { color: var(--link); border-color: rgba(155,52,216,.35); }
.media-btn:hover, .media-btn:focus-visible { background: var(--hover-bg); border-color: var(--link); }


/* Footer on turquoise: white email text, turquoise icons in white circles */
.connect-email { color: #fff; }
.connect-email:hover, .connect-email:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.socials a { color: #29c5c9; transition: transform .25s, background .2s, color .2s; }
.socials a:hover, .socials a:focus-visible { background: var(--hover-bg); color: var(--link); }

/* Top-left "Back": liquid-glass pill, like the About button on the work page */
.top .back {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; margin: 0; overflow: hidden;
  padding: clamp(.8rem, 1.6vw, 1.15rem) clamp(1.2rem, 2vw, 1.8rem); border-radius: 999px;
  color: #1b1b1f; font: 600 clamp(.85rem, 1.1vw, 1rem) var(--sans); letter-spacing: normal; text-transform: none;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.28));
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.7) brightness(1.04); -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.04);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -2px 6px rgba(120,140,160,.18), inset 0 0 18px rgba(255,255,255,.35), 0 10px 30px rgba(30,40,60,.12);
}
.top .back::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 2px; height: 42%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.75), rgba(255,255,255,0));
}
.top .back:hover, .top .back:focus-visible { background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.5)); }
@media (max-width: 700px) { .top .back { padding: .65rem 1rem; } }

/* Hand-drawn arrow after "Let's", as on jexyla.com */
.doodle { display: inline-block; width: 1.7em; height: auto; margin-left: .2em; vertical-align: -.12em; overflow: visible; }
.doodle path { fill: none; stroke: #fff; stroke-width: 28; stroke-linecap: round; stroke-linejoin: round; }
