/* =========================================================================
   DRY DOWN — shared styles (every page)
   tokens · base · nav + mobile menu · shared section bits · reveal · sheet overlay
   · work cards · footer · sub-page head · tabs · portfolio / journal / notice
   Page-specific styles stay in each page's own <style>.
   ========================================================================= */
:root {
  color-scheme: light;
  --black:  #0B0B0B;
  --white:  #FFFFFF;
  --ink:    #141414;
  --muted:  #8C8C8C;
  --muted-2:#B4B4B4;
  --line:   #E6E6E6;
  --seam:   #ECEAE5;
  --serif:  "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --label:  "Jost", "Noto Sans KR", sans-serif;
  --kr:     "Noto Sans KR", system-ui, sans-serif;
  --navH:   51px;                 /* measured by site.js; sticky tab bars sit right under the nav */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--kr); font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: #111; color: #fff; }
[hidden] { display: none !important; }

/* ---------- NAV ----------
   Two groups in one bar: the landing's chapters, a hairline, then the site's pages. */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(22px, 5vw, 64px); color: #fff; line-height: 1;   /* slim bar: ~51px tall */
  transition: color .5s ease, background .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
  --navGap: clamp(16px, 2vw, 34px);
}
nav.solid { color: var(--ink); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0.32em; padding-left: 0.32em; color: inherit; text-decoration: none; }
.nav-links { display: flex; gap: var(--navGap); align-items: center; }
.nav-group { display: flex; gap: var(--navGap); align-items: center; }
.nav-links a { position: relative; padding-bottom: 4px; font-family: var(--label); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: inherit; text-decoration: none; opacity: .82; transition: opacity .3s; }
/* the drydown line as the link underline: solid → dashes → a dot, drawn in from the left */
:root { --dd-line: linear-gradient(to right,
  currentColor 0 56%, transparent 56% 59%, currentColor 59% 64%, transparent 64% 67.5%, currentColor 67.5% 71.5%,
  transparent 71.5% 75.5%, currentColor 75.5% 78.5%, transparent 78.5% 83%, currentColor 83% 85%, transparent 85% 90%,
  currentColor 90% 91.5%, transparent 91.5% 97.5%, currentColor 97.5% 99%, transparent 99%); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--dd-line);
  transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }   /* .active = section in view (home) or current page */
