/* ==========================================================================
   GOREUN Dental Clinic — site styles (고른 치과)
   Calm Precision + Everyday Trust — 밝고 깨끗하지만 차갑지 않게.
   흰 바탕 · 옅은 세이지 · 짙은 청록 하나 · 따뜻한 먹색. 모서리는 8–12px 로 조금 부드럽게.
   정보에 바로 닿는 구조(증상 → 진료 → 과정)와 분명한 위계로 신뢰를 만든다.
   관리자가 바꾸지 않는 디자인 시스템 (폰트 · 색 · 간격 · 폭). 페이지 전용 스타일은 css/pages/*.css
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
    --bg: #FFFFFF;
    --bg-soft: #F5F7F6;               /* 아주 옅은 따뜻한 회색 — 섹션 구분 */
    --sage: #E8EFEB;                  /* 옅은 세이지 — 안내 면 · 강조 면 */
    --sage-2: #DCE7E1;                /* 세이지 선 · 눌림 */
    --accent: #2C5F55;                /* 짙은 청록 — 브랜드 색 하나 (흰 바탕 7.3:1) */
    --accent-ink: #1F4840;            /* 더 짙은 청록 — 눌림 · 어두운 면 */
    --accent-soft: #F0F5F2;

    --ink: #1C2321;                   /* 따뜻한 먹색 */
    --ink-2: #47514D;
    --ink-3: #5F6965;                 /* 보조 글자 — 흰 바탕 5.7:1, 세이지 위 4.9:1 */
    --line: #E2E7E4;
    --line-2: #C5CEC9;
    --field: #7F8B86;                 /* 입력 칸 테두리 — 3:1 이상 */

    --on-accent: #FFFFFF;
    --on-accent-2: #C9DCD3;           /* 청록 바탕 위 보조 글자 — 5:1 이상 */

    --error: #A23B2C;

    --radius-s: 8px;
    --radius: 12px;

    --gutter: clamp(20px, 4vw, 48px);
    --col-gap: clamp(16px, 2.2vw, 32px);
    --maxw: 1320px;
    --header-h: 72px;
    --section-y: clamp(72px, 8vw, 128px);

    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1099px) {
    :root { --header-h: 64px; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 12px; z-index: 100;
    background: var(--accent); color: #fff; padding: 10px 14px; font-size: 15px; border-radius: var(--radius-s);
}
.skip-link:focus { left: 12px; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
}

.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- type */
/* 소제목 — 한글 이름을 청록 글자로, 영문은 작은 회색으로 뒤에 (Master 의 자간 넓은 영문 소제목과 다르게) */
.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--accent);
}
.eyebrow::before {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--accent);
}
.eyebrow__en {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.eyebrow--light { color: var(--on-accent); }
.eyebrow--light::before { background: var(--on-accent-2); }
.eyebrow--light .eyebrow__en { color: var(--on-accent-2); }

.title {
    margin-top: 18px;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 600;
    line-height: 1.36;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.title--xl { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.28; letter-spacing: -.035em; }

.lead {
    font-size: clamp(16.5px, 1.2vw, 18.5px);
    line-height: 1.8;
    color: var(--ink-2);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-underline-offset: 6px;
    transition: gap .35s var(--ease), text-decoration-color .3s;
}
.text-link:hover { gap: 14px; text-decoration-color: currentColor; }
.text-link--small { font-size: 15px; }
.text-link--ink { color: var(--ink); }

/* 선 화살표 — 아이콘 글꼴 없이 CSS 로 */
.arrow {
    position: relative;
    display: inline-block;
    width: 14px; height: 1.5px;
    background: currentColor;
    flex: none;
    border-radius: 1px;
}
.arrow::after {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    width: 6px; height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

/* 작은 꼬리표 — 분류 · 상태 (남발하지 않는다) */
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--sage);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.tag--line { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }

/* ---------------------------------------------------------------- buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.3;
    text-align: center;
    transition: background-color .25s, gap .35s var(--ease), box-shadow .25s;
}
.button:hover { background: var(--accent-ink); gap: 16px; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: var(--radius-s); }
.button--ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.button--ghost:hover { background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.button--light { background: var(--on-accent); color: var(--accent-ink); }
.button--light:hover { background: var(--sage); }
.button--light:focus-visible { outline-color: var(--on-accent); }
.button[disabled],
.button[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }

/* ---------------------------------------------------------------- media */
.media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sage);
}
.media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.media--flat { border-radius: 0; }
/* 일러스트(SVG) — 잘리지 않게 contain, 그림의 종이색(#F5F7F6)과 같은 바탕. 관리자가 올린 사진(WebP)은 cover 그대로 */
.media:has(> img[src*=".svg"]) { background: var(--bg-soft); }
.media img[src*=".svg"] { object-fit: contain; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-3);
}

