
/* Dori Media – Base styles (mobile-first) */
:root{--accent:#2053CF; --accent-ink:#2053CF; --accent-ghost:rgba(32,83,207,0.08); --accent-line:rgba(32,83,207,0.15); 
  --bg:#fff; --ink:#0a0a0a; --muted:#3f3f46; --line:#e5e7eb;
  --radius:18px; --container:1120px;
  --s1:8px; --s2:12px; --s3:16px; --s4:20px; --s5:28px; --s6:36px; --s7:48px; --s8:64px; --s9:88px;
}
html{scroll-behavior:smooth}
body{font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;margin:0;font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);}
img{max-width:100%;height:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

#dori-home .container{max-width:var(--container);margin:0 auto;padding:0 var(--s4)}
#dori-home section{padding:var(--s8) 0}
#dori-home h1,h2,h3{margin:0 0 var(--s2)}
#dori-home h1{font-size:clamp(30px,7vw,54px);line-height:1.12}
#dori-home h2{font-size:clamp(22px,4.5vw,36px)}
#dori-home h3{font-size:clamp(18px,3.8vw,22px)}
#dori-home p{margin:0 0 var(--s3);color:var(--muted)}
#dori-home .pill{display:inline-flex;gap:.5rem;align-items:center;padding:6px 10px;border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--muted)}
#dori-home .btn{display:inline-flex;justify-content:center;align-items:center;gap:.6rem;padding:14px 18px;border:1px solid var(--ink);background:#111;color:#fff;border-radius:12px;font-weight:600;text-decoration:none}
#dori-home .btn.ghost{background:transparent;color:var(--ink)}
#dori-home .btn.block{width:100%}
#dori-home .card{border:1px solid var(--line);border-radius:var(--radius);padding:var(--s5);background:#fff}
#dori-home .row{display:grid;gap:var(--s4)}
#dori-home .divider{height:1px;background:var(--line);border:0;margin:var(--s7) 0}
#dori-home .lead{font-size:clamp(15px,3.8vw,18px)}
#dori-home ul{margin:0;padding-left:1.1rem}
#dori-home .list-clean{list-style:none;padding:0}
#dori-home .kbd{border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;padding:2px 6px;font-size:12px;color:#111}

/* Command palette overlay */
#overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);backdrop-filter:blur(2px);display:none;align-items:flex-start;justify-content:center;padding:10vh 16px;z-index:9999}
#overlay .palette{max-width:720px;width:100%;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
#overlay .palette input{width:100%;border:0;border-bottom:1px solid var(--line);padding:16px;font-size:16px;outline:0}
#overlay .palette ul{max-height:48vh;overflow:auto}
#overlay .palette li{padding:14px 16px;border-bottom:1px solid var(--line);cursor:pointer}
#overlay .palette li:hover{background:#f9fafb}

/* Layout upgrades (≥860px) */
@media (min-width:860px){
  #dori-home .row.two{grid-template-columns:1fr 1fr}
  #dori-home .row.three{grid-template-columns:1fr 1fr 1fr}
  #dori-home .row.four{grid-template-columns:1fr 1fr 1fr 1fr}
  #dori-home .hero-grid{grid-template-columns:1.2fr .8fr}
}


/* Retro-tech flair */
body.tech, body { background:
  radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,0.05), transparent 60%),
  linear-gradient(0deg, rgba(0,0,0,0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.capacity-banner{
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  border:1px dashed var(--line); border-radius:12px; background:#fafafa; margin:12px 0 24px;
  font-size:14px;
}
.capacity-banner .led{width:10px;height:10px;border-radius:50%;background:#10b981;box-shadow:0 0 10px rgba(16,185,129,.7)}
.capacity-banner em{color:var(--muted)}

#dori-home .btn{box-shadow:0 2px 0 rgba(0,0,0,.18)}
#dori-home .card{box-shadow:0 1px 0 rgba(0,0,0,.06)}
#dori-home h1{letter-spacing:-0.01em}
#dori-home h2{letter-spacing:-0.005em}


/* === DOS Theme Toggle === */
.topbar{display:flex;justify-content:flex-start;align-items:center;padding:8px 0}
.btn.small{padding:8px 12px;border-radius:8px;font-size:13px}

body.theme-dos{--bg:#000;--ink:#00ff66;--muted:#7affb7;--line:#114411;color:var(--ink);background:var(--bg);font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;text-rendering:optimizeLegibility;}
body.theme-dos #dori-home .card{background:#000;border-color:#333; box-shadow:none}
body.theme-dos #dori-home .btn{background:#000;color:#00ff66;border-color:#00ff66;box-shadow:none}
body.theme-dos #dori-home .btn.ghost{background:transparent;color:#00ff66;border-color:#00ff66}
body.theme-dos #dori-home .pill{color:#00ff66;border-color:#114411}
body.theme-dos #overlay .palette{background:#000;color:#fff;border-color:#333}
body.theme-dos #overlay .palette input{background:#000;color:#fff;border-color:#333}
body.theme-dos #overlay .palette li{border-color:#222}
body.theme-dos #overlay .palette li:hover{background:#111}
/* CRT scanline + glow */
body.theme-dos:before{
  content:""; pointer-events:none; position:fixed; inset:0;
  background:repeating-linear-gradient(0deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 1px, transparent 2px, transparent 3px);
  mix-blend-mode:overlay; opacity:.2; z-index:0;
}
body.theme-dos #dori-home section{position:relative; z-index:1}
body.theme-dos #dori-home h1, 
body.theme-dos #dori-home h2, 
body.theme-dos #dori-home h3{
  text-shadow:0 0 8px rgba(255,255,255,.08);
}
/* Retro cursor accent on links/buttons */
body.theme-dos a, body.theme-dos button{cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><polygon points="0,0 24,12 0,24" fill="white"/></svg>') 0 0, pointer;}


/* === DOS Toggle: force retro style in all themes === */
#themeToggle{
  background:#000 !important;
  color:#fff !important;
  border:2px solid #fff !important;
  box-shadow:none !important;
  font-family:"IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace !important;
  letter-spacing:0 !important;
  line-height:1 !important;
}
#themeToggle:before{
  content:"■ ";
}
#themeToggle:hover{ background:#111 !important; }
#themeToggle:active{ transform:translateY(1px); }

/* Minor guard: collapse empty first column in 2-col hero if empty (prevents top-left blank) */
@supports(selector(.hero-grid:has(> :first-child:empty))){
  .hero-grid:has(> :first-child:empty){ grid-template-columns:1fr !important; }
  .hero-grid > :first-child:empty{ display:none !important; }
}

/* Ensure top-left gap can't happen due to accidental padding/margin */
#dori-home #top-section .container{ padding-top: 8px; }

/* Hide an empty first child in the hero grid to avoid phantom left column */
#dori-home .hero-grid > :first-child:empty { display:none !important; }

/* DOS toggle button, terminal-style */
#themeToggle{
  background:#000 !important;
  color:#00ff66 !important;
  border:2px solid #00ff66 !important;
  box-shadow:none !important;
  font-family:"IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace !important;
  font-size:13px !important;
  padding:8px 12px !important;
  border-radius:8px !important;
}
#themeToggle::before{ content:"■ "; }
#themeToggle:hover{ background:#001a00 !important; }

/* === FINAL OVERRIDES: DOS MODE (ensure wins over any earlier body/background rules) === */
body.theme-dos, html body.theme-dos {
  background:#000 !important;
  color:#00ff66 !important;
  --bg:#000 !important; --ink:#00ff66 !important; --muted:#7affb7 !important; --line:#114411 !important;
}
/* Nuke decorative backgrounds in DOS mode */
body.theme-dos, body.theme-dos.tech { background:#000 !important; background-image:none !important; }
/* Normalize common components */
body.theme-dos #dori-home .card,
body.theme-dos .card{ background:#000 !important; border:1px solid var(--line) !important; box-shadow:none !important; }
body.theme-dos #dori-home .btn,
body.theme-dos .btn{ background:#000 !important; color:#00ff66 !important; border:1px solid #00ff66 !important; box-shadow:none !important; }
body.theme-dos #dori-home .btn.ghost,
body.theme-dos .btn.ghost{ background:transparent !important; color:#00ff66 !important; border:1px solid #00ff66 !important; }
body.theme-dos #dori-home .pill,
body.theme-dos .pill{ color:#00ff66 !important; border:1px solid #114411 !important; }
/* Inputs / textareas */
body.theme-dos input, body.theme-dos textarea, body.theme-dos select {
  background:#000 !important; color:#00ff66 !important; border:1px solid #114411 !important;
}
/* Links */
body.theme-dos a{ color:#7affb7 !important; text-decoration:underline; }
/* Headings subtle glow */
body.theme-dos h1, body.theme-dos h2, body.theme-dos h3 { text-shadow:0 0 8px rgba(0,255,128,.15) !important; }


/* === Thin fixed header === */
.thinbar{position:fixed;top:0;left:0;right:0;height:46px;backdrop-filter:saturate(120%) blur(6px);
  background:rgba(255,255,255,0.7); border-bottom:1px solid var(--line); z-index:1000;}
.thinbar .thinbar-inner{display:flex;align-items:center;justify-content:space-between;height:100%;gap:10px;}
.thinbar .brand{font-weight:600;color:var(--ink);text-decoration:none}
.thinbar .right{display:flex;align-items:center;gap:10px}
.thinbar .specs{display:flex;align-items:center;gap:10px}
.btn.small{padding:6px 10px;border-radius:8px;font-size:13px;line-height:1;}
/* Offset page content so header doesn't overlap */
body{scroll-padding-top:52px}
#content{padding-top:60px}
/* DOS mode version of the thinbar */
body.theme-dos .thinbar{background:rgba(0,0,0,0.9);border-bottom:1px solid var(--line)}
body.theme-dos .thinbar .brand{color:var(--ink)}


/* DOS cyan links + CRT scanlines */
body.theme-dos a{ color:#00ffff !important; }
body.theme-dos::before{
  content:""; position:fixed; inset:0; pointer-events:none;
  background:repeating-linear-gradient(0deg, rgba(0,255,128,0.06), rgba(0,255,128,0.06) 1px, transparent 2px, transparent 3px);
  mix-blend-mode:overlay; opacity:.18; z-index:999;
}

/* Quick brief layout helpers */
#quick-brief .brief-form .row.three{grid-template-columns:1fr 1fr 1fr}
#quick-brief .muted{color:var(--muted)}

/* header offset */
#content{padding-top:84px}
@media (min-width:860px){ #content{padding-top:96px} }


/* Thinbar refinements */
.thinbar{height:40px}
.thinbar .thinbar-inner{max-width:var(--container);margin:0 auto;padding:0 12px}
.thinbar .right{gap:8px;white-space:nowrap}
.thinbar .left .brand{font-size:14px}
.thinbar .specs .pill{padding:6px 10px}
#themeToggle.btn.small{padding:4px 8px;font-size:12px}
.contact-btn{padding:4px 10px !important}


/* Mobile-first header cleanup */
.thinbar{height:44px}
.thinbar .thinbar-inner{max-width:var(--container);margin:0 auto;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.thinbar .left .brand{font-size:14px}
.thinbar .right{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
/* Hide heavy specs on narrow screens */
.thinbar .specs{display:none}
@media (min-width:1000px){
  .thinbar .specs{display:flex}
}
/* Buttons compact */
#themeToggle.btn.small{padding:4px 8px;font-size:12px}
.contact-btn{padding:4px 10px !important}
/* Ensure content starts below header */
#content{padding-top:64px}


/* === Subtle accent theme (blue #2053CF) === */
a.brand, a.brand:link, a.brand:visited, a.brand:hover, a.brand:active{
  color:#000 !important; text-decoration:none !important;
  font-weight:800; text-transform:uppercase; letter-spacing:.02em;
}
a.brand:hover{opacity:.9}
a:not(.btn):hover{color:var(--accent-ink)}
.btn{outline:none}
.btn:focus{box-shadow:0 0 0 3px var(--accent-ghost)}
.btn.ghost{border:1px solid var(--accent-line); color:var(--accent-ink)}
.btn.ghost:hover{background:var(--accent-ghost)}
input:focus, textarea:focus, select:focus{border-color: var(--accent-ink); box-shadow:0 0 0 3px var(--accent-ghost); outline:none}
.pill, .badge, .chip{border-color:var(--accent-line)}
hr.divider{border-color:var(--accent-line)}
#start-project{padding: var(--s8) 0}
#start-project .container, #contact .container{max-width:var(--container);margin:0 auto;padding:0 var(--s4)}
#start-project p, #contact p{font-weight:400;font-size:clamp(18px,2vw,20px);line-height:1.55;color:var(--muted)}
#start-project input, #start-project textarea, #contact input, #contact textarea{font-weight:400;font-size:clamp(16px,1.9vw,18px)}
#start-project .actions, #start-project .form-actions, #contact .actions, #contact .form-actions{display:flex;gap:var(--s4);flex-wrap:wrap}
#start-project .actions .btn, #start-project .form-actions .btn, #contact .actions .btn, #contact .form-actions .btn{flex:1 1 320px}
.drawer__nav{list-style:none;margin:0;padding:0}


/* === Brand fix + visible blue accents === */
a.brand, a.brand:link, a.brand:visited, a.brand:hover, a.brand:active {
  color: #000 !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}
a.brand:hover { opacity: 0.85; }

/* Stronger blue accents */
:root {
  --accent: #2053CF;
  --accent-ink: #2053CF;
  --accent-ghost: rgba(32,83,207,0.1);
  --accent-line: rgba(32,83,207,0.2);
}

a:not(.btn):hover {
  color: var(--accent-ink);
}

.btn.ghost {
  border: 2px solid var(--accent-ink);
  color: var(--accent-ink);
}
.btn.ghost:hover {
  background: var(--accent-ink);
  color: #fff;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--accent-ghost);
  outline: none;
}

hr, .divider {
  border-color: var(--accent-line);
}

/* Slightly more visible blue in badges/pills */
.pill, .badge, .chip {
  border: 1px solid var(--accent-line);
  background: var(--accent-ghost);
}


/* ===== Fixes: capacity banner, button spacing, textarea width ===== */
.capacity-banner, [class*="capacity-banner"]{display:none !important}

/* Form buttons not touching + equal widths */
#brief .form-actions, .brief .form-actions, #project-brief .form-actions,
#contact .form-actions {
  display:flex; gap: var(--s4); flex-wrap:wrap; align-items:stretch;
}
#brief .form-actions .btn, .brief .form-actions .btn, #project-brief .form-actions .btn,
#contact .form-actions .btn {
  flex: 1 1 320px;
  margin: 0;                 /* kill negative margins from theme if any */
  border-radius: 16px;       /* same rounding for all */
  padding: 16px 20px;
}

/* Big textarea should span full row on desktop */
#brief textarea, .brief textarea, #project-brief textarea, #contact textarea {
  width: 100%;
}
@media (min-width: 960px){
  #brief textarea, .brief textarea, #project-brief textarea, #contact textarea {
    grid-column: 1 / -1;
  }
}

/* Ensure first row inputs align nicely */
#brief .field-row, .brief .field-row, #project-brief .field-row, #contact .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
@media (max-width: 720px){
  #brief .field-row, .brief .field-row, #project-brief .field-row, #contact .field-row {
    grid-template-columns: 1fr;
  }
}


/* ===== Interactive Timeline ===== */
#timeline{padding:var(--s8) 0}
#timeline .container{max-width:var(--container);margin:0 auto;padding:0 var(--s4)}
.timeline__lead{color:var(--muted)}

.timeline__controls{display:grid;gap:var(--s4);margin:var(--s5) 0}
.timeline__controls .tc__row{display:grid;gap:var(--s2)}
.timeline__controls fieldset{display:flex;flex-wrap:wrap;gap:var(--s3);border:0;padding:0;margin:0}
.timeline__controls legend{position:absolute;left:-9999px}
.timeline__controls input[type="range"]{width:100%}
.timeline__controls output{font-weight:600}

/* Rail + cards */
.timeline__rail{list-style:none;margin:0;padding:0;display:grid;gap:var(--s4);grid-template-columns:repeat(12,minmax(0,1fr));position:relative}
.titem{grid-column:span 6}
@media (max-width: 960px){ .titem{grid-column:span 12} }

.tcard{width:100%;text-align:left;border:1px solid var(--line,#e7e7ea);border-radius:16px;padding:var(--s4);background:#fff;cursor:pointer;transition:box-shadow .2s ease,border-color .2s ease,transform .05s ease}
.tcard:focus{outline:none;box-shadow:0 0 0 3px var(--accent-ghost, rgba(32,83,207,.1));border-color:var(--accent-ink,#2053CF)}
.tcard:hover{border-color:var(--accent-ink,#2053CF)}
.tcard__year{display:inline-block;font-weight:700;color:var(--accent-ink,#2053CF);margin-bottom:.25rem}
.tcard__title{margin:.1rem 0 .35rem 0}
.tcard__blurb{color:var(--muted)}
.tcard__more{display:none;color:var(--ink,#111);margin-top:.6rem}
.tcard[aria-expanded="true"] .tcard__more{display:block}
.tcard[aria-expanded="true"]{transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.06)}

/* Animated line canvas behind cards */
.timeline__canvas{position:relative;height:14px;margin:var(--s5) 0}
#timeline-line{position:absolute;inset:0;width:100%;height:100%}
#timeline-line #tl-path{fill:none;stroke:var(--accent-ink,#2053CF);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;opacity:.4;}

/* Utility tokens */
:root{--container:1200px;--s2:.5rem;--s3:.75rem;--s4:1rem;--s5:1.5rem;--s8:4rem;--muted:#6b6b75}


/* === Timeline polish (NZ memes edition) === */
#timeline .timeline__controls{border:0;background:none;box-shadow:none;padding:0}
#timeline .timeline__controls fieldset{border:0}
#timeline .timeline__controls label{display:inline-flex;gap:.4rem;align-items:center}

#timeline .timeline__rail{list-style-type:none !important; counter-reset:none; padding-left:0; margin-left:0}
#timeline .tcard{background:#fff;border:1px solid var(--line,#e7e7ea);box-shadow:0 2px 8px rgba(0,0,0,.04)}
#timeline .tcard:hover{box-shadow:0 6px 18px rgba(0,0,0,.07)}

/* Slight spacing between the animated line and the first row of cards */
#timeline .timeline__canvas{margin-top:var(--s4);margin-bottom:var(--s4)}


/* === Timeline list reset & Briscoes accent === */
#timeline .timeline__rail,
#timeline .timeline__rail li{
  list-style-type:none !important;
  list-style:none !important;
  counter-reset:none !important;
  margin-left:0;
  padding-left:0;
}

/* Thin accent bar for Briscoes card */
.tcard--briscoes{position:relative; overflow:hidden;}
.tcard--briscoes::before{
  content:"";
  position:absolute; left:0; top:0; right:0; height:4px;
  background: linear-gradient(90deg, #1C4DCB 0%, #1C4DCB 50%, #FFD200 50%, #FFD200 100%);
}


/* === Timeline hard reset: kill numbering & markers across browsers === */
#timeline .timeline__rail{list-style:none !important; list-style-type:none !important; counter-reset:none !important; padding-left:0 !important; margin-left:0 !important;}
#timeline .timeline__rail > li{list-style:none !important; list-style-type:none !important; counter-increment:none !important; margin:0 !important; padding:0 !important;}
#timeline .timeline__rail > li::marker{content:"" !important;}
#timeline .timeline__rail *::marker{content:"" !important;}

/* Spacing/stacking safety */
#timeline .titem{margin:0 !important;}
#timeline .tcard{margin:0 !important; position:relative; z-index:0;}
#timeline .tcard[aria-expanded="true"]{z-index:1;}
#timeline .timeline__rail{gap: var(--s4) !important;}

#timeline .timeline__header h2{margin-bottom:.5rem}
#timeline .timeline__controls{border:0;background:none;box-shadow:none;padding:0;margin:1rem 0}
#timeline .timeline__controls label{display:inline-flex;gap:.4rem;align-items:center}


/* === Timeline balance & control cleanup === */
#timeline .timeline__controls{border:0 !important; background:transparent !important; box-shadow:none !important; outline:0 !important;}
#timeline .timeline__controls .tc__row{display:grid; gap: var(--s2); align-items:center;}
#timeline .timeline__controls .tc__actions{display:flex; gap: var(--s3); align-items:center;}
#timeline .timeline__rail{grid-template-columns:repeat(12, minmax(0,1fr)) !important; align-items:start;}

/* Two-column layout on desktop with alternating placement */
@media (min-width: 961px){
  #timeline .titem{grid-column: span 6 !important;}
  #timeline .titem:nth-of-type(odd){grid-column: 1 / span 6 !important;}
  #timeline .titem:nth-of-type(even){grid-column: 7 / span 6 !important;}
}

/* Ensure cards don't inherit weird margins */
#timeline .tcard{margin:0 !important;}


/* === Global brand & utilities === */
a.brand, a.brand:link, a.brand:visited, a.brand:hover, a.brand:active{
  color:#000 !important;text-decoration:none !important;font-weight:800;text-transform:uppercase;letter-spacing:.02em;
}
/* Inputs/buttons focus */
input:focus, textarea:focus, select:focus{border-color:var(--accent-ink);box-shadow:0 0 0 3px var(--accent-ghost);outline:none}

/* Kill capacity banner */
.capacity-banner,[class*="capacity-banner"]{display:none !important}

/* Containers */
.container{max-width:var(--container);margin:0 auto;padding:0 var(--s4)}

/* Quick Brief section spacing */
#quick-brief{padding:var(--s8) 0}
#quick-brief .two{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4)}
#quick-brief .three{display:flex;gap:var(--s4);flex-wrap:wrap}
#quick-brief .btn{min-width:200px}
@media (max-width: 900px){#quick-brief .two{grid-template-columns:1fr}}

/* Button consistency */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.9rem 1.2rem;border-radius:16px;border:1px solid #111;background:#111;color:#fff}
.btn.ghost{background:#fff;color:#111;border:2px solid var(--accent-ink)}
.btn.ghost:hover{background:var(--accent-ink);color:#fff}

/* Timeline: hard reset + layout */
#timeline{padding:var(--s8) 0}
#timeline .timeline__header h2{margin-bottom:.5rem}
#timeline .timeline__controls{border:0 !important;background:transparent !important;box-shadow:none !important;padding:0;margin:1rem 0}
#timeline .timeline__controls .tc__row{display:grid;gap:var(--s2);align-items:center}
#timeline .timeline__controls .tc__actions{display:flex;gap:var(--s3);align-items:center}

#timeline .timeline__rail{list-style:none !important;list-style-type:none !important;counter-reset:none !important;
  padding-left:0 !important;margin-left:0 !important;display:grid;gap:var(--s4);
  grid-template-columns:repeat(12,minmax(0,1fr));align-items:start}
#timeline .timeline__rail > li{list-style:none !important;list-style-type:none !important;counter-increment:none !important;margin:0;padding:0}
#timeline .timeline__rail > li::marker,#timeline .timeline__rail *::marker{content:"" !important}

.titem{grid-column:span 12}
@media (min-width: 961px){
  .titem{grid-column:span 6}
  .titem:nth-of-type(odd){grid-column:1 / span 6}
  .titem:nth-of-type(even){grid-column:7 / span 6}
}

.tcard{width:100%;text-align:left;border:1px solid var(--line,#e7e7ea);border-radius:16px;padding:var(--s4);background:#fff;transition:box-shadow .2s,border-color .2s}
.tcard:hover{border-color:var(--accent-ink);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.tcard:focus{outline:none;box-shadow:0 0 0 3px var(--accent-ghost)}
.tcard__year{display:inline-block;font-weight:700;color:var(--accent-ink);margin-bottom:.25rem}
.tcard__blurb{color:var(--muted)}

/* Briscoes accent */
.tcard--briscoes{position:relative;overflow:hidden}
.tcard--briscoes::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#1C4DCB 0 50%,#FFD200 50% 100%)}


/* ===== Reliability layout safeguards ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { width:100%; max-width:100%; overflow-x:hidden; }

/* Common container helpers (support multiple class names) */
.container, .wrap, .container-lg, .container-xl, .page-container {
  max-width: 1200px;
  margin-left:auto; margin-right:auto;
  padding-left: 1rem; padding-right: 1rem;
}

/* Buttons: don't override interactive JS states */
button, .btn { cursor: pointer; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }

/* Range/inputs: avoid vendor appearance resets that break JS */
input[type="range"] { -webkit-appearance: none; width: 100%; background: transparent; }
input, select, textarea { max-width: 100%; }

/* Ensure forms don't stretch outside viewport */
form { max-width: 100%; }

/* Timeline: ensure grid doesn't create horizontal overflow */
#timeline .timeline__rail { overflow: visible; }
