@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* The studio overview: imagery first, one idea per project. Shared token names
   keep the optional theme previews compatible; other pages retain their CSS. */
:root {
  --paper: #fbfbf8; --ink: #192f32; --muted: #596c70; --soft-ink: #6d8386;
  --accent: #226777; --brand: #ae4029; --line: #d8e0dc;
  --soft: #f0f3ef; --wash: #eaf1ed; --navy: #173d46; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, summary { font: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
header, main, footer { max-width: 1328px; margin-inline: auto; padding-inline: 48px; }
header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 15px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1.25 Manrope, sans-serif; letter-spacing: -.8px; text-decoration: none; white-space: nowrap; }
.mark { width: 14px; height: 32px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--accent); }
.nav-contact { padding: 0 16px; border: 1px solid var(--line); border-radius: 24px; }
h1,h2,h3 { font-family: Manrope, sans-serif; line-height: 1.12; letter-spacing: -.045em; font-weight: 600; }
h1 { font-size: clamp(52px,5.3vw,76px); margin: 20px 0 24px; }
h1 em, .heading-soft { font-style: normal; color: var(--soft-ink); }
h2 { font-size: clamp(30px,3vw,40px); margin: 0; }
h3 { font-size: 28px; margin: 0; }
p { margin: 0 0 16px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding-block: 52px 56px; }
.hero-description { color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 46px; padding: 12px 20px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .18s; }
.button-primary:hover { background: var(--accent); color: white; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--ink); }
.hero-proof { margin: 0; min-width: 0; }
.proof-image { overflow: hidden; border-radius: var(--radius); }
.proof-image img { width: 100%; height: auto; }
.proof-caption { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding-top: 12px; }
.proof-caption strong { font-size: 13px; font-weight: 500; }
.proof-caption small { color: var(--muted); font-size: 11px; }
main > section:not(.intro) { margin-bottom: 64px; }
.section-label { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.section-label > span { max-width: 340px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.section-label .eyebrow { margin-bottom: 8px; }
.studio-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--wash); }
.project-copy { min-width: 0; }
.project-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.project-heading .eyebrow { margin: 0; }
.number { color: var(--muted); font: 12px/1.5 'DM Sans', sans-serif; letter-spacing: .02em; }
.project-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.project-title h3 { display: flex; align-items: center; gap: 10px; }
.project-title h3 img { border-radius: 7px; flex-shrink: 0; width: 32px; height: 32px; }
.studio-feature .project-title { align-items: flex-start; flex-direction: column; gap: 14px; }
.studio-feature h3 { font-size: 38px; }
.stage { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 5px; padding: 4px 8px; font-size: 12px; line-height: 1.45; color: #805127; background: #f2eadd; white-space: nowrap; }
.stage::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.stage.deployed { color: #28634f; background: #e0eee5; }
.project-description { font-size: 17px; line-height: 1.6; color: var(--muted); margin-block: 18px 14px; max-width: 55ch; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 10px; margin-bottom: 0; }
.project-figure { margin: 0; min-width: 0; }
.project-figure a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.project-figure img { width: 100%; height: auto; }
.project-figure a:hover { box-shadow: 0 0 0 2px var(--accent); }
.project-figure figcaption, .visual-caption { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 9px 0 0; }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
.studio-project { min-width: 0; }
.studio-project .project-copy { margin-top: 22px; }
.studio-project .project-figure a { aspect-ratio: 3/2; }
.studio-project .project-figure img { height: 100%; object-fit: contain; }
/* Focused product previews share one calm, consistent frame. */
.clawdomo-player, .homeflux-player { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; min-height: 340px; padding: 28px; overflow: hidden; border-radius: var(--radius); }
.clawdomo-player { background: #f5edda; padding-bottom: 62px; }
.homeflux-player { background: radial-gradient(ellipse at 50% 80%, #efd7ba, #eaece8 72%); }
.ios-recording { display: block; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); height: calc(100% - 32px); width: auto; max-width: 65%; object-fit: contain; border-radius: 16px; box-shadow: 0 8px 24px #192f3218; }
.preview-toggle { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 60px; padding: 8px 13px; margin: 0; border: 1px solid #c5cdc7; border-radius: 24px; background: #fbfbf8; color: #34484b; font-size: 12px; line-height: 1; }
.preview-toggle:hover { border-color: var(--accent); background: #fff; }
.chat-demo { width: min(100%, 330px); color: #342b1c; }
.chat-demo-header { display: flex; align-items: center; gap: 9px; padding-bottom: 16px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.studio-project .chat-demo-header img { width: 32px; height: 32px; border-radius: 8px; }
.chat-demo-header small { display: block; margin-top: 3px; font-weight: 400; font-size: 11px; color: #73654d; }
.chat-demo-body { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.4; }
.chat-question, .chat-reply { max-width: 92%; padding: 11px 15px; margin: 0; border-radius: 18px; }
.chat-question { align-self: flex-end; background: #226777; color: #fff; border-bottom-right-radius: 5px; }
.chat-delivered { align-self: flex-end; margin: 4px 3px 13px; font-size: 10px; color: #73654d; }
.chat-reply-slot { min-height: 94px; width: 100%; }
.chat-reply { background: #fffdf8; border: 1px solid #e9decb; border-bottom-left-radius: 5px; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; height: 39px; padding: 12px 15px; border-radius: 18px; background: #fffdf8; border: 1px solid #e9decb; }
.chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8a7e69; animation: typing-dot 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
.chat-demo [hidden] { display: none; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.studio-strip { display: grid; grid-template-columns: 48px 1fr 1.7fr auto; gap: 24px; align-items: center; padding: 24px; margin-top: 32px; border-block: 1px solid var(--line); background: var(--soft); }
.porchlight-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #ffc488; background: #192231; font: 34px/1 system-ui; }
.strip-name h3 { font-size: 24px; margin-top: 5px; }
.studio-strip p { color: var(--muted); font-size: 15px; margin: 0; }
.reachy-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; padding: 24px; gap: 32px; border-radius: var(--radius); background: #ecefef; overflow: hidden; }
.reachy-preview a { display: flex; align-items: center; justify-content: center; height: 100%; }
.reachy-preview a:hover { opacity: .82; }
.reachy-product { width: 52%; }
.reachy-product img { width: 100%; height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.reachy-phone { width: 31%; }
.reachy-phone img { width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.compact-details { margin-top: 12px; font-size: 14px; }
.compact-details summary { color: var(--accent); min-height: 44px; padding-block: 10px; font-weight: 500; }
.compact-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.compact-details p { margin: 6px 0 12px; }
.detail { color: var(--muted); }
.robotics-feature { margin-top: 34px; padding: 28px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: #192f32; color: #fbfbf8; }
.robotics-feature .project-heading .eyebrow, .robotics-feature .number { color: #acd1ca; }
.robotics-feature h3 { font-size: 34px; }
.robotics-feature .project-description, .robotics-feature .small-note, .robotics-feature figcaption { color: #c3d1ce; }
.robotics-feature .button-primary { color: #192f32; background: #d4e5d8; }
.robotics-feature .button-primary:hover { background: #e7f5e9; }
.robotics-feature .text-link { color: #d4e5d8; }
.hardware-intro { max-width: 72ch; margin: -12px 0 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hardware-roster { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 28px; }
.hardware-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
a.hardware-item:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.hardware-logo { display: grid; place-items: center; width: 62px; height: 54px; flex: 0 0 62px; }
.hardware-logo img { max-width: 100%; height: 42px; object-fit: contain; }
.hardware-item:first-child img { height: 54px; mix-blend-mode: multiply; }
.hardware-item h3 { font-size: 17px; margin-bottom: 0; letter-spacing: -.025em; }
.hardware-arrow { margin-left: auto; color: var(--muted); }
.duckling-mark { font: 600 30px/1 Manrope,sans-serif; color: var(--ink); }
.section-note { font-size: 11px; color: var(--muted); margin-top: 16px; }
.sidequest-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.sidequest { min-width: 0; }
.sidequest .project-figure a, .holdings-visual { aspect-ratio: 16/10; }
.sidequest .project-figure img { width: 100%; height: 100%; object-fit: contain; }
.sidequest-copy { margin-top: 20px; }
.sidequest h3 { font-size: 22px; margin-bottom: 12px; }
.sidequest p:not(.visual-caption) { font-size: 15px; color: var(--muted); margin-top: 12px; }
.holdings-visual { display: flex; align-items: center; justify-content: center; gap: 30px; background: #e7ece5; color: #364f45; border-radius: var(--radius); }
.holdings-slash { font: 300 128px/1 Manrope,sans-serif; color: var(--brand); }
.holdings-visual div { display: grid; gap: 12px; font-size: 16px; }
.holdings-visual div span { border-bottom: 1px solid #c4cfc5; padding-bottom: 8px; }
.toolkit { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin: 0; }
.toolkit dt { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.toolkit dd { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.studio-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 70px; padding: 38px 0 0; border-top: 1px solid var(--line); }
.studio-about p:not(.eyebrow) { color: var(--muted); max-width: 58ch; }
.studio-about strong { color: var(--ink); font-weight: 600; }
.studio-about .button-primary { margin-top: 6px; }
footer { padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.footer-top .wordmark { font-size: 18px; color: var(--ink); }
footer small { font-size: 11px; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 30; padding: 14px 20px; background: var(--paper); }
.skip:focus { top: 8px; }
dialog { padding: 20px; background: var(--paper); color: var(--ink); border: none; border-radius: 16px; max-width: 94vw; max-height: 94vh; }
dialog::backdrop { background: #10272ddb; }
#image-close { display: block; min-height: 44px; margin: 0 0 14px auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); }
#image-large { width: auto; height: auto; max-width: 86vw; max-height: 72vh; object-fit: contain; margin: auto; }
#image-caption { margin: 16px auto 0; max-width: 900px; font-size: 13px; text-align: center; }
@media(max-width:1100px) {
  header, main, footer { padding-inline: 32px; }
  nav { gap: 18px; }
  .intro { gap: 32px; }
  .proof-caption { display: block; }
  .proof-caption small { display: block; margin-top: 3px; }
  .studio-feature, .robotics-feature { gap: 26px; padding: 24px; }
  .studio-feature h3 { font-size: 31px; }
  .project-title h3 { font-size: 27px; }
  .studio-strip { grid-template-columns: 48px 1fr auto; gap: 18px; }
  .studio-strip p { grid-column: 2; }
  .studio-strip > .stage { grid-column: 3; grid-row: 1/3; }
  .hardware-logo { width: 42px; flex-basis: 42px; }
  .hardware-item { gap: 12px; }
}
@media(max-width:800px) {
  html { scroll-padding-top: 24px; }
  header { position: relative; flex-wrap: wrap; gap: 10px; }
  nav { width: 100%; flex-wrap: wrap; gap: 8px 22px; }
  .nav-contact { border: none; padding: 0; }
  .intro { padding-top: 34px; gap: 28px; }
  h1 { font-size: 50px; }
  .hero-description { font-size: 17px; }
  .hero-actions { gap: 8px 20px; margin-top: 20px; }
  .studio-feature { grid-template-columns: 1fr; }
  .studio-feature .project-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .studio-feature .project-heading { grid-column: 1/-1; }
  .studio-feature .project-title { grid-column: 1; grid-row: 2/4; align-self: start; }
  .studio-feature .project-description { grid-column: 2; margin-top: 0; }
  .studio-feature .project-actions, .studio-feature .small-note { grid-column: 2; }
  .studio-feature .project-actions { margin-top: 0; }
  .reachy-preview { padding: 16px; gap: 16px; }
  .studio-project .project-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hardware-roster { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidequest-grid { gap: 20px; }
  .sidequest h3 { font-size: 20px; }
  .holdings-visual { gap: 16px; }
  .holdings-slash { font-size: 90px; }
  .holdings-visual div { font-size: 12px; gap: 6px; }
  .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .studio-about { gap: 32px; }
}
@media(max-width:600px) {
  header, main, footer { padding-inline: 20px; }
  header { padding-block: 12px 6px; }
  .wordmark { font-size: 20px; }
  nav { gap: 5px 20px; font-size: 12px; }
  nav a { min-height: 44px; }
  h1 { font-size: clamp(46px,12vw,64px); margin-top: 16px; }
  .intro { grid-template-columns: 1fr; gap: 30px; padding-block: 30px 38px; }
  .hero-description { font-size: 18px; }
  .proof-caption { display: flex; flex-wrap: wrap; gap: 2px 12px; }
  .proof-caption small { margin: 0; }
  main > section:not(.intro) { margin-bottom: 42px; }
  .section-label { display: block; margin-bottom: 22px; padding-top: 22px; }
  .section-label > span { display: block; margin-top: 12px; }
  .section-label > .text-link { margin-top: 8px; }
  .studio-feature { padding: 20px; gap: 22px; }
  .studio-feature .project-copy { display: block; }
  .studio-feature .project-description { margin-top: 18px; }
  .studio-feature .project-actions { margin-top: 18px; }
  .studio-feature h3 { font-size: 30px; }
  .project-description { font-size: 16px; margin-top: 14px; }
  .studio-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .studio-project .project-title { flex-direction: row; align-items: center; gap: 12px; }
  .project-title h3 { font-size: 27px; }
  .studio-project .project-copy { margin-top: 18px; }
  .project-heading { margin-bottom: 10px; }
  .project-actions { gap: 4px 20px; margin-top: 10px; }
  .reachy-preview { padding: 24px; gap: 24px; }
  .studio-strip { padding: 20px 16px; grid-template-columns: 40px 1fr; gap: 12px; margin-top: 28px; }
  .porchlight-mark { width: 40px; height: 40px; font-size: 29px; }
  .studio-strip > .stage { grid-column: 2; grid-row: 2; }
  .studio-strip p { grid-column: 1/-1; grid-row: 3; margin-top: 4px; }
  .robotics-feature { margin-top: 28px; }
  .hardware-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .hardware-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-block: 18px; }
  .hardware-logo { grid-column: 1/-1; justify-content: start; height: 36px; width: 100%; }
  .hardware-logo img { max-width: 85px; height: 30px; }
  .hardware-item:first-child img { height: 36px; }
  .hardware-item h3 { font-size: 15px; }
  .hardware-arrow { font-size: 13px; }
  .sidequest-grid { grid-template-columns: 1fr; gap: 28px; }
  .sidequest { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .sidequest > .project-figure { grid-column: 1; grid-row: 1/3; }
  .sidequest .project-figure a, .holdings-visual { aspect-ratio: 1; }
  .sidequest .sidequest-copy { grid-column: 2; grid-row: 1/3; margin-top: 0; }
  .sidequest .stage { font-size: 11px; }
  .sidequest h3 { font-size: 20px; margin-bottom: 10px; }
  .sidequest p:not(.visual-caption) { font-size: 14px; margin: 10px 0 0; }
  .sidequest figcaption, .sidequest > .visual-caption { font-size: 11px; margin-top: 7px; }
  .holdings-visual { gap: 10px; }
  .holdings-slash { font-size: 65px; }
  .holdings-visual div { font-size: 9px; gap: 2px; }
  .holdings-visual div span { padding-bottom: 4px; }
  .sidequest > .visual-caption { grid-column: 1; grid-row: 2; }
  .toolkit { gap: 24px 18px; }
  .toolkit dt, .toolkit dd { font-size: 13px; }
  .studio-about { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .footer-top { flex-wrap: wrap; gap: 8px 20px; }
  .footer-top .wordmark { flex-basis: 100%; }
  .footer-top > .text-link { margin-left: auto; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* High-contrast focus on dark artwork and compatibility with theme previews. */
.robotics-feature a:focus-visible { outline-color: #d4e5d8; }
@media(max-width:760px) {
  html[data-theme="wellness"] .hero-proof { flex-direction: column; }
}

/* Reflow: allow content to shrink inside grids, without concealing overflow. */
.intro > *, .studio-feature > *, .studio-grid > *, .sidequest > *,
.studio-about > *, .toolkit > *, .hardware-item > div { min-width: 0; }
.project-title h3 { max-width: 100%; overflow-wrap: anywhere; }
.stage { max-width: 100%; white-space: normal; }
.clawdomo-player, .homeflux-player { width: 100%; min-width: 0; }
#image-large { max-width: 100%; }
@media(max-width:800px) {
  nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; }
  nav a { justify-content: center; }
  .nav-contact { padding: 0; }
}
@media(max-width:760px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .sidequest-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sidequest { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 22px; align-items: start; }
  .sidequest > .project-figure { grid-column: 1; grid-row: 1 / 3; }
  .sidequest .project-figure a, .holdings-visual { aspect-ratio: 1; }
  .sidequest .sidequest-copy { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .sidequest > .visual-caption { grid-column: 1; grid-row: 2; }
}
@media(max-width:600px) {
  nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; font-size: 13px; }
  nav a { justify-content: flex-start; }
  .sidequest { grid-template-columns: 100px minmax(0, 1fr); gap: 0 18px; }
}
@media(max-width:400px) {
  .sidequest { grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; }
  .sidequest h3 { font-size: 19px; }
  .holdings-visual { gap: 6px; }
  .holdings-slash { font-size: 48px; }
  .holdings-visual div { font-size: 8px; }
  .hardware-roster { grid-template-columns: minmax(0, 1fr); }
  .hardware-item { display: flex; gap: 16px; padding-block: 16px; }
  .hardware-logo { width: 58px; flex: 0 0 58px; justify-content: center; }
  .hardware-logo img { max-width: 58px; }
  .hardware-item h3 { font-size: 16px; }
  .hardware-arrow { margin-left: auto; }
}

/* Two chapters make the shared purpose visible without expanding the project copy. */
.chapter-label { margin-top: 52px; border-top: 0; padding-top: 0; }
.lab-grid { margin-top: 0; }
@media(max-width:600px) {
  .chapter-label { margin-top: 36px; }
  .lab-grid { margin-top: 0; }
}

/* One project identity and information rhythm across the portfolio. */
.project-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.project-identity > div { min-width: 0; }
.project-identity .eyebrow { margin: 0 0 5px; font-size: 10px; color: var(--accent); }
.project-identity h3 { font-size: 28px; margin: 0; line-height: 1.18; overflow-wrap: normal; }
.project-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; background: #e4edeb; overflow: hidden; }
.project-icon img { width: 25px; height: 25px; object-fit: contain; }
.project-icon.app-icon img { width: 100%; height: 100%; }
.project-icon.oblique-icon img { width: 13px; height: 29px; }
.project-copy > .stage { margin-top: 14px; }
.project-copy > .project-description { margin: 16px 0 0; }
.project-copy > .project-actions { margin-top: 16px; }
.studio-feature .project-copy { display: block; }
.studio-feature .project-identity h3 { font-size: 32px; }
.studio-project { display: flex; flex-direction: column; }
.studio-project .project-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; margin-top: 20px; }
.studio-project .project-identity { min-height: 64px; }
.studio-project .project-actions { margin-top: auto; padding-top: 16px; }
.studio-project .project-figure figcaption, .studio-project > .visual-caption { min-height: 3em; }
.studio-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 24px; gap: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.studio-strip > .project-description { grid-column: auto; grid-row: auto; font-size: 16px; margin: 0; }
.robotics-feature .project-identity .eyebrow { color: #acd1ca; }
.sidequest .project-identity { gap: 12px; min-height: 52px; }
.sidequest .project-identity h3 { font-size: 22px; margin: 0; }
.sidequest .project-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
.sidequest .project-icon img { width: 22px; height: 22px; }
.sidequest .project-icon.oblique-icon img { width: 11px; height: 26px; }
.sidequest .project-copy > .project-description { margin-top: 14px; }
.sidequest .project-figure figcaption { min-height: 3em; }
.sidequest .compact-details { margin-top: 12px; }
/* Branded contact controls share one shape and a clear keyboard focus state. */
#connect { margin-top: 26px; scroll-margin-top: 110px; }
#connect .eyebrow { margin-bottom: 12px; }
.social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 400px; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; min-width: 0; padding: 13px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; box-shadow: 0 2px 4px #192f3208; transition: background .18s, border-color .18s, box-shadow .18s; }
.contact-glyph { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.contact-linkedin { color: #fff; background: #0a66c2; }
.contact-linkedin:hover { background: #084f96; }
.contact-x { color: #fff; background: #17191b; }
.contact-x:hover { background: #34383c; }
.contact-email { grid-column: 1/-1; color: var(--ink); background: #fff; border-color: var(--line); }
.contact-email .contact-glyph { color: var(--brand); }
.contact-email span { min-width: 0; overflow-wrap: anywhere; }
.contact-email:hover { background: var(--wash); border-color: #a6bab3; }
.contact-button:hover { box-shadow: 0 4px 12px #192f3214; }
.footer-social { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 20px; }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.footer-contact .contact-glyph { width: 16px; height: 16px; flex-basis: 16px; }
.footer-linkedin .contact-glyph { color: #0a66c2; }
.footer-x .contact-glyph { color: #17191b; }
.footer-email .contact-glyph { color: var(--brand); }
.footer-email span { overflow-wrap: anywhere; }
.footer-contact:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:1000px) {
  .footer-top { flex-wrap: wrap; }
  .footer-social { width: 100%; justify-content: flex-start; }
}
@media(prefers-reduced-motion:reduce) {
  .contact-button { transition: none; }
}
@media(max-width:800px) {
  .studio-feature .project-identity h3 { font-size: 30px; }
  .project-identity h3 { font-size: 26px; }
}
@media(max-width:760px) {
  .studio-project .project-identity, .sidequest .project-identity { min-height: 0; }
  .studio-project .project-figure figcaption, .studio-project > .visual-caption, .sidequest .project-figure figcaption { min-height: 0; }
  .sidequest .project-identity { gap: 10px; align-items: flex-start; }
  .sidequest .project-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
  .sidequest .project-icon img { width: 19px; height: 19px; }
  .sidequest .project-identity h3 { font-size: 20px; }
}
@media(max-width:600px) {
  header nav { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px 12px; }
  .project-identity { gap: 12px; }
  .project-identity h3, .studio-feature .project-identity h3 { font-size: 26px; }
  .project-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
  .studio-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .studio-strip > .project-description { grid-column: 1; grid-row: auto; margin: 0; }
  .sidequest .project-identity h3 { font-size: 19px; }
  .sidequest .project-copy > .stage { margin-top: 10px; }
  .sidequest .project-copy > .project-description { margin-top: 10px; }
  .footer-social { margin-left: 0; gap: 0 20px; }
  .footer-email { flex-basis: 100%; }
  #connect { scroll-margin-top: 24px; }
}

/* Detailed sidequest imagery stays uncropped; tap to inspect the full interface. */
#sessionlens-fitness .project-figure img { object-fit: contain; }
@media(max-width:760px) {
  #sessionlens-fitness .project-figure a { aspect-ratio: 16/9; border-radius: 8px; }
  .chat-demo-body { font-size: 16px; }
}
@media(max-width:400px) {
  .clawdomo-player, .homeflux-player { min-height: 340px; }
  .clawdomo-player { padding: 22px 18px 58px; }
  .chat-demo-body { font-size: 14px; }
}
