:root {
  --ink: #101010;
  --muted: #6f6f6a;
  --line: rgba(16, 16, 16, 0.14);
  --paper: #ffffff;
  --warm: #f4f1ec;
  --warm-2: #ece8e1;
  --dark: #1d1d1c;
  --max: 1380px;
  --header-h: 88px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container-wide { width: min(calc(100% - 96px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 12px 18px; color: #fff; background: #111;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--header-h); transition: background .35s, box-shadow .35s, transform .35s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex-direction: column; line-height: .84; letter-spacing: .06em; font-weight: 800; }
.brand span { font-size: 24px; }
.brand small { margin-top: 7px; font-size: 16px; letter-spacing: .32em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(26px, 3.4vw, 58px); margin-left: auto; margin-right: 44px; }
.desktop-nav a { position: relative; font-size: 16px; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.menu-toggle { width: 42px; height: 42px; padding: 11px 8px; display: grid; align-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; margin-left: auto; background: currentColor; transition: transform .3s, width .3s, opacity .3s; }
.menu-toggle span:nth-child(2) { width: 17px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 900; display: grid; align-content: center;
  padding: 120px 8vw 80px; color: #fff; background: #1d1d1c;
  visibility: hidden; opacity: 0; transform: translateY(-24px); transition: .45s var(--ease);
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu nav { display: grid; gap: 12px; }
.mobile-menu nav a { width: fit-content; font-size: clamp(34px, 8vw, 68px); font-weight: 700; line-height: 1.2; }
.mobile-menu p { margin: 70px 0 0; color: rgba(255,255,255,.58); font-size: 16px; }

/* Hero */
.hero { position: relative; min-height: 790px; height: 100svh; overflow: hidden; background: var(--warm); }
.hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transform: scale(1.035); transition: opacity 1.1s var(--ease), transform 7s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,245,241,.98) 0%, rgba(247,245,241,.90) 29%, rgba(247,245,241,.26) 56%, rgba(0,0,0,.02) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.hero-copy { max-width: 620px; margin-top: 16px; }
.eyebrow { margin: 0 0 24px; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.hero h1 { margin: 0; font-size: clamp(52px, 5.4vw, 88px); line-height: 1.12; letter-spacing: -.06em; font-weight: 720; }
.hero-description { margin: 32px 0 0; font-size: 18px; line-height: 1.9; color: #343432; }
.outline-button, .solid-button { display: inline-flex; align-items: center; justify-content: center; gap: 36px; min-height: 58px; padding: 0 24px; font-size: 16px; font-weight: 700; transition: .3s var(--ease); }
.outline-button { margin-top: 38px; border: 1px solid var(--ink); background: rgba(255,255,255,.12); }
.outline-button img { width: 18px; }
.outline-button:hover { color: #fff; background: var(--ink); }
.outline-button:hover img { filter: invert(1); }
.hero-control { position: absolute; left: 0; bottom: 46px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.hero-pagination { display: flex; align-items: center; gap: 14px; }
.hero-pagination button { border: 0; padding: 0; font-size: 16px; color: rgba(0,0,0,.45); background: transparent; cursor: pointer; }
.hero-pagination button.is-active { color: var(--ink); font-weight: 800; }
.hero-pagination span { width: 42px; height: 1px; background: rgba(0,0,0,.28); }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button { width: 44px; height: 44px; border: 1px solid rgba(0,0,0,.55); border-radius: 50%; background: rgba(255,255,255,.18); cursor: pointer; transition: .25s; }
.hero-arrows button:hover { color: #fff; background: #111; border-color: #111; }

/* Services */
.services { padding-top: 74px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.service-card { min-width: 0; border-right: 1px solid var(--line); }
.service-body { min-height: 380px; padding: 0 clamp(24px, 2.5vw, 44px) 36px; display: flex; flex-direction: column; }
.service-number { margin-bottom: 24px; font-size: 16px; font-weight: 800; }
.service-icon { width: 44px; height: 44px; margin-bottom: 23px; }
.service-card h2 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.04em; }
.service-card p { margin: 0; color: #494945; font-size: 16px; line-height: 1.85; }
.service-card .service-body > a { margin-top: auto; width: fit-content; font-size: 20px; transition: transform .25s; }
.service-card:hover .service-body > a { transform: translateX(8px); }
.service-photo { width: 100%; aspect-ratio: 1.48/1; object-fit: cover; filter: saturate(.82); transition: transform .6s var(--ease), filter .5s; }
.service-card { overflow: hidden; }
.service-card:hover .service-photo { transform: scale(1.035); filter: saturate(1); }

/* Projects */
.projects { padding-top: 44px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.section-heading h2 { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 20px; letter-spacing: -.02em; }
.section-heading h2::after { content: ""; width: 34px; height: 1px; background: #999; }
.section-heading a { font-size: 16px; font-weight: 650; }
.section-heading a span { display: inline-block; margin-left: 16px; transition: transform .25s; }
.section-heading a:hover span { transform: translateX(6px); }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 48px 28px; }
.project-card figure { margin: 0 0 16px; overflow: hidden; background: #eee; }
.project-card img { width: 100%; aspect-ratio: 1.48/1; object-fit: cover; transition: transform .65s var(--ease), filter .45s; }
.project-card h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.01em; }
.project-card p { margin: 0; color: #777; font-size: 16px; }
.project-card:hover img { transform: scale(1.045); filter: brightness(.95); }
.projects-cta { margin-top: 58px; text-align: center; }
.solid-button { color: #fff; background: #111; }
.solid-button:hover { background: #333; transform: translateY(-2px); }

/* Process */
.process { min-height: 520px; display: grid; grid-template-columns: 38% 62%; background: var(--warm); }
.process-image { min-height: 520px; background: url('../images/sections/process-bg.png') center/cover no-repeat; }
.process-content { position: relative; padding: 92px clamp(56px, 7vw, 140px); display: flex; flex-direction: column; justify-content: center; }
.process-content h2 { margin: 0 0 48px; font-size: clamp(30px, 3vw, 52px); line-height: 1.32; letter-spacing: -.045em; }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; }
.process-list li { border-top: 1px solid rgba(0,0,0,.18); padding-top: 16px; }
.process-list strong { display: block; margin-bottom: 10px; font-size: 16px; }
.process-list span { font-size: 16px; }
.circle-link { position: absolute; right: 50px; top: 50px; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #777; border-radius: 50%; transition: .3s; }
.circle-link:hover { color: #fff; background: #111; border-color: #111; transform: rotate(-35deg); }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.expertise-card > p:first-child { margin: 0 0 8px; font-size: 16px; font-weight: 750; }
.expertise-card h2 { margin: 0 0 25px; font-size: clamp(28px, 2.3vw, 40px); line-height: 1; letter-spacing: -.045em; }
.expertise-card figure { margin: 0 0 22px; overflow: hidden; }
.expertise-card img { width: 100%; aspect-ratio: 2/1; object-fit: cover; transition: transform .6s var(--ease); }
.expertise-card > p:not(:first-child) { min-height: 54px; margin: 0 0 20px; color: #555; font-size: 16px; }
.expertise-card a { font-size: 16px; font-weight: 700; }
.expertise-card:hover img { transform: scale(1.04); }

/* Metrics */
.metrics { padding: 62px 0; background: var(--warm); border-top: 1px solid rgba(0,0,0,.03); border-bottom: 1px solid rgba(0,0,0,.03); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { position: relative; min-height: 132px; padding: 0 52px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric img { position: absolute; width: 29px; left: 18px; top: 3px; opacity: .5; }
.metric strong { display: block; font-size: 45px; line-height: 1; letter-spacing: -.04em; }
.metric p { margin: 12px 0 0; font-size: 16px; }

/* Manifesto */
.manifesto { min-height: 470px; display: grid; grid-template-columns: 40% 60%; overflow: hidden; background: #fff; }
.manifesto-image { min-height: 470px; background: url('../images/sections/manifesto-bg.png') center/cover no-repeat; }
.manifesto-copy { position: relative; padding: 80px clamp(50px, 8vw, 150px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.manifesto-copy::after { content: ""; position: absolute; inset: 0 0 0 36%; background: url('../images/sections/grid-pattern.png') center/cover no-repeat; opacity: .72; pointer-events: none; }
.manifesto-copy > * { position: relative; z-index: 1; }
.manifesto-copy h2 { margin: 0 0 26px; font-size: clamp(34px, 3.8vw, 60px); line-height: 1.35; letter-spacing: -.05em; }
.manifesto-copy p { margin: 0 0 28px; color: #4c4c49; font-size: 16px; }
.manifesto-copy span { font-family: Georgia, serif; font-size: 24px; font-style: italic; color: #b4a99a; }

/* Footer */
.site-footer { padding: 68px 0 72px; color: #fff; background: #1b1b1a; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1.3fr .65fr .9fr .85fr; gap: 42px; }
.footer-brand { margin-bottom: 24px; }
.footer-brand span { font-size: 25px; }
.footer-grid h2 { margin: 0 0 18px; font-size: 16px; letter-spacing: .1em; color: rgba(255,255,255,.42); }
.footer-grid p, .footer-grid a, .footer-grid small { color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.85; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; }
.footer-grid > div > a:not(.brand):hover { color: #fff; }
.footer-grid > div:first-child > p { margin: 0 0 22px; }
.socials a { display: inline-grid !important; place-items: center; width: 38px !important; height: 38px; margin-right: 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff !important; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 800; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: #111; box-shadow: 0 8px 28px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s; cursor: pointer; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.service-card:nth-child(2), .project-card:nth-child(2), .expertise-card:nth-child(2) { transition-delay: .08s; }
.service-card:nth-child(3), .project-card:nth-child(3), .expertise-card:nth-child(3) { transition-delay: .16s; }
.service-card:nth-child(4), .project-card:nth-child(4) { transition-delay: .24s; }
.project-card:nth-child(n+5) { transition-delay: .1s; }

@media (max-width: 1180px) {
  :root { --header-h: 78px; }
  .container-wide { width: min(calc(100% - 56px), var(--max)); }
  .desktop-nav { display: none; }
  .hero { min-height: 720px; }
  .hero-shade { background: linear-gradient(90deg, rgba(247,245,241,.98) 0%, rgba(247,245,241,.88) 43%, rgba(247,245,241,.28) 76%); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-body { min-height: 330px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 45% 55%; }
  .process-content { padding-inline: 52px; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { gap: 24px; }
  .footer-grid { grid-template-columns: 1.5fr 1.2fr .7fr .8fr; }
  .socials { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .container-wide { width: min(calc(100% - 36px), var(--max)); }
  .section { padding: 78px 0; }
  .hero { height: 820px; min-height: 0; }
  .hero-slide { background-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(247,245,241,.94) 0%, rgba(247,245,241,.78) 48%, rgba(247,245,241,.24) 100%); }
  .hero-content { justify-content: flex-start; padding-top: 170px; }
  .hero-copy { max-width: 520px; }
  .hero h1 { font-size: clamp(43px, 11vw, 66px); }
  .hero-description { font-size: 16px; }
  .hero-control { bottom: 28px; }
  .service-grid { grid-template-columns: 1fr; border-left: 0; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-body { min-height: auto; padding: 34px 0 32px; }
  .service-number { margin-bottom: 15px; }
  .service-photo { aspect-ratio: 1.5/1; }
  .project-grid { gap: 36px 16px; }
  .process { grid-template-columns: 1fr; }
  .process-image { min-height: 380px; }
  .process-content { padding: 66px 28px 76px; }
  .circle-link { top: 26px; right: 24px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 62px; }
  .expertise-card h2 { font-size: 38px; }
  .expertise-card img { aspect-ratio: 1.65/1; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-bottom: 0; padding-top: 38px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-image { min-height: 380px; }
  .manifesto-copy { min-height: 420px; padding: 62px 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .socials { grid-column: auto; }
}

@media (max-width: 560px) {
  .container-wide { width: calc(100% - 32px); }
  .site-header { height: 70px; }
  .brand span { font-size: 20px; }
  .brand small { font-size: 16px; letter-spacing: .28em; }
  .hero { height: 760px; }
  .hero-content { padding-top: 130px; }
  .hero h1 { font-size: 43px; }
  .hero-description { margin-top: 22px; }
  .outline-button { min-height: 52px; margin-top: 28px; }
  .hero-arrows { display: none; }
  .hero-pagination span { width: 28px; }
  .services { padding-top: 42px; }
  .project-grid { grid-template-columns: 1fr; gap: 38px; }
  .section-heading { align-items: flex-end; }
  .section-heading a { font-size: 16px; }
  .process-image { min-height: 300px; }
  .process-content h2 { font-size: 32px; margin-bottom: 38px; }
  .process-list { gap: 24px 14px; }
  .metrics { padding: 28px 0; }
  .metric { min-height: 140px; padding: 30px 18px 22px 52px; }
  .metric img { left: 13px; top: 35px; width: 25px; }
  .metric strong { font-size: 36px; }
  .manifesto-image { min-height: 300px; }
  .manifesto-copy h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child, .socials { grid-column: auto; }
  .footer-grid > div { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
  .footer-grid > div:first-child { border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
