/* Heather Cobler — Portfolio
   Tokens ported from design/industry.css; page styles ported from the prototype. */

:root {
  --ground: #e6eef7;
  --surface: #fff;
  --text: #1d1f20;
  --divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --neutral-700: #5d5d60;
  --neutral-800: #424244;

  --accent-200: #d6ebff;
  --accent-300: #b5d9fd;
  --accent-400: #94bce3;
  --accent-600: #597ea3;
  --accent-700: #416180;
  --accent-900: #1d2d3d;

  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-md: 0 3px 10px rgba(43, 43, 45, .16);
  --section-gap: 112px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-700); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-900); }

h1, h2 { font-family: var(--font-heading); font-weight: 600; }

.page { max-width: 1240px; margin: 0 auto; padding: 0 32px 120px; }

.label {
  font-size: 24px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neutral-700);
}

/* ── 1. Title ─────────────────────────────────────────────────────────── */
.hero { padding: clamp(32px, 4vw, 56px) 0 clamp(12px, 2vw, 24px); }

.hero-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 16px 32px; margin-bottom: 20px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.kicker { color: var(--accent-700); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent-700); }

.title {
  font-size: clamp(29px, 5.7vw, 90px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── 2. Statement ─────────────────────────────────────────────────────── */
.statement { display: grid; gap: 24px; padding-top: 40px; }
.statement p {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.2;
  margin: 0;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* ── 3. Selected work ─────────────────────────────────────────────────── */
.work { padding-top: var(--section-gap); }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-bottom: 28px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--neutral-700);
}
.hint { font-size: 12px; text-align: right; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.tile {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--divider);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover, .tile:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tile-media {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: zoom-in;
}
.tile-media:focus-visible { outline: 2px solid var(--accent-700); outline-offset: 3px; }
.tile img, .tile video { width: 100%; height: auto; display: block; }

.tile figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--neutral-700);
  border-top: 1px solid var(--divider);
}
.tile figcaption span:last-child { white-space: nowrap; }

/* ── 4. Lightbox ──────────────────────────────────────────────────────── */
@keyframes lbIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.lb {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 48px;
  background: color-mix(in srgb, var(--accent-900) 88%, transparent);
  animation: lbIn .2s ease;
  cursor: zoom-out;
}
.lb[hidden] { display: none; }

.lb-bar {
  position: absolute; top: 20px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-200);
  cursor: default;
}
.lb-bar > span { min-width: 0; }
.lb-meta { display: flex; align-items: center; gap: 14px; white-space: nowrap; }

.lb-btn {
  border: 1px solid var(--accent-400); background: transparent; color: #fff;
  cursor: pointer; padding: 0; font-family: inherit;
}
.lb-btn:hover { background: color-mix(in srgb, #fff 12%, transparent); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lb-close { width: 32px; height: 32px; font-size: 18px; line-height: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 22px;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  background: var(--surface);
  border: 1px solid var(--accent-400);
  animation: lbImg .25s ease;
  cursor: default;
}
.lb-figure img, .lb-figure video {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain;
}

.lb-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; max-width: calc(100% - 40px); flex-wrap: wrap; justify-content: center;
  cursor: default;
}
.lb-dots button {
  width: 28px; height: 3px; padding: 0; border: 0;
  background: var(--accent-600); cursor: pointer;
}
.lb-dots button[aria-current="true"] { background: #fff; }

/* ── 5. Experience ────────────────────────────────────────────────────── */
.experience { padding-top: var(--section-gap); }
.experience .label { margin-bottom: 28px; }
.exp-list { border-top: 1px solid var(--text); }
.exp-row {
  display: grid; grid-template-columns: 1fr 2fr 3fr; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
  align-items: baseline;
}
.exp-dates { font-family: var(--font-heading); font-size: 18px; color: var(--accent-700); }
.exp-employer { font-family: var(--font-heading); font-size: 24px; }
.exp-role { font-size: 15px; color: var(--neutral-800); }

/* ── 6. Contact ───────────────────────────────────────────────────────── */
.contact {
  position: relative;
  margin-top: var(--section-gap);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
  background: var(--accent-900);
  color: #fff;
  border: 1px solid var(--accent-900);
}
/* Blueprint corner marks, ported from industry.css. Tinted light so they read on the dark block. */
.corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--accent-300) 55%, transparent);
}
.corner::before, .corner::after { content: ""; position: absolute; background: currentColor; }
.corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.corner.tl { top: -6px; left: -6px; }
.corner.tr { top: -6px; right: -6px; }
.corner.bl { bottom: -6px; left: -6px; }
.corner.br { bottom: -6px; right: -6px; }

.contact-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.contact-row > div { min-width: 0; }
.contact .label { color: var(--accent-300); margin-bottom: 18px; }
.contact h2 {
  font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 0 0 16px;
  text-transform: uppercase; color: #fff;
}
.contact p { font-size: 16px; line-height: 1.6; margin: 0; max-width: 420px; color: var(--accent-200); }
.contact-links {
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-heading); font-size: 22px;
}
.contact-links a { color: #fff; }
.contact-links a:hover { color: var(--accent-300); }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--neutral-700);
}

/* ── Password gate ─────────────────────────────────────────────────────── */
html:not(.unlocked) .page { filter: blur(16px); pointer-events: none; user-select: none; }
html.unlocked .gate { display: none; }

.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--ground) 45%, transparent);
}
.gate[hidden] { display: none; }

.gate-panel {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 44px);
  background: var(--accent-900);
  color: #fff;
  border: 1px solid var(--accent-900);
  box-shadow: 0 12px 32px rgba(43, 43, 45, .22);
}
.gate-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-300); margin-bottom: 14px; }
.gate-panel h2 { font-size: clamp(32px, 5vw, 44px); line-height: 1; margin: 0 0 12px; text-transform: uppercase; color: #fff; }
.gate-panel p { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--accent-200); }

.gate-row { display: flex; gap: 10px; }
.gate-row input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  font: inherit; font-size: 16px; color: #fff;
  background: transparent;
  border: 1px solid var(--accent-400); border-radius: 0;
  outline: none;
}
.gate-row input::placeholder { color: var(--accent-600); }
.gate-row input:focus { border-color: #fff; }
.gate-row button {
  padding: 12px 18px;
  font-family: var(--font-heading); font-size: 18px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-900); background: #fff;
  border: 1px solid #fff; border-radius: 0; cursor: pointer; white-space: nowrap;
}
.gate-row button:hover { background: var(--accent-200); border-color: var(--accent-200); }
.gate-row button:focus-visible, .gate-row input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gate-error { margin-top: 12px; font-size: 13px; color: #ffb4a8; }
.gate-error[hidden] { display: none; }

@keyframes gateShake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.gate.shake .gate-panel { animation: gateShake .35s ease; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .gate-row { flex-direction: column; }
  .page { padding: 0 20px 80px; }
  .label { font-size: 18px; }
  .section-head { flex-wrap: wrap; }
  .hint { text-align: left; }
  .exp-row { grid-template-columns: 1fr; gap: 4px; }

  .lb { padding: 64px 12px 56px; }
  .lb-bar { top: 16px; left: 16px; right: 16px; }
  .lb-esc { display: none; }
  .lb-nav { width: 40px; height: 40px; font-size: 18px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-figure img, .lb-figure video { max-height: calc(100vh - 130px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
  .tile:hover, .tile:focus-within { transform: none; }
  .lb, .lb-figure { animation: none; }
  .gate.shake .gate-panel { animation: none; }
}
