/* Case-study pages: homepage typography and treatment layered over the red site's built styles (assets/main-*.css). */
@font-face{font-family:Geist;src:url('/assets/geist-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Geist;src:url('/assets/geist-500.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Geist;src:url('/assets/geist-600.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Geist;src:url('/assets/geist-700.ttf') format('truetype');font-weight:700;font-display:swap}

:root{
  /* Spacing — Apple 8pt grid, same scale as styles.css */
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-14:56px;--space-16:64px;--space-18:72px;--space-20:80px;--space-22:88px;--space-28:112px;--space-30:120px;--space-38:152px;

  --paper:#f6f3ec;--cream:#f6f3ec;--ink:#1d1c1a;--muted:#6b665d;--line:#1d1c1a24;
  --red:#c91d17;--red-deep:#a81411;--red-soft:#ffb4a0;
  --ease:cubic-bezier(.22,1,.36,1);
  --content-max:1200px;--gutter:max(56px,calc((100% - var(--content-max)) / 2))
}

/* Base */
html{scroll-behavior:auto;scroll-padding-top:var(--space-28)}
body{background:var(--paper);-webkit-font-smoothing:antialiased}
body::after{content:"";position:fixed;inset:0;z-index:50;pointer-events:none;opacity:.024;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
#root,#root *{font-family:Geist,sans-serif}
#root .linos-template-page *{font-weight:400}
#root .linos-template-page :is(h1,h2,h3,h4,strong,b){font-weight:500}
#root .linos-template-page{--linos-weight-body:400;--linos-weight-meta:500;--linos-weight-subhead:500;--linos-weight-display:500;--linos-image-surface:#ebe6dc;background:var(--paper)}
#root .linos-template-page :is(a,button):focus-visible{outline:3px solid var(--red);outline-offset:6px}
#root .case-study-header .wordmark:focus-visible,#root .linos-template-hero a:focus-visible,#root .linos-template-next-case a:focus-visible{outline-color:var(--paper)}
::selection{background:var(--red);color:#fff}
.case-progress{position:fixed;left:0;top:0;height:3px;width:100%;background:var(--red);transform:scaleX(0);transform-origin:0 50%;z-index:60}

/* Small uppercase labels — homepage eyebrow style */
#root .linos-template-page :is(.linos-template-topline,.linos-template-topline *,.linos-template-eyebrow,.linos-template-section-label,.linos-template-section-label span,.linos-template-index>span,.linos-template-meta-grid span,.linos-template-statement-grid span,.linos-template-next-case>p,.linos-template-image-block figcaption span,.linos-template-result-note>span,.linos-template-final-head,.noah-research-themes-topline,.noah-validation-finding>span,.accessible-video-toggle){font-size:16px;font-weight:600;letter-spacing:.08em}

/* Header — logo tile and floating nav island */
#root .linos-template-page .case-study-header{position:absolute;top:0;left:0;right:0;z-index:20;background:transparent;min-height:0;padding:var(--space-8) var(--gutter)}
#root .case-study-header .wordmark img{width:52px;height:52px;object-fit:contain;padding:var(--space-3);background:var(--paper);border-radius:16px;box-shadow:0 2px 8px #5a0d0a14}
#root .linos-template-page .case-study-nav{position:fixed;top:var(--space-8);left:50%;transform:translateX(-50%);display:flex;flex-direction:row;align-items:center;gap:var(--space-8);padding:var(--space-1) var(--space-1) var(--space-1) var(--space-8);border-radius:100px;background:#fdfbf6;color:var(--ink);border:1px solid #ddd5c8;box-shadow:0 2px 8px #1d1c1a0f;margin:0;right:auto;width:auto}
#root .linos-template-page .case-study-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:16px;font-weight:400;letter-spacing:0;transition:color .4s var(--ease)}
#root .linos-template-page .case-study-nav a:hover{color:var(--red);background:none;transform:none}
/* Sentence-case labels like the homepage nav (the built markup is uppercase) */
#root .linos-template-page .case-study-nav a{font-size:0}
#root .linos-template-page .case-study-nav a::after{font-size:16px}
#root .case-study-nav a[href$="#top"]::after{content:"Home"}
#root .case-study-nav a[href$="#work"]::after{content:"Work"}
#root .case-study-nav a[href$="#about"]{display:none}
#root .case-study-nav a[href$="#process"]{display:none}
#root .case-study-nav a[href$="#frontera"]::after{content:"About"}
#root .case-study-nav a[href$=".pdf"]::after{content:"Resume"}
#root .case-study-nav a[href$="#contact"]::after{content:"Let’s talk"}
#root .linos-template-page .case-study-nav .nav-cta{background:var(--ink);color:#fff;border-radius:100px;padding:var(--space-3) var(--space-5);white-space:nowrap;font-weight:500;transition:background .5s var(--ease)}
#root .linos-template-page .case-study-nav .nav-cta:hover{background:var(--red);color:#fff}

/* Hero — red texture, homepage headline treatment */
#root .linos-template-hero{background:var(--red) url('/assets/red-pattern.webp') top left/auto repeat;color:#fff;padding:var(--space-38) var(--gutter) var(--space-22)}
#root .linos-template-topline{color:#ffe0d8;margin:0 auto}
#root .linos-template-topline a{color:#fff}
#root .linos-template-topline a:hover{color:var(--red-soft)}
#root .linos-template-hero-grid{max-width:none;margin:clamp(56px,6vw,96px) auto 0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:6%;align-items:end}
#root .linos-template-eyebrow{color:#ffe0d8;display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-8)}
#root .linos-template-eyebrow::before{content:"+";font-size:20px;line-height:12px;color:var(--red-soft)}
#root .linos-template-hero h1{font-size:clamp(58px,7.4vw,118px);font-weight:500;letter-spacing:-.075em;line-height:1.025;color:#fff}
#root .linos-template-hero .linos-template-red-dot{color:var(--red-soft);font-weight:500;letter-spacing:inherit}
#root .linos-template-hero-side{margin-top:0;max-width:none}
#root .linos-template-summary{font-size:clamp(19px,1.6vw,22px);font-weight:400;letter-spacing:-.015em;line-height:1.6;color:#ffe9e3;max-width:520px;margin:0 0 var(--space-10)}
#root .linos-template-meta-grid{gap:var(--space-5) var(--space-6)}
#root .linos-template-meta-grid div{border-top:1px solid #ffffff40;padding-top:var(--space-4)}
#root .linos-template-meta-grid span{color:#ffe0d8;margin-bottom:var(--space-2)}
#root .linos-template-meta-grid strong{font-size:17px;line-height:1.5;color:#fff}

/* Body */
#root .linos-template-layout{padding:0;width:min(100% - 112px,var(--content-max));max-width:none;grid-template-columns:minmax(144px,184px) minmax(0,1fr);gap:var(--space-16)}
#root .linos-template-index{top:var(--space-28);gap:var(--space-4);color:var(--muted)}
#root .linos-template-index>span{color:var(--red-deep)}
#root .linos-template-index a{display:flex;align-items:center;gap:var(--space-3);font-size:16px;letter-spacing:0;color:var(--muted);transition:color .4s var(--ease)}
#root .linos-template-index a::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:#d9d2c6;transition:background .4s var(--ease),transform .5s var(--ease)}
#root .linos-template-index a.is-active{color:var(--ink)}
#root .linos-template-index a.is-active::before{background:var(--red);transform:scale(1.3)}
#root .linos-template-index a:hover{color:var(--red)}
#root .linos-template-section{padding-top:clamp(80px,8vw,128px)}
#root .linos-template-section-label{color:var(--red-deep);gap:var(--space-6);margin-bottom:var(--space-8)}
#root .linos-template-rule{background:var(--line)}
#root .linos-template-section h2{font-size:clamp(36px,4.2vw,64px);font-weight:500;letter-spacing:-.06em;line-height:1.1;max-width:900px}
#root .linos-template-section .linos-template-lead{font-size:clamp(19px,1.6vw,22px);line-height:1.7;letter-spacing:-.015em;color:#3a3631;max-width:760px}
#root .linos-template-body p{color:#4e4a44}
#root .linos-template-subsection>p,#root .linos-template-section>p{font-size:clamp(17px,1.25vw,18px);line-height:1.85;max-width:700px}
#root .linos-template-subsection{margin-top:var(--space-16)}
#root .linos-template-subsection h3{font-size:clamp(26px,2.3vw,36px);font-weight:500;letter-spacing:-.055em;line-height:1.15;margin:var(--space-16) 0 var(--space-5);color:var(--ink)}
#root .linos-template-subsection h3:first-child{margin-top:0}
#root .linos-template-page h4{letter-spacing:-.04em}
#root .linos-template-quotes{border-left:0;padding:var(--space-6) var(--space-8);margin-top:var(--space-10);background:#ebe6dc;border-radius:18px;box-shadow:inset 0 0 0 1px #fff9}
#root .linos-template-quotes blockquote{font-size:clamp(17px,1.4vw,20px);line-height:1.55;letter-spacing:-.02em;color:#3a3631}

/* Noah's Ark research cards and finding lists — homepage card shells and body sizes */
#root .noah-research-theme{border:0;border-radius:22px;background:#ebe6dc;box-shadow:inset 0 0 0 1px #fff9;padding:var(--space-6) var(--space-8) var(--space-8)}
#root .noah-research-theme h4 span{font-size:16px;letter-spacing:.05em}
#root .noah-research-themes-intro h3{font-weight:500;letter-spacing:-.06em;line-height:1.1}
#root :is(.noah-validation-finding,.noah-exploration-opportunity,.noah-research-themes-intro) p{font-size:clamp(17px,1.25vw,18px);line-height:1.8}
#root :is(.noah-validation-finding,.noah-exploration-opportunity) strong{font-size:clamp(17px,1.4vw,20px);letter-spacing:-.03em;margin-bottom:var(--space-2);color:var(--ink)}

/* Lino's patient patterns — built as page content (was an image); homepage card shells */
#root .patient-patterns{margin-top:var(--space-14)}
#root .patient-patterns-head{margin-bottom:var(--space-6)}
#root .linos-template-page .patient-patterns-eyebrow,#root .linos-template-page .patient-pattern-kicker,#root .linos-template-page .patient-pattern-row dt{font-size:16px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--red-deep);margin:0}
#root .linos-template-page .patient-patterns-title{font-size:clamp(24px,2.2vw,32px);font-weight:500;letter-spacing:-.05em;line-height:1.2;color:var(--ink);margin:var(--space-4) 0 var(--space-2)}
#root .linos-template-page .patient-patterns-sub{font-size:17px;line-height:1.6;color:var(--muted);margin:0}
#root .patient-patterns-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
#root .patient-pattern{display:flex;flex-direction:column;padding:var(--space-8);background:#fff;border-radius:22px;box-shadow:0 0 0 6px #ebe6dc,inset 0 0 0 1px #fff9;margin:var(--space-2)}
#root .linos-template-page .patient-pattern h4{font-size:clamp(22px,1.8vw,26px);font-weight:500;letter-spacing:-.05em;line-height:1.2;color:var(--ink);margin:var(--space-3) 0 var(--space-6)}
#root .patient-pattern dl{margin:0 0 var(--space-6)}
#root .patient-pattern-row{padding:var(--space-4) 0;border-top:1px solid var(--line)}
#root .patient-pattern-row:first-child{border-top:0;padding-top:0}
#root .linos-template-page .patient-pattern-row dd{margin:var(--space-2) 0 0;font-size:17px;line-height:1.6;color:#3a3631}
#root .linos-template-page .patient-pattern-quote{margin:auto 0 0;padding:var(--space-5) var(--space-6);background:#f6f3ec;border-radius:16px;font-size:17px;line-height:1.55;letter-spacing:-.015em;color:#3a3631}
@media(max-width:640px){
  #root .patient-patterns-grid{grid-template-columns:1fr;gap:var(--space-6)}
  #root .patient-pattern{padding:var(--space-6)}
}

/* Images — homepage shell: soft tray, rounded inner frame */
#root .linos-template-image-block{padding:var(--space-1);background:#ebe6dc;border-radius:22px;box-shadow:inset 0 0 0 1px #fff9;overflow:hidden}
#root .linos-template-image-block img,#root .linos-template-image-block video{border-radius:17px}
#root .linos-template-image-block figcaption{padding:var(--space-3) var(--space-4);margin:0;font-size:16px;letter-spacing:.02em;color:var(--muted)}
#root .linos-template-body img{border-radius:14px}
#root .linos-template-body video{border-radius:14px}
#root .accessible-video-toggle{background:var(--ink);border-radius:100px;padding:var(--space-3) var(--space-5);min-height:44px}
#root .accessible-video-toggle:hover{background:var(--red)}

/* Thanks, next case, footer */
#root .linos-template-thanks{font-weight:500!important;letter-spacing:-.075em;color:var(--red)!important}
#root .linos-template-next-case{background:var(--red) url('/assets/red-pattern.webp') top left/auto repeat;position:relative;overflow:hidden;padding:var(--space-18) var(--gutter) var(--space-16)}
#root .linos-template-next-case::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 85% 80%,#e8463a99 0,transparent 60%);pointer-events:none}
#root .linos-template-next-case>*{position:relative}
#root .linos-template-next-case>p{color:#ffe0d8}
#root .linos-template-next-case a{font-size:clamp(52px,8vw,128px);font-weight:500;letter-spacing:-.075em;line-height:1;border-bottom:1px solid #ffffff40;padding-bottom:var(--space-8);align-items:center}
#root .linos-template-next-case a span{transition:transform .9s var(--ease)}
#root .linos-template-next-case a:hover span{transform:translateX(18px)}
#root .linos-template-footer{padding:var(--space-8) var(--gutter);min-height:0;font-size:16px;letter-spacing:.02em;font-weight:400;color:var(--muted)}
#root .linos-template-footer a{color:var(--ink);text-decoration:none}
#root .linos-template-footer a:hover{color:var(--red)}

@media(max-width:1100px){
  #root .linos-template-page .case-study-header,#root .linos-template-hero,#root .linos-template-next-case,#root .linos-template-footer{padding-inline:var(--space-10)}
  #root .linos-template-layout{width:calc(100% - 72px);gap:var(--space-12)}
  #root .linos-template-page .case-study-nav{gap:var(--space-5);padding-left:var(--space-5)}
}
@media(max-width:900px){
  #root .linos-template-hero-grid{grid-template-columns:1fr;gap:var(--space-12)}
  #root .linos-template-layout{grid-template-columns:1fr}
  #root .linos-template-index{display:none}
}
@media(max-width:640px){
  html{scroll-padding-top:var(--space-20)}
  #root .linos-template-page .case-study-header{padding:var(--space-6) var(--space-5)}
  #root .case-study-header .wordmark img{width:44px;height:44px;padding:var(--space-2);border-radius:14px}
  #root .linos-template-page .case-study-nav{top:var(--space-6);left:auto;right:var(--space-5);transform:none;padding:var(--space-1);gap:0}
  #root .linos-template-page .case-study-nav a:not(.nav-cta){display:none}
  #root .linos-template-page .case-study-nav .nav-cta{padding:var(--space-3) var(--space-5)}
  #root .linos-template-hero{padding:var(--space-30) var(--space-5) var(--space-16)}
  #root .linos-template-hero h1{font-size:clamp(46px,13vw,74px);letter-spacing:-.07em;line-height:1.04}
  #root .linos-template-summary{font-size:18px}
  #root .linos-template-layout{width:calc(100% - 40px)}
  #root .linos-template-section{padding-top:var(--space-20)}
  #root .linos-template-section h2{font-size:clamp(32px,8.6vw,42px)}
  #root .linos-template-section-label{white-space:normal}
  #root .linos-template-quotes{padding:var(--space-6)}
  #root .linos-template-image-block{padding:var(--space-1);border-radius:18px}
  #root .linos-template-image-block img{border-radius:14px}
  #root .linos-template-next-case{padding:var(--space-12) var(--space-5)}
  #root .linos-template-next-case a{font-size:clamp(40px,12vw,64px)}
  #root .linos-template-footer{padding:var(--space-8) var(--space-5);flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.motion-off *{transition:none!important;animation:none!important}
