:root {
  --bg: #08110f;
  --panel: #101b18;
  --panel-2: #14221f;
  --text: #e8f0ec;
  --muted: #95a69f;
  --line: rgba(232, 240, 236, 0.12);
  --accent: #59d39a;
  --accent-2: #e4bd62;
  --ink: #07100e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(89, 211, 154, 0.14), transparent 29rem),
    linear-gradient(120deg, #08110f 0%, #0a1513 48%, #111915 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
summary {
  font: inherit;
}

.mobile-header {
  display: none;
}

.outline {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 15.5rem;
  padding: 2rem 1.25rem;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(8, 17, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
}

.outline-role {
  margin: 0 0 2rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

details {
  margin-bottom: 1rem;
}

summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  color: var(--accent-2);
}

details[open] summary::before {
  content: "-";
}

.outline nav a {
  display: block;
  margin: 0.55rem 0 0.55rem 1.4rem;
  border-left: 1px solid transparent;
  color: #b7c5bf;
  font-size: 0.92rem;
  transition: color 160ms ease, border-color 160ms ease, padding 160ms ease;
}

.outline nav a.nav-child {
  margin-left: 1.4rem;
  font-size: 0.88rem;
}

.outline nav a.nav-child::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 1px;
  margin-right: 0.45rem;
  vertical-align: middle;
  background: var(--line);
}

.outline nav a.active,
.outline nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  padding-left: 0.55rem;
}

main {
  margin-left: 15.5rem;
}

.section {
  min-height: 100vh;
  padding: 7rem clamp(2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.compact {
  min-height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.68fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3.2rem, 6.8vw, 7.2rem);
  line-height: 0.94;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lede {
  max-width: 43rem;
  color: #bfd0c8;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.hero-actions,
.socials,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.socials a,
.filter {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.button.primary,
.filter.active,
.button:hover,
.socials a:hover,
.filter:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.blog-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.blog-button img {
  height: 1.5rem;
  width: auto;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  background: #fff;
  border-radius: 2px;
}

.blog-button:hover img {
  filter: brightness(0.15);
}

.portrait {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 42%;
  height: 0.45rem;
  background: var(--accent-2);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.prose {
  max-width: 46rem;
  color: #bdccc6;
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.timeline {
  max-width: 56rem;
}

.timeline article {
  position: relative;
  padding: 0 0 3rem 2rem;
  border-left: 1px solid var(--line);
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
}

.timeline p,
.timeline li {
  color: #bdccc6;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.video-mini,
.news-card,
.event-card {
  border: 1px solid var(--line);
  background: rgba(16, 27, 24, 0.72);
}

.panel {
  padding: 1.4rem;
}

.panel span,
.timeline span,
.card-meta,
.event-card span,
.video-mini span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-top {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.portfolio-filters {
  position: sticky;
  top: 1rem;
  display: grid;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(8, 17, 15, 0.74);
}

.filter-group {
  margin: 0;
}

.filter-group summary {
  padding: 0;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-group summary::before {
  width: 0.9rem;
}

.filter-group p {
  margin-bottom: 0.45rem;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-stack {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.55rem;
}

.filter {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.58rem;
  text-align: left;
  font-size: 0.82rem;
}

.filter b {
  font-size: 0.78rem;
}

.portfolio-results {
  min-width: 0;
}

.portfolio-count {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.featured-work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.portfolio-group {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: rgba(8, 17, 15, 0.54);
}

.portfolio-group summary {
  padding: 1rem;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.portfolio-list.small {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.portfolio-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(16, 27, 24, 0.82);
}

.portfolio-card.featured {
  min-height: 0;
}

.portfolio-card img,
.news-card img,
.event-card img,
.video-mini img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel-2);
}

.thumb-wrap {
  position: relative;
  overflow: hidden;
}

.portfolio-card img.img-broken,
.news-card img.img-broken,
.event-card img.img-broken,
.video-mini img.img-broken {
  visibility: hidden;
}

.portfolio-card.featured img {
  aspect-ratio: 16 / 8.5;
}

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.portfolio-card.featured .portfolio-card-body {
  padding: 0.85rem;
}

.portfolio-card.featured h3 {
  font-size: 0.98rem;
}

.portfolio-card.featured p {
  font-size: 0.86rem;
}

.portfolio-card.featured dl {
  display: none;
}

.portfolio-card.featured .story {
  display: none;
}

.compact-card img {
  aspect-ratio: 16 / 7;
}

.compact-card .portfolio-card-body {
  padding: 0.65rem;
}

.compact-card h3 {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.76rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card dl,
.compact-card .topic-tags,
.compact-card .story {
  display: none;
}

.compact-card .read-link {
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  font-size: 0.7rem;
}

.portfolio-card p,
.news-card p,
.event-card p {
  color: #b9c8c2;
  font-size: 0.95rem;
}

.portfolio-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.4rem 0 0.8rem;
}

.portfolio-card dl div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
}

.portfolio-card dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-card dd {
  margin: 0;
  color: #d9e6e0;
  font-size: 0.86rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.topic-tags span,
.priority-pill,
.read-link {
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 500;
}

.read-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.8rem;
  padding: 0;
  border: 0;
  color: #9bb7ab;
  font-weight: 500;
}

.priority-pill {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  pointer-events: none;
}

.story {
  position: relative;
  z-index: 2;
  margin-top: 0.8rem;
}

.story summary {
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

.story p {
  margin-top: 0.45rem;
  padding: 0.8rem;
  border-left: 2px solid var(--accent);
  background: rgba(89, 211, 154, 0.07);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.portfolio-card .story,
.portfolio-card-body {
  position: relative;
  z-index: 2;
}

.showreel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(16, 27, 24, 0.72);
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.showreel span {
  color: var(--accent-2);
  font-weight: 800;
}

.video-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.video-mini {
  overflow: hidden;
}

.video-mini span,
.video-mini h3 {
  display: block;
  padding-inline: 1rem;
}

.video-mini span {
  padding-top: 1rem;
  color: var(--accent);
}

.news-card {
  overflow: hidden;
}

.news-card span,
.news-card h3,
.news-card p {
  display: block;
  padding-inline: 1rem;
}

.news-card span {
  padding-top: 1rem;
  color: var(--accent);
  font-weight: 800;
}

.event-grid {
  display: grid;
  gap: 1rem;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(14rem, 0.36fr) 1fr;
  gap: 1rem;
  padding: 1rem;
}

.event-card img {
  height: 100%;
  min-height: 12rem;
}

.event-card strong {
  color: var(--accent-2);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.partner-card {
  display: grid;
  min-height: 10rem;
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(16, 27, 24, 0.72);
  text-align: center;
}

.partner-card img {
  width: 5.25rem;
  height: 5.25rem;
  object-fit: contain;
  padding: 0.6rem;
  border: 1px solid var(--line);
  background: rgba(232, 240, 236, 0.94);
}

.partner-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-card strong {
  color: var(--text);
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.skill-item {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(228, 189, 98, 0.08);
}

.skill-item summary {
  padding: 0.8rem;
  color: #e5d3a7;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.skill-item p {
  min-height: 3rem;
  margin: 0;
  padding: 0 0.8rem 0.8rem 1.7rem;
  color: var(--muted);
}

.contact h2 {
  max-width: 18ch;
}

.email {
  display: inline-block;
  margin: 1rem 0 1rem;
  color: var(--accent);
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-actions {
  margin-bottom: 1.4rem;
}

@media (max-width: 1180px) {
  .portfolio-list,
  .video-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-list.small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 17, 15, 0.92);
    backdrop-filter: blur(16px);
  }

  .mobile-brand {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
  }

  .menu-toggle {
    min-height: 2.4rem;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-weight: 800;
  }

.active-section-label {
  justify-self: end;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  text-align: right;
  position: relative;
  z-index: 4;
}

.active-section-label button {
  position: relative;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  pointer-events: auto;
  cursor: pointer;
}

.active-section-label span {
  color: var(--muted);
}

  .outline {
    inset: 3.85rem 0 auto 0;
    width: 100%;
    max-height: calc(100vh - 3.85rem);
    padding: 1rem;
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .outline.open {
    transform: translateY(0);
  }

  .brand,
  .outline-role {
    display: none;
  }

  .outline nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .outline nav a {
    margin: 0.4rem 0;
  }

  .outline nav a.nav-child {
    margin-left: 0.9rem;
  }

  main {
    margin-left: 0;
  }

  .section {
    min-height: auto;
    padding: 5rem 1.25rem;
  }

  .hero,
  .split,
  .section-top,
  .portfolio-layout,
  .showreel,
  .event-card {
    display: block;
  }

  .portrait {
    margin-top: 2rem;
    max-width: 28rem;
  }

  .portfolio-filters {
    position: static;
    z-index: 9;
    display: grid;
    max-height: none;
    margin-bottom: 1rem;
    overflow: visible;
  }

  .filter-group {
    min-width: 0;
  }

  .three,
  .two,
  .featured-work,
  .partner-grid,
  .skills,
  .portfolio-list,
  .video-strip {
    grid-template-columns: 1fr;
  }

  .portfolio-list.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    padding: 0;
    overflow: hidden;
  }

  .event-card div {
    padding: 1rem;
  }

  .event-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }
}

@media (max-width: 620px) {
  .outline nav {
    grid-template-columns: 1fr;
  }

  .mobile-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .active-section-label {
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .priority-pill {
    top: 0.45rem;
    left: 0.45rem;
  }

  .blog-button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .blog-button img {
    height: 1.3rem;
  }
}
