/* Cognitive Clouds Business — Layer C theme */
:root {
  --color-ink: #1e3a34;
  --color-ink-deep: #132722;
  --color-moss: #3d6b5a;
  --color-copper: #9a6b3f;
  --color-copper-hot: #b07d4a;
  --color-paper: #e4ebe3;
  --color-paper-2: #d2ddd0;
  --color-mist: #f0f4ef;
  --color-fog: #c5d0c4;
  --color-text: #1a2420;
  --color-muted: #4a5a54;
  --color-white: #f7faf6;
  --color-danger: #8b3a2f;
  --font-display: "Gowun Batang", "Nanum Myeongjo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --radius: 2px;
  --max: 1120px;
  --narrow: 720px;
  --header-h: 4.25rem;
  --shadow-soft: 0 18px 40px rgba(19, 39, 34, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(61, 107, 90, 0.12), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(154, 107, 63, 0.08), transparent 45%),
    linear-gradient(180deg, var(--color-mist) 0%, var(--color-paper) 40%, var(--color-paper-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-copper);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--narrow));
}

.main {
  padding-top: var(--header-h);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(240, 244, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 52, 0.12);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
}

.site-header__mark {
  width: 0.85rem;
  height: 0.85rem;
  background: linear-gradient(135deg, var(--color-ink), var(--color-moss));
  transform: rotate(45deg);
  flex-shrink: 0;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(30, 58, 52, 0.25);
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-copper);
}

.site-nav__cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--color-ink);
  color: var(--color-white) !important;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-moss);
  color: var(--color-white) !important;
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-mist);
    border-bottom: 1px solid rgba(30, 58, 52, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .site-nav.is-open {
    max-height: 24rem;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-moss);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(30, 58, 52, 0.35);
  color: var(--color-ink);
}

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

.btn--ghost-light {
  background: transparent;
  border-color: rgba(247, 250, 246, 0.55);
  color: var(--color-white);
}

.btn--ghost-light:hover {
  background: rgba(247, 250, 246, 0.12);
  color: var(--color-white);
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}

/* Hero home — full bleed */
.hero--home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 39, 34, 0.35) 0%, rgba(19, 39, 34, 0.72) 55%, rgba(19, 39, 34, 0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-xl) 0 calc(var(--space-xl) + 0.5rem);
  animation: rise-in 0.9s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  max-width: 18em;
  margin: 0 0 1rem;
}

.hero__lead {
  max-width: 34em;
  color: rgba(247, 250, 246, 0.88);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  animation: rise-in 0.7s var(--ease) both;
}

.page-hero__eyebrow,
.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin: 0 0 0.5rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.page-hero__lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 40em;
  margin: 0;
}

.page-hero--split {
  padding-bottom: 0;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--ink {
  background: linear-gradient(135deg, var(--color-ink-deep), var(--color-ink) 55%, var(--color-moss));
  color: var(--color-white);
}

.section--ink .section__title,
.section--ink h2,
.section--ink .text-link {
  color: var(--color-white);
}

.section--ink .section__eyebrow {
  color: var(--color-copper-hot);
}

.section--ink .section__lead {
  color: rgba(247, 250, 246, 0.88);
}

.section--muted {
  background: rgba(255, 255, 255, 0.35);
  border-block: 1px solid rgba(30, 58, 52, 0.08);
}

.section__title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.section__lead {
  max-width: 40em;
  color: var(--color-muted);
}

.section--error {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-copper);
  transform: rotate(45deg);
}

.section--ink .checklist li::before {
  background: var(--color-copper-hot);
}

.checklist--muted li::before {
  background: var(--color-fog);
}

/* Offer / service layouts */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.offer-item__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: 0.85rem;
  filter: saturate(0.9);
}

.offer-item__title {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

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

.offer-item__summary {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.98rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.75rem;
  align-items: center;
}

.service-row--flagship {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.4);
  border-left: 3px solid var(--color-copper);
}

@media (max-width: 700px) {
  .service-row {
    grid-template-columns: 1fr;
  }
}

