/* The Yao Group - one stylesheet, mobile first. Tokens from the spec ("Design tokens"). */
:root {
  --tyg-ink: #1f2328; --tyg-grey: #3a3f45; --tyg-paper: #ffffff; --tyg-blue: #1f6feb; --tyg-blue-dark: #1558c0; --tyg-orange: #f28c28;
  --tyg-text: #1f2328; --tyg-muted: #4a5058; --tyg-soft: #f3f4f6;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--tyg-text); background: var(--tyg-paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tyg-blue-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--tyg-orange); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 75ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tyg-orange); color: var(--tyg-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }
.small { font-size: .9rem; }
.plain { list-style: none; padding: 0; margin: 0; }

/* buttons: at least 44 px tall */
.btn { display: inline-block; min-height: 44px; padding: .65rem 1.2rem; border-radius: 6px; font-weight: 600; text-decoration: none; line-height: 1.4; border: 2px solid transparent; }
.btn-primary { background: var(--tyg-blue-dark); color: var(--tyg-paper); }
.btn-primary:hover { background: #0f4699; }
.btn-secondary { background: var(--tyg-paper); color: var(--tyg-blue-dark); border-color: var(--tyg-blue-dark); } /* redesign v0.2: blue for actions, orange only for highlights */
.btn-secondary:hover { background: #e8f0fd; }
.hero .btn-secondary { background: transparent; color: var(--tyg-paper); border-color: var(--tyg-paper); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.12); }

/* header */
.site-header { background: var(--tyg-ink); color: var(--tyg-paper); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--tyg-paper); text-decoration: none; }
.brand img { width: 64px; height: auto; display: block; } /* Yao 17 Nov 2026 19:16Z: logo mark only, no name text */
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; } /* redesign v0.2: transparent logo + name in text, Yao 17 Nov 2026 */
.menu-btn { min-height: 44px; min-width: 44px; padding: .5rem 1rem; background: transparent; color: var(--tyg-paper); border: 2px solid var(--tyg-paper); border-radius: 6px; font: inherit; }
.site-nav { display: none; width: 100%; padding-bottom: 1rem; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li a { display: block; padding: .6rem 0; color: var(--tyg-paper); text-decoration: none; min-height: 44px; }
.site-nav a[aria-current="page"] { color: var(--tyg-orange); font-weight: 700; }
.no-js .site-nav { display: block; }
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .site-nav { display: flex !important; width: auto; align-items: center; gap: 1.25rem; padding: 0; }
  .site-nav ul { display: flex; gap: 1.25rem; margin: 0; }
}

/* hero */
.hero { position: relative; color: var(--tyg-paper); background: var(--tyg-grey); overflow: hidden; min-height: 40vh; display: flex; align-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(20, 22, 26, .68); }
.hero-body { position: relative; z-index: 1; padding: 2.5rem 1.25rem; }
.hero .lead { font-size: 1.25rem; max-width: 60ch; }
.hero .actions .btn { margin: .25rem .5rem .25rem 0; }
/* Yao 21 Nov 2026 (Gmail 1a1ff465d1f501de): smaller pause button. Was 44px tall with the label "Pause background video"; now a short label, still at least 24px for a finger or mouse (WCAG 2.5.8). */
.hero-pause { margin-top: .75rem; background: transparent; color: var(--tyg-paper); border: 1px solid var(--tyg-paper); border-radius: 4px; padding: .15rem .55rem; min-height: 26px; font: inherit; font-size: .75rem; line-height: 1.4; }