.nav-sep { width: 1px; height: 13px; background: currentColor; opacity: .35; margin: 0 2px; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  nav { --navGap: clamp(12px, 1.6vw, 22px); }
  .nav-links a { font-size: 10.5px; letter-spacing: .18em; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; font-family: var(--label); font-size: 11px; letter-spacing: .2em; background: none; border: none; color: inherit; cursor: pointer; }
}
@media (max-width: 720px) {
  nav { padding: 12px 20px; }                                 /* slim bar on phones: ~43px tall */
  .brand { font-size: 18px; }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--black); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 28px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { color: #fff; text-decoration: none; }
.mm-group { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mm-group.chapters a { font-family: var(--serif); font-size: 30px; letter-spacing: .12em; line-height: 1.1; }
.mm-group.pages a { font-family: var(--label); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; padding: 4px 0; }
.mm-label { font-family: var(--label); font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 8px; }
.mm-rule { width: 32px; height: 1px; background: rgba(255,255,255,.28); margin: 28px 0; }
.mobile-menu .mm-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.mobile-menu .mm-brand { position: absolute; top: 28px; left: 22px; font-family: var(--serif); letter-spacing: .32em; font-size: 18px; }
html.menu-lock, html.menu-lock body { overflow: hidden; }

/* ---------- shared section bits ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px); }
section.block { padding: clamp(72px, 12vw, 150px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); }
.eyebrow .txt { font-family: var(--label); font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; }
.eyebrow .bar { width: 42px; height: 1px; background: var(--ink); opacity: .5; }
.display-h { font-family: var(--kr); font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(27px, 4.4vw, 50px); line-height: 1.32; margin: 30px 0 0; text-wrap: balance; }
@media (max-width: 720px) { .display-h { font-size: clamp(24px, 7vw, 30px); } }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms); }   /* --i on children of stagger groups → they arrive one after another */
.rv.in { opacity: 1; transform: none; }
.eyebrow .bar { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1) .2s; }
.rv.in .eyebrow .bar, .in > .eyebrow .bar { transform: scaleX(1); }
/* underline that draws in from the left (titles inside hover cards / rows) */
.uline { position: relative; display: inline-block; }
.uline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a:hover > .uline::after, .work-card:hover .uline::after, .jr-row:hover .uline::after, .jr-feature:hover .uline::after { transform: scaleX(1); }
/* links: underline draws in */
.fl { position: relative; color: rgba(255,255,255,.9); text-decoration: none; transition: color .3s; }
.fl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--dd-line);
  transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.fl:hover { color: #fff; }
.fl:hover::after { transform: scaleX(1); }

/* ---------- SHEET overlay (case detail / article reader) ---------- */
html.case-lock, html.case-lock body { overflow: hidden; }
.case { position: fixed; inset: 0; z-index: 120; background: var(--white); color: var(--ink);
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.case.open { opacity: 1; visibility: visible; }
.case-close { position: fixed; top: 20px; right: 24px; z-index: 130; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); cursor: pointer; color: var(--ink); font-size: 16px; line-height: 1;
  transition: background .3s, color .3s; }
.case-close:hover { background: var(--ink); color: #fff; }
.case-inner { max-width: 1000px; margin: 0 auto; padding: clamp(70px,10vw,120px) clamp(22px,5vw,64px) clamp(64px,8vw,110px);
  transform: translateY(26px); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.case.open .case-inner { transform: none; }
.case-cat { font-family: var(--label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; }
.case-title { font-family: var(--kr); font-weight: 300; font-size: clamp(30px,5.6vw,60px); line-height: 1.14; margin: 18px 0 0; text-wrap: balance; }
.case-cover { margin: clamp(34px,5vw,58px) 0; aspect-ratio: 16/8; background: #111; overflow: hidden; }
.case-cover .ph { width: 100%; height: 100%; }
.case-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; margin-bottom: clamp(40px,6vw,64px); }
@media (max-width:640px){ .case-meta { grid-template-columns: 1fr 1fr; gap: 20px; } }
.case-meta .k { font-family: var(--label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.case-meta .v { font-size: 15px; color: var(--ink); margin-top: 8px; line-height: 1.5; }
.case-block { display: grid; grid-template-columns: 190px 1fr; gap: clamp(20px,4vw,48px); margin-bottom: clamp(34px,5vw,54px); }
@media (max-width:720px){ .case-block { grid-template-columns: 1fr; gap: 12px; } }
.case-block h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; margin: 0; color: var(--ink); }
.case-block p { margin: 0; font-size: 15.5px; line-height: 1.95; color: #4a4a4a; }
.case-result { background: var(--seam); padding: clamp(28px,4vw,44px); display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width:640px){ .case-result { grid-template-columns: 1fr; gap: 26px; } }
.case-result .rn { font-family: var(--serif); font-weight: 300; font-size: clamp(30px,4vw,46px); line-height: 1; }
.case-result .rl { font-family: var(--label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(48px,7vw,80px); border-top: 1px solid var(--ink); padding-top: 24px; }
.case-next .lbl { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.case-next .nx { font-family: var(--kr); font-weight: 300; font-size: clamp(18px,2.2vw,26px); color: var(--ink); background: none; border: 0; cursor: pointer; text-align: right; padding: 0; }
.case-next .nx:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .case-inner { padding-top: 84px; }
  .case-title { font-size: clamp(28px, 9vw, 40px); }
}
/* article reader (journal) — same sheet, one centred editorial column so nothing hangs left */
.art { max-width: 720px; margin: 0 auto; }
.art .case-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; }
.art .case-cover { aspect-ratio: 16 / 9; margin: clamp(28px,4vw,44px) 0; }
.art .art-lede, .art .art-body { max-width: none; }
.art-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.art-lede { font-family: var(--kr); font-weight: 300; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; color: var(--ink); max-width: 62ch; margin: clamp(30px,4vw,44px) 0 0; }
.art-body { max-width: 66ch; margin-top: clamp(34px,5vw,54px); }
.art-body p { font-size: 16.5px; line-height: 1.95; color: #333; margin: 0 0 22px; }
.art-body h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.3; margin: 44px 0 14px; color: var(--ink); }
.art-body blockquote { margin: 34px 0; padding-left: 24px; border-left: 1px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: clamp(20px,2.4vw,26px); line-height: 1.5; color: var(--ink); }
.art-body ul { margin: 0 0 24px; padding-left: 0; list-style: none; }
.art-body li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.85; color: #333; margin-bottom: 10px; }
.art-body li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--ink); }   /* a short rule, not a bullet */
.art-table { overflow-x: auto; margin: 6px 0 28px; border-top: 1px solid var(--ink); }
.art-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; min-width: 520px; }
.art-body th { text-align: left; font-family: var(--label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.art-body td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: #333; vertical-align: top; }
.art-body td:first-child { color: var(--ink); font-weight: 400; white-space: nowrap; }
.art-faq { margin-top: clamp(36px,5vw,52px); border-top: 1px solid var(--ink); padding-top: 8px; }
.art-faq h3 { margin-top: 22px; }
.art-faq dl { margin: 0; }
.art-faq dt { font-family: var(--kr); font-weight: 400; font-size: 16.5px; color: var(--ink); margin: 22px 0 8px; padding-left: 26px; position: relative; }
.art-faq dt::before { content: "Q"; position: absolute; left: 0; top: 0; font-family: var(--serif); font-style: italic; color: var(--muted); }
.art-faq dd { margin: 0; padding-left: 26px; font-size: 15.5px; line-height: 1.9; color: #4a4a4a; }
.art-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(30px,4vw,44px); }

/* ---------- work / portfolio cards ---------- */
.work-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.work-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #101010; }
.work-media .ph { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.work-media .ph::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.work-card:hover .work-media .ph, .jr-feature:hover .work-media .ph { transform: scale(1.06); }
.work-media .cat { position: absolute; left: 16px; top: 15px; z-index: 2; color: rgba(255,255,255,.92);
  font-family: var(--label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.work-media .view { position: absolute; right: 16px; bottom: 14px; z-index: 2; color: #fff; opacity: 0; transform: translateX(-6px);
  transition: opacity .4s ease, transform .4s ease; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.work-card:hover .work-media .view { opacity: 1; transform: none; }
.work-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--ink); margin-top: 22px; padding-top: 15px; }
.work-num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted-2); }
.work-result { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; }
.work-title { font-family: var(--kr); font-weight: 300; font-size: clamp(20px, 2.3vw, 27px); margin: 14px 0 0; line-height: 1.32; position: relative; display: inline-block; }
.work-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-title::after { transform: scaleX(1); }
.work-desc { color: var(--muted); font-size: 13.5px; line-height: 1.78; margin: 12px 0 0; max-width: 42ch; }
.work-all { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(44px, 6vw, 72px); text-decoration: none; color: var(--ink);
  font-family: var(--label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.work-all .arrow { transition: transform .4s ease; }
.work-all:hover .arrow { transform: translateX(8px); }

/* ---------- FOOTER — the business card ---------- */
footer { background: var(--black); color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.05fr 1.2fr .9fr; padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 52px); }
.foot-col { position: relative; padding: 2px clamp(30px, 4vw, 64px); }
.foot-col:first-child { padding-left: 0; }
.foot-col:last-child { padding-right: 0; }
.foot-col + .foot-col::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.14); }
/* the wordmark lingers: tracking widens slightly on hover */
.foot-col .fm { display: inline-block; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 42px); letter-spacing: 0.28em; padding-left: .28em; line-height: 1;
  transition: letter-spacing .7s cubic-bezier(.2,.7,.2,1); cursor: default; }
.foot-col .fm:hover { letter-spacing: 0.36em; }
.foot-col .ftag { font-family: var(--label); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-top: 22px; }
.foot-col .fsub { font-family: var(--kr); font-size: 13px; color: rgba(255,255,255,.5); margin-top: 14px; line-height: 1.8; }
/* the fading line: solid → dashes → a dot. Draws itself when the footer comes into view. */
.fade-line { display: flex; align-items: center; height: 2px; margin: 28px 0 22px; max-width: 320px; }
.fade-line .solid { flex: 0 0 50%; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.fade-line .dash, .fade-line .dot { height: 2px; background: #fff; opacity: 0; transition: opacity .5s ease; }
.fade-line .d1 { width: 16px; margin-left: 6px; }
.fade-line .d2 { width: 12px; margin-left: 7px; }
.fade-line .d3 { width: 9px;  margin-left: 8px; }
.fade-line .d4 { width: 6px;  margin-left: 9px; }
.fade-line .d5 { width: 4px;  margin-left: 10px; }
.fade-line .dot { width: 2px; border-radius: 50%; margin-left: 12px; }
.rv.in .fade-line .solid { transform: scaleX(1); }
.rv.in .fade-line .d1 { opacity: 1;  transition-delay: 1.0s; }
.rv.in .fade-line .d2 { opacity: .9; transition-delay: 1.1s; }
.rv.in .fade-line .d3 { opacity: .8; transition-delay: 1.2s; }
.rv.in .fade-line .d4 { opacity: .7; transition-delay: 1.3s; }
.rv.in .fade-line .d5 { opacity: .6; transition-delay: 1.4s; }
.rv.in .fade-line .dot { opacity: .5; transition-delay: 1.55s; }
.foot-card .pname { font-family: var(--kr); font-weight: 300; font-size: 22px; letter-spacing: .32em; color: #fff; }
.foot-card .prole { font-family: var(--label); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 8px; }
.foot-card .cgrid { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 12px 40px; margin-top: 28px;
  font-family: var(--label); font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.foot-card .cgrid a { color: rgba(255,255,255,.85); }
.foot-card .addr { font-family: var(--kr); font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.55); margin-top: 20px; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; text-align: left; }
.foot-nav .row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px clamp(18px, 2.2vw, 34px); }
.foot-nav a { font-family: var(--kr); font-weight: 300; font-size: 15px; }
.foot-nav .row.pages a { font-family: var(--label); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.foot-nav .row.socials { margin-top: 6px; }
.foot-nav .row.socials a { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.foot-nav .legal { display: flex; align-items: center; gap: 18px; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 6px; }
.foot-nav .legal a { font-size: 13px; color: rgba(255,255,255,.5); }
.foot-nav .legal .sep { color: rgba(255,255,255,.28); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 26px 0 clamp(40px,5vw,54px); border-top: 1px solid rgba(255,255,255,.12); }
.foot-bottom .cc { font-family: var(--label); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.foot-bottom .lg { font-family: var(--label); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,.55); }
/* the tagline lingers in, letter by letter, when the footer comes into view */
.foot-bottom .lg span { opacity: 0; transition: opacity .6s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.foot-bottom.in .lg span { opacity: 1; }
.to-top { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.75);
  border-radius: 100px; padding: 10px 16px; cursor: pointer; font-family: var(--label); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  transition: border-color .3s, color .3s; }
.to-top .ar { display: inline-block; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.to-top:hover { border-color: #fff; color: #fff; }
.to-top:hover .ar { transform: translateY(-3px); }
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr; gap: 44px; }
  .foot-col { padding: 0; }
  .foot-col + .foot-col::before { display: none; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .foot-top { padding: 40px 0 28px; gap: 34px; }
  .foot-bottom { padding: 20px 0 36px; }
  .foot-col .fm { font-size: 26px; }
}

/* ---------- SUB-PAGE head (portfolio / journal / notice) ---------- */
.page-head { background: var(--seam); border-bottom: 1px solid var(--line);
  padding: calc(var(--navH) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); }
.page-head .display-h { font-size: clamp(30px, 5vw, 58px); margin-top: 26px; max-width: 20ch; }
.page-head .page-sub { color: #4a4a4a; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.9; max-width: 46ch; margin: 22px 0 0; }
.page-head .page-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px;
  font-family: var(--label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); }
.page-empty { padding: clamp(40px,6vw,72px) 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px,2.4vw,28px); color: var(--muted); }
@media (max-width: 720px) {
  .page-head { padding-top: calc(var(--navH) + 40px); padding-bottom: 36px; }
  .page-head .display-h { margin-top: 18px; }
  .page-body { padding: 32px 0 64px; }
}

/* ---------- TABS (filter bar, sticks under the nav) ----------
   The ink underline slides between tabs; counts sit beside each label in the serif. */
.tabs-bar { position: sticky; top: var(--navH); z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: flex; gap: clamp(20px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; position: relative; padding: 18px 0 16px; background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--label); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; transition: color .3s; }
.tab .n { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: 0; text-transform: none; margin-left: 7px; color: var(--muted-2); transition: color .3s; }
.tab:hover, .tab.active { color: var(--ink); }
.tab.active .n { color: var(--ink); }
.tabs .ink { position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--dd-line); color: var(--ink);
  transition: left .5s cubic-bezier(.2,.7,.2,1), width .5s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 720px) { .tab { padding: 15px 0 13px; font-size: 10.5px; letter-spacing: .18em; } }
/* on phones the row overflows: fade the right edge while there is more to scroll (site.js toggles .more) */
.tabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }

/* ---------- PORTFOLIO grid ---------- */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 56px); }   /* two big covers per row, same rhythm as the landing's Work grid */
@media (max-width: 720px) { .pf-grid { grid-template-columns: 1fr; gap: 44px; } }
.pf-grid .work-media { aspect-ratio: 16 / 11; }

/* ---------- JOURNAL ---------- */
.jr-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-decoration: none; color: inherit; cursor: pointer;
  padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--ink); }
@media (max-width: 820px) { .jr-feature { grid-template-columns: 1fr; gap: 24px; } }
.jr-feature .work-media { aspect-ratio: 16 / 10; }
.jr-kicker { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.jr-kicker .c { color: var(--ink); }
.jr-feature h2 { font-family: var(--kr); font-weight: 300; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; margin: 16px 0 0; }
.jr-feature p { color: #4a4a4a; font-size: 15px; line-height: 1.9; margin: 16px 0 0; max-width: 44ch; }
.jr-feature .rt { margin-top: 22px; font-family: var(--label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.jr-list { display: block; }
/* list rows: thumbnail · kicker + title + excerpt · read arrow */
.jr-row { display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; padding: 26px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.jr-thumb { display: block; aspect-ratio: 16 / 10; }
.jr-row .jr-text { display: block; min-width: 0; }
.jr-row .jr-kicker { margin-bottom: 10px; }
.jr-row .rt { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.jr-row h3 { font-family: var(--kr); font-weight: 300; font-size: clamp(18px, 2vw, 23px); margin: 0; line-height: 1.35; }
.jr-row p { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin: 8px 0 0; max-width: 60ch; }
.jr-row:hover .rt { transform: translateX(6px); color: var(--ink); }
@media (max-width: 760px) {
  .jr-row { grid-template-columns: 112px 1fr; gap: 14px; padding: 18px 0; align-items: start; }
  .jr-row .rt { display: none; }
  .jr-row .jr-kicker { gap: 6px 10px; font-size: 10px; margin-bottom: 6px; }
  .jr-row .jr-kicker span:nth-child(3) { display: none; }                   /* read time can go on phones */
  .jr-row h3 { font-size: 16px; line-height: 1.4; }
  .jr-row p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; margin-top: 6px; }
}

/* ---------- NOTICE (accordion list) ---------- */
.pill { display: inline-block; font-family: var(--label); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 10px 4px;
  border: 1px solid var(--muted-2); color: var(--muted); border-radius: 100px; white-space: nowrap; line-height: 1; }
.pill.pin { background: var(--ink); color: #fff; border-color: var(--ink); }
.nt-list { border-top: 1px solid var(--ink); }
.nt { border-bottom: 1px solid var(--line); }
.nt-row { width: 100%; display: grid; grid-template-columns: 250px 1fr 32px; gap: 24px; align-items: center; padding: 22px 0;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.nt-meta { display: flex; align-items: center; gap: 16px; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nt-row h3 { font-family: var(--kr); font-weight: 300; font-size: clamp(16px, 1.8vw, 20px); margin: 0; line-height: 1.4; transition: color .3s; }
.nt-row:hover h3 { color: #000; }
.nt-plus { position: relative; width: 14px; height: 14px; justify-self: end; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.nt-plus::before, .nt-plus::after { content: ""; position: absolute; background: var(--ink); left: 50%; top: 50%; }
.nt-plus::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.nt-plus::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.nt.open .nt-plus { transform: rotate(45deg); }
.nt-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1); }
.nt.open .nt-body { grid-template-rows: 1fr; }
.nt-body > div { overflow: hidden; }
.nt-body .txt { padding: 0 0 30px 274px; color: #4a4a4a; font-size: 15px; line-height: 1.9; max-width: calc(274px + 62ch); }
.nt-body .txt p { margin: 0 0 14px; }
.nt-body .txt p:last-child { margin-bottom: 0; }
.nt-body .txt a { color: var(--ink); }
@media (max-width: 720px) {
  .nt-row { grid-template-columns: 1fr 24px; gap: 8px 16px; padding: 18px 0; }
  .nt-meta { grid-column: 1; }
  .nt-row h3 { grid-column: 1; }
  .nt-plus { grid-column: 2; grid-row: 1 / span 2; }
  .nt-body .txt { padding-left: 0; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
  .eyebrow .bar, .case-inner, .fade-line .solid { transition: none !important; transform: none !important; }
  .fade-line .dash, .fade-line .dot, .foot-bottom .lg span { opacity: 1 !important; transition: none !important; }
  .tabs .ink, .nt-body, .nt-plus { transition: none !important; }
}
