:root {
  --paper: #f7f3ea;
  --paper-deep: #efe5d4;
  --ink: #231f18;
  --muted: #746c5e;
  --green: #03c75a;
  --green-deep: #087a3a;
  --moss: #335f3c;
  --leaf: #85b96d;
  --clay: #cf7854;
  --sun: #f3bc6b;
  --line: rgba(35, 31, 24, 0.14);
  --shadow: 0 24px 70px rgba(58, 47, 31, 0.16);
  font-family: Inter, "Noto Sans KR", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.floating-network {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.34;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 243, 234, 0.9);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(132px, 13vw, 190px);
  height: auto;
}

.brand-logo-light {
  display: none;
}

.brand-logo-dark {
  display: block;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: #f6e8c9;
  --hero-progress: 0;
}

.sky-gradient,
.hero-art,
.hero-art-focus,
.ridge,
.forest {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky-gradient {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 247, 224, 0.78) 0 18%, transparent 40%),
    linear-gradient(180deg, #f7ebd1 0%, #f4e1bd 62%, #efd0a1 100%);
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transform: scale(calc(1 + var(--hero-progress) * 0.05));
  transform-origin: 50% 50%;
}

.hero-art-focus {
  inset: 18vh 20vw auto;
  height: 46vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 237, 0.72), rgba(255, 250, 237, 0.26) 52%, transparent 72%);
  transform: scale(calc(1 - var(--hero-progress) * 0.12));
}

.ridge {
  top: auto;
  height: 58vh;
  background-repeat: no-repeat;
}