/* ---------------------------------------------------------------- demo notice bar (inc.demo_notice) */
.demo-bar {
    position: relative;
    z-index: 60;
    background: var(--accent-ink);
    color: var(--on-accent);
    font-size: 13.5px;
    line-height: 1.5;
}
.demo-bar__text {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 8px var(--gutter);
}
.demo-bar__label {
    flex: none;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 18px;
}
.demo-bar__link {
    color: var(--on-accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* 고지 띠 오른쪽 링크 묶음(관리자 · 고객 시연 · 도입 문의 · 제작 정보) — 첫 링크만 오른쪽으로 민다. 좁은 화면은 문구 아래 왼쪽부터 */
.demo-bar__link:first-of-type { margin-left: auto; }
@media (max-width: 640px) { .demo-bar__link:first-of-type { margin-left: 0; } }
.demo-bar__link:hover { color: var(--on-accent); }

/* ---------------------------------------------------------------- header */
/* 데모 고지 띠 아래에서 시작해, 스크롤하면 화면 위에 붙는다(sticky). 아래로 내리면 숨고 위로 올리면 나타난다(site.js) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: transform .45s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; background: var(--bg); }

.site-header__inner {
    height: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--ink);
}
.site-logo__type { display: block; width: auto; height: 22px; }
.site-logo__en {
    padding-left: 10px;
    border-left: 1px solid var(--line-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.2;
    color: var(--ink-3);
}

.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.site-nav a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .25s;
}
.site-nav a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-current { color: var(--accent); font-weight: 600; }
.site-nav a.is-current::after { transform: scaleX(1); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.site-header__tel {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.site-header__tel:hover { color: var(--accent); }
.site-header__cta { white-space: nowrap; }
.site-header__menu {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 15px;
    font-weight: 600;
}
.site-header__menu-bars {
    position: relative;
    width: 18px; height: 12px;
}
.site-header__menu-bars::before,
.site-header__menu-bars::after,
.site-header__menu-bars span {
    content: "";
    position: absolute; left: 0; right: 0;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
}
.site-header__menu-bars::before { top: 0; }
.site-header__menu-bars span { top: 5.25px; }
.site-header__menu-bars::after { bottom: 0; }
.menu-open .site-header__menu-bars::before { transform: translateY(5.25px) rotate(45deg); }
.menu-open .site-header__menu-bars::after { transform: translateY(-5.25px) rotate(-45deg); }
.menu-open .site-header__menu-bars span { opacity: 0; }
.site-header__menu-close { display: none; }
.menu-open .site-header__menu-open { display: none; }
.menu-open .site-header__menu-close { display: inline; }

/* 전체 메뉴 (모바일 · 태블릿) */
.site-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
}
.menu-open .site-menu { opacity: 1; visibility: visible; }
.site-menu__links { border-top: 1px solid var(--line); }
.site-menu__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.site-menu__links a .arrow { color: var(--accent); }
.site-menu__cta { width: 100%; }
.site-menu__info {
    display: grid;
    gap: 4px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-2);
}
.site-menu__info a { color: var(--accent); font-weight: 600; }

