/* cohnerfry.com: shared styles */
:root {
  --bg: #1d2922;
  --bg-2: #25332b;
  --bg-3: #2e3e34;
  --ink: #f3f2ec;
  --ink-2: rgba(243, 242, 236, 0.74);
  --muted: rgba(243, 242, 236, 0.5);
  --line: rgba(243, 242, 236, 0.14);
  --accent: #b6dba0;
  --accent-ink: #16211b;
  --max: 1180px;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
img { max-width: 100%; }

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

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 900; text-transform: lowercase; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
h1 { font-size: clamp(56px, 11vw, 140px); letter-spacing: -0.05em; }
h2 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 20px; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 14px;
}
.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; color: var(--ink-2); max-width: 640px; }
p + p { margin-top: 1em; }
.body { max-width: 620px; color: var(--ink-2); }
.tbd { color: var(--accent); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav .name { font-weight: 900; font-size: 18px; letter-spacing: -0.03em; text-transform: lowercase; text-decoration: none; }
.nav .name { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 38px; height: 38px; flex: none; stroke: currentColor; stroke-width: 22; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.nav .name:hover .logo { transform: scale(1.08); }
footer .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.logo-lg { width: 72px; height: 72px; stroke-width: 16; }
.nav ul { list-style: none; display: flex; gap: 24px; }
.nav ul a { color: var(--ink-2); font-size: 15px; text-transform: lowercase; text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 112px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.section-head .body { max-width: 440px; }

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1; text-transform: lowercase; text-decoration: none;
  font-family: inherit; cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn.primary:hover { background: transparent; color: var(--ink); }
.btn.secondary { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn.secondary:hover { border-color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero .range { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; display: block; }
.range .far { fill: #24322a; }
.range .cap { fill: #2d3d33; }
.range .near { fill: #18221c; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
  min-height: min(860px, calc(100svh - 60px));
}
.hero-text { align-self: center; padding: 96px 0; }
.hero-text h1 { font-size: clamp(56px, 6.6vw, 112px); white-space: nowrap; }
.hero-text .lede { margin-top: 24px; max-width: 520px; }
.now-line { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 14px; color: var(--ink-2); }
.now-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.portrait { margin: 0; align-self: end; justify-self: end; width: 100%; max-width: 640px; }
.portrait img { display: block; width: 100%; height: auto; }

/* ---------- Org strip ---------- */
.orgs { padding: 36px 0; }
.orgs .wrap { display: flex; align-items: baseline; gap: 16px 40px; flex-wrap: wrap; }
.orgs .eyebrow { margin: 0; }
.orgs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.orgs li { font-weight: 900; font-size: 19px; letter-spacing: -0.03em; text-transform: lowercase; color: var(--ink-2); }

/* ---------- About facts ---------- */
.facts-list { margin-top: 40px; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { color: var(--ink); }

/* ---------- Statement band ---------- */
.statement { background: var(--accent); color: var(--accent-ink); border-top: 0; }
.statement .eyebrow { color: rgba(22, 33, 27, 0.6); }
.statement .big {
  font-size: clamp(40px, 6.4vw, 88px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.98;
  text-transform: lowercase; max-width: 15ch;
}
.statement .body { color: rgba(22, 33, 27, 0.78); margin-top: 40px; font-size: 18px; max-width: 640px; }
.statement .tbd { color: var(--accent-ink); font-weight: 600; }

/* ---------- Built for the call ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.skill .num { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.skill h3 { font-size: 24px; }
.skill p { color: var(--ink-2); font-size: 15px; }
.skill .where { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Trail (experience timeline) ---------- */
.trail-scroll { overflow-x: auto; margin: 0 -24px; padding: 0 24px 8px; scrollbar-width: thin; }
.trail { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); position: relative; min-width: min-content; }
.trail::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.stop { position: relative; padding: 32px 24px 0 0; }
.stop::before {
  content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--muted);
}
.stop.now::before { background: var(--accent); border-color: var(--accent); }
.stop .when { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.stop h3 { font-size: 19px; margin-bottom: 6px; }
.stop .where { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.stop p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.status { font-size: 13px; color: var(--muted); margin-top: 12px; text-transform: lowercase; }
.stop.now .status { color: var(--accent); }
.stop.now .status::before { content: "● "; }

/* ---------- Feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-slot {
  aspect-ratio: 4 / 5; border-radius: 16px; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; overflow: hidden;
}
.photo-slot .figure { font-size: clamp(200px, 30vw, 380px); font-weight: 900; line-height: 0.8; letter-spacing: -0.06em; color: var(--accent); }
.photo-slot .figure-label { margin-top: 24px; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; text-transform: lowercase; color: var(--ink); max-width: 14ch; line-height: 1.1; }
.feature .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; display: block; }
.feature ul { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.feature li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.feature li strong { color: var(--ink); font-weight: 700; }

/* ---------- Research ---------- */
.research { background: var(--bg-2); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.research h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 16px; }
.research p { color: var(--ink-2); }
.research dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.research dl div:first-child { padding-top: 0; }
.research dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.research dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.research dd { color: var(--ink); }

/* ---------- Lists ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row .label { font-weight: 600; }
.row .meta { color: var(--muted); font-size: 14px; text-align: right; }
.list-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 40px 0 6px; }
.list-head:first-child { margin-top: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--bg-2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card .when, .card .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.card a { font-size: 15px; font-weight: 700; text-transform: lowercase; }
.card .price { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.big-link { display: inline-block; margin-top: 28px; font-size: clamp(28px, 5vw, 56px); font-weight: 900; letter-spacing: -0.04em; text-decoration: none; border-bottom: 2px solid var(--line); line-height: 1.15; }
.big-link:hover { border-color: var(--ink); }
.contact-grid dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-grid dl div:first-child { border-top: 1px solid var(--line); }
.contact-grid dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.contact-grid dd { color: var(--ink-2); font-size: 15px; }

/* ---------- Simple page hero (wishlist, 404) ---------- */
.page-hero { padding: 104px 0 64px; }
.page-hero .lede { margin-top: 24px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .brand { font-weight: 900; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); text-transform: lowercase; margin-bottom: 8px; }
footer .col-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li + li { margin-top: 6px; }
footer a { color: var(--ink-2); text-decoration: none; text-transform: lowercase; }
footer a:hover { color: var(--ink); }
footer .legal { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: 12px; }

/* ---------- Resume page ---------- */
.resume { padding: 88px 0 104px; }
.resume > .wrap { max-width: 920px; }
.resume header { padding-bottom: 32px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.resume header h1 { font-size: clamp(48px, 8vw, 88px); }
.resume header .lede { margin-top: 14px; font-size: 18px; }
.resume header .contact-line { color: var(--ink-2); font-size: 14px; text-align: right; line-height: 1.7; }
.resume .id { display: flex; align-items: center; gap: 28px; }
.headshot { width: 132px; aspect-ratio: 4 / 5; flex: none; margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-3); display: flex; align-items: flex-end; }
.headshot img { display: block; width: 100%; height: auto; }
.resume .block { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.resume .block > h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 5px 0 0; line-height: 1.4; }
.resume .item + .item { margin-top: 26px; }
.resume .item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.resume .item h3 { font-size: 19px; }
.resume .item .dates { color: var(--muted); font-size: 14px; white-space: nowrap; }
.resume .item .org { color: var(--ink-2); font-size: 15px; margin: 4px 0 8px; }
.resume .item ul { padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.resume .item li + li { margin-top: 4px; }
.resume .plain { list-style: none; padding: 0; color: var(--ink-2); font-size: 15px; columns: 2; column-gap: 32px; }
.resume .plain li { break-inside: avoid; margin-bottom: 6px; }
.print-btn { margin-top: 32px; }

/* Locked (redacted) names on the résumé */
.lock-wrap { position: relative; display: inline-block; vertical-align: baseline; }
.locked {
  display: inline-flex; align-items: center; gap: 7px; padding: 1px 9px 1px 7px; margin: 0;
  font: inherit; font-size: inherit; line-height: 1.35; color: var(--ink); cursor: pointer;
  background: rgba(243, 242, 236, 0.07); border: 1.5px dashed rgba(182, 219, 160, 0.6); border-radius: 7px;
  transition: background .2s, border-color .2s;
}
.locked:hover, .lock-wrap.open .locked, .locked:focus-visible { background: rgba(182, 219, 160, 0.16); border-color: #b6dba0; outline: none; }
.lock-ic { width: 0.95em; height: 1.05em; flex: none; fill: none; stroke: #b6dba0; stroke-width: 2; stroke-linecap: round; overflow: visible; }
.lock-ic circle { fill: #b6dba0; stroke: none; }
.lock-ic .shackle { transition: transform .18s ease; }
.scramble { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; letter-spacing: .04em; color: rgba(243, 242, 236, .55); white-space: pre; }
.locked.rattle .lock-ic { animation: rattle .5s ease-in-out; }
.locked.rattle .shackle { animation: tug .5s ease-in-out; }
@keyframes rattle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(13deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(5deg); } }
@keyframes tug { 0%,100% { transform: translateY(0); } 30%,55% { transform: translateY(-3px); } }
.lock-tip {
  position: absolute; z-index: 5; left: 0; top: calc(100% + 10px); width: max-content; max-width: 260px;
  padding: 8px 14px 9px; border-radius: 10px; background: #b6dba0; color: #16211b;
  font-family: "Caveat", "Bradley Hand", cursive; font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: 0; text-transform: none;
  opacity: 0; pointer-events: none; transform: translateY(-6px) rotate(-2deg); transition: opacity .18s, transform .25s cubic-bezier(.2,1.5,.4,1);
}
.lock-tip::before { content: ""; position: absolute; left: 18px; top: -6px; width: 12px; height: 12px; background: #b6dba0; transform: rotate(45deg); }
.lock-tip a { color: #16211b; text-decoration-color: rgba(22, 33, 27, .5); }
.lock-wrap:hover .lock-tip, .lock-wrap.open .lock-tip, .lock-wrap:focus-within .lock-tip { opacity: 1; pointer-events: auto; transform: translateY(0) rotate(-2deg); }
.h-note { font-size: .7em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .locked.rattle .lock-ic, .locked.rattle .shackle { animation: none; }
  .lock-tip { transition: none; }
}

/* Formal pages (résumé): normal capitalization */
.formal h1, .formal h3, .formal .nav .name, .formal .nav ul a,
.formal .btn, .formal footer .brand, .formal footer a { text-transform: none; }
.formal h1 { letter-spacing: -0.04em; }
.formal h3 { letter-spacing: -0.015em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
  .research { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 860px) {
  .split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-text { padding: 72px 0 40px; }
  .hero-text h1 { font-size: clamp(56px, 15vw, 120px); }
  .portrait { justify-self: center; max-width: 440px; width: 88%; }
  .hero .range { height: 30%; }
  .photo-slot { aspect-ratio: auto; padding: 28px; }
  .photo-slot .figure { font-size: 160px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav ul { gap: 16px; }
  .nav ul li.hide-sm { display: none; }
  section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .skills { grid-template-columns: 1fr; }
  .skill { padding: 28px 20px; }
  .research { padding: 28px 20px; }
  .facts-list div { grid-template-columns: 110px 1fr; }
  .orgs li { font-size: 17px; }
  /* trail turns vertical on phones */
  .trail-scroll { overflow: visible; margin: 0; padding: 0; }
  .trail { grid-auto-flow: row; min-width: 0; }
  .trail::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .stop { padding: 0 0 36px 32px; }
  .stop:last-child { padding-bottom: 0; }
  .resume .id { flex-direction: column; align-items: flex-start; gap: 20px; }
  .headshot { width: 104px; }
  .resume .block { grid-template-columns: 1fr; gap: 12px; }
  .resume header .contact-line { text-align: left; }
  .resume .plain { columns: 1; }
  .row { flex-direction: column; gap: 2px; }
  .row .meta { text-align: left; }
}

/* ---------- Print (resume) ---------- */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --bg-3: #f2f2f2; --ink: #111; --ink-2: #333; --muted: #666; --line: #ccc; }
  .nav, footer, .print-btn { display: none; }
  body { font-size: 10.5pt; }
  .resume { padding: 0; }
  .resume header { flex-wrap: nowrap; padding-bottom: 16px; }
  .resume header h1 { font-size: 40pt; }
  .resume .block { display: block; padding: 12px 0; }
  .resume .block > h2 { margin: 0 0 8px; break-after: avoid; }
  .resume .item { break-inside: avoid; }
  .resume .item + .item { margin-top: 14px; }
  .resume .item h3 { text-transform: none; letter-spacing: -0.01em; }
  .headshot { width: 1in; border: 1px solid #ddd; }
  .locked { border: 0; background: none; padding: 0; color: #333; }
  .lock-ic, .scramble, .lock-tip { display: none !important; }
  .locked::after { content: "[name available on request]"; font-style: italic; font-weight: 400; }
  .resume header .contact-line a { white-space: nowrap; }
  a { text-decoration: none; }
}