.ridge-back {
  bottom: 20vh;
  height: 28vh;
  display: none;
  background:
    radial-gradient(ellipse 54% 34% at 8% 100%, #e5a070 0 62%, transparent 63%),
    radial-gradient(ellipse 70% 40% at 58% 100%, #d88968 0 62%, transparent 63%),
    radial-gradient(ellipse 50% 34% at 100% 100%, #efb67a 0 62%, transparent 63%);
  background-repeat: no-repeat;
}

.ridge-back::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(255, 235, 177, 0.18), transparent);
}

.ridge-mid {
  bottom: -4vh;
  height: 24vh;
  opacity: 0.32;
  background:
    radial-gradient(ellipse 58% 38% at 16% 100%, #d99d69 0 62%, transparent 63%),
    radial-gradient(ellipse 76% 42% at 58% 100%, #c88662 0 62%, transparent 63%),
    radial-gradient(ellipse 52% 36% at 96% 100%, #e3aa72 0 62%, transparent 63%);
}

.ridge-front {
  bottom: -15vh;
  height: 28vh;
  opacity: 0.2;
  background:
    radial-gradient(ellipse 52% 38% at 0% 90%, #6f9360 0 64%, transparent 65%),
    radial-gradient(ellipse 60% 42% at 38% 92%, #739b64 0 64%, transparent 65%),
    radial-gradient(ellipse 58% 40% at 86% 94%, #668f5c 0 64%, transparent 65%);
}

.forest {
  display: none;
  top: auto;
  height: 25vh;
  background-repeat: repeat-x;
  background-size: 170px 100%;
}

.forest-back {
  bottom: -1vh;
  opacity: 0.7;
  background-image:
    radial-gradient(circle at 20% 54%, #4f7d50 0 18%, transparent 19%),
    radial-gradient(circle at 44% 44%, #5f8e59 0 22%, transparent 23%),
    radial-gradient(circle at 70% 52%, #4a784e 0 19%, transparent 20%),
    linear-gradient(#5d7447 0 0) 0 100% / 100% 42%;
  background-repeat: repeat-x;
}

.forest-front {
  bottom: -7vh;
  background-size: 150px 100%;
  background-image:
    radial-gradient(circle at 18% 42%, #315f3d 0 19%, transparent 20%),
    radial-gradient(circle at 48% 34%, #3a7145 0 23%, transparent 24%),
    radial-gradient(circle at 78% 45%, #2d5a39 0 20%, transparent 21%),
    linear-gradient(#254b34 0 0) 0 100% / 100% 52%;
  background-repeat: repeat-x;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 40px));
  padding-top: 64px;
  text-align: center;
}

.eyebrow,
.section-label,
.reel-kicker,
.work-card span {
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green-deep);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-title-logo {
  display: grid;
  place-items: center;
  max-width: min(760px, 88vw);
}

.hero-title-logo img {
  display: block;
  width: min(720px, 82vw);
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(92, 72, 42, 0.12));
}

.hero-tagline {
  margin: -4px auto 24px;
  color: var(--green-deep);
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 25px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 34px;
  color: #4f473b;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.filters button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  border-color: var(--green-deep);
  background: var(--green-deep);
}

.button.secondary,
.filters button {
  color: var(--ink);
  background: rgba(255, 248, 238, 0.78);
}

.section,
.reel-section,
.site-footer {
  padding: clamp(76px, 10vw, 140px) clamp(20px, 5vw, 72px);
}

.reel-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: #173427;
}

.reel-link {
  display: grid;
  gap: 8px;
  min-height: 220px;
  align-content: end;
  padding: clamp(24px, 4vw, 42px);
  color: #fff8ed;
  background:
    linear-gradient(135deg, rgba(3, 199, 90, 0.26), transparent 55%),
    linear-gradient(180deg, #315a3d, #193326);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.team-logo {
  width: min(220px, 68%);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
}

.reel-link strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.reel-link:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(207, 120, 84, 0.34), transparent 55%),
    linear-gradient(180deg, #496b45, #1d3a2a);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.prose,
.section-header p,
.contact-copy {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tag-list span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  font-weight: 800;
}

.services {
  background: var(--paper-deep);
}

.section-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.work-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.72);
  box-shadow: var(--shadow);
}

.service-card-link,
.work-card-link {
  color: inherit;
  text-decoration: none;
}

.service-card {
  min-height: 360px;
  padding: 28px;
}

.service-card > span {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--green-deep);
  font-weight: 900;
}

.service-team-logo {
  display: block;
  width: min(230px, 84%);
  height: auto;
  margin: -18px 0 22px;
}

.service-card p,
.service-card li,
.work-card p {
  color: var(--muted);
}

.service-card ul {
  padding-left: 20px;
}

.work {
  background: #f8f1e5;
}

.filters {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.filters button.active {
  color: #fff;
  border-color: var(--green-deep);
  background: var(--green-deep);
}

.work-card {
  overflow: hidden;
  padding: 14px 14px 24px;
}

.work-card.is-hidden {
  display: none;
}

.work-card span,
.work-card h3,
.work-card p {
  display: block;
  padding-inline: 10px;
}

.work-team-logo {
  display: block;
  width: min(220px, 74%);
  height: auto;
  margin: -6px 10px 14px;
}

.work-visual {
  min-height: 260px;
  margin-bottom: 22px;
  border-radius: 6px;
  background: linear-gradient(160deg, #e89465, #395f3c 58%, #143427);
}

.work-visual.green {
  background: linear-gradient(160deg, #e8d7a2, #03c75a 44%, #173427);
}

.work-visual.studio {
  background: linear-gradient(160deg, #f0b973, #576a57 48%, #142c2c);
}

.marquee {
  overflow: hidden;
  padding: 26px 0;
  color: #fff7e8;
  background: var(--green-deep);
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: marquee 22s linear infinite;
}

.marquee span {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 900;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.contact {
  background:
    linear-gradient(180deg, rgba(3, 199, 90, 0.1), transparent 34%),
    var(--paper);
}

.contact-info {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  font-style: normal;
  color: var(--muted);
}

.contact-info a {
  color: var(--ink);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffaf0;
  font: inherit;
  word-break: normal;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--green-deep);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #fff8ed;
  background: #173427;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .reel-section,
  .two-column,
  .service-grid,
  .work-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .work-grid {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 560px) {
  .floating-network {
    opacity: 0.2;
  }

  .ridge-back {
    bottom: 18vh;
    opacity: 0.16;
  }

  .hero-art {
    width: 200%;
    max-width: none;
    opacity: 0.74;
    object-position: 18% 50%;
    transform: translateX(-5%) scale(calc(1 + var(--hero-progress) * 0.04));
  }

  .hero-art-focus {
    inset: 25vh 5vw auto;
    height: 45vh;
  }

  .nav-cta {
    display: none;
  }

  .hero-content {
    width: min(100% - 48px, 300px);
  }

  .brand-logo {
    width: 128px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 60px);
    line-height: 1.02;
  }

  .hero-title-logo {
    max-width: 100%;
  }

  .hero-title-logo img {
    width: min(250px, 64vw);
  }

  .hero-copy {
    max-width: 304px;
    font-size: 15px;
  }

  .hero-tagline {
    margin-top: 0;
    font-size: 18px;
  }

  .section,
  .reel-section,
  .site-footer {
    padding-inline: 18px;
  }
}
