:root {
  --c-bg: #ffffff;
  --c-text: #333333;
  --c-hero-outer-pad: 40px;
  --hero-max-w: 1630px;
  --hero-max-h: 872px;
  --hero-r: 32px;
  --c-accent-purple: rgb(146, 8, 131);
  --c-accent-orange: rgb(232, 116, 0);
  --c-navi: #ffffff;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", AppleGothic, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page {
  min-width: 0;
  overflow-x: hidden;
}

/* —— Shell: same outer dimensions as readMain (1710 + 40px padding) —— */
.section-shell {
  max-width: 1710px;
  margin: 0 auto;
  padding: var(--c-hero-outer-pad);
}

.section-heading {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 42ch;
}

/* —— Header inside hero —— */
.hero-card__header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 20px 28px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
  display: block;
}
.logo__type {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(0.75rem, 2.2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.nav a:focus {
  text-decoration: underline;
}

.header-utility {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  color: #fff;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
}
.header-utility a {
  color: inherit;
  text-decoration: none;
}
.header-utility a:hover,
.header-utility a:focus {
  text-decoration: underline;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: default;
}
.lang::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  margin-top: 2px;
}

/* —— Hero: rounded 1630×872 card —— */
.hero-card {
  position: relative;
  width: 100%;
  max-width: var(--hero-max-w);
  min-height: min(90vh, var(--hero-max-h));
  height: var(--hero-max-h);
  margin: 0 auto;
  background: #000;
  border-radius: var(--hero-r);
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-card {
    height: auto;
    min-height: min(88vh, 700px);
  }
  .main-txt-wrap {
    right: 0;
    top: 38%;
    max-width: 100%;
    text-align: left;
    padding: 0 1.5rem 0 1.5rem;
    font-size: clamp(0.9rem, 2.4vw, 1rem);
    line-height: 1.5;
  }
  .main-tit__line--first,
  .main-tit__line--second {
    width: 100% !important;
  }
  .hide-m {
    display: none;
  }
}

/* readMain: visual-wrap = card body (DIV-0 alvo) */
.visual-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--hero-r);
  overflow: hidden;
}

/* DIV-1: opacidade no invólucro, não no vídeo */
.bg-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.bg-video-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--hero-r);
}
.bg-video-content--m {
  display: none;
}
@media (max-width: 768px) {
  .bg-video-content--d {
    display: none;
  }
  .bg-video-content--m {
    display: block;
  }
}

/* DIV-2: stack inferior esquerdo; símbolo T fora do branco (DIV-3 + DIV-4) */
.main-tit-wrap {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  text-align: start;
  max-width: 100%;
  pointer-events: auto;
}

.main-symbol {
  padding: 40px;
  box-sizing: border-box;
}
.main-symbol img {
  display: block;
  width: 140px;
  height: auto;
  max-width: min(140px, 36vw);
  vertical-align: top;
}
@media (max-width: 600px) {
  .main-symbol {
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
  }
  .main-symbol img {
    width: min(100px, 28vw);
  }
}

.main-tit {
  position: relative;
  left: 0;
  bottom: 0;
}

/* H2-0 / H2-1: cada um com fundo branco e raio só no canto sup. direito (formato L) */
.main-tit__line {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.2vw, 56px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0;
  color: #333;
  background: #fff;
  border-radius: 0 32px 0 0;
  box-sizing: border-box;
  position: relative;
  word-break: keep-all;
}
.main-tit__line--first {
  width: 363.164px;
  max-width: 100%;
  padding: 24px 40px 0 40px;
  line-height: 67.2px;
}
.main-tit__line--second {
  padding: 24px 40px;
  line-height: 67.2px;
  width: max-content;
  max-width: 100%;
}
@media (max-width: 600px) {
  .main-tit__line--first,
  .main-tit__line--second {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    line-height: 1.25;
  }
  .main-tit__line--second {
    line-height: 1.3;
  }
}

.main-tit__line .purple,
.main-tit__line .orange {
  font-size: inherit;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 84px;
  display: inline;
}
@media (max-width: 600px) {
  .main-tit__line .purple,
  .main-tit__line .orange {
    line-height: 1.3;
  }
}
.main-tit__line .purple {
  color: var(--c-accent-purple);
  outline-color: var(--c-accent-purple);
}
.main-tit__line .orange {
  color: var(--c-accent-orange);
  outline-color: var(--c-accent-orange);
}

/* DIV-5 + P-0 */
.main-txt-wrap {
  position: absolute;
  z-index: 2;
  right: 0;
  /* P-0: ref top 436px em caixa 872px ≈ 50% a partir do topo */
  top: 50%;
  max-width: min(560px, 46%);
  padding: 40px;
  box-sizing: border-box;
  text-align: right;
  color: #fff;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  margin: 0;
  pointer-events: auto;
}
@media (max-width: 1200px) {
  .main-txt-wrap {
    max-width: min(520px, 48vw);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.5;
  }
}
.main-txt-wrap p {
  margin: 0;
  color: #fff;
  text-align: right;
}
@media (max-width: 900px) {
  .main-txt-wrap p {
    text-align: left;
  }
}

/* —— Service sections —— */
.section-block {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-bottom: 1px solid #eee;
}
.section-block:last-of-type {
  border-bottom: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.service-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  margin: 0 0 0.4rem;
}
.service-tile h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.service-tile p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1.25rem;
  line-height: 1.65;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
}
.more::after {
  content: "›";
  font-size: 1.1em;
  opacity: 0.5;
  transform: translateX(0);
  transition: transform 0.15s;
}
.more:hover::after {
  transform: translateX(3px);
}
.placeholder-figure {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
}
.section-cta {
  text-align: center;
  background: #f5f5f5;
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem;
  margin: 0 calc(-1 * var(--c-hero-outer-pad)) 0;
  width: calc(100% + 2 * var(--c-hero-outer-pad));
  max-width: none;
}
.section-hire {
  background: #f9f9f9;
  text-align: center;
  margin: 0;
  padding: clamp(2.5rem, 4vw, 3.5rem) 1.5rem;
  border: 0;
}
@media (max-width: 1710px) {
  .section-cta {
    margin: 0;
    width: 100%;
  }
}
.section-cta h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.7rem 1.6rem;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.88;
  text-decoration: none;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}
@media (max-width: 800px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}
.mini-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  border: 1px solid #eee;
}
.mini-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #222;
}
.mini-card .link-more {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}
.mini-card .link-more:hover {
  text-decoration: underline;
}

.footer {
  background: #1a1a1a;
  color: #bbb;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 2.5rem var(--c-hero-outer-pad) 2rem;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.footer img {
  height: 32px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(1) brightness(1.4);
}
.foot-note {
  margin: 0;
  max-width: 55ch;
}
.foot-note a {
  color: #fff;
}
@media (max-width: 768px) {
  :root {
    --c-hero-outer-pad: 20px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .header-utility {
    margin-left: auto;
  }
  .nav a {
    white-space: normal;
  }
}

/* Seções: utilitários (substitui estilos inline) */
.section-block--spaced-top {
  padding-top: 3rem;
}
.section-heading--center {
  text-align: center;
  max-width: 24ch;
  margin: 0 auto 2rem;
}
.section-hire .section-heading {
  text-align: center;
}
.section-hire .section-lead--center {
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 48ch;
}
.section-hire .section-hire__actions {
  text-align: center;
  margin: 0;
}