/* 떠 있는 예약 신청 — 모바일 · 태블릿. 예약 버튼 · 푸터가 보이면 숨는다(site.js) */
.fab { display: none; }

@media (max-width: 1099px) {
    .site-nav, .site-header__tel { display: none; }
    .site-header__menu { display: inline-flex; }
    .site-header__actions { gap: 8px; }
    .fab {
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 55;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 10px;
        background: var(--accent);
        color: var(--on-accent);
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 10px 28px rgba(28, 35, 33, .18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
    }
    .fab.is-shown { opacity: 1; visibility: visible; transform: none; }
    .menu-open .fab { opacity: 0; visibility: hidden; }
}
@media (max-width: 767px) {
    .site-header__cta { display: none; }
    .site-logo__en { display: none; }
    .site-logo__type { height: 20px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section-y) 0; }
.section--tight-top { padding-top: 0; }
.section--soft { background: var(--bg-soft); }
.section--sage { background: var(--sage); }
.section--accent { background: var(--accent); color: var(--on-accent); }

/* 섹션 머리: 왼쪽 소제목 + 제목, 오른쪽 짧은 설명 또는 링크 */
.section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
    margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :last-child:not(:first-child) { grid-column: 9 / span 4; justify-self: start; }
.section-head .lead { font-size: 16.5px; }

/* reveal — 스크롤 때 한 번만, 짧고 조용하게 */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- page head */
.page-head { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px); }
.page-head__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
}
.page-head__text { grid-column: 1 / span 7; }
.page-head__title {
    margin-top: 20px;
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 600;
    line-height: 1.26;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.page-head__lead {
    grid-column: 8 / span 5;
    font-size: clamp(16.5px, 1.2vw, 18.5px);
    line-height: 1.8;
    color: var(--ink-2);
}
.page-head__media { margin-top: clamp(40px, 5vw, 72px); }
.page-head__media--bleed .media { border-radius: 0; }
.page-head__lead.reveal { transition-delay: .08s; }

@media (max-width: 1099px) {
    .page-head__text { grid-column: 1 / span 11; }
    .page-head__lead { grid-column: 1 / span 9; margin-top: 24px; }
}
@media (max-width: 767px) {
    .page-head__text, .page-head__lead { grid-column: 1 / -1; }
    .page-head__title { margin-top: 16px; }
    .page-head__lead { margin-top: 18px; }
}

/* ---------------------------------------------------------------- facts (정보 표) */
.facts { border-top: 1px solid var(--line); }
.facts > div {
    display: grid;
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    column-gap: var(--col-gap);
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.7;
}
.facts dt { font-size: 14.5px; font-weight: 500; color: var(--ink-3); }
.facts dd { color: var(--ink); }
.facts a,
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.facts a:hover,
.prose a:hover { text-decoration-color: currentColor; }
.facts--strong { border-top: 2px solid var(--ink); }
@media (max-width: 519px) {
    .facts > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* 한눈에 보기 — 세이지 면 위의 정보 표 (진료 상세 · 예약 확인) */
.panel {
    padding: clamp(22px, 2.4vw, 32px);
    border-radius: var(--radius);
    background: var(--sage);
}
.panel__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.panel .facts { margin-top: 14px; border-top-color: var(--sage-2); }
.panel .facts > div { border-bottom-color: var(--sage-2); }
.panel__note { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* ---------------------------------------------------------------- faq (<details> · JS 없음) */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    transition: color .25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q > span:first-child::before {
    content: "Q";
    margin-right: 12px;
    color: var(--accent);
    font-weight: 700;
}
.faq__icon {
    position: relative;
    flex: none;
    width: 28px; height: 28px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--accent);
}
.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    left: 8px; right: 8px; top: 13px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] > .faq__q .faq__icon::after { transform: rotate(0deg); }
.faq__a {
    max-width: 44em;
    padding: 0 48px 24px 27px;
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-2);
}
.faq__a p + p { margin-top: .8em; }
@media (hover: hover) {
    .faq__q:hover { color: var(--accent); }
}

