/* MITFREUDE — site styles
   Palette taken from the credential deck: light on a grey wall, graphite type, one navy accent. */
:root {
  --wall: #dcdcdf;
  --haze: #e9e9eb;
  --frost: rgba(244, 244, 246, 0.74);
  --graphite: #2a2a2d;
  --pewter: #5b5c63;
  --navy: #34507a;
  --navy-deep: #283f62;
  --line: rgba(42, 42, 45, 0.16);
  --white: #ffffff;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;

  --pad: clamp(20px, 5.2vw, 56px);
  --max: 1160px;
  --section: clamp(72px, 12vw, 152px);
  --header-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; letter-spacing: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--graphite);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(220, 220, 223, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-decoration: none;
  margin-right: auto;
  padding: 6px 0;
}
.nav { display: none; }
.nav a {
  font-size: 15px;
  color: var(--pewter);
  text-decoration: none;
  padding: 6px 2px;
}
.nav a:hover { color: var(--graphite); }
.lang {
  font-size: 14px;
  color: var(--pewter);
  text-decoration: none;
  padding: 8px 4px;
}
.lang:hover { color: var(--graphite); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--graphite); color: var(--white); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: rgba(42, 42, 45, 0.32); color: var(--graphite); }
.btn-ghost:hover { border-color: var(--graphite); }
.btn-light { background: var(--white); color: var(--navy-deep); }
.btn-light:hover { background: var(--haze); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(94svh - var(--header-h));
  max-height: 940px;
  display: grid;
  align-items: center;
  overflow: hidden;
  text-align: center;
}
@supports not (height: 100svh) {
  .hero { min-height: calc(100vh - var(--header-h)); }
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 30% 40%; }
/* The one page-load moment: the room brightens as the light arrives. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #b9b9bd;
  opacity: 0;
  pointer-events: none;
  animation: dawn 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes dawn { from { opacity: 0.85; } to { opacity: 0; } }

.hero-inner { padding-top: 56px; padding-bottom: 64px; }
.wordmark {
  font-weight: 700;
  font-size: clamp(40px, 12.4vw, 136px);
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: -0.06em; /* optical centring: cancel trailing tracking */
  color: #3b3b3f;
  animation: focus 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes focus { from { letter-spacing: 0.2em; opacity: 0; } to { letter-spacing: 0.06em; opacity: 1; } }
.tagline {
  margin-top: 14px;
  font-size: clamp(15px, 3.8vw, 20px);
  color: var(--pewter);
  letter-spacing: 0.01em;
}
.hero-copy { animation: rise 0.7s 0.5s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nobr { white-space: nowrap; }
.hero h1 {
  max-width: 19em;
  margin: clamp(40px, 9vw, 72px) auto 0;
  font-size: clamp(22px, 5.4vw, 38px);
  line-height: 1.36;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 32em;
  margin: 16px auto 0;
  color: var(--pewter);
  font-size: clamp(15px, 3.9vw, 18px);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--haze); }
.section-alt + .section, .section + .section-alt { padding-top: var(--section); }

