/* ============ TOKENS ============ */
:root {
  --bg: #0a0d16;          /* midnight blue near-black */
  --bg-2: #121826;
  --surface: #151c2e;     /* blue-grey card — lifted from bg so cards sit on the page */
  --surface-2: #1e2740;
  --border: #2d3850;
  --text: #eef1f7;        /* cool off-white */
  --muted: #97a3ba;       /* blue-grey muted */
  --accent: #f57b3a;      /* orange — kept for the important stuff (brand, CTA, flagship) */
  --accent-2: #ffa55e;
  --accent-ink: #2a1505;
  --accent-grad: linear-gradient(120deg, #f8951c 0%, #f25b5c 100%);  /* = glyph gradient */
  --cool: #35c2c9;        /* teal — semantic (status, outcomes); pops on midnight, pairs with orange */
  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  font-synthesis: none;
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 560px at 78% -8%, rgba(248,149,28,.12), transparent 60%),
    radial-gradient(900px 500px at 8% 8%, rgba(53,128,224,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .hero__name, .footer__brand, .nav__brand { font-family: "Sora", system-ui, sans-serif; letter-spacing: -.02em; }
em { color: var(--accent-2); font-style: normal; }
strong { color: #fff; font-weight: 600; }
.muted { color: var(--muted); }
a { color: inherit; }
.block a, .about__text a, .outcome a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.block a strong, .about__text a strong, .outcome a strong { color: inherit; }
.block a:hover, .about__text a:hover, .outcome a:hover { color: var(--accent); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(10,13,22,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nav__brand img { height: 25px; width: auto; display: block; transform: translateY(-2.5px); }
.nav__brand span { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text); }
.nav__links { display: flex; gap: 24px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ============ LAYOUT ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 48px); }
.section__title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 8px; }
.section__intro { color: var(--muted); margin-bottom: 36px; }

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero__status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .85rem; color: var(--text); font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 0 0 rgba(53,194,201,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(53,194,201,.5);} 70%{box-shadow:0 0 0 10px rgba(53,194,201,0);} 100%{box-shadow:0 0 0 0 rgba(53,194,201,0);} }
.hero__name { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; line-height: 1.02; }
.hero__name .muted { font-weight: 400; }
.hero__role { font-family: "Sora", sans-serif; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 18px 0 8px; }
.hero__line { font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin: 0 0 14px; max-width: 31ch; }
.hero__line em {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 600;
}
.hero__sub { color: var(--muted); font-size: 1rem; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; background: var(--accent-grad); color: #fff;
  font-weight: 600; text-decoration: none; padding: 13px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,123,58,.28); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ============ MEDIA PLACEHOLDERS ============ */
.media {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; background:
    repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px);
  border: 1px dashed var(--border); border-radius: 12px; color: var(--muted);
  aspect-ratio: 16/10; overflow: hidden; text-align: center; padding: 12px;
}
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media:has(video), .media:has(img) { border: none; background: none; }
.media span { font-weight: 700; letter-spacing: .12em; font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.media small { font-size: .78rem; color: var(--muted); }
.media::after { content: attr(data-media); position: absolute; bottom: 6px; left: 6px; right: 6px; font-size: .62rem; color: var(--muted); opacity: 0; }
.media--hero { aspect-ratio: 3/3.3; box-shadow: var(--shadow); }
.hero__media .media--hero { width: 90%; margin-inline: auto; }
.media--sm { aspect-ratio: 16/10; }
.media--portrait { aspect-ratio: 3/4; }

/* ============ CARDS (accordion) ============ */
.cards { display: flex; flex-direction: column; gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.card[open] { border-color: rgba(245, 124, 58, 0.6); }
.card__head { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 20px; cursor: pointer; list-style: none; align-items: center; }
.card__head::-webkit-details-marker { display: none; }
.card__head:hover { background: var(--bg-2); }
.card__head .media { aspect-ratio: 16/10; margin: 0; }
.card__meta h3 { font-size: 1.35rem; margin: 6px 0; }
.hook { color: var(--text); margin-bottom: 12px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags li { font-size: .76rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.expand { font-size: .85rem; color: var(--accent-2); font-weight: 600; }
.card[open] .expand { color: var(--muted); }
.card[open] .expand::after { content: " (collapse)"; }

.card__body { padding: 4px 24px 26px; border-top: 1px solid var(--border); }
.block { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.block:last-of-type { border-bottom: none; }
.block .media { margin: 0; }
.block h4 { font-size: 1.05rem; margin-bottom: 6px; }
.note { color: var(--muted); font-weight: 400; font-size: .85rem; }
.outcome { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--cool); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-top: 18px; font-size: .96rem; }
.outcome strong:first-child { color: var(--cool); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; display: block; margin-bottom: 4px; }

/* ============ MORE WORK STRIP ============ */
.strip__title { margin: 52px 0 18px; font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.tile .media { margin-bottom: 14px; }
.tile h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tile .big { color: var(--accent); font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.tile .big span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.tile p { font-size: .9rem; color: var(--muted); }
.tile .tags { margin: 12px 0 0; }

/* ============ PUBLISHERS ============ */
.publishers { text-align: center; padding-top: 0; padding-bottom: 0; }
.publishers__label { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--muted); margin-bottom: 20px; }
.publishers__row { display: flex; justify-content: center; gap: clamp(24px, 6vw, 64px); flex-wrap: wrap; }
.logo { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--muted); opacity: .75; transition: opacity .2s, color .2s; }
.logo:hover { opacity: 1; color: var(--text); }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.about__photo .media { position: sticky; top: 90px; aspect-ratio: auto; }
.about__photo .media img { position: static; width: 100%; height: auto; display: block; border-radius: 12px; }
.about__text p { margin-bottom: 16px; max-width: 65ch; }
.about__craft { color: var(--accent-2); font-style: italic; border-top: 1px solid var(--border); padding-top: 16px; }

/* ============ SKILLS ============ */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.skill h4 { color: var(--accent-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.skill p { color: var(--text); }

/* ============ CONTACT ============ */
.contact { text-align: center; }
.contact__line { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }
.contact__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.contact__note { color: var(--muted); font-size: .85rem; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); text-align: center; padding: 48px 20px; }
.footer__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-bottom: 14px; }
.footer__brand img { height: 30px; width: auto; display: block; transform: translateY(-3px); }
.footer__brand span { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--text); }
.footer__tag { color: var(--text); margin: 6px 0 14px; }
.footer__notes { font-size: .82rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .media--hero { aspect-ratio: 16/10; }
  .hero__media .media--hero { width: 100%; }
  .card__head { grid-template-columns: 1fr; }
  .block { grid-template-columns: 1fr; }
  .block .media { max-width: 280px; }
  .strip { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo .media { position: relative; top: auto; max-width: 220px; }
  .skills { grid-template-columns: 1fr; }
  .nav__links { gap: 16px; }
}

/* ============ PRINT / PDF ============ */
@media print {
  :root { --bg:#fff; --text:#111; --muted:#444; --surface:#fff; --surface-2:#f4f4f4; --border:#ccc; }
  body { background: #fff; color: #111; }
  .nav, .hero__media, .media, .btn, .expand { display: none !important; }
  .card[open], .card { border-color: #ccc; }
  .card__body { display: block !important; }    /* force-expanded for PDF */
  details:not([open]) > .card__body { display: block !important; }
  .card__head { grid-template-columns: 1fr; cursor: default; }
  a { color: #111; text-decoration: none; }
  .section, .hero { padding: 18px 0; }
  .outcome { background: #f4f4f4; }
}
