/* FORCE RIFF SYSTEMS LIGHT COLOR SCHEME */
html {
  color-scheme: only light;
}
:root{
  --bg:#f5f4ef;
  --surface:#ffffff;
  --soft:#ecebe6;
  --ink:#171b1e;
  --muted:#687076;
  --line:#d4d6d2;
  --accent:#294e70;
  --accent-dark:#193952;
  --dark:#172027;
  --dark-line:#43515a;
  --light:#f7f7f3;
  --max:1180px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

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

a:focus-visible{
  outline:3px solid rgba(41,78,112,.3);
  outline-offset:4px;
}

.wrap{
  width:min(calc(100% - 40px),var(--max));
  margin:0 auto;
}

/* HEADER */

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:rgba(245,244,239,.94);
  backdrop-filter:blur(14px);
}

.nav-wrap{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand{
  font-size:.8rem;
  font-weight:850;
  letter-spacing:.14em;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}

.nav a{
  color:#50595e;
  font-size:.83rem;
  font-weight:650;
}

.nav a:hover{color:var(--accent)}

/* TYPOGRAPHY */

.eyebrow,
.tag,
.status{
  margin:0 0 12px;
  color:var(--accent);
  font-size:.73rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

h1,h2,h3{
  margin-top:0;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
  line-height:1.08;
}

h1{
  max-width:930px;
  margin-bottom:25px;
  font-size:clamp(3.1rem,7vw,6.7rem);
  letter-spacing:-.055em;
}

h2{
  max-width:900px;
  margin-bottom:20px;
  font-size:clamp(2.15rem,4.2vw,4rem);
  letter-spacing:-.04em;
}

h3{
  margin-bottom:13px;
  font-size:1.55rem;
  letter-spacing:-.02em;
}

.muted{color:var(--muted)}

/* BUTTONS */

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  margin-top:31px;
}

.button{
  display:inline-flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--accent);
  padding:10px 17px;
  color:var(--accent);
  font-size:.82rem;
  font-weight:750;
}

.button.primary{
  background:var(--accent);
  color:#fff;
}

.button.primary:hover{background:var(--accent-dark)}

.button.secondary:hover{background:rgba(41,78,112,.06)}

.text-link{
  margin-left:6px;
  color:var(--accent);
  font-size:.88rem;
  font-weight:700;
}

/* HERO */

.hero{
  min-height:calc(100vh - 68px);
  display:grid;
  align-items:center;
  padding:105px 0;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 355px;
  gap:82px;
  align-items:end;
}

.lead{
  max-width:790px;
  margin-bottom:18px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.45rem,2.2vw,2rem);
  line-height:1.36;
}

.sublead{
  max-width:760px;
  color:var(--muted);
}

.hero-panel{
  border-top:2px solid var(--accent);
  border-bottom:1px solid var(--line);
  padding:25px 0;
}

.hero-panel h2{
  font-size:1.9rem;
}

.hero-panel p:not(.eyebrow){
  color:var(--muted);
}

.flow{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  align-items:center;
  margin-top:22px;
  font-size:.77rem;
  font-weight:700;
}

.flow b{color:var(--accent)}

/* POSITIONING */

.positioning-strip{
  padding:64px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.strip-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:82px;
}

.strip-grid h2{
  font-size:2.55rem;
}

.strip-copy p{
  max-width:720px;
  color:var(--muted);
}

/* SECTIONS */

.section{padding:96px 0}

.alt{background:var(--soft)}

.dark{
  background:var(--dark);
  color:var(--light);
}

.dark .eyebrow,
.dark .tag{
  color:#9dc0d7;
}

.section-head{
  max-width:870px;
  margin-bottom:50px;
}

.section-head>p:last-child{
  max-width:750px;
  color:var(--muted);
}

.section-head.light>p:last-child{
  color:#bec8ce;
}

/* SELECTED WORK */

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}

.work-card{
  min-height:300px;
  padding:30px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.2);
}

.work-card .index{
  display:block;
  margin-bottom:49px;
  color:#999ea1;
  font-size:.7rem;
}

.work-card p{
  color:var(--muted);
}

.work-card a,
.library-row a{
  color:var(--accent);
  font-size:.86rem;
  font-weight:750;
}

/* METHOD */

.method-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
}

.method-grid article{
  min-height:260px;
  padding:28px;
  background:var(--bg);
}

.method-number{
  display:block;
  margin-bottom:38px;
  color:var(--accent);
  font-size:.72rem;
  font-weight:800;
}

.method-grid p{
  color:var(--muted);
}

/* EMPIRICAL RESEARCH */

.research-feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) 200px;
  gap:52px;
  padding:45px 0;
  border-top:1px solid var(--dark-line);
  border-bottom:1px solid var(--dark-line);
}

.research-copy h3{
  max-width:830px;
  font-size:clamp(2rem,3vw,3.15rem);
}

