/* gregbolton.com — v2
   Understated: one serif, black on white, hairlines. The work brings the colour. */

:root {
  --ink: #141414;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --rule: #e2e2e2;
  --fpo: #f1f1f0;
  --serif: "Source Serif 4", Georgia, serif;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif); font-optical-sizing: auto;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(20, 20, 20, 0.3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.places h2, .section-title, .about-sec h2 { font-family: var(--serif); letter-spacing: 0; }
p { margin: 0 0 1em; }
main { display: block; }

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--pad);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 1rem;
}
.masthead-name { text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.masthead nav { display: flex; gap: 28px; }
.masthead nav a { text-decoration: none; color: var(--muted); }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }

/* ---------- hero: who, then where I've been ---------- */
.hero-id { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 28px); margin-bottom: clamp(28px, 4vw, 44px); }
.portrait { flex: none; display: block; width: clamp(84px, 9vw, 124px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(1); }
.hero-id .tagline { margin: 8px 0 0; }
.about-head { margin-bottom: 28px; }
.about .about-head h1 { margin-bottom: 0; }
@media (max-width: 520px) { .hero-id { flex-direction: column; align-items: flex-start; } }
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 8vw, 112px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start;
}
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.tagline { font-style: italic; color: var(--muted); font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 10px 0 clamp(28px, 4vw, 44px); }
.hero-text p:not(.tagline) { max-width: 31em; }
.hero-text > p:first-of-type { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; }

.places h2 { font-size: 1rem; font-weight: 400; font-style: italic; color: var(--muted); margin: 0 0 10px; padding-top: 14px; }
.places ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.places li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.places a { text-decoration: none; }
.places a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.places .place { color: var(--ink); }
.places .yr { color: var(--muted); font-variant-numeric: tabular-nums oldstyle-nums; }

/* ---------- work index ---------- */
.work, .earlier { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--pad) 0; }
.section-title { font-size: 1rem; font-weight: 400; font-style: italic; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 32px; }
.cards-featured, .cards-more { list-style: none; margin: 0; padding: 0; }
.cards-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 72px) 32px; }
.cards-featured .card:first-child { grid-column: 1 / -1; }
.cards-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 48px 32px; margin-top: clamp(64px, 8vw, 96px); }
.card a { text-decoration: none; display: block; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--fpo); margin-bottom: 16px; }
.card-media .media, .card-media .fpo { max-width: none !important; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.card a:hover .card-media img, .card a:hover .card-media video { opacity: 0.9; }
.card-title { font-size: 1.5rem; }
.card-big .card-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cards-featured .card:first-child .card-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.card-meta { font-size: 0.95rem; color: var(--muted); margin: 4px 0 8px; }
.card-summary { max-width: 34em; margin: 0; }
.card a:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- earlier ---------- */
.earlier ul { list-style: none; margin: 0; padding: 0; }
.earlier ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px); }
.earlier li { display: block; }
.e-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--fpo); margin-bottom: 12px; }
.e-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.earlier p { margin: 0; }
.e-name { font-weight: 600; }
.e-where { color: var(--muted); font-style: italic; margin-bottom: 4px !important; }
.e-what { font-size: .95rem; line-height: 1.45; }

