/* Patrick Rice Co. website, shared design system (September 2026). */
/* ---- Tokens ---------------------------------------------------- */
:root{
  --paper:#fafbf8;--panel:#f0f2ec;--sage:#e5e9df;--line:#d4dacd;--rule:#e6e9e1;
  --ink:#30332c;--muted:#5b6155;--faint:#8a9084;
  --accent:#647653;--accent-hover:#536445;--accent-tint:#eef1e8;
  --play:#f15100;--play-hover:#d74700;
  --font:Manrope,'Manrope Fallback',Arial,sans-serif;
  --wrap:1280px;--gutter:112px;
  --curve:96px;
}
/* ---- Reset ----------------------------------------------------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
h1,h2,h3,p,figure,blockquote,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:5px;border-radius:3px}
[hidden][hidden][hidden]{display:none}
.wrap{width:min(var(--wrap),calc(100% - var(--gutter)));margin-inline:auto}
.skip{position:absolute;left:20px;top:-80px;background:#fff;padding:14px;z-index:50}
.skip:focus{top:10px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ---- Type scale ------------------------------------------------ */
h1{font-size:clamp(48px,5.1vw,74px);font-weight:500;letter-spacing:-.055em;line-height:1.05}
h2{font-size:clamp(36px,3.7vw,50px);font-weight:500;letter-spacing:-.045em;line-height:1.1}
h3{font-size:22px;font-weight:600;letter-spacing:-.02em;line-height:1.35}
.lead{font-size:18px;line-height:1.7;color:var(--muted)}
.small{font-size:13px;line-height:1.65;color:var(--muted)}

/* ---- Buttons and links ---------------------------------------- */
.button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:15px 24px;background:var(--accent);color:#fff;border-radius:7px;font-size:15px;font-weight:650;line-height:1.3;white-space:nowrap}
.button:hover{background:var(--accent-hover)}
.button.quiet{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.button.quiet:hover{background:var(--sage)}
/* The one call button on a page: the lit look of the homepage steps CTA (Patrick, 2026-11-16). Label "Book a discovery call". */
.button.call{background:var(--play);box-shadow:0 14px 28px -16px rgba(241,81,0,.55)}
.button.call:hover{background:var(--play-hover)}
.text-link{display:inline-block;font-size:15px;font-weight:650;padding-bottom:3px;border-bottom:1.5px solid var(--accent)}
.text-link:hover{border-bottom-color:var(--ink)}
.source-link{font-size:13px;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line);min-height:32px;display:inline-flex;align-items:center}
.source-link:hover{color:var(--ink);text-decoration-color:var(--ink)}

/* ---- Header ---------------------------------------------------- */
.header{position:relative;z-index:20;height:112px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:13px;font-size:21px;font-weight:750;letter-spacing:-.04em;color:#111;white-space:nowrap}
.brand img{width:40px;height:40px}
.nav{display:flex;align-items:center;gap:32px;font-size:14px;font-weight:650}
.nav>a{display:inline-flex;align-items:center;min-height:44px}
.nav>a:not(.nav-cta):hover{text-decoration:underline;text-underline-offset:6px}
.nav-cta{padding:12px 22px;border:1px solid var(--ink);border-radius:7px}
.nav-cta:hover{background:var(--sage)}
.menu{display:none;min-height:44px;min-width:64px;padding:9px 13px;border:1px solid var(--line);border-radius:5px;font-size:14px}

/* ---- Hero ------------------------------------------------------ */
.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:64px;align-items:center;padding:20px 0 40px}
.hero h1{max-width:15ch}
.hero .lead{max-width:34em;margin-top:28px}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;margin-top:36px}

