/* erikpel.com: wedding & portrait photography. One stylesheet, no build step. */

@font-face { font-family: "Caslon Display"; src: url(/fonts/caslon-display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caslon Text"; src: url(/fonts/caslon-text.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caslon Text"; src: url(/fonts/caslon-text-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #ffffff;
  --paper-2: #f4f2ee;
  --ink: #1a1918;
  --ink-2: #5c5752;
  --line: #e2ded8;
  --night: #161514;
  --display: "Caslon Display", "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --serif: "Caslon Text", "Libre Caslon Text", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1400px;
  --gap: clamp(8px, 1vw, 14px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr: 96px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #c8c2ba transparent; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
input, textarea, select { caret-color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.section { padding-block: clamp(72px, 10vw, 160px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.band { background: var(--paper-2); }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.005em; text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.2vw, 96px); }
.h2 { font-size: clamp(34px, 4.6vw, 68px); }
.h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.45; text-wrap: pretty; }
.lede em, .line em { font-style: italic; }
.line { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); }
.meta { font: 500 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; font-size: 18px; }
.muted { color: var(--ink-2); }
.cap { font-size: 13px; color: var(--ink-2); margin-top: 10px; letter-spacing: .02em; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 52px; padding: 0 28px;
  font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-2); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn svg, .more svg { width: 18px; height: 18px; flex: none; }
.more { display: inline-flex; align-items: center; gap: .55em; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding-block: 6px; border-bottom: 1px solid currentColor; }
.more svg { transition: transform .3s var(--ease); }
.more:hover svg { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(0,0,0,.25); }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hdr); padding-inline: var(--gutter); transition: height .35s var(--ease); }
.is-scrolled .hdr { height: 68px; }
.wordmark { font-family: var(--display); font-size: clamp(19px, 1.7vw, 26px); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding-left: .3em; }
.wordmark:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.nav a { text-decoration: none; padding-block: 8px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav--r { justify-content: flex-end; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 12px; }
.nav .btn:hover { text-decoration: none; }
.menu-btn { display: none; justify-self: end; background: none; border: 0; padding: 10px 0 10px 14px; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; vertical-align: -6px; margin-left: 8px; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  :root { --hdr: 64px; }
  .hdr { grid-template-columns: 1fr auto; }
  .hdr .nav { display: none; }
  .wordmark { justify-self: start; padding-left: 0; font-size: 17px; letter-spacing: .24em; }
  .menu-btn { display: inline-block; }
  .mobile-nav { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--paper); padding: 32px var(--gutter) 40px;
    display: flex; flex-direction: column; gap: 6px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .mobile-nav a { font-family: var(--display); font-size: 40px; line-height: 1.25; text-decoration: none; }
  .mobile-nav .contact-lines { margin-top: auto; font-size: 16px; display: grid; gap: 8px; }
  .mobile-nav .contact-lines a { font: 500 17px/1.5 var(--sans); text-decoration: underline; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: calc(100svh - var(--hdr)); min-height: 540px; max-height: 1080px; overflow: hidden; background: #2a2724; color: #fff; }
.hero--page { height: min(78svh, 820px); min-height: 460px; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14,12,10,.70) 0%, rgba(14,12,10,.42) 30%, rgba(14,12,10,0) 62%); }
.hero__copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 7vh, 88px); max-width: 980px; }
.hero__copy .h1 { color: #fff; }
.hero__copy .meta { color: #fff; margin-top: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 560px) { .hero__copy .meta .sep { display: none; } .hero__copy .meta .part { display: block; } }
.hero .actions { margin-top: 30px; }
.hero .more { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero img { animation: settle 2.4s var(--ease) both; }
  .hero__copy > * { animation: rise 1.1s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .24s; }
}
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
html.still .ph img { opacity: 1 !important; }
html.still .cta-bar { display: none !important; }
@keyframes settle { from { transform: scale(1.06); filter: blur(6px); } to { transform: none; filter: none; } }
@keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- images ---------- */
.ph { position: relative; overflow: hidden; background: var(--c, #e9e5df); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
html.js .ph img[loading="lazy"] { opacity: 0; transition: opacity .7s var(--ease); }
html.js .ph img.is-loaded { opacity: 1; }
[data-lightbox] { cursor: zoom-in; }
[data-lightbox]:focus-visible { outline-offset: 4px; }

/* home: edited sequence */
.seq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 7vw, 120px); }
.seq figure { grid-column: var(--cs) / span var(--sp); align-self: var(--al, start); margin-top: var(--mt, 0); }
@media (max-width: 760px) {
  .seq { row-gap: 40px; }
  .seq figure { grid-column: 1 / -1; margin-top: 0; }
  .seq figure.is-small { grid-column: var(--mcs, 1) / span 9; }
}

/* justified galleries */
.jg { display: grid; gap: var(--gap); }
.jrow { display: flex; gap: var(--gap); }
.jrow > figure { flex: var(--r) 1 0%; min-width: 0; }
.jrow > figure .ph { aspect-ratio: var(--r); }
.jrow--solo { justify-content: center; }
.jrow--solo > figure { flex: 0 0 min(58%, 640px); }
@media (max-width: 700px) {
  .jrow { flex-wrap: wrap; }
  .jrow > figure { flex-basis: 100%; }
  .jrow--pp > figure { flex-basis: calc(50% - var(--gap) / 2); }
  .jrow--solo > figure { flex-basis: 100%; }
}

/* ---------- home sections ---------- */
.intro { text-align: center; }
.intro .lede { max-width: 30ch; margin-inline: auto; }
.intro .sig { margin-top: 28px; }

.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); }
.svc { display: block; text-decoration: none; }
.svc:hover { text-decoration: none; }
.svc .ph { aspect-ratio: 4 / 5; }
.svc--big { grid-column: 1 / span 7; grid-row: span 2; }
.svc--big .ph { aspect-ratio: 4 / 5; }
.svc--a, .svc--b { grid-column: 9 / span 4; }
.svc--a .ph, .svc--b .ph { aspect-ratio: 5 / 4; }
.svc h3 { margin-top: 22px; }
.svc p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; }
.svc .more { margin-top: 18px; }
.svc .ph img { transition: transform 1.2s var(--ease); }
.svc:hover .ph img { transform: scale(1.025); }
@media (max-width: 860px) { .svc--big, .svc--a, .svc--b { grid-column: 1 / -1; grid-row: auto; } }

