/* V2 opening copied into V3 without changing its type scale or breakpoints. */
@font-face {
  font-family: "Fosho Site";
  src: url("assets/fonts/FoshoSiteSubset.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f1eb;
  --paper-deep: #e9e6de;
  --white: #fbfaf7;
  --ink: #191a17;
  --muted: #65665e;
  --line: #cbc9c0;
  --line-dark: #42443e;
  --accent: #a83f25;
  --accent-bright: #ed704d;
  --gutter: clamp(22px, 5.15vw, 80px);
  --measure: 1320px;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  font-family: "Fosho Site", "Pretendard Variable", Pretendard, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

body, button, a { font-family: "Fosho Site", "Pretendard Variable", Pretendard, sans-serif; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.opening {
  position: relative;
  --opening-bg: #1b1c19;
  --opening-fg: #f5f3ec;
  --opening-muted: #c2c0b7;
  --opening-accent: #f27f60;
  background: var(--opening-bg);
  color: var(--opening-fg);
}

.opening-stage {
  position: relative;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 0 var(--gutter) 32px;
  display: flex;
  flex-direction: column;
}
.opening .site-header { border-bottom-color: rgba(245, 243, 236, .2); }
.opening .brand img { filter: invert(1); mix-blend-mode: screen; }
.opening .site-nav a { color: #d3d1c9; }
.opening .site-nav a:hover { color: var(--opening-accent); }
.opening .header-cta { border-color: rgba(245, 243, 236, .64); color: var(--opening-fg); }
.opening .header-cta span { color: var(--opening-accent); }
.opening .header-cta:hover { border-color: var(--opening-fg); background: var(--opening-fg); color: var(--ink); }
.opening .header-cta:hover span { color: var(--accent); }

.site-header {
  position: relative;
  z-index: 5;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(25, 26, 23, .14);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
}
.brand img { display: block; width: 108px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav a, .header-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 590;
}
.site-nav a { color: #44453f; transition: color .2s ease; }
.site-nav a:hover { color: var(--accent); }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  transition: background .22s ease, color .22s ease;
}
.header-cta:hover { color: var(--white); background: var(--ink); }
.header-cta span { color: var(--accent); font-size: 17px; }
.header-cta:hover span { color: var(--white); }

.opening-content {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7.2vh, 80px) 0 clamp(70px, 10vh, 104px);
}

.story-frame {
  position: relative;
  width: 100%;
  min-height: min(68svh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.story-frame + .story-frame { border-top: 1px solid var(--line); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--opening-muted);
  font-size: 15px;
  font-weight: 580;
  letter-spacing: .025em;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--opening-accent);
}

.opening-title {
  max-width: 1200px;
  margin: 0;
  font-size: clamp(56px, 8.35vw, 132px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.042em;
  word-break: keep-all;
}
.title-line { display: block; }
.title-line--context {
  margin-bottom: .12em;
  color: #c2c0b7;
  font-size: .66em;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.024em;
}
.title-line--accent { color: var(--opening-accent); font-weight: 720; }
.story-frame [data-story-focus]:focus { outline: 2px solid var(--opening-accent); outline-offset: 8px; }
.opening-summary {
  max-width: 730px;
  margin: 30px 0 0;
  color: #d0cec6;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 470;
  letter-spacing: -.006em;
  overflow-wrap: normal;
  word-break: keep-all;
}
.story-frame--question .opening-summary { margin-top: clamp(34px, 4.8vh, 58px); }

.opening-footer {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: 25px;
  left: var(--gutter);
  z-index: 4;
  align-items: center;
  gap: 18px;
  color: #c2c0b7;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
}
.opening-progress { width: 84px; height: 1px; overflow: hidden; background: rgba(245, 243, 236, .3); }
.opening-progress > span { display: block; width: 100%; height: 100%; background: var(--opening-accent); transform: scaleX(0); transform-origin: left; }
.opening-footer [data-opening-count] { margin-left: auto; letter-spacing: .06em; }

@media (min-width: 1024px) {
.opening-stage { padding-inline: clamp(80px, 8.2vw, 120px); }
html.v3-story-active .opening-footer { display: flex; }
html.v3-story-active .opening-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 1px;
    padding-top: 0;
    padding-bottom: 68px;
  }
html.v3-story-active .story-frame {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    border: 0;
  }
html.v3-story-active .story-frame--question {
    position: relative;
    grid-area: 1 / 1;
    align-self: center;
  }
html.v3-story-active .opening-title {
    font-size: clamp(54px, min(8.25vw, 11.4svh), 132px);
  }
html.v3-story-active .story-frame--question .opening-title {
    font-size: clamp(78px, min(10vw, 15svh), 148px);
  }
html.v3-story-active .opening-stage { min-height: 100svh; overflow: hidden; }
}
@media (max-width: 1023px) {
.site-header { grid-template-columns: 1fr auto; min-height: 75px; }
.site-nav { display: none; }
.opening-content { padding-top: 60px; padding-bottom: 82px; }
.story-frame {
    width: auto;
    min-height: 0;
    margin-inline: calc(-1 * var(--gutter));
    padding: clamp(58px, 8svh, 88px) var(--gutter);
  }
.story-frame + .story-frame { margin-top: 0; padding-top: clamp(58px, 8svh, 88px); border-top: 0; }
html:not(.v3-story-active) .opening-content > .story-frame + .story-frame {
    border-top: 1px solid rgba(245, 243, 236, .16);
  }
.story-frame--question { min-height: min(66svh, 560px); }
.story-frame--direct { min-height: min(60svh, 520px); }
.opening-title { font-size: clamp(54px, 8vw, 86px); }
html.v3-story-active .opening-stage {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }
html.v3-story-active .opening-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 0;
    padding: 16px 0 58px;
  }
html.v3-story-active .story-frame {
    position: absolute;
    inset-block: 0;
    inset-inline: calc(-1 * var(--gutter));
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0 var(--gutter);
    border: 0;
  }
html.v3-story-active .opening-footer { display: flex; }
}
@media (max-width: 700px) {
:root { --gutter: 22px; }
body { font-size: 16px; }
.opening-stage { min-height: auto; padding: 0 var(--gutter) 26px; }
.site-header { min-height: 68px; gap: 12px; }
.brand img { width: 91px; }
.header-cta { min-height: 40px; padding-inline: 12px; gap: 9px; font-size: 12px; }
.opening-content { padding: 38px 0 72px; }
.story-frame { padding-block: 58px; }
.story-frame + .story-frame { min-height: 0; margin-top: 0; padding-top: 58px; }
.story-frame--question { min-height: min(66svh, 510px); }
.story-frame--direct { min-height: min(60svh, 480px); }
.eyebrow { margin-bottom: 19px; font-size: 13px; }
.opening-title { font-size: clamp(40px, 11.2vw, 58px); line-height: 1.1; letter-spacing: -.036em; }
.title-line--context { letter-spacing: -.018em; }
.eyebrow { letter-spacing: .02em; }
.opening-summary { margin-top: 20px; font-size: 15px; line-height: 1.6; }
.opening-footer { right: var(--gutter); bottom: 16px; left: var(--gutter); gap: 12px; font-size: 9px; }
.opening-progress { width: 48px; }
html.v3-story-active .opening-content { padding: 12px 0 48px; }
html.v3-story-active .story-frame { padding: 0 var(--gutter); }
}
@media (max-width: 1023px) and (max-height: 620px) {
html.v3-story-active .opening-content { padding-block: 8px 38px; }
html.v3-story-active .eyebrow { margin-bottom: 12px; }
html.v3-story-active .opening-title { font-size: clamp(34px, 8vw, 54px); line-height: 1.04; }
html.v3-story-active .opening-summary { margin-top: 12px; font-size: 14px; line-height: 1.45; }
}
@media (max-width: 460px) {
.opening-service-group { display: block; }
.opening-service-divider { display: none; }
}
@media (max-width: 360px) {
:root { --gutter: 18px; }
.opening-title { font-size: 38px; }
.opening-summary { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
}
