/* =====================================================================
   느루프로젝트 n.r project — style.css
   Editorial / architectural minimalism. Warm stone + charcoal.
   ===================================================================== */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('../fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-300i.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Web fallbacks — used only when the local font files cannot load
   (for example when index.html is opened straight from disk). */
@font-face {
  font-family: 'Pretendard Web';
  src: url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond Web';
  src: url('https://fonts.gstatic.com/s/cormorantgaramond/v21/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --paper-3: #e3ddd1;
  --ink: #14130f;
  --ink-soft: #201e19;
  --muted: #79736a;
  --body: #3a362f;
  --line: rgba(20, 19, 15, 0.14);
  --line-soft: rgba(20, 19, 15, 0.08);
  --line-light: rgba(244, 241, 234, 0.16);

  --sans: 'Pretendard Variable', 'Pretendard Web', Pretendard, -apple-system,
    BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR',
    system-ui, sans-serif;
  --serif: 'Cormorant Garamond', 'Cormorant Garamond Web', 'Iowan Old Style',
    'Times New Roman', serif;

  --pad: clamp(18px, 4.2vw, 64px);
  --maxw: 1560px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 0.8rem;
}
.skip:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .rule {
  display: inline-block;
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  vertical-align: middle;
  margin-right: 14px;
}

.ext {
  font-size: 0.72em;
  opacity: 0.55;
  margin-left: 3px;
}

/* ---------- 4. Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: var(--ink);
  padding-block: clamp(16px, 2vw, 26px);
  transition: background 0.5s var(--ease), color 0.4s var(--ease),
    padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

body.is-scrolled .site-head {
  background: rgba(244, 241, 234, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom-color: var(--line-soft);
  padding-block: 14px;
}

body.is-on-dark.is-scrolled:not(.is-menu-open) .site-head {
  background: rgba(18, 17, 13, 0.82);
  color: var(--paper);
  border-bottom-color: rgba(244, 241, 234, 0.1);
}

body.is-menu-open .site-head {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding-block: clamp(16px, 2vw, 26px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.brand-word {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding-bottom: 3px;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover,
.nav a[aria-current='true'] { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current='true']::after { transform: scaleX(1); }
.nav-num {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.menu-btn-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-btn-bars {
  display: block;
  width: 20px;
  position: relative;
  height: 7px;
}
.menu-btn-bars i {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn-bars i:first-child { top: 0; }
.menu-btn-bars i:last-child { top: 6px; }
body.is-menu-open .menu-btn-bars i:first-child { top: 3px; transform: rotate(45deg); }
body.is-menu-open .menu-btn-bars i:last-child { top: 3px; transform: rotate(-45deg); }

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  padding: 96px var(--pad) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }

.mm-nav a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 10px;
  padding-block: clamp(16px, 4vw, 24px);
  border-top: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
}
.mm-nav a:last-child { border-bottom: 1px solid var(--line-light); }
.mm-nav span {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(244, 241, 234, 0.45);
}
.mm-nav em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.42);
}

.mm-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.7);
}
.mm-foot a { width: fit-content; border-bottom: 1px solid transparent; }
.mm-foot a:hover { border-bottom-color: currentColor; }

/* ---------- 5. Hero ---------- */
.hero {
  background: var(--paper);
  overflow: hidden;
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  padding-top: clamp(104px, 15vh, 172px);
  padding-bottom: clamp(22px, 3.6vh, 42px);
}

.hero-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin-bottom: clamp(24px, 5vh, 58px);
  animation: rise 1.1s var(--ease) 0.2s both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 16px);
  animation: rise 1.2s var(--ease) 0.34s both;
}
.hero-ko {
  font-size: clamp(3.4rem, 11.5vw, 8.2rem);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 26px);
  padding-bottom: 0.5em;
  animation: rise 1.2s var(--ease) 0.5s both;
}
.hero-lede {
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  font-weight: 300;
  line-height: 1.95;
  color: var(--body);
}
.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero-figure {
  margin: 0;
  animation: fade 1.4s var(--ease) 0.15s both;
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-figure picture { display: block; }
.hero-figure img {
  width: 100%;
  height: clamp(240px, 41vh, 510px);
  object-fit: cover;
  object-position: 50% 46%;
}
.hero-figure-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--pad) 0;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 26px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 10px;
  background: var(--ink);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-10px); }
  60%, 100% { transform: translateY(28px); }
}

