:root {
  --paper: #f4f0e6;
  --surface: #fffdf7;
  --paper-deep: #e9e1d3;
  --ink: #292b27;
  --muted: #6e6b63;
  --orange: #ff6f0f;
  --orange-dark: #d95300;
  --olive: #343b2c;
  --olive-light: #e8eadf;
  --line: rgba(41, 43, 39, .17);
  --serif: "Noto Serif KR", "Batang", serif;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --page: min(1280px, calc(100% - 80px));
  --section-y: clamp(96px, 10vw, 156px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
main:focus { outline: 0; }
section[id] { scroll-margin-top: 84px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}
p { word-break: keep-all; }
:where(a, button):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.container { width: var(--page); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 230, .93);
  backdrop-filter: blur(16px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(41, 43, 39, .04);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}
.logo {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
}
.logo span {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .02em;
}
.site-nav { min-width: 0; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: clamp(9px, 1.05vw, 18px); }
.site-nav a {
  position: relative;
  display: block;
  padding-block: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .045em;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="location"] { color: var(--orange-dark); }
.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }
.header-cta {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--orange);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 750;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Shared type and controls */
.eyebrow, .section-kicker, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before, .section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange);
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.button-primary:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { border-color: var(--orange); color: var(--orange-dark); }
.text-link {
  position: relative;
  display: inline-flex;
  margin-top: 30px;
  padding-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--orange);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.text-link:hover::after { transform: scaleX(.72); }

/* Home */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(46px, 6.5vw, 94px) 0 clamp(84px, 9vw, 132px);
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  z-index: -1;
  top: 3%;
  left: 41%;
  color: rgba(41, 43, 39, .032);
  font-family: var(--serif);
  font-size: clamp(160px, 26vw, 420px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.09em;
  pointer-events: none;
  user-select: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
}
.hero-copy, .hero-figure { will-change: transform; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 1.06;
}
.hero-lead {
  max-width: 29em;
  margin-top: 27px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.75;
}
.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 15px;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.identity strong { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.identity span { color: var(--muted); font-size: 12px; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.hero-figure { position: relative; }
.hero-image {
  aspect-ratio: 1427 / 1102;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 24px 60px rgba(67, 55, 37, .09);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -13px;
  left: -13px;
  width: 36px;
  height: 36px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  pointer-events: none;
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .03em;
}
.quick-index { border-block: 1px solid var(--line); background: rgba(255, 253, 247, .5); }
.quick-index ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-index li { position: relative; padding: 20px 25px; color: var(--muted); font-family: var(--serif); font-size: 12px; text-align: center; }
.quick-index li + li { border-left: 1px solid var(--line); }
.quick-index li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%; background: var(--orange); vertical-align: 2px; }

/* Sections */
.section { padding-block: var(--section-y); }
.section-soft { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: start; max-width: 920px; }
.section-number {
  grid-row: 1 / span 3;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}
.section-heading .section-label { margin-bottom: 16px; }
.section-heading h2, .story-copy h2, .split-copy h2 {
  font-size: clamp(35px, 4.3vw, 60px);
}
.section-heading > p:last-child { max-width: 37em; margin-top: 20px; color: var(--muted); font-size: 16px; }
.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(58px, 9vw, 140px);
}
.story-copy h2, .split-copy h2 { margin-top: 22px; }
.story-copy > p, .split-copy > p { max-width: 34em; margin-top: 23px; color: var(--muted); }
.story-media { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 28px; }
.story-media figure { position: relative; }
.story-media figure::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
}
.story-media img { width: 100%; }
.keyword-list { border-left: 1px solid var(--line); }
.keyword-list li { position: relative; padding: 8px 0 8px 22px; color: var(--muted); font-size: 13px; }
.keyword-list li::before { content: ""; position: absolute; top: 50%; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); transform: translateY(-50%); }