/* ---------------------------------------------------------------- subnav (앵커 서브내비) */
/* 페이지 루트 <div> 바로 안에 둔다. 헤더가 숨으면 맨 위로 올라간다. */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: top .45s var(--ease);
}
body:has(.site-header.is-hidden) .subnav { top: 0; }
.subnav__list {
    display: flex;
    gap: clamp(20px, 2.4vw, 36px);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list::after { content: ""; flex: 0 0 1px; }
.subnav__list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink-2);
    transition: color .25s;
}
.subnav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.subnav__index { font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.subnav__list a:hover,
.subnav__list a.is-current,
.subnav__list a[aria-current="true"] { color: var(--accent); }
.subnav__list a.is-current,
.subnav__list a[aria-current="true"] { font-weight: 600; }
.subnav__list a.is-current::after,
.subnav__list a[aria-current="true"]::after { transform: scaleX(1); }
.subnav__list a:focus-visible { outline-offset: -3px; }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 80px); }

/* ---------------------------------------------------------------- timeline (치료 과정 · 진료 순서) */
/* 세로 타임라인 — 점과 선으로 단계를 잇는다. 시기 · 내원(when)은 작은 청록 글자 */
.timeline { position: relative; }
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 28px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {                     /* 선 */
    content: "";
    position: absolute;
    left: 17px; top: 36px; bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--sage-2);
}
.timeline__item:last-child::before { display: none; }
.timeline__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 2px var(--accent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.timeline__body { padding-top: 5px; }
.timeline__when {
    display: block;
    margin-bottom: 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
}
.timeline__title { font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
.timeline__text { margin-top: 6px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.timeline__text p + p { margin-top: .7em; }

/* ---------------------------------------------------------------- forms (예약 신청) */
/* 둥근 모서리 8px 의 칸. 테두리 3:1 이상, 포커스는 청록 2px. 입력 글자 16px 이상(iOS 확대 방지) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px var(--col-gap);
}
.form-grid > .field--full { grid-column: 1 / -1; }
.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.field__label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}
.field__req { font-size: 13px; font-weight: 600; color: var(--accent); }
.field__opt { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.field__input {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--field);
    border-radius: var(--radius-s);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
    transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus,
.field__input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.field__select { position: relative; }
.field__select::after {
    content: "";
    position: absolute;
    right: 16px; top: 50%;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink-2);
    border-bottom: 1.5px solid var(--ink-2);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.field__input[aria-invalid="true"],
.field.is-invalid .field__input { border-color: var(--error); }
.field__hint,
.field__error { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
.field__hint { color: var(--ink-3); }
.field__error { color: var(--error); font-weight: 500; }

/* 체크박스 */
.check {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.6;
    cursor: pointer;
}
.check input {
    position: absolute;
    left: 0; top: 2px;
    width: 22px; height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.check__box {
    position: relative;
    flex: none;
    width: 22px; height: 22px;
    margin-top: 2px;
    border: 1.5px solid var(--field);
    border-radius: 6px;
    background: var(--bg);
    transition: background-color .2s, border-color .2s;
}
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after {
    content: "";
    position: absolute;
    left: 6.5px; top: 2.5px;
    width: 6px; height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--error); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 선택지 — 테두리 있는 칩(라디오). 고른 칩은 세이지 바탕 + 청록 테두리 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice > span {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
    padding: 8px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-s);
    background: var(--bg);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.choice:hover > span { border-color: var(--accent); }
.choice input:checked + span { border-color: var(--accent); background: var(--sage); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-ink); font-weight: 600; }
.choice input:checked + span small { color: var(--ink-2); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }

/* 스팸 방지 honeypot — 화면 밖 */
.hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

@media (max-width: 767px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------------------------------------------------------------- blocks (콘텐츠 블록 — docs/blocks.md) */
/* 블록은 자기 컨테이너 폭에 반응한다(컨테이너 쿼리). 넓으면 제목 왼쪽 · 내용 오른쪽, 좁으면 위아래로 쌓인다. */
.blocks { container: blocks / inline-size; width: 100%; }
.blocks > * + * { margin-top: clamp(56px, 6vw, 96px); }

.block__heading {
    margin-bottom: 20px;
    font-size: clamp(21px, 1.7vw, 26px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.025em;
}
.prose {
    max-width: 42em;
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-2);
}
.prose p + p { margin-top: 1em; }

@container blocks (min-width: 900px) {
    .block--text,
    .block--list,
    .block--steps,
    .block--facts,
    .block--faq,
    .block--notice,
    .block--quote,
    .block--image-medium,
    .block--cta {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--col-gap);
        align-items: start;
    }
    .block > .block__heading { grid-column: 1 / span 4; margin-bottom: 0; padding-top: 2px; }
    .block > .block__content { grid-column: 5 / span 8; }
}

/* image */
.block__media-link { display: block; }
.block__media-link .media img { transition: transform .6s var(--ease); }
.block__media-link:hover .media img { transform: scale(1.015); }
.block--image figcaption { display: flex; align-items: center; gap: 10px; }
@container blocks (min-width: 900px) {
    .block--image-medium > * { grid-column: 5 / span 5; }
}
@container blocks (max-width: 899px) {
    .block--image-medium { width: 76%; margin-left: auto; }
}

/* image_text — align = 이미지 위치. 치과 데모는 4:3 가로 그림(상담 장면 · 설명도) */
.block-image-text__zoom { display: block; }
.block-image-text__zoom .media { display: block; }
.block-image-text__zoom-label {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}
@media (max-width: 640px) {
    .block-image-text__zoom-label { display: inline-flex; }   /* 작은 화면: 설명도 라벨이 작아지므로 새 탭에서 크게 보기 */
}
.block-image-text__media + .block-image-text__body { margin-top: 24px; }
.block-image-text__body .text-link { margin-top: 20px; }
@container blocks (min-width: 760px) {
    .block--image-text {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--col-gap);
        align-items: center;
    }
    .block-image-text__media + .block-image-text__body { margin-top: 0; }
    .block--image-left .block-image-text__media { grid-column: 1 / span 6; }
    .block--image-left .block-image-text__body { grid-column: 8 / span 5; }
    .block--image-right .block-image-text__media { grid-column: 7 / span 6; grid-row: 1; }
    .block--image-right .block-image-text__body { grid-column: 1 / span 5; grid-row: 1; }
}

/* quote — 세이지 면, 왼쪽 청록 선 */
.block-quote__text {
    position: relative;
    padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 36px);
    border-radius: var(--radius);
    background: var(--sage);
}
.block-quote__text p {
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -.02em;
    color: var(--ink);
}
.block-quote__cite {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
}
.block-quote__cite::before {
    content: "";
    flex: none;
    width: 16px; height: 2px;
    border-radius: 2px;
    background: var(--accent);
}
@container blocks (min-width: 900px) {
    .block--quote > * { grid-column: 5 / span 8; }
}

/* list — 청록 점 */
.block-list { border-top: 1px solid var(--line); }
.block-list li {
    position: relative;
    padding: 14px 0 14px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 16.5px;
    line-height: 1.7;
}
.block-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: calc(14px + .85em - 3px);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* steps — 세로 타임라인 (.timeline 과 같은 모양) */
.block-steps { counter-reset: step; }
.block-steps__item {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 26px;
}
.block-steps__item:last-child { padding-bottom: 0; }
.block-steps__item::before {
    content: "";
    position: absolute;
    left: 17px; top: 36px; bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--sage-2);
}
.block-steps__item:last-child::before { display: none; }
.block-steps__index {
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--accent);
    background: var(--bg);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.block-steps__when {
    grid-column: 2;
    padding-top: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
}
.block-steps__title {
    grid-column: 2;
    padding-top: 5px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.015em;
}
.block-steps__when + .block-steps__title { padding-top: 0; }
.block-steps__body {
    grid-column: 2;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-2);
}
.block-steps__body p + p { margin-top: .7em; }

