/* ==========================================================
   SHELTON — Portfolio styles
   Change the colors and fonts here and the whole site updates.
   ========================================================== */

:root {
  --bg: #F4F2ED;          /* off-white page background */
  --ink: #161616;         /* main text */
  --muted: #6E6A63;       /* secondary text */
  --line: #D9D5CC;        /* hairlines */
  --accent: #C2502F;      /* one accent color (links, hovers) */
  --placeholder: #E4E0D7; /* empty image slots */

  --font-display: "Geist", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .text-link { border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
p a:hover, .text-link:hover { color: var(--accent); border-color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: baseline; padding-top: 22px; padding-bottom: 22px; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -0.04em; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Intro ---------- */
.intro { padding-top: clamp(56px, 12vw, 160px); padding-bottom: clamp(48px, 8vw, 104px); }
.intro h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.055em;
  margin: 0; max-width: 16ch;
}
.intro h1 em { font-style: normal; color: var(--muted); }
.intro .meta { margin-top: 28px; color: var(--muted); font-family: var(--font-mono); font-size: 14px; }

.section-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin: 0 0 32px; display: flex; justify-content: space-between; }

/* ---------- Project grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 56px) clamp(16px, 2.5vw, 32px); padding-bottom: clamp(64px, 10vw, 140px); }
.tile .frame { overflow: hidden; background: var(--placeholder); outline: 1px solid var(--line); outline-offset: -1px; aspect-ratio: 4 / 3; }
.tile img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.03); }
.tile .caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; }
.tile .caption span:first-child { font-weight: 500; letter-spacing: -0.01em; }
.tile .caption span:last-child { color: var(--muted); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.tile:hover .caption span:first-child { color: var(--accent); }

/* ---------- Project page ---------- */
.project-head { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 20px; }
.subtitle { font-size: clamp(18px, 2vw, 24px); color: var(--muted); letter-spacing: -0.02em; margin: 16px 0 0; }
.project-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.5vw, 96px); line-height: 0.98; letter-spacing: -0.055em; margin: 0; }
.hero { background: var(--placeholder); }
.hero img { max-height: 85vh; object-fit: cover; }
.details { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 7vw, 96px) 0; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 14px; align-content: start; }
.facts dt { color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.facts dd { margin: 0; }
.story p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; margin: 0 0 1.2em; max-width: 60ch; }
.story p:first-child { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.03em; }
.facts dd a { word-break: break-word; }
.blocks { display: grid; gap: clamp(40px, 6vw, 80px); }
.block .row { display: grid; gap: clamp(12px, 2vw, 24px); align-items: start; }
.block.half .row { grid-template-columns: repeat(2, 1fr); }
.block.third .row { grid-template-columns: repeat(3, 1fr); }
.block.center .row { max-width: 760px; margin: 0 auto; }
.block figure { margin: 0; }
.block img, .block video { display: block; width: 100%; height: auto; }
.block.crop img { aspect-ratio: var(--ratio); object-fit: cover; }
.block.graphic img { outline: 1px solid var(--line); outline-offset: -1px; }
.block-caption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.block.center .block-caption { text-align: center; }
.next { border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 128px); padding: 32px 0 clamp(56px, 8vw, 112px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.next .label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.next a { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.045em; font-size: clamp(28px, 4vw, 56px); line-height: 1.1; transition: color .2s; }
.next a:hover { color: var(--accent); }

/* ---------- Art gallery ---------- */
.masonry { columns: 2 280px; column-gap: clamp(12px, 2vw, 24px); padding-bottom: clamp(64px, 10vw, 140px); }
.masonry figure { margin: 0 0 clamp(12px, 2vw, 24px); break-inside: avoid; }
.masonry img { background: var(--placeholder); }
.masonry figcaption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 10px; }
.masonry figcaption span:first-child { color: var(--ink); }

/* ---------- About / Contact ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(48px, 9vw, 120px); }
.about .portrait { background: var(--placeholder); aspect-ratio: 4 / 5; }
.about .portrait img { height: 100%; object-fit: cover; }
.about h1, .contact h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.05em; margin: 0 0 32px; }
.about .bio p { font-size: clamp(17px, 1.5vw, 20px); max-width: 56ch; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.lists h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 12px; }
.lists ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; }

.contact { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(64px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact .big-email { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; font-size: clamp(26px, 3.2vw, 44px); border-bottom: 1px solid var(--ink); transition: color .2s, border-color .2s; word-break: break-word; }
.contact .big-email:hover { color: var(--accent); border-color: var(--accent); }
form { display: grid; gap: 20px; }
label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: grid; gap: 6px; }
input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
button { justify-self: start; font: inherit; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--bg); border: 0; padding: 14px 28px; cursor: pointer; transition: background .2s; }
button:hover { background: var(--accent); }
.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 24px; }

/* ---------- Scroll fade-in ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .logo { font-size: 24px; }
  .nav { gap: 16px; font-size: 13px; }
  .grid { grid-template-columns: 1fr; }
  .details, .about, .contact, .lists { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; }
}

.about .cta { margin-top: 48px; }
.contact .email-wrap { margin-top: 32px; }
@media (max-width: 760px) {
  .block.half .row, .block.third .row { grid-template-columns: 1fr; }
  .block.crop img { aspect-ratio: auto; }
}

/* ---------- Horizontal photo strip ---------- */
html, body { overflow-x: clip; }
.strip-block { --sh: clamp(300px, 66vh, 720px); }
.strip {
  display: flex; gap: clamp(10px, 1.6vw, 20px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-left: calc(50% - 50vw); width: 100vw;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab; outline: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.strip.dragging img { pointer-events: none; }
.strip figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.strip img { height: var(--sh); width: auto; max-width: none; display: block; user-select: none; -webkit-user-drag: none; background: var(--placeholder); transition: opacity .3s; }
.strip-block.graphic { --sh: clamp(260px, 54vh, 580px); }
.strip-block.graphic .strip img { outline: 1px solid var(--line); outline-offset: -1px; }
.strip:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.strip-ui { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; }
.strip-ui .block-caption { margin: 0; }
.strip-ctrl { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.strip-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.strip-count b { color: var(--ink); font-weight: 500; }
.strip-bar { position: relative; width: clamp(60px, 10vw, 140px); height: 1px; background: var(--line); }
.strip-bar i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--ink); transition: width .25s; }
.strip-btn { all: unset; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--ink); transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.strip-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.strip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.strip-btn[disabled] { opacity: .3; pointer-events: none; }

/* ---------- Lightbox ---------- */
[data-lb] { cursor: zoom-in; }
.strip [data-lb] { cursor: inherit; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(14,14,14,.99); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; color: #F4F2ED; }
.lb.open { opacity: 1; visibility: visible; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #A9A49B; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; transition: opacity .2s; }
.lb-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(244,242,237,.25); border-radius: 50%; color: #F4F2ED; font-size: 18px; transition: background .2s, color .2s; }
.lb-btn:hover { background: #F4F2ED; color: #161616; }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-nav { display: flex; gap: 10px; }
body.lb-lock { overflow: hidden; }

@media (max-width: 760px) {
  .strip-block { --sh: clamp(240px, 58vh, 440px); }
  .strip img { max-width: 86vw; object-fit: cover; }
  .strip-ui { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .strip-ctrl { width: 100%; }
  .strip-bar { flex: 1; }
  .lb-stage { padding: 0; }
}