/* ---------- placeholders ---------- */
.fpo { aspect-ratio: 16 / 9; background: var(--fpo); display: grid; place-items: center; color: #a8a8a4; font-style: italic; }
.media { margin: 0; }
.px { overflow: hidden; }
.px > img, .px > video { will-change: transform; }

/* ---------- case study ---------- */
.case { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.case-head { padding: clamp(32px, 6vw, 88px) 0 clamp(32px, 4vw, 48px); }
.case-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.case-summary { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; max-width: 30em; margin: 16px 0 0; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; margin: 36px 0 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.case-meta div { min-width: 0; }
.case-meta dt { font-style: italic; color: var(--muted); font-size: 0.95rem; }
.case-meta dd { margin: 2px 0 0; font-size: 1rem; line-height: 1.45; }
.case-hero { margin-bottom: clamp(40px, 6vw, 72px); }
.case-hero .media { max-width: none !important; }
.case-hero .video-link { max-width: none; }
.case-hero .play { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.case-hero .play::after { left: 40px; top: 33px; border-width: 17px 0 17px 27px; }
.case-hero img, .case-hero video { width: 100%; }
.case-intro { max-width: 34em; font-size: 1.25rem; line-height: 1.55; }
.chapter { margin-top: clamp(64px, 9vw, 112px); }
.chapter > .media, .chapter > .fpo, .chapter > .video-link { margin-bottom: 24px; }
.chapter-text { max-width: 34em; }
.chapter-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }

.gallery { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery .media { max-width: none !important; }
.gallery img, .gallery video { width: 100%; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapter > .embed, .chapter > .film { margin-bottom: 24px; }
.film video { width: 100%; background: #000; }
.video-link { display: block; text-decoration: none; max-width: 760px; }
.video-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.45); }
.play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video-label { display: block; margin-top: 10px; font-style: italic; color: var(--muted); }
.video-link:hover .video-label { color: var(--ink); }

.next { margin: clamp(80px, 10vw, 136px) 0 0; border-top: 1px solid var(--ink); }
.next a { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; display: block; padding: 16px 0 0; text-decoration: none; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.1; }
.next span { font-family: var(--serif); font-weight: 400; letter-spacing: 0; display: block; font-size: 1rem; font-style: italic; color: var(--muted); margin-bottom: 4px; }
.next a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- about ---------- */
.about { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 6vw, 88px) var(--pad) 0; }
.about h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 28px; }
.about-intro { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; max-width: 30em; }
.about-sec { margin-top: clamp(56px, 7vw, 88px); max-width: 60em; }
.about-sec h2 { font-size: 1rem; font-weight: 400; font-style: italic; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.about-sec > p { max-width: 34em; margin-top: 16px; }
.exp { list-style: none; margin: 0; padding: 0; }
.exp li { display: grid; grid-template-columns: 8.5em minmax(0, 1.4fr) minmax(0, 2.4fr); gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.x-yrs { color: var(--muted); font-variant-numeric: tabular-nums oldstyle-nums; }
.x-role { font-weight: 600; }

/* ---------- footer ---------- */
.footer { max-width: var(--wrap); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 var(--pad) 56px; }
.footer-line { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.1; border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .hero { grid-template-columns: 1fr; }
  .cards-featured { grid-template-columns: 1fr; }
  .earlier li, .exp li { grid-template-columns: 1fr; gap: 2px; }
  .masthead nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- scroll cue: a quiet nudge toward the work ---------- */
.scroll-cue {
  position: fixed; left: 50%; bottom: clamp(18px, 4vh, 36px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-style: italic; color: var(--muted); text-decoration: none; font-size: 1rem;
  background: rgba(255,255,255,.92); padding: 8px 14px 10px; border-radius: 999px;
  transition: opacity .35s ease, visibility .35s; z-index: 5;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--ink); }
.scroll-cue.gone { opacity: 0; visibility: hidden; }
.cue-arrow { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .cue-arrow { animation: cue-bob 1.6s ease-in-out 1s 4; }
}
@keyframes cue-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------- where I’ve been: the suitcase ---------- */
.suitcase { display: block; width: 100%; height: auto; border-radius: 4px; }

/* the suitcase column sits centred against the whole intro, heading centred over the picture */
.hero .places { align-self: center; }
.hero .places h2 { text-align: center; }

/* an explicit "See more" so people know there's a whole case study behind each card */
.card-more { display: inline-block; margin-top: 10px; font-style: italic; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card a:hover .card-more, .card a:focus-visible .card-more { text-decoration-thickness: 2px; }