/* notice — 주의사항 · 가능한 부작용. 옅은 회색 면, 작은 대시 */
.block-notice {
    padding: 6px clamp(18px, 2vw, 26px);
    border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--line);
}
.block-notice li {
    position: relative;
    padding: 13px 0 13px 20px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ink-2);
}
.block-notice li + li { border-top: 1px solid var(--line); }
.block-notice li::before {
    content: "";
    position: absolute;
    left: 0; top: calc(13px + .87em);
    width: 9px; height: 1.5px;
    background: var(--ink-3);
}

/* gallery — 4:5. 1장: 읽기 축 / 2장: 나란히 / 3장 이상: 3열 */
.block--gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--col-gap); }
.block-gallery--single > * { grid-column: 1 / -1; width: 76%; justify-self: end; }
@container blocks (min-width: 900px) {
    .block--gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .block--gallery > * { grid-column: span 4; }
    .block-gallery--single > * { grid-column: 5 / span 5; width: auto; justify-self: stretch; }
    .block-gallery--pair > :nth-child(1) { grid-column: 1 / span 6; }
    .block-gallery--pair > :nth-child(2) { grid-column: 7 / span 6; }
}
@media (max-width: 640px) {
    /* 모바일: 한쪽으로 치우친 76% 액자(image medium · gallery 1장) 대신 본문 폭 전체 */
    .block--image-medium { width: auto; margin-left: 0; }
    .block-gallery--single > * { width: auto; justify-self: stretch; }
}

