/* ADLIFT — Product Practice
   Surfaces: paper -> soft -> ink. One dark surface, one accent, no cards. */

:root {
    /* Ink and neutrals */
    --ink: #12151b;
    --ink-soft: #3d4450;
    --muted: #5b636f;
    --line: #dfe3e9;
    --line-strong: #12151b;
    --soft: #f2f4f7;
    --paper: #fff;

    /* Accent — used at structural moments, not as decoration */
    --brand: #2452d6;
    --brand-tint: #edf1fc;
    --brand-on-dark: #a9beff;

    /* On the ink surface */
    --on-ink: #c9cfd9;
    --on-ink-line: #2c313a;

    /* Spacing — 8pt */
    --s1: 8px;
    --s2: 16px;
    --s3: 24px;
    --s4: 40px;
    --s5: 64px;
    --s6: 96px;
    --s7: 120px;
    --s8: 160px;

    --shell: min(1200px, calc(100vw - 64px));
    --header: 76px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    letter-spacing: -.006em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
    font-feature-settings: "tnum" 1;
}

body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
figure { margin: 0; }
address { font-style: normal; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: var(--s2); top: 12px; padding: 10px 14px; color: #fff; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Focus — solid, so it clears 3:1 on every surface it can land on. */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.direction :focus-visible,
.statement-section :focus-visible,
.scope-section :focus-visible,
.site-footer :focus-visible,
.mobile-navigation :focus-visible { outline-color: var(--brand-on-dark); }

/* ---------- Type ---------- */

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.028em; text-wrap: balance; }

h1 {
    margin-bottom: var(--s3);
    font-size: clamp(2.5rem, 4.4vw, 3.75rem);
    line-height: 1.16;
    font-weight: 700;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.26;
    font-weight: 650;
}

h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }

.lead {
    max-width: 46ch;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1.1875rem;
    line-height: 1.72;
    text-wrap: pretty;
}

/* Editorial line breaks on wide screens; natural balanced wrapping below. */
.line { display: block; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.6) blur(10px);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 160px; height: 40px; object-fit: contain; }

.desktop-nav { display: flex; align-items: center; gap: var(--s4); margin-left: auto; margin-right: var(--s4); }
.desktop-nav a, .language-link { position: relative; color: var(--ink-soft); font-size: .9375rem; font-weight: 550; }
.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1.5px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"], .language-link:hover { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }

/* ---------- Buttons ---------- */

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 0 var(--s3);
    border: 1px solid var(--ink);
    border-radius: 3px;
    color: #fff;
    background: var(--ink);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.button span { transition: transform .3s var(--ease); }
.button:hover { background: var(--brand); border-color: var(--brand); }
.button:hover span { transform: translate(2px, -2px); }

.button--ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.button--ghost:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.button--small { min-height: 40px; padding-inline: var(--s2); font-size: .8125rem; }

.button--light { color: var(--ink); background: #fff; border-color: #fff; }
.button--light:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

.menu-button { display: none; width: 44px; height: 44px; padding: 12px 9px; border: 0; background: none; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: currentColor; }
.mobile-navigation { display: none; }

/* ---------- Section scaffolding ---------- */

.section { padding: var(--s7) 0; }
.section--soft { background: var(--soft); }
.section--bordered { border-top: 1px solid var(--line); }

/* Single-column heading. The old 210px marginalia column carried one small
   label and read as unfinished, so the index number carries the hierarchy. */
.section-heading { max-width: 46ch; margin-bottom: var(--s5); }
.section-heading > p { margin: var(--s3) 0 0; color: var(--ink-soft); }

.index {
    display: block;
    margin-bottom: var(--s2);
    color: var(--brand);
    font-size: .9375rem;
    font-weight: 650;
    letter-spacing: .02em;
}

/* ---------- Heroes ---------- */

.home-hero, .page-hero { padding: var(--s6) 0 var(--s7); }

/* The image column stretches to the copy height instead of bottom-aligning at
   a fixed ratio, which is what left a 200px void beside the old hero. */
.home-hero__grid, .page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .78fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: stretch;
}
.home-hero__copy, .page-hero__copy { min-width: 0; align-self: center; }
.home-hero__media, .page-hero__media { display: flex; flex-direction: column; }
.home-hero__media img, .page-hero__media img {
    flex: 1;
    min-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--soft);
    filter: saturate(.94) contrast(1.01);
}

