/* Familjen Grotesk — SIL Open Font License 1.1, see fonts/OFL-FamiljenGrotesk.txt */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/familjen-grotesk-vietnamese-wght-normal.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------------------------------------------------------------------------------------------
   Gallery-app look: white, image first, rounded tiles packed edge to edge, pill controls.
   One display face (Familjen Grotesk) for names and headings; the system UI font for the rest.
   --------------------------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --fg: #111214;
  --muted: #62656b;
  --surface: #f1f1f2;
  --surface-2: #e4e4e6;
  --line: #e3e3e5;
  --link: #1f57c3;
  --focus: #1f57c3;
  --gap: 8px;
  --pad: 12px;
  --r-tile: 14px;
  --r-card: 28px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Familjen Grotesk", var(--sans);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gap: 12px; --pad: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: rgba(31, 87, 195, .18); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 60; background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i .dot { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 var(--pad); max-width: 1720px; margin: 0 auto; }
.logo { font: 700 20px/1 var(--display); letter-spacing: -.015em; text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--surface); transition: background-color .15s; }
.search:hover { background: var(--surface-2); }
.search:focus-within { background: var(--bg); box-shadow: inset 0 0 0 2px var(--focus); }
.search .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 15.5px; outline: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.toplinks { display: flex; align-items: center; gap: 2px; }
.toplinks a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.toplinks a:hover { background: var(--surface); }
.toplinks a[aria-current] { background: var(--fg); color: #fff; }
.toplinks .search-link { display: none; width: 44px; padding: 0; justify-content: center; }
.toplinks .toplink-cta { background: var(--fg); color: #fff; padding: 0 18px; }
.toplinks .toplink-cta:hover { background: #2c2e33; }
@media (max-width: 680px) {
  .topbar-in { height: 58px; gap: 4px; }
  .logo { font-size: 18px; }
  .search { display: none; }
  .toplinks { margin-left: auto; }
  .toplinks .search-link { display: inline-flex; }
  .toplinks a { height: 40px; padding: 0 11px; font-size: 14.5px; }
}

/* ---- buttons & chips ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--fg); color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2c2e33; }
.btn-soft { background: var(--surface); color: var(--fg); }
.btn-soft:hover { background: var(--surface-2); }
.btn-icon { width: 46px; padding: 0; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm .i { width: 18px; height: 18px; }

.chips { margin: 22px 0 18px; }
.chips-in { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--pad) 6px; scrollbar-width: none; }
.chips-in::-webkit-scrollbar { display: none; }
.chips-in > :first-child { margin-left: auto; }
.chips-in > :last-child { margin-right: auto; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.chip:hover { background: var(--surface-2); }
.chip.on, .chip.on:hover { background: var(--fg); color: #fff; }
.chip-n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip-made, .chip-made:hover { background: var(--fg); color: #fff; }

/* ---- profile (home) ---- */
.profile { max-width: 660px; margin: 0 auto; padding: 30px var(--pad) 0; text-align: center; }
.avatar { display: block; border-radius: 50%; object-fit: cover; background: var(--surface); }
.avatar-lg { width: 116px; height: 116px; margin: 0 auto 16px; }
.avatar-md { width: 84px; height: 84px; }
.avatar-initials { display: grid; place-items: center; background: var(--surface-2); color: var(--fg); font: 700 40px/1 var(--display); letter-spacing: -.02em; }
.avatar-md.avatar-initials { font-size: 30px; }
.profile-name { margin: 0; font: 700 clamp(32px, 6.4vw, 44px)/1.04 var(--display); letter-spacing: -.025em; }
.profile-role { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.profile-bio { margin: 14px auto 0; max-width: 36em; font-size: 15.5px; line-height: 1.55; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

/* ---- section tabs (under the profile) ---- */
.tabs { margin: 26px 0 0; border-bottom: 1px solid var(--line); }
.tabs-in { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--pad); scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs-in > :first-child { margin-left: auto; }
.tabs-in > :last-child { margin-right: auto; }
.tabs a { position: relative; flex: none; padding: 12px 14px 14px; color: var(--muted); font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current] { color: var(--fg); }
.tabs a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--fg); }
.tabs + .chips { margin-top: 18px; }
@media (max-width: 480px) {
  .tabs { margin-top: 20px; }
  .tabs-in { gap: 0; padding: 0 6px; }
  .tabs a { padding: 12px 9px 14px; font-size: 14.5px; }
  .tabs a[aria-current]::after { left: 8px; right: 8px; }
}
@media (max-width: 400px) {
  .tabs a { padding: 12px 7px 14px; font-size: 14px; }
  .tabs a[aria-current]::after { left: 6px; right: 6px; }
}

.mini-profile { display: flex; justify-content: center; padding: 26px var(--pad) 0; }
.mini-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.avatar-sm { width: 52px; height: 52px; }
.avatar-sm.avatar-initials { font-size: 20px; }
.mini-text { display: flex; flex-direction: column; }
.mini-name { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.mini-role { color: var(--muted); font-size: 14px; margin-top: 3px; }
.section-page { max-width: 760px; margin: 0 auto; padding: 34px var(--pad) 0; }
.section-more { margin-top: 28px; }

/* ---- the packed grid ---- */
.grid-wrap { container: grid / inline-size; max-width: 1720px; margin: 0 auto; padding: 0 var(--pad); }
.grid {
  --n: 4;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  /* half a column per row, so 2 rows + 1 gap = 1 column: tile shapes match the packer's */
  grid-auto-rows: calc(((100cqi - (var(--n) - 1) * var(--gap)) / var(--n) - var(--gap)) / 2);
}
.tile { grid-area: var(--a4); }
@container grid (min-width: 600px) { .grid { --n: 6; } .tile { grid-area: var(--a6); } }
@container grid (min-width: 940px) { .grid { --n: 8; } .tile { grid-area: var(--a8); } }
@container grid (min-width: 1320px) { .grid { --n: 12; } .tile { grid-area: var(--a12); } }

.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-tile); background: var(--surface); text-decoration: none; isolation: isolate; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background-color .15s; pointer-events: none; }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0)); color: #fff; opacity: 0; transition: opacity .15s; }
.tile-title { font: 600 15px/1.2 var(--sans); }
.tile-place { font-size: 12.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-count { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px 5px 7px; border-radius: 999px; background: rgba(17, 18, 20, .55); color: #fff; font: 600 12px/1 var(--sans); }
.tile-count svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
@media (hover: hover) {
  .tile:hover::after { background: rgba(0, 0, 0, .06); }
  .tile:hover .tile-info { opacity: 1; }
}
.tile:focus-visible .tile-info { opacity: 1; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 32px var(--pad) 8px; }
.pager a, .pager [aria-current] { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.pager a { background: var(--surface); }
.pager a:hover { background: var(--surface-2); }
.pager [aria-current] { background: var(--fg); color: #fff; }
.pager-pages { display: contents; }
.grid-status { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 0 8px; min-height: 60px; }

.empty { padding: 56px var(--pad) 64px; text-align: center; color: var(--muted); }
.empty p { margin: 0; }
.empty-art { width: 132px; height: 88px; margin-bottom: 14px; fill: var(--surface); stroke: none; }

/* ---- one post ---- */
.post { max-width: 1120px; margin: 0 auto; padding: 4px var(--pad) 0; }
.post-top { display: flex; align-items: center; height: 52px; }
.back { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 16px 0 8px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { background: var(--surface); }
.post-card { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-card); background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 12px 44px rgba(0, 0, 0, .09); }
.post-card.no-media { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin: 0 auto; }
.post-media { display: flex; flex-direction: column; background: var(--surface); }
.media-frame { position: relative; flex: 1 1 auto; width: 100%; overflow: hidden; }
.slides { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -3px; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
/* the same photo, blurred, fills whatever the photo itself does not */
.slide-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(30px) saturate(1.15); opacity: .5; }
.slide-link { position: relative; z-index: 1; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.slide .slide-img { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.car-btn, .zoom-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--fg); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); cursor: pointer; }
.car-btn:hover, .zoom-btn:hover { background: #fff; }
.car-btn { top: 50%; margin-top: -20px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.zoom-btn { top: 12px; right: 12px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.car-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .35); transition: background-color .15s; }
.car-dots .dot.on { background: #fff; }

.post-info { display: flex; flex-direction: column; min-width: 0; padding: 40px 40px 30px; }
.post-title { margin: 0 0 16px; font: 700 clamp(28px, 3.4vw, 38px)/1.08 var(--display); letter-spacing: -.022em; overflow-wrap: anywhere; }
.post-place { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 15px; }
.post-place .i { width: 18px; height: 18px; }
.post-place a { text-decoration: none; }
.post-place a:hover { text-decoration: underline; }
.post-date { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.post-text { margin-top: 20px; font-size: 16px; line-height: 1.62; overflow-wrap: break-word; }
.post-text p { margin: 0 0 .85em; }
.post-text a { color: var(--link); }
.hashtag { text-decoration: none; }
.hashtag:hover { text-decoration: underline; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.post-tags .chip { height: 36px; padding: 0 15px; font-size: 14px; }
.post-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 26px; }

.more { margin-top: 56px; }
.more h2 { margin: 0 0 18px; text-align: center; font: 700 24px/1.2 var(--display); letter-spacing: -.015em; }

@media (max-width: 780px) {
  .post { padding: 0; }
  .post-top { height: 48px; padding: 0 6px; }
  .post-card { grid-template-columns: minmax(0, 1fr); border-radius: 0; box-shadow: none; }
  .post-card.no-media { padding-top: 8px; }
  .media-frame { max-height: 82vh; }
  .post-info { padding: 20px var(--pad) 4px; }
  .post-title { margin-bottom: 12px; }
  .more { margin-top: 36px; }
}

/* ---- full-size viewer ---- */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 18, 20, .97); color: #fff; overflow: hidden; }
.viewer::backdrop { background: rgba(17, 18, 20, .7); }
.viewer img { position: absolute; top: 60px; left: 12px; width: calc(100% - 24px); height: calc(100% - 76px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer .v-btn { position: absolute; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.viewer .v-btn:hover { background: rgba(255, 255, 255, .22); }
.viewer .v-close { top: 8px; right: 8px; }
.viewer .v-prev { left: 12px; top: 50%; margin-top: -22px; }
.viewer .v-next { right: 12px; top: 50%; margin-top: -22px; }
.viewer .v-count { position: absolute; top: 20px; left: 20px; font-size: 14px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }

/* ---- listings: tag, made, search ---- */
.listing-head { padding: 32px var(--pad) 0; text-align: center; }
.listing-head h1 { margin: 0; font: 700 clamp(30px, 5.6vw, 44px)/1.06 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.listing-count { margin: 8px 0 0; color: var(--muted); }
.search-big { display: flex; align-items: center; gap: 10px; max-width: 680px; height: 54px; margin: 0 auto; padding: 0 22px; border-radius: 999px; background: var(--surface); }
.search-big:focus-within { background: var(--bg); box-shadow: inset 0 0 0 2px var(--focus); }
.search-big .i { color: var(--muted); }
.search-big input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; outline: none; }
.listing-head + .grid-wrap, .listing-head + .empty { margin-top: 24px; }
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 920px; margin: 24px auto 0; padding: 0 var(--pad); list-style: none; }

/* ---- about, experience, resume ---- */
.prose { font-size: 16.5px; line-height: 1.66; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--link); }
.prose-lg { font-size: 18px; line-height: 1.65; }
.prose-sm { margin-top: 6px; font-size: 15.5px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.exp + .exp { margin-top: 34px; }
.exp h2, .cv-sec h2 { margin: 0 0 6px; font: 700 22px/1.2 var(--display); letter-spacing: -.015em; }
.exp-list { margin: 0; padding: 0; list-style: none; }
.exp-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.exp-item:first-child { border-top: 0; }
.exp-when { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.exp-what h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.exp-org { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .exp-item { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; }
.resume-note { color: var(--muted); font-size: 13.5px; }
.cv-sec { padding: 22px 0; border-top: 1px solid var(--line); }
.cv-sec:first-of-type { border-top: 0; padding-top: 0; }
.cv-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 10px 0; }
.cv-when { margin: 1px 0 0; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cv-item h3 { margin: 0; font-size: 16.5px; line-height: 1.3; }
.cv-org { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.cv-skills li { padding: 7px 14px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; }
.cv-lines { margin: 8px 0 0; padding: 0; list-style: none; }
.cv-lines li { padding: 5px 0; font-size: 16px; }
.cv-l-name { font-weight: 600; }
.cv-l-level { color: var(--muted); }
.print-head { display: none; }
@media (max-width: 560px) { .cv-item { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

@media print {
  @page { margin: 16mm 16mm 18mm; }
  body { font-size: 10.5pt; }
  .topbar, .foot, .tabs, .mini-profile, .resume-actions, .skip, .chips { display: none !important; }
  .section-page { max-width: none; padding: 0; }
  .print-head { display: block; margin-bottom: 14pt; }
  .print-head p { margin: 0; color: #444; }
  .print-head .print-name { font: 700 22pt/1.1 var(--display); color: #000; margin-bottom: 4pt; }
  .cv-sec { padding: 10pt 0; break-inside: avoid; }
  .cv-sec:first-of-type { padding-top: 0; }
  .cv-item { grid-template-columns: 34mm 1fr; padding: 4pt 0; break-inside: avoid; }
  .exp h2, .cv-sec h2 { font-size: 13pt; }
  .cv-skills li { padding: 2pt 7pt; background: none; border: 0.6pt solid #999; }
  a { color: inherit; text-decoration: none; }
}

/* ---- contact ---- */
.section-page.contact { max-width: 600px; }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.form label { display: block; margin: 16px 0 7px; font-weight: 600; font-size: 14.5px; }
.form input, .form textarea { display: block; width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); font: inherit; font-size: 16px; }
.form textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px rgba(17, 18, 20, .08); }
.form .btn { margin-top: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; }
.notice p { margin: 0 0 4px; }
.notice p:last-child { margin: 0; }
.notice-ok { background: #ecf6ef; }
.notice-err { background: #fdeceb; color: #86241b; }
.contact-alt { margin-top: 26px; color: var(--muted); }
.contact-alt a { color: var(--fg); }

.notfound { max-width: 540px; margin: 0 auto; padding: 88px var(--pad) 40px; text-align: center; }
.notfound h1 { margin: 0 0 10px; font: 700 38px/1.1 var(--display); letter-spacing: -.022em; }
.notfound p { color: var(--muted); }

/* ---- footer ---- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; max-width: 1720px; margin: 0 auto; padding: 22px var(--pad) 34px; color: var(--muted); font-size: 14px; }
.foot-in p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