/* sections and cards */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--tyg-soft); }
.intro { font-size: 1.2rem; max-width: 75ch; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 768px) { .cards-3, .cards-4, .cards-focus { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--tyg-paper); border: 1px solid #d9dce1; border-radius: 10px; padding: 1.25rem; }
.card h3, .card h4 { color: var(--tyg-ink); }
.focus-card img { border-radius: 6px; margin-bottom: 1rem; }
.role { color: var(--tyg-muted); font-weight: 600; }
/* Our Team page (Yao 21 Nov 2026): one card per person; the photo shows only when site.founder.photo names an image */
.team-person { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.team-person .team-photo img { width: 100%; max-width: 240px; height: auto; border-radius: 8px; }
@media (min-width: 800px) { .team-person.has-photo { grid-template-columns: 240px 1fr; } }
.team-label { color: var(--tyg-muted); font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .25rem; }
.placeholder { color: var(--tyg-muted); font-style: italic; }
.steps li { margin-bottom: .4rem; }
.faq { border-top: 1px solid #d9dce1; padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.cta { margin-top: 2rem; }
.post-list { padding-left: 1.2rem; }
.meta, .crumbs { color: var(--tyg-muted); font-size: .95rem; }
.tags a { display: inline-block; margin-right: .5rem; font-size: .9rem; }
.pager { display: flex; justify-content: space-between; margin-top: 2rem; }

/* contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.map img { border-radius: 10px; }

/* footer */
.site-footer { background: var(--tyg-ink); color: var(--tyg-paper); padding: 2.5rem 0 5rem; }
.site-footer a { color: var(--tyg-paper); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 2fr; } .site-footer { padding-bottom: 2.5rem; } }
.site-footer li a { display: inline-block; padding: .35rem 0; min-height: 44px; }

/* pinned booking bar under 768 px */
.book-bar { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; text-align: center; z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
@media (min-width: 768px) { .book-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-pause { display: none; }
}
.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; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--tyg-ink); color: var(--tyg-paper); padding: 1rem 0; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--tyg-paper); }
.cookie-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.cookie-row p { margin: 0; }
.cookie-actions { display: flex; gap: .75rem; }
.btn-ghost { background: transparent; color: var(--tyg-paper); border: 2px solid var(--tyg-paper); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linklike[hidden] { display: none; }
.legal h2 { margin-top: 2rem; }
.cookie-actions .btn { font: inherit; font-weight: 600; cursor: pointer; }
/* contract places logo row (footer) and partner cards - Yao 15 Nov 2026 */
.contract-places { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); }
.contract-places h2 { color: var(--tyg-paper); font-weight: 600; margin: 0 0 1rem; }
.logo-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.logo-row li { background: #fff; border-radius: 8px; padding: .5rem .75rem; display: flex; flex-direction: column; align-items: center; color: var(--tyg-ink); }
.logo-row img { height: 56px; width: auto; max-width: 160px; object-fit: contain; }
.partner-logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: .75rem; }
.faq-q { font-size: 1.125rem; margin: 0 0 .25rem; }
/* first screen: trust band right under the hero, client quotes (shown only with permission) - Yao 17 Nov 2026 */
.section.trust-bar { padding: 1.25rem 0; }
.trust-bar h2 { margin-bottom: .75rem; }
.trust-bar .logo-row img { height: 44px; }
.trust-facts { margin: .75rem 0 0; font-weight: 600; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 .75rem; font-size: 1.1rem; }
.quote figcaption { font-size: .95rem; }
.hero-body h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); max-width: 30ch; }
@media (max-width: 600px) { .hero-body { padding: 1.5rem 1.25rem; } }
/* redesign v0.2 (Yao 17 Nov 2026): proof line in the home first screen, a result slot per card, one closing step per page */
.hero-proof { margin: 0 0 .75rem; padding-left: .75rem; border-left: 4px solid var(--tyg-orange); font-weight: 600; font-size: 1rem; max-width: 60ch; }
.result { margin: 1rem 0 0; padding: .6rem .8rem; background: var(--tyg-soft); border-left: 4px solid var(--tyg-orange); border-radius: 4px; font-size: 1rem; }
.result-label { font-weight: 700; }
.result-client { color: var(--tyg-muted); }
.next-step .btn { margin: .25rem .75rem .25rem 0; }
.next-step-mail { display: inline-block; }
.card { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
@media (max-width: 600px) { .hero .lead { font-size: 1.05rem; margin: 0 0 .5rem; } .hero-proof { font-size: .95rem; } .hero .actions { margin: .5rem 0 0; } .hero-pause { margin-top: .4rem; } }
/* redesign v0.2 round 2 (Yao 17 Nov 2026 18:26Z): focus areas as two tiles, three panels per area, chips and a step row */
.area-pick { padding: 2rem 0 0; }
.tiles { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.5rem 1.25rem; border-radius: 14px; text-decoration: none; color: var(--tyg-paper); background: #1b2a40; border-top: 4px solid var(--tyg-orange); box-shadow: 0 8px 24px rgba(15,35,70,.18); transition: box-shadow .15s ease; }
.tile:hover { box-shadow: 0 14px 30px rgba(15,35,70,.32); background: #22344f; }
.tile-num { font-size: .9rem; font-weight: 700; letter-spacing: .12em; color: var(--tyg-orange); }
.tile-title { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.tile-text { color: #dfe5ee; }
.tile-go { margin-top: .5rem; font-weight: 600; }
.area { scroll-margin-top: 70px; }
.eyebrow { margin: 0 0 .25rem; font-weight: 700; letter-spacing: .12em; color: #a35400; }
.area-lead { font-size: 1.25rem; max-width: 60ch; margin-bottom: 1.5rem; }
.trio { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio-item { background: var(--tyg-paper); border: 1px solid #d9dce1; border-top: 4px solid var(--tyg-blue-dark); border-radius: 10px; padding: 1.1rem 1.25rem; }
.trio-item h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tyg-blue-dark); margin-bottom: .4rem; }
.trio-item p { margin: 0; }
.sub-head { margin-top: 2.25rem; }
.chips { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .chips { grid-template-columns: repeat(5, 1fr); } }
.chip { background: var(--tyg-soft); border-radius: 10px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; font-size: 1rem; }
.chip strong { color: var(--tyg-ink); }
.timeline { display: grid; gap: .75rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(5, 1fr); } }
.timeline li { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; border-left: 3px solid var(--tyg-orange); background: var(--tyg-paper); font-size: 1rem; }
.section.alt .timeline li { background: var(--tyg-paper); }
.step-num { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--tyg-blue-dark); color: var(--tyg-paper); font-weight: 700; margin-bottom: .35rem; }
.films { margin-top: 1.5rem; }
.area-end { text-align: left; }
.site-footer .brand img { width: 60px; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
/* Yao 17 Nov 2026 19:16Z mail (Gmail 1a1eaf0b1ed36e08): two defense cards, smaller home focus section, FAQ expand, partners page */
@media (min-width: 768px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.defense-card { border-top: 4px solid var(--tyg-blue-dark); }
.defense-lead { font-weight: 600; color: var(--tyg-ink); }
.defense-list li { padding: .5rem 0; border-top: 1px solid #e4e7eb; }
.defense-list li:first-child { border-top: 0; }
.defense-list strong { color: var(--tyg-blue-dark); }
.frameworks { margin-top: 1rem; color: var(--tyg-muted); }
.section-tight { padding-top: 2rem; padding-bottom: 2rem; }
.focus-compact .card p:last-child { margin-bottom: 0; }
details.faq summary { list-style: none; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--tyg-blue-dark); }
details.faq[open] summary::after { content: "\2212"; }
details.faq summary .faq-q { margin: 0; }
.partner-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.partner-strip a { display: flex; align-items: center; justify-content: center; min-height: 72px; min-width: 180px; padding: 1rem 1.5rem; background: var(--tyg-paper); border: 1px solid #d9dce1; border-bottom: 4px solid var(--brand); border-radius: 10px; }
.partner-strip img { height: 32px; width: auto; }
.partner-steps { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 768px) { .partner-steps { grid-template-columns: repeat(3, 1fr); } }
.partner-steps li { display: flex; flex-direction: column; gap: .25rem; background: var(--tyg-paper); border-radius: 10px; padding: 1rem 1.25rem; }
.partner-card { border-top: 6px solid var(--brand, var(--tyg-blue-dark)); }
.partner-area { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tyg-muted); margin: 0 0 .5rem; }
.partner-join { border-style: dashed; border-top-style: solid; background: var(--tyg-soft); }
/* each maker's own blue, mirrors brandColor in _data/techPartners.json (the site allows no inline styles) */
.brand-unifi { --brand: #006FFF; }
.brand-1password { --brand: #145FE4; }
