/* DONG YANG VINA E&C — site styles */
:root {
  --teal: #0e5c6b;
  --teal-600: #137487;
  --teal-300: #7cc3cf;
  --teal-50: #eef6f8;
  --navy: #0b2236;
  --red: #d8261c;
  --ink: #16242e;
  --muted: #55636d;
  --line: #dbe4e8;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 34, 54, .10);
  --font: "Be Vietnam Pro", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}
.lang-ko { --font: "Noto Sans KR", "Be Vietnam Pro", system-ui, -apple-system, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
.lang-ko { word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: var(--teal-600); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(11,34,54,.06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); border-color: var(--teal); }
.lang-switch { display: flex; align-items: center; gap: 2px; color: var(--muted); }
.lang-switch .icon { width: 18px; height: 18px; margin-right: 4px; }
.lang-switch a { text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 600; padding: 5px 8px; border-radius: 6px; }
.lang-switch a:hover { background: var(--teal-50); color: var(--teal); }
.lang-switch a[aria-current] { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(72px, 12vw, 140px) 0 0; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,33,48,.92) 0%, rgba(14,92,107,.72) 55%, rgba(14,92,107,.25) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { max-width: 760px; margin-left: max(16px, (100% - 1200px) / 2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); border-left: 3px solid var(--red); padding-left: 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: .45em; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.88); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b81f17; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid rgba(255,255,255,.22); }
.stat { padding: 26px 20px 30px; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; }
.stat span { font-size: .88rem; color: rgba(255,255,255,.78); }

/* sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--teal-50); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .6em; }
.section-dark .kicker { color: var(--teal-300); }
.section-lead { color: var(--muted); max-width: 680px; font-size: 1.05rem; margin-bottom: 40px; }
.section-dark .section-lead { color: rgba(255,255,255,.75); }
.note { color: var(--muted); font-size: .92rem; margin-top: 28px; }
.sub-title { font-size: 1.35rem; color: var(--navy); margin-top: 72px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid p { color: #33434d; }
.about-img img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-img { margin: 0; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.office h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--teal); display: inline-block; padding: 4px 12px; border-radius: 6px; }
.office-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.office dl { margin: 0; display: grid; gap: 8px; }
.office dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: .94rem; }
.office dt { color: var(--muted); }
.office dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.timeline li { position: relative; padding: 14px 0 14px 22px; border-left: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.timeline time { font-weight: 700; color: var(--teal); font-size: .92rem; }
.timeline p { margin: 2px 0 0; font-size: .94rem; }

/* business */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.biz-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.biz-body { padding: 0 26px 28px; position: relative; }
.biz-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--teal); color: #fff; margin-top: -26px; margin-bottom: 18px; position: relative; box-shadow: 0 6px 16px rgba(14,92,107,.35); }
.biz-card h3 { color: var(--navy); font-size: 1.25rem; }
.biz-card p { color: #3c4a53; font-size: .96rem; }
.biz-fields { border-top: 1px solid var(--line); padding-top: 14px; color: var(--teal) !important; font-weight: 500; font-size: .9rem !important; margin: 0; }

/* vision */
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.top { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 32px 28px; background: rgba(255,255,255,.04); }
.top-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); margin-bottom: 18px; }
.top h3 { font-size: 1.25rem; }
.top p { color: rgba(255,255,255,.78); margin: 0; }

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.project { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.project:hover, .project:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.project:focus-visible { outline: 3px solid var(--teal-300); }
.project-img { position: relative; display: block; overflow: hidden; }
.project-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; }
.project:hover .project-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.project-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.project-year { font-size: .82rem; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.project-name { font-weight: 700; color: var(--navy); line-height: 1.35; font-size: 1.02rem; }
.project-meta { font-size: .86rem; color: var(--muted); }

.project-dialog { width: min(920px, 100% - 32px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: auto; }
.project-dialog::backdrop { background: rgba(8, 24, 36, .7); }
.project-dialog[open] { display: grid; grid-template-columns: 1fr 1.1fr; }
.dlg-media { position: relative; background: var(--navy); }
.dlg-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.illus { position: absolute; right: 10px; bottom: 10px; background: rgba(8,24,36,.62); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 4px; letter-spacing: .02em; }
.dlg-body { padding: 36px 34px; }
.dlg-body h3 { color: var(--navy); font-size: 1.45rem; }
.dlg-body h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin: 22px 0 6px; }
.dlg-body ul { padding-left: 1.1em; margin: 0; }
.dlg-body li { margin-bottom: 4px; }
.facts { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* clients */
.clients { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.clients li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-weight: 600; color: var(--navy); font-size: .95rem; }

/* org */
.org { margin-top: 36px; display: flex; flex-direction: column; align-items: center; }
.org-box { background: #fff; border: 1.5px solid var(--teal); color: var(--navy); border-radius: 10px; padding: 12px 16px; text-align: center; font-weight: 600; font-size: .92rem; }
.org-top { background: var(--teal); color: #fff; padding: 16px 32px; font-size: 1rem; position: relative; }
.org-top small { display: block; font-weight: 400; opacity: .85; }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: -29px; height: 28px; border-left: 2px solid var(--teal-300); }
.org-units { list-style: none; padding: 28px 0 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; width: 100%; border-top: 2px solid var(--teal-300); }
.org-units > li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.org-units > li::before { content: ""; position: absolute; left: 50%; top: -30px; height: 28px; border-left: 2px solid var(--teal-300); }
.org-units ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.org-sub { border-style: dashed; font-weight: 500; background: var(--teal-50); }

/* certs */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.cert { background: #fff; border-radius: var(--radius); padding: 26px 22px; border-top: 4px solid var(--teal); box-shadow: 0 4px 14px rgba(11,34,54,.06); display: flex; flex-direction: column; gap: 6px; }
.cert-title { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.cert span:last-child { color: var(--muted); font-size: .93rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--teal); margin-top: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--teal); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); background: var(--teal-50); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 40px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { background: #fff; border-radius: 8px; padding: 4px; height: 44px; width: auto; }
.footer-brand strong { color: #fff; }
.copy { margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .biz-grid, .top-grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .project-dialog[open] { grid-template-columns: 1fr; }
  .dlg-media img { aspect-ratio: 16/9; min-height: 0; }
  .dlg-body { padding: 26px 22px; }
  .facts div { grid-template-columns: 120px 1fr; }
  .org-units { grid-template-columns: 1fr 1fr; border-top: 0; padding-top: 0; }
  .org-units > li::before, .org-top::after { display: none; }
}
@media (max-width: 520px) { .org-units { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 10px; }
  .brand img { height: 36px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .92rem; }
  .lang-switch .icon { display: none; }
  .lang-switch a { padding: 5px 6px; font-size: .78rem; }
  .cert-grid { grid-template-columns: 1fr; }
  .office { padding: 22px 18px; }
  .office dl div { grid-template-columns: 92px 1fr; }
  .stat { padding: 20px 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
