:root {
  --ink: #111;
  --purple: #35063e;
  --secondary: #b8daff;
  --paper: #fffdf7;
  --pink: #ff8ad8;
  --radius: 20px;
  --border: 3px solid var(--ink);
  --display: "Poetsen One", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mist: #efe6fb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, .logo, .num, .group span, .list .t, .big-mail { font-synthesis: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -0.02em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px 5vw; background: var(--paper); }
.logo { font-family: var(--display); font-weight: 800; font-size: 2.3rem; text-decoration: none; color: var(--purple); letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 32px; align-items: center; font-weight: 600; font-size: .95rem; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.pill) { position: relative; display: inline-block; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.nav nav a:not(.pill):hover { transform: scale(1.14) rotate(-2deg); }
.nav nav a:not(.pill)::before { content: ""; position: absolute; inset: -14px -18px; pointer-events: none; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .25s cubic-bezier(.3, 1.8, .5, 1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none' fill='none' stroke='%2335063e' stroke-width='2.5' stroke-linecap='round'%3E%3Cg vector-effect='non-scaling-stroke'%3E%3Cpath vector-effect='non-scaling-stroke' d='M6 25H0M8 14L2 8M8 36L2 42M94 25h6M92 14l6-6M92 36l6 6M30 6l-2-6M70 6l2-6M30 44l-2 6M70 44l2 6'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.nav nav a:not(.pill):hover::before { opacity: 1; transform: scale(1); }
.pill { position: relative; background: var(--purple); color: var(--paper); padding: 8px 18px; border-radius: 999px; }
.pill::after { content: ""; position: absolute; left: 16px; right: 14px; bottom: 6px; height: 4px; transform: scaleX(0) rotate(-1deg); transform-origin: left; transition: transform .25s ease-out;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.6C20 2.2 45 3.4 70 2.6S92 2.8 99 2.2' fill='none' stroke='%23b8daff' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.pill:hover::after { transform: scaleX(1) rotate(-1deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; padding: 6vh 5vw; max-width: 1500px; margin: 0 auto; }
.hero-text { padding: 0; }
.hero-art { align-self: center; display: flex; justify-content: center; padding-top: min(87px, 18%); }
.avatar { top: -28px; --brad: 50% 50% 46% 54% / 55% 45% 55% 45%; position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / .8; }
.avatar .blob { position: absolute; inset: 0; overflow: hidden; border-radius: var(--brad); border: var(--border); background: linear-gradient(145deg, #e4f1ff 0%, var(--secondary) 45%, #8fbaf2 100%); box-shadow: 8px 8px 0 var(--ink), inset 10px 10px 24px rgba(255,255,255,.55), inset -12px -14px 28px rgba(40,80,160,.28); -webkit-transform: translateZ(0); transform: translateZ(0); }
.avatar .ring { display: none; }
.avatar .blob img { filter: drop-shadow(0 12px 14px rgba(53,6,62,.30)); }
.avatar img { position: absolute; left: 13%; bottom: 0; width: 74%; height: auto; display: block; }
.avatar .head { z-index: 3; clip-path: inset(0 0 55% 0); }
.nyu { color: #57068C; font-weight: inherit; }
.eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 560px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.8rem, 1.15vw, 1.05rem); margin-bottom: 26px; }
.eyebrow i { font-style: normal; font-size: 2.4em; line-height: 0; }
.hero h1 { font-weight: 800; font-size: clamp(2.6rem, 6.1vw, 7rem); line-height: 1; margin-bottom: 28px; }
.hero h1 em { font-style: normal; background: var(--secondary); padding: 0 .15em; border: 5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); display: inline-block; transform: rotate(-2deg); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 640px; margin-bottom: 36px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border: var(--border); border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--secondary); }
.btn-ghost { background: var(--paper); }

/* Marquee */
.marquee { position: relative; overflow: hidden; background: var(--purple); color: var(--paper); border-block: var(--border); }
.marquee-label { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 28px 0 5vw; background: var(--purple); color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; box-shadow: 18px 0 18px 4px var(--purple); }
.track { display: flex; width: max-content; will-change: transform; }
.group { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex: none; }
.group span { font-family: var(--body); font-weight: 600; font-size: 1.3rem; padding: 16px 0; white-space: nowrap; }
.group .tool { display: inline-flex; align-items: center; gap: 12px; }
.group .tool-icon { flex: none; display: block; height: 34px; width: auto; }
.group .tool-logo { flex: none; display: block; height: 34px; width: auto; }
.group i { flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: var(--secondary); }

/* Sections */
.section { padding: 10vh 5vw; border-bottom: var(--border); }
.c-sky { background: linear-gradient(165deg, #e4f1ff 0%, var(--secondary) 42%, #8fbaf2 100%); }
.c-lilac { background: linear-gradient(165deg, #f4eaff 0%, #d9b8ff 42%, #b592ea 100%); }
.c-paper { background: var(--paper); }
.c-pink { background: var(--pink); }
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: end; margin-bottom: 48px; max-width: 1200px; }
.num { --num-size: clamp(1rem, 2vw, 1.4rem); font-family: var(--display); font-weight: 800; font-size: var(--num-size); width: calc(var(--num-size) * 3); text-align: center; border: var(--border); border-radius: 999px; padding: 4px 0; align-self: start; grid-row: span 2; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; text-shadow: 2px 4px 7px rgba(53, 6, 62, .30); }
.section-head p { grid-column: 2; margin-top: 12px; max-width: 560px; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; }
.card { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--ink); }
.card h3 { font-size: 1.5rem; margin: 16px 0 6px; }
.card p { font-size: .95rem; }
.tags { font-size: .78rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 8px; }
.thumb { aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, #eee, #eee 10px, #e2e2e2 10px, #e2e2e2 20px); border: 2px dashed #888; border-radius: 12px; display: grid; place-items: center; color: #666; font-weight: 600; font-size: .9rem; }
figure.card .thumb { aspect-ratio: 1; }
figure.card.tall .thumb { aspect-ratio: 3 / 4; }
figcaption { margin-top: 12px; font-size: .85rem; font-weight: 600; }
.masonry { align-items: start; }

/* Writing list */
.list { list-style: none; max-width: 1200px; border-top: var(--border); }
.list a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 24px; row-gap: 8px; align-items: start; padding: 28px 8px; border-bottom: var(--border); text-decoration: none; transition: background .2s, padding .2s; }
.list a:hover { background: var(--secondary); padding-inline: 20px; }
.list .t { grid-column: 1; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.9rem); line-height: 1.15; }
.list .d { grid-column: 1; font-size: .98rem; line-height: 1.5; max-width: 760px; opacity: .85; }
.list .m { grid-column: 1; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.list .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 1.6rem; font-weight: 800; }

/* About */
.about { background: linear-gradient(165deg, #f8f3ff 0%, var(--mist) 38%, #cba8ee 82%, #a179cf 100%); border-bottom: var(--border); padding: 10vh 5vw 16vh; }
.about-inner { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 48px; align-items: center; max-width: 1200px; margin: 0 auto; }
.photo { aspect-ratio: 1; overflow: hidden; border: var(--border); border-radius: var(--radius); background: var(--secondary); display: grid; place-items: center; font-weight: 700; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-3deg); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.about h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; margin-bottom: 20px; text-shadow: 2px 4px 7px rgba(53, 6, 62, .18); }
.about p { font-size: 1.15rem; margin-bottom: 14px; max-width: 620px; }
.about-icons { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.about-icons a { width: 52px; height: 52px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), box-shadow .25s, background .2s; }
.about-icons a:hover { background: var(--secondary); transform: translate(-2px, -2px) scale(1.08) rotate(-4deg); box-shadow: 6px 6px 0 var(--ink); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); text-align: center; padding: 17vh 5vw 9vh; }
.contact h2 { font-size: clamp(2.6rem, 9vw, 8rem); font-weight: 800; }
.li-mark { font-family: var(--body); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.footer { padding: 24px 5vw; font-size: .85rem; text-align: center; background: var(--purple); color: #cbb8d6; }
.footer a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer-dot { opacity: .6; margin: 0 2px; }

/* Paper grain */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .16; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lede strong { font-weight: 700; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav nav a:not(.pill) { display: none; }
  .logo { font-size: clamp(1.15rem, 6.5vw, 1.6rem); white-space: nowrap; }
  .eyebrow { flex-wrap: nowrap; gap: 6px; font-size: clamp(.55rem, 2.6vw, .72rem); letter-spacing: .08em; }
  .eyebrow i { font-size: 1.6em; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .avatar { max-width: 320px; }
  .about-inner { grid-template-columns: 1fr; }
  .photo { max-width: 260px; }
  .about-icons { justify-content: center; }
  .list .t { font-size: clamp(1.05rem, 5vw, 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .nav nav a:not(.pill), .nav nav a:not(.pill)::before, .pill::after { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* AI Workflows case study */
.case { max-width: 1200px; padding: 0; }
.case:hover { transform: translate(-3px, -3px); }
.card.case .case-heading { margin: 0; font-size: inherit; letter-spacing: 0; }
.case-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); cursor: pointer; border-radius: var(--radius); }
.case-toggle:focus-visible { outline: 4px solid var(--purple); outline-offset: 4px; }
.case-title { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.case-plus { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: var(--border); border-radius: 50%; background: var(--purple); color: var(--paper); font-family: var(--display); font-size: 2rem; line-height: 1; padding-bottom: 4px; box-shadow: 3px 3px 0 var(--ink); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.case-toggle:hover .case-plus { transform: scale(1.12) rotate(90deg); }
.case.open .case-plus { transform: rotate(45deg); background: var(--secondary); color: var(--ink); }
.case.open .case-toggle:hover .case-plus { transform: rotate(45deg) scale(1.12); }
.case-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease; }
.case.open .case-body { grid-template-rows: 1fr; }
.case-inner { min-height: 0; overflow: hidden; visibility: hidden; padding: 0 clamp(20px, 3vw, 36px); transition: visibility 0s .5s; }
.case.open .case-inner { visibility: visible; padding-bottom: clamp(20px, 3vw, 36px); transition-delay: 0s; }
.case-sub { font-size: 1.1rem !important; max-width: 720px; margin-top: 4px; }
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 32px 0; }
.step { position: relative; background: var(--paper); border: var(--border); border-radius: 16px; padding: 16px 14px 18px; box-shadow: 4px 4px 0 var(--ink); }
.step:nth-child(odd) { background: var(--secondary); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); z-index: 2; font-family: var(--display); font-size: 1.3rem; line-height: 1; background: var(--purple); color: var(--paper); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.step-icon { display: block; font-size: 2rem; line-height: 1; }
.step h4 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; margin: 10px 0 2px; }
.step-tag { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: 8px; }
.step p { font-size: .92rem; line-height: 1.4; }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 24px; border-top: 3px solid var(--ink); }
.case-cols h4 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }
.case-cols p { font-size: 1rem; }
.case-note { margin-top: 26px; font-size: .85rem !important; font-weight: 600; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .case-body, .case-plus { transition: none; } }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; gap: 26px; }
  .step:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -22px; transform: none; }
  .case-cols { grid-template-columns: 1fr; }
}

/* Aside under the case study */
#ai-workflows { padding-bottom: 0; }
#ai-workflows .psst { max-width: 1200px; margin: 6px 0 0; padding: 34px 0 34px calc(clamp(1rem, 2vw, 1.4rem) * 3 + 20px); text-align: left; opacity: .7; }

/* Video embeds + consistent 16:9 media frames in Creative Work */
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; border: 2px solid var(--ink); }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video, .li-embed { height: auto; }
#creative .thumb { aspect-ratio: 16 / 9; }

/* Creative Work layout */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.case-gd { margin-top: 24px; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }

/* LinkedIn embed */
.li-embed { border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid var(--ink); }
.li-embed { aspect-ratio: 504 / 399; }
.li-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Once the cards actually sit side by side, match their heights so the row lines up */
@media (min-width: 700px) {
  .grid-2 .video, .grid-2 .li-embed { aspect-ratio: auto; height: 399px; }
}

/* In the Interim bar: same pattern as Toolkit, opposite color and direction */
.marquee-alt { background: var(--secondary); color: var(--purple); }
.marquee-alt .marquee-label { background: var(--secondary); color: var(--purple); box-shadow: 18px 0 18px 4px var(--secondary); }
.marquee-alt .group span { color: var(--purple); }
.marquee-alt .group i { background: var(--purple); }
.marquee-alt .group { padding-block: 13px; }
