/* ==========================================================================
   NaruDesk · narudesk.com

   Colour  : sampled from the logo. navy #022A63, signal #025DF2, amber #FEBE26
   Type    : Pretendard (body, KO + Latin)
             Cormorant Garamond (Latin display, same face as lyondelice.com)
             Nanum Myeongjo (Hangul display, pairs with the Garamond)
   ========================================================================== */

:root {
  --navy:      #022A63;
  --navy-deep: #011A40;
  --signal:    #025DF2;
  --amber:     #FEBE26;
  --amber-ink: #9A6E00;   /* amber is unreadable at small sizes on paper */

  --paper:   #FBFAF7;
  --surface: #FFFFFF;
  --tint:    #F3F1EB;

  --ink:   #022A63;
  --body:  #46587A;
  --muted: #7286A6;
  --rule:  rgba(2, 42, 99, 0.13);
  --rule-soft: rgba(2, 42, 99, 0.07);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --display-en: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display-ko: "Nanum Myeongjo", "Apple SD Gothic Neo", serif;

  --wrap: 1080px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --band-y: clamp(4.5rem, 10vw, 8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #060C1C;
    --surface: #0B1329;
    --tint:    #0A1122;

    --ink:   #EDF2FC;
    --body:  #A9B9D6;
    --muted: #7387AB;
    --rule:  rgba(255, 255, 255, 0.13);
    --rule-soft: rgba(255, 255, 255, 0.06);

    --signal: #6E9DFF;
    --amber-ink: #FEBE26;
  }
}

/* --------------------------------------------------------------- base --- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Display type. Only one language is ever visible, so switching the family on
   the html class keeps each script in a serif drawn for it. */
h1, .section-h2 {
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  word-break: keep-all;
}
.lang-en h1, .lang-en .section-h2 { font-family: var(--display-en); }
.lang-ko h1, .lang-ko .section-h2 { font-family: var(--display-ko); font-weight: 400; line-height: 1.34; }

h3 {
  color: var(--ink); margin: 0; font-weight: 600;
  line-height: 1.4; letter-spacing: -0.012em; word-break: keep-all;
}

p { margin: 0; word-break: keep-all; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--signal); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

/* -------------------------------------------------------- not found --- */

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8rem 0 4rem;
}

.not-found-inner {
  text-align: center;
  max-width: 760px;
}

.not-found-code {
  color: var(--amber-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.not-found h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
}

.not-found-copy {
  max-width: 34rem;
  margin: 1.5rem auto 2.25rem;
  color: var(--muted);
}

/* --------------------------------------------------- language toggling --- */

.lang-ko .en { display: none; }
.lang-en .ko { display: none; }

/* ----------------------------------------------------------- logo mark --- */

.mark { width: 34px; height: 34px; flex: none; overflow: visible; }
.mark .mark-n     { fill: var(--ink); }
.mark .mark-stem  { fill: var(--signal); }
.mark .mark-arch  { fill: none; stroke: var(--ink); stroke-width: 13; stroke-linecap: butt; }
.mark .mark-arch-bg { fill: none; stroke: var(--paper); stroke-width: 22; }
.mark .mark-pier  { fill: var(--amber); }
.mark.small { width: 22px; height: 22px; }

.mark .mark-arch {
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: draw 1.1s var(--ease) 0.15s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.lockup { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.wordmark { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--ink); }

.header-right { display: flex; align-items: center; gap: clamp(0.75rem, 3vw, 1.5rem); }

.header-mail {
  font-size: 0.875rem; color: var(--muted); letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}
.header-mail:hover { color: var(--signal); }
@media (max-width: 720px) { .header-mail { display: none; } }

.lang { display: inline-flex; align-items: center; gap: 0.5rem; }
.lang button,
.lang a {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 0.8125rem; letter-spacing: 0.02em;
  color: var(--muted); padding: 0.35rem 0.1rem; text-decoration: none;
  transition: color 0.2s var(--ease);
}
.lang button:hover,
.lang a:hover { color: var(--ink); }
.lang button.is-on,
.lang a.is-on { color: var(--ink); font-weight: 600; }
.lang-sep { width: 1px; height: 12px; background: var(--rule); }

/* ------------------------------------------------------------------ hero --- */

.hero { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3.5rem, 8vw, 6rem); }

.chips {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1.4rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.chips li {
  position: relative;
  font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em;
}
.chips li + li::before {
  content: ""; position: absolute; left: -0.75rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted); opacity: 0.55; transform: translateY(-50%);
}
/* stacked on narrow screens: a wrapped row would start with an orphan dot */
@media (max-width: 620px) {
  .chips { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .chips li + li::before { display: none; }
}

/* max-width is generous on purpose: the line breaks are set with <br> in the
   markup, and a tight measure would override them */
.hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 5vw, 4.75rem);
  max-width: 22ch;
}
.lang-ko .hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); max-width: 20ch; }

