:root {
  --ink: #191211;
  --muted: #696969;
  --accent: #ac0019;
  --paper: #f7f4f1;
  --line: rgba(25, 18, 17, 0.14);
  --white: #ffffff;
  --header-h: 76px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(172, 0, 25, 0.45);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  color: var(--white);
  background: rgba(25, 18, 17, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 244, 241, 0.94);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 58px;
  object-fit: contain;
}

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

.site-header.is-scrolled .brand-logo--light,
.site-header.is-open .brand-logo--light {
  display: none;
}

.site-header.is-scrolled .brand-logo--dark,
.site-header.is-open .brand-logo--dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: 7px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: left center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(25, 18, 17, 0.94) 0%, rgba(25, 18, 17, 0.72) 36%, rgba(25, 18, 17, 0.22) 100%),
    linear-gradient(0deg, rgba(25, 18, 17, 0.78) 0%, rgba(25, 18, 17, 0) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  padding: calc(var(--header-h) + 80px) clamp(20px, 5vw, 80px) 72px;
  transform: translateY(-34px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.12;
  font-weight: 760;
  text-wrap: balance;
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 760;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 960px);
  margin-top: clamp(30px, 4vw, 46px);
}

.hero-meta div {
  min-height: 76px;
  padding: 20px 28px 0 0;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 80px);
}

.section > .section-kicker,
.section > .split,
.section > .band-layout,
.section > .section-heading,
.section > .service-list,
.section > .contact-panel {
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 4.4vw, 56px);
  line-height: 1.12;
  font-weight: 760;
  text-wrap: balance;
}

.lead-block {
  display: grid;
  gap: 22px;
  color: #3f3937;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.85;
}

.lead-block p,
.section-heading p,
.band-layout p,
.service-item p,
.contact-panel p {
  margin: 0;
}

.dark-band {
  background: var(--ink);
  color: var(--white);
}

.band-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.band-layout > div:first-child p {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.metric-card {
  min-height: 168px;
  padding: 24px 26px;
  background: #211918;
}

.metric-title {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}

.metric-title span {
  color: var(--accent);
  font-weight: 850;
}

.metric-title strong {
  font-size: 20px;
}

.metric-card p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.68;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}

.services-overview {
  padding-top: clamp(54px, 7vw, 82px);
  padding-bottom: clamp(54px, 7vw, 82px);
}

.services-overview .section-heading {
  margin-bottom: 38px;
}

.services-overview .service-item {
  padding-block: 24px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 72px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--accent);
  font-weight: 850;
}

.service-item h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
}

.service-item p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.contact-section {
  padding-top: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding: clamp(34px, 5vw, 62px);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-panel h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 52px);
}

.contact-panel p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

address {
  display: grid;
  gap: 10px;
  min-width: 260px;
  font-style: normal;
  text-align: right;
}

address a {
  color: var(--accent);
  font-weight: 800;
}

address span {
  color: var(--muted);
}

.map-link {
  margin-top: 10px;
}

.contact-map {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.contact-map h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 400px);
  border: 1px solid var(--line);
  background: #f3efeb;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 80px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.subpage {
  background: var(--paper);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: calc(var(--header-h) + 74px) clamp(20px, 5vw, 80px) clamp(64px, 8vw, 104px);
}

.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  font-weight: 680;
  text-wrap: balance;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 28px 0 0;
  color: #4a4542;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.78;
}

.page-hero--portfolio {
  grid-template-columns: minmax(315px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  padding-bottom: clamp(46px, 6vw, 70px);
}

.page-hero--portfolio h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  white-space: nowrap;
}

.portfolio-heading {
  min-width: 0;
}

.client-marquee {
  min-width: 0;
}

.client-marquee h2 {
  margin: 10px 0 22px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
}

.client-marquee-window {
  overflow: hidden;
  padding-block: 1px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.client-marquee-track {
  display: flex;
  width: max-content;
  animation: client-scroll 126s linear infinite;
}

.client-marquee-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.client-logo {
  display: flex;
  flex: 0 0 166px;
  align-items: center;
  justify-content: center;
  height: 86px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.client-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.client-logo--name {
  color: #332e2c;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 570;
  text-align: center;
  word-break: keep-all;
}

.client-marquee:hover .client-marquee-track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .client-marquee-window {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .client-marquee-track {
    animation: none;
  }
}

.year-nav-section {
  position: sticky;
  z-index: 8;
  top: var(--header-h);
  background: rgba(247, 244, 241, 0.94);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.year-nav {
  display: flex;
  gap: 8px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 80px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.year-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: #3f3937;
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 650;
}

.year-nav a:hover,
.year-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.project-years {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 80px) clamp(80px, 10vw, 132px);
}

.project-year {
  scroll-margin-top: calc(var(--header-h) + 74px);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(34px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.project-year:first-child {
  padding-top: 0;
  border-top: 0;
}

.year-heading {
  position: sticky;
  top: calc(var(--header-h) + 72px);
  align-self: start;
}

.year-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
}

.year-heading span {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.project-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.74);
  transition: background 160ms ease;
}

.project-row:hover {
  background: var(--white);
}

.project-client,
.project-row h3 {
  min-width: 0;
}

.project-client {
  color: #514b49;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.project-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 520;
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand-logo {
    height: 48px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    z-index: 19;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 18px;
    background: rgba(247, 244, 241, 0.98);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: calc(var(--header-h) + 54px) 20px 42px;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 54px);
  }

  .hero-copy {
    line-height: 1.68;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-meta div {
    min-height: auto;
    padding: 12px 0;
  }

  .split,
  .band-layout,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  address {
    min-width: 0;
    text-align: left;
  }

  .contact-map {
    margin-top: 0;
  }

  .contact-map iframe {
    height: 280px;
  }

  .site-footer {
    display: grid;
  }

  .page-hero,
  .project-year,
  .project-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .page-hero--portfolio {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .page-hero--portfolio h1 {
    font-size: clamp(40px, 10vw, 60px);
  }

  .year-heading {
    position: static;
  }

  .project-row {
    gap: 10px;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
  }

  .hero-content {
    padding-bottom: 32px;
  }

  .hero-meta strong {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .hero-meta span {
    font-size: 13px;
  }

  .button {
    width: 100%;
  }

  .metric-card {
    min-height: 210px;
    padding: 24px;
  }

  .page-hero {
    padding-bottom: 48px;
  }

  .client-logo {
    flex-basis: 148px;
    height: 78px;
    padding: 16px 12px;
  }

  .client-logo img {
    max-height: 43px;
  }

  .year-nav {
    padding-block: 10px;
  }
}