/* ---------- 6. Sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 148px);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
}
.sec-num {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-top: 0.75em;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.005em;
}
.sec-sub {
  margin-top: clamp(12px, 1.6vw, 18px);
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--muted);
}
.sec-note {
  font-size: 0.7rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  padding-top: 0.5em;
}
.sec-note span { opacity: 0.7; }

/* ---------- 7. Selected works ---------- */
.works { background: var(--paper); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 3.6vw, 48px);
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.chip span {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  opacity: 0.55;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(14px, 2vw, 28px);
  row-gap: clamp(44px, 5.5vw, 84px);
  align-items: start;
  margin-top: clamp(32px, 4.5vw, 60px);
}

.work[hidden],
.work-note[hidden] { display: none; }

.work.is-land { grid-column: 1 / -1; }
.work.is-port { grid-column: span 1; }
.is-land .frame { aspect-ratio: 16 / 9; }
.is-port .frame { aspect-ratio: 4 / 5; }

.work-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-3);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.work-btn:hover .frame img { transform: scale(1.03); }

.work-cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px clamp(12px, 1.4vw, 20px);
  align-items: baseline;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cap-idx {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.cap-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cap-title {
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.cap-concept {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.cap-meta {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.work-btn:hover .cap-concept { color: var(--ink); }

.work-note {
  grid-column: span 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(12px, 3vw, 44px) clamp(4px, 3vw, 40px);
  min-height: 200px;
}
.work-note-label {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-note-text {
  max-width: 32ch;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--body);
}

.works-outro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(38px, 5vw, 76px);
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid var(--line);
}
.works-outro-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.works-more {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.86rem;
  letter-spacing: -0.005em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.works-more:hover { border-bottom-color: currentColor; }
.works-more-from {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.works-more:hover .works-more-from { color: var(--ink); }

/* ---------- 8. Studio ---------- */
.studio {
  background: var(--paper-2);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.studio-lead .sec-num {
  display: block;
  margin-bottom: clamp(22px, 4vw, 46px);
}
.studio-title {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.035em;
}
.studio-en {
  margin-top: clamp(22px, 3vw, 38px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.55;
  color: var(--muted);
}

.studio-body p {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 2;
  color: var(--body);
}
.studio-body p + p { margin-top: 1.3em; }
.studio-body .lede {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.95;
  color: var(--ink);
}

.studio-info {
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.studio-info div { min-width: 0; }
.studio-info dt {
  margin-bottom: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-info dd {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}
.studio-info dd span {
  font-size: 0.78rem;
  color: var(--muted);
}
.studio-info a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.studio-info a:hover { border-bottom-color: currentColor; }

.studio-shot {
  margin-top: clamp(52px, 7vw, 104px);
}
.studio-shot img {
  width: 100%;
  height: clamp(230px, 40vw, 560px);
  object-fit: cover;
  object-position: 50% 50%;
}
.studio-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.studio-pano {
  margin: clamp(40px, 6vw, 88px) 0 0;
}
.studio-pano img {
  width: 100%;
  height: clamp(130px, 19vw, 280px);
  object-fit: cover;
}
.studio-pano figcaption {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--pad) 0;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 9. Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(72px, 10vw, 148px) 0;
}

.sec-head-light .sec-num { color: rgba(244, 241, 234, 0.45); }
.sec-head-light .sec-sub { color: rgba(244, 241, 234, 0.5); }

.contact-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  margin-top: clamp(42px, 6vw, 80px);
}

.contact-list div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 18px;
  align-items: baseline;
  padding-block: 16px;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}
.contact-list div:last-child { border-bottom: 1px solid rgba(244, 241, 234, 0.14); }
.contact-list dt {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.42);
}
.contact-list dd {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 300;
}
.contact-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.contact-list a:hover { border-bottom-color: rgba(244, 241, 234, 0.7); }
.contact-sub {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 234, 0.38);
}

/* Form */
.inquiry { min-width: 0; }

.field { margin-bottom: clamp(18px, 2.2vw, 24px); }
.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 7px 0 11px;
  border: 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.6;
  transition: border-color 0.35s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  min-height: 108px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 241, 234, 0.28); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.field select {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f4f1ea' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}
.field select option { background: var(--ink); color: var(--paper); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 28px);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 2.6vw, 30px);
}
.btn {
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.btn-solid {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn-solid:hover { background: transparent; color: var(--paper); }
.btn-ghost {
  background: transparent;
  border-color: rgba(244, 241, 234, 0.28);
  color: rgba(244, 241, 234, 0.82);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }

.form-note {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 0.71rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.4);
}
.form-status {
  margin-top: 10px;
  min-height: 1.3em;
  font-size: 0.76rem;
  font-weight: 300;
  color: #c9b491;
}

/* Footer */
.site-foot {
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 26px 28px;
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.42);
}
.foot-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  color: rgba(244, 241, 234, 0.8);
}
.foot-top { transition: color 0.35s var(--ease); }
.foot-top:hover { color: var(--paper); }

/* ---------- 10. Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #0c0b0a;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}
.lb-close {
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  transition: color 0.3s var(--ease);
}
.lb-close:hover { color: var(--paper); }
.lb-close span { margin-left: 6px; opacity: 0.7; }

.lb-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px) auto;
  align-items: center;
  gap: clamp(10px, 1.8vw, 28px);
  padding: 0 var(--pad) clamp(18px, 4vh, 44px);
}

.lb-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.lb-fig img {
  max-width: 100%;
  max-height: calc(100svh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.35s var(--ease);
}
.lb-fig img.is-swapping { opacity: 0; }

.lb-info {
  align-self: center;
  max-width: 320px;
}
.lb-idx {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(244, 241, 234, 0.4);
}
.lb-title {
  margin-top: 12px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}
.lb-concept {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(244, 241, 234, 0.66);
}
.lb-meta {
  margin-top: 24px;
  border-top: 1px solid rgba(244, 241, 234, 0.16);
}
.lb-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  font-size: 0.76rem;
  font-weight: 300;
}
.lb-meta dt {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.4);
}
.lb-desc {
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.58);
}

.lb-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.lb-nav:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ---------- 11. Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1024px) {
  .studio-grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); }
  .contact-grid { grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); }
  .studio-body { max-width: 62ch; }

  .lb-body {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'prev fig next'
      'info info info';
    align-content: center;
    gap: 18px clamp(8px, 1.4vw, 18px);
    overflow-y: auto;
  }
  .lb-prev { grid-area: prev; }
  .lb-next { grid-area: next; }
  .lb-fig { grid-area: fig; }
  .lb-info {
    grid-area: info;
    max-width: none;
    padding-top: 4px;
  }
  .lb-fig img { max-height: 58svh; }
  .lb-meta { max-width: 340px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-head {
    grid-template-columns: 1fr;
    gap: clamp(18px, 3vh, 28px);
  }
  .hero-meta { padding-bottom: 0; gap: 14px; }
  .hero-tags { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }

  .sec-head { grid-template-columns: auto 1fr; }
  .sec-note {
    grid-column: 2;
    text-align: left;
    padding-top: 14px;
  }

  .contact-list div { grid-template-columns: 5rem 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 720px) {
  .hero-head { padding-top: clamp(96px, 15vh, 132px); }
  .hero-ko { letter-spacing: -0.055em; }
  .hero-figure img { height: 68svh; object-position: 22% 55%; }
  .scroll-cue i { height: 20px; }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(38px, 8vw, 56px);
    margin-top: 30px;
  }
  .work.is-land,
  .work.is-port,
  .work-note { grid-column: 1 / -1; }
  .is-land .frame { aspect-ratio: 3 / 2; }
  .work-note { min-height: 0; padding: 24px; }

  .work-cap { grid-template-columns: auto 1fr; row-gap: 6px; }
  .cap-meta {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .works-outro {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .studio-info { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; text-align: center; }

  .studio-shot figcaption,
  .studio-pano figcaption { flex-direction: column; gap: 4px; }

  .lb-body {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'fig fig'
      'info info'
      'prev next';
    align-content: center;
    row-gap: 14px;
    padding-bottom: 24px;
  }
  .lb-fig img { max-height: 50svh; }
  .lb-nav {
    width: auto;
    height: 42px;
    border-radius: 999px;
  }
  .lb-prev { grid-area: prev; }
  .lb-next { grid-area: next; }
  .lb-title { font-size: 1.15rem; }
  .lb-meta { margin-top: 16px; }
  .lb-desc { margin-top: 14px; }
}

@media (max-width: 420px) {
  .hero-ko { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .chip { padding: 8px 15px; }
}

/* ---------- 13. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .mobile-menu, .scroll-cue, .lb, .filters, .form-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .contact, .studio { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
