/* ==========================================================
   The Remain — style.css
   색상·폰트는 아래 :root 값만 바꾸면 사이트 전체에 적용됩니다.
   ========================================================== */

:root {
  --black: #0b0b0c;
  --ink: #111113;
  --white: #f4f2ee;
  --paper: #f4f2ee;          /* 밝은 섹션 배경 */
  --amber: #f2a23a;          /* 포인트 컬러 (노을빛) */
  --amber-deep: #b5680a;     /* 밝은 배경 위 포인트 */
  --gray: #8d8b87;
  --gray-dark: #5f5d59;
  --text-dim: #bdbab5;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(0, 0, 0, .14);

  --display: "Archivo", "Pretendard Variable", Pretendard, sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #000; padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
}

.muted { color: var(--gray-dark); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad);
  color: var(--white);
  transition: background-color .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-block: 16px;
  border-bottom-color: var(--line-dark);
}
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 20px; height: 20px; flex: none; }
.logo-word {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 19px; line-height: 1; letter-spacing: .01em;
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 8px 0; color: inherit; cursor: pointer;
  font-family: var(--display); font-stretch: 110%; font-weight: 600; font-size: 18px; line-height: 1;
}
.menu-btn-icon { position: relative; width: 24px; height: 12px; }
.menu-btn-icon i {
  position: absolute; right: 0; height: 2px; background: currentColor;
  transition: transform .4s var(--ease), width .4s var(--ease), top .4s var(--ease);
}
.menu-btn-icon i:first-child { top: 0; width: 24px; }
.menu-btn-icon i:last-child { top: 10px; width: 16px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i { top: 5px; width: 22px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { transform: rotate(-45deg); }

/* ---------- fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  padding: 120px var(--pad) 40px;
  background: var(--black);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }

.menu-nav { flex: 1; display: flex; align-items: center; }
.menu-list li {
  opacity: 0; transform: translateY(32px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu.is-open .menu-list li { opacity: 1; transform: none; }
.menu.is-open .menu-list li:nth-child(2) { transition-delay: .07s; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: .14s; }

.menu-list a {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(44px, 8.5vw, 128px); line-height: 1.08; text-transform: uppercase;
  transition: color .2s;
}
.menu-list a:hover, .menu-list a:focus-visible { color: var(--amber); }
.menu-list .num {
  font-size: 14px; font-weight: 600; font-stretch: 100%;
  letter-spacing: .12em; color: var(--gray);
}

.menu-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line-dark);
  color: var(--gray); font-size: 14px;
}
.menu-foot a:hover { color: var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 132px;
}

.hero-glow {
  position: absolute; z-index: -2; pointer-events: none;
  left: 20%; right: -20%; bottom: -35%; height: 90%;
  background: radial-gradient(ellipse at 55% 75%,
              rgba(242, 162, 58, .30) 0%,
              rgba(230, 110, 40, .12) 35%,
              transparent 65%);
}

.hero-skyline {
  position: absolute; z-index: -1; pointer-events: none;
  left: 0; bottom: 0; width: 100%; height: 80%;
}
.hero-skyline .s {
  fill: none; stroke: var(--amber); stroke-width: 1.2;
  opacity: .42;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.8s var(--ease) .2s forwards;
}
.hero-skyline .wire { stroke-width: 1; opacity: .3; animation-delay: 1.1s; }
.hero-skyline .floors { opacity: 0; animation: fadeIn 2.4s ease 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: .16; } }

.hero-title {
  display: flex; flex-direction: column;
  color: var(--amber);
  font-size: clamp(48px, min(12.4vw, 18svh), 200px);
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title .ln > span {
  display: block; transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-title .ln:nth-child(1) > span { animation-delay: .15s; }
.hero-title .ln:nth-child(2) > span { animation-delay: .27s; }
.hero-title .ln:nth-child(3) > span { animation-delay: .39s; }
@keyframes rise { to { transform: none; } }

.hero-sub {
  display: flex; align-items: flex-start; gap: 18px;
  margin-top: clamp(28px, 4vh, 48px);
  opacity: 0; animation: fadeUp 1s var(--ease) .8s forwards;
}
.hero-mark { width: 44px; height: 44px; flex: none; color: var(--white); }
.hero-sub-en {
  font-family: var(--display); font-stretch: 115%; font-weight: 500;
  font-size: clamp(12px, 1.05vw, 15px); line-height: 1.5;
  text-transform: uppercase; letter-spacing: .02em;
}
.hero-sub-ko { margin-top: 6px; font-size: 14px; color: var(--gray); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 24px; height: 64px; color: var(--gray);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue svg { width: 100%; height: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; background: var(--black);
  border-block: 1px solid var(--line-dark);
  padding: clamp(20px, 2.6vw, 36px) 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  padding-right: .45em; white-space: nowrap;
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(40px, 7vw, 104px); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 162, 58, .55);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 12vw, 176px) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--black); color: var(--white); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .display { font-size: clamp(40px, 7vw, 104px); }
.section-lead { max-width: 28em; color: var(--gray-dark); font-size: 16px; }

/* ---------- project card ---------- */
.project-media {
  position: relative; overflow: hidden;
  aspect-ratio: 1660 / 622; background: #1c1c1e;
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transition: transform 1.4s var(--ease);
}
.project:hover .project-media img { transform: scale(1.035); }
.project-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 55%);
}

