/* Hallmark · job: book a consultation · shape: Photographic portfolio in several pages, in the form of 817designspace.com · genre: editorial · theme: custom, warm white, hairlines, small type (deal: manual)
 * hero: full-bleed crossfade of ten photographs, one per project, its number and name bottom-left linking to the project, the headline kept for screen readers (the client turned down a visible line twice) · nav: wordmark left, ABOUT, WORK, CONTACT set upright top to bottom in the right margin, a row in the header on phone pages without photographs · footer: a hairline and the business details, small · imagery: the studio's own photographs, 12 projects, one photograph per row with wide gaps · signature: ten projects crossfading edge to edge on the first screen
 * axes: light/grotesk-and-serif/warm-white · posture: quiet · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: H, labels are one small size by design, so project names and the phone number carry the scale */
/* Hallmark · waive 83 · a studio portfolio, the work is the material; every project page is photographs with hairline text beside them */
/* Hallmark · waive 54, 67 · menus and labels in English capitals at the client's request ("쟤네처럼 영어로 하는게 더 느낌있는거같아"), set without tracking */
/* Revision 2 (2026-10-26): "좀 더 차분하고 미니멀하게". Revision 3 (2026-11-02): 지명원 statement removed, 상가리 walk rebuilt, wider spacing */
/* Revision 4 (2026-11-02): "817designspace 폼을 이런 느낌으로". Full-bleed hero slides, 상가리 as a project page, ruled lists, 4-column index */
/* Revision 5 (2026-11-02): hero slides 상가리 only, no visible headline, the menu written vertically in the right margin */
/* Revision 6 (2026-11-03): "사진 하나하나 느낌이 있는데 우리는 너무 다닥다닥", "메인에 사진 10장 정도", "프로젝트 메인사진들은 별로", "어바웃 메뉴", "지명원 내용", "영어로".
 * The site becomes pages (home, about, work, a page per project, contact), built by 08_홈페이지/build_site.py. Ten hero slides, one per project, new 3:4 covers,
 * project photographs one per row with wide gaps, About from the 지명원 (the 빚듯 similes left out), English menus and labels */

/* Fonts: Latin and Hangul are split by unicode-range so each script gets its own face
   (display: Helvetica Now + Adobe 명조, body: SUIT + 본명조). Visitors without the local
   files fall back to SUIT from jsDelivr and Noto Serif KR from Google Fonts. */
@font-face {
  font-family: "QS Display"; font-weight: 500; font-display: swap;
  src: local("HelveticaNowText-Medium"), local("Helvetica Now Text Medium"),
       url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Medium.woff2") format("woff2");
  unicode-range: U+0021-007E, U+00C0-024F, U+2013-2014;
}
@font-face {
  font-family: "QS Display"; font-weight: 500; font-display: swap;
  src: local("AdobeMyungjoStd-Medium"), local("Adobe Myungjo Std M");
  unicode-range: U+0020, U+00A0-00BF, U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}
@font-face {
  font-family: "QS Body"; font-weight: 400; font-display: swap;
  src: local("SUIT-Regular"), local("SUIT Regular"),
       url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Regular.woff2") format("woff2");
  unicode-range: U+0021-007E, U+00C0-024F, U+2013-2014;
}
@font-face {
  font-family: "QS Body"; font-weight: 400; font-display: swap;
  src: local("SourceHanSerifKR-Regular"), local("본명조 KR"), local("Source Han Serif KR");
  unicode-range: U+0020, U+00A0-00BF, U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}
@font-face {
  font-family: "QS Body"; font-weight: 500; font-display: swap;
  src: local("SUIT-Medium"), local("SUIT Medium"),
       url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Medium.woff2") format("woff2");
  unicode-range: U+0021-007E, U+00C0-024F, U+2013-2014;
}
@font-face {
  font-family: "QS Body"; font-weight: 500; font-display: swap;
  src: local("SourceHanSerifKR-Medium"), local("본명조 KR Medium"), local("Source Han Serif KR Medium");
  unicode-range: U+0020, U+00A0-00BF, U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}

