*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #3d3d44;
      --bg-dark:   #2e2e35;
      --bg-light:  #4a4a52;
      --text:      rgba(255,255,255,0.75);
      --text-dim:  rgba(255,255,255,0.45);
      --text-bright: rgba(255,255,255,0.92);
      --rule:      rgba(255,255,255,0.55);
      --rule-mid:  rgba(255,255,255,0.2);
      --accent:    rgba(255,255,255,0.08);
      --border:    rgba(255,255,255,0.35);
      --sans: 'Raleway', sans-serif;
    }

    html { scroll-behavior: smooth; }


a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--text-bright);
  text-decoration: none;
}


    body {
      font-family: var(--sans);
      background: var(--bg);
      color: var(--text);
      font-weight: 300;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .demo-track { position: relative; }

	.demo-progress-bar {
	  position: absolute;
	  bottom: 0;
	  left: 0;
	  height: 1px;
	  width: 0%;
	  background: var(--rule);
	  transition: width 0.25s linear;
	  pointer-events: none;
	}

	.demo-play.is-playing {
	  border-color: var(--text-bright);
	  color: var(--text-bright);
	  background: rgba(255,255,255,0.06);
}
	
	
	
	/* ── HEADER ── */
    #header {
      text-align: center;
      padding: 5rem 2rem 0;
      position: relative;
    }

    /* portrait */
    .avatar-wrap {
      display: inline-block;
      position: relative;
      margin-bottom: 0;
    }

    .avatar-circle {
      width: 108px;
      height: 108px;
      border-radius: 50%;
      border: 2px solid var(--border);
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-dark);
      position: relative;
      z-index: 1;
    }

    .avatar-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .avatar-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 0.2rem;
    }

    .avatar-placeholder span {
      font-size: 0.5rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      text-align: center;
      line-height: 1.4;
      padding: 0 0.4rem;
    }

    /* stem line down from portrait — sits flush against the rule */
    .avatar-stem {
      width: 1px;
      height: 20px;
      background: var(--rule);
      margin: 0 auto;
      display: block;
    }

    /* full-width rule with centre notch.
       ::before draws the line; the notch hangs below. */
    .header-rule {
      position: relative;
      margin: 0 auto;
      max-width: 860px;
      padding: 0 2rem;
      height: 0;
    }
    .header-rule::before {
      content: '';
      display: block;
      height: 1px;
      background: var(--rule);
    }
    /* notch points UP toward the portrait stem */
    .header-rule-notch {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 1px;
      height: 12px;
      background: var(--rule);
      transform: translateX(-50%);
    }

    /* name */
    #header h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 200;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--text-bright);
      margin: 1.6rem 0 0.9rem;
    }

    /* tagline */
    #header p.tagline {
      font-size: 0.72rem;
      font-weight: 300;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-dim);
      line-height: 1.8;
      margin-bottom: 2.2rem;
    }

    /* ── TWO ARM BOXES ── */
    .arms-wrap {
      max-width: 860px;
      margin: 0 auto 2.5rem;
      padding: 0 2rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      /* Prevent clipping of the -1px overlap on right box */
      overflow: visible;
    }

    
.arm-box {
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.025);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 2.2rem 2rem 2rem;
      text-decoration: none;
      display: block;
      position: relative;
      overflow: hidden;
      margin: 0;
      transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
    }

    .arm-box::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 55%);
      opacity: 0;
      transition: opacity 0.35s ease;
    }


    
.arm-box:hover {
      transform: translateY(-3px);
      border-color: rgba(255,255,255,0.22);
      background: rgba(255,255,255,0.04);
      box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    }

    .arm-box:hover::before {
      opacity: 1;
    }


    /* sketch image in corners */
    

.arm-box-img {
  position: absolute;
  bottom: -6px;
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}


