/* Nishith Fernando — a portfolio built around the work. */
:root {
  color-scheme: light;
  --paper: #fcfcfc;
  --surface: #f3f3f3;
  --ink: #141414;
  --muted: #626262;
  --faint: #ebebeb;
  --line: #dedede;
  --accent: #376385;
  --accent-soft: #edf2f6;
  --section: #f0f0f0;
  --inverse: #181818;
  --inverse-ink: #f0f0f0;
  --inverse-muted: #b8b8b8;
  --inverse-line: #3a3a3a;
  --inverse-accent: #a3bdd5;
  --page-gutter: clamp(20px, 4.4vw, 64px);
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --body: 'Manrope', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
[data-theme='dark'] {
  color-scheme: dark;
  --paper: #181818;
  --surface: #202020;
  --ink: #f0f0f0;
  --muted: #b2b2b2;
  --faint: #262626;
  --line: #363636;
  --accent: #81a1c1;
  --accent-soft: #26323b;
  --section: #202020;
  --inverse: #141414;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 15px; -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--paper); background: var(--accent); }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, summary { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--accent); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
p { line-height: 1.75; }
button { color: inherit; }
.wrap { width: calc(100% - var(--page-gutter) * 2); max-width: 1280px; margin-inline: auto; }
.mono, dt { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .035em; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .07em; }
.subtle { color: var(--muted); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 14px 20px; color: var(--paper); background: var(--accent); transform: translateY(-160%); clip-path: inset(50%); }
.skip-link:focus { transform: translateY(0); clip-path: none; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 17px; min-height: 48px; }
.monogram { font-weight: 800; font-size: 32px; letter-spacing: -.09em; line-height: 1; }
.identity-dot { color: var(--accent); }
.identity-name { font-size: 11px; font-weight: 700; line-height: 1.45; }
.main-nav { display: flex; gap: 36px; margin-left: auto; margin-right: 48px; }
.main-nav a { display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: 12px; font-weight: 600; }
.main-nav a span { font-family: var(--mono); font-size: 9px; color: var(--muted); align-self: flex-start; margin-top: 10px; }
.main-nav a:hover, .contact-social a:hover, .site-footer a:hover { color: var(--accent); }
.main-nav a[aria-current='location'] { color: var(--accent); }
.main-nav a[aria-current='location'] span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.theme-toggle { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .2s; }
.theme-toggle:hover { background: var(--faint); }
.header-contact { display: flex; align-items: center; justify-content: space-between; gap: 27px; min-height: 44px; font-size: 12px; font-weight: 700; }
.header-contact span { font-size: 20px; color: var(--accent); }
.hero { position: relative; padding-top: 47px; padding-bottom: 48px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; }
.availability { display: inline-flex; align-items: center; gap: 10px; }
.availability i { display: block; width: 6px; height: 6px; flex: 0 0 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-location { color: var(--muted); }
.hero-location span { margin-left: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.23fr .77fr; align-items: end; gap: clamp(40px, 6.5vw, 100px); padding-top: 50px; padding-bottom: 47px; }
.hero-identity { min-width: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(90px, 12.5vw, 180px); font-weight: 600; line-height: .91; letter-spacing: -.035em; text-transform: uppercase; }
.period { color: var(--accent); }
.hero-aside { padding-bottom: 7px; }
.hero-aside .eyebrow { color: var(--accent); font-size: 10px; margin-bottom: 23px; }
.hero-bio { max-width: 405px; font-size: clamp(21px, 2.3vw, 31px); font-weight: 500; letter-spacing: -.05em; line-height: 1.43; }
.hero-bio em { font-style: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line); }
.hero-description { max-width: 360px; margin-top: 21px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 37px; padding: 14px 20px; font-size: 11px; font-weight: 700; }
.button-dark { background: var(--ink); color: var(--paper); transition: background .2s, transform .2s; }
.button-dark:hover { background: var(--accent); color: var(--paper); transform: translateY(-2px); }
.button span { font-size: 19px; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 44px; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line); }
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.text-link span { font-size: 18px; }
.work-section { padding-top: 77px; padding-bottom: 94px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid var(--ink); text-transform: uppercase; font-size: 10px; }
.section-label b { color: var(--accent); font-weight: 500; margin-right: 18px; }
.section-label > span:last-child { color: var(--muted); font-size: 9px; text-transform: none; }
.work-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 50px; padding: 46px 0 34px; }
.project-label { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 23px; }
.redsticker-mark { position: relative; display: inline-block; width: 30px; height: 30px; flex: 0 0 30px; overflow: hidden; mix-blend-mode: darken; }
.redsticker-mark img { position: absolute; top: 50%; left: 50%; width: 77px; height: 77px; max-width: none; transform: translate(-50%, -50%); }
.redsticker-mark .redsticker-logo-dark { display: none; }
[data-theme='dark'] .redsticker-mark { mix-blend-mode: lighten; }
[data-theme='dark'] .redsticker-logo-light { display: none; }
[data-theme='dark'] .redsticker-mark .redsticker-logo-dark { display: block; }
.project-status { margin-left: 8px; padding: 5px 7px; border: 1px solid var(--line); font-size: 8px; text-transform: uppercase; letter-spacing: .025em; color: var(--muted); }
.work-intro h2, .journey-heading h2 { font-size: clamp(38px, 4.8vw, 65px); font-weight: 600; letter-spacing: -.062em; line-height: 1.11; }
.work-summary { max-width: 385px; justify-self: end; padding-bottom: 2px; }
.work-summary p { color: var(--muted); font-size: 13px; margin-bottom: 11px; line-height: 1.9; }
.work-summary .text-link { color: var(--accent); }
.product-showcase { border: 1px solid var(--line); background: var(--surface); }
.showcase-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 19px; border-bottom: 1px solid var(--line); }
.view-switch { display: flex; align-items: stretch; gap: 5px; padding: 4px; background: var(--faint); }
.view-switch button { border: 0; border-radius: 0; background: transparent; padding: 11px 17px; min-height: 44px; font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.view-switch button[aria-pressed='true'] { color: var(--paper); background: var(--ink); }
.view-switch button:hover:not([aria-pressed='true']) { background: var(--line); }
.showcase-label { color: var(--muted); font-size: 9px; padding-right: 7px; }
.product-view { display: grid; grid-template-columns: .72fr 1.28fr; background: var(--faint); }
.product-context { background: var(--inverse); color: var(--inverse-ink); padding: 48px 38px 34px; display: flex; align-items: flex-start; flex-direction: column; }
.product-context > .mono { color: var(--inverse-muted); font-size: 9px; line-height: 1.8; }
.product-context h3 { margin-top: 35px; font-size: clamp(28px, 3.4vw, 43px); line-height: 1.14; letter-spacing: -.055em; font-weight: 500; max-width: 260px; }
.product-context p { max-width: 265px; color: var(--inverse-muted); font-size: 12px; line-height: 1.9; margin-top: 18px; }
.product-link { min-height: 44px; display: flex; align-items: center; gap: 17px; font-size: 10px; font-weight: 600; margin-top: 25px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--inverse-line); }
.product-link:hover { color: var(--inverse-accent); }
.product-link span { font-size: 18px; }
.product-side-note { padding-top: 42px; margin-top: auto; color: var(--inverse-muted); line-height: 1.7; font-size: 9px; }
.product-browser { padding: 45px 30px 21px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.browser-chrome { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; color: #666666; background: #fff; border: 1px solid #dedede; border-bottom: 0; border-radius: 6px 6px 0 0; font-family: var(--mono); font-size: 8px; }
.browser-dots { letter-spacing: 2px; color: #aaaaaa; font-size: 7px; }
.product-browser img { width: 100%; border: 1px solid #dedede; border-top: 0; box-shadow: 0 14px 30px #0000000d; }
.product-browser figcaption { text-align: right; color: var(--muted); font-family: var(--mono); font-size: 8px; line-height: 1.6; margin-top: 13px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 27px 32px; gap: 30px; border-top: 1px solid var(--line); }
.project-facts div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.project-facts dt { color: var(--muted); font-size: 9px; margin-bottom: 10px; text-transform: uppercase; }
.project-facts dd { font-size: 11px; line-height: 1.8; font-weight: 600; }
.system-view { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 467px; }
.system-intro { padding: 39px 32px; border-right: 1px solid var(--line); background: var(--paper); }
.system-intro > .mono { font-size: 9px; color: var(--accent); }
.system-intro h3 { font-size: 30px; letter-spacing: -.055em; line-height: 1.2; font-weight: 600; margin-top: 26px; }
.system-intro p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 17px; max-width: 260px; }
.flow-switch { display: grid; gap: 8px; margin-top: 30px; }
.flow-switch button { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 44px; border: 1px solid var(--line); padding: 11px 14px; background: transparent; font-family: var(--mono); font-size: 10px; text-align: left; }
.flow-switch button[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.flow-switch button:hover { border-color: var(--accent); }
.system-map { padding: 38px 32px 27px; background: var(--surface); }
.map-clients, .map-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.map-clients > div, .map-services > div { min-width: 0; text-align: center; border: 1px solid var(--line); background: var(--surface); padding: 14px 5px; font-size: 11px; font-weight: 700; }
.map-clients span, .map-services span { display: block; font-size: 8px; font-weight: 400; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.map-connectors { height: 34px; width: 68%; margin: 0 auto; border: 1px solid var(--line); border-top: 0; position: relative; }
.map-connectors::before { content: ''; position: absolute; top: 0; bottom: -14px; left: 50%; width: 1px; background: var(--line); }
.map-connectors i { display: block; position: absolute; width: 6px; height: 6px; background: var(--accent); left: calc(50% - 2.5px); bottom: -17px; }
.map-core { margin-top: 14px; padding: 18px 12px; color: var(--inverse-ink); background: var(--inverse); text-align: center; }
.map-core .mono { color: var(--inverse-muted); display: block; font-size: 8px; margin-bottom: 10px; }
.map-core strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.map-core p { color: var(--inverse-muted); font-size: 9px; line-height: 1.6; margin-top: 7px; }
.map-stem { height: 22px; width: 1px; margin: auto; background: var(--line); }
.map-services > div { padding-block: 13px; }
.map-services .is-highlighted { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); background: var(--accent-soft); }
.flow-explanation { margin-top: 22px; min-height: 99px; border-left: 2px solid var(--accent); background: var(--surface); padding: 13px 15px; }
.flow-explanation .mono { display: block; color: var(--accent); font-size: 9px; margin-bottom: 7px; }
.flow-explanation p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.map-foot { text-align: center; margin-top: 15px; color: var(--muted); font-size: 8px; }
.metrics-header { display: flex; justify-content: space-between; gap: 16px; margin-top: 37px; margin-bottom: 20px; color: var(--muted); font-size: 9px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 19px 26px 23px; display: flex; flex-direction: column-reverse; align-items: flex-start; }
.metrics > div:first-child { padding-left: 0; }
.metrics > div + div { border-left: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-family: var(--body); font-size: 11px; letter-spacing: -.015em; }
.metrics dd { font-family: var(--display); font-size: clamp(66px, 8.3vw, 110px); line-height: .95; letter-spacing: -.025em; font-weight: 500; margin-bottom: 12px; display: flex; align-items: flex-start; }
.metrics dd > span { font-size: .58em; margin-top: 8px; }
.metrics dd > .metric-plus { color: var(--accent); font-family: var(--body); font-weight: 400; font-size: .24em; margin: 7px 0 0 16px; }
.metric-notes { font-size: 10px; margin-top: 8px; color: var(--muted); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.metric-notes summary { display: flex; align-items: center; gap: 20px; min-height: 44px; width: fit-content; font-family: var(--mono); font-size: 9px; }
.metric-notes summary span { font-size: 16px; color: var(--accent); }
.metric-notes[open] summary span { transform: rotate(45deg); }
.metric-notes p { max-width: 850px; padding-bottom: 12px; font-size: 11px; }
.engineering-details { display: grid; grid-template-columns: .82fr 1.18fr; gap: 65px; padding-top: 66px; }
.engineering-details > div:first-child > .eyebrow { color: var(--accent); font-size: 9px; margin-bottom: 16px; }
.engineering-details h3 { font-size: clamp(28px, 3vw, 39px); font-weight: 500; letter-spacing: -.055em; line-height: 1.22; }
.engineering-details > div:first-child p { font-size: 12px; color: var(--muted); max-width: 260px; margin-top: 15px; }
.decision-list { border-top: 1px solid var(--line); }
.decision-list details { border-bottom: 1px solid var(--line); }
.decision-list summary { display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 17px; min-height: 70px; padding-block: 17px; font-size: 13px; font-weight: 600; line-height: 1.6; }
.decision-list summary > .mono { color: var(--accent); font-size: 9px; }
.detail-icon { font-size: 22px; font-weight: 400; color: var(--muted); justify-self: end; }
.decision-list details[open] .detail-icon { transform: rotate(45deg); color: var(--accent); }
.decision-list details p { padding: 0 38px 23px 41px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.fellowship-band { color: var(--ink); background: var(--section); border-block: 1px solid var(--line); }
.fellowship-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 76px 73px; }
.fellowship-heading { display: flex; flex-direction: column; align-items: flex-start; }
.fellowship-heading > .mono { font-size: 9px; color: var(--muted); text-transform: uppercase; }
.fellowship-heading h2 { font-family: var(--display); font-size: clamp(64px, 7.8vw, 106px); text-transform: uppercase; font-weight: 500; line-height: .97; letter-spacing: -.02em; margin-top: 32px; }
.fellowship-heading .text-link { margin-top: auto; padding-top: 30px; color: var(--ink); text-decoration-color: var(--line); font-size: 11px; }
.fellowship-heading .text-link:hover { color: var(--accent); }
.fellowship-amount { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 500; font-size: clamp(95px, 11.8vw, 165px); letter-spacing: -.04em; line-height: .85; }
.fellowship-amount > span:first-child { font-family: var(--mono); font-size: 21px; align-self: flex-start; margin-top: 12px; letter-spacing: -.04em; }
.fellowship-amount > .fellowship-arrow { margin-left: auto; align-self: flex-start; font-family: var(--body); font-size: 50px; font-weight: 400; line-height: 1; }
.fellowship-amount + p { font-size: 11px; color: var(--muted); margin-top: 20px; }
.fellowship-rule { height: 1px; background: var(--line); margin-block: 24px; }
.fellowship-proof h3 { font-size: 16px; letter-spacing: -.03em; font-weight: 700; margin-bottom: 12px; }
.fellowship-proof h3 + p { font-size: 12px; color: var(--muted); max-width: 400px; line-height: 1.9; }
.fellowship-proof h3 + p strong { font-weight: 700; color: var(--ink); }
.fellowship-partners { display: block; font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 19px; }
.fellowship-sources { display: flex; flex-wrap: wrap; gap: 22px; font-size: 8px; margin-top: 16px; }
.fellowship-sources a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.fellowship-band :focus-visible { outline-color: var(--accent); }
.journey-section { padding-top: 97px; padding-bottom: 103px; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-top: 50px; }
.journey-heading h2 { font-size: clamp(36px, 4vw, 54px); }
.journey-heading > p { font-size: 12px; color: var(--muted); max-width: 260px; margin-top: 24px; }
.journey-heading .text-link { margin-top: 18px; }
.journey-index { font-size: 11px; color: var(--muted); margin-top: 62px; }
.journey-index span { color: var(--accent); display: inline-block; margin-inline: 35px; }
.timeline { border-left: 1px solid var(--line); padding-left: 31px; }
.timeline-item { position: relative; padding-bottom: 33px; }
.timeline-item:not(:first-child) { padding-top: 27px; border-top: 1px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; top: 4px; left: -35px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); background: var(--paper); }
.timeline-item:not(:first-child)::before { top: 33px; }
.timeline-item.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: var(--muted); font-size: 9px; }
.timeline-tag { font-size: 8px; color: var(--accent); }
.timeline-item h3 { font-size: 22px; letter-spacing: -.045em; font-weight: 700; }
.timeline-role { font-size: 11px; margin-top: 8px; font-weight: 600; }
.timeline-item > p:not(.timeline-role) { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.9; max-width: 430px; }
.timeline-milestone { margin-top: 22px; padding: 19px 20px 11px; background: var(--accent-soft); border-left: 2px solid var(--accent); }
.timeline-milestone > .mono { font-size: 8px; color: var(--accent); }
.timeline-milestone h4 { font-size: 13px; font-weight: 700; margin-top: 10px; letter-spacing: -.025em; }
.timeline-milestone p { font-size: 10px; line-height: 1.9; margin-top: 9px; color: var(--muted); }
.timeline-milestone .text-link { color: var(--accent); font-size: 9px; margin-top: 2px; }
.timeline-item.education { padding-right: 75px; }
.degree-mark { position: absolute; right: 0; top: 67px; font-family: var(--display); font-size: 58px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.workbench-section { padding-bottom: 105px; }
.workbench-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; padding: 33px 0 28px; }
.workbench-heading h2 { font-size: clamp(37px, 4.5vw, 61px); line-height: 1.1; font-weight: 600; letter-spacing: -.055em; }
.workbench-heading p { font-size: 12px; color: var(--muted); line-height: 1.85; max-width: 430px; }
.hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.hardware-card { display: grid; grid-template-columns: 154px minmax(0, 1fr); border: 1px solid var(--line); min-height: 177px; transition: border-color .2s, background .2s; }
.hardware-card:hover { border-color: var(--accent); background: var(--surface); }
.hardware-image { position: relative; min-width: 0; overflow: hidden; background: var(--inverse); }
.hardware-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .4s ease; }
.hardware-card:hover img { transform: scale(1.045); }
.hardware-number { position: absolute; bottom: 0; left: 0; padding: 9px 10px; color: #fff; background: #141414e6; width: 100%; font-size: 7px; }
.hardware-content { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; padding: 22px 19px; min-width: 0; }
.hardware-content .mono { display: block; font-size: 7px; color: var(--muted); line-height: 1.7; }
.hardware-content h3 { font-size: 16px; letter-spacing: -.035em; line-height: 1.35; font-weight: 600; margin-top: 10px; }
.hardware-content p { font-size: 9px; line-height: 1.8; color: var(--muted); margin-top: 10px; max-width: 170px; }
.hardware-arrow { color: var(--accent); font-size: 19px; line-height: 1.3; }
.contact-section { background: var(--inverse); color: var(--inverse-ink); padding-top: 40px; }
.contact-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--inverse-muted); font-size: 9px; padding-bottom: 34px; border-bottom: 1px solid var(--inverse-line); }
.contact-top .availability i { background: var(--inverse-accent); box-shadow: 0 0 0 4px var(--inverse-line); }
.contact-headline { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 42px 0; }
.contact-headline h2 { font-family: var(--display); font-size: clamp(88px, 12.7vw, 180px); font-weight: 500; text-transform: uppercase; letter-spacing: -.025em; line-height: .9; }
.contact-headline h2 > span { color: var(--inverse-ink); }
.contact-arrow { font-size: clamp(100px, 15vw, 205px); line-height: .8; margin-right: 17px; font-weight: 400; color: var(--inverse-ink); transition: transform .25s; }
.contact-headline:hover .contact-arrow { transform: translate(8px, -8px); }
.contact-intent { max-width: 700px; margin-bottom: 20px; color: var(--inverse-muted); font-size: 18px; line-height: 1.8; }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-top: 23px; padding-bottom: 40px; }
.contact-email { display: flex; align-items: center; gap: 24px; min-height: 44px; font-size: clamp(13px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.025em; text-decoration: underline; text-decoration-color: var(--inverse-line); text-underline-offset: 8px; }
.contact-email span { color: var(--inverse-ink); }
.contact-social { display: flex; align-items: center; gap: 27px; font-size: 11px; color: var(--inverse-muted); }
.contact-social a { min-height: 44px; display: flex; align-items: center; }
.contact-social a:hover, .site-footer a:hover { color: var(--inverse-accent); }
.site-footer { border-top: 1px solid var(--inverse-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--inverse-muted); font-size: 8px; padding: 19px 0; min-height: 82px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-section :focus-visible { outline-color: var(--inverse-accent); }
@media (min-width: 1600px) { .hero { padding-top: 59px; } .hero-grid { padding-top: 60px; padding-bottom: 63px; } }
@media (max-width: 1100px) {
  .main-nav { margin-right: 10px; gap: 23px; }
  .hero-grid { gap: 45px; grid-template-columns: 1.1fr .9fr; }
  .hero h1 { font-size: clamp(84px, 12.2vw, 134px); }
  .hero-bio { font-size: 25px; }
  .hero-aside .eyebrow { font-size: 9px; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 20px; }
  .button { gap: 22px; padding-inline: 16px; }
  .product-context { padding: 34px 27px 25px; }
  .product-context h3 { margin-top: 28px; }
  .product-context p { font-size: 11px; }
  .product-browser { padding: 30px 22px 20px; }
  .product-side-note { padding-top: 29px; }
  .project-facts { padding: 24px; gap: 22px; }
  .project-facts div + div { padding-left: 22px; }
  .project-facts dd { font-size: 10px; }
  .fellowship-inner, .journey-grid, .workbench-heading { gap: 55px; }
  .system-intro { padding: 32px 25px; }
  .system-intro h3 { font-size: 27px; }
  .system-map { padding: 31px 23px 24px; }
  .engineering-details { gap: 45px; }
  .hardware-card { grid-template-columns: 116px minmax(0, 1fr); }
  .hardware-content { padding: 19px 15px; }
  .hardware-content h3 { font-size: 15px; }
  .contact-social { gap: 20px; }
}
@media (max-width: 800px) {
  .site-header { height: 88px; }
  .identity-name { display: none; }
  .main-nav { margin-right: 0; gap: 19px; }
  .header-actions { gap: 13px; }
  .header-contact { gap: 14px; }
  .hero { padding-top: 32px; padding-bottom: 34px; }
  .hero-grid { gap: 29px; padding-top: 46px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(70px, 12.2vw, 100px); }
  .hero-bio { font-size: 21px; }
  .hero-aside .eyebrow { line-height: 1.7; font-size: 8px; margin-bottom: 13px; }
  .hero-description { font-size: 11px; margin-top: 14px; }
  .hero-actions { gap: 15px; margin-top: 21px; }
  .button { font-size: 10px; gap: 16px; min-height: 46px; padding-inline: 12px; }
  .hero-actions .text-link { font-size: 10px; gap: 8px; }
  .work-section { padding-top: 57px; padding-bottom: 66px; }
  .work-intro { grid-template-columns: 1fr 1fr; gap: 30px; }
  .work-intro h2 { font-size: 42px; }
  .work-summary p { font-size: 11px; }
  .product-view, .system-view { grid-template-columns: .78fr 1.22fr; }
  .product-context { padding: 28px 22px; }
  .product-context h3 { font-size: 29px; }
  .product-context > .mono { font-size: 8px; }
  .product-link { font-size: 9px; gap: 9px; }
  .product-side-note { font-size: 8px; }
  .product-browser { padding: 25px 17px 17px; }
  .browser-chrome { font-size: 6px; padding: 10px; gap: 7px; }
  .browser-dots { letter-spacing: 1px; font-size: 5px; }
  .product-browser figcaption { font-size: 7px; }
  .showcase-toolbar { padding: 10px 12px; }
  .showcase-label { font-size: 7px; }
  .view-switch button { padding-inline: 12px; font-size: 9px; }
  .project-facts { padding: 21px 20px; gap: 16px; }
  .project-facts div + div { padding-left: 16px; }
  .project-facts dt { font-size: 8px; }
  .project-facts dd { font-size: 9px; }
  .metrics > div { padding-inline: 17px; }
  .metrics dt { font-size: 9px; }
  .metrics dd { font-size: 72px; }
  .engineering-details { gap: 33px; padding-top: 44px; }
  .engineering-details h3 { font-size: 29px; }
  .engineering-details > div:first-child p { font-size: 11px; }
  .decision-list summary { font-size: 11px; grid-template-columns: 19px 1fr 15px; gap: 10px; }
  .decision-list details p { padding-left: 29px; padding-right: 17px; font-size: 10px; }
  .system-view { min-height: 440px; }
  .system-intro { padding: 27px 20px; }
  .system-intro h3 { font-size: 23px; }
  .system-intro p { font-size: 10px; }
  .system-intro > .mono { font-size: 8px; }
  .flow-switch button { font-size: 9px; }
  .system-map { padding: 27px 16px 20px; }
  .map-clients, .map-services { gap: 7px; }
  .map-clients > div, .map-services > div { font-size: 9px; padding-inline: 3px; }
  .map-clients span, .map-services span { font-size: 7px; }
  .map-core strong { font-size: 14px; }
  .map-core p { font-size: 8px; }
  .flow-explanation p { font-size: 9px; }
  .fellowship-inner { padding-block: 58px; gap: 38px; }
  .fellowship-heading h2 { font-size: 70px; }
  .fellowship-heading .text-link { font-size: 10px; }
  .fellowship-proof h3 { font-size: 14px; }
  .fellowship-proof h3 + p { font-size: 11px; }
  .fellowship-amount { font-size: 110px; }
  .fellowship-amount > .fellowship-arrow { font-size: 36px; }
  .journey-section { padding-block: 70px; }
  .journey-grid { grid-template-columns: .85fr 1.15fr; gap: 35px; padding-top: 42px; }
  .journey-heading h2 { font-size: 37px; }
  .journey-heading > p { font-size: 11px; }
  .timeline { padding-left: 22px; }
  .timeline-item::before { left: -26px; }
  .timeline-meta { font-size: 8px; }
  .timeline-tag { font-size: 7px; }
  .timeline-item h3 { font-size: 21px; }
  .timeline-role, .timeline-item > p:not(.timeline-role) { font-size: 10px; }
  .timeline-milestone { padding-inline: 15px; }
  .timeline-milestone p { font-size: 9px; }
  .timeline-item.education { padding-right: 55px; }
  .degree-mark { font-size: 46px; }
  .workbench-section { padding-bottom: 70px; }
  .workbench-heading { gap: 35px; }
  .workbench-heading p { font-size: 11px; }
  .hardware-grid { gap: 15px; }
  .hardware-card { grid-template-columns: 95px minmax(0, 1fr); }
  .hardware-content { padding: 16px 12px; gap: 4px; }
  .hardware-content h3 { font-size: 13px; }
  .hardware-content p { font-size: 8px; }
  .hardware-content .mono { font-size: 6px; }
  .hardware-arrow { font-size: 16px; }
  .hardware-number { padding: 8px; font-size: 6px; }
  .contact-top { font-size: 8px; }
  .contact-headline { padding-block: 34px; }
  .contact-headline h2 { font-size: 106px; }
  .contact-arrow { font-size: 120px; margin-right: 0; }
  .contact-email { font-size: 14px; gap: 12px; }
  .contact-social { gap: 16px; font-size: 9px; }
  .site-footer { font-size: 7px; }
}
@media (max-width: 620px) {
  :root { --page-gutter: 22px; }
  .site-header { height: 80px; gap: 15px; }
  .monogram { font-size: 30px; }
  .main-nav { display: none; }
  .header-actions { gap: 17px; }
  .header-contact { font-size: 11px; gap: 15px; }
  .theme-toggle { width: 44px; height: 44px; }
  .hero { padding-top: 27px; padding-bottom: 32px; }
  .hero-top { font-size: 8px; gap: 10px; }
  .hero-location { display: none; }
  .availability { gap: 9px; }
  .hero-grid { display: block; padding-top: 42px; padding-bottom: 29px; }
  .hero h1 { font-size: clamp(68px, 22.5vw, 134px); letter-spacing: -.025em; line-height: .91; }
  .hero-aside { padding: 47px 0 0; max-width: 480px; }
  .hero-aside .eyebrow { font-size: 8px; margin-bottom: 13px; }
  .hero-bio { font-size: 24px; max-width: 420px; line-height: 1.42; letter-spacing: -.045em; }
  .hero-description { margin-top: 17px; font-size: 12px; max-width: 355px; line-height: 1.8; }
  .hero-actions { margin-top: 23px; gap: 27px; }
  .button { min-height: 49px; font-size: 10px; padding-inline: 18px; gap: 36px; }
  .hero-actions .text-link { font-size: 11px; gap: 14px; }
  .work-section { padding-top: 44px; padding-bottom: 55px; }
  .section-label { font-size: 9px; padding-top: 13px; align-items: flex-start; }
  .section-label b { margin-right: 10px; }
  .section-label > span:last-child { font-size: 7px; line-height: 1.7; max-width: 130px; text-align: right; }
  .work-intro { display: block; padding: 31px 0 26px; }
  .project-label { font-size: 16px; gap: 10px; margin-bottom: 20px; }
  .project-status { font-size: 7px; margin-left: 4px; }
  .work-intro h2 { font-size: 45px; letter-spacing: -.06em; }
  .work-summary { margin-top: 22px; max-width: 430px; }
  .work-summary p { font-size: 12px; line-height: 1.85; margin-bottom: 5px; }
  .work-summary .text-link { font-size: 11px; }
  .showcase-toolbar { padding: 9px; }
  .view-switch { width: 100%; gap: 4px; }
  .view-switch button { flex: 1; font-size: 8px; padding-inline: 8px; min-height: 44px; }
  .showcase-label { display: none; }
  .product-view { display: flex; flex-direction: column; }
  .product-context { padding: 28px 24px 24px; }
  .product-context > .mono { font-size: 8px; }
  .product-context h3 { max-width: none; font-size: 34px; margin-top: 21px; }
  .product-context p { max-width: 350px; font-size: 11px; margin-top: 13px; }
  .product-link { margin-top: 14px; font-size: 9px; gap: 18px; }
  .product-side-note { display: none; }
  .product-browser { padding: 25px 16px 16px; }
  .browser-chrome { font-size: 7px; padding: 11px 10px; }
  .browser-dots { font-size: 6px; }
  .product-browser figcaption { font-size: 7px; text-align: left; }
  .project-facts { grid-template-columns: 1fr; padding: 7px 22px; gap: 0; }
  .project-facts > div { display: grid; grid-template-columns: 80px 1fr; gap: 15px; padding-block: 17px; align-items: start; }
  .project-facts div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .project-facts dt { margin: 3px 0 0; font-size: 7px; }
  .project-facts dd { font-size: 10px; }
  .system-view { display: block; }
  .system-intro { border-right: 0; border-bottom: 1px solid var(--line); padding: 27px 23px 24px; }
  .system-intro h3 { font-size: 29px; margin-top: 19px; }
  .system-intro p { font-size: 11px; max-width: 330px; margin-top: 13px; }
  .flow-switch { display: flex; gap: 6px; margin-top: 22px; }
  .flow-switch button { font-size: 7px; min-width: 0; flex: 1; padding-inline: 7px; gap: 3px; }
  .flow-switch button span { font-size: 12px; }
  .system-map { padding: 27px 16px 23px; }
  .map-clients > div, .map-services > div { font-size: 9px; }
  .map-core strong { font-size: 15px; }
  .map-core p { font-size: 8px; }
  .flow-explanation { min-height: 104px; }
  .flow-explanation p { font-size: 10px; }
  .map-foot { font-size: 7px; }
  .metrics-header { font-size: 7px; margin-top: 26px; margin-bottom: 16px; line-height: 1.7; }
  .metrics-header > span:last-child { text-align: right; max-width: 133px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { padding: 20px 19px; }
  .metrics > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metrics dd { font-size: 79px; }
  .metrics dt { font-size: 9px; }
  .metrics dd > .metric-plus { margin-left: 12px; }
  .metric-notes summary { font-size: 8px; }
  .metric-notes p { font-size: 10px; }
  .engineering-details { display: block; padding-top: 29px; }
  .engineering-details h3 { font-size: 31px; }
  .engineering-details > div:first-child > .eyebrow { font-size: 8px; }
  .engineering-details > div:first-child p { font-size: 11px; max-width: 310px; margin-top: 14px; }
  .decision-list { margin-top: 27px; }
  .decision-list summary { font-size: 11px; min-height: 64px; gap: 11px; grid-template-columns: 18px 1fr 15px; }
  .decision-list details p { font-size: 10px; padding-left: 29px; padding-right: 9px; }
  .fellowship-inner { display: block; padding-block: 41px 37px; }
  .fellowship-heading > .mono { font-size: 8px; }
  .fellowship-heading h2 { font-size: 78px; margin-top: 25px; }
  .fellowship-heading .text-link { margin-top: 18px; padding-top: 0; font-size: 10px; }
  .fellowship-proof { margin-top: 39px; padding-top: 32px; border-top: 1px solid var(--line); }
  .fellowship-amount { font-size: 140px; }
  .fellowship-amount > span:first-child { font-size: 19px; }
  .fellowship-amount > .fellowship-arrow { font-size: 42px; }
  .fellowship-amount + p { font-size: 10px; margin-top: 17px; }
  .fellowship-rule { margin-block: 25px; }
  .fellowship-proof h3 { font-size: 16px; }
  .fellowship-proof h3 + p { font-size: 12px; }
  .fellowship-partners { font-size: 9px; }
  .fellowship-sources { font-size: 7px; gap: 25px; margin-top: 12px; }
  .journey-section { padding-block: 55px 62px; }
  .journey-grid { display: block; padding-top: 30px; }
  .journey-heading h2 { font-size: 42px; }
  .journey-heading > p { font-size: 12px; max-width: 280px; margin-top: 19px; }
  .journey-heading .text-link { margin-top: 10px; font-size: 11px; }
  .journey-index { display: none; }
  .timeline { margin: 35px 0 0 4px; padding-left: 23px; }
  .timeline-item { padding-bottom: 27px; }
  .timeline-item::before { left: -27px; }
  .timeline-meta { font-size: 8px; }
  .timeline-tag { font-size: 7px; }
  .timeline-item h3 { font-size: 22px; }
  .timeline-role { font-size: 10px; }
  .timeline-item > p:not(.timeline-role) { font-size: 11px; line-height: 1.85; }
  .timeline-milestone { margin-top: 20px; padding: 17px 15px 8px; }
  .timeline-milestone p { font-size: 10px; }
  .timeline-milestone .text-link { font-size: 9px; }
  .timeline-item.education { padding-right: 53px; }
  .degree-mark { font-size: 48px; }
  .workbench-section { padding-bottom: 53px; }
  .workbench-heading { display: block; padding: 29px 0 23px; }
  .workbench-heading h2 { font-size: 44px; }
  .workbench-heading p { margin-top: 17px; font-size: 12px; max-width: 380px; }
  .hardware-grid { grid-template-columns: 1fr; gap: 12px; }
  .hardware-card { grid-template-columns: 107px minmax(0, 1fr); min-height: 160px; }
  .hardware-content { padding: 18px 16px; gap: 10px; }
  .hardware-content .mono { font-size: 7px; }
  .hardware-content h3 { font-size: 15px; }
  .hardware-content p { font-size: 9px; }
  .hardware-arrow { font-size: 18px; }
  .hardware-number { font-size: 6px; padding: 9px 8px; }
  .contact-section { padding-top: 28px; }
  .contact-top { font-size: 7px; padding-bottom: 24px; }
  .contact-top > span:last-child { display: none; }
  .contact-headline { align-items: flex-start; padding-block: 32px 25px; gap: 8px; }
  .contact-headline h2 { font-size: clamp(79px, 20.5vw, 116px); line-height: .93; }
  .contact-arrow { font-size: clamp(50px, 14vw, 80px); margin-top: 8px; }
  .contact-bottom { display: block; padding-top: 0; padding-bottom: 26px; }
  .contact-intent { font-size: 16px; margin-bottom: 27px; }
  .contact-email { font-size: 13px; gap: 12px; letter-spacing: -.03em; text-underline-offset: 6px; width: fit-content; }
  .contact-social { font-size: 10px; gap: 28px; margin-top: 13px; }
  .site-footer { gap: 12px; font-size: 7px; padding-block: 12px; min-height: 69px; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 359px) {
  :root { --page-gutter: 17px; }
  .hero h1 { font-size: clamp(68px, 22.5vw, 81px); }
  .hero-bio { font-size: 22px; }
  .hero-actions { gap: 18px; }
  .button { gap: 26px; padding-inline: 14px; }
  .work-intro h2 { font-size: 40px; }
  .section-label > span:last-child { font-size: 6px; max-width: 116px; }
  .product-context { padding-inline: 20px; }
  .product-context h3 { font-size: 30px; }
  .browser-chrome { font-size: 6px; }
  .project-facts { padding-inline: 17px; }
  .project-facts > div { grid-template-columns: 71px 1fr; gap: 11px; }
  .project-facts dd { font-size: 9px; }
  .system-map { padding-inline: 11px; }
  .map-clients, .map-services { gap: 5px; }
  .map-clients > div, .map-services > div { font-size: 8px; }
  .map-clients span, .map-services span { font-size: 6px; }
  .map-core strong { font-size: 14px; }
  .fellowship-heading h2 { font-size: 70px; }
  .fellowship-amount { font-size: 126px; }
  .fellowship-amount > .fellowship-arrow { font-size: 35px; }
  .journey-heading h2 { font-size: 37px; }
  .timeline-meta { font-size: 7px; }
  .timeline-tag { font-size: 6px; }
  .timeline-item.education { padding-right: 47px; }
  .timeline-item.education h3 { font-size: 20px; }
  .degree-mark { font-size: 43px; }
  .hardware-card { grid-template-columns: 91px minmax(0, 1fr); }
  .hardware-content { padding-inline: 12px; gap: 5px; }
  .hardware-content h3 { font-size: 14px; }
  .hardware-content .mono { font-size: 6px; }
  .contact-headline h2 { font-size: 75px; }
  .contact-arrow { font-size: 47px; }
  .contact-email { font-size: 11px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep the editorial hierarchy readable at everyday screen sizes. */
.hero-description, .work-summary p, .product-context p, .system-intro p,
.flow-explanation p, .metric-notes p, .engineering-details > div:first-child p,
.decision-list details p, .journey-heading > p, .timeline-item > p:not(.timeline-role),
.timeline-milestone p, .workbench-heading p, .fellowship-proof h3 + p {
  font-size: 14px;
  line-height: 1.8;
}
.timeline-role, .project-facts dd { font-size: 13px; }
.decision-list summary { font-size: 14px; }
.timeline-milestone h4 { font-size: 16px; }
.fellowship-partners, .fellowship-amount + p, .hardware-content p { font-size: 12px; }
.timeline-meta, .timeline-tag, .timeline-milestone > .mono,
.fellowship-sources, .fellowship-heading > .mono, .project-facts dt,
.hardware-content .mono, .hardware-number, .product-context > .mono,
.system-intro > .mono, .hero-top, .hero-aside .eyebrow,
.engineering-details > div:first-child > .eyebrow { font-size: 10px; }
.text-link, .timeline-milestone .text-link, .fellowship-heading .text-link,
.work-summary .text-link, .product-link { font-size: 12px; }
.view-switch button, .flow-switch button { font-size: 11px; }
.metric-notes summary, .metrics dt { font-size: 12px; }
.metrics-header, .product-browser figcaption,
.section-label > span:last-child, .contact-social, .site-footer { font-size: 10px; }
.hardware-content p { max-width: 220px; }
@media (max-width: 620px) {
  .site-header { display: grid; grid-template-columns: auto 1fr; height: auto; min-height: 115px; gap: 4px 15px; padding-top: 12px; }
  .identity { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .main-nav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 12px; margin: 0; border-top: 1px solid var(--line); padding-top: 2px; }
  .main-nav a { font-size: 11px; }
  .section-label > span:last-child { font-size: 9px; }
  .view-switch button { font-size: 10px; }
  .flow-switch button { font-size: 9px; padding-inline: 6px; }
  .hardware-content { padding: 16px 12px; }
  .hardware-content .mono, .hardware-number { font-size: 9px; }
  .hardware-card { grid-template-columns: 97px minmax(0, 1fr); }
  .hardware-arrow { flex-shrink: 0; }
  .metrics-header { font-size: 9px; }
  .site-footer { font-size: 9px; }
  .contact-top { font-size: 9px; }
}

/* Neutral surfaces carry the hierarchy; color is reserved for useful signals. */
.identity-dot, .period { color: var(--ink); }
.hero-aside .eyebrow, .section-label b, .timeline-tag,
.engineering-details > div:first-child > .eyebrow { color: var(--muted); }
.hero-bio em { text-decoration: none; }
.fellowship-arrow, .contact-arrow { color: var(--muted); }
.contact-arrow { color: var(--inverse-muted); }
.fellowship-proof { border-color: var(--line); }

/* Two real interfaces tell the product story together. */
.product-gallery { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
.product-story { min-width: 0; padding: 30px; display: flex; flex-direction: column; }
.customer-story { background: var(--faint); }
.staff-story { border-left: 1px solid var(--line); }
.product-story-heading > .mono { font-size: 10px; color: var(--muted); }
.product-story-heading h3 { margin-top: 14px; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.25; font-weight: 500; letter-spacing: -.045em; }
.product-story-heading p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.customer-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 17px; margin-top: 30px; }
.customer-screens figure { min-width: 0; }
.customer-screens figure:nth-child(2) { padding-top: 26px; }
.phone-screen { display: block; overflow: hidden; border: 1px solid #d7d7d7; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px #0000000a; transition: transform .2s; }
.phone-screen:hover { transform: translateY(-3px); }
.phone-screen img { display: block; width: 100%; }
.customer-screens figcaption { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.6; margin-top: 12px; }
.customer-screens figcaption span { color: var(--accent); }
.calendar-screen { margin-block: auto; padding-block: 30px 20px; }
.calendar-screen > a { display: block; border: 1px solid #d7d7d7; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px #0000000a; }
.calendar-screen img { width: 100%; }
.calendar-screen figcaption { color: var(--muted); font-size: 9px; line-height: 1.6; margin-top: 12px; }
.product-story-footer { margin-top: auto; padding-top: 23px; }
.product-story-footer p { color: var(--muted); font-size: 9px; line-height: 1.7; }
.product-story-footer .text-link { margin-top: 3px; }
@media (max-width: 1100px) {
  .product-story { padding: 25px 22px; }
  .product-gallery { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .customer-screens { gap: 12px; }
}
@media (max-width: 800px) {
  .product-gallery { grid-template-columns: 1fr; }
  .product-story { padding: 28px; }
  .staff-story { border-left: 0; border-top: 1px solid var(--line); }
  .customer-screens { max-width: 420px; align-self: center; width: 100%; gap: 24px; }
  .product-story-heading h3 { font-size: 29px; }
}
@media (max-width: 620px) {
  .product-story { padding: 25px 20px 20px; }
  .product-story-heading h3 { font-size: 27px; }
  .product-story-heading p { font-size: 13px; }
  .customer-screens { gap: 12px; margin-top: 25px; }
  .customer-screens figure:nth-child(2) { padding-top: 20px; }
  .phone-screen { border-radius: 12px; }
  .customer-screens figcaption { font-size: 9px; }
  .product-story-footer { padding-top: 20px; }
  .calendar-screen { padding-top: 25px; padding-bottom: 0; }
}

/* Phone layouts preserve readable labels and the complete hardware setup. */
@media (max-width: 620px) {
  .flow-switch { display: grid; grid-template-columns: 1fr; }
  .flow-switch button { font-size: 11px; padding-inline: 10px; }
  .map-clients > div, .map-services > div { font-size: 11px; line-height: 1.5; }
  .map-clients span, .map-services span { font-size: 10px; }
  .map-core .mono, .map-foot { font-size: 10px; line-height: 1.6; }
  .map-core strong { font-size: 17px; }
  .map-core p { font-size: 12px; }
  .customer-screens figcaption, .calendar-screen figcaption,
  .product-story-footer p { font-size: 11px; }
  .hardware-card { grid-template-columns: minmax(0, 1fr); }
  .hardware-image { aspect-ratio: 595 / 325; }
  .hardware-image img { object-fit: contain; }
  .hardware-content { padding: 20px; gap: 16px; }
  .hardware-content h3 { font-size: 19px; }
  .hardware-content p { font-size: 14px; max-width: none; }
  .hardware-content .mono, .hardware-number { font-size: 10px; }
  .contact-email { font-size: 14px; overflow-wrap: anywhere; }
  .contact-social { font-size: 12px; }
}