.actions { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4); }

/* Fact strip — checkable company facts directly under the claim. */
.fact-strip {
    margin: 0 0 var(--s6);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line-strong);
}
.fact-strip > div { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); }
.fact-strip > div + div { padding-left: var(--s3); border-left: 1px solid var(--line); }
.fact-strip dt { margin: 0 0 6px; color: var(--muted); font-size: .8125rem; }
.fact-strip dd { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; }

/* ---------- Business ledger ---------- */

.service-ledger { border-top: 1px solid var(--line-strong); }
.service-ledger article {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--s2);
    padding: var(--s4) var(--s3) var(--s4) 0;
    border-bottom: 1px solid var(--line);
    transition: background .25s var(--ease);
}
.service-ledger article:hover { background: var(--brand-tint); }
.service-ledger .ledger-num { color: var(--brand); font-size: .9375rem; font-weight: 650; line-height: 1.5; }
.service-ledger h3 { margin: 0 0 var(--s1); }
.service-ledger p { max-width: 62ch; margin: 0; color: var(--ink-soft); }
.service-ledger .ledger-keys { margin-top: var(--s2); color: var(--muted); font-size: .875rem; }

/* ---------- Ink surface ---------- */

.direction, .statement-section, .scope-section { color: #fff; background: var(--ink); }
.direction { padding: var(--s8) 0; overflow: clip; }
.statement-section, .scope-section { padding: var(--s7) 0; }

.direction__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(48px, 6vw, 88px); align-items: center; }

/* Bleed the evidence image to the viewport edge — the one section that breaks
   the otherwise uniform 1200px column. */
.direction figure { margin-left: calc((100vw - var(--shell)) / -2); }
.direction figure img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0 4px 4px 0; filter: saturate(.92) contrast(1.01); }

.direction .index { color: var(--brand-on-dark); }
.direction p:not(.index) { max-width: 46ch; margin: var(--s3) 0 var(--s4); color: var(--on-ink); }

/* Measured evidence for the "inventory we own" claim, kept restrained —
   a figure, not a hero stat. */
.direction .evidence { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s2); max-width: none; margin: 0 0 var(--s4); color: var(--on-ink); font-size: .9375rem; }
.direction .evidence strong { color: var(--brand-on-dark); font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }

.direction__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s4); padding: 0; margin: 0; list-style: none; }
.direction__list li { padding: 14px 0; border-top: 1px solid var(--on-ink-line); font-size: .9375rem; font-weight: 500; }

.statement-section .index, .scope-section .index { color: var(--brand-on-dark); }

/* Statement bands split heading and body so the ink surface is not half empty. */
.statement-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
.statement-grid > div > p { max-width: 46ch; margin: 0; color: var(--on-ink); font-size: 1.0625rem; }
.statement-grid .button { margin-top: var(--s4); }

/* ---------- Numbered lists ---------- */

.process-list, .principle-grid, .culture-list { padding: 0; margin: 0; list-style: none; }

.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.process-list li { padding-top: var(--s3); border-top: 1px solid var(--line-strong); }
.process-list h3 { margin: var(--s2) 0 var(--s1); }
.process-list p, .principle-grid p, .culture-list p { max-width: 42ch; margin: 0; color: var(--ink-soft); }

.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
.principle-grid li { padding-top: var(--s3); border-top: 1px solid var(--line-strong); }
.principle-grid h3 { margin: var(--s2) 0 var(--s1); }

.culture-list { border-top: 1px solid var(--line-strong); }
.culture-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s2); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.culture-list h3 { margin: 0 0 var(--s1); }