/* cta — 세이지 면 위 문장과 버튼 하나 */
.block--cta {
    padding: clamp(28px, 3.6vw, 52px);
    border-radius: var(--radius);
    background: var(--sage);
}
.block-cta__heading {
    font-size: clamp(23px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.block-cta__aside { margin-top: 18px; }
.block-cta__aside .prose { color: var(--ink-2); }
.block-cta__aside .button { margin-top: 24px; }
@container blocks (min-width: 900px) {
    .block--cta { align-items: center; }
    .block-cta__heading { grid-column: 1 / span 6; }
    .block-cta__aside { grid-column: 8 / span 5; margin-top: 0; }
}

/* ---------------------------------------------------------------- next links (더 알아보기 · 방문 안내) */
/* 페이지 끝에서 다음으로 갈 곳 2–3개. 헤어라인 행, 이름 · 한 줄 설명 · 화살표 */
.next-links { padding: clamp(48px, 5vw, 80px) 0 var(--section-y); }
.next-links__title { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.next-links__list { margin-top: 12px; border-top: 2px solid var(--ink); }
.next-links__link {
    display: grid;
    grid-template-columns: minmax(160px, 30%) minmax(0, 1fr) 20px;
    column-gap: var(--col-gap);
    align-items: center;
    min-height: 72px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    transition: color .2s;
}
.next-links__label { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.03em; }
.next-links__text { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.next-links__link .arrow { color: var(--accent); transition: transform .3s var(--ease); }
.next-links__link:hover .next-links__label { color: var(--accent); }
.next-links__link:hover .arrow { transform: translateX(4px); }
@media (max-width: 767px) {
    .next-links__link { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 4px; }
    .next-links__text { grid-column: 1; grid-row: 2; font-size: 15px; }
    .next-links__link .arrow { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------------------------------------------------------------- info list · hours */
.info-list > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.7;
}
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list > div > dt { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.info-list__note { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14.5px; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; }
.hours > div + div { margin-top: 2px; }
.hours dt { color: var(--ink-2); }
.hours dd { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
@media (max-width: 519px) {
    .info-list > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    padding: clamp(56px, 6vw, 88px) 0 32px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-2);
}
.site-footer__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 40px;
}
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__brand .site-logo__type { height: 24px; }
.site-footer__brand p { margin-top: 16px; max-width: 320px; }
.site-footer__tel {
    display: inline-block;
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.site-footer__nav {
    grid-column: 5 / span 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--col-gap);
}
.site-footer__nav h2,
.site-footer__hours h2 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.site-footer__nav li + li { margin-top: 4px; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__hours { grid-column: 10 / span 3; }
.site-footer__hours span { display: block; font-variant-numeric: tabular-nums; }

.site-footer__bottom {
    margin-top: clamp(48px, 5vw, 72px);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-3);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-footer__notice { margin-top: 8px; max-width: 820px; }
.site-footer__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.site-footer__meta span:last-child { display: flex; gap: 20px; }
.site-footer__meta a { color: var(--ink-2); font-weight: 500; }
.site-footer__meta a:hover { color: var(--accent); }

/* 제작사 정보 · 데모 고지 (inc.devteam_credit) — 푸터 안, 흰 면 */
.devteam-credit {
    margin-top: 28px;
    padding: 20px clamp(18px, 2vw, 26px);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-2);
}
.devteam-credit__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.devteam-credit__notice { margin-top: 6px; max-width: 860px; }
.devteam-credit__info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 12px;
}
.devteam-credit__info > div { display: flex; gap: 6px; }
.devteam-credit__info dt { color: var(--ink-3); }
.devteam-credit__info a { color: var(--accent); }

/* ---------------------------------------------------------------- popup */
.popup-layer {
    position: fixed;
    right: var(--gutter);
    bottom: 24px;
    z-index: 60;
    width: min(360px, calc(100vw - 2 * var(--gutter)));
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 0 18px 48px rgba(28, 35, 33, .16), 0 0 0 1px var(--line);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.popup-layer.is-open { opacity: 1; visibility: visible; transform: none; }
.menu-open .popup-layer { opacity: 0; visibility: hidden; }
.popup-layer__items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.popup { flex: 0 0 100%; scroll-snap-align: start; }
.popup__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); }
.popup__media img { width: 100%; height: 100%; object-fit: cover; }
.popup__body { padding: 20px 22px; }
.popup__title { font-size: 17px; font-weight: 700; line-height: 1.5; }
.popup__text { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.popup__body .text-link { margin-top: 10px; }
.popup-layer__bar {
    display: flex;
    justify-content: space-between;
    padding: 4px 22px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
}
.popup-layer__bar button { min-height: 44px; }
.popup-layer__bar button:hover { color: var(--accent); }
@media (max-width: 767px) {
    .popup-layer { top: calc(var(--header-h) + 8px); bottom: auto; left: 12px; right: 12px; width: auto; transform: translateY(-12px); }
    .popup__media { display: none; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1099px) {
    .section-head > :first-child { grid-column: 1 / span 9; }
    .section-head > :last-child:not(:first-child) { grid-column: 1 / span 9; margin-top: 18px; }
    .site-footer__brand { grid-column: 1 / span 12; }
    .site-footer__nav { grid-column: 1 / span 7; }
    .site-footer__hours { grid-column: 8 / span 5; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 767px) {
    body { font-size: 16.5px; }
    .section-head > :first-child,
    .section-head > :last-child:not(:first-child) { grid-column: 1 / -1; }
    .ratio-21x9 { aspect-ratio: 4 / 3; }
    .site-footer__nav { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    .site-footer__hours { grid-column: 1 / -1; }
    .site-footer__meta { flex-direction: column; }
    .faq__a { padding-right: 0; }
}

/* ---------------------------------------------------------------- touch targets */
/* 손가락으로 누르는 화면: 글자 크기는 그대로, 누르는 영역만 높이 44px 안팎으로 넓힌다 */
@media (pointer: coarse) {
    .text-link { min-height: 44px; }
    .site-logo { min-height: 44px; }
    .facts a,
    .prose a { position: relative; }
    .facts a::before,
    .prose a::before { content: ""; position: absolute; inset: -12px -4px; }
    .site-footer__nav li + li { margin-top: 0; }
    .site-footer__nav a { display: block; padding: 10px 0; }
    .site-footer__meta a,
    .site-menu__info a,
    .demo-bar__link { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}