:root {
  --paper: #fcfbf8;
  --ink: #1a1918;
  --ink-soft: #45423e;
  --muted: #6c6862;
  --rule: #7a756f;
  --line: #dedad4;
  --wash: #efece7;
  --oak: #8a6a48;
  --on-photo: #ffffff;
  --scrim-top: rgb(16 14 12 / 0.34);
  --scrim-bottom: rgb(16 14 12 / 0.62);
  --scrim-mid: rgb(16 14 12 / 0.22);
  --scrim-side: rgb(16 14 12 / 0.34);

  --font-display: "QS Display", "Noto Serif KR", serif;
  --font-body: "QS Body", "Noto Serif KR", serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --step-3: clamp(2.25rem, 1.4rem + 3vw, 4rem);

  --max: 1440px;
  /* wide enough on desktop to hold the vertical menu between the content and the screen edge */
  --gutter: clamp(40px, 2.4vw + 24px, 64px);
  --gap: clamp(12px, 1.4vw, 20px);
  --section: clamp(104px, 12vw, 184px);
  /* space between project photographs: each one gets a screen of its own */
  --photo-gap: clamp(56px, 7vw, 120px);
  --header-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-fade: cubic-bezier(0.45, 0, 0.25, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rule) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.num { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
[lang="en"] { font-family: var(--font-display); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  /* The hero keeps its crossfade (opacity only, nothing moves) and drops the slow zoom */
  .slide { transition-duration: 1200ms !important; }
  .slide img { transform: none; }
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip:focus-visible { top: 12px; }

/* Links */
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 160ms var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link:active { opacity: 0.7; }

/* Header: on paper on every page; on the home page light over the photographs until they scroll away */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-photo);
  transition: background-color 280ms var(--ease), color 280ms var(--ease);
}
html:not(.js) .site-header { position: absolute; }
.site-header.is-solid { background: var(--paper); color: var(--ink); }
.site-header:not(.is-solid) :focus-visible { outline-color: var(--on-photo); }
.header-row {
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.wordmark {
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
/* Menu: one column centred in a gutter's width at the right edge of the screen, the letters stacked top to bottom */
.site-nav {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  right: calc(var(--gutter) / 2);
  transform: translateX(50%);
  font-family: var(--font-display);
}
.site-nav ul { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.site-nav a {
  display: block;
  padding: 4px 6px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 0.8125rem;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  text-decoration-color: transparent;
  transition: color 280ms var(--ease), text-decoration-color 160ms var(--ease);
}
.site-header.is-solid .site-nav a,
.site-nav a.on-paper { color: var(--ink); }
.site-nav a.on-paper:focus-visible { outline-color: var(--oak); }
.site-nav a:hover,
.site-nav a[aria-current] { text-decoration-color: currentColor; }
.site-nav a:active { opacity: 0.7; }

/* Home: ten photographs edge to edge, one per project, crossfading */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  background: var(--ink);
  color: var(--on-photo);
}
.slides { position: absolute; inset: 0; overflow: clip; }
.slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* top for the wordmark, right edge for the vertical menu, bottom for the caption */
  background:
    linear-gradient(to bottom, var(--scrim-top), transparent 22%),
    linear-gradient(to left, var(--scrim-side), transparent clamp(96px, 9vw, 160px)),
    linear-gradient(to top, var(--scrim-bottom), var(--scrim-mid) 22%, transparent 44%);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1600ms var(--ease-fade);
}
.slide.is-current { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 9s linear;
}
.slide.is-current img { transform: none; }

.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 3.4vw, 40px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gap);
}
.hero-caption {
  display: flex;
  align-items: baseline;
  gap: 1.4em;
  min-height: 44px;
  align-content: center;
  font-size: var(--step-1);
  text-decoration: none;
}
.hero-caption .num { font-size: var(--step--1); }
.hero-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms var(--ease);
}
.hero-caption:hover .hero-name { text-decoration-color: currentColor; }
.hero-caption:active { opacity: 0.8; }
.hero-controls { display: flex; align-items: baseline; gap: 28px; font-size: var(--step--1); }
.slide-toggle {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms var(--ease);
}
html:not(.js) .slide-toggle { visibility: hidden; }
.slide-toggle:hover { text-decoration-color: currentColor; }
.slide-toggle:active { opacity: 0.7; }
.hero :focus-visible { outline-color: var(--on-photo); }

