/* Editorial / documentary layout. No external fonts: system serif + sans stacks. */
:root {
  --paper: #faf9f6;
  --paper-2: #f1efe9;
  --ink: #141414;
  --muted: #5d5d58;
  --rule: #d8d5cc;
  --rule-strong: #141414;
  --accent: #b3261e;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; top: -60px; left: 0; padding: 12px; background: var(--paper); z-index: 10; }
.skip:focus { top: 0; }

/* Labels and kickers */
.kicker, .label, .status, .topline, .sections a, .factbox dt, .timeline time, .meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker, .status { color: var(--accent); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.topline {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
  color: var(--muted); font-weight: 600;
}
#language { border: 1px solid var(--rule); background: none; padding: 4px 10px; font-size: 11px; letter-spacing: 0.08em; }
#language span { color: var(--muted); }
.mast { border-top: 1px solid var(--rule); padding-top: 22px; padding-bottom: 18px; text-align: center; }
.brand {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.sections {
  display: flex; justify-content: center; gap: clamp(18px, 4vw, 44px);
  border-top: 3px double var(--rule-strong);
  padding-top: 12px; padding-bottom: 12px;
}

/* Lead */
.lead {
  display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px);
  align-items: end; padding-top: clamp(28px, 5vw, 56px);
}
.lead h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; margin: 12px 0 20px; }
.standfirst { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #2b2b28; }
.lead-links { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 0; font-weight: 600; }
.lead-links a { border-top: 1px solid var(--rule); padding-top: 10px; }
.lead-links a::after { content: " →"; }
.lead-figure { margin: 0; }
#hero img { display: block; width: 100%; height: auto; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.credit { text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.medium:not(:empty) + .credit::before { content: "· "; }

/* Sections */
.section { margin-top: clamp(56px, 8vw, 96px); }
.section-head {
  border-top: 3px solid var(--rule-strong); padding-top: 12px; margin-bottom: 32px;
  display: grid; grid-template-columns: 4fr 8fr; column-gap: clamp(24px, 4vw, 56px); align-items: start;
}
.section-head .label { grid-column: 1 / -1; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0; }
.section-intro { margin: 6px 0 0; color: var(--muted); font-family: var(--serif); font-size: 18px; max-width: 620px; }

/* Quiet notes (e.g. "Shot on film") */
.medium { font-style: italic; color: var(--muted); }
figcaption .medium:not(:first-child)::before { content: "· "; font-style: normal; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); margin: -6px 0 14px; }

/* Covers */
.cover { margin: 0; }
.cover img { display: block; width: 100%; height: auto; }
.feature-cover { display: block; }
.feature-cover:hover { text-decoration: none; }
.article .cover { margin: 0 0 32px; }
.article .cover img { width: auto; max-width: 100%; max-height: 82vh; margin-inline: auto; }

/* Feature story (first project) */
.feature {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px);
  background: var(--paper-2); border-top: 4px solid var(--accent);
  padding: clamp(22px, 4vw, 44px);
}
.feature h3 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; margin: 10px 0 16px; }
.feature h3 a:hover { text-decoration-thickness: 2px; }
.feature .standfirst { margin-bottom: 22px; }
.pull {
  margin: 0; padding-left: 18px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45;
}
.feature-side { border-top: 1px solid var(--rule); padding-top: 14px; align-self: start; }
/* With a cover: cover on the left, text and timeline stacked on the right */
.feature.has-cover { grid-template-columns: 5fr 7fr; }
.feature.has-cover .feature-cover { grid-row: span 2; align-self: start; }
.feature.has-cover .feature-side { margin-top: 4px; }
.notify { margin-top: 40px; padding: 20px; border: 1px solid var(--rule-strong); font-family: var(--sans); font-size: 15px; }
.notify .label { margin-bottom: 6px; color: var(--accent); }
.button { display: inline-block; margin-top: 4px; padding: 10px 18px; background: var(--ink); color: var(--paper); font-weight: 700; }
.button:hover { text-decoration: none; background: var(--accent); }
.feature-side .label { margin-bottom: 10px; }
.read-more { display: inline-block; margin-top: 18px; font-weight: 700; }
.read-more::after { content: " →"; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.timeline time { color: var(--muted); padding-top: 2px; }
.timeline .done { color: var(--muted); }
.timeline .current time { color: var(--accent); }
.timeline .current span { font-weight: 700; }
.timeline .current span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* Project list (other projects) */
.project-list { margin-top: 8px; }
.project-row {
  display: grid; grid-template-columns: 4fr 7fr 1fr; gap: clamp(16px, 4vw, 56px);
  padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.project-row h3 { font-size: 26px; margin: 4px 0 0; }
.project-row p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 17px; }
.project-row p.status { color: var(--accent); font-family: var(--sans); font-size: 11px; }
.project-row .arrow { justify-self: end; font-size: 20px; }
.project-row:hover { text-decoration: none; }
.project-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Gallery: two balanced columns, filled left/right so numbering reads across */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.gcol { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.photo { margin: 0; }
.photo button { display: block; border: 0; padding: 0; background: none; width: 100%; text-align: left; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { display: flex; gap: 10px; }
.photo figcaption b { color: var(--ink); font-weight: 700; }
.placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 2;
  background: var(--paper-2); color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Hire me */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.service { border-top: 1px solid var(--rule-strong); padding-top: 14px; display: flex; flex-direction: column; }
.service h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.service p { font-family: var(--serif); font-size: 17px; margin: 0 0 10px; }
.service .delivery { color: var(--muted); font-size: 15px; }
.service .from { font-family: var(--sans); font-weight: 700; font-size: 14px; }
.service .read-more { margin-top: auto; padding-top: 6px; }
.hire-bottom {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--paper-2);
}
.steps { margin: 8px 0 0; padding-left: 22px; font-family: var(--serif); font-size: 17px; }
.steps li { padding: 4px 0; }
.quote { align-self: center; }
.quote p { font-family: var(--serif); font-size: 17px; }

/* About */
.about-grid { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(24px, 4vw, 56px); }
.about-copy { font-family: var(--serif); font-size: 18px; line-height: 1.6; max-width: 680px; }
.about-copy p { color: #2b2b28; }
.about-lead { font-size: clamp(21px, 2vw, 25px); line-height: 1.45; color: var(--ink) !important; }
.factbox { border-top: 1px solid var(--rule-strong); padding-top: 6px; align-self: start; }
.factbox dl { margin: 0; }
.factbox dt { color: var(--muted); margin-top: 14px; }
.factbox dd { margin: 4px 0 0; font-family: var(--serif); font-size: 17px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-grid p { color: var(--muted); font-family: var(--serif); font-size: 17px; }
.contact-email {
  display: inline-block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 3.2vw, 40px); line-height: 1.2; word-break: break-word;
  border-bottom: 2px solid var(--accent);
}
.contact-email:hover { text-decoration: none; color: var(--accent); }
.contact-secondary { display: block; margin-top: 16px; font-weight: 700; }
.contact-pending { color: var(--muted); }

/* Project page (article) */
#project-page { padding-top: clamp(28px, 5vw, 56px); min-height: 65vh; }
.article { max-width: 720px; margin-inline: auto; }
.back { display: inline-block; font-size: 13px; font-weight: 700; margin-bottom: 28px; }
.article h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.0; margin: 12px 0 18px; }
.article .standfirst { font-size: clamp(20px, 2vw, 24px); }
.meta { color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 26px 0 32px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.body { font-family: var(--serif); font-size: 19px; line-height: 1.65; }
.body h2 { font-size: 24px; margin: 44px 0 14px; }
.body .pull { margin: 34px 0; font-size: 23px; }
.note { margin-top: 40px; padding: 18px 20px; background: var(--paper-2); border-left: 3px solid var(--accent); font-family: var(--sans); font-size: 15px; }
.follow { margin-top: 36px; padding-top: 18px; border-top: 3px solid var(--rule-strong); font-family: var(--sans); font-size: 15px; }
.follow a { font-weight: 700; border-bottom: 1px solid var(--accent); }
.article + .gallery, .article .gallery { margin-top: 40px; }

/* Footer */
footer {
  margin-top: clamp(64px, 8vw, 110px); padding-top: 16px; padding-bottom: 28px;
  border-top: 3px double var(--rule-strong);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}

/* Lightbox */
dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; margin: 0; padding: 20px var(--gutter); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: var(--paper); }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.viewer-top { font-size: 12px; letter-spacing: 0.1em; }
.viewer-top button, .viewer-bottom button { background: none; border: 1px solid var(--rule); padding: 8px 16px; }
#viewer-image { height: calc(100dvh - 150px); display: flex; align-items: center; justify-content: center; padding: 16px 0; }
#viewer-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-bottom p { margin: 0; font-size: 13px; text-align: center; color: var(--muted); }

/* Small screens */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topline > span { font-size: 10px; }
  .mast { padding-top: 16px; padding-bottom: 14px; }
  .sections { justify-content: space-between; gap: 8px; }
  .sections a { font-size: 10px; letter-spacing: 0.08em; }
  .lead { grid-template-columns: 1fr; }
  .lead-figure { order: -1; }
  .section-head, .feature, .about-grid, .contact-grid, .services, .hire-bottom { grid-template-columns: 1fr; }
  .sections { flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
  .section-intro { margin-top: 10px; }
  .feature { padding: 22px 18px; gap: 24px; }
  .feature.has-cover { grid-template-columns: 1fr; }
  .feature.has-cover .feature-cover { grid-row: auto; }
  .feature-cover img { max-height: 70vh; width: auto; max-width: 100%; }
  .project-row { grid-template-columns: 1fr auto; }
  .project-row p { grid-column: 1 / -1; }
  .project-row .arrow { grid-row: 1; grid-column: 2; }
  .gallery { display: flex; flex-direction: column; gap: 32px; }
  .gcol { display: contents; }
  .timeline li { grid-template-columns: 78px 1fr; }
  .body { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
