/* ==========================================================================
   Components
   ========================================================================== */

/* --- Section heading ----------------------------------------------------- */

.eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-700);
}

.section--dark .eyebrow,
.section--darker .eyebrow {
  color: var(--cyan-400);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: var(--step-1);
  color: var(--text-muted);
  margin-bottom: 0;
}

.section--dark .section-head p,
.section--darker .section-head p {
  color: var(--text-on-dark-muted);
}

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.8em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink-800);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ink-700);
  color: #fff;
}

.btn--accent {
  background: var(--cyan-400);
  color: var(--ink-900);
}

.btn--accent:hover {
  background: var(--cyan-300);
  color: var(--ink-900);
}

.btn--ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--ink-800);
  color: var(--ink-800);
}

.section--dark .btn--ghost,
.section--darker .btn--ghost {
  border-color: var(--border-dark);
  color: #fff;
}

.section--dark .btn--ghost:hover,
.section--darker .btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.btn--sm {
  padding: 0.55em 1.1em;
  font-size: var(--step--1);
}

.btn__arrow {
  transition: transform 0.18s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --- Grid ---------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

/* --- Card ---------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
}

.card__text {
  color: var(--text-muted);
  font-size: var(--step--1);
  margin-bottom: var(--sp-4);
}

.card__foot {
  margin-top: auto;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--cyan-700);
}

a.card {
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  border-color: var(--ink-800);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

a.card:hover .card__media img {
  transform: scale(1.05);
}

.section--dark .card,
.section--darker .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}

.section--dark .card__text,
.section--darker .card__text {
  color: var(--text-on-dark-muted);
}

.section--dark .card__foot,
.section--darker .card__foot {
  color: var(--cyan-400);
}

.section--dark a.card:hover,
.section--darker a.card:hover {
  border-color: var(--cyan-400);
}

/* --- Feature (numbered) card --------------------------------------------- */

.feature {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature__num {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-700);
}

.feature h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
}

.feature p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: var(--step--1);
}

.section--dark .feature,
.section--darker .feature {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-dark);
}

.section--dark .feature p,
.section--darker .feature p {
  color: var(--text-on-dark-muted);
}

.section--dark .feature__num,
.section--darker .feature__num {
  color: var(--cyan-400);
}

/* --- Proof bar (credential strip) ---------------------------------------- */

.proofbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1px;
  background: var(--border-dark);
  border-block: 1px solid var(--border-dark);
}

.proofbar__item {
  background: var(--ink-800);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
}

.proofbar__value {
  display: block;
  font-size: var(--step-2);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.proofbar__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
  line-height: 1.4;
}

/* --- Tag / chip ---------------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}

.tag--accent {
  background: rgba(14, 145, 173, 0.1);
  color: var(--cyan-700);
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.taglist li {
  margin: 0;
}

.section--dark .tag,
.section--darker .tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

/* --- Table --------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.table caption {
  text-align: left;
  padding-bottom: var(--sp-3);
  color: var(--text-muted);
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  border-bottom: 2px solid var(--ink-800);
  font-weight: 700;
  white-space: nowrap;
}

.table tbody tr:hover {
  background: var(--slate-50);
}

.table--fixed-first th:first-child,
.table--fixed-first td:first-child {
  white-space: nowrap;
  font-weight: 600;
}

/* --- Spec list (definition pairs) ---------------------------------------- */

.specs {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.specs > div {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}

.specs dt {
  font-weight: 650;
}

.specs dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .specs > div {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
}

/* --- Checklist ----------------------------------------------------------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2.5px solid var(--cyan-600);
  border-bottom: 2.5px solid var(--cyan-600);
  transform: rotate(-45deg);
}

.section--dark .checklist li::before,
.section--darker .checklist li::before {
  border-color: var(--cyan-400);
}

/* --- Timeline ------------------------------------------------------------ */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__year {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) 1fr;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.timeline__year h2 {
  font-size: var(--step-3);
  color: var(--cyan-700);
  margin: 0;
  letter-spacing: -0.03em;
}

.timeline__events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.timeline__events li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--sp-4);
  margin: 0;
}

.timeline__month {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--slate-400);
  font-size: var(--step--1);
  padding-top: 0.15em;
}

@media (max-width: 640px) {
  .timeline__year {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

/* --- Name grid (clients, certifications) --------------------------------- */

.namegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.namegrid li {
  margin: 0;
  background: var(--paper);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
  line-height: 1.35;
}

.namegrid li span {
  display: block;
  font-weight: 400;
  color: var(--slate-400);
  font-size: 0.82em;
  margin-top: 0.15em;
}

/* --- Tabs / filter ------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.tabs li {
  margin: 0;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.7em 1em;
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.tab:hover {
  color: var(--ink-800);
}

.tab[aria-selected="true"] {
  color: var(--ink-800);
  border-bottom-color: var(--cyan-600);
}

/* --- Accordion ----------------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--border);
}

.accordion details {
  border-bottom: 1px solid var(--border);
}

.accordion summary {
  padding: var(--sp-4) 2.5rem var(--sp-4) 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--slate-400);
  border-bottom: 2px solid var(--slate-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.accordion details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.accordion__body {
  padding-bottom: var(--sp-5);
  color: var(--text-muted);
}

/* --- Note / callout ------------------------------------------------------ */

.note {
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--cyan-600);
  background: var(--slate-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.note p:last-child {
  margin-bottom: 0;
}

/* --- Figure -------------------------------------------------------------- */

.figure {
  margin: 0 0 var(--sp-6);
}

.figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.figure figcaption {
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* --- CTA band ------------------------------------------------------------ */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* --- Org chart ----------------------------------------------------------- */

.org {
  display: grid;
  gap: var(--sp-5);
  justify-items: center;
}

.org__node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--ink-800);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.org__node span {
  font-weight: 400;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.6);
}

.org__node--staff {
  background: var(--paper);
  color: var(--ink-800);
  border: 1px solid var(--border);
}

.org__node--staff span {
  color: var(--slate-400);
}

/* Vertical connector between org levels. */
.org__link {
  width: 2px;
  height: var(--sp-5);
  background: var(--border);
}

.org__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--sp-4);
  width: 100%;
}

/* Leadership row: centred and wrapping, rather than stretched to a grid. */
.org__row--lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}

.org__unit {
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan-600);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: center;
}

.org__unit h3 {
  font-size: var(--step-0);
  margin-bottom: var(--sp-3);
}

.org__unit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.org__unit li {
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  font-size: var(--step--1);
  color: var(--slate-500);
}

/* --- Icon card -----------------------------------------------------------
   Small illustrative tile plus a caption. The artwork currently comes from
   the Korean site and carries Korean labels; see DEPLOY.md.
   ------------------------------------------------------------------------ */

.iconrow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: var(--sp-4);
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
}

.iconrow li {
  margin: 0;
}

.iconcard {
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}

.iconcard img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--slate-100);
}

.iconcard span {
  display: block;
  padding: var(--sp-3);
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.35;
}

.section--dark .iconcard,
.section--darker .iconcard {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}

/* Group heading above an icon row. */
.iconrow-head {
  font-size: var(--step-1);
  margin: var(--sp-6) 0 var(--sp-4);
}

/* --- Product screenshot -------------------------------------------------- */

.shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

/* Flags artwork that still carries Korean text baked into the image. */
.figure figcaption .pending,
.iconrow + .note .pending {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: rgba(243, 156, 91, 0.16);
  color: #8a5015;
  font-size: 0.9em;
  font-weight: 650;
}