.arm-box:hover .arm-box-img {
  opacity: 0.18;
  transform: translateY(-2px);
}    


    .arm-box-img-left  { left: -10px; }
    .arm-box-img-right { right: -10px; }
    

    .arm-box-title {
      font-size: 1.3rem;
      font-weight: 200;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-bright);
      margin-bottom: 0.6rem;
      text-align: left;
    }

    .arm-box-rule {
      display: none;
    }

    .arm-box-desc {
      font-size: 0.88rem;
      line-height: 1.7;
      color: var(--text);
      margin-bottom: 1.5rem;
      text-align: left;
      max-width: 280px;
    }

    .arm-box-btns {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      justify-content: flex-start;
    }

    .arm-btn {
      display: inline-block;
      font-size: 0.6rem;
      font-weight: 400;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text);
      border: 1px solid var(--border);
      padding: 0.55rem 1rem;
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      background: transparent;
      cursor: pointer;
    }

    .arm-btn:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.35);
      color: var(--text-bright);
    }

    .arms-wrap {
      position: relative;
    }

    /* Clean single-pixel divider between the two boxes — no double borders */
    .arm-box {
      z-index: 1;
    }

    /* Left box: full border, but right edge is shared with right box left edge.
       We shift the right box left by 1px so borders overlap exactly. */
    .arm-box.pub {
      /* keep full border — no removal */
    }

    .arm-box.nar {
      margin-left: -1px; /* overlap left border perfectly over pub's right border */
    }

    .arm-box:first-child {
      border-top-left-radius: 2px;
      border-bottom-left-radius: 2px;
    }

    .arm-box:last-child {
      border-top-right-radius: 2px;
      border-bottom-right-radius: 2px;
    }