.lede {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.1875rem);
  color: var(--body);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(2rem, 4vw, 2.75rem); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--signal); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--signal); color: #04122E; }
  .btn-primary:hover { background: #8FB4FF; }
}

/* ------------------------------------------------------------- imagery --- */

/* Full bleed strip between the hero and the first section. */
.band-image {
  width: 100%; overflow: hidden;
  aspect-ratio: 8 / 3; max-height: 62vh;
  background: var(--tint);
}
.band-image img { width: 100%; height: 100%; object-fit: cover; }

.figure-wide {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.figure-wide img { width: 100%; }
.figure-wide figcaption {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.01em;
}

/* Any figure marked data-optional disappears cleanly if its file is missing,
   so the page never shows a broken image before the photos exist. */
figure[data-optional].is-missing { display: none; }

/* ----------------------------------------------------------------- bands --- */

.band { padding-block: var(--band-y); border-top: 1px solid var(--rule-soft); position: relative; }
.band-tint { background: var(--tint); }
.band-ink  { background: var(--navy-deep); border-top: 0; overflow: hidden; }
.band-image + .band { border-top: 0; }

.section-label {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; font-weight: 500;
}

.section-h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); max-width: 22ch; }
.lang-ko .section-h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem); }

.head-2col {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.head-note { color: var(--muted); font-size: 0.9375rem; max-width: 44ch; line-height: 1.68; }
@media (max-width: 800px) { .head-2col { grid-template-columns: 1fr; align-items: start; } }

/* --------------------------------------------------- three statements --- */

.statements { margin-top: clamp(2rem, 5vw, 3.25rem); }
.statements li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding-block: clamp(1.6rem, 3.5vw, 2.4rem);
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.statements li:last-child { border-bottom: 1px solid var(--rule); }
.num { font-size: 0.8125rem; color: var(--amber-ink); letter-spacing: 0.1em; font-weight: 600; }
.statements p {
  color: var(--ink);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.65rem);
  line-height: 1.5;
  letter-spacing: -0.014em;
  font-weight: 500;
  max-width: 34ch;
}
.lang-ko .statements p { font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.4rem); line-height: 1.62; }
@media (max-width: 620px) { .statements li { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ------------------------------------------------------------- boundary --- */

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

.col {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.col-title {
  font-size: 1.0625rem; font-weight: 600; margin-bottom: 1.35rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule-soft);
}

.ticks li, .crosses li {
  position: relative; padding-left: 1.9rem; padding-block: 0.55rem;
  font-size: 0.9375rem; line-height: 1.62;
}
.ticks li::before, .crosses li::before {
  position: absolute; left: 0; top: 0.55rem; line-height: 1.62;
}
.ticks li::before   { content: "+"; color: var(--signal); font-weight: 600; }
.crosses li::before { content: "\2013"; color: var(--muted); }

.legal-box {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-left: 3px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem; line-height: 1.75; color: var(--ink);
  max-width: 78ch;
}

/* ------------------------------------------------------ regulatory clock --- */

.clock li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 3vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.1rem);
  border-top: 1px solid var(--rule);
}
.clock li:last-child { border-bottom: 1px solid var(--rule); }
.clock time {
  font-family: var(--display-en);
  font-size: 1.375rem; letter-spacing: 0.01em;
  color: var(--ink); white-space: nowrap; padding-top: 0.1rem;
  font-variant-numeric: lining-nums;
}
.clock h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.clock p { font-size: 0.9375rem; max-width: 58ch; }
.src {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.8125rem; letter-spacing: 0.01em; color: var(--muted);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.src:hover { color: var(--signal); border-color: var(--signal); }
@media (max-width: 620px) { .clock li { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- offers --- */

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 800px) { .offers { grid-template-columns: 1fr; } }

.offer {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.offer:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--signal) 45%, var(--rule)); }
.offer-kicker { font-size: 0.75rem; color: var(--amber-ink); letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.9rem; }
.offer h3 { font-family: var(--display-en); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; }
.offer-price { margin-top: 0.85rem; font-size: 1.0625rem; color: var(--ink); line-height: 1.6; }
.offer-price b { font-weight: 600; }
.offer-price .thin { color: var(--muted); font-size: 0.875rem; }
.offer-meta { margin-top: 0.55rem; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.01em; }
.offer ul { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-soft); }
.offer li { position: relative; padding-left: 1.1rem; padding-block: 0.4rem; font-size: 0.9rem; line-height: 1.62; }
.offer li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 5px; height: 1px; background: var(--muted);
}