.gallery-three, .gallery-two { display: grid; margin-top: clamp(48px, 7vw, 84px); }
.gallery-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 42px); }
.gallery-two { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(28px, 6vw, 88px); }
.gallery-two figure:last-child { margin-bottom: clamp(10px, 6vw, 90px); }
.photo-frame { position: relative; overflow: hidden; background: var(--paper-deep); }
.photo-frame img { width: 100%; }
.gallery-three figcaption, .gallery-two figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.gallery-three figcaption strong, .gallery-two figcaption strong { color: var(--ink); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.write-gallery figure:nth-child(2) { margin-top: 38px; }
.write-gallery figure:nth-child(3) { margin-top: 76px; }

/* Brand moment */
.quote-band {
  position: relative;
  isolation: isolate;
  min-height: min(680px, 82vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--olive);
  color: #f7f2e7;
  text-align: center;
}
.quote-band::before {
  content: "GOOD STORIES";
  position: absolute;
  z-index: -1;
  color: rgba(255, 255, 255, .025);
  font-family: var(--serif);
  font-size: clamp(90px, 18vw, 250px);
  font-weight: 700;
  white-space: nowrap;
}
.quote-thread { position: absolute; top: 0; left: 50%; width: 1px; height: 74px; background: var(--orange); }
.brand-copy { padding-block: 120px; }
.brand-label { display: block; margin-bottom: 28px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.quote-band h2 { font-size: clamp(44px, 6.4vw, 86px); line-height: 1.25; }
.quote-band p { margin-top: 34px; color: #c9cdbc; font-size: 11px; font-weight: 700; letter-spacing: .28em; }

/* Teach */
.split-layout { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(360px, 1.08fr); align-items: center; gap: clamp(58px, 9vw, 140px); }
.split-photo { position: relative; width: min(100%, 540px); }
.split-photo::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 36%; height: 34%; border-right: 1px solid var(--orange); border-bottom: 1px solid var(--orange); pointer-events: none; }
.split-photo img { width: 100%; }
.class-list { margin-top: 33px; border-top: 1px solid var(--line); }
.class-list li { display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.class-list strong { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.class-list span { color: var(--muted); font-size: 13px; }

/* AI */
.ai-section { overflow: hidden; }
.ai-gallery { align-items: start; }
.ai-gallery .photo-frame { background: var(--olive-light); aspect-ratio: 3 / 4; }
.ai-gallery .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ai-gallery img { transition: transform .7s var(--ease); }
.ai-gallery figure:hover img { transform: translateY(-4px) scale(1.012); }

/* These days and contact */
.wide-story {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.wide-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; opacity: .72; }
.wide-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 27, 22, .78), rgba(24, 27, 22, .28) 65%, rgba(24, 27, 22, .08)); }
.wide-copy { position: relative; z-index: 1; width: var(--page); margin-inline: auto; }
.wide-copy .section-kicker { color: #ffb078; }
.wide-copy h2 { max-width: 720px; margin-top: 22px; font-size: clamp(42px, 5.8vw, 76px); }
.wide-copy p { max-width: 32em; margin-top: 24px; color: rgba(255,255,255,.78); }
.button-light { margin-top: 31px; border-color: rgba(255,255,255,.7); background: rgba(32,36,29,.22); color: #fff; }
.button-light:hover { border-color: var(--orange); background: var(--orange); }
.contact { padding-block: clamp(100px, 12vw, 180px); }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 60px;
  padding: clamp(44px, 6vw, 84px) 0;
  border-block: 1px solid var(--line);
}
.contact-panel h2 { margin-top: 20px; font-size: clamp(42px, 5vw, 68px); }
.contact-panel p { max-width: 39em; margin-top: 22px; color: var(--muted); }
.contact-actions { justify-content: flex-end; }
.site-footer { padding-block: 34px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--orange-dark); }

/* Motion is progressive enhancement: content is visible without JavaScript or GSAP. */
.reveal { opacity: 1; transform: none; }

@media (max-width: 1160px) {
  :root { --page: min(100% - 56px, 1080px); }
  .header-cta { display: none; }
  .site-nav ul { gap: 11px; }
  .site-nav a { font-size: 9px; }
  .hero-grid { grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); gap: 50px; }
}

