:root {
  color-scheme: light;
  --ink: #142e42;
  --navy: #0b2638;
  --muted: #48606e;
  --accent: #23636e;
  --accent-dark: #144f59;
  --pale: #eef5f6;
  --line: #cbd9dc;
  --paper: #fff;
  --seafoam: #a7dbe0;
  --wrap: 1360px;
  --gutter: clamp(22px, 4.45vw, 76px);
  --header: 88px;
  --section: clamp(60px, 8vw, 125px);
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #137180; outline-offset: 5px; }
.hero :focus-visible, .dark :focus-visible, .site-footer :focus-visible, .appointment-hero :focus-visible { outline-color: #b5f1f2; }
[hidden], html[lang="en"] span[lang="ko"], html[lang="ko"] span[lang="en"] { display: none !important; }
html[lang="ko"] :is(h1,h2,h3,p) { word-break: keep-all; overflow-wrap: anywhere; }
[id] { scroll-margin-top: calc(var(--header) + 18px); }
#main:focus { outline: none; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 10px; transform: translateY(-150%); background: white; padding: 12px 18px; }
.skip:focus { transform: none; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { font-weight: 530; }
h1 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: .99; letter-spacing: -.065em; margin-bottom: 21px; }
h2 { font-size: clamp(1.95rem, 4.1vw, 4rem); line-height: 1.05; letter-spacing: -.054em; margin-bottom: 18px; }
h3 { font-size: clamp(1.03rem, 1.5vw, 1.26rem); line-height: 1.36; letter-spacing: -.025em; margin-bottom: 9px; }
.eyebrow { color: var(--accent); font-size: .67rem; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; margin: 0 0 20px; }
.marker { display: flex; align-items: center; gap: 12px; }
.marker::before { content: ""; width: 27px; height: 1px; background: currentColor; flex: none; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.16rem); max-width: 67ch; margin-bottom: 0; }

.header { position: sticky; top: 0; z-index: 3; background: #f9fbfc; border-bottom: 1px solid #d4e0e4; }
.head { min-height: var(--header); display: flex; align-items: center; gap: clamp(13px, 2.8vw, 42px); }
.brand { flex: none; margin-right: auto; text-decoration: none; line-height: 1; }
.brand-wordmark { display: inline-block; font: 800 1.95rem/1 Arial, sans-serif; letter-spacing: -.055em; white-space: nowrap; }
.brand-korean { display: inline-block; color: var(--navy); font-size: clamp(1rem, 2vw, 1.47rem); font-weight: 760; letter-spacing: -.065em; line-height: 1.2; white-space: nowrap; }
.brand-name { color: var(--navy); }
.brand-suffix { color: var(--accent); }
.brand-description { display: block; color: var(--accent); font-weight: 680; font-size: .64rem; margin-top: 6px; line-height: 1.25; }
#navigation { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 29px); }
#navigation a { display: inline-flex; align-items: center; min-height: 45px; position: relative; text-decoration: none; font-size: .78rem; font-weight: 620; white-space: nowrap; }
#navigation a:hover, #navigation a[aria-current="page"] { color: var(--accent); }
#navigation a[aria-current="page"]::after { position: absolute; content: ""; bottom: 3px; left: 0; right: 0; height: 1px; background: var(--accent); }
.actions, .languages { display: flex; align-items: center; }
.actions { gap: 14px; }
.languages { gap: 2px; }
.languages button { min-height: 38px; min-width: 35px; padding: 3px 5px; border: 0; background: transparent; color: var(--muted); font-weight: 650; font-size: .73rem; white-space: nowrap; }
.languages button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; color: var(--accent-dark); }
.menu { display: none; min-height: 43px; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: .8rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 49px; padding: 10px 18px; background: var(--accent); color: white; border: 1px solid transparent; border-radius: 0; font-size: .86rem; font-weight: 660; text-decoration: none; }
.button:hover { background: var(--accent-dark); }
.button.small { min-height: 42px; font-size: .77rem; padding-inline: 15px; gap: 7px; white-space: nowrap; }
.text-link, .hero-primary, .hero-secondary, .hero-scroll, .hero-link { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; font-size: .86rem; font-weight: 670; }
.text-link { gap: 22px; min-height: 44px; color: var(--accent-dark); }
.text-link:hover, .hero-secondary:hover, .hero-scroll:hover, .hero-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.arrow { flex: none; }

.hero { position: relative; isolation: isolate; display: grid; align-content: space-between; color: white; background: var(--navy); min-height: clamp(550px, calc(100vh - var(--header)), 790px); }
.hero-media { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(6,25,42,.94) 0%, rgba(12,36,53,.76) 37%, rgba(13,37,51,.32) 76%), linear-gradient(0deg, rgba(5,26,43,.8) 0%, transparent 56%), url("assets/terminal.webp") center 58% / cover; }
.hero-inner { align-self: center; padding: clamp(72px, 10vw, 142px) clamp(0px, 3.4vw, 50px) 62px; }
.hero .eyebrow, .dark .eyebrow, .appointment-hero .eyebrow { color: var(--seafoam); }
.hero h1 { font-size: clamp(3.05rem, 6.4vw, 7.6rem); font-weight: 470; letter-spacing: -.061em; text-transform: uppercase; line-height: .99; margin-bottom: 29px; }
html[lang="ko"] .hero h1 { font-size: clamp(2.7rem, 6.1vw, 6.4rem); line-height: 1.08; }
.intro { color: #eff6fb; max-width: 58ch; font-size: clamp(1rem, 1.45vw, 1.2rem); margin: 0; }
.hero-cta { margin-top: 28px; display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px 24px; }
.hero-primary { justify-content: space-between; gap: 21px; border-bottom: 1px solid var(--seafoam); min-height: 52px; padding: 0 5px 0 0; min-width: 178px; }
.hero-primary .arrow { font-size: 1.2rem; color: var(--seafoam); }
.hero-primary:hover { background: #ffffff12; }
.hero-secondary { min-height: 49px; padding-inline: 8px; color: #e5f1f5; }
.hero-bottom { min-height: 70px; border-top: 1px solid #a8dde652; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 10px; }
.hero-bottom > span { color: #eff9fc; font-weight: 640; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-scroll { color: #eff9fc; font-size: .75rem; min-height: 40px; }
.hero-scroll .arrow { color: var(--seafoam); }

.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(24px, 3.5vw, 46px); }
.section-head h2:last-child, .section-bar h2 { margin-bottom: 0; }
.section-bar { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-bar > .text-link { flex: none; }
.pale { background: var(--pale); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 8.5vw, 118px); align-items: start; }
.intro-grid h2 { margin-bottom: 0; }
.intro-grid .text-link { margin-top: 17px; }
.facts { margin-top: clamp(28px, 5vw, 65px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-grid > div { padding: 16px 2px; display: grid; gap: 2px; align-items: baseline; }
.facts-grid > div + div { border-left: 1px solid var(--line); padding-left: clamp(12px, 2.6vw, 38px); }
.facts b { font-size: clamp(.9rem, 1.8vw, 1.25rem); font-weight: 630; }
.facts-grid > div > span { color: var(--muted); font-size: .8rem; }

.services, .cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service-card { padding: clamp(20px, 3vw, 44px) clamp(13px, 2vw, 29px) clamp(21px, 3vw, 37px) 0; border-bottom: 1px solid var(--line); }
.service-card:not(:nth-child(3n+1)) { padding-left: clamp(15px, 2.8vw, 39px); border-left: 1px solid var(--line); }
.service-card p, .case-card div > p:last-child, .credentials p { color: var(--muted); font-size: .92rem; margin: 0; }
.icon { display: flex; align-items: center; color: var(--accent); height: 42px; margin-bottom: 10px; }
.icon svg { width: 28px; height: 28px; }
.case-feature { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(25px, 6vw, 82px); margin-bottom: clamp(24px, 4vw, 56px); }
.case-feature .text-link { margin-top: 15px; }
.case-feature img { width: 100%; aspect-ratio: 2.15; object-fit: cover; object-position: center 60%; }
.case-feature-actions { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 12px; }
.case-feature-actions .text-link { margin-top: 0; }
.video-library { margin-top: clamp(42px, 7vw, 96px); }
.video-library-heading { margin-bottom: clamp(12px, 2.6vw, 32px); }
.video-library-heading h2 { margin-bottom: 12px; }
.video-library-links { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 30px); }
.video-library-links .text-link { gap: 9px; }
.case-video-notice { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.case-video { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 70px); align-items: start; padding-block: clamp(24px, 4vw, 49px); border-top: 1px solid var(--line); }
.case-video h3 { font-size: clamp(1.75rem, 3vw, 2.85rem); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 14px; }
.case-video-meta, .case-video figcaption { color: var(--muted); font-size: .78rem; }
.case-video-meta { margin-top: 18px; margin-bottom: 0; }
.case-video :is(video,iframe) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--navy); border: 0; }
.case-video figcaption { margin-top: 10px; }
.case-video figcaption a { text-underline-offset: 3px; }
.case-video .text-link { min-height: 36px; font-size: .79rem; }

.cases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 26px); border-top: 0; }
.case-card { min-width: 0; background: white; }
.case-card img { width: 100%; aspect-ratio: 1.49; object-fit: cover; background: var(--pale); }
.case-card .case-sinking-photo { object-position: center 74%; }
.case-card > div { padding: 19px 1px 23px; border-bottom: 1px solid var(--line); }

.case-card .eyebrow { margin-bottom: 7px; }
.inner-page .case-card { background: transparent; }
.inner-page #cases .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 58px); }
.inner-page #cases .case-card img { aspect-ratio: 1.75; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-grid article { padding: 27px 22px 23px 0; }
.quick-grid article + article { padding-left: clamp(12px, 3vw, 40px); border-left: 1px solid var(--line); }
.quick-grid h2 { font-size: clamp(1.3rem, 2.4vw, 2.25rem); margin-bottom: 10px; }
.quick-grid p { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }

.network-brief, .dark { color: white; background: #0d2b3e; }
.network-brief .eyebrow, .network-brief .text-link, .dark .text-link { color: var(--seafoam); }
.network-brief .lede, .dark .lede, .dark details p { color: #c9dfe7; }
.network-brief .text-link { margin-top: 13px; }
.network-location { align-self: start; border: 1px solid #8bb0be60; padding: clamp(19px, 3vw, 36px); background: #ffffff08; }
.network-location h3 { margin-bottom: 8px; }
.network-location p { margin: 0; color: #c9dfe7; }
.network-location .text-link { margin-top: 10px; }

.network-grid, .about-grid, .people-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6.5vw, 100px); align-items: start; }
.about-image img { width: 100%; aspect-ratio: 1.65; object-fit: cover; object-position: center 55%; }
.approach { margin: 22px 0 0; padding-left: 20px; color: var(--muted); }
.approach li + li { margin-top: 6px; }
.approach li::marker { color: var(--accent); }
.history { margin-top: clamp(34px, 5vw, 67px); }
.history ol { list-style: none; padding: 0; margin: 17px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.history li { border-top: 1px solid var(--line); padding: 16px 16px 0 0; position: relative; }
.history li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
time { font-weight: 740; color: var(--accent-dark); }
.history li p { color: var(--muted); font-size: .86rem; margin: 4px 0 0; }
.credentials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credentials li { padding-block: 20px; border-bottom: 1px solid var(--line); }

.more, .dark details { margin-top: 24px; border-top: 1px solid var(--line); }
.more summary, .dark summary { color: var(--accent-dark); font-weight: 670; padding-block: 14px; }
.dark details { border-color: #8bb0be60; }
.dark summary { color: var(--seafoam); }
.dark details p { margin-bottom: 0; }
.reference-list, .process-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.reference-list li, .process-list li { min-width: 0; border-bottom: 1px solid var(--line); padding: 17px 0; }
.reference-list p, .process-list p, .response-note { color: var(--muted); font-size: .92rem; margin: 0; overflow-wrap: anywhere; }
.dark .reference-list li { border-color: #8bb0be60; }
.process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; border-top: 1px solid var(--line); }
.process-list li { padding-block: 24px; }
.workflow { margin-top: 45px; max-width: 880px; }

.contact-section { background: var(--pale); }
.contact-grid { grid-template-columns: .85fr 1.15fr; }
.contact-grid address { display: grid; gap: 8px; justify-items: start; margin-top: 22px; font-style: normal; font-weight: 680; }
.contact-grid address a, .legal-links a { color: var(--accent-dark); text-underline-offset: 4px; }
.response-note { margin-top: 13px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin-top: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 690; }
.social-link img { width: 22px; height: 22px; object-fit: contain; }
.social > img { width: 140px; margin-top: 14px; }
.directions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px clamp(24px, 6vw, 90px); }
.directions-grid address { color: var(--ink); font-style: normal; font-weight: 630; }
.directions-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 10px; }
.directions-grid .directions-note { margin-bottom: 0; color: var(--muted); }
.contact-panel { background: white; border: 1px solid var(--line); padding: clamp(19px, 3.5vw, 44px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.wide { grid-column: 1/-1; }
.form-note, #form-status { font-size: .86rem; color: var(--muted); margin: 0; }
#form-status:empty { display: none; }
label { min-width: 0; display: block; font-size: .86rem; font-weight: 670; }
input, textarea { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 10px; border: 1px solid #829eab; border-radius: 0; background: white; color: var(--ink); font-weight: 400; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline-offset: 1px; }

.page-hero { background: #e8f1f3; border-bottom: 1px solid var(--line); }
.page-hero-inner { padding-block: clamp(47px, 6.5vw, 98px); }
.page-hero h1 { font-size: clamp(2.83rem, 6.5vw, 6.35rem); }
.page-hero .eyebrow { margin-bottom: 17px; }
.page-hero + .section { padding-top: clamp(43px, 6vw, 85px); }
.page-cta { background: #eef5f6; border-top: 1px solid var(--line); padding-block: clamp(33px, 5.7vw, 75px); }
.page-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; }
.page-cta h2 { font-size: clamp(1.63rem, 3.3vw, 2.95rem); margin: 0; }

.ecmid-hero .page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); align-items: end; gap: 28px clamp(28px, 5.5vw, 88px); }
.ecmid-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin-top: 24px; }
.ecmid-ipk { display: grid; gap: 10px; min-width: 0; padding: clamp(20px, 2.7vw, 36px); border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.ecmid-ipk-name { color: var(--navy); font-size: clamp(1.8rem, 3.1vw, 3.15rem); font-weight: 620; letter-spacing: -.055em; line-height: 1.1; }
.ecmid-ipk-action { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 7px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: .86rem; font-weight: 670; }
.ecmid-ipk:hover { border-color: var(--accent); }
.ecmid-ipk:hover .ecmid-ipk-action span[lang] { text-decoration: underline; text-underline-offset: 4px; }
.ecmid-resources { margin-top: 12px; }
#inspection-enquiry .lede { margin-top: 12px; }
#services > .text-link { margin-top: 12px; }

.appointment-hero { color: white; background: linear-gradient(96deg, #071e2df7 16%, #071e2ddd 58%, #071e2da1), url("assets/terminal.webp") center 47% / cover; }
.appointment-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(25px, 7vw, 100px); align-items: center; padding-block: clamp(58px, 8vw, 108px); }
.appointment-hero h1 { font-size: clamp(2.65rem, 5.5vw, 5.95rem); }
.appointment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 23px; }
.appointment-hero .button { background: var(--seafoam); color: var(--navy); }
.appointment-hero .button:hover { background: #d0f3f5; }
.hero-link { min-height: 42px; }
.appointment-note { padding: 20px 25px; border-left: 1px solid var(--seafoam); background: #0b2a3ce6; }
.appointment-note h2 { color: var(--seafoam); font-size: clamp(1.18rem, 2vw, 1.75rem); letter-spacing: -.025em; }
.appointment-note blockquote { margin: 0 0 14px; font-size: 1.03rem; font-weight: 620; }
.appointment-note p { margin-bottom: 0; color: #d8e8ef; font-size: .88rem; }
.appointment-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.appointment-faq { max-width: 880px; border-top: 1px solid var(--line); }
.appointment-faq details { border-bottom: 1px solid var(--line); }
.appointment-faq summary { padding: 15px 0; font-weight: 675; color: var(--accent-dark); }
.appointment-faq p { color: var(--muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .87rem; }

.site-footer { color: #d6e9ef; background: #0a2435; }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-block: 38px 27px; }
.footer-brand .brand-name, .footer-brand .brand-korean { color: white; }
html[lang="ko"] .brand-tagline { display: none; }
.footer-brand .brand-suffix { color: var(--seafoam); }
.footer-brand .brand-description { color: var(--seafoam); }
.foot p { font-size: .8rem; margin: 9px 0 0; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot a, .footer-bottom a { font-size: .8rem; text-decoration: none; }
.foot a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-company { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding-block: 17px 22px; border-top: 1px solid #8ab2c366; font-size: .8rem; }
.footer-company dt { color: var(--seafoam); font-weight: 670; }
.footer-company dd { margin: 3px 0 0; }
.footer-company a { text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; flex-wrap: wrap; border-top: 1px solid #8ab2c366; padding-block: 14px; }
.footer-top { min-height: 32px; display: inline-flex; align-items: center; gap: 9px; }

@media (max-width: 980px) {
  :root { --header: 72px; }
  .head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 12px; align-items: center; padding-block: 9px; }
  .brand { grid-area: 1 / 1; }
  .actions { grid-area: 1 / 2; }
  .js .menu { display: block; grid-area: 1 / 3; }
  #navigation { grid-area: 2 / 1 / auto / -1; border-top: 1px solid var(--line); margin-top: 9px; flex-wrap: wrap; gap: 3px 18px; padding-block: 5px; }
  .js #navigation:not(.open) { display: none; }
  .hero { min-height: clamp(530px, calc(100vh - var(--header)), 720px); }
  .hero-inner { padding-inline: 0; }
  .cases, .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --header: 68px; }
  .head { gap: 0 8px; }
  .brand-wordmark { font-size: 1.65rem; }
  .header .button.small { display: none; }
  .hero { min-height: 550px; }
  .hero-media { background-position: center, center, 57% center; }
  .hero-inner { padding-block: 77px 42px; }
  .hero h1 { font-size: clamp(2.42rem, 9vw, 4.2rem); }
  .hero .eyebrow { letter-spacing: .11em; }
  .hero-cta { gap: 4px 15px; margin-top: 22px; }
  .hero-secondary { padding-inline: 0; }
  .hero-bottom { min-height: 54px; }
  .hero-bottom > span { font-size: .57rem; letter-spacing: .08em; }
  .hero-scroll { font-size: .67rem; }
  .section-bar { align-items: start; flex-direction: column; gap: 5px; }
  .intro-grid, .about-grid, .network-grid, .people-grid, .contact-grid, .appointment-grid, .case-feature, .case-video { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:not(:nth-child(3n+1)) { border-left: 0; padding-left: 0; }
  .service-card:nth-child(even) { border-left: 1px solid var(--line); padding-left: 15px; }
  .case-card > div { padding-top: 13px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid article, .quick-grid article + article { padding: 16px 0; border-left: none; }
  .quick-grid article + article { border-top: 1px solid var(--line); }
  .history ol { grid-template-columns: 1fr; }
  .history li { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 13px 13px; }
  .history li::before { top: 8px; left: -4px; }
  .ecmid-hero .page-hero-inner, .directions-grid { grid-template-columns: 1fr; }
  .appointment-note { padding: 15px 19px; }
  .appointment-steps { grid-template-columns: 1fr; }
}
@media (max-width: 405px) {
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 0; }
  .hero-scroll { min-height: 30px; }
  .cases, .inner-page #cases .cases, .reference-list, .process-list, form { grid-template-columns: 1fr; }
  .case-card img { aspect-ratio: 1.7; }
}
