:root {
  --forest: #24342B;
  --cream: #F3EFE6;
  --orange: #D85A3A;
  --orange-text: #9E351F;
  --charcoal: #1D211C;
  --paper: #FBF8F1;
  --muted: #676b63;
  --rule: rgba(29, 33, 28, 0.18);
  --serif: Georgia, "Times New Roman", "Noto Serif KR", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --content: min(100% - 48px, 1392px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  color: var(--forest);
  font: 600 16px/1.6 var(--sans);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--forest);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 80px;
  padding: 14px max(24px, calc((100% - 1392px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(29, 33, 28, 0.12);
  background: rgba(251, 248, 241, 0.93);
  backdrop-filter: blur(14px);
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--forest);
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: clamp(172px, 15vw, 220px);
  height: auto;
}

.desktop-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: clamp(18px, 2.2vw, 36px);
  align-items: center;
  list-style: none;
}

.desktop-nav a {
  display: block;
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 14px 11px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
}

.mobile-nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

main {
  overflow: clip;
}

.hero,
.section-shell {
  width: var(--content);
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: calc(100svh - 80px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.25vw, 52px);
  align-content: start;
  padding: clamp(56px, 7vw, 112px) 0 clamp(96px, 10vw, 152px);
}

.hero-copy {
  grid-column: 1 / span 5;
  align-self: center;
  padding: clamp(28px, 5vh, 68px) clamp(0px, 2vw, 30px) 40px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--orange-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.17em;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 8.5em;
  margin-bottom: 28px;
  color: var(--forest);
  font-size: clamp(46px, 5vw, 78px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 22px;
  color: var(--forest);
  font-size: clamp(34px, 3.3vw, 54px);
  line-height: 1.18;
}

h3 {
  color: var(--forest);
  font-size: 22px;
  line-height: 1.4;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin-bottom: 34px;
  color: #3f443d;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.9;
}

.primary-link {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 22px;
  align-items: center;
  border: 1px solid var(--forest);
  color: var(--paper);
  background: var(--forest);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.primary-link:hover {
  color: var(--forest);
  background: transparent;
}

.hero-visual {
  grid-column: 6 / -1;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.brand-story {
  display: grid;
  grid-column: 2 / -2;
  grid-template-columns: 3fr 4fr 4fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(84px, 10vw, 152px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.brand-story .eyebrow {
  padding-top: 7px;
}

.brand-story h2 {
  font-size: clamp(32px, 3vw, 48px);
}

.brand-story p:not(.eyebrow) {
  color: #4f544d;
  line-height: 1.95;
}

.section-shell {
  padding-block: clamp(92px, 10vw, 156px);
  border-top: 1px solid var(--rule);
}

#menu {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.25vw, 52px);
}

#menu > .eyebrow,
#menu > h2,
#menu > p {
  grid-column: 1 / span 5;
}

#menu > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 18px;
}

.menu-visual {
  grid-column: 1 / span 6;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}

.menu-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

#menu ul {
  grid-column: 7 / -1;
  margin: 0;
  padding: 0;
  align-self: stretch;
  border-top: 1px solid var(--charcoal);
  list-style: none;
  counter-reset: menu;
}

#menu li {
  display: grid;
  min-height: 16.666%;
  padding: 18px 0;
  grid-template-columns: 48px minmax(100px, 0.8fr) 1.2fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  counter-increment: menu;
}

#menu li::before {
  color: var(--orange-text);
  font-family: var(--serif);
  font-size: 14px;
  content: "0" counter(menu);
}

#menu li strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
}

#menu li span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

#space {
  padding-top: clamp(92px, 10vw, 152px);
}

.space-intro {
  display: grid;
  grid-template-columns: 3fr 5fr 4fr;
  column-gap: clamp(24px, 3.25vw, 52px);
  align-items: start;
}

.space-intro > .eyebrow {
  grid-column: 1;
}

.space-intro > h2,
.space-intro > p {
  grid-column: 2;
}

.space-intro > p:not(.eyebrow) {
  color: var(--muted);
}

.space-intro dl {
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 3;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--charcoal);
}

.space-intro dl div {
  padding: 17px 10px 18px 0;
  border-bottom: 1px solid var(--rule);
}

.space-intro dt {
  color: var(--muted);
  font-size: 14px;
}

.space-intro dd {
  margin: 4px 0 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
}

#space figure {
  margin: clamp(50px, 6vw, 88px) 0 0;
  background: var(--cream);
}

.space-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--forest);
  background: var(--paper);
}

.space-tabs button {
  min-height: 64px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--rule);
  color: var(--forest);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.space-tabs button:last-child { border-right: 0; }
.space-tabs button[aria-selected="true"] { color: var(--cream); background: var(--forest); }
.space-tabs button:focus-visible { outline: 3px solid var(--orange); outline-offset: -4px; }
.space-panel[hidden] { display: none; }

.space-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
}