.research-copy p{
  max-width:810px;
  color:#c6cfd4;
}

.result-box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  max-width:780px;
  margin:30px 0;
  background:var(--dark-line);
}

.result-box p{
  margin:0;
  padding:20px;
  background:var(--dark);
}

.research-note{
  border-left:2px solid #8eb5d0;
  padding-left:20px;
}

.research-menu{
  display:flex;
  flex-direction:column;
  gap:12px;
  border-left:1px solid var(--dark-line);
  padding-left:28px;
}

.research-menu a{
  color:#cde2f0;
  font-size:.87rem;
  font-weight:700;
}

.programme-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  margin-top:30px;
  background:var(--dark-line);
}

.programme-grid article{
  min-height:210px;
  padding:28px;
  background:var(--dark);
}

.programme-grid p:not(.tag){
  color:#adb9c0;
}

/* LIBRARY */

.library{
  border-top:1px solid var(--line);
}

.library-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  padding:27px 0;
  border-bottom:1px solid var(--line);
}

.library-row h3{
  margin-bottom:7px;
}

.library-row p:not(.tag){
  max-width:850px;
  margin-bottom:0;
  color:var(--muted);
}

/* PRINCIPLES */

.principle-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--line);
}

.principle-grid article{
  min-height:215px;
  padding:28px;
  background:var(--soft);
}

.principle-grid p{
  color:var(--muted);
}

/* TOOLS */

.tools-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:78px;
  align-items:center;
}

.tools-grid>div:first-child p:not(.eyebrow){
  max-width:600px;
}

.tool-architecture{
  display:grid;
  grid-template-columns:auto 28px auto 28px auto 28px auto 28px auto 28px auto;
  align-items:center;
  gap:6px;
  padding:28px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.tool-architecture div{
  min-width:82px;
  text-align:center;
}

.tool-architecture span{
  display:block;
  color:#959da2;
  font-size:.65rem;
}

.tool-architecture strong{
  color:var(--accent);
  font-size:.78rem;
}

.tool-architecture i{
  color:var(--accent);
  text-align:center;
  font-style:normal;
}

/* COLLABORATION */

.collaboration{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
}

.collaboration-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:85px;
}

.collaboration-copy p{
  max-width:700px;
  color:var(--muted);
}

/* ABOUT */

.about-grid{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:85px;
}

.title-line{
  max-width:370px;
  color:var(--accent);
  font-weight:700;
}

.about-copy{
  max-width:720px;
}

.about-copy p{
  color:var(--muted);
}

.about-copy blockquote{
  margin:36px 0;
  border-left:2px solid var(--accent);
  padding:4px 0 4px 25px;
  color:#333b40;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.43rem;
  line-height:1.36;
}

/* RECORD */

.record-section{
  border-top:1px solid var(--line);
}

.record{
  display:grid;
  grid-template-columns:155px 1fr;
  gap:30px;
  padding:28px 0;
  border-top:1px solid var(--line);
}

.record:last-child{
  border-bottom:1px solid var(--line);
}

.record-date{
  color:var(--accent);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.1em;
}

.record p{
  max-width:780px;
  color:var(--muted);
}

.record .status{
  color:var(--accent);
}

/* FOOTER */

.footer{
  padding:58px 0 22px;
  background:#11181d;
  color:#e8edef;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:40px;
}

.footer-grid strong{
  font-size:.8rem;
  letter-spacing:.12em;
}

.footer-grid p{
  max-width:520px;
  color:#9eabb2;
  font-size:.87rem;
}

