@font-face { font-family: 'Instrument Serif'; src: url('./instrument-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('./instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('./dm-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f7f4ed;
  --panel: #fffdf7;
  --ink: #231f1a;
  --muted: #61594e;
  --accent: #765334;
  --night: #181714;
  --dark: #22201b;
  --gold: #e8be87;
  --cream: #fcf3e6;
  --line: #e2dbcf;
  --sand: #ebe3d5;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.62 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: auto; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, summary, input { font: inherit; }
svg { display: block; width: 20px; height: 20px; flex: none; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { color: var(--night); background: var(--gold); }
:focus-visible { outline: 2px solid #936535; outline-offset: 5px; }
.wrap { width: min(100% - 88px, 1232px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 9; padding: 10px 20px; background: var(--panel); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; color: var(--cream); background: #181714f5; border-bottom: 1px solid #fff4de1c; backdrop-filter: blur(14px); }
.header-row { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: 12px; flex: none; }
.brand-mark { width: 38px; flex: none; }
.brand-details { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; }
.brand-name { width: clamp(136px, 13vw, 174px); }
.brand small { color: #e3d8c5; font: 500 .65rem/1.1 var(--sans); letter-spacing: .08em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); font-size: .87rem; font-weight: 550; white-space: nowrap; }
.desktop-nav a { position: relative; padding-block: 7px; }
.desktop-nav a::after { content: ''; position: absolute; width: 100%; height: 1px; left: 0; bottom: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav [aria-current='page']::after { transform: scaleX(1); }
.site-header :focus-visible, .hero-band :focus-visible, .tech-section :focus-visible, .contact-banner :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.mobile-menu { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; width: fit-content; min-height: 54px; padding: 13px 21px; border: 1px solid transparent; border-radius: 50px; background: var(--night); color: var(--cream); font-weight: 700; font-size: .94rem; line-height: 1.25; transition: background .2s ease, transform .2s ease; }
.button:hover { background: #493722; transform: translateY(-2px); }
.button svg { width: 19px; height: 19px; }
.header-button { min-height: 43px; padding: 10px 14px; background: transparent; border-color: #8e7253; color: var(--gold); font-size: .83rem; white-space: nowrap; }
.header-button:hover { background: #4c3825; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; width: fit-content; max-width: 100%; font-size: .94rem; font-weight: 700; color: var(--accent); border-bottom: 1px solid #bbab95; padding: 3px 0; transition: border-color .2s ease; }
.text-link:hover { border-color: currentColor; }
.text-link svg { width: 17px; height: 17px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

.eyebrow { display: flex; align-items: center; gap: 8px; width: fit-content; color: var(--accent); font-size: .73rem; line-height: 1.4; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow svg { width: 16px; height: 16px; }
h1, h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.064em; line-height: 1; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; color: var(--accent); letter-spacing: -.018em; }
h2 { font-size: clamp(2.9rem, 5.3vw, 5.15rem); }

.hero-band { overflow: clip; padding-bottom: 28px; color: var(--cream); background: radial-gradient(ellipse at 77% 29%, #4c3825 0%, transparent 55%), var(--night); }
.hero { display: grid; grid-template-columns: 1fr .94fr; gap: clamp(25px, 5vw, 70px); align-items: center; padding-block: clamp(40px, 5.4vw, 78px) 35px; }
.hero-copy { position: relative; z-index: 1; padding-block: 13px; }
.hero-label { margin-bottom: 24px; color: var(--gold); }
.hero-label svg { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(3.85rem, 6.6vw, 6.1rem); line-height: .9; text-wrap: wrap; }
.hero h1 em { display: block; color: var(--gold); font-size: .92em; line-height: .93; margin-top: 12px; }
.hero-description { max-width: 425px; color: #e1d6c6; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.55; margin-top: 24px; }
.hero-actions { margin-top: 27px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; }
.hero-actions .button, .button-light { color: #221a12; background: var(--gold); }
.hero-actions .button:hover, .button-light:hover { background: #f4d4ab; }
.hero-actions .text-link { color: #f1ddbf; border-color: #92785d; }
.hero-portrait { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.05; overflow: hidden; background: #35291f; border: 1px solid #e4bd8447; border-radius: 32px 32px 90px 32px; box-shadow: 0 24px 52px #0005; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #14100bea, #18120a03 45%); pointer-events: none; }
.hero-portrait figcaption { position: absolute; z-index: 1; inset: auto 24px 24px; display: flex; flex-direction: column; gap: 3px; }
.hero-portrait figcaption span { font: 400 clamp(1.7rem, 2.4vw, 2.45rem)/1 var(--serif); }
.hero-portrait figcaption small { font-size: .76rem; color: #f4e1c5; }
.treatment-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.treatment-jump a { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 10px 17px; gap: 12px; color: var(--cream); background: #f4d5ab0b; border: 1px solid #f4d5ab30; border-radius: 12px; font-weight: 650; font-size: .91rem; transition: background .2s ease, border-color .2s ease; }
.treatment-jump a:hover { background: #f4d5ab21; border-color: #f4d5ab80; }
.treatment-jump svg { color: var(--gold); }
.treatment-jump svg:last-child { width: 16px; height: 16px; }

.section { padding-block: clamp(62px, 7.8vw, 108px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px 45px; margin-bottom: 33px; }
.section-heading .eyebrow, .method .eyebrow, .page-hero .eyebrow, .contact-banner .eyebrow, .tech-copy .eyebrow { margin-bottom: 13px; }
.section-heading h2 { text-wrap: pretty; }
.section-heading > p { max-width: 318px; color: var(--muted); line-height: 1.6; }
.section-heading .text-link { flex-shrink: 0; margin-bottom: 4px; }
.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 14px; }
.treatment-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(21px, 3vw, 35px); transition: border-color .2s ease, box-shadow .2s ease; }
.treatment-card:hover, .treatment-card:focus-within, .treatment-card:target { border-color: #a18361; box-shadow: 0 12px 27px #59453010; }
.treatment-icon, .article-icon { display: grid; place-items: center; width: 49px; height: 49px; background: var(--sand); border-radius: 14px; color: var(--accent); }
.treatment-icon svg, .article-icon svg { width: 24px; height: 24px; }
.treatment-card h3 { margin-top: 21px; font: 650 clamp(1.35rem, 2.4vw, 2.05rem)/1.1 var(--sans); letter-spacing: -.04em; }
.treatment-card > p { min-height: 55px; margin-top: 9px; color: var(--muted); line-height: 1.52; }
.treatment-card details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.treatment-card summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--accent); font-weight: 700; font-size: .87rem; min-height: 29px; }
.treatment-card summary span { position: relative; width: 17px; height: 17px; flex: none; }
.treatment-card summary span::after, .treatment-card summary span::before { content: ''; position: absolute; top: 8px; left: 2px; width: 13px; height: 1px; background: currentColor; }
.treatment-card summary span::after { transform: rotate(90deg); transition: transform .15s ease; }
.treatment-card details[open] summary span::after { transform: none; }
.treatment-card details p { color: var(--muted); font-size: .92rem; margin-top: 9px; }

.tech-section { color: var(--cream); background: radial-gradient(ellipse at 7% 99%, #493721, transparent 56%), var(--night); padding-block: clamp(55px, 7.6vw, 108px); }
.tech-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 86px); align-items: center; }
.tech-copy .eyebrow { color: var(--gold); }
.tech-copy h2 { text-wrap: pretty; }
.tech-copy > p:not(.eyebrow) { margin-top: 17px; max-width: 410px; color: #eadfcd; }
.tech-points { list-style: none; margin: 21px 0 0; padding: 0; color: #f2e4d1; }
.tech-points li { display: flex; gap: 10px; align-items: start; padding-block: 7px; }
.tech-points svg { color: var(--gold); margin-top: 3px; }
.tech-viewer { padding: 12px; background: #29251f; border: 1px solid #fff0d526; border-radius: 24px; box-shadow: 0 18px 40px #0003; }
.tech-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; padding: 0 7px 8px; color: #f2dfc2; font-size: .85rem; font-weight: 650; }
.tech-toolbar span { margin-left: 5px; color: var(--gold); }
.tech-toolbar output { flex: none; color: var(--gold); font-variant-numeric: tabular-nums; }
.tech-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 15px; cursor: grab; user-select: none; }
.tech-track::-webkit-scrollbar { display: none; }
.tech-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tech-track .tech-panel { min-width: 0; scroll-snap-align: start; }
.tech-panel img { width: 100%; height: clamp(240px, 30vw, 385px); object-fit: contain; background: #100f0e; border-radius: 15px; }
.tech-panel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; color: var(--cream); padding: 11px 7px 2px; font-size: .84rem; font-weight: 650; }
.tech-panel figcaption span { color: #e2d2ba; font-weight: 450; }
.tech-viewer-single .tech-panel img { object-position: center 44%; }

.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 31px); }
.case-comparison { display: grid; gap: 8px; min-width: 0; }
.case-comparison h3 { font-size: clamp(1.08rem, 2.2vw, 1.55rem); letter-spacing: -.035em; }
.case-images { --comparison: 50%; position: relative; isolation: isolate; aspect-ratio: 20 / 9; overflow: hidden; border-radius: 19px; background: var(--night); }
.case-images img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.case-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--comparison)) 0 0); }
.case-divider { position: absolute; inset: 0; pointer-events: none; }
.case-divider::before { content: ''; position: absolute; inset: 0 auto 0 var(--comparison); width: 2px; background: var(--gold); transform: translateX(-50%); }
.case-divider span { position: absolute; top: 50%; left: clamp(22px, var(--comparison), calc(100% - 22px)); transform: translate(-50%, -50%); display: grid; place-items: center; width: 43px; height: 43px; color: var(--night); background: var(--gold); border: 1px solid #2f1b0c; border-radius: 50%; font-size: 1.18rem; font-weight: 700; box-shadow: 0 2px 8px #0005; }
.case-image-label { position: absolute; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 50px; background: #181714eb; color: var(--cream); font-size: .75rem; font-weight: 700; }
.case-image-label-before { left: 12px; }
.case-image-label-after { right: 12px; }
.case-slider { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; appearance: none; cursor: ew-resize; touch-action: pan-y; }
.case-pointer { cursor: ew-resize; touch-action: pan-y; touch-action: pan-y pinch-zoom; }
.case-pointer .case-slider { pointer-events: none; }
.case-slider::-webkit-slider-runnable-track { height: 100%; }
.case-slider::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; }
.case-slider::-moz-range-track { height: 100%; }
.case-slider::-moz-range-thumb { width: 1px; height: 100%; border: 0; }
.case-images:has(.case-slider:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.case-instructions { width: fit-content; color: var(--accent); padding-inline: 4px; font-size: .88rem; font-weight: 700; cursor: pointer; }
.case-comparison figcaption { color: var(--muted); padding-inline: 4px; font-size: .82rem; }

.method { background: var(--sand); padding-block: clamp(50px, 7.5vw, 98px); }
.method-grid { display: grid; grid-template-columns: .87fr 1fr; align-items: center; gap: clamp(25px, 7vw, 95px); }
.method-image { height: clamp(360px, 39vw, 505px); background: #d9c7ae; border-radius: 23px 23px 57px 23px; overflow: hidden; }
.method-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.step-list { list-style: none; margin: 22px 0 16px; padding: 0; }
.step-list li { display: flex; align-items: start; gap: 13px; border-top: 1px solid #d4c8b7; padding-block: 10px; }
.step-list li > span { display: grid; place-items: center; min-width: 30px; height: 30px; color: var(--accent); background: #f7f2e7; border-radius: 50%; font-size: .72rem; font-weight: 700; }
.step-list h3 { font-size: 1rem; font-weight: 700; }
.step-list p { color: var(--muted); font-size: .93rem; line-height: 1.47; margin-top: 2px; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.article-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--panel); padding: clamp(15px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s ease, background .2s ease; }
.article-card:hover { border-color: #a18361; background: #f7efe2; }
.article-card .eyebrow { margin-bottom: 7px; font-size: .64rem; }
.article-card h3 { font: 650 clamp(1.25rem, 2.25vw, 1.85rem)/1.11 var(--sans); letter-spacing: -.04em; }
.article-card p:last-child { color: var(--muted); font-size: .91rem; line-height: 1.5; margin-top: 8px; }
.card-arrow { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.card-arrow svg { width: 16px; height: 16px; }
.article-card:hover .card-arrow { background: var(--accent); border-color: var(--accent); color: var(--panel); }
.article-card:focus-visible .card-arrow { background: var(--accent); border-color: var(--accent); color: var(--panel); }

.library-masthead, .guide-hero {
  background: radial-gradient(ellipse at 90% 8%, #e5d3b2 0, transparent 58%), linear-gradient(135deg, #f2ebe0, #faf6ee);
  border-bottom: 1px solid var(--line);
}
.library-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .62fr);
  align-items: center; gap: clamp(24px, 6vw, 80px); padding-block: clamp(38px, 6.4vw, 94px);
}
.library-intro h1 { margin-block: 14px 12px; font-size: clamp(3.1rem, 7vw, 6.4rem); text-align: left; text-wrap: pretty; }
.library-intro p:not(.eyebrow) { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.topic-nav { display: grid; gap: 1px; padding: 7px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 40px #49372214; }
.topic-nav a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 2px; font-size: .93rem; font-weight: 650; }
.topic-nav a + a { border-top: 1px solid var(--line); }
.topic-nav a:hover, .topic-nav a > svg { color: var(--accent); }
.topic-nav a:hover > span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }
.topic-nav a > svg { width: 16px; height: 16px; }
.topic-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); border-radius: 10px; background: #eee1ce; flex: none; }
.topic-icon svg { width: 20px; height: 20px; }
.library-catalog { padding-block: clamp(28px, 4.5vw, 62px) clamp(48px, 7vw, 90px); }
.library-search { max-width: 39rem; margin-bottom: 27px; }
.library-search label { display: block; margin-bottom: 6px; font-weight: 700; }
.library-search-field { display: flex; align-items: center; gap: 10px; background: var(--panel); padding-inline: 14px; border: 1px solid #a99983; border-radius: 12px; color: var(--accent); }
.library-search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.library-search-field input { flex: 1; min-width: 0; padding: 12px 0; background: transparent; color: var(--ink); border: 0; outline: none; }
.library-search-field input::placeholder { color: var(--muted); opacity: 1; }
.library-count { font-size: .83rem; color: var(--muted); margin-top: 7px; }
.library-empty { background: var(--panel); border: 1px solid var(--line); padding: 18px; border-radius: 12px; }
.library-empty button { margin-top: 8px; background: none; padding: 2px 0; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.library-topic + .library-topic { margin-top: clamp(27px, 4vw, 49px); }
.library-topic h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: clamp(1.45rem, 2.6vw, 2.2rem); letter-spacing: -.045em; text-wrap: wrap; }
.library-topic .article-card { grid-template-columns: minmax(0, 1fr) auto; }
.library-topic .article-card h3 { font-size: clamp(1.12rem, 1.9vw, 1.45rem); }
.library-catalog [hidden] { display: none; }

.contact-banner { background: #392b1e; color: var(--cream); padding-block: clamp(42px, 6.2vw, 82px); }
.banner-layout { display: flex; align-items: center; justify-content: space-between; gap: 22px 54px; }
.contact-banner .eyebrow { color: var(--gold); }
.contact-banner h2 { font-size: clamp(2.9rem, 5vw, 4.75rem); text-wrap: pretty; }
.contact-banner h2 em { color: var(--gold); }
.contact-banner p:last-child { color: #f0e1cf; margin-top: 12px; }
.button-light { flex: none; }
.site-footer { background: var(--night); color: var(--cream); padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .76fr 1fr; gap: 28px; padding-bottom: 34px; }
.footer-brand .brand-mark { width: 41px; }
.footer-brand small { letter-spacing: .035em; }
.footer-grid p { margin-top: 12px; color: #e3d8c5; font-size: .8rem; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: .89rem; overflow-wrap: anywhere; }
.footer-grid nav strong { margin-bottom: 5px; }
.footer-grid nav a { color: #e3d8c5; }
.footer-grid nav a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.footer-line { border-top: 1px solid #655848; display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; color: #e2d3bd; font-size: .78rem; }

.page-hero { padding-top: clamp(50px, 7vw, 95px); padding-bottom: clamp(30px, 4.5vw, 60px); }
.page-hero h1 { font-size: clamp(3.5rem, 7.3vw, 7.25rem); text-wrap: pretty; line-height: .94; }
.page-hero > p:not(.eyebrow, .byline), .about-hero div > p:not(.eyebrow) { max-width: 575px; color: var(--muted); margin-top: 17px; font-size: clamp(1rem, 1.65vw, 1.17rem); }
.page-hero .button { margin-top: 23px; }
.sub-section { padding-bottom: clamp(54px, 7.5vw, 100px); }
.sub-section > h2 { font-size: clamp(2.3rem, 4vw, 3.85rem); margin-bottom: 18px; }
.about-hero, .about-method { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 65px); align-items: center; }
.about-hero img { width: 100%; height: clamp(315px, 36vw, 440px); object-fit: cover; object-position: 50% 32%; border-radius: 22px; }
.about-hero .professional-line { font-weight: 700; }
.about-scene img { width: 100%; border-radius: 18px; }
.about-scene figcaption { margin-top: 8px; color: var(--muted); font-size: .83rem; }
.about-content p:not(.eyebrow) { max-width: 660px; color: var(--muted); margin-top: 16px; }
.about-content .text-link { margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(22px, 6vw, 68px); align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 9px; }
.contact-channels > a:not(.button) { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--accent); }
.contact-channels > a:not(.button):hover { border-color: #a18361; }
.contact-channels a span { flex: 1; overflow-wrap: anywhere; }
.contact-channels strong { display: block; font-size: .8rem; }
.city-photo { position: relative; min-width: 0; }
.city-photo img { width: 100%; max-height: 415px; object-fit: cover; border-radius: 18px; }
.city-photo figcaption { position: absolute; left: 13px; bottom: 13px; background: var(--night); color: var(--cream); padding: 5px 11px; border-radius: 40px; font-size: .82rem; }
.guide-hero-inner, .guide-grid { max-width: 1060px; }
.guide-hero-inner { padding-block: clamp(25px, 4.5vw, 58px) clamp(29px, 4.6vw, 60px); }
.guide-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: var(--accent); font-size: .82rem; font-weight: 700; }
.guide-breadcrumb a { padding-block: 3px; text-decoration: underline; text-underline-offset: 3px; }
.guide-breadcrumb a:hover { color: var(--ink); }
.guide-hero h1 { margin-block: 13px 10px; max-width: 24ch; font-size: clamp(2.35rem, 5.1vw, 4.35rem); line-height: 1.04; text-wrap: pretty; }
.guide-lead { color: var(--muted); max-width: 62ch; font-size: clamp(1rem, 1.8vw, 1.19rem); line-height: 1.55; }
.guide-grid { display: grid; grid-template-columns: minmax(165px, .34fr) minmax(0, 1fr); gap: 22px clamp(24px, 5vw, 64px); align-items: start; padding-block: clamp(24px, 4vw, 45px) clamp(38px, 6vw, 72px); }
.guide-answer { grid-column: 2; display: flex; gap: 14px; align-items: start; background: #f2e8d7; border: 1px solid #ded0b8; border-left: 3px solid #9b7147; border-radius: 14px; padding: clamp(14px, 2.7vw, 24px); }
.guide-answer h2 { margin-bottom: 5px; font-size: 1.05rem; letter-spacing: -.017em; }
.guide-answer p { line-height: 1.55; font-size: clamp(1rem, 1.7vw, 1.14rem); }
.guide-answer .topic-icon { background: #e7d8c0; }
.guide-index { grid-row: 1 / span 2; position: sticky; top: 99px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; }
.guide-index summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; font-weight: 700; font-size: .96rem; }
.guide-index summary svg { width: 15px; height: 15px; color: var(--accent); }
.guide-index details[open] summary svg { transform: rotate(180deg); }
.guide-index ul { list-style: none; padding: 0; margin: 0 0 6px; }
.guide-index li { border-top: 1px solid var(--line); }
.guide-index a { display: block; color: var(--accent); padding: 9px 0; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.guide-index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-content { min-width: 0; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.72; }
.article-content section + section { margin-top: clamp(25px, 3.7vw, 42px); }
.article-content h2 { margin-bottom: 8px; font-size: clamp(1.45rem, 3.4vw, 2.35rem); letter-spacing: -.045em; line-height: 1.12; text-wrap: pretty; }
.article-content p + p, .article-content ul, .article-content .guide-note { margin-top: .75em; }
.article-content ul { padding-inline-start: 1.35em; }
.article-content li { margin-block: .28em; }
.article-content li::marker { color: var(--accent); }
.guide-references { border-top: 1px solid var(--line); padding-top: 18px; }
.guide-references h2 { font-size: 1.38rem; }
.guide-references ul, .guide-note { color: var(--muted); font-size: .91rem; }
.guide-references a, .guide-note a { text-decoration: underline; text-underline-offset: 3px; }
.guide-references a:hover, .guide-note a:hover { color: var(--accent); }
.article-content .guide-note { margin-top: 18px; padding: 11px 14px; background: var(--sand); border-radius: 9px; }
.related-guides { background: #f0eadd; border-top: 1px solid var(--line); padding-block: clamp(30px, 5vw, 62px); }
.related-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 16px; }
.related-heading h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
.related-guides .article-card h3 { font-size: clamp(1.15rem, 1.75vw, 1.45rem); }
.missing { min-height: 400px; }

@media (min-width: 920px) {
  .library .article-grid, .related-guides .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library .article-card, .related-guides .article-card { gap: 10px; padding: 16px; }
  .library .article-card h3 { font-size: clamp(1.13rem, 1.6vw, 1.43rem); }
  .library .article-icon, .related-guides .article-icon { width: 35px; height: 35px; }
  .library .article-icon svg, .related-guides .article-icon svg { width: 19px; height: 19px; }
}

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 64px); }
  .desktop-nav, .header-button { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; width: 47px; height: 47px; place-items: center; color: var(--cream); background: #f4d5ab0c; border: 1px solid #f4d5ab52; border-radius: 50%; }
  .menu-icon { width: 19px; display: grid; gap: 4px; }
  .menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu[open] .menu-icon i:first-child { transform: translateY(5.5px) rotate(45deg); }
  .mobile-menu[open] .menu-icon i:nth-child(2) { opacity: 0; }
  .mobile-menu[open] .menu-icon i:last-child { transform: translateY(-5.5px) rotate(-45deg); }
  .mobile-menu nav { position: absolute; top: calc(100% + 4px); right: 32px; width: min(350px, calc(100% - 64px)); display: grid; padding: 8px 17px 18px; color: var(--cream); background: #26221c; border: 1px solid #f4d5ab45; border-radius: 17px; box-shadow: 0 12px 32px #0006; }
  .mobile-menu nav a:not(.button) { padding: 11px 2px; border-bottom: 1px solid #f4d5ab24; font-weight: 600; }
  .mobile-menu nav .button { margin-top: 13px; background: var(--gold); color: var(--night); }
  .hero h1 { font-size: clamp(3.1rem, 6.4vw, 5.7rem); }
  .treatment-card > p { min-height: 74px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 65px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; }
  .brand-name { width: 140px; }
  .brand small { font-size: .59rem; }
  .mobile-menu nav { right: 18px; width: min(350px, calc(100% - 36px)); }
  .hero, .tech-grid, .method-grid, .about-hero, .about-method, .contact-grid { grid-template-columns: 1fr; }
  .hero { gap: 23px; padding-block: 34px 22px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.25rem, 10.8vw, 5.6rem); }
  .hero-description, .hero-actions { margin-top: 18px; }
  .hero-label { margin-bottom: 19px; }
  .hero-portrait { border-radius: 22px 22px 55px 22px; }
  .hero-portrait figcaption { inset: auto 16px 15px; }
  .hero-band { padding-bottom: 17px; }
  .treatment-jump { gap: 6px; }
  .treatment-jump a { min-height: 73px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 6px 4px; text-align: center; font-size: clamp(.66rem, 2.7vw, .88rem); line-height: 1.22; }
  .treatment-jump svg:last-child { display: none; }
  .section { padding-block: 53px; }
  .section-heading, .banner-layout { flex-direction: column; align-items: flex-start; }
  .section-heading { margin-bottom: 20px; gap: 11px; }
  .treatment-grid, .article-grid { grid-template-columns: 1fr; gap: 9px; }
  .treatment-card { padding: 19px; }
  .treatment-card h3 { margin-top: 14px; }
  .treatment-card > p { min-height: 0; margin-top: 6px; }
  .treatment-card details { margin-top: 13px; }
  .tech-panel img { height: clamp(200px, 64vw, 360px); }
  .case-grid { grid-template-columns: 1fr; gap: 23px; }
  .case-images { border-radius: 13px; }
  .case-divider span { width: 39px; height: 39px; }
  .method-image { height: min(400px, 75vw); }
  .method-grid > div { grid-row: 1; }
  .article-card { gap: 10px; }
  .article-icon { width: 36px; height: 36px; }
  .article-icon svg { width: 18px; height: 18px; }
  .card-arrow { width: 26px; height: 26px; }
  .card-arrow svg { width: 14px; height: 14px; }
  .library-intro, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .library-intro { gap: 17px; padding-block: 28px 20px; }
  .topic-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; padding: 5px 9px; border-radius: 14px; }
  .topic-nav a { grid-template-columns: auto minmax(0, 1fr); gap: 7px; font-size: .79rem; line-height: 1.22; }
  .topic-nav a + a { border-top: 0; }
  .topic-nav a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .topic-nav a > svg { display: none; }
  .topic-nav .topic-icon { width: 27px; height: 27px; border-radius: 7px; }
  .topic-nav .topic-icon svg { width: 16px; height: 16px; }
  .guide-grid { gap: 17px; }
  .guide-answer { grid-column: auto; gap: 10px; }
  .guide-index { grid-row: auto; position: static; }
  .footer-grid { grid-template-columns: 1fr 1.55fr; gap: 21px 13px; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-grid nav { font-size: .8rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-portrait { animation: appear .55s ease-out both; }
  .hero-portrait { animation-delay: .07s; }
  @keyframes appear {
    from { transform: translateY(13px); }
    to { transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