.space-image-link::after {
  content: "크게 보기 ↗";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  color: var(--cream);
  background: rgba(24, 59, 43, 0.9);
  font-size: 13px;
  font-weight: 700;
}

#space figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.space-annotations {
  display: grid;
  padding: clamp(28px, 4vw, 54px);
  grid-template-columns: 7fr 5fr;
  gap: clamp(34px, 5vw, 72px);
  color: var(--charcoal);
  background: var(--cream);
}

.space-annotations h3 {
  margin: 0 0 20px;
  color: var(--forest);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.zoning-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  list-style: none;
}

.zoning-list li {
  display: flex;
  padding: 10px 0;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

.zoning-list strong {
  color: var(--forest);
  white-space: nowrap;
}

.circulation-legend p {
  display: grid;
  margin: 0;
  padding: 10px 0;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.circulation-legend p strong {
  display: block;
  grid-column: 2;
  color: var(--charcoal);
}

.route {
  grid-row: 1 / span 2;
  width: 30px;
  height: 3px;
  margin-top: 10px;
  background: var(--orange);
}

.route-staff {
  background: var(--forest);
}

.circulation-legend small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

#space figcaption {
  display: flex;
  padding: 17px 0;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

#space figcaption span {
  color: var(--charcoal);
  font-weight: 700;
}

#system {
  background-image: linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(29, 33, 28, 0.06) calc(100% - 1px));
  background-size: calc(100% / 12) 100%;
}

#system > p:not(.eyebrow) {
  max-width: 48rem;
  color: var(--muted);
  font-size: 18px;
}

#system ol {
  display: grid;
  margin: clamp(48px, 6vw, 84px) 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--charcoal);
  list-style: none;
  counter-reset: flow;
}

#system li {
  min-height: 270px;
  padding: 30px clamp(20px, 3vw, 48px) 34px 0;
  border-right: 1px solid var(--rule);
  counter-increment: flow;
}

#system li:not(:first-child) {
  padding-left: clamp(20px, 3vw, 48px);
}

#system li:last-child {
  border-right: 0;
}

#system li::before {
  display: block;
  margin-bottom: 50px;
  color: var(--orange-text);
  font-family: var(--serif);
  font-size: 15px;
  content: "FLOW 0" counter(flow);
}

#system li p {
  max-width: 19rem;
  margin-bottom: 0;
  color: var(--muted);
}

#model {
  display: grid;
  grid-template-columns: 7fr 4fr;
  column-gap: 8.333%;
}

#model > .eyebrow,
#model > h2,
#model > p {
  grid-column: 1;
}

#model > p:not(.eyebrow) {
  max-width: 46rem;
  color: var(--muted);
  font-size: 18px;
}

.business-metrics {
  display: grid;
  grid-column: 1;
  margin: 38px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--charcoal);
  list-style: none;
}

.business-metrics li {
  padding: 18px 16px 0 0;
  border-right: 1px solid var(--rule);
}

.business-metrics li:not(:first-child) {
  padding-left: 16px;
}

.business-metrics li:last-child {
  border-right: 0;
}

.business-metrics span,
.business-metrics strong {
  display: block;
}

.business-metrics span {
  color: var(--muted);
  font-size: 14px;
}

.business-metrics strong {
  margin-top: 6px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  white-space: nowrap;
}

#model aside {
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 26px 0 10px 30px;
  align-self: center;
  border-left: 3px solid var(--orange);
}

#model aside strong {
  color: var(--forest);
  font-size: 14px;
}

#model aside p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

#inquiry {
  display: grid;
  width: min(100% - 48px, 1440px);
  margin-bottom: clamp(70px, 8vw, 120px);
  padding: clamp(54px, 7vw, 104px);
  grid-template-columns: 5fr 6fr;
  gap: 8.333%;
  border: 0;
  color: var(--cream);
  background: var(--forest);
}

#inquiry h2,
#inquiry .eyebrow {
  color: inherit;
}

#inquiry h2 {
  font-size: clamp(36px, 4vw, 60px);
}

#inquiry > div > p:not(.eyebrow) {
  color: rgba(243, 239, 230, 0.76);
}

#inquiry form {
  padding-top: 2px;
}

#form-demo-notice {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(243, 239, 230, 0.26);
  color: rgba(243, 239, 230, 0.76);
  font-size: 16px;
}

.form-field {
  margin-bottom: 23px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.56);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
}

.form-field input:focus {
  border-bottom-color: var(--orange);
  box-shadow: 0 2px 0 var(--orange);
}

.form-field span {
  display: block;
  min-height: 1.4em;
  margin-top: 4px;
  color: #ffc1ad;
  font-size: 16px;
}

#inquiry button {
  min-height: 54px;
  margin-top: 5px;
  padding: 12px 24px;
  border: 1px solid var(--orange);
  color: var(--forest);
  background: var(--paper);
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

