/* Dynamyst: photographs at uneven sizes, on the brand's charcoal. Yellow only on the action and the mark. */
:root {
  --bg: #1a1718;
  --surface: #262122;
  --ink: #ecebe7;
  --muted: #b5ada2;
  --accent: #fcdc12;
  --on-accent: #1a1718;
  --sea: #163d44;
  --sea-ink: #8fd0cf;

  --m: max(20px, 5vw);
  --gap: 24px;

  --s-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --s-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --s-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --s-state: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
  --s-head: clamp(2.5rem, 1.3rem + 3.2vw, 4rem);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Literata", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--s-body); line-height: 1.55; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 16px; z-index: 50; padding: 12px 16px; background: var(--accent); color: var(--on-accent); clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(236, 235, 231, .45); transition: text-decoration-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--m); }

.mark { width: .5em; height: 1.04em; flex: none; }
.mk-y { fill: var(--accent); }
.mk-w { fill: var(--ink); }

/* ---------- Hero: small name, open sky ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.hero-pics, .hp { position: absolute; inset: 0; }
.hp { opacity: 0; transition: opacity 1600ms ease; }
.hp.is-on { opacity: 1; }
.hp img { width: 100%; height: 100%; object-fit: cover; object-position: var(--o, 50% 50%); transform: scale(1.06); }
.hp.is-on img { animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; /* neutral scrim under type on a photo: taste-skill-ignore */ background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); pointer-events: none; }
.hero-top { position: absolute; z-index: 2; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-start; font-size: var(--s-small); line-height: 1.3; }
.letterhead { display: flex; gap: 10px; text-decoration: none; font-size: var(--s-small); }
.letterhead .mark { font-size: 26px; }
.letterhead .mk-w { fill: #fff; }
.hero-nav a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .hero-nav a:hover { text-decoration-color: currentColor; } }
.hero-foot { position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero h1 { font-size: var(--s-head); line-height: 1; font-weight: 400; letter-spacing: -0.02em; }
.hero-act { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.hero-act p { font-size: var(--s-body); line-height: 1.45; max-width: 30ch; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-size: var(--s-small); font-weight: 600; transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #fff; } }
.btn:active { transform: scale(.97); }

/* ---------- Intro: paragraph right, lone photo hanging ---------- */
.intro { padding-block: 160px 120px; align-items: start; }
.statement { grid-column: 6 / 13; grid-row: 1; font-size: var(--s-state); line-height: 1.3; letter-spacing: -0.01em; }
.intro-pic { grid-column: 1 / 5; grid-row: 1 / 4; align-self: end; }
.intro-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.intro-body { grid-column: 6 / 11; grid-row: 2; margin-top: 32px; max-width: 46ch; }
.note { grid-column: 6 / 10; grid-row: 3; margin-top: 40px; color: var(--muted); max-width: 34ch; }

/* ---------- Gallery: staggered pairs of prints ---------- */
.gallery { padding-top: 160px; padding-bottom: 40px; }
.fmt { align-items: baseline; margin-bottom: 56px; row-gap: 16px; }
.fmt-h { grid-column: 1 / 6; font-size: var(--s-state); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.fmt-btns { grid-column: 6 / 13; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; font-size: var(--s-small); }
.fmt-btns[hidden] { display: none; }
.fmt-say { color: var(--muted); margin-right: 8px; }
.fmt-btns button {
  min-height: 44px; padding: 0 16px; border: 0; background: var(--surface); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.fmt-btns button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .fmt-btns button:hover:not([aria-pressed="true"]) { background: #3a3334; } }
.fmt-btns button:active { transform: scale(.96); }

.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--m); align-items: start; margin-top: 8vh; }
.pair:first-of-type { margin-top: 0; }
.shot { grid-row: 1; }
.shot .frame { aspect-ratio: var(--a); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--o, 50% 50%); transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.03); } }
.shot figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
.a-l { grid-column: 1 / 6; }
.a-r { grid-column: 6 / 13; margin-top: 12vh; }
.b-r { grid-column: 4 / 13; }
.b-l { grid-column: 1 / 4; margin-top: 16vh; }
.c-l { grid-column: 1 / 8; margin-top: 12vh; }
.c-r { grid-column: 8 / 13; }
.d-l { grid-column: 1 / 10; }
.d-r { grid-column: 10 / 13; margin-top: 16vh; }

.gallery[data-fmt="film"] .frame { aspect-ratio: 16 / 9; }
.gallery[data-fmt="feed"] .frame { aspect-ratio: 4 / 5; max-width: calc(84svh * 4 / 5); }
.gallery[data-fmt="story"] .frame { aspect-ratio: 9 / 16; max-width: calc(84svh * 9 / 16); }
.gallery.is-swap .frame img { animation: settle 520ms var(--ease-out) both; }
@keyframes settle { from { opacity: .35; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

/* ---------- Films: band of unequal panels ---------- */
.films { padding-top: 200px; }
.films-h { padding-left: calc(var(--m) + (100vw - 2 * var(--m)) * 2 / 12); font-size: var(--s-state); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 48px; }
.band { display: flex; height: 56svh; min-height: 400px; }
.band li { flex: var(--g) 1 0; min-width: 0; transition: flex-grow 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .band li:hover { flex-grow: 6; } }
.panel { position: relative; display: block; height: 100%; overflow: hidden; color: #fff; text-decoration: none; background: var(--surface); }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .panel:hover img { transform: scale(1.04); } }
.panel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; /* neutral scrim under type on a photo: taste-skill-ignore */ background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.p-name { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; font-size: var(--s-small); line-height: 1.3; }
.p-name > span:first-child { font-size: var(--s-body); }
.p-name::before { content: ""; width: 0; height: 0; border-left: 12px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-bottom: 10px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .panel:hover .p-name::before { transform: translateX(4px); } }
.p-kind { color: rgba(255, 255, 255, .82); }
.band li:first-child .p-name { top: 24px; bottom: auto; left: 24px; }
.band li:first-child .p-name > span:first-child { font-size: var(--s-lead); }
.band li:first-child .panel::before { content: ""; position: absolute; z-index: 0; inset: 0 auto auto 0; width: 70%; height: 40%; /* neutral scrim under type on a photo: taste-skill-ignore */ background: radial-gradient(at 0 0, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 70%); }
.films-note { padding: 20px var(--m) 0; font-size: var(--s-body); color: var(--muted); }
.films-note .link { color: var(--ink); }

/* ---------- Services: statement, table pushed right ---------- */
.services { padding-top: 220px; align-items: end; }
.list-h, .about-h, .hero h1 { text-wrap: balance; }
.list-h { grid-column: 1 / 13; font-size: var(--s-head); font-weight: 400; line-height: .98; letter-spacing: -0.02em; text-indent: 3vw; margin-bottom: 96px; }
.svc-pic { grid-column: 1 / 6; grid-row: 2; }
.svc-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc { grid-column: 6 / 13; grid-row: 2; border-collapse: collapse; font-size: var(--s-body); line-height: 1.35; }
.svc th, .svc td { padding: 13px 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.svc th { width: 24%; color: var(--muted); font-size: var(--s-small); padding-right: 16px; }
.svc td:last-child { text-align: right; color: var(--muted); padding-left: 16px; white-space: nowrap; }
.svc tr.grp th, .svc tr.grp td { padding-top: 40px; }
.svc tr:first-child th, .svc tr:first-child td { padding-top: 0; }

/* ---------- About: wide photo, sea tile, facts ---------- */
.about { padding-top: 220px; align-items: start; }
.about-h { grid-column: 1 / 13; font-size: var(--s-head); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.about-lead { grid-column: 1 / 7; margin-top: 24px; font-size: var(--s-lead); line-height: 1.4; }
.about-pic { grid-column: 1 / 9; position: relative; margin-top: 72px; }
.about-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about-card { position: absolute; top: 0; right: 0; width: 380px; padding: 20px; background: var(--ink); color: var(--bg); line-height: 1.45; }
.about-side { grid-column: 9 / 13; margin-top: 72px; }
.sea { position: relative; background: var(--sea); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 24px; }
.sea svg { height: calc(100% - 48px); width: auto; max-height: none; position: absolute; inset: 24px 0; margin: auto; fill: rgba(143, 208, 207, .18); stroke: var(--sea-ink); stroke-width: 1.5; overflow: visible; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 24px; }
.facts dt { color: var(--muted); }
.facts dt { font-size: var(--s-small); }
.facts a { text-decoration: none; }

/* ---------- Contact: sentence, photo, links ---------- */
.contact { padding-block: 220px 160px; align-items: start; }
.contact-line { grid-column: 1 / 6; font-size: var(--s-state); line-height: 1.2; letter-spacing: -0.01em; }
.contact-pic { grid-column: 7 / 9; }
.contact-pic img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; }
.contact-links { grid-column: 9 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: var(--s-body); }
.contact-links .q { font-weight: 500; margin-bottom: 14px; }
.contact-links .link { text-decoration-color: rgba(252, 220, 18, .7); }
.contact-links .soft { margin-top: 14px; color: var(--muted); }

/* ---------- Footer: photograph half, menu half ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--surface); }
.foot-pic { overflow: hidden; }
.foot-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.35); transform-origin: 50% 60%; }
.foot-side { display: flex; flex-direction: column; padding: 80px var(--m) 32px calc(var(--m) * .8); }
.foot-mark { display: flex; align-items: center; gap: 10px; font-size: var(--s-small); }
.foot-mark .mark { font-size: 24px; }
.foot-menu { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.foot-menu a { font-size: var(--s-head); line-height: 1.1; letter-spacing: -0.02em; text-decoration: none; width: fit-content; transition: transform 240ms var(--ease-out), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .foot-menu:hover a { color: var(--muted); }
  .foot-menu a:hover { color: var(--ink); transform: translateX(12px); }
}
.foot-blocks { display: flex; gap: 48px; margin-top: 64px; line-height: 1.6; }
.foot-blocks a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-blocks a:hover { text-decoration: underline; } }
.legal { margin-top: auto; padding-top: 48px; font-size: var(--s-small); color: var(--muted); }

/* ---------- Player ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
.player[open] { width: 100vw; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.player::backdrop { background: rgba(10, 9, 9, .96); }
.player-frame { width: min(100%, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { width: min(100%, calc((100dvh - 120px) * 16 / 9)); display: flex; align-items: center; gap: 20px; font-size: var(--s-small); }
.player-bar p { flex: 1; }
.player-bar a { text-decoration: underline; text-underline-offset: .2em; }
.player-bar button { min-height: 44px; padding: 0 18px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }

/* ---------- Entrances ---------- */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-in].is-in { opacity: 1; transform: none; }
.js .shot .frame { clip-path: inset(100% 0 0 0); transition: clip-path 750ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .shot.is-in .frame { clip-path: inset(0 0 0 0); }
.js .shot figcaption { opacity: 0; transition: opacity 600ms ease 300ms; }
.js .shot.is-in figcaption { opacity: 1; }
.js .band li { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), flex-grow 500ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .band.is-in li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-in], .js .band li { transform: none; transition: opacity 300ms ease; }
  .js .shot .frame { clip-path: none; }
  .hp.is-on img { animation: none; transform: none; }
  .band li { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .statement { grid-column: 1 / 13; }
  .intro-body { grid-column: 5 / 13; }
  .intro-pic { grid-column: 1 / 5; }
  .note { grid-column: 5 / 11; }
  .svc-pic { grid-column: 1 / 5; }
  .svc { grid-column: 5 / 13; }
  .band { flex-wrap: wrap; height: auto; min-height: 0; }
  .band li { height: 34svh; min-height: 220px; }
  .band li:nth-child(4n+1), .band li:nth-child(4n+4) { flex: 0 0 64%; }
  .band li:nth-child(4n+2), .band li:nth-child(4n+3) { flex: 0 0 36%; }
  .about-pic { grid-column: 1 / 13; }
  .about-side { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 24px; }
  .about-side .facts { margin-top: 0; }
  .sea { aspect-ratio: 3 / 2; }
  .contact-line { grid-column: 1 / 13; }
  .contact-pic { grid-column: 1 / 4; margin-top: 40px; }
  .contact-links { grid-column: 5 / 13; margin-top: 40px; }
  .fmt-h { grid-column: 1 / 13; }
  .fmt-btns { grid-column: 1 / 13; justify-content: flex-start; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --m: 20px; --gap: 12px; }
  .hero-top { top: 20px; left: 20px; right: 20px; }
  .hero-nav a:not(:last-child), .hero-nav { font-size: 0; }
  .hero-nav a:last-child { font-size: var(--s-small); }
  .hero-foot { left: 20px; right: 20px; bottom: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-act { align-items: flex-start; text-align: left; }
  .hero::after { height: 62%; }

  .intro { padding-block: 72px 40px; }
  .statement { grid-column: 1 / 13; text-indent: 0; font-size: var(--s-lead); line-height: 1.4; }
  .intro-pic { grid-column: 4 / 13; margin: 40px calc(var(--m) * -1) 0 0; align-self: start; }
  .intro-pic img { aspect-ratio: 4 / 5; }
  .intro-body { grid-column: 1 / 13; margin-top: 20px; }
  .intro-pic { grid-row: 3; }
  .note { grid-column: 1 / 13; grid-row: 4; margin-top: 16px; max-width: none; }

  .gallery { padding-top: 80px; }
  .fmt { margin-bottom: 32px; }
  .fmt-btns { gap: 6px; }
  .fmt-say { flex-basis: 100%; margin-bottom: 4px; }
  .fmt-btns button { padding: 0 12px; flex: 1 1 auto; }
  .pair { display: block; padding-inline: 0; margin-top: 0; }
  .shot { margin-top: 56px !important; }
  .pair:first-of-type .shot:first-child { margin-top: 0 !important; }
  .shot figcaption { padding-inline: var(--m); }
  .m-full { width: 100%; }
  .m-r { width: 86%; margin-left: auto; }
  .m-l { width: 76%; margin-left: 0; }
  .m-l figcaption { padding-right: 0; }
  .gallery[data-fmt="feed"] .frame, .gallery[data-fmt="story"] .frame { max-width: none; }
  .gallery[data-fmt="story"] .shot { width: 100%; }
  .gallery[data-fmt="story"] .frame { aspect-ratio: 9 / 16; max-height: 86svh; width: auto; margin-inline: auto; }

  .films { padding-top: 120px; }
  .films-h { padding-left: var(--m); margin-bottom: 24px; }
  .band { flex-wrap: wrap; height: auto; min-height: 0; }
  .band li { height: 30svh; min-height: 200px; }
  .band li:nth-child(4n+1), .band li:nth-child(4n+4) { flex: 0 0 64%; }
  .band li:nth-child(4n+2), .band li:nth-child(4n+3) { flex: 0 0 36%; }
  .p-name { left: 14px; right: 10px; bottom: 14px; }
  .band li:first-child .p-name { top: 16px; left: 16px; }

  .services { padding-top: 120px; }
  .list-h, .about-h, .hero h1 { text-wrap: balance; }
.list-h { text-indent: 0; margin-bottom: 40px; }
  .svc { grid-column: 1 / 13; grid-row: 2; }
  .svc tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .svc th { grid-column: 1 / 3; width: auto; padding: 0; }
  .svc th:has(.sr) { display: none; }
  .svc td { padding: 6px 0; }
  .svc tr.grp th { padding-top: 32px; padding-bottom: 4px; }
  .svc tr.grp td { padding-top: 6px; }
  .svc tr:first-child th { padding-top: 0; }
  .svc td:last-child { white-space: normal; text-align: right; }
  .svc-pic { grid-column: 4 / 13; grid-row: 3; margin: 48px calc(var(--m) * -1) 0 0; }

  .about { padding-top: 120px; }
  .about-lead { grid-column: 1 / 13; font-size: var(--s-body); }
  .about-pic { margin: 40px calc(var(--m) * -1) 0; }
  .about-pic img { aspect-ratio: 4 / 3; }
  .about-card { position: static; width: auto; margin: 0 var(--m); padding: 16px 0 0; background: none; color: var(--muted); }
  .about-side { grid-template-columns: 1fr; margin-top: 32px; }
  .sea { aspect-ratio: 3 / 2; }

  .contact { padding-block: 120px 96px; }
  .contact-pic { grid-column: 1 / 5; margin-top: 32px; }
  .contact-links { grid-column: 5 / 13; margin-top: 32px; font-size: var(--s-small); }
  .contact-links .q { margin-bottom: 6px; }

  .foot { grid-template-columns: 1fr; min-height: 0; }
  .foot-pic { height: 50svh; }
  .foot-side { padding: 40px var(--m) 28px; }
  .foot-menu { margin-top: 28px; }
  .foot-blocks { gap: 32px; margin-top: 40px; }
}
