:root{
    --ink: #F7F5FB;
    --panel: #EEEAF6;
    --panel-raised: #E5DFF2;
    --paper: #2B2440;
    --paper-dim: #6E6685;
    --line: #D6CEE8;
    --ember: #7C63C4;
    --ember-dim: #644EA6;
    --signal: #8E7BD1;
    --grad-astropad: linear-gradient(90deg, #B9A8E8, #8E7BD1);
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  body{
    margin:0;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1,h2,h3, .stat-num, .wordmark{
    font-family: 'Archivo Expanded', sans-serif;
    margin: 0;
  }

  a{ color: inherit; }

  ::selection{ background: var(--ember); color: #FFFFFF; }

  a:focus-visible, button:focus-visible{
    outline: 2px solid var(--ember-dim);
    outline-offset: 3px;
  }

  /* ---------- top bar + scrub progress ---------- */

  .topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247,245,251,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
  }

  .progress-track{
    height: 2px;
    background: var(--line);
  }
  .progress-fill{
    height: 100%;
    width: 0%;
    background: var(--ember);
  }

  .topbar-row{
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .wordmark{
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .topnav{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    margin: 32px 0 0 0;
    padding: 0;
  }
  .topnav a{
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--paper-dim);
    white-space: nowrap;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
  }
  .topnav a:hover, .topnav a.active{
    color: var(--paper);
    border-bottom-color: var(--ember);
  }

  .btn{
    display: inline-block;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    line-height: 1.6;
    background: var(--ember);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 3px;
    white-space: nowrap;
    transition: background .15s;
  }
  .btn:hover{ background: var(--ember-dim); }
  .btn-ghost{
    background: transparent;
    border: 1px solid var(--line);
    color: var(--paper);
  }
  .btn-ghost:hover{ border-color: var(--paper-dim); background: transparent; }

  /* ---------- layout shell ---------- */

  main{ max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  section{
    border-top: 1px solid var(--line);
    padding: 64px 0;
  }
  section:first-of-type{ border-top: none; }

  .section-grid{
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
  }

  .section-label{
    display: flex;
    flex-direction: column;
  }
  .section-sub{
    margin-top: 4px;
    font-size: 13px;
    color: var(--paper-dim);
  }
  .section-label h2{
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
  }

  @media (max-width: 720px){
    .section-grid{ grid-template-columns: 1fr; gap: 16px; }
  }

  p{ color: var(--paper-dim); max-width: 62ch; }
  p.tight{ margin: 0 0 14px 0; }
  p.tight strong{ color: var(--paper); font-weight: 700; }

  /* ---------- hero ---------- */

  .hero{
    padding: 80px 0 56px 0;
    position: relative;
  }
  .hero::before{
    content: "";
    position: absolute;
    inset: -40px -40vw 0 -40vw;
    background: linear-gradient(180deg, #EDE7F8 0%, rgba(237,231,248,0) 100%);
    z-index: -1;
  }
  .hero{ text-align: center; }
  .hero .name{
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.05;
  }
  .hero .role{
    margin-top: 10px;
    font-family: 'Archivo Expanded', sans-serif;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 600;
    color: var(--ember);
  }
  .hero .sub{
    margin-top: 22px;
    font-size: 17px;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
  }

  .stat-row{
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
  }
  .stat-num{
    font-size: 34px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .stat-label{
    margin-top: 4px;
    font-size: 13px;
    color: var(--paper-dim);
    max-width: 22ch;
  }

  /* ---------- placeholder blocks ---------- */

  .todo{
    border: 1px dashed var(--line);
    border-radius: 4px;
    padding: 14px 16px;
    color: var(--paper-dim);
    font-size: 13px;
    font-style: italic;
  }
  .todo strong{
    font-style: normal;
    color: var(--ember-dim);
    font-weight: 600;
  }

  .media-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
  }
  @media (max-width: 720px){
    .media-grid{ grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px){
    .media-grid{ grid-template-columns: 1fr 1fr; gap: 12px; }
  }
  .media-slot{
    aspect-ratio: 9 / 16;
    border: 1px dashed var(--line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: var(--paper-dim);
    font-style: italic;
  }

  .vid{
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .vid-frame{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
  }
  .vid-tall .vid-frame{ aspect-ratio: 9 / 16; }
  .vid-frame iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .media-grid.two-up{
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: start;
    gap: 16px;
  }
  .media-grid.two-up .vid-frame{
    aspect-ratio: auto;
    height: 300px;
  }
  .media-grid.two-up .vid-tall .vid-frame{ width: 169px; }
  .media-grid.two-up .vid:not(.vid-tall) .vid-frame{ width: 533px; max-width: 100%; }

  @media (max-width: 900px){
    .media-grid.two-up .vid-frame{ height: 240px; }
    .media-grid.two-up .vid-tall .vid-frame{ width: 135px; }
    .media-grid.two-up .vid:not(.vid-tall) .vid-frame{ width: 426px; }
  }
  @media (max-width: 720px){
    .media-grid.two-up{ grid-template-columns: 1fr 1fr; justify-content: stretch; }
    .media-grid.two-up .vid-frame{ height: auto; width: 100% !important; }
    .media-grid.two-up .vid-tall .vid-frame{ aspect-ratio: 9/16; }
    .media-grid.two-up .vid:not(.vid-tall) .vid-frame{ aspect-ratio: 16/9; }
  }

  .vid figcaption{
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-top: 10px;
  }
  .vid-platform{
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ember);
  }
  .vid-title{
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
  }
  @media (max-width: 720px){
    .acts{ flex-direction: column; gap: 0; }
  }
  .act{
    flex: 1;
    position: relative;
    padding-top: 22px;
  }
  .act::before{
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ember);
  }
  .act::after{
    content: "";
    position: absolute;
    top: 4px; left: 10px;
    height: 1px; width: 100%;
    background: var(--line);
  }
  .act:last-child::after{ display: none; }
  @media (max-width: 720px){
    .act{ padding-top: 0; padding-left: 26px; padding-bottom: 28px; }
    .act::before{ top: 4px; left: 0; }
    .act::after{ top: 9px; left: 4px; width: 1px; height: 100%; }
  }
  .act h3{
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .act p{ font-size: 14px; }

  .result-stat{ margin-top: 10px; }

  .big-head{
    font-family: 'Archivo Expanded', sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .inline-link{
    color: var(--ember);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .inline-link:hover{ color: var(--ember-dim); }

  .proof-row{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    margin-top: 32px;
  }
  .proof{ margin: 0; }
  .proof img{
    width: 100%;
    height: 340px;
    object-fit: contain;
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }
  .proof-video .vid-frame{
    height: 340px;
    width: 191px;
    aspect-ratio: auto;
  }
  @media (max-width: 720px){
    .proof-row{ grid-template-columns: 1fr; }
    .proof img{ height: auto; }
    .proof-video .vid-frame{ width: 100%; max-width: 240px; height: auto; aspect-ratio: 9/16; margin: 0 auto; }
  }
  .proof figcaption{
    margin-top: 10px;
    font-size: 13px;
    color: var(--paper-dim);
  }
  .result-stat .stat-num{ font-size: 26px; color: var(--ember-dim); }

  /* ---------- astropad sub-grid ---------- */

  .astro-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  @media (max-width: 720px){
    .astro-grid{ grid-template-columns: 1fr; }
  }
  .astro-card{
    background: var(--panel);
    border-radius: 6px;
    padding: 22px;
    position: relative;
    overflow: hidden;
  }
  .astro-card::before{
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height: 3px;
    background: var(--grad-astropad);
  }
  .astro-card h3{
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .astro-card p{ font-size: 14px; margin: 0 0 12px 0; }

  .work-links{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .work-links a{
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 1px;
    text-decoration: none;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
    transition: border-color .15s, transform .15s;
  }
  .work-links a:hover{
    border-color: var(--ember);
    transform: translateX(2px);
  }
  .work-play{
    grid-row: 1 / 3;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ember);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .work-play svg{ width: 10px; height: 10px; fill: #fff; margin-left: 1px; }
  .work-platform{
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ember);
  }
  .work-title{
    font-size: 14px;
    font-weight: 500;
    color: var(--paper);
    line-height: 1.35;
  }

  /* ---------- value statements ---------- */

  .value-list{ margin-top: 8px; }
  .value-row{
    display: block;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .value-row:first-child{ border-top: none; padding-top: 0; }
  .value-row h3{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .value-row p{ font-size: 15px; margin: 0; max-width: 62ch; }
  .value-row ul{
    margin: 0;
    padding-left: 20px;
    max-width: 62ch;
  }
  .value-row li{
    font-size: 15px;
    font-style: italic;
    color: var(--paper-dim);
  }

  /* ---------- testimonial ---------- */

  .testimonial-card + .testimonial-card{ margin-top: 20px; }
  .testimonial-card{
    border-left: 3px solid var(--ember);
    background: var(--panel);
    border-radius: 0 6px 6px 0;
    padding: 28px 30px;
    margin: 8px 0 0 0;
  }
  .testimonial-card p{
    font-size: 18px;
    line-height: 1.5;
    color: var(--paper);
    margin: 0;
  }
  .testimonial-attr{
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .attr-name{
    font-family: 'Archivo Expanded', sans-serif;
    font-size: 14px;
    font-weight: 700;
  }
  .attr-role{
    font-size: 13px;
    color: var(--paper-dim);
    line-height: 1.45;
  }

  /* ---------- contact / footer ---------- */

  .contact-actions{
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  footer{
    border-top: 1px solid var(--line);
    padding: 28px 0 40px 0;
    text-align: left;
  }
  footer p{ font-size: 12px; color: var(--paper-dim); }

  /* ---------- phone layout ---------- */
  @media (max-width: 560px){
    main{ padding: 0 18px; }
    footer > div{ padding: 0 18px !important; }
    .topbar-row{ padding: 12px 18px; }
    .wordmark{ font-size: 14px; }

    section{ padding: 44px 0; }
    .hero{ padding: 48px 0 40px 0; }
    .hero .sub{ font-size: 16px; }

    .topnav{
      gap: 16px 20px;
      margin-top: 26px;
    }
    .topnav a{ font-size: 13px; }

    .section-label h2{ font-size: 19px; }
    .big-head{ font-size: 25px; margin-bottom: 16px; }

    .astro-card{ padding: 18px; }
    .testimonial-card{ padding: 22px 20px; }
    .testimonial-card p{ font-size: 16px; }

    .contact-actions .btn{
      flex: 1 1 100%;
      text-align: center;
    }

    .vid figcaption{ padding-top: 8px; }
    .vid-title{ font-size: 13px; }
  }

  /* keep long links and addresses from forcing sideways scroll */
  .work-title, .vid-title, .attr-role{ overflow-wrap: anywhere; }

/* ===================================================================
   Work grid (home page tiles)
   =================================================================== */

.work-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 720px){
  .work-grid{ grid-template-columns: 1fr; gap: 16px; }
}

.tile{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  padding: 26px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background-color: var(--ember-dim);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgba(43,36,64,0.58) 0%, rgba(43,36,64,0.80) 55%, rgba(43,36,64,0.94) 100%);
}
.tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(43,36,64,0.26);
}
.tile:hover .tile-cta{ text-decoration: underline; }

.tile-tag{
  position: absolute;
  top: 22px;
  left: 26px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 5px 11px;
  backdrop-filter: blur(3px);
}

.tile-stat{
  font-family: 'Archivo Expanded', sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 10px;
}
.tile h3{
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.tile p{
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  margin: 0;
  max-width: 34ch;
}
.tile-cta{
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ===================================================================
   Project pages
   =================================================================== */

.backlink{
  display: inline-block;
  margin: 34px 0 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-dim);
  text-decoration: none;
}
.backlink:hover{ color: var(--ember); }

.project-head{
  padding: 26px 0 44px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.project-head .eyebrow{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}
.project-head h1{
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.08;
}
.project-head .lede{
  margin-top: 16px;
  font-size: 17px;
  max-width: 62ch;
}
.project-head .stat-num{ margin-top: 26px; }

.project-section{ padding: 48px 0; border-top: 1px solid var(--line); }
.project-section:first-of-type{ border-top: none; }
.project-section > h2{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.next-nav{
  border-top: 1px solid var(--line);
  padding: 32px 0 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.next-nav span{ font-size: 14px; color: var(--paper-dim); margin-right: 4px; }
.next-nav a{
  font-size: 14px;
  font-weight: 600;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.next-nav a:hover{ border-bottom-color: var(--ember); }

@media (max-width: 560px){
  .tile{ padding: 20px; aspect-ratio: 4 / 3; }
  .tile-tag{ top: 16px; left: 20px; }
  .project-head{ padding: 18px 0 32px 0; }
}