.footer nav{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.footer nav a{
  color:#aab5bb;
  font-size:.82rem;
}

.footer nav a:hover{
  color:#d8e8f2;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:30px;
  margin-top:40px;
  padding-top:18px;
  border-top:1px solid #303a40;
  color:#77858d;
  font-size:.75rem;
}

/* RESPONSIVE */

@media(max-width:1050px){
  .method-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .tool-architecture{
    grid-template-columns:1fr;
    gap:10px;
  }

  .tool-architecture i{
    transform:rotate(90deg);
  }
}

@media(max-width:960px){
  .hero-grid,
  .strip-grid,
  .tools-grid,
  .collaboration-grid,
  .about-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .hero{
    min-height:auto;
  }

  .card-grid,
  .principle-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .research-feature{
    grid-template-columns:1fr;
  }

  .research-menu{
    flex-direction:row;
    flex-wrap:wrap;
    border-left:0;
    border-top:1px solid var(--dark-line);
    padding:22px 0 0;
  }
}

@media(max-width:700px){
  .wrap{
    width:min(calc(100% - 28px),var(--max));
  }

  .site-header{
    position:static;
  }

  .nav-wrap{
    align-items:flex-start;
    flex-direction:column;
    padding:16px 0;
  }

  .nav{
    gap:12px 18px;
  }

  .hero{
    padding:74px 0;
  }

  .section{
    padding:74px 0;
  }

  .card-grid,
  .method-grid,
  .principle-grid,
  .programme-grid{
    grid-template-columns:1fr;
  }

  .work-card{
    min-height:230px;
  }

  .work-card .index{
    margin-bottom:28px;
  }

  .result-box{
    grid-template-columns:1fr;
  }

  .library-row,
  .record{
    grid-template-columns:1fr;
  }

  .footer-grid,
  .footer-bottom{
    flex-direction:column;
  }
}


/* PRODUCTION ACCESSIBILITY / META-ERA POLISH */
.skip-link{
  position:absolute;
  left:12px;
  top:-60px;
  z-index:100;
  padding:10px 14px;
  background:var(--ink);
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  transition:top .15s ease;
}
.skip-link:focus{top:12px}

.faq-list{border-top:1px solid var(--line)}
.faq-list article{
  display:grid;
  grid-template-columns:minmax(220px,.65fr) 1.35fr;
  gap:48px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}
.faq-list h3{margin-bottom:0}
.faq-list p{max-width:760px;margin:0;color:var(--muted)}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

@media(max-width:700px){
  .faq-list article{
    grid-template-columns:1fr;
    gap:8px;
  }
}


.route-title{max-width:900px;margin-bottom:24px;font-size:clamp(2.8rem,6vw,5.5rem);letter-spacing:-.05em}
.route-list{border-top:1px solid var(--line)}
.route-item{display:grid;grid-template-columns:1fr auto;gap:28px;padding:24px 0;border-bottom:1px solid var(--line)}
.route-item p{color:var(--muted);max-width:760px}
.route-item a{color:var(--accent);font-weight:750}
@media(max-width:700px){.route-item{grid-template-columns:1fr}}


/* PRE-LAUNCH ROUTE / LEGAL PAGE STRUCTURE */
.route-hero{padding:90px 0 52px;border-bottom:1px solid var(--line)}
.route-hero .lead{max-width:820px}
.route-content{padding:64px 0 96px}
.route-content .prose{max-width:820px}
.route-content .prose h2{font-size:clamp(1.55rem,2.8vw,2.25rem);letter-spacing:-.025em;margin-top:2.3rem}
.route-content .prose h3{font-size:1.25rem;margin-top:1.8rem}
.route-content .prose p,.route-content .prose li{color:#424b50}
.route-content .prose ul,.route-content .prose ol{padding-left:1.35rem}
.route-content .prose a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.route-content .prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}
.route-content .prose blockquote{border-left:2px solid var(--accent);padding-left:20px;margin-left:0}
.publication-index{border-top:1px solid var(--line)}
.publication-index article{display:grid;grid-template-columns:1fr auto;gap:28px;padding:25px 0;border-bottom:1px solid var(--line)}
.publication-index h2,.publication-index h3{font-size:1.55rem;margin-bottom:.55rem;letter-spacing:-.02em}
.publication-index p{margin:.25rem 0;color:var(--muted);max-width:760px}
.publication-index a{color:var(--accent);font-weight:750;align-self:center}
.legal-footer{padding:50px 0 38px}
.legal-footer-copy{max-width:980px}
.legal-footer-copy p{margin:0 0 1rem;color:#aab5bb;font-size:.85rem;line-height:1.62}
.legal-footer-copy p:first-child{color:#e8edef}
.legal-footer-copy strong{letter-spacing:0;font-size:inherit}
.legal-footer-links{padding-top:.65rem;border-top:1px solid #303a40}
.legal-footer-links a{color:#d8e8f2}
@media(max-width:700px){.publication-index article{grid-template-columns:1fr}.route-hero{padding:64px 0 42px}.route-content{padding:48px 0 74px}}


/* APPROVED RIFF SYSTEMS BRAND MARK */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  display: block;
  width: 176px;
  height: auto;
  mix-blend-mode: multiply;
}
.legal-footer-brand {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 0 1rem;
  opacity: .82;
  mix-blend-mode: multiply;
}
@media (max-width: 760px) {
  .brand img { width: 148px; }
  .legal-footer-brand { width: 132px; }
}


/* LIVE UNLABELLED COUNTDOWN — visible numbers only; no explanatory copy. */
.temporal-mark{
  width:min(calc(100% - 40px),var(--max));
  margin:-24px auto 34px;
  color:var(--muted);
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  font-size:clamp(.76rem,1.2vw,.9rem);
  font-variant-numeric:tabular-nums;
  letter-spacing:.18em;
  text-align:center;
  opacity:.56;
  pointer-events:none;
  user-select:none;
}
@media(max-width:700px){
  .temporal-mark{
    margin:-8px auto 26px;
    letter-spacing:.12em;
  }
}


/* COUNTDOWN MOBILE FIT */
.temporal-mark{
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
@media(max-width:520px){
  .temporal-mark{
    font-size:.70rem;
    letter-spacing:.075em;
  }
}
