:root {
  color-scheme: light;
  --paper: #f6f8f5;
  --surface: #fdfefd;
  --soft: #e9f0eb;
  --ink: #202e29;
  --muted: #56645e;
  --accent: #315e4e;
  --accent-hover: #254939;
  --line: #d5dfd7;
  --radius: 20px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --panel-shadow: 0 0 0 1px rgb(32 46 41 / .08), 0 2px 4px rgb(32 46 41 / .03), 0 16px 40px -24px rgb(32 46 41 / .2);
  --page-texture: url('/assets/cicip-refresh/surface-texture.svg');
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(88px + env(safe-area-inset-top)); }
html.intro-mobile-opening { overflow: hidden; touch-action: none; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Aptos, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.mobile-copy { display: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.1vw, 36px); font-weight: 650; }
h3 { font-size: 23px; font-weight: 650; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); background: var(--surface); padding: 12px 16px; z-index: 120; }
.skip-link:focus { transform: none; }
.scroll-intro { height: 68svh; }
.intro-stage { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; color: var(--paper); }
.intro-curtain { position: absolute; left: 0; right: 0; height: 50%; background: var(--ink); }
.intro-curtain-top { top: 0; height: calc(50% + 1px); }
.intro-curtain-bottom { bottom: 0; }
.intro-lockup { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; font-size: clamp(39px, 9vw, 72px); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.intro-divider { width: 52px; height: 1px; background: #a8c8b7; }
.intro-service { color: #a8c8b7; font-size: .7em; font-weight: 450; letter-spacing: -.03em; }
.intro-cue { position: absolute; left: 0; right: 0; bottom: max(34px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: #a8c8b7; }
.intro-cue span { display: inline-block; margin-left: 8px; }
body[data-intro-open="true"] .intro-stage { visibility: hidden; }
body[data-intro-open="false"] .mandor-dock { visibility: hidden; }
.site-header { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top); background: rgb(246 248 245 / .97); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px -12px rgb(32 46 41 / .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.brand img { width: 30px; height: 34px; }
.brand strong { font-size: 21px; letter-spacing: -.04em; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 21px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fdfefd; font-size: 16px; font-weight: 650; line-height: 1.25; text-decoration: none; text-align: center; box-shadow: 0 2px 3px rgb(32 46 41 / .05); transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { transform: scale(.96); }
.button:active { outline: 1px solid var(--accent); outline-offset: 3px; }
.button-small { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { color: #fdfefd; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent); }
.hero { padding-block: 36px 28px; position: relative; isolation: isolate; }
.hero-copy h1 { font-size: clamp(36px, 7.6vw, 52px); max-width: 20ch; font-weight: 680; text-wrap: balance; }
.hero-lead { max-width: 38ch; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero-price { margin-top: 21px; color: var(--muted); font-size: 16px; }
.hero-price strong { color: var(--ink); font-size: 23px; letter-spacing: -.035em; margin-left: 4px; font-weight: 650; }
.hero-actions { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.hero-scene { display: none; position: relative; min-width: 0; }
.scene-canvas { height: 180px; position: relative; pointer-events: none; }
.scene-canvas canvas { width: 100%; height: 100%; display: block; }
.scene-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.scene-fallback span { width: 76px; height: 76px; display: grid; place-items: center; background: var(--surface); color: var(--accent); border-radius: 16px; box-shadow: var(--panel-shadow); font-size: 13px; }
.scene-fallback span:nth-child(2) { background: var(--soft); transform: translateY(-12px); }
.hero-scene[data-ready="true"] .scene-fallback { display: none; }
.examples { background: var(--soft); padding-block: 44px; }
.section-heading p { margin-top: 10px; color: var(--muted); }
.project-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px; }
.project-tabs button { padding: 10px 13px; min-height: 44px; border: 1px solid #718378; border-radius: 9px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; }
.project-tabs button[aria-selected="true"] { background: var(--accent); color: #fdfefd; border-color: var(--accent); }
.project-tabs button, .price-tabs button { position: relative; }
.project-tabs button[aria-selected="true"]::after, .price-tabs button[aria-selected="true"]::after { content: ''; position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 13px; pointer-events: none; opacity: .55; animation: selected-outline 280ms var(--ease) both; }
@keyframes selected-outline { 0% { opacity: 0; transform: scale(.98); } 65% { opacity: .8; transform: scale(1.015); } 100% { opacity: .55; transform: scale(1); } }
.project-tabs button:focus-visible::after, .price-tabs button:focus-visible::after { animation: none; }
.button:focus-visible:active { transform: none; }
.project-tabs button:hover:not([aria-selected="true"]) { background: var(--surface); }
.project-panel { display: grid; gap: 26px; background: var(--surface); padding: 24px 20px 12px; border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.project-type { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.project-copy h3 { max-width: 24ch; font-size: clamp(24px, 2.8vw, 32px); }
.project-copy > p:not(.project-note) { color: var(--muted); max-width: 39ch; margin-top: 13px; }
.project-copy .button { margin-top: 20px; font-size: 15px; }
.project-note { margin-top: 9px; font-size: 13px; color: var(--muted); }
.request-access { display: flex; width: fit-content; margin-top: 8px; font-size: 14px; }
.project-visual { min-width: 0; }
.image-stage { position: relative; aspect-ratio: 1.55; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef1ed; display: grid; place-items: center; }
.image-stage img { width: 100%; height: 100%; aspect-ratio: 1.55; object-fit: contain; background: #f4f5ef; }
.image-stage img, .flow-detail img { outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.image-stage[data-loading="true"] img { opacity: .45; }
.image-error { padding: 24px; color: var(--ink); text-align: center; font-size: 14px; }
.project-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 13px; color: var(--muted); }
.gallery-controls { display: flex; gap: 8px; flex-shrink: 0; }
.gallery-controls button { width: 44px; height: 44px; padding: 0; border: 1px solid #718378; border-radius: 10px; background: var(--surface); color: var(--accent); font-size: 23px; }
.gallery-controls button:hover { background: var(--soft); }
.no-script { padding: 20px 0; }
.pricing { margin-block: 48px; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--panel-shadow); }
.price-tabs { display: flex; gap: 6px; padding: 5px; width: fit-content; max-width: 100%; margin-block: 24px 30px; background: var(--soft); border-radius: 15px; }
.price-tabs button { min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 600; }
.price-tabs button[aria-selected="true"] { background: var(--accent); color: var(--surface); }
.price-tabs button:hover:not([aria-selected="true"]) { color: var(--ink); background: var(--surface); }
.price-panel { display: grid; gap: 28px; }
.price-benefits { min-width: 0; }
.price-details, .faq-group { border: 0; }
.price-summary h3 { font-size: 24px; max-width: 23ch; }
.price-label { margin-top: 20px; color: var(--muted); font-size: 14px; }
.price-amount { font-size: clamp(38px, 5vw, 50px); line-height: 1.1; letter-spacing: -.05em; font-weight: 650; margin-block: 7px 16px; }
.price-summary > p:last-of-type { color: var(--muted); max-width: 38ch; }
.price-includes h3 { font-size: 18px; }
.price-includes ul { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.price-includes li { position: relative; padding-left: 23px; font-size: 15px; }
.price-includes li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.price-includes strong { font-weight: 650; }
.price-includes span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.price-bottom { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.cost-note { max-width: 58ch; font-size: 13px; color: var(--muted); }
.price-controls { display: flex; align-items: center; gap: 8px; }
.price-controls span { min-width: 60px; font-size: 13px; color: var(--muted); }
.price-controls button { width: 44px; height: 44px; padding: 0; border: 1px solid #718378; border-radius: 10px; background: var(--surface); color: var(--accent); font-size: 23px; }
.price-controls button:hover { background: var(--soft); }
.ordering { padding-block: 4px 42px; }
.order-diagram { position: relative; }
.order-paths { display: none; }
.ordering ol { counter-reset: order; display: grid; gap: 10px; padding: 0; margin: 24px 0; list-style: none; }
.ordering li { counter-increment: order; display: grid; grid-template-columns: 26px 1fr; gap: 2px 12px; align-content: start; padding: 20px; border-radius: 14px; background: #eef3ef; }
.ordering li:nth-child(2) { background: #e6eee8; }
.ordering li:nth-child(3) { background: #dce8df; }
.ordering li:nth-child(4) { background: #d1e3d7; }
.ordering li::before { content: counter(order); grid-row: 1 / 3; font-size: 15px; font-weight: 650; color: var(--accent); line-height: 1.7; }
.ordering strong { font-weight: 650; font-size: 16px; }
.ordering li span { color: var(--muted); font-size: 14px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; min-height: 54px; padding: 15px 32px 15px 0; position: relative; cursor: pointer; font-weight: 600; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 14px; color: var(--accent); font-size: 22px; line-height: 1.2; }
details[open] summary::after { content: '−'; }
details > p { padding-bottom: 20px; color: var(--muted); max-width: 60ch; }
.flow-detail { max-width: 640px; margin-top: 28px; }
.flow-detail summary { font-size: 14px; color: var(--accent); }
.flow-detail img { max-height: 320px; width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.faq { max-width: 760px; padding-block: 12px 48px; }
.faq h2 { margin-bottom: 18px; }
.faq summary { font-size: 16px; }
.contact { background: var(--soft); padding-block: 40px; }
.contact-inner { display: grid; gap: 22px; }
.contact h2 { max-width: 23ch; }
.contact p { max-width: 47ch; margin-top: 12px; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 88px; color: var(--muted); font-size: 13px; }
.site-footer > span { font-weight: 600; }
.footer-name { display: block; font-weight: 400; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-ending { background: var(--ink); color: var(--paper); }
.ascii-scene { display: grid; place-items: center; height: 248px; padding-top: 20px; }
.ascii-canvas { display: block; width: 100%; max-width: 860px; height: 100%; }
.ascii-fallback { color: #a8c8b7; font: 11px/1.25 "Courier New", monospace; margin: 0; }
.site-ending .site-footer { color: #b8cabe; padding-block: 16px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid #56645e; }
.site-ending :focus-visible { outline-color: var(--paper); }
.footer-controls { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.ascii-toggle { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
body, .examples, .contact, .site-ending, .project-panel, .pricing { position: relative; isolation: isolate; }
.intro-curtain { isolation: isolate; }
body::before, .examples::before, .contact::before, .site-ending::before, .intro-curtain::before, .project-panel::before, .pricing::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background-image: var(--page-texture); background-size: 240px 180px; opacity: .45; animation: ink-breathe 18s ease-in-out infinite; animation-play-state: paused; pointer-events: none; z-index: -1; }
body::before { position: fixed; animation-play-state: running; }
[data-texture-visible="true"]::before { animation-play-state: running; }
html[data-texture-paused="true"] body::before, html[data-texture-paused="true"] [data-texture-visible]::before { animation-play-state: paused; }
@keyframes ink-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (min-width: 600px) {
  .intro-lockup { flex-direction: row; gap: clamp(24px, 3vw, 44px); font-size: clamp(46px, 7vw, 100px); }
  .intro-divider { width: 1px; height: .9em; }
  .intro-service { font-size: .65em; }
  .ascii-scene { height: 330px; }
  .shell { width: min(1120px, calc(100% - 64px)); }
  .hero { padding-block: 40px 32px; text-align: center; }
  .hero-copy h1 { max-width: 24ch; margin-inline: auto; }
  .hero-lead { max-width: 50ch; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-scene { max-width: 540px; margin-inline: auto; }
  .scene-canvas { height: 220px; }
  .ordering ol { grid-template-columns: 1fr 1fr; }
  .pricing { padding: 36px; }
  .project-panel { padding: 32px; }
  .contact-actions { flex-direction: row; align-items: center; gap: 24px; }
  .footer-name { display: inline; margin-left: 12px; }
}
@media (min-width: 960px) {
  .site-header nav { display: flex; gap: 28px; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; color: var(--muted); }
  .site-header nav a:hover { color: var(--accent); text-decoration: underline; }
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 48px 40px; text-align: left; }
  .hero-copy h1 { font-size: clamp(40px, 3.7vw, 50px); max-width: 20ch; margin-inline: 0; }
  .hero-lead { max-width: 41ch; margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-scene { display: block; width: 100%; margin: 0; }
  .scene-canvas { height: 340px; }
  .hero-lead { font-size: 18px; }
  .examples { padding-block: 60px; }
  .project-panel { grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; padding: 32px; }
  .project-copy h3 { font-size: 29px; }
  .pricing { padding: 40px 44px; margin-block: 64px; }
  .price-panel { grid-template-columns: 1fr 1.05fr; gap: 68px; align-items: start; min-height: 310px; }
  .price-summary h3 { font-size: 28px; }
  .ordering { padding-bottom: 54px; }
  .ordering ol { grid-template-columns: repeat(4, 1fr); margin-top: 32px; }
  .ordering li { display: flex; flex-direction: column; gap: 10px; }
  .ordering li span { margin-top: -4px; }
  .faq { padding-block: 16px 64px; }
  .contact { padding-block: 52px; }
  .contact-inner { grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
  .contact-actions { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 767px) {
  .desktop-copy { display: none !important; }
  .mobile-copy { display: revert; }
  .hero { padding-block: 28px 26px; }
  .hero-lead { margin-top: 12px; font-size: 16px; }
  .hero-price { margin-top: 16px; }
  .hero-actions { margin-top: 16px; }
  .examples { padding-block: 30px; }
  .project-tabs { margin-block: 18px; }
  .project-panel { padding: 20px; gap: 16px; }
  .project-type { display: none; }
  .project-copy h3 { font-size: 22px; }
  .project-copy .project-visual { margin-top: 14px; }
  .project-copy .button { display: flex; margin-top: 14px; }
  .project-visual figcaption { gap: 10px; padding-top: 8px; min-height: 52px; }
  .project-visual [data-caption] { font-size: 12px; line-height: 1.45; }
  .gallery-controls { gap: 6px; }
  .gallery-controls .gallery-autoplay { min-width: 44px; width: auto; padding-inline: 8px; font-size: 12px; }
  .project-note { font-size: 12px; }
  .request-access { margin-top: 4px; }
  .pricing { margin-block: 30px; padding: 24px 20px; }
  .price-tabs { margin-block: 18px; }
  .price-panel { gap: 16px; }
  .price-label { margin-top: 0; }
  .price-amount { margin-bottom: 0; font-size: 42px; }
  .price-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; list-style: none; margin: 0; padding: 0; }
  .price-quick li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
  .price-quick li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
  .price-details { margin-top: 8px; }
  .price-details > summary { font-size: 13px; color: var(--accent); min-height: 44px; padding-block: 10px; }
  .price-details > summary::after { top: 10px; }
  .price-includes { padding-block: 8px 14px; }
  .price-bottom { gap: 12px; margin-top: 14px; padding-top: 14px; }
  .price-controls { margin-left: auto; }
  .ordering { padding-bottom: 24px; }
  .ordering ol { grid-template-columns: 1fr 1fr; gap: 32px 28px; margin-block: 18px; }
  .ordering li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid transparent; min-width: 0; }
  .ordering li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .ordering li:nth-child(4) { grid-column: 1; grid-row: 2; }
  .ordering li::before { position: absolute; top: 14px; right: 14px; font-size: 12px; }
  .ordering strong { font-size: 14px; line-height: 1.35; }
  .ordering strong .mobile-copy { color: var(--ink); font-size: inherit; }
  .step-visual { display: block; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .step-visual path { stroke-dasharray: 180; stroke-dashoffset: calc(180 * (1 - var(--trace, 1))); }
  .ordering li[data-complete="true"] { border-color: #718378; }
  .ordering li[data-active="true"] { background: #d1e3d7; border-color: var(--accent); }
  .order-paths { display: block; position: absolute; pointer-events: none; overflow: visible; }
  .order-path { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .flow-detail { margin-top: 0; }
  .faq { padding-block: 0 26px; }
  .faq-group > summary { font-size: 18px; min-height: 52px; }
  .faq-group > details { padding-inline: 0; }
  .faq-group > details summary { font-size: 15px; }
  .contact { padding-block: 30px; }
  .contact-inner { gap: 16px; }
  .contact p { margin-top: 8px; }
}
@media (max-width: 379px) {
  .header-inner { gap: 8px; }
  .brand strong { font-size: 18px; }
  .site-header nav { gap: 8px; }
  .site-header nav a { font-size: 12px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-actions .button { width: 100%; }
  .project-tabs { gap: 6px; }
  .project-tabs button { padding-inline: 10px; font-size: 13px; }
  .project-panel { padding-inline: 16px; }
  .price-tabs button { font-size: 13px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, [data-texture-visible]::before { opacity: .6; }
  .scroll-intro { display: none !important; }
  body[data-intro-open="false"] .mandor-dock { visibility: visible; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