/* ── BOTTOM RULE + NAV ── */
    /* 
     * Strategy: The nav is a bordered box.
     * We draw top and bottom rules as full-width lines using the nav container itself.
     * The notches are pseudo-elements hanging off the centre.
     */

    /* The nav-rule is a single 1px line spanning the full nav width */
    .nav-rule {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 2rem;
      position: relative;
      height: 0;
      border: none;
    }
    /* The actual line — spans only as wide as the nav ul will be */
    .nav-rule::before {
      content: '';
      display: block;
      height: 1px;
      background: var(--rule);
    }
    /* Notch points UP from the top rule (away from nav, toward the arm boxes) */
    .nav-rule-notch {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 1px;
      height: 12px;
      background: var(--rule);
      transform: translateX(-50%);
    }

    nav#nav {
      max-width: 860px;
      margin: 0 auto;
      width: 100%;
      padding: 0 2rem;
    }

    /* Nav ul: left + right borders only; top and bottom supplied by the rule divs */
    nav#nav ul {
      list-style: none;
      display: flex;
      border-left: 1px solid var(--border);
      border-right: 1px solid var(--border);
    }

    nav#nav ul li {
      flex: 1;
      border-right: 1px solid var(--border);
    }

    nav#nav ul li:last-child {
      border-right: none;
    }

    nav#nav ul li a {
      display: block;
      text-align: center;
      font-size: 0.65rem;
      font-weight: 400;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-dim);
      text-decoration: none;
      padding: 1rem 0.5rem;
      transition: color 0.2s, background 0.2s;
    }

    nav#nav ul li a:hover,
    nav#nav ul li a.active {
      color: var(--text-bright);
      background: rgba(255,255,255,0.04);
    }

    /* Bottom rule: same as top rule */
    .nav-rule-bottom {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 2rem;
      position: relative;
      height: 0;
    }
    .nav-rule-bottom::before {
      content: '';
      display: block;
      height: 1px;
      background: var(--rule);
    }
    /* Notch points DOWN from the bottom rule (away from nav, toward content) */
    .nav-rule-bottom-notch {
      position: absolute;
      left: 50%;
      top: 0;
      width: 1px;
      height: 12px;
      background: var(--rule);
      transform: translateX(-50%);
    }

    /* ── MAIN CONTENT ── */
    #main {
      flex: 1;
      max-width: 860px;
      margin: 0 auto;
      width: 100%;
      padding: 0 2rem;
    }

    /* each panel */
    .panel {
      padding: 4rem 0;
      border-bottom: 1px solid var(--rule-mid);
    }

    .panel:last-child { border-bottom: none; }

    .panel-eyebrow {
      font-size: 0.6rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 0.6rem;
    }

    .panel h2 {
      font-size: 1.5rem;
      font-weight: 200;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-bright);
      margin-bottom: 0.5rem;
    }

    .panel-rule {
      width: 28px;
      height: 1px;
      background: var(--rule);
      margin: 1rem 0 1.5rem;
    }

    .panel p {
      font-size: 0.92rem;
      line-height: 1.8;
      color: var(--text);
      max-width: 620px;
      margin-bottom: 1rem;
    }

    .panel p strong {
      color: var(--text-bright);
      font-weight: 400;
    }

    /* pub grid */
    .pub-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-top: 2rem;
    }

    .pub-strand {
      border: 1px solid var(--rule-mid);
      padding: 1.5rem;
    }

    /* Overlap right strand's left border over left strand's right border */
    .pub-strand:last-child {
      margin-left: -1px;
    }

    .pub-strand-label {
      font-size: 0.58rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 0.8rem;
    }

    .pub-strand h3 {
      font-size: 1.05rem;
      font-weight: 200;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-bright);
      margin-bottom: 1rem;
    }

    /* book list */
    .book-list { list-style: none; }

    .book-list li {
      padding: 0.7rem 0;
      border-top: 1px solid var(--rule-mid);
    }

    .book-list li:first-child { border-top: none; }

    .book-title {
      font-size: 0.88rem;
      color: var(--text-bright);
      font-style: italic;
      margin-bottom: 0.2rem;
    }

    .book-meta {
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    /* gcse grid */
    .gcse-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }

    .gcse-item {
      padding: 0.6rem 0.8rem;
      border: 1px solid var(--rule-mid);
      background: rgba(0,0,0,0.1);
    }

    .gcse-subject {
      font-size: 0.82rem;
      color: var(--text);
    }

    .gcse-status {
      font-size: 0.55rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-top: 0.2rem;
    }

    /* demo tracks */
    .demo-track {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.9rem 0;
      border-top: 1px solid var(--rule-mid);
    }

    .demo-track:first-child { border-top: none; }

    .demo-num {
      font-size: 0.6rem;
      letter-spacing: 0.15em;
      color: var(--text-dim);
      width: 20px;
      flex-shrink: 0;
    }

    .demo-info { flex: 1; }

    .demo-title {
      font-size: 0.9rem;
      color: var(--text-bright);
      font-style: italic;
    }

    .demo-genre {
      font-size: 0.6rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-top: 0.15rem;
    }

    .demo-play {
      width: 32px;
      height: 32px;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: transparent;
      cursor: pointer;
      color: var(--text-dim);
      font-size: 0.65rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
      flex-shrink: 0;
    }

    .demo-play:hover {
      background: rgba(255,255,255,0.08);
      color: var(--text-bright);
    }

    /* studio specs */
    .spec-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 1px;
      background: var(--rule-mid);
      margin-top: 1.5rem;
    }

    .spec-item {
      background: var(--bg);
      padding: 1.2rem 1rem;
      text-align: center;
    }

    .spec-label {
      font-size: 0.58rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 0.3rem;
    }

    .spec-value {
      font-size: 0.85rem;
      color: var(--text-bright);
    }

    /* narration cards */
    .nar-cards {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .nar-card {
      border: 1px solid var(--rule-mid);
      padding: 1.2rem;
    }

    .nar-card-label {
      font-size: 0.58rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 0.5rem;
    }

    .nar-card-body {
      font-size: 0.85rem;
      line-height: 1.65;
      color: var(--text);
    }

    /* credits inside sections */
    .credit-list { list-style: none; margin-top: 1rem; }

    .credit-list li {
      padding: 0.8rem 0;
      border-top: 1px solid var(--rule-mid);
    }

    .credit-list li:first-child { border-top: none; }

    .credit-title {
      font-size: 0.9rem;
      color: var(--text-bright);
      font-style: italic;
    }

    .credit-meta {
      font-size: 0.62rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-top: 0.15rem;
    }

    /* contact */
    .contact-links {
      display: flex;
      gap: 0.8rem;
      flex-wrap: wrap;
      margin-top: 1.5rem;
    }

    .contact-btn {
      display: inline-block;
      font-size: 0.62rem;
      font-weight: 400;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text);
      border: 1px solid var(--border);
      padding: 0.7rem 1.4rem;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }

    .contact-btn:hover {
      background: rgba(255,255,255,0.08);
      color: var(--text-bright);
    }

    /* ── FOOTER ── */
    #footer {
      text-align: center;
      padding: 2.5rem 2rem;
      border-top: 1px solid var(--rule-mid);
      margin-top: 2rem;
    }

    #footer p {
      font-size: 0.6rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-dim);
      line-height: 2;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 640px) {
      .arms-wrap,
      .pub-grid,
      .nar-cards,
      .gcse-grid { grid-template-columns: 1fr; }
      .spec-grid { grid-template-columns: 1fr; }
      nav#nav ul { flex-direction: column; }
      nav#nav ul li { border-right: none; border-bottom: 1px solid var(--border); }
      nav#nav ul li:last-child { border-bottom: none; }
    }

    
