* { margin:0; padding:0; box-sizing:border-box; }
        body { background:#0a0a15; color:#FFF3E3; font-family:'Manrope',sans-serif; min-height:100vh; overflow-x:hidden; }
        h1,h2,h3,h4 { font-family:'Playfair Display',serif; }
        #webgl-container { position:fixed; top:0; left:0; width:100vw; height:100vh; z-index:0; pointer-events:none; }
        .bg-container { position:fixed; inset:0; z-index:0; background:#0f0e0b; animation:none; }
        @keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
        .floating { display:none; }
        .floating:nth-child(1) { width:300px; height:300px; top:10%; left:-5%; animation-duration:25s; }
        .floating:nth-child(2) { width:400px; height:400px; bottom:10%; right:-10%; animation-duration:30s; animation-delay:-8s; }
        .floating:nth-child(3) { width:200px; height:200px; top:40%; left:30%; animation-duration:20s; animation-delay:-15s; }
        .floating:nth-child(4) { width:500px; height:500px; top:60%; left:60%; animation-duration:35s; animation-delay:-5s; }
        .floating:nth-child(5) { width:250px; height:250px; top:20%; left:70%; animation-duration:28s; animation-delay:-12s; }
        @keyframes floatUp { 0%{transform:translate(0,0) scale(1); opacity:0.4} 25%{transform:translate(10vw,-10vh) scale(1.1); opacity:0.7} 50%{transform:translate(20vw,-20vh) scale(0.9); opacity:0.5} 75%{transform:translate(30vw,-10vh) scale(1.05); opacity:0.6} 100%{transform:translate(40vw,0) scale(1); opacity:0.4} }
        .content-wrapper { position:relative; z-index:1; min-height:100vh; }
        .site-header { position:sticky; top:0; z-index:100; background:rgba(5,5,12,0.88); backdrop-filter:blur(12px); border-bottom:1px solid rgba(244,239,228,0.12); }
        .header-inner { display:flex; align-items:center; justify-content:space-between; height:70px; max-width:1200px; margin:0 auto; padding:0 1.5rem; }
        .logo { display:flex; align-items:center; gap:0.75rem; text-decoration:none; }
        .logo img { width:42px; height:42px; object-fit:contain; flex:none; }
        .logo-text { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:#FFF3E3; letter-spacing:0.08em; }
        .logo:hover .logo-text { color:rgba(255,243,227,.62); }
        .main-nav { display:flex; gap:2rem; align-items:center; }
        .main-nav a { font-size:0.85rem; font-weight:500; color:rgba(255,243,227,0.6); text-decoration:none; transition:color .3s; }
        .main-nav a:hover { color:rgba(255,243,227,.62); }
        .main-nav .btn-gold { padding:0.4rem 1.2rem; font-size:0.75rem; }
        .nav-toggle { display:none; background:none; border:none; cursor:pointer; }
        .nav-toggle span { display:block; width:25px; height:2px; background:#FFF3E3; margin:5px 0; }
        @media (max-width:768px) { .main-nav { display:none; position:absolute; top:70px; left:0; right:0; background:rgba(5,5,12,0.95); flex-direction:column; padding:2rem; gap:1.5rem; } .main-nav.active { display:flex; } .nav-toggle { display:block; } }
        .site-footer { background:rgba(5,5,12,0.95); border-top:1px solid rgba(244,239,228,0.1); padding:3rem 0 2rem; margin-top:3rem; }
        .footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:2rem; max-width:1200px; margin:0 auto; padding:0 1.5rem; }
        .footer-logo { width:50px; margin-bottom:0.5rem; }
        .footer-tagline { font-family:'Playfair Display',serif; font-size:1rem; color:rgba(255,243,227,.62); }
        .site-footer h4 { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.1em; color:rgba(255,243,227,.62); margin-bottom:1rem; }
        .site-footer ul { list-style:none; }
        .site-footer li { margin-bottom:0.5rem; }
        .site-footer a { color:rgba(255,243,227,0.4); font-size:0.85rem; text-decoration:none; transition:color .3s; }
        .site-footer a:hover { color:rgba(255,243,227,.62); }
        .social-icons a { margin-right:0.75rem; font-size:1.2rem; }
        .footer-bottom { max-width:1200px; margin:0 auto; padding:1.5rem 1.5rem 0; display:flex; justify-content:space-between; flex-wrap:wrap; font-size:0.75rem; color:rgba(255,243,227,0.25); border-top:1px solid rgba(244,239,228,0.08); }
        .container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
        .section { padding:5rem 0; }
        .section-title { font-size:2.5rem; text-align:center; margin-bottom:3rem; font-family:'Playfair Display',serif; }
        .text-center { text-align:center; }
        .btn-gold { background:#DAAF37; color:#050505; padding:0.75rem 2rem; border-radius:2rem; font-weight:700; text-transform:uppercase; font-size:0.875rem; letter-spacing:0.05em; display:inline-block; transition:all 0.3s ease; border:none; cursor:pointer; text-decoration:none; }
        .btn-gold:hover { background:#FFF3E3; transform:translateY(-2px); box-shadow:0 8px 30px rgba(244,239,228,0.4); }
        .btn-outline, .gold-outline-btn { background:rgba(10,10,20,0.5); backdrop-filter:blur(10px); border:1px solid #DAAF37; color:#DAAF37; padding:0.75rem 2rem; border-radius:2rem; font-weight:700; text-transform:uppercase; font-size:0.875rem; letter-spacing:0.05em; display:inline-block; transition:all 0.3s ease; text-decoration:none; }
        .btn-outline:hover, .gold-outline-btn:hover { background:rgba(244,239,228,0.15); box-shadow:0 0 20px rgba(244,239,228,0.2); transform:translateY(-2px); color:#FFF3E3; }
        .reveal { opacity:0; transform:translateY(20px); transition:opacity 0.6s ease, transform 0.6s ease; }
        .reveal.visible { opacity:1; transform:translateY(0); }
        .font-heading { font-family:'Playfair Display',serif; }
        .text-ghee-cream { color:#FFF3E3; }
        .text-ghee-gold { color:rgba(255,243,227,.62); }
        ::-webkit-scrollbar { width:6px; }
        ::-webkit-scrollbar-track { background:#050505; }
        ::-webkit-scrollbar-thumb { background:#0F7476; border-radius:4px; }
        ::-webkit-scrollbar-thumb:hover { background:rgba(244,239,228,.04); }
    

  /* ---------------------------------------------------------------------------
     THE TYPE SCALE. One ratio, 1.333, from a 16px body. Every heading size on the
     site is derived from it; none is chosen by eye. Fluid, so headings move with
     the viewport rather than jumping at a breakpoint — which is why the md: and
     lg: size chains are gone.
     --------------------------------------------------------------------------- */
  :root {
    --t-micro: 0.75rem;
    --t-small: 0.875rem;
    --t-body:  1rem;
    --t-3: clamp(1.18rem, 0.98rem + 0.85vw, 1.333rem);
    --t-4: clamp(1.45rem, 1.12rem + 1.35vw, 1.777rem);
    --t-5: clamp(1.78rem, 1.24rem + 2.15vw, 2.369rem);
    --t-6: clamp(2.15rem, 1.32rem + 3.30vw, 3.157rem);
    --t-7: clamp(2.55rem, 1.30rem + 4.95vw, 4.209rem);
    --t-8: clamp(2.95rem, 1.15rem + 7.10vw, 5.610rem);
    --rhythm: calc(1.65 * 1rem);
    --s1: calc(var(--rhythm) * 0.5);
    --s2: var(--rhythm);
    --s3: calc(var(--rhythm) * 1.5);
    --s4: calc(var(--rhythm) * 2);
    --s5: calc(var(--rhythm) * 3);
    --s6: calc(var(--rhythm) * 4);
    --measure: 66ch;
    --measure-tight: 54ch;
  }
  .measure { max-width: var(--measure); }
  .measure-tight { max-width: var(--measure-tight); }
  /* THE NAMED SIZES. One decision each, replacing the responsive chains. */
  .type-h1 { font-size: var(--t-6); line-height: 1.08; letter-spacing: -.022em; }
  .type-h2 { font-size: var(--t-5); line-height: 1.13; letter-spacing: -.018em; }
  .type-h3 { font-size: var(--t-4); line-height: 1.20; letter-spacing: -.012em; }
  .type-display { font-size: var(--t-7); line-height: 1.04; letter-spacing: -.028em; }
  .type-hero { font-size: var(--t-8); line-height: 1.02; letter-spacing: -.032em; }
  .type-lead { font-size: var(--t-3); line-height: 1.5; }

  /* THE COLOPHON. Mark above name, centred, with the line that says who made it.
     The same arrangement is used on Zoya's site so the two match. */
  .madeby { display:flex; flex-direction:column; align-items:center; gap:.55rem;
    text-align:center; }
  .madeby .mbl { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10px;
    letter-spacing:.28em; text-transform:uppercase; color:rgba(255,243,227,.55); }
  .madeby .mbword { width:min(210px,60vw); height:auto; display:block; }
  .footer-tagline { display:none; }

  /* THE HEADER WORDMARK. One image, the same artwork as the footer. The monogram
     that used to sit to its left is gone — it was the same mark twice on one page. */
  .logo { display:flex; align-items:center; }
  .logo .logo-word { height:40px; width:auto; display:block; }
  .logo-text { display:none; }
  @media (max-width: 520px) { .logo .logo-word { height:40px; } }

  /* THE FLOATING MONOGRAM. Bottom right, quiet, and it stays put as you scroll.
     Hidden on the game page, where the HUD already owns that corner. */
  .gmpfloat { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px);
    z-index: 40; display: block; width: 46px; height: 46px; opacity: .5;
    transition: opacity .25s ease, transform .25s ease; }
  .gmpfloat img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .gmpfloat:hover { opacity: .95; transform: scale(1.06); }
  @media (max-width: 640px) { .gmpfloat { width: 34px; height: 34px; } }
  @media print { .gmpfloat { display: none; } }

    /* Service icons: generated at 512px, so they need an explicit cap or they
       render at full size and swamp the card. */
    img[src*="/images/icon-"] { width:64px; height:64px; object-fit:contain; display:block; }
    @media (max-width:768px) { img[src*="/images/icon-"] { width:52px; height:52px; } }

    /* ===== SERVICES INDEX =====
       The old page was eight identical centred cards with a 72px icon, a title and
       one sentence. It read as a menu and said nothing. This is grouped by what the
       work is for, the icons are gone from the cards entirely (each service page
       still carries its own), and the copy comes from the service pages. */
    .svc-intro { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
        gap:clamp(2rem,5vw,4.5rem); align-items:start; padding-bottom:clamp(2.4rem,5vw,3.6rem);
        border-bottom:1px solid rgba(244,239,228,.18); margin-bottom:clamp(2rem,4vw,3rem); }
    .svc-intro-side { padding-top:.5rem; }
    .svc-note { color:rgba(255,243,227,.6); font-size:.95rem; line-height:1.7; margin:0 0 1.4rem; }
    .svc-groups { display:grid; gap:clamp(1.6rem,3.4vw,2.6rem); }
    .svc-group { display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
        gap:clamp(1.4rem,3.4vw,3rem); align-items:start; padding-bottom:clamp(1.6rem,3.4vw,2.6rem);
        border-bottom:1px solid rgba(255,243,227,.08); }
    .svc-group:last-child { border-bottom:none; padding-bottom:0; }
    .svc-gk { display:block; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase;
        color:rgba(255,243,227,.62); margin-bottom:.7rem; }
    .svc-gh h2 { font-size:clamp(1.25rem,2.1vw,1.6rem); line-height:1.22; margin:0;
        color:#FFF3E3; font-weight:400; max-width:22ch; }
    .svc-list { list-style:none; padding:0; margin:0; display:grid; gap:.15rem; }
    /* The title, the one-sentence description and the arrow are three separate
       things, so each needs an explicit cell. Leaving them to auto-placement put the
       title in the second column, because the arrow was placed first in the source
       order of the grid. */
    .svc-list a { display:grid; grid-template-columns:minmax(0,1fr) auto;
        grid-template-areas:"t a" "d a"; gap:.25rem 1.2rem;
        padding:.95rem 1rem .95rem 1.1rem; text-decoration:none; color:inherit;
        border-left:2px solid transparent; transition:border-color .25s ease, background .25s ease, padding-left .25s ease; }
    .svc-list a:hover { border-left-color:rgba(255,243,227,.62); background:rgba(244,239,228,.05); padding-left:1.35rem; }
    .svc-t { grid-area:t; font-size:1.02rem; font-weight:600; color:#FFF3E3; }
    .svc-d { grid-area:d; font-size:.9rem; color:rgba(255,243,227,.62); line-height:1.55; }
    .svc-a { grid-area:a; align-self:center; font-size:.78rem; letter-spacing:.08em;
        text-transform:uppercase; color:#DAAF37; opacity:.55; transform:none;
        transition:opacity .25s ease, transform .25s ease; white-space:nowrap; }
    .svc-list a:hover .svc-a, .svc-list a:focus-visible .svc-a { opacity:1; transform:translateX(2px); }
    .svc-close { margin-top:clamp(2.2rem,4vw,3.2rem); padding-top:clamp(1.6rem,3vw,2.2rem);
        border-top:1px solid rgba(244,239,228,.18); }
    @media (max-width:820px) {
        .svc-intro, .svc-group { grid-template-columns:1fr; }
        .svc-gh h2 { max-width:none; }
        .svc-a { display:none; }
    }

/* Services index, phase 1 of the inline-style refactor. */
.svc-index-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.svc-index-title {
  font-size: var(--t-7);
  line-height: 1.04;
  margin: 0 0 1.2rem;
  text-align: left;
}
.svc-index-lede {
  color: rgba(255, 243, 227, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0;
}
.svc-index-close {
  color: rgba(255, 243, 227, 0.72);
  line-height: 1.7;
  margin: 0 0 1.1rem;
  max-width: 58ch;
}