/* Home: one line about the studio, then every project in a ruled list */
.home-index { padding-block: var(--section); }
.home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  align-items: start;
}
.home-lead { grid-column: 1 / 6; display: grid; gap: 20px; }
.lead-en {
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.home-lead p { color: var(--ink-soft); }
.more { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step--1); }
.home-list { grid-column: 7 / 13; border-bottom: 1px solid var(--line); }
.home-list a {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: var(--gap);
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.home-list .num { font-size: var(--step--1); color: var(--muted); }
.home-list .ko { font-size: var(--step--1); color: var(--muted); text-align: right; }
.home-list .en {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms var(--ease);
}
.home-list a:hover .en { text-decoration-color: currentColor; }
.home-list a:active { opacity: 0.7; }

/* Pages below the header */
.page {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 112px));
  padding-bottom: var(--section);
}
.page-title {
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Ruled rows: a label on the left, the list on the right */
.rows { border-bottom: 1px solid var(--line); }
.rows > div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 8px;
  padding: 14px 0 40px;
  border-top: 1px solid var(--rule);
}
.rows dt { grid-column: 1 / 4; font-size: var(--step--1); color: var(--muted); }
.rows dd { grid-column: 4 / 13; display: grid; gap: 6px; justify-items: start; }
.rows dd ul {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15em), 1fr));
  gap: 4px var(--gap);
}
.rows li [lang="en"] { margin-right: 0.4em; }
.rows a { text-decoration-color: var(--line); text-underline-offset: 0.3em; transition: text-decoration-color 160ms var(--ease); }
.rows a:hover { text-decoration-color: currentColor; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(64px, 8vw, 128px);
  align-items: start;
}
.about-grid .page-title { grid-column: 1 / 4; }
.about-text { grid-column: 4 / 12; display: grid; gap: clamp(40px, 5vw, 64px); }
.about-text .lead-en {
  font-size: clamp(1.25rem, 0.95rem + 1vw, 1.75rem);
  line-height: 1.32;
  letter-spacing: 0;
  text-transform: uppercase;
}
.about-ko { display: grid; gap: 1.1em; max-width: 36em; color: var(--ink-soft); }
.slogan { font-size: var(--step-1); }
.about-grid .rows { grid-column: 1 / -1; }

/* Work: covers in four columns, wide gaps */
.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 40px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.filter { display: none; gap: 4px 28px; flex-wrap: wrap; }
.js .filter { display: flex; }
.filter button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--step--1);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: transparent;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.filter button span { margin-left: 0.3em; font-family: var(--font-body); font-weight: 400; font-variant-numeric: tabular-nums; }
.filter button:hover { color: var(--ink); }
.filter button:active { opacity: 0.7; }
.filter button[aria-pressed="true"] { color: var(--ink); text-decoration-color: currentColor; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 96px) clamp(20px, 2.2vw, 32px);
}
.card {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  align-items: baseline;
  row-gap: 2px;
  text-decoration: none;
}
.card-photo {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  overflow: clip;
  aspect-ratio: 3 / 4;
  background: var(--wash);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms var(--ease), transform 900ms var(--ease);
}
.card .num { font-size: var(--step--1); color: var(--muted); }
.card .ko { grid-column: 2; font-size: var(--step--1); color: var(--muted); }
.card .en {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms var(--ease);
}
a.card:hover .card-photo img { opacity: 0.9; transform: scale(1.025); }
a.card:hover .en { text-decoration-color: currentColor; }
a.card:active .card-photo img { opacity: 0.78; }
.work-more { margin-top: clamp(64px, 7vw, 112px); font-size: var(--step--1); color: var(--ink-soft); }