.featured__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.featured__head .h2 { grid-column: 1 / span 6; }
.featured__head .side { grid-column: 8 / span 5; }
.featured__head .side .meta { margin-bottom: 14px; }
@media (max-width: 860px) {
  .featured__run .jg { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .featured__run .jrow { display: contents; }
  .featured__run .jrow > figure { flex: 0 0 auto; width: calc(var(--r) * 62vw); scroll-snap-align: start; }
}
.strip { display: flex; gap: var(--gap); }
.strip figure { flex: var(--r) 1 0%; min-width: 0; }
.strip figure .ph { aspect-ratio: var(--r); }
@media (max-width: 860px) {
  .featured__head .h2, .featured__head .side { grid-column: 1 / -1; }
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .strip figure { flex: 0 0 auto; width: calc(var(--r) * 62vw); scroll-snap-align: start; }
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: center; }
.split > .ph-col { grid-column: 1 / span 5; }
.split > .text-col { grid-column: 7 / span 6; }
.split--rev > .ph-col { grid-column: 8 / span 5; grid-row: 1; }
.split--rev > .text-col { grid-column: 1 / span 6; grid-row: 1; }
.split .ph { aspect-ratio: var(--r, 4/5); }
.split .text-col p { margin-top: 20px; }
@media (max-width: 860px) { .split > .ph-col, .split > .text-col, .split--rev > .ph-col, .split--rev > .text-col { grid-column: 1 / -1; grid-row: auto; } }

.closer { text-align: center; }
.closer .lede { margin: 22px auto 0; max-width: 34ch; }
.closer .actions { justify-content: center; }
.closer .direct { margin-top: 26px; color: var(--ink-2); }
.closer .direct a { color: var(--ink); }

/* ---------- inner pages ---------- */
.page-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
.page-intro .lede { grid-column: 1 / span 7; }
.page-intro aside { grid-column: 9 / span 4; }
.page-intro aside h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.page-intro aside ul { padding: 0; list-style: none; }
.page-intro aside li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.page-intro aside .note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .page-intro .lede, .page-intro aside { grid-column: 1 / -1; } }

