/* Company page only.
   Source of values: docs/design-concept-main.md section 10 */

/* Pinned: the section is the scroll track (one screen + the run of the quote), .about-pin is the screen that sticks under the sub nav.
   company.js lights the quote over the first 80% of the run, so the page moves on only after the headline is done */
.about{height:calc(100svh + 90vh);overflow-anchor:none}
.about .about-pin{position:sticky;top:0;height:100svh;padding:var(--subnav-h,57px) var(--gutter) 0;display:flex;align-items:center;
  /* Aurora (.aur-sec): the big blob sits low on the right around the signature, the small one under the message */
  --aur-a-x:52%;--aur-a-y:40%;--aur-a-w:760px;--aur-a-h:500px;--aur-b-x:calc(var(--gutter) - 160px);--aur-b-y:58%;--aur-b-w:460px;--aur-b-h:320px}
/* Text only: the quote runs across, the message sits below it on the same left edge, the signature bottom right */
.about-grid{display:grid;grid-template-columns:minmax(0,860px) minmax(220px,1fr);column-gap:120px}
.about-quote{grid-column:1/-1}
/* company.js wraps each word in .w and sets --o (0 dim .. 1 lit): fills on its own going down, dims with the scroll going up */
.about-quote .w{opacity:calc(.14 + .86 * var(--o,1));transition:opacity .2s linear}
.greet{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:24px;margin-top:96px}
.greet p{margin:0;font-size:18px;font-weight:400;line-height:1.8;letter-spacing:-.01em;color:var(--ink);text-wrap:pretty}
/* Key phrases: a teal underline draws in once the message is in view (.reveal.in) */
.greet .hl{font-style:normal;font-weight:600;background:linear-gradient(var(--teal),var(--teal)) no-repeat 0 100%/0 2px;padding-bottom:2px;transition:background-size 1s var(--ease) .6s}
.greet.in .hl{background-size:100% 2px}
.sign{grid-column:2;grid-row:2;align-self:end;justify-self:end;display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:15px;color:var(--ink-2)}
.sign-img{height:88px;width:auto;max-width:100%;object-fit:contain;object-position:left;margin-left:-12px}
.about-pin>.inner{width:100%}
/* No pin where the screen is too small for the whole section or motion is reduced: a plain section */
@media (max-width:1180px),(max-height:680px),(prefers-reduced-motion:reduce){
  .about{height:auto}
  .about .about-pin{position:relative;height:auto;padding:140px var(--gutter);display:block}
}
.philo{background:var(--night);color:#fff;padding:140px var(--gutter)}
/* Editorial grid: Vision across, then the sticky symbol on the left and the list on the right */
.philo-grid{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:180px}
.philo-vis{display:flex;flex-direction:column;gap:20px}
.philo-vis{grid-column:1/-1}
/* The symbol (260 x 295px) sticks with its center on the reading line (55% of the view), level with the row in focus */
.philo-side{grid-column:1;grid-row:2;align-self:start;position:sticky;top:calc(55vh - 148px);margin:160px 0 0 80px}
.philo-mark{display:block;width:260px;height:auto;overflow:visible;--p:0;--f:0}
.philo-mark path{vector-effect:non-scaling-stroke;stroke-linejoin:round}
.pm-base path{fill:none;stroke:rgba(255,255,255,.14);stroke-width:1}
.pm-draw path{fill:none;stroke:#35B7D9;stroke-width:1.5;stroke-dasharray:1 1;stroke-dashoffset:calc(1 - var(--p))}
.pm-fill{opacity:var(--f)}
.philo-list{grid-column:2;grid-row:2;list-style:none;margin:160px 80px 0 0;padding:0;border-bottom:1px solid rgba(255,255,255,.12)}
/* Each row comes forward as it nears the reading line: company.js sets --t (0 far, 1 on the line) */
.philo-row{--t:1;position:relative;display:grid;grid-template-columns:96px minmax(0,1fr);align-items:baseline;gap:24px;padding:64px 0;border-top:1px solid rgba(255,255,255,.12)}
.philo-row::before{content:"";position:absolute;left:0;top:-1px;height:1px;width:0;background:#35B7D9;transition:width .8s var(--ease)}
.philo-row.on::before{width:100%}
.philo-no,.philo-txt{opacity:calc(.12 + .88 * var(--t));transform:scale(calc(.72 + .28 * var(--t)));transform-origin:0 50%;will-change:transform,opacity}
.philo-no{font-family:Sora,sans-serif;font-size:20px;font-weight:300;color:rgba(255,255,255,.4);transition:color .6s var(--ease)}
.philo-row.on .philo-no{color:#35B7D9}
.philo-txt{display:flex;flex-direction:column;gap:16px}
.philo-row h3{margin:0;font-size:48px;font-weight:600;letter-spacing:-.025em;line-height:1.15}
.philo-row p{margin:0;font-size:21px;line-height:1.6;color:rgba(255,255,255,.72);transition:color .6s var(--ease)}
/* The row in focus: the line reads in the same white as its title */
.philo-row.on p{color:#fff}
.hist{background:var(--mist);padding:140px var(--gutter)}
.hist-grid{display:grid;grid-template-columns:420px minmax(0,1fr);gap:0}
.hist-side{position:sticky;top:calc(var(--subnav-h,120px) + 48px);align-self:start;display:flex;flex-direction:column;gap:18px;padding-right:40px}
.yr-now{margin-top:48px;font-family:Sora,sans-serif;font-weight:300;font-size:120px;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--ink);position:relative;height:1em;overflow:hidden}
.yr-range{display:flex;align-items:center;gap:14px;font-family:Sora,sans-serif;font-size:13px;color:var(--ink-2)}

.yr-range .trk{position:relative;flex:1;height:2px;background:var(--track);border-radius:2px;max-width:220px}
.yr-range .trk i{position:absolute;left:0;top:-1px;height:4px;border-radius:4px;background:var(--teal);width:0;transition:width .6s var(--ease)}
.rail{position:relative;padding-left:56px}
.rail::before{content:"";position:absolute;left:7px;top:18px;bottom:0;width:1px;background:var(--track)}

.rail .fill{position:absolute;left:7px;top:18px;width:1px;background:var(--teal);height:0;transition:height .6s var(--ease)}
.yb{position:relative;display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;padding:0 0 56px}
.yb::before{content:"";position:absolute;left:-56px;top:12px;width:15px;height:15px;border-radius:50%;background:var(--mist);border:1px solid var(--track);transition:border-color .6s var(--ease)}
.yb::after{content:"";position:absolute;left:-51px;top:17px;width:5px;height:5px;border-radius:50%;background:var(--lime);opacity:0;transition:opacity .6s var(--ease)}

.yb.on::before{border-color:var(--teal)}
.yb.on::after{opacity:1}

.yb .y{font-family:Sora,sans-serif;font-weight:300;font-size:44px;line-height:1;letter-spacing:-.03em;color:var(--ink);display:flex;flex-direction:column;gap:12px;transition:color .6s var(--ease)}
.yb .y .chip{align-self:flex-start;font-family:Pretendard,sans-serif}
.yb ul{list-style:none;margin:0;padding:8px 32px;background:#fff;border-radius:24px;box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;position:relative;overflow:hidden;isolation:isolate;transition:box-shadow .6s var(--ease)}
.yb li{padding:16px 0;font-size:17px;line-height:1.6;border-top:1px solid #EDF1F3;display:flex;gap:14px}
.yb li:nth-child(-n/**/+2){border-top:0}

.yb.one ul{grid-template-columns:1fr}
.yb li::before{content:"";flex:0 0 4px;height:4px;margin-top:12px;border-radius:50%;background:var(--teal)}

.yb.todo ul{background:transparent;box-shadow:none;border:1px dashed var(--track)}
.yb.todo li{color:var(--ink-2)}
.cert{padding:140px var(--gutter)}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(204px,1fr));gap:24px}
.cc{text-align:left;padding:14px 14px 24px;border-radius:24px;background:var(--mist);color:var(--ink);display:flex;flex-direction:column;gap:18px;transition:box-shadow .6s var(--ease),background .6s var(--ease);position:relative;overflow:hidden;isolation:isolate}
.cc:hover{background:#fff;box-shadow:var(--shadow)}

.cc:hover .doc{transform:scale(1.03)}

.thumb{aspect-ratio:4/5;border-radius:16px;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}
.thumb img{width:100%;height:100%;object-fit:contain;transition:transform .6s var(--ease)}
.cc:hover .thumb img{transform:scale(1.03)}
.doc{width:54%;aspect-ratio:1/1.414;border:1px solid var(--line);border-radius:6px;padding:14% 12%;display:flex;flex-direction:column;gap:8%;align-items:center;transition:transform .6s var(--ease);background:#fff}

.doc .seal{width:34%;aspect-ratio:1;border-radius:50%;border:1px solid var(--track);margin-top:auto}
.doc i{display:block;height:3px;border-radius:2px;background:#E6ECEF;width:100%}

.doc i.s{width:60%}
.doc b{font-size:10px;font-weight:500;color:var(--ink-2);text-align:center;line-height:1.4}

.cc .meta{padding:0 10px;display:flex;flex-direction:column;gap:10px}
.cc .meta .chip{align-self:flex-start;padding:5px 12px;font-size:12px}
.cc .meta .chip.pat{background:#E8F3D4;color:#3F5A0C}
.cc .meta .chip.awd{background:#E7EBED;color:var(--ink)}
.cc .meta .chip.reg{background:#E3EFF3;color:#005A75}

.cc .nm{font-size:16px;font-weight:600;line-height:1.5;transition:color .6s var(--ease);text-wrap:pretty}
.cc[hidden]{display:none}
.more{display:flex;justify-content:center;margin-top:48px}
.more[hidden]{display:none}

.loc{background:var(--mist);padding:140px var(--gutter)}
.loc-grid{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:24px;align-items:stretch}
.info{background:#fff;border-radius:24px;box-shadow:var(--shadow);padding:44px 40px;display:flex;flex-direction:column}
.info dl{margin:0}

.info .row{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:baseline;gap:16px;padding:22px 0;border-top:1px solid #EDF1F3}
.info .row:first-child{border-top:0;padding-top:0}
.info dt{font-size:14px;color:var(--ink-2)}
.info dd{margin:0;font-size:17px;line-height:1.65}

.info dd.big{font-family:Sora,sans-serif;font-size:22px}
.info dd.big a{color:var(--ink)}
.info dd.big a:hover{color:var(--teal)}

.info .copy{margin-top:10px;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--track);background:#fff;font-size:13px;color:var(--ink-2);transition:all .6s var(--ease)}
.info .copy:hover{border-color:var(--ink);color:var(--ink)}
.info .copy.done{border-color:var(--teal);color:var(--teal)}
.transit{display:flex;flex-direction:column;gap:8px}
.transit span{display:flex;gap:10px;align-items:flex-start}
.transit em{font-style:normal;flex:0 0 auto;font-size:12px;font-weight:600;padding:3px 8px;border-radius:999px;background:var(--chip-bg);color:var(--chip-ink);margin-top:3px}

.info .acts{margin-top:auto;padding-top:32px;display:flex;gap:12px;flex-wrap:wrap}
.map{position:relative;min-height:600px;border-radius:24px;overflow:hidden;background:#E4EBEE}

.map svg.bg{position:absolute;inset:0;width:100%;height:100%}
/* The office is the exact center of map.svg (slice keeps the center), so the point sits at 50% / 50% */
.pin{position:absolute;left:50%;top:50%;z-index:1;pointer-events:none;transform:translate(-50%,calc(-100% + 10px));display:flex;flex-direction:column;align-items:center}

.pin .tag{background:var(--night);color:#fff;padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px}
.pin .tag img{height:18px;width:auto;filter:brightness(0) invert(1)}

.pin .stem{width:1px;height:28px;background:var(--night)}

.pin .pt{position:relative;width:14px;height:14px;border-radius:50%;background:var(--teal);border:3px solid #fff;box-shadow:0 0 0 1px var(--teal)}
.pin .pt::after{content:"";position:absolute;inset:-14px;border-radius:50%;border:1px solid var(--lime);animation:ring 3s var(--ease) infinite}

/* The whole map is one link (Naver Map); its label is for screen readers, the chip shows the action */
.map-link{position:absolute;inset:0;z-index:2;font-size:0;color:transparent;border-radius:24px}
.map-link:focus-visible{outline-offset:-4px}
.map-open{position:absolute;right:24px;bottom:24px;z-index:1;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;background:#fff;box-shadow:var(--shadow);font-size:14px;font-weight:600;color:var(--ink);transition:background .6s var(--ease),color .6s var(--ease)}
.map:hover .map-open{background:var(--ink);color:#fff}
.osm{position:absolute;left:16px;bottom:12px;z-index:1;font-size:11px;color:rgba(11,31,41,.5)}


.tlink .arr{display:inline-block;transition:transform .6s var(--ease)}
.tlink:hover .arr{transform:translateX(4px)}

.cc::before,.yb ul::before{content:"";position:absolute;inset:0;z-index:-1;opacity:0;transition:opacity .6s var(--ease);pointer-events:none;background:radial-gradient(320px circle at var(--mx,50%) var(--my,0%),rgba(0,118,152,.10),transparent 60%)}
.cc:hover::before,.yb ul:hover::before{opacity:1}
.yr-now span{position:absolute;left:0;top:0;transition:transform .7s var(--ease),opacity .7s var(--ease)}

.yr-now .from-b,.yr-now .out-b{transform:translateY(100%);opacity:0}
.yr-now .from-t,.yr-now .out-t{transform:translateY(-100%);opacity:0}

.yb.cur .y{color:var(--teal)}
.yb.cur ul{box-shadow:0 18px 40px rgba(11,31,41,.08)}

@media (prefers-reduced-motion:reduce){
  .pin .pt::after{animation:none!important}
}
@media (max-width:1440px){
  .hist-grid{grid-template-columns:300px minmax(0,1fr)}
  .about-grid{column-gap:72px}
}
@media (max-width:1180px){
  .philo-grid{grid-template-columns:1fr}
  .philo-side{display:none}
  .philo-list{grid-column:1;grid-row:auto;margin:96px 0 0}
  .philo-row{grid-template-columns:64px minmax(0,1fr);gap:16px;padding:48px 0}
  .philo-row p{font-size:19px}
  .yb ul{grid-template-columns:1fr}
  .yb li:nth-child(2){border-top:1px solid #EDF1F3}
  .hist-grid,.about-grid,.loc-grid{grid-template-columns:1fr}
  .greet{grid-column:1;margin-top:56px}
  .greet br{display:none}
  .sign{grid-column:1;grid-row:3;justify-self:start;flex-direction:row;align-items:center;gap:14px;margin-top:40px}
  .sign-img{height:64px;margin-left:-10px}
  .hist-side{position:static;padding:0 0 56px}
  .yr-now{display:none}
}
@media (max-width:720px){
  .philo-row h3{font-size:30px}
  .philo-row p{font-size:17px}
  .philo-row{grid-template-columns:48px minmax(0,1fr);padding:40px 0}
  .philo-list{margin-top:72px}
  .philo-vis .h2 br{display:none}
  .about .about-pin,.philo,.hist,.cert,.loc{padding-top:88px;padding-bottom:88px}
  .about-quote br{display:none}
  .greet{margin-top:40px}
  .greet p{font-size:17px}
  .sign-img{height:48px}
  .yb{grid-template-columns:1fr;gap:16px;padding-bottom:40px}
  .yb ul{grid-template-columns:1fr;padding:4px 20px}
  .yb li:nth-child(2){border-top:1px solid #EDF1F3}
  .yb .y{font-size:34px;flex-direction:row;align-items:center}
  .rail{padding-left:36px}
  .yb::before{left:-36px}
  .yb::after{left:-31px}
  .yb li{padding:14px 0;font-size:16px}
  .cgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .cc{padding:10px 10px 18px;gap:14px;border-radius:20px}
  .cc .nm{font-size:14px}
  .cc .meta{padding:0 4px}
  .info{padding:32px 24px}
  .info .row{grid-template-columns:1fr;gap:6px}
  .map{min-height:380px}
  .pin .tag img{display:none}
}
@keyframes ring{0%{transform:scale(.4);opacity:1}100%{transform:scale(1.8);opacity:0}}