/* Project: details and the project list held on the left, photographs one per row on the right */
.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--photo-gap);
  align-items: start;
}
.project-info {
  grid-column: 1 / 5;
  grid-row: 1 / span 2;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 36px;
}
.project-info h1 { display: grid; gap: 8px; }
.project-info h1 .en { font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.01em; }
.project-info h1 .ko { font-family: var(--font-body); font-weight: 400; font-size: var(--step-0); line-height: 1.5; color: var(--ink-soft); }
.meta { display: grid; gap: 12px; font-size: var(--step--1); line-height: 1.6; }
.meta > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.meta dt { color: var(--muted); }
.meta dd { color: var(--ink-soft); }
.meta dd [lang="en"] { color: var(--ink); }
.project-blog { font-size: var(--step--1); }
.project-index { font-size: var(--step--1); line-height: 1.6; }
.project-index p { margin-bottom: 10px; }
.project-index a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.project-index a:hover { color: var(--ink); }
.project-index a[aria-current] { color: var(--ink); text-decoration-color: currentColor; }
.project-index a:active { opacity: 0.7; }
.project-photos { grid-column: 6 / 12; display: grid; gap: var(--photo-gap); }
.shot img { width: 100%; background: var(--wash); }
/* upright photographs are held to the height of the screen and centred, so each one is seen whole */
.shot.is-portrait { display: flex; justify-content: center; }
.shot.is-portrait img { width: auto; max-height: calc(100svh - var(--header-h) - 96px); }
.project-pager {
  grid-column: 6 / 12;
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.project-pager a { display: grid; gap: 2px; text-decoration: none; }
.project-pager a + a { text-align: right; }
.project-pager span { font-size: var(--step--1); color: var(--muted); }
.project-pager a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.project-pager a:active { opacity: 0.7; }
/* a short screen cannot hold the list beside the details */
@media (max-height: 760px) {
  .project-index { display: none; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(48px, 6vw, 96px);
}
.contact-grid .page-title { grid-column: 1 / 4; }
.contact-call { grid-column: 4 / 13; display: grid; gap: 14px; justify-items: start; }
.phone {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 160ms var(--ease);
}
.phone:hover { text-decoration-color: currentColor; }
.phone:active { opacity: 0.8; }
.contact-grid .rows { grid-column: 1 / -1; }

.notfound { display: grid; gap: 24px; justify-items: start; }
.notfound p:last-child { display: flex; gap: 28px; }

/* Footer */
.site-footer { padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
.foot-mark { grid-column: 1 / 4; }
.biz { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; }
.biz dt { color: var(--muted); }
.biz a { text-decoration-color: var(--line); text-underline-offset: 0.3em; transition: text-decoration-color 160ms var(--ease); }
.biz a:hover { text-decoration-color: currentColor; }
.fine { grid-column: 4 / 13; color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .home-lead, .home-list { grid-column: 1 / -1; }
  .about-grid .page-title, .about-text { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project { row-gap: 48px; }
  .project-info { grid-column: 1 / -1; grid-row: auto; position: static; gap: 28px; }
  .project-index { display: none; }
  .project-photos, .project-pager { grid-column: 1 / -1; }
  .contact-grid .page-title, .contact-call { grid-column: 1 / -1; }
  .rows dt { grid-column: 1 / -1; }
  .rows dd { grid-column: 1 / -1; }
  .foot-mark, .biz, .fine { grid-column: 1 / -1; }
  .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
  /* No room beside the content for the menu column. Over the home photographs the menu stays upright inside
     the content edge; on the other pages it is a row in the header */
  :root { --header-h: 56px; --gutter: clamp(16px, 3.4vw, 26px); }
  .site-header { position: absolute; }
  .site-nav { top: calc(env(safe-area-inset-top, 0px) + 16px); right: var(--gutter); transform: none; }
  .site-nav ul { gap: 20px; }
  body:not(.home) .site-nav { top: env(safe-area-inset-top, 0px); height: var(--header-h); display: flex; align-items: center; }
  body:not(.home) .site-nav ul { flex-direction: row; gap: 18px; }
  body:not(.home) .site-nav a { writing-mode: horizontal-tb; padding: 12px 0; }
  .hero-caption { font-size: var(--step-0); gap: 1em; }
  .hero-controls { gap: 18px; }
  .home-list a { grid-template-columns: 2.4em minmax(0, 1fr); row-gap: 0; }
  .home-list .ko { grid-column: 2; text-align: left; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 14px; }
  .card { grid-template-columns: 2.2em minmax(0, 1fr); }
  .card .en { font-size: var(--step--1); }
  .card .ko { font-size: 0.8125rem; }
  .shot.is-portrait img { max-height: none; width: 100%; }
  .rows > div { padding-bottom: 32px; }
  .biz { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .wordmark { font-size: 0.8125rem; }
  .hero-count { display: none; }
  body:not(.home) .site-nav ul { gap: 12px; }
  body:not(.home) .site-nav a { font-size: 0.75rem; }
}