.toc { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; }
.story { scroll-margin-top: 80px; }
.story + .story { margin-top: clamp(96px, 12vw, 200px); }
.story__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--gap); align-items: end; margin-bottom: clamp(28px, 3.5vw, 48px); }
.story__head .h2 { grid-column: 1 / span 7; }
.story__head .side { grid-column: 8 / span 5; }
.story__head .side .meta { margin-bottom: 10px; }
.story__foot { margin-top: 28px; display: flex; justify-content: flex-end; }
@media (max-width: 860px) { .story__head .h2, .story__head .side { grid-column: 1 / -1; } }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 7.5px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details p { padding: 0 0 26px; max-width: 62ch; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gap); }
.contact form { grid-column: 1 / span 7; }
.contact aside { grid-column: 9 / span 4; }
.contact aside .ph { aspect-ratio: var(--r, 4/5); }
.contact aside h2 { margin-top: 24px; }
.contact aside .direct { margin-top: 18px; display: grid; gap: 10px; }
.contact aside .direct a { font-size: 18px; }
@media (max-width: 900px) { .contact form, .contact aside { grid-column: 1 / -1; } .contact aside { order: -1; display: grid; grid-template-columns: 120px 1fr; gap: 0 20px; align-items: center; } .contact aside .ph { grid-row: span 3; } .contact aside h2 { margin-top: 0; font-size: 26px; } }
.field { display: grid; gap: 8px; margin-bottom: 26px; }
.field label, .field legend { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.field .hint { font-size: 14px; color: var(--ink-2); margin-top: -2px; }
.field input, .field textarea { width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #8a847d; border-radius: 0; padding: 14px 16px; transition: border-color .2s; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #6f6962; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #77716a; }
.field [aria-invalid="true"] { border-color: #a3271b; box-shadow: 0 0 0 1px #a3271b; }
.field .err { color: #a3271b; font-size: 14px; display: none; }
.field.has-err .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
.field legend { padding: 0; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chips label { position: relative; font: 500 15px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 12px 16px; border: 1px solid #8a847d; transition: background .2s, color .2s, border-color .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; font-size: 15px; }
.form-status[data-state="error"] { color: #a3271b; }
button.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- footer & mobile bar ---------- */
.site-footer { background: var(--night); color: #f1eee9; padding-block: clamp(64px, 8vw, 120px) 40px; }
.site-footer .wordmark { color: #fff; font-size: clamp(22px, 2.4vw, 34px); padding-left: 0; }
.ft { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
.ft .lead { grid-column: 1 / span 6; }
.ft .lead p { margin-top: 18px; color: #c9c4bd; max-width: 40ch; }
.ft nav { grid-column: 8 / span 2; display: grid; gap: 10px; align-content: start; }
.ft .reach { grid-column: 10 / span 3; display: grid; gap: 10px; align-content: start; }
.ft a { color: #fff; text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft h2 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #a49d95; margin-bottom: 8px; }
.legal { margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid #3a3734; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #a49d95; }
@media (max-width: 860px) { .ft .lead, .ft nav, .ft .reach { grid-column: 1 / -1; } }

.cta-bar { display: none; }
@media (max-width: 960px) {
  .cta-bar { position: fixed; z-index: 48; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: var(--line);
    padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .4s var(--ease); }
  .cta-bar.is-on { transform: none; }
  .cta-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: var(--paper); color: var(--ink); }
  .cta-bar a:first-child { background: var(--ink); color: #fff; }
  .cta-bar svg { width: 18px; height: 18px; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14,13,12,.97); color: #fff; }
.lb::backdrop { background: rgba(14,13,12,.97); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb figure { display: grid; place-items: center; padding: 56px clamp(12px, 6vw, 96px) 12px; min-height: 0; }
.lb img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lb .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(16px, 4vw, 40px) 22px; font-size: 14px; color: #cfc9c1; }
.lb .bar p { flex: 1; text-align: center; max-width: 70ch; margin-inline: auto; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; display: grid; place-items: center; }
.lb button svg { width: 26px; height: 26px; }
.lb .lb-close { position: absolute; top: 8px; right: 8px; }
.lb .lb-prev, .lb .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb .lb-prev { left: 4px; } .lb .lb-next { right: 4px; }
.lb .count { font-variant-numeric: tabular-nums; min-width: 4.5em; }
@media (max-width: 700px) { .lb .lb-prev, .lb .lb-next { display: none; } .lb figure { padding: 52px 0 8px; } }

/* ---------- links: unlisted link-in-bio page (/links/) ---------- */
.lk { padding-block: clamp(40px, 7vw, 96px) clamp(72px, 9vw, 128px); }
.lk-wrap { width: 100%; max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }
.lk-id { text-align: center; }
.lk-face { width: 112px; aspect-ratio: 4 / 5; margin: 0 auto 24px; }
.lk-name { font-size: clamp(38px, 7vw, 56px); }
.lk-id .line { margin: 14px auto 0; max-width: 34ch; }
.lk-cta { display: grid; gap: 12px; margin-top: 36px; }
.lk-cta .btn { width: 100%; }
.lk-cta .direct { margin-top: 8px; text-align: center; font-size: 15px; color: var(--ink-2); }
.lk-cta .direct a { color: var(--ink); }
.lk-group { margin-top: clamp(52px, 8vw, 72px); }
.lk-h { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.lk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.lk-tile { display: block; text-decoration: none; }
.lk-tile:hover { text-decoration: none; }
.lk-tile .ph { aspect-ratio: 4 / 5; }
.lk-tile .ph img { transition: transform 1.2s var(--ease); }
.lk-tile:hover .ph img { transform: scale(1.03); }
.lk-tile span { display: block; margin-top: 10px; font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.lk-tile:hover span { text-decoration: underline; text-decoration-thickness: 1px; }
.lk-list a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.lk-list li:last-child a { border-bottom: 1px solid var(--line); }
.lk-list .t { flex: 1; min-width: 0; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.lk-list .n { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.lk-list .src { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lk-list svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.lk-list a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; }
.lk-list a:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