/* Media frame: shared by the founder video, Tom's video and story imagery */
.frame{position:relative;overflow:hidden;background:var(--sage);border-radius:8px var(--curve) 8px 8px;height:540px}
.frame.mirror{border-radius:var(--curve) 8px 8px 8px}
.frame img,.frame video{width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.frame video{object-fit:cover;object-position:50% 50%;background:#171917}
.frame-caption{position:absolute;left:18px;right:18px;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;background:var(--paper);border-radius:6px;color:var(--ink);text-align:left}
.frame-caption strong{display:block;font-size:19px;font-weight:650;letter-spacing:-.03em}
.frame-caption span{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.play{position:absolute;top:50%;left:50%;transform:translate(-50%,-56%);width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#fffffff2;color:var(--play);box-shadow:0 3px 18px #0002}
.play svg{width:26px;height:26px;margin-left:4px}
.frame-button{display:block;width:100%;height:100%;text-align:left}
.frame-button:hover .play{background:#fff;color:var(--play-hover)}
.frame-button:focus-visible{outline-offset:-5px}
.frame.is-playing .poster,.frame.is-playing .play,.frame.is-playing .frame-caption{display:none}
.poster{position:absolute;inset:0;pointer-events:none}
.frame.slot{display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid #e3e6dd}
.slot-center{text-align:center;padding:30px 34px 90px;color:#6b7364}
.slot-center svg{width:44px;height:44px;margin:0 auto 18px;stroke-width:1.2}
.slot-center p{font-size:17px;letter-spacing:-.01em}
.slot-center small{display:block;font-size:12px;margin-top:6px;color:var(--muted)}

/* ---- Logo strip ----------------------------------------------- */
.clients{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:26px 0}
.clients ul{display:flex;justify-content:center;align-items:center;gap:22px 56px;flex-wrap:wrap}
.clients li{display:flex;align-items:center}
.clients img{height:28px;width:auto;max-width:150px;object-fit:contain;opacity:.55}
.clients li:hover img{opacity:.9}
.clients .wordmark{gap:8px;font-size:15px;font-weight:700;letter-spacing:-.02em;color:var(--ink);opacity:.55}
.clients .wordmark img{height:26px;opacity:1}

/* ---- Stories --------------------------------------------------- */
.story{padding:44px 0;border-bottom:1px solid var(--rule)}
.story-body{display:grid;grid-template-columns:1fr 1.25fr;gap:44px;align-items:stretch}
.story-body.mirror{grid-template-columns:1.25fr 1fr}
.story-body .frame{height:auto;min-height:500px}
.story-body.mirror .story-copy{justify-content:flex-start;gap:24px}
.story-copy{display:flex;flex-direction:column;justify-content:space-between;gap:26px;min-width:0}
.story-meta{display:flex;align-items:center;justify-content:space-between;gap:24px}
.story-meta img{height:28px;width:auto;max-width:170px;object-fit:contain;opacity:.85}
.story-meta span{font-size:13px;color:var(--muted)}
.story-result{font-size:21px;line-height:1.5;letter-spacing:-.015em;max-width:30em}
.story-result strong{font-weight:700}
/* The result number is the one orange thing in a headline (Patrick, 2026-11-16): case H1, index card, client-stories reel. */
.cs-head h1 strong,.cs-story-card h2 strong,.stories-reel h3 strong{font-weight:700;color:var(--play)}
.story-result+.small{margin-top:8px;max-width:36em}
.story-copy .evidence{margin-top:auto}
.story-body.ding{grid-template-columns:1fr 1.45fr;align-items:stretch}
.story-body.ding .story-copy{justify-content:flex-start;gap:24px}
.story-body.ding .quote{margin-top:auto;min-height:0;gap:22px}
.quote.placeholder{border:1px dashed #c9d0c2;background:transparent}
.quote.placeholder blockquote{color:var(--muted);font-weight:500}
.story-foot{display:flex;justify-content:flex-end;margin-top:18px}

/* Evidence cards: real dashboards, unchanged */
.evidence{margin:0;padding:20px 20px 14px;background:#fff;border:1px solid #dfe4db;border-radius:9px;min-width:0}
.evidence-open{display:block;width:100%;cursor:zoom-in}
.evidence figcaption{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px;padding-top:12px;border-top:1px solid var(--rule);font-size:12px;color:var(--muted)}

/* Comparison card for S. Feldman */
.compare{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;margin-top:30px;padding:26px 28px;background:#fff;border:1px solid #dfe4db;border-radius:9px;max-width:520px}
.compare>div>span{display:block;font-size:12px;color:var(--muted)}
.compare strong{display:block;font-size:54px;font-weight:500;letter-spacing:-.04em;line-height:1.1;margin-top:8px}
.compare strong small{font-size:.5em;letter-spacing:0;margin-left:2px}
/* Growth tile (Patrick, 2026-11-16): the "after" value and the arrow read in brand orange, the arrow rises; the "before" value stays ink. A decline gets .is-down and stays ink with the flat faint arrow. */
.compare>div:last-child strong{color:var(--play)}
.compare>div>p{font-size:12px;color:var(--muted);margin-top:4px}
.compare-arrow{width:28px;height:28px;color:var(--play);rotate:-35deg}
.compare.is-down>div:last-child strong{color:var(--ink)}
.compare.is-down .compare-arrow{color:var(--faint);rotate:none}
.compare-arrow svg{width:100%;height:100%}

/* ---- Testimonials ---------------------------------------------- */
.voices{padding:52px 0;border-bottom:1px solid var(--rule)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:28px}
.section-head .lead{max-width:30em;margin-top:18px}
.reel-controls{display:none;gap:8px;flex-shrink:0}
.reel-controls button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center}
.reel-controls button svg{width:18px;height:18px}
.reel-controls button:hover:not(:disabled){background:var(--sage)}
.reel-controls button:disabled{opacity:.3;cursor:default}
.quotes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.quote{display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:230px;padding:26px 26px;background:var(--panel);border-radius:8px}
.quote blockquote{font-size:21px;line-height:1.55;font-weight:500;letter-spacing:-.015em}
.quote figcaption{display:flex;align-items:center;gap:12px}
.headshot{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}
.initials{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid #cdd5c6;color:var(--accent);font-size:12px;font-weight:600;flex-shrink:0}
.quote figcaption strong{display:block;font-size:14px;font-weight:650}
.quote figcaption span{display:block;font-size:12px;color:var(--muted);margin-top:2px}

/* ---- Approach -------------------------------------------------- */
.approach{padding:52px 0 44px;border-bottom:0;display:grid;grid-template-columns:1fr 1.15fr;gap:80px;align-items:start}
.approach h2{max-width:12ch}
.approach .lead{max-width:26em;margin-top:24px}
.steps{counter-reset:step}
.steps li{counter-increment:step;display:grid;grid-template-columns:44px 1fr;gap:20px;padding:20px 0;border-top:1px solid var(--line)}
.steps li:first-child{padding-top:0;border-top:0}
.steps li::before{content:counter(step,decimal-leading-zero);font-size:15px;font-weight:600;color:var(--accent);padding-top:5px;font-variant-numeric:tabular-nums}
.steps p{font-size:16px;line-height:1.75;color:var(--muted);margin-top:10px;max-width:32em}


/* ---- Contact --------------------------------------------------- */
.contact{padding:8px 0 64px}
.contact-intro{text-align:center;max-width:36em;margin:0 auto 24px}
.contact-intro .lead{margin:20px auto 0;max-width:30em}
.contact-intro .text-link{margin-top:22px}
.inquiry{max-width:880px;margin:0 auto;padding:40px 48px 36px;background:var(--panel);border-radius:8px 8px var(--curve) 8px}
.form-progress{font-size:12px;color:var(--muted);margin-bottom:16px}
.inquiry fieldset{border:0;padding:0;margin:0;min-width:0}
.inquiry legend{padding:0;font-size:28px;font-weight:500;letter-spacing:-.03em;line-height:1.3;margin-bottom:22px;max-width:24em}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice{display:flex;align-items:center;gap:13px;min-height:62px;padding:15px 18px;background:#fff;border:1px solid #d9ded2;border-radius:6px;font-size:15px;cursor:pointer}
.choice:hover{border-color:var(--accent)}
.choice:has(input:checked){background:var(--accent-tint);border-color:var(--accent)}
.choice input{width:17px;height:17px;margin:0;flex-shrink:0;accent-color:var(--accent)}
.choice:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.form-hint{font-size:14px;color:var(--muted);margin:-10px 0 16px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.field{display:block;font-size:14px;font-weight:600}
.field>span{font-weight:400;color:var(--muted);font-size:12px}
.field input,.field select{display:block;width:100%;min-height:50px;margin-top:8px;padding:12px 14px;background:#fff;border:1px solid #cdd4c5;border-radius:5px;font-size:16px;font-weight:400}
.field input:focus-visible,.field select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.form-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px}
.form-back{font-size:13px;padding:12px 0;text-decoration:underline;text-underline-offset:5px}
.form-next{margin-left:auto;min-width:130px}
.form-error{font-size:13px;color:#9b352c;margin-top:14px}
.demo-note{font-size:12px;color:var(--muted);margin-top:18px}
.inquiry-complete{padding:16px 0 8px}
.inquiry-complete h3{font-size:26px;font-weight:500;letter-spacing:-.03em}
.inquiry-complete p{color:var(--muted);margin-top:14px;max-width:34em}
.inquiry-complete button{margin-top:20px}

/* ---- Footer ---------------------------------------------------- */
.footer{border-top:1px solid var(--line);padding:40px 0 36px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px;align-items:start}
.footer .brand{font-size:17px}
.footer .brand img{width:30px;height:30px}
.footer-tag{font-size:14px;color:var(--muted);margin-top:16px;max-width:22em;line-height:1.6}
.footer h3{font-size:13px;font-weight:650;color:var(--muted);margin-bottom:14px}
.footer li+li{margin-top:2px}
.footer li a{display:inline-flex;align-items:center;min-height:36px;font-size:15px}
.footer li a:hover{text-decoration:underline;text-underline-offset:5px}
.footer-base{display:flex;justify-content:space-between;gap:24px;margin-top:44px;padding-top:22px;border-top:1px solid var(--rule);font-size:12px;color:var(--muted)}

/* ---- Dialogs --------------------------------------------------- */
dialog{border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:24px}
dialog::backdrop{background:#17251bd9}
.evidence-dialog{width:min(1350px,calc(100vw - 32px));max-height:92vh}
.evidence-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:16px}
.evidence-header h2{font-size:23px;letter-spacing:-.02em}
.evidence-close{min-width:42px;min-height:42px;background:#fff;border:1px solid var(--line);border-radius:5px;font-size:22px}
.evidence-image{width:100%;background:#fff;border-radius:5px}
.evidence-dialog p{font-size:13px;color:var(--muted);margin-top:15px;max-width:60em}
.evidence-full{display:inline-block;margin-top:14px;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.founder-dialog{width:min(480px,calc(100% - 40px));padding:30px}
.founder-dialog h2{font-size:26px}
.founder-dialog p{font-size:15px;color:var(--muted);margin:18px 0 22px}
.founder-dialog button{padding:10px 20px;border:1px solid var(--ink);border-radius:6px}

/* ---- Responsive ------------------------------------------------ */
@media(max-width:1100px){
  :root{--gutter:64px;--curve:72px}
  .hero{gap:36px}.frame{height:480px}
  .story-body,.story-body.mirror,.story-body.ding{gap:28px}
  .approach{gap:48px}
  .clients ul{gap:28px}.clients img{height:24px;max-width:130px}
  .compare strong{font-size:44px}
}
@media(max-width:900px){
  .header{height:88px}
  .menu{display:block}
  .nav{display:none;position:absolute;top:80px;left:0;right:0;z-index:30;flex-direction:column;align-items:stretch;gap:4px;padding:14px 20px;background:var(--paper);border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 20px #25342910}
  .nav.open{display:flex}
  .nav-cta{text-align:center;justify-content:center;margin:8px 0 4px}
  .story-body,.story-body.mirror,.story-body.ding{grid-template-columns:1fr;gap:24px}
  .story-body .frame{min-height:0;height:400px}
  .story-body.mirror>*:first-child{order:2}
  .story-copy{gap:22px}
  .approach{grid-template-columns:1fr;gap:32px}
  .quotes{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 20px)/2);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:6px}
  .quote{scroll-snap-align:start}
  .reel-controls{display:flex}
  .clients ul{gap:20px 32px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-grid>div:first-child{grid-column:1/-1}
}
@media(max-width:760px){
  :root{--gutter:40px;--curve:64px}
  body{font-size:15px}
  .brand{font-size:18px;gap:10px}.brand img{width:32px;height:32px}
  .hero{grid-template-columns:1fr;gap:26px;padding:12px 0 32px}
  .hero h1{max-width:none}
  .hero .lead{margin-top:22px;font-size:17px}
  .hero-actions{margin-top:26px;gap:12px 22px}
  .button{min-height:50px;font-size:14px;padding:14px 20px}
  .frame{height:400px}
  .frame-caption{left:14px;right:14px;bottom:14px;padding:14px 16px}
  .frame-caption strong{font-size:17px}
  .play{width:60px;height:60px}.play svg{width:22px;height:22px}
  .clients{padding:24px 0}.clients img{height:20px;max-width:110px}.clients .wordmark{font-size:13px}
  .story,.voices,.approach{padding:40px 0}.contact{padding:0 0 40px}
  .story-result{font-size:18px}
  .story-meta img{height:24px;max-width:130px}.story-meta span{font-size:12px}
  .story{padding:36px 0 40px}
  .evidence{padding:12px 10px 10px}
  .compare{padding:20px;gap:12px;max-width:none}.compare strong{font-size:40px}
  .section-head{display:block}
  .quotes{grid-auto-columns:88%;gap:16px}
  .quote{padding:24px 22px;min-height:260px}.quote blockquote{font-size:19px}
  .reel-controls{margin-top:20px;justify-content:flex-end}
  .steps li{grid-template-columns:34px 1fr;gap:14px;padding:22px 0}
        .contact-intro{text-align:left;margin-bottom:28px}.contact-intro .lead{margin-left:0}
  .inquiry{padding:26px 20px 24px;border-bottom-right-radius:48px}
  .inquiry legend{font-size:24px}
  .choices,.field-row{grid-template-columns:1fr}
  .footer{padding:40px 0 32px}.footer-grid{grid-template-columns:1fr;gap:30px}
  .footer-base{flex-direction:column;gap:6px;margin-top:32px}
  .evidence-dialog{padding:15px}.evidence-header h2{font-size:20px}
}
@media(prefers-reduced-motion:no-preference){.button{transition:background var(--dur-quick) var(--ease-out)}.play{transition:background var(--dur-quick) var(--ease-out),color var(--dur-quick) var(--ease-out)}.clients img{transition:opacity var(--dur-quick) var(--ease-out)}}
/* ---- Text links: the accent rule inks over in place, never wipes; focus matches hover ---- */
/* It also thickens by half a pixel inside the box, the step the nav and footer rules take. */
.text-link:focus-visible{border-bottom-color:var(--ink);box-shadow:inset 0 -.5px 0 var(--ink)}
@media (hover:hover) and (pointer:fine){.text-link:hover{box-shadow:inset 0 -.5px 0 var(--ink)}}

/* ---- Testimonials past three: a track of three on desktop, with the arrows ---- */
@media (min-width:901px){
  .voices:has(.quote:nth-child(4)) .quotes{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/3);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:0;scrollbar-width:none;padding-bottom:4px}
  .voices:has(.quote:nth-child(4)) .quotes::-webkit-scrollbar{display:none}
  .voices:has(.quote:nth-child(4)) .quote{scroll-snap-align:start}
  .voices:has(.quote:nth-child(4)) .reel-controls{display:flex}
  /* Tom's video holds the hero portrait's height rather than stretching to the copy beside it. */
  .story-body .frame:has(video){height:540px;min-height:0;align-self:start}
}
@media (min-width:901px) and (max-width:1100px){.story-body .frame:has(video){height:480px}}
/* Only wide screens have a margin the arrows fit in without crossing the edge of the page. */
@media (min-width:1420px){
  .voices:has(.quote:nth-child(4)){position:relative}
  .voices:has(.quote:nth-child(4)) .reel-controls{display:contents}
  .voices:has(.quote:nth-child(4)) .reel-count{display:none}
  .voices:has(.quote:nth-child(4)) .reel-controls button{position:absolute;top:50%;z-index:1;margin-top:12px;translate:0 -50%;background:var(--paper)}
  .voices:has(.quote:nth-child(4)) [data-reel="previous"]{left:-58px}
  .voices:has(.quote:nth-child(4)) [data-reel="next"]{right:-58px}
}
/* A quote without a photo keeps the caption's rhythm with a plain silhouette. */
.quote figcaption:not(:has(img))::before{content:"";flex-shrink:0;width:44px;height:44px;border:1px solid #cdd5c6;border-radius:50%;background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647653' stroke-width='1.4'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 19.5c1.4-3.3 3.9-5 7-5s5.6 1.7 7 5'/%3E%3C/svg%3E") center/22px no-repeat}
