:root {
  --bg: #0d0e12;
  --panel: #14161d;
  --panel-2: #191c25;
  --text: #f1efe9;
  --muted: #a9a8a3;
  --line: rgba(255,255,255,0.11);
  --accent: #b7a6ff;
  --accent-2: #78d7c8;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(105,85,190,0.16), transparent 34rem),
    radial-gradient(circle at 8% 55%, rgba(38,121,114,0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .045;
  z-index: 999;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  backdrop-filter: blur(18px);
}

.logo {
  font-size: .82rem;
  letter-spacing: .22em;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 28px;
  font-size: .9rem;
  color: var(--muted);
}

nav a:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .73rem;
  margin-bottom: 28px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.045em;
  max-width: 900px;
  margin-bottom: 32px;
}

h1 em, .large em {
  font-weight: 500;
  color: var(--accent);
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .93rem;
  transition: .22s ease;
}

.button.primary {
  background: var(--text);
  color: #0d0e12;
}

.button:hover { transform: translateY(-2px); }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .55;
  pointer-events: none;
}

.orb-one {
  width: 280px; height: 280px;
  right: 4%; top: 12%;
  background: radial-gradient(circle at 35% 30%, #cbbdff, #6c56c9 45%, transparent 72%);
  filter: blur(10px);
}

.orb-two {
  width: 140px; height: 140px;
  right: 24%; bottom: 10%;
  background: radial-gradient(circle, #8be4d7, #2d7a74 55%, transparent 72%);
  filter: blur(8px);
}

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 52px;
}

.section-heading.compact {
  grid-template-columns: 60px 1fr;
}

.section-heading span {
  color: var(--accent-2);
  font-size: .8rem;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.035em;
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 6px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, var(--panel), var(--panel-2));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183,166,255,.42);
}

.project-card.featured {
  grid-column: span 2;
  min-height: 420px;
}

.project-number {
  font-size: .8rem;
  color: var(--muted);
}

.project-content { max-width: 620px; }

.project-type {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  margin-bottom: 12px;
}

.project-card h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  margin-bottom: 16px;
}

.project-card p {
  color: var(--muted);
  max-width: 560px;
}

.project-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.about-copy .large,
.contact-copy .large {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.14;
}

.about-copy p:not(.large) {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 690px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.skills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: .84rem;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  margin-bottom: 36px;
}

.resume-block h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-2);
  margin-bottom: 24px;
}