.gates {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 800px) { .gates { grid-template-columns: 1fr; } }
.gate { border-top: 2px solid var(--rule); padding-top: 1.1rem; }
.gate-title { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.7rem; font-weight: 600; }
.gate p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ------------------------------------------------------------------- who --- */

/* A fixed narrow column, not a fraction: the portrait sits beside the heading at
   a human scale and stops growing with the viewport. A fr unit made it a poster. */
.who-grid {
  display: grid; grid-template-columns: clamp(140px, 18vw, 210px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 820px) {
  .who-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .who-portrait { max-width: 170px; }
}

.who-portrait {
  position: relative; border-radius: 10px; overflow: hidden;
  background: var(--tint); border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
}
.who-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.portrait-fallback svg { width: 52%; opacity: 0.2; }
.portrait-fallback .mark-arch { fill: none; stroke: var(--ink); stroke-width: 9; }
.portrait-fallback .mark-pier { fill: var(--amber); }
.who-portrait.is-empty img { display: none; }
.who-portrait.is-empty .portrait-fallback { display: flex; }

.who-text .section-h2 { max-width: 16ch; }
.prose { margin-top: 1.6rem; display: grid; gap: 1.15rem; max-width: 60ch; }
.prose a { border-bottom: 1px solid color-mix(in srgb, var(--signal) 40%, transparent); }
.prose a:hover { border-bottom-color: var(--signal); }

.facts { margin-top: 2.25rem; border-top: 1px solid var(--rule); }
.facts li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule-soft);
  font-size: 0.875rem;
}
.facts .k { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.facts .v { color: var(--ink); }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* --------------------------------------------------------------- contact --- */

.band-ink { color: rgba(237, 242, 252, 0.72); }
.band-ink .section-h2, .band-ink .mailto { color: #fff; }
.band-ink .section-label { color: rgba(237, 242, 252, 0.5); }

.band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.12; pointer-events: none;
  /* fade the photograph out under the copy, so only the silhouette at the
     bottom survives and nothing sits behind the text */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 88%);
}
.contact-arch {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 62%;
  pointer-events: none; z-index: 0;
}
.contact-arch .arch-line {
  fill: none; stroke: #fff; stroke-width: 1.25; opacity: 0.14;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 2.4s var(--ease) 0.2s forwards;
}

.contact-inner { position: relative; z-index: 1; text-align: center; }
.contact-inner .section-h2 { max-width: 24ch; margin-inline: auto; }
.contact-note { margin-top: 1.5rem; max-width: 52ch; margin-inline: auto; font-size: 1rem; }

.mailto {
  display: inline-block; margin-top: clamp(2rem, 4vw, 2.75rem);
  font-family: var(--display-en);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.15rem);
  font-weight: 500; letter-spacing: -0.01em;
  padding-bottom: 0.45rem;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: left bottom;
  transition: background-size 0.45s var(--ease);
  word-break: break-word;
}
.mailto:hover, .mailto:focus-visible { background-size: 100% 2px; }

/* ---------------------------------------------------------------- footer --- */

.site-footer { background: var(--navy-deep); color: rgba(237, 242, 252, 0.55); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; font-size: 0.9375rem; font-weight: 500; }
.footer-brand .mark .mark-n { fill: #fff; }
.footer-brand .mark .mark-stem { fill: #4E8CFF; }
.footer-brand .mark .mark-arch { stroke: #fff; }
.footer-brand .mark .mark-arch-bg { stroke: var(--navy-deep); }

.footer-legal { font-size: 0.8125rem; line-height: 1.7; max-width: 72ch; }
.footer-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem;
  font-size: 0.8125rem; letter-spacing: 0.01em;
  padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-meta a { color: rgba(237, 242, 252, 0.8); }
.footer-meta a:hover { color: var(--amber); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ------------------------------------------------------------- reveal fx --- */

/* Scoped to .js, which bootstrap.js sets before first paint. If the script ever
   fails, the page renders fully visible instead of blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mark .mark-arch, .contact-arch .arch-line { animation: none; stroke-dashoffset: 0; }
  .btn:hover, .offer:hover { transform: none; }
  .mailto { transition: none; }
}
