/* Reset & Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #000; color: #eee;
  font-family: "Open Sans", "Noto Sans KR", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}

/* CSS Vars */
:root{
  --left-gutter: calc(100% / 12); /* 1/12 left margin */
  --right-gutter: calc(100% / 6);  /* 1/6 right margin */
  --tri-font-size: clamp(16px, 1.6vw, 20px);
  --tri-top-margin: clamp(32px, 8vh, 96px);
  --tri-strong-gap: 0.4em; /* space under first line */
  --card-gap: clamp(12px, 1.4vw, 24px);
  --card-min-h: 220px; /* base card height for bxt/services/methods/sequence/contacts */
  --card-radius: 16px;
  --muted: #9aa1a9;
  --soft: #151515;
  --softer: #0d0d0d;
}

/* Shared section scaffold */
section { position: relative; width: 100%; background: transparent; }

/* Relaxed vertical spacing for non-hero sections */
section:not(.hero){ padding: 12vh 0; }

/* Image protection & scaling */
img { -webkit-user-drag: none; user-select: none; }
.card img, .hero .logo { pointer-events: none; display:block; margin-left:2%; }

/* Image within cards display */
.img_m {object-fit: scale-down; width: 25%; margin-top: 20px; margin-bottom: 20px;
}
.img_s {object-fit: scale-down; width: 50%; margin-top: 20px; margin-bottom: 20px;
}
.img_p {object-fit: scale-down; width: min(720px, 92%); margin-top: 20px; margin-bottom: 20px;
}

/* Custom bullets using ‣ (‣) */
.bullets{ list-style: none; margin: 0; padding-left: 1.2em; color:#cfcfcf; font-size: clamp(13px, 1.2vw, 15px) }
.bullets li{ margin: .2em 0; }
.bullets li::before{ content: "‣"; display: inline-block; width: 1em; margin-left: -1.2em; }

/* Title & Backtitle (full-bleed video) */
.hero {
  min-height: 100vh;
  display: grid; place-items: stretch;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.6);
}
.hero::after{ /* subtle vignette */
  content:""; position:absolute; inset:0;
  background: radial-gradient(120% 120% at 50% 60%, transparent, rgba(0,0,0,.6));
  pointer-events: none;
}
.hero .content {
  position: relative;
  /* Desktop: left edge at 20%, width 40% (i.e., spans from 20% to 60%) */
  left: 18%; width: 40%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  margin-top: auto; margin-bottom: auto;
  padding: clamp(12px, 2vw, 24px);
}
.hero .logo {
  width: clamp(120px, 18vw, 240px);
  height: auto;
  display: block;
}
.hero .t1, .hero .t2, .hero .t3 { margin: 0; }
.hero .t1 { font-size: clamp(40px, 5vw, 44px); line-height: 1.25; }
.hero .t2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.25; }
.hero .t3 { font-weight: 700; font-size: clamp(14px, 1.6vw, 16px); line-height: 1.05; }
.hero .scroll-down {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 999px; border:1px solid #444; background: rgba(0,0,0,.4);
  text-decoration: none; color: #ddd;
  transition: transform .2s ease, background .2s ease, border .2s ease;
}
.hero .scroll-down:hover { transform: translateX(-50%) translateY(2px); background:#111; border-color:#666; }
.hero .scroll-icon { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid #ddd; }
.hero .scroll-up .scroll-icon { border-bottom: 12px solid #ddd; border-top: 0; }

/* 1/12 left margin + 1/6 right spacing content band */
.band { width: calc(100% - var(--left-gutter) - var(--right-gutter)); margin-left: var(--left-gutter); }

/* Three-line heading block */
.tri { margin-top: var(--tri-top-margin); margin-bottom: clamp(16px, 2.5vh, 32px); }
.tri p { margin: 0; font-size: var(--tri-font-size); color: #e6e6e6; }
.tri p:nth-child(1) { font-weight: 800; letter-spacing: .2px; margin-bottom: var(--tri-strong-gap); }
.tri p:nth-child(2), .tri p:nth-child(3) { font-weight: 400; color: #c9c9c9; }

/* Card grids */
.cards { display: grid; gap: var(--card-gap); margin-top: clamp(16px, 2vh, 24px); margin-bottom: clamp(32px, 6vh, 64px); }
/* bxt / sequence / contacts: 3 across */
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
/* services / methods: 2 x 2 (same card size as .cards-3) */
.cards-2x2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
/* practices: vertical stack of big cards */
.cards-practices { grid-template-columns: 1fr; }

/* Card visual */
.card {
  min-height: var(--card-min-h);
  background: linear-gradient(180deg, var(--soft), var(--softer));
  border: 1px solid #1e1e1e; border-radius: var(--card-radius);
  padding: clamp(14px, 1.6vw, 24px);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  display: grid; align-content: start; gap: .5rem;
}
.card .label { font-size: clamp(12px, 1.1vw, 14px); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.card h4 { margin: 0 0 .25rem 0; font-size: clamp(16px, 1.6vw, 20px); }
.card p { margin: 0; color:#cfcfcf; font-size: clamp(13px, 1.2vw, 15px); }

/* Practices big cards: double height vs base */
.practices .card { min-height: calc(var(--card-min-h) * 2); }

/* Footer */
footer { border-top: 1px solid #1a1a1a; color: #9aa1a9; font-size: 12px; padding: 20px var(--left-gutter) 40px var(--left-gutter); }

/* Mobile */
@media (max-width: 900px) {
  .hero .content { left: 5%; width: 90%; }
  .cards-3, .cards-2x2, .cards-practices { grid-template-columns: 1fr; }
  .practices .card { min-height: calc(var(--card-min-h) * 1.5); }
  :root { --left-gutter: 6vw; --right-gutter: 6vw; }
}

/* Focus ring */
a:focus-visible, button:focus-visible { outline: 2px dashed #888; outline-offset: 2px; }