.service-row__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.service-row__title {
  font-size: 1.5rem;
  margin: 0.35rem 0 0.5rem;
}

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

.service-row__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-copper);
  border-bottom: 1px solid var(--color-copper);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split__figure img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.pullquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
}

.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.55;
  color: var(--color-ink);
}

.pullquote footer {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.pullquote--compact p {
  font-size: 1.15rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-aside {
  background: rgba(255, 255, 255, 0.45);
  padding: 1.5rem;
  border-top: 3px solid var(--color-ink);
}

.steps {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.meta-dl {
  margin: 0;
}

.meta-dl dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-copper);
  margin-top: 0.85rem;
}

.meta-dl dd {
  margin: 0.2rem 0 0;
}

/* Process timeline */
.process-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  counter-reset: none;
}

.process-timeline li {
  position: relative;
  padding: 0 0 2rem 1.5rem;
  border-left: 2px solid var(--color-fog);
}

.process-timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.process-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  background: var(--color-ink);
  border-radius: 1px;
  transform: rotate(45deg);
}

.process-timeline h2 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(30, 58, 52, 0.06);
}

.cta-band p {
  margin: 0;
  flex: 1 1 12rem;
}

/* Pricing table */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.4);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(30, 58, 52, 0.12);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: 700;
}

.rate-table tr:hover td {
  background: rgba(61, 107, 90, 0.06);
}

@media (max-width: 600px) {
  .rate-table {
    display: block;
    overflow-x: auto;
  }
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-top: 2px solid var(--color-moss);
}

.review-card p {
  font-size: 1rem;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.review-card__service {
  color: var(--color-copper);
  font-weight: 500;
}

/* Team — not card-heavy; simple columns */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 0.85rem;
  filter: grayscale(0.15);
}

.team-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
}

.team-card__role {
  color: var(--color-copper);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Blog */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 700px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.post-card time,
.post-meta time {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.post-card h2 {
  font-size: 1.4rem;
  margin: 0.35rem 0 0.5rem;
}

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

.post-hero-img {
  margin: 1.5rem 0 2rem;
}

.post-hero-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0;
}

.tag {
  font-size: 0.8rem;
  color: var(--color-moss);
}

.post-back {
  margin-top: 2.5rem;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info__note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.form {
  background: rgba(255, 255, 255, 0.45);
  padding: 1.75rem;
  border-top: 3px solid var(--color-ink);
}

.form__field {
  margin-bottom: 1.1rem;
}

.form__field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30, 58, 52, 0.25);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-moss);
  outline-offset: 1px;
}

.form__field input.is-invalid,
.form__field textarea.is-invalid {
  border-color: var(--color-danger);
}

.form__error {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form__status {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form__status--success {
  background: rgba(61, 107, 90, 0.15);
  color: var(--color-ink);
}

.form__status--error {
  background: rgba(139, 58, 47, 0.12);
  color: var(--color-danger);
}

/* Prose / legal */
.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
}

.prose.legal h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.prose code {
  font-size: 0.9em;
  background: rgba(30, 58, 52, 0.08);
  padding: 0.1em 0.35em;
}

/* Footer */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--color-ink-deep);
  color: rgba(247, 250, 246, 0.85);
}

.site-footer a {
  color: rgba(247, 250, 246, 0.9);
}

.site-footer a:hover {
  color: var(--color-copper-hot);
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-white);
  margin: 0 0 0.35rem;
}

.site-footer__tag {
  margin: 0;
  color: var(--color-fog);
  font-size: 0.95rem;
}

.site-footer__label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-copper-hot);
  margin-right: 0.35rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__links a {
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 250, 246, 0.12);
  font-size: 0.85rem;
  color: var(--color-fog);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 1rem;
  animation: rise-in 0.45s var(--ease) both;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: min(100%, 720px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-copper-hot);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner .btn--ghost {
  border-color: rgba(247, 250, 246, 0.4);
  color: var(--color-white);
}

.cookie-banner .btn--primary {
  background: var(--color-copper);
}

.cookie-banner .btn--primary:hover {
  background: var(--color-copper-hot);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