.resume-entry {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.resume-entry strong, .resume-entry span {
  display: block;
}

.resume-entry span, .resume-entry time,
.resume-block li { color: var(--muted); }

.resume-block ul {
  margin: 0;
  padding-left: 18px;
}

.resume-block li { margin-bottom: 10px; }

.contact-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.email-link {
  display: inline-block;
  margin-top: 16px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}

.contact-note {
  color: var(--muted);
  margin-top: 28px;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 800px) {
  nav { gap: 14px; font-size: .8rem; }
  .site-header { padding-inline: 18px; }
  main { padding-inline: 18px; }
  .hero { min-height: 72vh; }
  .orb-one { right: -80px; top: 15%; }
  .section { padding: 78px 0; }
  .section-heading,
  .section-heading.compact {
    grid-template-columns: 42px 1fr;
  }
  .section-heading p {
    grid-column: 2;
  }
  .project-grid,
  .resume-grid,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .project-card.featured { grid-column: auto; }
  .split, .contact-section { gap: 30px; }
}

@media (max-width: 560px) {
  nav a:nth-child(2),
  nav a:nth-child(3) { display: none; }
  h1 { font-size: clamp(3.6rem, 18vw, 5rem); }
  .project-card { min-height: 320px; }
  footer { flex-direction: column; }
}


/* Case study pages */
.case-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 84px 24px 120px;
}
.case-back {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--muted);
}
.case-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  margin-bottom: 18px;
}
.case-page h1 {
  font-size: clamp(3.6rem, 8vw, 7rem);
  max-width: 900px;
}
.case-intro {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 70px;
}
.case-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}
.case-section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 18px;
}
.case-section p, .case-section li {
  color: var(--muted);
  font-size: 1.02rem;
}
.case-section ul {
  padding-left: 20px;
}
.quote-line {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--text);
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  gap: 20px;
}
.credibility-strip div { display: flex; flex-direction: column; }
.credibility-strip strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 500;
}
.credibility-strip span {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.sample-box {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.sample-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  margin-bottom: 14px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.process-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.process-card strong { display:block; margin-bottom:8px; }
.process-card p { margin:0; font-size:.92rem; }
@media (max-width: 700px) {
  .credibility-strip { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
}


/* V4: recruiter-friendly visual system */
.role-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
  font-size: .78rem;
}
.role-line > span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-right: 4px;
}
.role-line a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}
.role-line a:hover {
  color: var(--text);
  border-color: rgba(183,166,255,.45);
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -20px 0 30px 78px;
}
.filter {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
.filter:hover, .filter.active {
  color: var(--text);
  border-color: rgba(183,166,255,.5);
  background: rgba(183,166,255,.08);
}
.project-card.is-hidden { display: none; }

.project-art {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34%;
  max-width: 310px;
  min-width: 150px;
  aspect-ratio: 1 / .72;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  opacity: .78;
}
.project-art span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: .58rem;
  letter-spacing: .16em;
  color: rgba(255,255,255,.75);
}
.art-future {
  background:
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(255,255,255,.06) 18px),
    radial-gradient(circle at 68% 28%, rgba(120,215,200,.75), transparent 9%),
    radial-gradient(circle at 52% 45%, rgba(183,166,255,.55), transparent 34%),
    linear-gradient(145deg, #11131d, #271d4b);
}
.art-future:after {
  content:"";
  position:absolute; inset:20% 8%;
  border-top:1px solid rgba(255,255,255,.28);
  border-bottom:1px solid rgba(255,255,255,.12);
  transform:skewY(-14deg);
}
.art-chrys {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 13%, rgba(230,212,176,.34) 14% 17%, transparent 18%),
    repeating-conic-gradient(from 5deg at 50% 50%, rgba(221,194,151,.42) 0deg 10deg, transparent 11deg 25deg),
    radial-gradient(circle at 50% 50%, #6d4637, #171319 62%);
}
.art-vellichor {
  background:
    radial-gradient(circle at 22% 72%, rgba(120,215,200,.46), transparent 16%),
    radial-gradient(circle at 70% 32%, rgba(183,166,255,.56), transparent 22%),
    linear-gradient(160deg, #121722, #1a1a35 48%, #0b1217);
}
.art-vellichor:after {
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.09) 49%, transparent 52%);
  transform: translateX(-30%);
}
.art-content {
  background:
    linear-gradient(90deg, transparent 31%, rgba(255,255,255,.08) 32% 33%, transparent 34% 65%, rgba(255,255,255,.08) 66% 67%, transparent 68%),
    linear-gradient(160deg, #201a32, #14252b);
}
.art-content:after {
  content:"→";
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-family:"Playfair Display",serif;
  font-size:4rem;
  color:rgba(255,255,255,.18);
}
.art-ai {
  background:
    radial-gradient(circle at 20% 25%, rgba(120,215,200,.65) 0 3%, transparent 4%),
    radial-gradient(circle at 72% 32%, rgba(183,166,255,.68) 0 4%, transparent 5%),
    radial-gradient(circle at 46% 76%, rgba(240,220,170,.45) 0 3%, transparent 4%),
    linear-gradient(135deg, #10161d, #24203d);
}
.art-ai:after {
  content:"";
  position:absolute; inset:15%;
  background:
    linear-gradient(28deg, transparent 48%, rgba(255,255,255,.15) 49% 50%, transparent 51%),
    linear-gradient(-38deg, transparent 48%, rgba(255,255,255,.11) 49% 50%, transparent 51%);
}

.project-card .project-content {
  position: relative;
  z-index: 3;
  width: 66%;
}
.project-card.featured .project-content { width: 62%; }

.publication-bar {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.pub-label {
  display:block;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.68rem;
  margin-bottom:18px;
}
.pub-names {
  display:flex;
  flex-wrap:wrap;
  gap:22px 34px;
  align-items:center;
}
.pub-names span {
  font-family:"Playfair Display",serif;
  font-size:clamp(1.15rem,2vw,1.55rem);
  color:rgba(241,239,233,.80);
}

/* Full resume */
.resume-page-body { background: #0d0e12; }
.resume-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.resume-topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:70px;
  color:var(--muted);
}
.resume-hero {
  display:grid;
  grid-template-columns:1.5fr .5fr;
  gap:60px;
  padding-bottom:48px;
  border-bottom:1px solid var(--line);
}
.resume-hero h1 {
  font-size:clamp(4rem,9vw,7.5rem);
  margin-bottom:24px;
}
.resume-summary {
  color:var(--muted);
  font-size:1.12rem;
  max-width:680px;
}
.resume-contact {
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
  font-size:.9rem;
  padding-top:34px;
}
.resume-sheet-section {
  padding:46px 0;
  border-bottom:1px solid var(--line);
}
.resume-sheet-section > h2,
.resume-sheet-section.two-col h2 {
  font-family:"Playfair Display",serif;
  font-size:2rem;
  margin-bottom:28px;
}
.resume-sheet-entry {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px 30px;
  padding:24px 0;
  border-top:1px solid var(--line);
}
.resume-sheet-entry h3 { margin:0; font-size:1.1rem; }
.resume-sheet-entry p, .resume-sheet-entry time {
  margin:2px 0 0;
  color:var(--muted);
  font-size:.9rem;
}
.resume-sheet-entry ul {
  grid-column:1/-1;
  color:var(--muted);
  margin:12px 0 0;
  padding-left:20px;
}
.resume-sheet-section.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
}
.clean-list {
  color:var(--muted);
  padding-left:18px;
}
.resume-projects-mini {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.resume-projects-mini div {
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
}
.resume-projects-mini strong, .resume-projects-mini span { display:block; }
.resume-projects-mini span { color:var(--muted); font-size:.84rem; margin-top:4px; }
.resume-footnote { color:var(--muted); font-size:.75rem; margin-top:30px; }

@media (max-width: 800px) {
  .work-filters { margin-left: 0; }
  .project-art { width:42%; opacity:.45; }
  .project-card .project-content, .project-card.featured .project-content { width:82%; }
  .resume-hero, .resume-sheet-section.two-col { grid-template-columns:1fr; gap:22px; }
  .resume-contact { padding-top:0; }
}
@media (max-width: 560px) {
  .project-art { width:56%; min-width:0; right:-15px; top:12px; }
  .project-card .project-content, .project-card.featured .project-content { width:100%; }
  .resume-projects-mini { grid-template-columns:1fr; }
}
@media print {
  body, .resume-page-body { background:white !important; color:#111 !important; }
  .grain, .resume-topbar { display:none !important; }
  .resume-page { max-width:none; padding:0; }
  .resume-hero, .resume-sheet-section, .resume-sheet-entry { border-color:#ccc !important; }
  .resume-summary, .resume-contact, .resume-sheet-entry p, .resume-sheet-entry time,
  .resume-sheet-entry ul, .clean-list, .resume-projects-mini span, .resume-footnote {
    color:#333 !important;
  }
  .case-kicker { color:#444 !important; }
  .resume-projects-mini div { border-color:#ccc !important; }
  @page { margin: .55in; }
}

.case-visual {
  position:relative;
  width:100%;
  max-width:none;
  min-width:0;
  aspect-ratio:16/6;
  top:auto; right:auto;
  margin:28px 0 34px;
  opacity:1;
}
.case-visual span { font-size:.7rem; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.card-links a { margin-top: 0; }
.contact-links {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.contact-links a {
  color:var(--text);
  border-bottom:1px solid var(--line);
}
.spotify-embed {
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel);
}
.resume-contact a {
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,.22);
  text-underline-offset:3px;
}

.section-cta {
  margin: -30px 0 22px 78px;
  font-size:.9rem;
}
.section-cta a { color:var(--accent-2); }
.library-section {
  padding:48px 0 16px;
  border-top:1px solid var(--line);
}
.library-heading {
  display:grid;
  grid-template-columns:110px 1fr;
  align-items:baseline;
  gap:18px;
  margin-bottom:26px;
}
.library-heading span {
  color:var(--accent-2);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.68rem;
}
.library-heading h2 {
  font-family:"Playfair Display",serif;
  font-size:clamp(2rem,4vw,3.4rem);
  margin:0;
}
.library-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.library-card {
  min-height:240px;
  padding:24px;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(155deg,var(--panel),var(--panel-2));
  transition:.22s ease;
}
.library-card:hover { transform:translateY(-3px); border-color:rgba(183,166,255,.4); }
.library-card h3 {
  font-family:"Playfair Display",serif;
  font-size:1.65rem;
  line-height:1.08;
  margin:10px 0 12px;
}
.library-card p { color:var(--muted); flex:1; }
.library-card b { font-size:.84rem; font-weight:500; }
.library-type {
  color:var(--accent-2);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.63rem;
}
.static-card:hover { transform:none; }
.reading-page { max-width:860px; }
.reading-copy {
  max-width:720px;
  margin:0 auto;
  padding-top:24px;
}
.reading-copy p {
  font-family:"Playfair Display",serif;
  font-size:clamp(1.08rem,2vw,1.25rem);
  line-height:1.72;
  color:#d9d6ce;
  margin-bottom:1.4em;
}
.sample-notice {
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--muted);
  font-size:.8rem;
  margin-bottom:28px;
}
.screenplay-text {
  white-space:pre-wrap;
  font-family:"Courier New",monospace;
  font-size:.94rem;
  line-height:1.5;
  color:#e4e2dc;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px;
  overflow-wrap:anywhere;
}
@media (max-width:700px) {
  .section-cta { margin-left:0; }
  .library-grid { grid-template-columns:1fr; }
  .library-heading { grid-template-columns:1fr; gap:6px; }
}