@media (max-width: 960px) {
  :root { --page: min(100% - 44px, 820px); }
  .header-inner { min-height: 70px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    z-index: 99;
    top: 70px;
    right: 0;
    left: 0;
    height: calc(100dvh - 70px);
    padding: 20px 22px 40px;
    visibility: hidden;
    background: var(--paper);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    overflow-y: auto;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav ul { display: block; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 13px 4px; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
  .site-nav a::after { display: none; }
  .hero-grid, .story-layout, .split-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .hero-copy { max-width: 620px; }
  .hero-figure { width: 86%; margin-left: auto; }
  .story-layout { gap: 52px; }
  .story-media { grid-template-columns: minmax(0, 1fr) 128px; }
  .split-layout { gap: 58px; }
  .split-photo { width: min(78%, 500px); }
  .contact-panel { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  :root { --page: calc(100% - 36px); --section-y: 88px; }
  html { scroll-padding-top: 70px; }
  section[id] { scroll-margin-top: 70px; }
  body { font-size: 15px; line-height: 1.7; }
  .hero { padding: 38px 0 84px; }
  .hero h1 { font-size: clamp(47px, 14.5vw, 68px); line-height: 1.08; }
  .hero-lead { font-size: 16px; }
  .hero-figure { width: 100%; }
  .hero-figure::before { top: -9px; left: -9px; width: 28px; height: 28px; }
  .hero-actions .button { flex: 1 1 150px; }
  .hero-watermark { top: 10%; left: 18%; font-size: 52vw; }
  .quick-index ul { grid-template-columns: repeat(2, 1fr); }
  .quick-index li { padding: 15px 8px; font-size: 11px; }
  .quick-index li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .quick-index li:nth-child(4) { border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 54px minmax(0, 1fr); }
  .section-number { font-size: 27px; }
  .section-heading h2, .story-copy h2, .split-copy h2 { font-size: clamp(32px, 10.4vw, 44px); line-height: 1.28; }
  .section-heading > p:last-child { margin-top: 17px; font-size: 15px; }
  .story-media { grid-template-columns: 1fr; gap: 22px; }
  .keyword-list { display: flex; flex-wrap: wrap; gap: 8px 15px; border-left: 0; }
  .keyword-list li { padding: 0 0 0 12px; }
  .keyword-list li::before { left: 0; }
  .gallery-three, .gallery-two { grid-template-columns: 1fr; gap: 48px; }
  .gallery-two { align-items: stretch; }
  .gallery-two figure:last-child { margin: 0; }
  .write-gallery figure:nth-child(2), .write-gallery figure:nth-child(3),
  .ai-gallery figure:nth-child(2), .ai-gallery figure:nth-child(3) { margin-top: 0; }
  .quote-band { min-height: 570px; }
  .quote-band h2 { font-size: clamp(40px, 12vw, 56px); }
  .brand-copy { padding-block: 104px; }
  .split-photo { width: 100%; }
  .split-photo::after { right: -9px; bottom: -9px; }
  .class-list li { grid-template-columns: 108px 1fr; gap: 13px; }
  .ai-gallery { perspective: none; }
  .ai-gallery figure, .ai-gallery figure:nth-child(1), .ai-gallery figure:nth-child(2), .ai-gallery figure:nth-child(3) { transform: none; }
  .ai-gallery figure:hover img { transform: none; }
  .wide-story { min-height: 720px; align-items: end; }
  .wide-story > img { object-position: 58% center; }
  .wide-story::after { background: linear-gradient(0deg, rgba(24, 27, 22, .88), rgba(24, 27, 22, .18) 80%); }
  .wide-copy { padding-bottom: 70px; }
  .wide-copy h2 { font-size: clamp(39px, 11vw, 54px); }
  .contact { padding-block: 90px; }
  .contact-panel { gap: 20px; padding: 48px 0; }
  .contact-panel h2 { font-size: clamp(39px, 11vw, 52px); }
  .contact-panel p br { display: none; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  :root { --page: calc(100% - 28px); }
  .logo { font-size: 15px; }
  .hero h1 { font-size: 45px; }
  .hero-figure figcaption { display: block; }
  .hero-figure figcaption span { display: block; }
  .hero-figure figcaption span + span { margin-top: 3px; }
  .class-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-copy, .hero-figure, .hero-watermark, .reveal, .ai-gallery figure { transform: none !important; opacity: 1 !important; }
}