.section-head { max-width: 40em; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(27px, 6.4vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 16px;
  color: var(--pewter);
  font-size: clamp(16px, 3.9vw, 18px);
}
.lead { font-size: clamp(17px, 4.2vw, 21px); line-height: 1.6; }

/* Two worlds (dark) → Zentium (light) */
.merge { text-align: center; }
.m-dark { background: var(--graphite); color: var(--white); padding: var(--section) 0; }
.m-dark h2 {
  max-width: 15em;
  margin: 0 auto;
  font-size: clamp(27px, 6.6vw, 50px);
  line-height: 1.26;
  letter-spacing: -0.025em;
}
.worlds {
  margin: clamp(44px, 8vw, 80px) auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.world { padding: 4px clamp(12px, 3.5vw, 48px); }
.world + .world { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.world .world-kind { margin: 0; font-size: 13.5px; font-weight: 600; color: #a9bbd8; letter-spacing: 0.01em; }
.world h3 {
  margin-top: 10px;
  font-size: clamp(16px, 4.2vw, 25px);
  line-height: 1.34;
  letter-spacing: -0.01em;
}
.world p { margin-top: 12px; font-size: clamp(14px, 3.6vw, 16px); line-height: 1.7; color: rgba(255, 255, 255, 0.68); }
.m-light { background: var(--haze); padding: clamp(64px, 10vw, 120px) 0 var(--section); }
.orb-name {
  font-size: clamp(40px, 11vw, 76px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
}
.orb-def { max-width: 30em; margin: 18px auto 0; font-size: clamp(16px, 4.1vw, 19px); }
.props {
  margin: clamp(44px, 8vw, 80px) auto 0;
  max-width: var(--max);
  display: grid;
  gap: 28px;
  text-align: left;
}
.prop { border-top: 1px solid var(--line); padding-top: 18px; }
.prop h3 { font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.prop p { margin-top: 8px; color: var(--pewter); }

/* Why now band */
.window {
  background: var(--navy);
  color: var(--white);
  padding: var(--section) 0;
}
.window .section-head p { color: rgba(255, 255, 255, 0.78); }
.window .section-head .window-years {
  margin: 14px 0 0;
  color: var(--white);
  font-size: clamp(64px, 19vw, 150px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.window .section-head .window-years + p { margin-top: 20px; }
.forces { margin-top: 36px; display: grid; gap: 22px; }
.force { border-top: 1px solid rgba(255, 255, 255, 0.24); padding-top: 16px; }
.force h3 { font-size: 18px; line-height: 1.4; }
.force p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); }
.window-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sources { margin-top: 28px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

/* Brand story */
.belief {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(104px, 20vw, 200px) 0;
  text-align: center;
}
.belief picture, .belief picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.belief picture { z-index: -1; }
.belief picture img { object-fit: cover; }
.belief h2 {
  max-width: 13em;
  margin: 0 auto;
  font-size: clamp(30px, 7.6vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.story-text { max-width: 30em; margin: clamp(32px, 6vw, 48px) auto 0; }
.story-text p {
  font-size: clamp(14.5px, 3.75vw, 16.5px);
  line-height: 2;
  letter-spacing: 0.015em;
  word-spacing: 0.06em;
  color: #45464c;
  text-wrap: pretty;
}
.story-text p + p { margin-top: 16px; }
html[lang="en"] .story-text p { line-height: 1.8; letter-spacing: 0.005em; word-spacing: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-right: 2px solid var(--pewter);
  border-bottom: 2px solid var(--pewter);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { padding: 0 0 22px; color: var(--pewter); max-width: 40em; }

/* Contact */
.contact { display: grid; gap: 40px; }
.contact-aside p { color: var(--pewter); }
.contact-aside .mail { margin-top: 20px; font-size: 15px; }
.contact-aside .mail a { color: var(--graphite); font-weight: 600; text-underline-offset: 4px; }
.form { display: grid; gap: 20px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .field label { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.field label { display: block; }
.req { color: var(--navy); margin-left: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(42, 42, 45, 0.26);
  background: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip input:checked + span { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.field-row { display: grid; gap: 20px; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(42, 42, 45, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--graphite);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  line-height: 1.5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.input:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(52, 80, 122, 0.18); }
textarea.input { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}
.consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--graphite); }
.consent-detail { font-size: 13.5px; color: var(--pewter); line-height: 1.6; }
.consent-detail summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.consent-detail ul { margin: 10px 0 0; padding-left: 18px; }
.form .btn-primary { width: 100%; min-height: 54px; font-size: 17px; }
.form-status { min-height: 1.6em; font-size: 15px; }
.form-status.is-ok { color: #1f5c3a; font-weight: 600; }
.form-status.is-error { color: #9b2c2c; font-weight: 600; }

/* Footer */
.site-footer { padding: 56px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--pewter); }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-brand { font-weight: 700; letter-spacing: 0.14em; color: var(--graphite); font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-underline-offset: 3px; }

/* Simple text pages (privacy, 404) */
.doc { padding: clamp(48px, 9vw, 96px) 0 var(--section); }
.doc .wrap { max-width: calc(760px + var(--pad) * 2); }
.doc h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.25; letter-spacing: -0.02em; }
.doc h2 { font-size: 19px; margin-top: 40px; }
.doc p, .doc li { color: var(--pewter); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .updated { font-size: 14px; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .props { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .forces { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (min-width: 960px) {
  :root { --header-h: 68px; }
  body { font-size: 17px; }
  .nav { display: flex; gap: 26px; margin-right: 8px; }
  .brand { font-size: 18px; }
  .hero-bg img { object-position: 50% 40%; }
  .contact { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
