/* Mahmood AI Studio — presentation styles. No runtime CSS dependencies. */
:root {
  --paper: #ffffff;
  --white: #fff;
  --ink: #171717;
  --muted: #626262;
  --accent: #171717;
  --line: #dedede;
  --tint: #f6f6f6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #e5e5e5; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }
button, h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: 1.06; }
h2 { font-size: clamp(36px, 3.7vw, 53px); }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; font-weight: 500; }
em { font-weight: 400; color: var(--accent); }
ul, ol { padding: 0; margin: 0; list-style: none; }
.container { width: min(1280px, calc(100% - 112px)); margin: 0 auto; }
.section { padding: 112px 0; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand-logo { width: 216px; height: 72px; object-fit: contain; filter: grayscale(1); }
.desktop-nav { display: flex; gap: 30px; align-items: center; margin-left: auto; margin-right: 22px; }
.desktop-nav a, .footer-top nav a { font-size: 12px; color: #4e4e4e; transition: color .2s; }
.desktop-nav a:hover, .footer-top a:hover, .mobile-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 23px; min-height: 54px; font-size: 12px; font-weight: 500; line-height: 1.4; border: 1px solid transparent; transition: background .2s, transform .2s, box-shadow .2s; border-radius: 2px; }
.button svg, .text-link svg, .footer-contact svg { width: 19px; height: 19px; flex: 0 0 19px; transition: transform .2s; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: #333333; box-shadow: 0 4px 12px #0000000d; transform: translateY(-1px); }
.button:hover svg, .text-link:hover svg { transform: translateX(3px); }
.header-booking { padding: 13px 18px; min-height: 45px; font-size: 11px; gap: 12px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; width: 44px; height: 44px; padding: 12px; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 14px; }
.hero { padding-top: 43px; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-meta .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: .1em; }
.accent-line { width: 24px; height: 1px; display: inline-block; background: var(--accent); }
.studio-note { font: 9px/1.5 monospace; color: var(--muted); letter-spacing: .08em; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 35px; align-items: center; padding: 54px 0 62px; }
.hero-copy h1 { font-size: clamp(58px, 5.7vw, 84px); }
.hero-copy h1 em { white-space: nowrap; }
.hero-description { max-width: 530px; color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 26px; }
.hero-actions { display: flex; gap: 27px; align-items: center; margin-top: 31px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--ink); line-height: 1.3; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-small { font-size: 10px; color: var(--muted); margin-top: 16px; }
.hero-art { width: 100%; max-width: 430px; justify-self: end; }
.hero-footnote { border-top: 1px solid var(--line); padding: 21px 0; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; letter-spacing: .07em; }
.hero-footnote a { letter-spacing: 0; font-size: 11px; display: flex; align-items: center; gap: 18px; }
.hero-footnote a:hover { color: var(--accent); }
.services { background: var(--white); position: relative; border-top: 1px solid var(--line); }
.anchor-alias { position: absolute; top: 0; scroll-margin-top: 108px; }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin-top: 18px; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 315px; padding-bottom: 4px; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); }
.service-card { padding: 29px 24px 25px; position: relative; }
.service-card + .service-card { border-left: 1px solid var(--line); }
.service-index { position: absolute; top: 26px; right: 22px; color: var(--muted); font: 10px/1.5 monospace; }
.service-card > svg { width: 34px; height: 34px; margin-bottom: 43px; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 15px; font-size: 17px; }
.service-card p { font-size: 12px; color: var(--muted); line-height: 1.85; }
.service-detail { display: block; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 9px; color: #555555; }
.services-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 35px; }
.services-cta p { font-size: 13px; color: var(--muted); }
.services-cta strong { color: var(--ink); font-weight: 400; }
/* Preserve the original full-width project presentation and desktop ordering. */
.projects-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy visual"; align-items: center; gap: 48px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.product-card:nth-child(3), .product-card:nth-child(5) { grid-template-areas: "visual copy"; }
.project-visual { grid-area: visual; background: #fafafa; min-width: 0; min-height: 306px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 16px; }
.diagram-caption { margin-top: 16px; text-align: center; font: 8px/1.5 monospace; letter-spacing: .08em; color: var(--muted); }
.project-copy { grid-area: copy; min-width: 0; padding: 8px 0; }
.project-copy .eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .11em; margin-bottom: 15px; }
.project-copy h3 { font-family: var(--serif); font-size: 34px; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 19px; }
.project-copy > p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.85; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.project-tags li { border: 1px solid var(--line); padding: 5px 9px; font-size: 10px; color: #555555; }
.work-note { margin-top: 32px; font-size: 11px; text-align: center; color: var(--muted); }
.work-note a { border-bottom: 1px solid #888888; color: var(--ink); margin-left: 4px; padding-bottom: 3px; white-space: nowrap; }
.work-note a:hover { color: var(--accent); }
.process { background: #f5f5f5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 36px; }
.process-grid li { border-top: 1px solid #b0b0b0; padding-top: 17px; }
.process-number { display: flex; justify-content: space-between; color: #595959; font: 10px/1.5 monospace; margin-bottom: 37px; }
.process-number span { font-size: 20px; line-height: 1; }
.process-grid h3 { font-family: var(--serif); font-size: 29px; margin-bottom: 13px; }
.process-grid p { font-size: 12px; color: #595959; line-height: 1.85; }
.studio { background: var(--white); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.studio h2 { margin-top: 18px; }
.studio-intro { margin-top: 27px; color: var(--muted); font-size: 14px; max-width: 400px; line-height: 1.85; }
.studio .text-link { margin-top: 25px; }
.principles article { display: flex; gap: 27px; border-top: 1px solid var(--line); padding: 23px 0; }
.principles article:last-child { padding-bottom: 0; }
.principles article > span { font: 10px/1.5 monospace; color: var(--accent); padding-top: 4px; }
.principles h3 { font-size: 16px; margin-bottom: 8px; }
.principles p { font-size: 12px; color: var(--muted); line-height: 1.85; max-width: 360px; }
.final-cta { background: #111111; color: #ffffff; padding: 88px 0 78px; text-align: center; }
.final-cta .eyebrow { color: #c7c7c7; font-size: 9px; }
.final-cta h2 { font-size: clamp(46px, 5.6vw, 76px); margin: 25px 0; }
.final-cta h2 em { color: #d5d5d5; }
.final-cta p:not(.eyebrow, .consultation-note) { color: #d6d6d6; font-size: 13px; line-height: 1.9; }
.final-cta .button { margin-top: 29px; background: #ffffff; color: #111111; border-color: #ffffff; }
.final-cta .button:hover { background: #e8e8e8; border-color: #e8e8e8; }
.final-cta .button:focus-visible { outline-color: #ffffff; }
.consultation-note { font-size: 9px; color: #c7c7c7; margin-top: 14px; }
.site-footer { background: var(--paper); padding-top: 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 45px; padding-bottom: 43px; }
.footer-top .brand-logo { width: 186px; height: 62px; }
.footer-top > div:first-child p { color: var(--muted); font-size: 11px; margin-top: 11px; }
.footer-top nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 35px; align-content: center; }
.footer-contact { align-self: center; }
.footer-contact > a { font-size: 13px; display: flex; gap: 15px; align-items: center; }
.footer-contact > div { margin-top: 12px; display: flex; gap: 22px; font-size: 10px; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding: 19px 0 23px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }
.footer-bottom a:hover { color: var(--accent); }
@media (min-width: 1550px) { .hero-grid { padding-top: 70px; padding-bottom: 80px; } }
@media (max-width: 1150px) {
  .product-card { gap: 30px; padding: 28px; }
  .project-copy h3 { font-size: 30px; }
  .project-visual { padding-left: 14px; padding-right: 14px; }
  .container { width: calc(100% - 72px); }
  .desktop-nav { gap: 22px; margin-right: 0; }
  .header-inner { gap: 24px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 16px; }
  .hero-copy h1 { font-size: clamp(52px,5.8vw,68px); }
  .hero-actions { gap: 20px; }
  .hero-actions .button { padding-left: 17px; padding-right: 17px; gap: 10px; }
  .hero-actions .text-link { gap: 8px; font-size: 11px; }
  .service-card { padding: 25px 18px; }
  .service-card h3 { font-size: 16px; min-height: 44px; }
  .service-detail { font-size: 8px; }
  .studio-grid { gap: 65px; }
}
@media (max-width: 1023px) {
  .product-card, .product-card:nth-child(3), .product-card:nth-child(5) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual"; gap: 24px; }
  .project-visual { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .header-inner { height: 84px; }
  .brand-logo { width: 162px; height: 54px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-meta .eyebrow { font-size: 8px; }
  .studio-note { display: none; }
  .hero-grid { padding-top: 43px; padding-bottom: 48px; }
  .hero-copy h1 { font-size: clamp(46px,6.4vw,58px); }
  .hero-description { font-size: 13px; }
  .hero-actions { flex-wrap: wrap; gap: 10px 24px; }
  .hero-small { max-width: 260px; }
  .hero-art { margin-top: 0; }
  .section-heading { gap: 30px; }
  .section-heading > p { max-width: 255px; font-size: 12px; }
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-card { padding: 28px; }
  .service-card:nth-child(3) { border-left: 0; }
  .service-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service-card h3 { min-height: 0; font-size: 18px; }
  .service-card > svg { margin-bottom: 30px; }
  .service-detail { font-size: 9px; }
  .services-cta { gap: 25px; }
  .services-cta p { font-size: 11px; }
  .services-cta .button { flex-shrink: 0; padding: 15px 17px; font-size: 11px; }
  .process-grid { gap: 24px; }
  .process-grid p { font-size: 11px; }
  .process-grid h3 { font-size: 25px; }
  .studio-grid { gap: 45px; }
  .studio-intro { font-size: 13px; }
  .footer-top { flex-wrap: wrap; gap: 30px; }
}
@media (max-width: 640px) {
  .projects-grid { gap: 24px; }
  .product-card { padding: 23px; gap: 22px; }
  .project-copy h3 { font-size: 28px; }
  .project-copy > p:not(.eyebrow) { font-size: 13px; }
  .project-visual { min-height: 0; padding: 16px; }
  .project-tags li { font-size: 9px; }
  html { scroll-padding-top: 95px; }
  .container { width: calc(100% - 40px); }
  .section { padding: 63px 0; }
  h2 { font-size: 36px; }
  .header-inner { height: 78px; gap: 9px; }
  .brand-logo { width: 124px; height: 42px; }
  .header-actions { gap: 9px; }
  .header-booking { font-size: 10px; padding: 10px 11px; min-height: 44px; max-width: 146px; text-align: center; line-height: 1.3; gap: 0; }
  .header-booking svg { display: none; }
  .menu-toggle { width: 38px; height: 41px; padding: 9px; }
  .hero { padding-top: 29px; }
  .hero-meta .eyebrow { font-size: 7px; letter-spacing: .07em; gap: 8px; }
  .accent-line { width: 15px; }
  .hero-grid { display: block; padding: 32px 0 27px; }
  .hero-copy h1 { font-size: clamp(40px, 9.1vw, 59px); letter-spacing: -.055em; }
  .hero-description { font-size: 14px; line-height: 1.85; margin-top: 23px; max-width: 470px; }
  .hero-actions { margin-top: 26px; gap: 13px 23px; }
  .hero-actions .button { font-size: 11px; padding: 15px 18px; gap: 18px; }
  .hero-actions .text-link { font-size: 11px; }
  .hero-small { font-size: 9px; max-width: none; margin-top: 12px; }
  .hero-art { width: 100%; max-width: 430px; margin: 34px auto 0; }
  .hero-footnote { padding: 18px 0; }
  .hero-footnote > span { font-size: 7px; letter-spacing: .025em; max-width: 150px; }
  .hero-footnote a { font-size: 9px; gap: 9px; }
  .section-heading { display: block; margin-bottom: 31px; }
  .section-heading h2 { margin-top: 16px; }
  .section-heading > p { max-width: 400px; margin-top: 21px; font-size: 13px; }
  .eyebrow { font-size: 9px; }
  .service-card { padding: 24px 18px; }
  .service-card > svg { width: 29px; height: 29px; margin-bottom: 29px; }
  .service-index { top: 21px; right: 16px; font-size: 8px; }
  .service-card h3 { font-size: 16px; min-height: 44px; margin-bottom: 12px; }
  .service-card p { font-size: 11px; line-height: 1.8; }
  .service-detail { font-size: 8px; margin-top: 20px; padding-top: 14px; line-height: 1.7; }
  .services-cta { flex-direction: column; align-items: start; gap: 20px; margin-top: 27px; }
  .services-cta p { font-size: 12px; }
  .services-cta .button { font-size: 12px; padding: 16px 22px; }
  .work-note { font-size: 11px; line-height: 2.1; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px 27px; }
  .process-number { margin-bottom: 23px; }
  .process-grid h3 { font-size: 27px; }
  .process-grid p { font-size: 12px; }
  .studio-grid { grid-template-columns: 1fr; gap: 36px; }
  .studio-intro { margin-top: 22px; font-size: 14px; }
  .studio .text-link { margin-top: 19px; }
  .principles article { gap: 23px; }
  .principles h3 { font-size: 17px; }
  .principles p { font-size: 13px; }
  .final-cta { padding: 65px 0 59px; }
  .final-cta h2 { font-size: clamp(38px,9.5vw,54px); }
  .final-cta .eyebrow { font-size: 8px; }
  .final-cta p:not(.eyebrow, .consultation-note) { font-size: 12px; }
  .final-cta .button { font-size: 12px; }
  .site-footer { padding-top: 31px; }
  .footer-top { gap: 29px; flex-direction: column; padding-bottom: 32px; }
  .footer-top .brand-logo { width: 168px; height: 56px; }
  .footer-top > div:first-child p { margin-top: 8px; }
  .footer-top nav { gap: 13px 24px; max-width: 300px; }
  .footer-contact { align-self: start; }
  .footer-bottom { font-size: 8px; }
}
@media (max-width: 359px) {
  .product-card { padding: 20px; }
  .project-visual { padding: 12px; }
  .container { width: calc(100% - 32px); }
  .brand-logo { width: 104px; height: 35px; }
  .header-actions { gap: 6px; }
  .header-booking { font-size: 9px; padding: 10px 8px; max-width: 128px; }
  .menu-toggle { width: 34px; }
  .hero-meta .eyebrow { font-size: 6px; }
  .hero-copy h1 { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card + .service-card { border-left: 0; border-top: 1px solid var(--line); }
  .service-card h3 { min-height: 0; }
  .service-card > svg { margin-bottom: 23px; }
}
/* Aligned vector workflows: real text, crisp routes, and controllable motion. */
.diagram-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; }
.diagram-toolbar > span { font: 8px/1.5 monospace; letter-spacing: .06em; color: #626262; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: end; flex: 0 0 auto; gap: 5px; min-height: 32px; padding: 5px 0 5px 5px; border: 0; background: transparent; color: #626262; font-size: 9px; cursor: pointer; }
.motion-toggle:hover { color: #171717; }
.motion-toggle:disabled { cursor: default; color: #777777; }
.motion-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.motion-play { display: none; }
.motion-paused .motion-pause { display: none; }
.motion-paused .motion-play { display: inline; }
html:not(.js) .motion-toggle { display: none; }
.workflow { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1.1fr) 26px minmax(0, 1fr); align-items: end; width: 100%; max-width: 560px; margin: 14px auto 0; }
.workflow-column { min-width: 0; }
.workflow-step { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; font: 8px/1.5 monospace; letter-spacing: .04em; color: #888888; }
.workflow-step span { color: #626262; }
.node-group { height: 160px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 16px; }
.diagram-node { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 64px; padding: 10px 9px; background: #ffffff; border: 1px solid #dedede; border-radius: 8px; font-size: 11px; font-weight: 500; line-height: 1.4; color: #333333; }
.diagram-node > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.node-icon { flex: 0 0 15px; width: 15px; color: #777777; }
.node-icon svg, .engine-icon svg, .hero-node-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.engine-node { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 144px; padding: 15px 8px; border: 1px solid #171717; border-radius: 10px; background: #171717; color: #ffffff; text-align: center; }
.engine-icon { display: block; width: 24px; height: 24px; color: #f0f0f0; margin-bottom: 12px; }
.engine-node strong { font-size: 12px; font-weight: 500; line-height: 1.4; }
.engine-note { font-size: 9px; line-height: 1.5; color: #bdbdbd; margin-top: 5px; }
.processing-dots { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; }
.processing-dots i { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: .4; }
.workflow-link { height: 160px; align-self: end; }
.flow-horizontal { display: block; width: 100%; height: 100%; overflow: visible; }
.flow-vertical { display: none; width: 40px; height: 32px; margin: 0 auto; overflow: visible; }
.flow-line { stroke: #d3d3d3; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.flow-trace { stroke: #171717; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 90; stroke-dashoffset: 112; opacity: 0; vector-effect: non-scaling-stroke; }
.js .motion-scene .flow-trace { animation: signal-travel 3.6s linear infinite; animation-delay: var(--flow-delay, 0s); }
.js .motion-scene .processing-dots i { animation: processing-step 1.8s ease-in-out infinite; }
.js .motion-scene .processing-dots i:nth-child(2) { animation-delay: .2s; }
.js .motion-scene .processing-dots i:nth-child(3) { animation-delay: .4s; }
.motion-paused .motion-scene .flow-trace, .motion-paused .motion-scene .processing-dots i,
.page-hidden .motion-scene .flow-trace, .page-hidden .motion-scene .processing-dots i,
.motion-scene:not(.is-visible) .flow-trace, .motion-scene:not(.is-visible) .processing-dots i { animation-play-state: paused; }
@keyframes signal-travel { 0% { stroke-dashoffset: 112; opacity: 0; } 8%, 75% { opacity: 1; } 92%, 100% { stroke-dashoffset: -12; opacity: 0; } }
@keyframes processing-step { 0%, 70%, 100% { opacity: .35; } 35% { opacity: 1; } }
.hero-diagram { border: 1px solid #e4e4e4; border-radius: 16px; padding: 20px 22px 22px; background: #fafafa; }
.hero-diagram .diagram-toolbar > span { font-size: 7px; letter-spacing: .04em; }
.hero-flow { margin: 18px 0 0; }
.hero-flow-node { display: flex; align-items: center; gap: 13px; min-height: 78px; padding: 16px; border: 1px solid #dedede; border-radius: 10px; background: #ffffff; }
.hero-node-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; padding: 6px; border: 1px solid #e8e8e8; border-radius: 7px; color: #626262; }
.hero-flow-node > div { flex: 1; min-width: 0; }
.hero-flow-node strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.hero-flow-node > div > span { display: block; font-size: 10px; line-height: 1.5; color: #777777; margin-top: 4px; }
.hero-step { font: 9px/1.5 monospace; color: #888888; }
.hero-flow-link { height: 32px; }
.hero-flow-link .flow-vertical { display: block; }
.hero-engine { background: #171717; border-color: #171717; color: #ffffff; }
.hero-engine .hero-node-icon { border-color: #444444; color: #f0f0f0; }
.hero-engine > div > span { color: #bdbdbd; }
.hero-engine .processing-dots { margin: 0; }
.hero-diagram-note { margin-top: 20px; text-align: center; font: italic 12px/1.5 var(--serif); color: #626262; }
@media (max-width: 1150px) and (min-width: 1024px) {
  .workflow { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.1fr) 20px minmax(0, 1fr); }
  .diagram-node { flex-direction: column; justify-content: center; gap: 5px; padding: 8px 6px; text-align: center; font-size: 10px; }
  .node-icon { width: 14px; flex-basis: 14px; height: 14px; }
  .engine-node strong { font-size: 11px; }
  .engine-note { font-size: 8px; }
  .workflow-step { font-size: 7px; gap: 5px; }
}
@media (max-width: 640px) {
  .workflow { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .workflow-step { font-size: 8px; margin-bottom: 8px; }
  .node-group { height: auto; flex-direction: row; gap: 10px; }
  .diagram-node { flex: 1 1 0; min-height: 62px; font-size: 11px; padding: 10px; }
  .engine-node { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 4px 12px; width: 100%; height: auto; min-height: 76px; padding: 14px; text-align: left; }
  .engine-icon { grid-area: 1 / 1 / 3 / 2; margin: 0; }
  .engine-node strong { grid-area: 1 / 2 / 2 / 3; font-size: 12px; }
  .engine-note { grid-area: 2 / 2 / 3 / 3; margin: 0; font-size: 10px; }
  .engine-node .processing-dots { grid-area: 1 / 3 / 3 / 4; margin: 0; }
  .workflow-link { height: 32px; }
  .flow-horizontal { display: none; }
  .flow-vertical { display: block; }
  .diagram-toolbar > span { font-size: 7px; }
  .motion-toggle { min-height: 36px; font-size: 9px; }
  .diagram-caption { margin-top: 14px; font-size: 7px; }
  .hero-diagram { padding: 15px 16px 19px; }
  .hero-flow-node { padding: 14px; gap: 11px; }
  .hero-flow-node strong { font-size: 14px; }
  .hero-flow-node > div > span { font-size: 10px; }
}
@media (max-width: 359px) {
  .diagram-node { gap: 6px; padding: 8px; font-size: 10px; }
  .node-icon { width: 13px; height: 13px; flex-basis: 13px; }
  .diagram-toolbar > span, .hero-diagram .diagram-toolbar > span { font-size: 6px; letter-spacing: 0; }
  .hero-diagram { padding-left: 12px; padding-right: 12px; }
  .hero-flow-node { padding: 12px; gap: 9px; }
  .hero-flow-node > div > span { font-size: 9px; }
  .hero-engine .processing-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .mobile-nav[hidden] { display: block; }
}