#inquiry button:hover {
  color: var(--forest);
  background: var(--cream);
}

#form-status {
  min-height: 1.75em;
  margin: 14px 0 0;
  font-size: 16px;
}

footer {
  display: grid;
  width: var(--content);
  margin: 0 auto;
  padding: 32px 0 44px;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 16px;
}

footer p {
  margin: 0;
}

footer strong {
  margin-right: 8px;
  color: var(--forest);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.footer-logo {
  display: block;
  width: 170px;
  height: auto;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 980px) {
  .hero-copy {
    grid-column: 1 / span 6;
  }

  .hero-visual {
    grid-column: 7 / -1;
    min-height: 500px;
  }

  .hero-visual img {
    min-height: 500px;
  }

  .brand-story {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 2fr;
  }

  .brand-story > p:last-child {
    grid-column: 2;
  }

  .menu-visual {
    grid-column: 1 / span 5;
  }

  #menu ul {
    grid-column: 6 / -1;
  }

  #menu li {
    grid-template-columns: 38px 0.8fr 1.2fr;
  }

  .space-intro {
    grid-template-columns: 1fr 1.4fr;
  }

  .space-intro > h2,
  .space-intro > p {
    grid-column: 1;
  }

  .space-intro dl {
    grid-column: 2;
  }

  #inquiry {
    gap: 6%;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100% - 32px, 1392px);
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    line-height: 1.72;
  }

  .site-header {
    min-height: 72px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .desktop-nav {
    width: 100%;
    order: 3;
  }

  .desktop-nav ul {
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .js .desktop-nav {
    display: none;
  }

  .js .desktop-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(29, 33, 28, 0.12);
    background: var(--paper);
    box-shadow: 0 12px 24px rgba(29, 33, 28, 0.1);
  }

  .js .desktop-nav.is-open ul {
    display: grid;
    gap: 0;
  }

  .js .desktop-nav.is-open a {
    min-height: 48px;
    padding: 11px 8px;
  }

  .js .mobile-nav-toggle {
    display: block;
  }

  .site-logo img {
    width: 166px;
  }

  .footer-logo {
    width: 154px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 56px 0 88px;
  }

  .hero-copy {
    padding: 0 0 44px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .hero-visual,
  .hero-visual img {
    min-height: 0;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .brand-story {
    display: block;
    margin-top: 72px;
    padding-top: 24px;
  }

  .brand-story h2 {
    margin-bottom: 26px;
  }

  .section-shell {
    padding-block: 84px;
  }

  #menu {
    display: block;
  }

  #menu > p:not(.eyebrow) {
    margin-bottom: 34px;
  }

  .menu-visual,
  .menu-visual img {
    min-height: 0;
  }

  .menu-visual {
    margin-bottom: 32px;
  }

  .menu-visual img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  #menu li {
    min-height: 0;
    padding: 17px 0;
    grid-template-columns: 38px minmax(92px, 0.8fr) 1.2fr;
    gap: 6px;
  }

  #menu li span {
    font-size: 16px;
  }

  .space-intro {
    display: block;
  }

  .space-intro dl {
    margin-top: 34px;
  }

  #space figure {
    margin-top: 44px;
  }

  .space-tabs button {
    min-height: 58px;
    padding: 10px 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  #space figcaption {
    display: block;
    font-size: 14px;
  }

  #space figcaption span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
  }

  .space-annotations {
    display: block;
    padding: 28px 20px;
  }

  .circulation-legend {
    margin-top: 38px;
  }

  #system ol {
    display: block;
  }

  #system li,
  #system li:not(:first-child) {
    min-height: 0;
    padding: 25px 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  #system li::before {
    margin-bottom: 22px;
  }

  #model {
    display: block;
  }

  #model aside {
    margin-top: 38px;
    padding: 18px 0 2px 22px;
  }

  .business-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-metrics li {
    padding: 16px 12px 18px 0;
    border-bottom: 1px solid var(--rule);
  }

  .business-metrics li:nth-child(even) {
    padding-left: 14px;
    border-right: 0;
  }

  #inquiry {
    display: block;
    width: 100%;
    margin-bottom: 70px;
    padding: 70px 16px;
  }

  #inquiry > div,
  #inquiry form {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  #inquiry form {
    margin-top: 48px;
  }

  #inquiry button {
    width: 100%;
  }

  footer {
    display: block;
    padding-bottom: 36px;
  }

  footer p,
  footer a {
    display: block;
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  #menu li {
    grid-template-columns: 32px 1fr;
  }

  #menu li span {
    grid-column: 2;
  }

  .space-intro dl {
    grid-template-columns: 1fr;
  }

  .zoning-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js.reveal-ready .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .mobile-nav-toggle,
  #inquiry button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero,
  .section-shell,
  #inquiry {
    width: 100%;
    break-inside: avoid;
  }

  #inquiry {
    color: #000;
    background: #fff;
  }
}
