/* ============================================================
   DOV Management — common stylesheet (all pages)
   Pure CSS. No JavaScript. opacity:1 fixed everywhere.
   Palette is strictly limited per design system.
   ============================================================ */

/* ---- design tokens (reference only; values inlined below) ----
   dark bg        #0a0a0a      hero bg        #060606
   off-white bg   #f6f6f4
   text white     #f5f5f3      body (dark)    #b4b4b0
   text dark      #141414      body (light)   #444444
   mute (dark)    #8a8a86      mute (light)   #6a6a66
   hairline dark  #3f3f3f      hairline light #c8c8c4
-------------------------------------------------------------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* declare the page's own (dark-designed) scheme so browser/OS forced-dark
   does not auto-invert; backgrounds are explicit so nothing is left to guess */
:root { color-scheme: only light; }

html { -webkit-text-size-adjust: 100%; background: #0a0a0a; overflow-x: hidden; }

body {
  font-family: "Archivo", -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: #0a0a0a;
  color: #b4b4b0;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.1px;
  opacity: 1;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ----------------------------------------------------------------
   Shared atoms
---------------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.label {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  color: #8a8a86;
}
.light .label { color: #6a6a66; }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.4px;
  color: #f5f5f3;
  line-height: 1.12;
}
.light h1, .light h2, .light h3 { color: #141414; }

p { margin: 0 0 18px 0; }
p:last-child { margin-bottom: 0; }

/* outline button — no box-shadow, hairline border only */
.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: #f5f5f3;
  border: 1px solid #3a3a3a;
  padding: 13px 32px;
  background: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { border-color: #f5f5f3; transform: translateY(-2px); }
.light .btn { color: #141414; border-color: #c8c8c4; }
.light .btn:hover { border-color: #141414; }

/* ----------------------------------------------------------------
   Section rhythm  (black <-> off-white)
---------------------------------------------------------------- */
.section { padding: 100px 0; }
.section.dark  { background: #0a0a0a; color: #b4b4b0; }
.section.light { background: #f6f6f4; color: #444444; }

/* Forced-dark defense (2nd layer): pair text blocks with an explicit background
   equal to their light-section bg (#f6f6f4), so a forced-dark inverter treats
   bg+text together (no invisible dark-on-dark text). Same color as parent =
   zero visible change. Scoped to .section.light only (dark sections handled by
   the explicit html/body #0a0a0a from r30). */
.section.light .prose,
.section.light .lead,
.section.light .article,
.section.light .legal,
.section.light .adv-text { background-color: #f6f6f4; }
.adv-text h3 { color: #141414; }   /* make inherited colors explicit (pairing) */
.adv-text p  { color: #444444; }

.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: 34px; margin-top: 18px; max-width: 640px; }

/* ----------------------------------------------------------------
   Logo lockup  (wordmark)
---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 13px; }
.logo-mark { width: 24px; height: 24px; }
.nav-mark { height: 40px; width: auto; display: block; mix-blend-mode: screen; }
.logo-text {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #f5f5f3;
}

/* ----------------------------------------------------------------
   Navigation  (black, bottom hairline)  — CSS-only dropdowns
---------------------------------------------------------------- */
.nav { background: #0a0a0a; border-bottom: 1px solid #3f3f3f; position: relative; z-index: 50; }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 40px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}

/* CSS-only hamburger (checkbox hack — no JS). Hidden on desktop. */
.nav-toggle { position: absolute; left: -9999px; }   /* offscreen, NOT opacity */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px 0; margin-left: auto; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: #f5f5f3; transition: transform 0.3s ease; }

.menu > ul { list-style: none; display: flex; align-items: center; gap: 34px; }
.menu li { position: relative; }

.menu-top, .menu > ul > li > a {
  display: inline-block;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: #8a8a86;
  padding: 26px 0;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none; border: none;
}
.menu-top:hover, .menu > ul > li > a:hover,
.has-dropdown:hover .menu-top,
.has-dropdown:focus-within .menu-top { color: #f5f5f3; }

/* current page: white + 1px underline */
.menu .current { color: #f5f5f3; }
.menu .current::after {
  content: ""; display: block; height: 1px; background: #f5f5f3;
  margin-top: -22px;
}

/* dropdown panel */
.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  background: #0a0a0a;
  border: 1px solid #3f3f3f;
  display: none;
  padding: 8px 0;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }

.dropdown li { display: block; }
.dropdown a {
  display: block;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a8a86;
  padding: 11px 22px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.dropdown a:hover { color: #f5f5f3; background: #141414; }

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero {
  background: #060606;
  border-bottom: 1px solid #3f3f3f;
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 130px 40px 140px;
}
/* hero text block, left-aligned (default placement) */
.hero-text {
  max-width: 560px;
}
.hero-text .label { margin-bottom: 26px; }
.hero-text h1 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.12;
  color: #f5f5f3;
  margin-bottom: 24px;
}
/* signature hairline above the hero headline (shared across heroes) */
.hero-text h1::before {
  content: ""; display: block; width: 40px; height: 1px;
  background: #3f3f3f; margin-bottom: 28px;
}
/* two-word emphasis (index headline) */
.hero-text h1 .em { font-weight: 600; }
.hero-text .sub {
  font-size: 18px;
  color: #b4b4b0;
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.75;
}

/* page hero title (inline-styled hero <h2> on infra / vc-pe) */
.page-hero-h1 { font-size: 42px; line-height: 1.12; }

/* compact hero (kr.html) */
.hero.compact .hero-inner { padding: 96px 40px; grid-template-columns: 1fr; }
.hero.compact h1 { font-size: 44px; }

/* ----------------------------------------------------------------
   Stats  (top rule + padding pattern, no boxes)
---------------------------------------------------------------- */
/* centered stat block; per-column short top rule (full column width) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; max-width: 1080px; margin: 0 auto; }
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.stat { border-top: 1px solid #141414; padding: 28px 0 0 0; text-align: center; }
.light .stat { border-top: 1px solid #141414; }
.stat .num { font-size: 38px; font-weight: 500; letter-spacing: -0.6px; color: #141414; line-height: 1; }
.dark .stat { border-top: 1px solid #f5f5f3; }
.dark .stat .num { color: #f5f5f3; }
.stat .cap {
  margin-top: 12px; font-size: 13.5px; letter-spacing: 2px; text-transform: uppercase;
  color: #6a6a66;
}
.dark .stat .cap { color: #8a8a86; }

/* ----------------------------------------------------------------
   Prose blocks
---------------------------------------------------------------- */
.prose { max-width: 720px; }
.prose p { font-size: 17px; line-height: 1.75; }
.lead { font-size: 18px; line-height: 1.75; max-width: 760px; }

.tbd {
  color: #8a8a86;
  font-style: italic;
  letter-spacing: 0.4px;
}
.light .tbd { color: #6a6a66; }

/* legal document body (privacy policy) — max 760px, ruled section heads */
.legal { max-width: 760px; }
.legal h2 {
  font-size: 20px; font-weight: 500; color: #141414;
  border-top: 0.5px solid #c8c8c4; padding-top: 26px; margin: 40px 0 14px 0;
}
.legal p { font-size: 15.5px; line-height: 1.7; color: #444444; margin: 0 0 16px 0; }

/* ----------------------------------------------------------------
   Hairline grids  (focus areas, portfolio, pillars)
   Cell separation via 0.5px hairline borders only.
---------------------------------------------------------------- */
.grid { display: grid; border-top: 0.5px solid #3f3f3f; border-left: 0.5px solid #3f3f3f; }
.light .grid { border-top: 0.5px solid #aeaeaa; border-left: 0.5px solid #aeaeaa; }
.grid .cell {
  border-right: 0.5px solid #3f3f3f;
  border-bottom: 0.5px solid #3f3f3f;
  padding: 30px 26px;
  display: flex; align-items: center;
  transition: background-color 0.25s ease;
}
.light .grid .cell { border-right: 0.5px solid #aeaeaa; border-bottom: 0.5px solid #aeaeaa; }
.grid .cell:hover { background: #111111; }
.light .grid .cell:hover { background: #eeeeec; }

.grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }

/* focus areas: label-style item names */
.focus-grid .cell {
  font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: #b4b4b0;
  min-height: 96px;
  justify-content: center; text-align: center;
}
.focus-grid .cell:hover { color: #f5f5f3; }
/* light-section focus grid: darker label for contrast (letter-spacing kept) */
.light .focus-grid .cell { color: #3a3a38; }
.light .focus-grid .cell:hover { color: #141414; }

/* portfolio cells: centered logo/placeholder */
.pf-grid .cell { justify-content: center; text-align: center; }
.pf-grid.preview .cell { min-height: 96px; }
.pf-grid.full .cell { min-height: 110px; }
/* "Exited" tag — inline, on the same line to the right of the logo; the
   logo+label group is centered in the cell so the cell's weight stays like the others */
.pf-cell-inline { display: inline-flex; align-items: center; gap: 12px; }
.pf-status {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #9a9a96; white-space: nowrap;
}
.pf-name { font-size: 14px; letter-spacing: 0.4px; color: #141414; }
.dark .pf-name { color: #f5f5f3; }
.pf-logo {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #000; opacity: 0.72;
}
.dark .pf-logo { color: #8a8a86; }
/* logo images dropped into cells: monochromed at image level (RGB 20,20,20).
   Perceived density is calibrated per-logo via .opNN (stroke-weight back-correction,
   TAE = reference). Height utilities (.lhNN) equalize visual mass by aspect ratio. */
.logo-img {
  max-width: 64%; width: auto;
  filter: brightness(0);
}
/* perceived-density calibration (heavier mark -> lower opacity) */
.op68 { opacity: 0.76; }
.op70 { opacity: 0.78; }
.op74 { opacity: 0.82; }
.op78 { opacity: 0.85; }
.op85 { opacity: 0.92; }
.op95 { opacity: 1.0; }
/* aspect-ratio-based height utilities (visual volume equalization) */
.lh20 { max-height: 20px; }
.lh24 { max-height: 24px; }
.lh30 { max-height: 30px; }
.lh32 { max-height: 32px; }
.lh34 { max-height: 34px; }
.lh36 { max-height: 36px; }
.lh38 { max-height: 38px; }
/* spacex.svg has ~left padding in its viewBox; nudge to optically center the cell */
.logo-fix-spacex { transform: translateX(16px); }

/* pillars: top rule + padding (no boxes) */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 54px; }
.pillar { border-top: 0.5px solid #3f3f3f; padding: 26px 0 34px 0; }
.light .pillar { border-top: 0.5px solid #c8c8c4; }
.pillar h3 { font-size: 20px; margin-bottom: 12px; }
.pillar p { font-size: 15.5px; line-height: 1.7; }

/* ----------------------------------------------------------------
   Photos  (real images — forced grayscale, opacity fixed)
---------------------------------------------------------------- */
.photo { width: 100%; height: auto; display: block; filter: grayscale(1); opacity: 1; }
.photo-hero { height: 320px; object-fit: cover; }
.photo-card { height: 180px; object-fit: cover; }
.photo-adv  { height: 260px; object-fit: cover; }

/* ----------------------------------------------------------------
   Article list  (newsroom / tech / energy / biotech)
---------------------------------------------------------------- */
.articles { max-width: 860px; }
.article {
  border-top: 0.5px solid #3f3f3f;
  padding: 30px 0;
  transition: background-color 0.2s ease;
}
.light .article { border-top: 0.5px solid #c8c8c4; }
.article .date {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8a8a86;
}
.light .article .date { color: #6a6a66; }
.article h3 { font-size: 20px; font-weight: 500; margin: 10px 0 8px 0; }
.article p { font-size: 15px; margin: 0; line-height: 1.7; }
/* newsroom: date + entity meta, read-more link */
.art-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.art-meta .entity {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #6a6a66;
}
.read-more {
  display: inline-block; margin-top: 12px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #141414;
  border-bottom: 1px solid #c8c8c4; padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.read-more:hover { border-color: #141414; }

/* ----------------------------------------------------------------
   Contact split
---------------------------------------------------------------- */
.contact-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact-info .line { font-size: 14px; color: #b4b4b0; margin-bottom: 6px; }
.light .contact-info .line { color: #444444; }

/* contact: info (left) + Formspree form (right), 2-column */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; }
.contact-form label {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #b4b4b0; margin-bottom: 8px;
}
.light .contact-form label { color: #444444; }
.contact-form input,
.contact-form textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid #3f3f3f; border-radius: 0; outline: none;
  color: #b4b4b0; font-family: inherit; font-size: 16px; padding: 10px 0;
  transition: border-color 0.2s ease;
}
.contact-form input { margin-bottom: 28px; }
.contact-form textarea { margin-bottom: 0; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: #f5f5f3; }
.light .contact-form input,
.light .contact-form textarea { color: #444444; border-bottom-color: #aeaeaa; }
.light .contact-form input:focus,
.light .contact-form textarea:focus { border-bottom-color: #141414; }
.contact-form button { margin-top: 36px; align-self: flex-start; }

/* ----------------------------------------------------------------
   Footer  (black, top hairline)
---------------------------------------------------------------- */
.footer { background: #0a0a0a; border-top: 1px solid #3f3f3f; padding: 40px 0; color: #8a8a86; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.footer-bottom .copy { font-size: 13px; letter-spacing: 0.4px; color: #8a8a86; }
.footer-links { font-size: 13px; letter-spacing: 0.4px; color: #8a8a86; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: #f5f5f3; }
.footer-links .sep { color: #3a3a3a; margin: 0 8px; }

/* ----------------------------------------------------------------
   3-column rule pattern  (infra strategy, kr what-we-do)
---------------------------------------------------------------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
.tri .pillar { border-top: 0.5px solid #3f3f3f; padding: 26px 0 8px 0; }
.light .tri .pillar { border-top: 0.5px solid #c8c8c4; }

/* closing band (infra) */
/* closing band is now a single line + CTA — small symmetric padding bump so it
   doesn't read thin (infrastructure-only; .band is used on that page alone) */
.band { padding: 96px 0; }
.band h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.2px; line-height: 1.35; margin-bottom: 36px; }
.band .band-sub { font-size: 17px; line-height: 1.75; color: #b4b4b0; margin-bottom: 30px; max-width: 640px; }

/* ----------------------------------------------------------------
   Real Estate — image hero with overlay
---------------------------------------------------------------- */
.re-hero { position: relative; border-bottom: 1px solid #3f3f3f; }
.re-hero .photo-hero { width: 100%; }
.re-hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 6, 6, 0.78) 0%, rgba(6, 6, 6, 0.78) 60%, rgba(6, 6, 6, 0.45) 100%); }
.re-hero-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
}
.re-hero-text .label { color: #8a8a86; margin-bottom: 18px; }
.re-hero-text h1 { font-size: 42px; font-weight: 600; color: #f5f5f3; margin-bottom: 18px; line-height: 1.12; }
.re-hero-text .sub { font-size: 18px; color: #d4d4d0; max-width: 620px; line-height: 1.75; }

/* advantages: alternating photo / text rows */
.adv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 54px; }
.adv-row.flip .adv-photo { order: 2; }
.adv-row h3 { font-size: 20px; margin-bottom: 14px; }
.adv-row p { font-size: 15.5px; line-height: 1.7; }

/* strategies: top photo + title + copy (rule pattern, no boxes) */
.strat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strat .item .photo-card { margin-bottom: 20px; }
.strat .item h3 { font-size: 20px; margin-bottom: 10px; }
.strat .item p { font-size: 15.5px; line-height: 1.7; }

/* disclaimer */
.disclaimer p { font-size: 11px; line-height: 1.85; color: #8a8a86; max-width: 880px; }
.disclaimer .label { margin-bottom: 20px; }

/* ----------------------------------------------------------------
   Responsive  (<= 768px)
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .wrap, .nav-inner, .hero-inner, .footer .wrap { padding-left: 22px; padding-right: 22px; }

  /* nav: top bar (logo left, burger right) + collapsible menu below (max-height only) */
  .nav-inner { min-height: 64px; height: auto; flex-wrap: wrap; align-items: center; padding-top: 0; padding-bottom: 0; }
  .nav-burger { display: flex; }
  .nav-links { width: 100%; max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .nav-toggle:checked ~ .nav-links { max-height: 100vh; }
  .menu > ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding-bottom: 8px; }
  .menu-top, .menu > ul > li > a { padding: 14px 0; }
  .menu .current::after { margin-top: 0; width: 40px; }
  .dropdown {
    position: static; display: block; border: none; min-width: 0;
    padding: 0 0 8px 20px;            /* sub-items indented 20px */
  }
  .dropdown a { padding: 8px 0; font-size: 11.5px; }   /* sub-items one step smaller */
  /* burger -> X when open (transform only; no opacity) */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { transform: scaleX(0); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* overflow defense: trim long-label tracking + tighten Exited inline gap */
  .label { letter-spacing: 2px; }
  .pf-cell-inline { gap: 8px; }

  .hero-inner { padding: 80px 22px; }
  .hero-text { max-width: none; margin-left: 0; padding-right: 0; text-align: left; }
  .hero-text h1 { font-size: 32px; }
  .hero-text h1::before { width: 32px; }
  .hero-text .sub { font-size: 16px; }
  .hero.compact h1 { font-size: 32px; }
  .page-hero-h1 { font-size: 32px; }

  .section { padding: 60px 0; }
  .section-head h2 { font-size: 27px; }
  .band h2 { font-size: 21px; }
  .prose p { font-size: 16px; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding-right: 0; }

  /* minmax(0,1fr): stop min-content (long labels / nowrap groups) from
     expanding tracks past the container -> kills grid right-edge overflow */
  .grid.cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { max-width: 100%; }
  .grid .cell { padding: 24px 16px; }   /* symmetric; room for centered labels */
  .logo-fix-spacex { transform: none; }  /* mobile: drop the desktop +16px nudge */
  .pillars { grid-template-columns: 1fr; gap: 0; }

  .tri { grid-template-columns: 1fr; gap: 0; }
  .strat { grid-template-columns: 1fr; gap: 36px; }
  .adv-row { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .adv-row.flip .adv-photo { order: 0; }
  .re-hero-text h1 { font-size: 32px; }
  .re-hero .photo-hero { height: 280px; }

  .contact-row { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pf-status { font-size: 9px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Forced-dark defense (3rd layer): when the OS reports dark (which triggers
   Samsung Internet's force-dark), re-declare the design's own light-section
   colors verbatim — signalling the site already supports dark and curbing
   aggressive auto-inversion. Every value equals its normal computed value,
   so there is zero visible change in ordinary rendering. */
@media (prefers-color-scheme: dark) {
  html { background: #0a0a0a; }
  .section.light { background: #f6f6f4; color: #444444; }
  .section.light h2, .section.light h3, .light h3 { color: #141414; }
  .adv-text { background: #f6f6f4; }
  .adv-text h3 { color: #141414; }
  .adv-text p { color: #444444; }
  .pf-grid .cell { background: #f6f6f4; }
}