.chip {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; background: #000; color: #fff;
  font-family: var(--display); font-stretch: 110%; font-weight: 700;
  font-size: 12px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 162, 58, .7); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(242, 162, 58, 0); }
}

.project-title {
  position: absolute; z-index: 2;
  left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px);
  color: #fff; font-size: clamp(30px, 5.2vw, 80px);
}

.project-body {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 104px);
  padding-top: clamp(32px, 4vw, 56px);
}
.project-desc { font-size: clamp(18px, 1.55vw, 22px); font-weight: 500; line-height: 1.75; }
.project-desc .muted { display: block; margin-top: 14px; font-size: 16px; font-weight: 400; }

.specs > div {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line-light);
}
.specs > div:last-child { border-bottom: 1px solid var(--line-light); }
.specs dt { color: var(--gray-dark); font-size: 15px; }
.specs dd { font-weight: 600; }

.project-note { margin-top: 28px; font-size: 13px; color: var(--gray-dark); }

/* ---------- about ---------- */
.statement {
  font-size: clamp(32px, 5.2vw, 76px); font-weight: 700;
  line-height: 1.22; letter-spacing: -.03em;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.statement em { font-style: normal; color: var(--amber); }
.about-text { max-width: 40em; color: var(--text-dim); font-size: clamp(16px, 1.3vw, 19px); }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 3vw, 48px);
  margin-top: clamp(80px, 10vw, 150px);
}
.pillar svg {
  width: 46px; height: 46px; margin-bottom: 28px;
  fill: none; stroke: var(--white); stroke-width: 1.5;
}
.pillar h3 {
  padding-top: 22px; margin-bottom: 10px; border-top: 1px solid var(--line-dark);
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 22px; line-height: 1.2; text-transform: uppercase;
}
.pillar p { color: var(--text-dim); font-size: 16px; }
.pillar:hover svg { stroke: var(--amber); }

.company {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px;
  margin-top: clamp(80px, 10vw, 150px);
}
.company .label { font-size: 22px; line-height: 1.2; }
.facts > div {
  display: grid; grid-template-columns: 8em 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line-dark);
}
.facts > div:last-child { border-bottom: 1px solid var(--line-dark); }
.facts dt { color: var(--gray); }
.facts dd { font-weight: 500; }

/* ---------- contact ---------- */
.contact-mail {
  display: inline-flex; align-items: center; gap: .25em; max-width: 100%;
  margin-bottom: clamp(64px, 8vw, 120px);
  padding-bottom: 8px; border-bottom: 2px solid currentColor;
  font-family: var(--display); font-stretch: 105%; font-weight: 700;
  font-size: clamp(24px, 5.6vw, 88px); line-height: 1.1; letter-spacing: -.02em;
  transition: color .2s;
}
.contact-mail svg { width: .7em; height: .7em; flex: none; transition: transform .3s var(--ease); }
.contact-mail:hover { color: var(--amber-deep); }
.contact-mail:hover svg { transform: translate(4px, -4px); }

.contact-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); }
.contact-types li { padding-top: 22px; border-top: 1px solid var(--line-light); }
.contact-types h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; }
.contact-types p { color: var(--gray-dark); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); padding: 64px 0 48px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-dark);
}
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 600; }
.footer-social a { color: var(--text-dim); transition: color .2s; }
.footer-social a:hover { color: var(--amber); }

.footer-info { padding-top: 28px; color: var(--gray-dark); font-size: 13px; line-height: 1.9; }
.footer-info p { display: flex; flex-wrap: wrap; column-gap: 24px; }
.footer-info .copy { display: block; margin-top: 16px; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: var(--pad); bottom: var(--pad); z-index: 30;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--amber); color: #000;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--white); }
.to-top svg { width: 22px; height: 22px; }
body.menu-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .pillars [data-reveal]:nth-child(2), .js .contact-types [data-reveal]:nth-child(2) { transition-delay: .1s; }
.js .pillars [data-reveal]:nth-child(3), .js .contact-types [data-reveal]:nth-child(3) { transition-delay: .2s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .project-body { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .contact-types { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding-block: 18px; }
  .logo-word { font-size: 16px; }
  .menu-btn { font-size: 16px; }
  .hero { padding-bottom: 116px; }
  .hero-title { font-size: 16vw; }
  .hero-mark { width: 32px; height: 32px; }
  .hero-sub-en br { display: none; }
  .project-media { aspect-ratio: 4 / 3; }
  .specs > div, .facts > div { grid-template-columns: 5.5em 1fr; }
  .contact-mail { font-stretch: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
}