.process-list .index, .principle-grid .index, .culture-list .index { margin-bottom: 0; }

/* ---------- Company facts ---------- */

.company-facts { margin: 0; border-top: 1px solid var(--line-strong); }
.company-facts > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.company-facts dt { color: var(--muted); font-size: .9375rem; }
.company-facts dd { margin: 0; font-weight: 550; }
.company-facts a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact ---------- */

.contact-section { padding: var(--s7) 0; }
.contact-section__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(48px, 6vw, 88px); align-items: start; }
.contact-section h2 { margin-bottom: var(--s3); }
.contact-section p:not(.index) { max-width: 46ch; margin-bottom: 0; color: var(--ink-soft); }
.contact-card { padding: var(--s4) var(--s3); background: var(--soft); border-radius: 4px; }
.contact-card .button { width: 100%; }
.contact-card address { margin-top: var(--s3); color: var(--muted); font-size: .875rem; line-height: 1.6; }
.contact-card__link { margin: var(--s2) 0 0; font-size: .875rem; font-weight: 550; }
.contact-card__link a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.contact-card__link span { display: inline-block; transition: transform .3s var(--ease); }
.contact-card__link a:hover span { transform: translateX(3px); }

.fact-strip dd a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.company-facts dd a:hover, .fact-strip dd a:hover, .contact-card__link a:hover { color: var(--ink); }

/* ---------- Error pages ---------- */

.error-page { min-height: 60vh; display: grid; align-items: center; padding: var(--s7) 0; }
.error-page h1 { margin-bottom: var(--s2); }
.error-page p:not(.index) { margin-bottom: var(--s4); color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { padding: var(--s5) 0 var(--s4); color: var(--on-ink); background: var(--ink); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: start; }
.site-footer .logo img { filter: brightness(0) invert(1); }
.footer-main > div > p { max-width: 46ch; margin: var(--s3) 0 0; color: var(--on-ink); font-size: .875rem; }
.footer-main nav { display: flex; gap: var(--s4); }
.footer-main nav a { color: #fff; font-size: .875rem; font-weight: 500; }
.footer-main nav a:hover { color: var(--brand-on-dark); }

.footer-legal { padding-top: var(--s3); margin-top: var(--s4); border-top: 1px solid var(--on-ink-line); color: #98a0ac; font-size: .8125rem; line-height: 1.75; }
.footer-legal p { margin: 0; }
.footer-legal .footer-copyright { margin-top: var(--s1); }

/* ---------- Reveal ---------- */

/* Scoped to .js-reveal so a JS error can never leave the page blank —
   without the class every section stays visible. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
    :root { --shell: min(100% - 40px, 760px); }
    .desktop-nav, .header-actions > .language-link, .header-actions > .button { display: none; }
    .menu-button { display: block; }

    .home-hero__grid, .page-hero__grid { grid-template-columns: 1fr; gap: var(--s5); }
    .home-hero__media, .page-hero__media { width: min(100%, 640px); }
    .home-hero__media img, .page-hero__media img { flex: none; min-height: 0; aspect-ratio: 3 / 2; }

    .fact-strip { grid-template-columns: repeat(2, 1fr); }
    .fact-strip > div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .fact-strip > div:nth-child(even) { padding-left: var(--s3); border-left: 1px solid var(--line); }

    .direction__grid, .statement-grid { grid-template-columns: 1fr; gap: var(--s4); }
    .direction figure { margin-inline: calc((100vw - var(--shell)) / -2); }
    .direction figure img { border-radius: 0; }

    .process-list { grid-template-columns: 1fr; gap: var(--s4); }
    .contact-section__inner { grid-template-columns: 1fr; }
    .contact-card { max-width: 420px; }

    .mobile-navigation { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; padding: 17px 20px 28px; overflow-y: auto; overscroll-behavior-y: contain; color: #fff; background: var(--ink); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), visibility .25s var(--ease); }
    /* Only opacity animates on open, so visibility flips in the same frame and
       the close button can actually take focus. */
    .mobile-navigation.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .25s var(--ease); }
    .mobile-navigation__top { height: 44px; display: flex; align-items: center; justify-content: space-between; }
    .mobile-navigation .logo img { filter: brightness(0) invert(1); }
    .mobile-navigation__top button { width: 44px; height: 44px; padding: 0; border: 0; color: #fff; background: none; font-size: 30px; line-height: 1; cursor: pointer; }
    .mobile-navigation nav { display: grid; gap: var(--s1); margin-top: var(--s5); }
    .mobile-navigation nav a { padding: 6px 0; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.24; font-weight: 620; letter-spacing: -.03em; }
    .mobile-navigation__bottom { display: flex; justify-content: space-between; padding-top: var(--s3); margin-top: auto; border-top: 1px solid var(--on-ink-line); color: var(--on-ink); font-size: .875rem; }
    .mobile-navigation__bottom a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* A phone in landscape has desktop-like width but very little height. Keep
   every destination visible, while retaining panel scrolling as a fallback. */
@media (max-width: 980px) and (max-height: 520px) {
    .mobile-navigation { padding: 12px 20px 16px; }
    .mobile-navigation__top { height: 44px; min-height: 44px; }
    .mobile-navigation__top .logo { min-height: 44px; display: inline-flex; align-items: center; }
    .mobile-navigation nav { gap: 0; margin-top: 12px; }
    .mobile-navigation nav a { min-height: 44px; display: flex; align-items: center; padding: 2px 0; font-size: clamp(1.5rem, 7vh, 2rem); line-height: 1.15; }
    .mobile-navigation__bottom { padding-top: var(--s1); }
}

/* Below this width the hand-set editorial breaks stop helping, so headings
   reflow as one balanced sentence. Declared before the 700px block so the
   mobile overrides below still win. */
@media (max-width: 820px) {
    .line { display: inline; }
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
    :root { --shell: calc(100% - 32px); --header: 66px; --s6: 64px; --s7: 80px; --s8: 96px; }
    .logo img { width: 136px; height: 34px; }
    body { line-height: 1.68; }

    h1 { margin-bottom: var(--s2); font-size: clamp(2.125rem, 9vw, 2.625rem); line-height: 1.2; }
    h2 { font-size: clamp(1.625rem, 7vw, 2rem); line-height: 1.28; }
    h3 { font-size: 1.125rem; }
    .lead { font-size: 1.0625rem; }

    .home-hero, .page-hero { padding: var(--s4) 0 var(--s5); }
    .actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: var(--s4); }
    .actions .button { width: 100%; }

    .section-heading { margin-bottom: var(--s4); }

    .fact-strip { grid-template-columns: 1fr; }
    .fact-strip > div, .fact-strip > div:nth-child(even) { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding: 14px 0; border-left: 0; }
    .fact-strip dt { margin-bottom: 0; }
    .fact-strip dd { font-size: 1rem; text-align: right; }

    .service-ledger article { grid-template-columns: 1fr; gap: 6px; padding: var(--s3) 0; }
    .service-ledger article:hover { background: none; }
    .service-ledger .ledger-num { font-size: .875rem; }

    .direction__list { grid-template-columns: 1fr; gap: 0; }

    .principle-grid { grid-template-columns: 1fr; gap: var(--s4); }
    .culture-list li { grid-template-columns: 1fr; gap: 6px; padding: var(--s3) 0; }

    .company-facts > div { grid-template-columns: 1fr; gap: 4px; padding: var(--s2) 0; }

    .contact-card { max-width: none; padding: var(--s3) var(--s3) var(--s4); }

    .footer-main { grid-template-columns: 1fr; gap: var(--s4); }
    .footer-main nav { flex-wrap: wrap; gap: 12px var(--s3); }
}

@media (pointer: coarse) {
    .company-facts a,
    .contact-card__link a,
    .footer-main nav a,
    .site-footer .logo { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Reduced motion ---------- */

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