/* ── CINEMATIC BACKGROUND ── */
    #bg {
      position: fixed;
      inset: 0;
      z-index: -3;
      overflow: hidden;
      background:
        radial-gradient(circle at 15% 20%, rgba(105,85,145,0.26), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(75,105,160,0.18), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(55,65,110,0.22), transparent 50%),
        linear-gradient(180deg, #1d1f27 0%, #232630 100%);
      background-size: 140% 140%;
      animation: drift 24s ease-in-out infinite alternate;
      opacity: 0;
      transition: opacity 2.2s ease;
    }

    body.is-loaded #bg {
      opacity: 1;
    }

    #bg::before,
    #bg::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    #bg::before {
      background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
      background-size: 120px 120px;
      mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    }

    #bg::after {
      background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.42) 100%);
    }

 @keyframes drift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 30% 70%, 70% 30%, 60% 80%;
  }
  100% {
    background-position: 100% 50%;
  }
}

    /* ── PAGE FADE IN ── */
    body { opacity: 0; transition: opacity 1.2s ease 0.3s; }
    body.is-loaded { opacity: 1; }

    /* ── HEADER ANIMATIONS ── */
    /* Portrait drops in */
    .avatar-wrap {
      animation: avatarDrop 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
    }
    @keyframes avatarDrop {
      from { opacity: 0; transform: translateY(-18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Stem grows down */
    .avatar-stem {
      transform-origin: top center;
      animation: stemGrow 0.4s ease 0.75s both;
    }
    @keyframes stemGrow {
      from { transform: scaleY(0); opacity: 0; }
      to   { transform: scaleY(1); opacity: 1; }
    }


    /* Header rule line draws in — animate ::before scaling from centre */
    .header-rule::before {
      transform-origin: center;
      animation: drawRule 0.6s ease 1.0s both;
    }
    @keyframes drawRule {
      from { transform: scaleX(0); opacity: 0; }
      to   { transform: scaleX(1); opacity: 1; }
    }

    /* Notch fades in after line */
    .header-rule-notch {
      animation: fadeIn 0.3s ease 1.5s both;
    }

    /* Name fades up */
    #header h1 {
      animation: fadeUp 0.6s ease 1.2s both;
    }

    /* Tagline fades up slightly after */
    #header p.tagline {
      animation: fadeUp 0.6s ease 1.4s both;
    }

    /* Arm boxes fade up */
    .arms-wrap {
      animation: fadeUp 0.7s ease 1.6s both;
    }

    /* Nav rules and nav */
    .nav-rule, .nav-rule-bottom, nav#nav {
      animation: fadeIn 0.5s ease 1.9s both;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }