/* vara-int.com
   Layout: a full-bleed navy opener with one very large statement and a soft glow from the logo's two blues; then
   "how we build" as short principles (label column + list, like an editorial spread); then each service as a large tile
   in its own color (grows with site/data.json); company facts and the business line last.
   Every color, size and gap comes from these tokens. */
:root {
  --paper: #ffffff;
  --wash: #f3f5fb;
  --ink: #0f1430;
  --ink-2: #545b7a;
  --line: #e1e5ef;
  --navy: #0d1438;
  --navy-ink: #ffffff;
  --navy-ink-2: #aeb9e8;
  --glow-1: #2f6fd0;
  --glow-2: #3b3fb0;
  --brand: #2443a6;
  --on-tile: #ffffff;
  --on-tile-2: rgba(255, 255, 255, .78);
  --tile-chip: rgba(255, 255, 255, .16);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --fs-xs: 13px; --fs-s: 15px; --fs-m: 17px; --fs-l: 21px; --fs-xl: 30px; --fs-2xl: 44px;
  --fs-hero: clamp(40px, 7.2vw, 88px);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --r-chip: 999px; --r-tile: 28px; --r-card: 20px;
  --w: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0f24; --wash: #111733; --ink: #eef1fb; --ink-2: #a3abcc; --line: #222a4d;
    --navy: #070b1f; --navy-ink-2: #9fabdc; --brand: #8ea6ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--fs-m); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--glow-1); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* opener */
.opener { position: relative; overflow: hidden; background: var(--navy); color: var(--navy-ink); isolation: isolate; }
.opener::before, .opener::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.opener::before { width: 620px; height: 620px; right: -160px; top: -220px; background: var(--glow-1); }
.opener::after { width: 520px; height: 520px; right: 180px; bottom: -320px; background: var(--glow-2); }
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-5); }
.top .home { display: block; line-height: 0; }
.top img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; gap: var(--sp-5); font-size: var(--fs-s); }
.nav a { color: var(--navy-ink-2); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--navy-ink); } }
.statement { padding-block: var(--sp-9) var(--sp-10); }
h1 { margin: 0; font-size: var(--fs-hero); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; max-width: 12em; }
/* each line of the statement wraps on its own, so a narrow screen splits "누군가에겐 / 당연한 것을," evenly */
h1 > span { display: block; text-wrap: balance; }
.sub { margin: var(--sp-6) 0 0; max-width: 30em; font-size: var(--fs-l); line-height: 1.6; color: var(--navy-ink-2); }
@media (max-width: 640px) { .statement { padding-block: var(--sp-8) var(--sp-9); } .sub { font-size: var(--fs-m); } .nav a:not(.lang) { display: none; } .opener::before { width: 360px; height: 360px; right: -140px; top: -120px; } .opener::after { display: none; } }

/* sections */
section { padding-block: var(--sp-9); }
.label { margin: 0; font-size: var(--fs-s); font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--sp-7); }
@media (max-width: 820px) { .spread { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } section { padding-block: var(--sp-8); } }

/* vision: the company aim as one short text */
.vision { display: grid; gap: var(--sp-4); }
.vision p { margin: 0; font-size: var(--fs-xl); line-height: 1.5; font-weight: 600; letter-spacing: -.02em; max-width: 26em; }
.vision p + p { font-size: var(--fs-l); font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
@media (max-width: 640px) { .vision p { font-size: var(--fs-l); } .vision p + p { font-size: var(--fs-m); } }

/* how we build */
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { padding-block: var(--sp-6); border-bottom: 1px solid var(--line); }
.principles h3 { margin: 0; font-size: var(--fs-xl); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.principles p { margin: var(--sp-3) 0 0; color: var(--ink-2); max-width: 36em; }
@media (max-width: 640px) { .principles h3 { font-size: var(--fs-l); } .principles li { padding-block: var(--sp-5); } }

/* services: one tile per product in site/data.json, each in its own color (assets/products.css) */
.services { background: var(--wash); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-7); min-height: 300px; padding: var(--sp-6); border-radius: var(--r-tile); background: var(--brand); color: var(--on-tile); text-decoration: none; overflow: hidden; isolation: isolate; }
.tile::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; right: -90px; bottom: -110px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
@media (hover: hover) and (pointer: fine) { .tile { transition: transform .2s ease; } .tile:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
.tile .tile-name { margin: 0; font-size: var(--fs-2xl); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.tile .tile-name small { display: block; margin-top: var(--sp-2); font-size: var(--fs-s); font-weight: 500; letter-spacing: 0; color: var(--on-tile-2); }
.tile p { margin: 0; font-size: var(--fs-m); line-height: 1.55; color: var(--on-tile); max-width: 22em; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { font-size: var(--fs-xs); font-weight: 600; border-radius: var(--r-chip); padding: 4px var(--sp-3); background: var(--tile-chip); color: var(--on-tile); }
.arrow { font-size: var(--fs-l); line-height: 1; }

/* company */
dl { margin: 0; display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); border-top: 1px solid var(--line); }
dt, dd { margin: 0; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
dt { color: var(--ink-2); padding-right: var(--sp-4); }
dd { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { dl { grid-template-columns: minmax(0, 1fr); } dt { border-bottom: 0; padding-bottom: 0; } dd { padding-top: var(--sp-1); } }

/* a product page: its color carries the opener */
.p-opener { color: var(--on-tile); position: relative; overflow: hidden; isolation: isolate; }
.p-opener::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; bottom: -260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.p-opener .nav a { color: var(--on-tile-2); }
.p-head { padding-block: var(--sp-8) var(--sp-9); display: grid; gap: var(--sp-4); }
.p-name { margin: 0; font-size: var(--fs-hero); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.p-name small { display: block; margin-top: var(--sp-3); font-size: var(--fs-l); font-weight: 500; letter-spacing: 0; color: var(--on-tile-2); }
.p-head .lead { margin: var(--sp-3) 0 0; font-size: var(--fs-l); line-height: 1.55; max-width: 28em; }
.body p { margin: 0 0 var(--sp-4); max-width: 34em; font-size: var(--fs-l); line-height: 1.6; }
.body p:last-child { margin-bottom: 0; }
.p-main section + section { padding-top: 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows a, .rows .row { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-4); border-bottom: 1px solid var(--line); text-decoration: none; }
.rows .go { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .rows a:hover { color: var(--brand); } }

/* footer: the business facts a Korean seller shows */
footer { border-top: 1px solid var(--line); padding-block: var(--sp-7) var(--sp-8); font-size: var(--fs-xs); color: var(--ink-2); }
footer .wrap { display: grid; gap: var(--sp-2); }
footer p { margin: 0; }
footer .line { display: flex; flex-wrap: wrap; column-gap: var(--sp-4); row-gap: var(--sp-1); }
footer .line span { white-space: nowrap; }
footer .line span.long { white-space: normal; }
footer .end { margin-top: var(--sp-3); }
