/* Palette pulled from the rooftop / lounge photos: plaster, sand, cherry wood,
   channel-tufted sage, charcoal, and a sliver of sky. Soft curves meet hard slats. */
:root {
  --plaster: #f1ece4;
  --plaster-2: #e8e1d5;
  --sand: #d9c9b0;
  --wood: #a85d2c;
  --wood-deep: #7a4a24;
  --wood-light: #c8773d;
  --sage: #6b7a5e;
  --sage-soft: #8a9a7b;
  --sage-pale: #dfe3d6;
  --char: #1f1d1a;
  --char-2: #2c2a26;
  --sky: #7fa7c9;
  --ink: #26231f;
  --muted: #6e675d;
  --line: rgba(31, 29, 26, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --r-soft: 28px;
  --r-hard: 6px;
  --gutter: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--plaster);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wood); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; }

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

/* Decorative textures ------------------------------------------------- */
.slats {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--wood) 0 10px, transparent 10px 18px);
  opacity: 0.85;
}
.slats.thin { height: 8px; }
.slats.sage { background: repeating-linear-gradient(90deg, var(--sage) 0 10px, transparent 10px 18px); }
.posts {
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 2px, transparent 2px 64px);
}

/* Nav ------------------------------------------------------------------ */
.site-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--plaster); border-bottom: 1px solid var(--line); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); max-width: 1100px; margin: 0 auto; }
.site-nav-brand { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 600; }
.site-nav-brand:hover { text-decoration: none; }
.site-nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.site-nav-links a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav-links a.active { color: var(--ink); border-bottom-color: var(--wood); }
.site-nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Footer --------------------------------------------------------------- */
.site-footer { margin-top: 72px; background: var(--char); color: var(--sand); }
.site-footer .slats { opacity: 1; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; padding: 28px var(--gutter) 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.site-footer a { color: var(--plaster); }

/* Buttons / chips ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--wood); color: var(--plaster); }
.btn-primary:hover { background: var(--wood-deep); }
.btn-dark { background: var(--char); color: var(--plaster); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--char); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); }

/* Cards: soft on top, hard on the bottom ------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-soft) var(--r-soft) var(--r-hard) var(--r-hard); }
.card.flip { border-radius: var(--r-hard) var(--r-hard) var(--r-soft) var(--r-soft); }
.card-dark { background: var(--char); color: var(--plaster); border-color: var(--char); }
.card-sage { background: var(--sage); color: var(--plaster); border-color: var(--sage); }

/* Home ------------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: stretch; padding: 64px 0 40px; }
.hero-eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; font-weight: 600; }
.hero-title { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; margin: 0 0 14px; }
.hero-title em { font-style: italic; color: var(--wood); }
.hero-subtitle { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.hero-pitch { font-size: 18px; max-width: 560px; margin: 0 0 26px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.banquette { position: relative; background: var(--char); color: var(--plaster); border-radius: 120px 24px 6px 6px; padding: 42px 32px 28px; overflow: hidden; }
.banquette::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 56px); pointer-events: none; }
.banquette .label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.stat-row { display: flex; flex-direction: column; gap: 18px; position: relative; }
.stat-row .stat { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stat-row .stat:first-child { border-top: none; padding-top: 0; }
.stat-row .value { font-family: var(--serif); font-size: 40px; line-height: 1; color: #fff; }
.stat-row .label { font-size: 12.5px; color: var(--sand); text-align: right; max-width: 180px; letter-spacing: 0; text-transform: none; margin: 0; }

.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-heading { font-size: 30px; margin: 0; }
.section-sub { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; max-width: 620px; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project { display: flex; flex-direction: column; overflow: hidden; }
.project .thumb { aspect-ratio: 16 / 9; background: var(--plaster-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.project .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--serif); font-size: 20px; background: repeating-linear-gradient(90deg, var(--plaster-2) 0 10px, var(--sand) 10px 12px); }
.project .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project h3 { margin: 0; font-size: 20px; }
.project p { margin: 0; font-size: 14px; color: var(--muted); }
.project .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.project .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

/* Resume --------------------------------------------------------------- */
.resume-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-top: 40px; }
.resume-rail { position: sticky; top: 84px; align-self: start; }
.rail-title { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.rail { position: relative; padding-left: 18px; border-left: 2px solid var(--sand); display: flex; flex-direction: column; gap: 14px; }
.rail a { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; position: relative; }
.rail a::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--sand); border: 2px solid var(--plaster); }
.rail a.active { color: var(--ink); font-weight: 600; }
.rail a.active::before { background: var(--wood); }
.rail a small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.rail-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }

.resume-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.resume-name { font-size: clamp(32px, 4.5vw, 46px); margin: 0; line-height: 1.05; }
.resume-title { color: var(--wood); font-size: 15px; margin: 6px 0 0; font-weight: 600; }
.resume-contact { color: var(--muted); font-size: 13px; margin-top: 6px; }
.resume-contact a { color: var(--muted); }
.resume-summary { font-size: 16px; line-height: 1.6; max-width: 720px; margin: 0 0 18px; }

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.counter { background: var(--char); color: var(--plaster); padding: 16px 18px 14px; border-radius: 20px 20px 6px 6px; }
.counter:nth-child(2) { background: var(--sage); }
.counter:nth-child(3) { background: var(--wood); }
.counter .v { font-family: var(--serif); font-size: 32px; line-height: 1; }
.counter .l { font-size: 12px; opacity: 0.85; margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.filters .hint { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.filter { font: inherit; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter.active { background: var(--sage); border-color: var(--sage); color: #fff; }
.filter.clear { background: transparent; border-color: transparent; color: var(--wood); text-decoration: underline; }
.match-count { font-size: 12.5px; color: var(--muted); }

.resume-section { margin-bottom: 36px; }
.resume-section h2 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.resume-section h2::after { content: ""; flex: 1; height: 8px; background: repeating-linear-gradient(90deg, var(--sand) 0 8px, transparent 8px 14px); opacity: 0.8; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 22px 22px 6px 6px; padding: 18px 22px; margin-bottom: 14px; transition: box-shadow .15s ease; }
.role:target { box-shadow: 0 0 0 3px var(--sage-pale); }
.role-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: baseline; cursor: pointer; }
.role-head h3 { margin: 0; font-size: 19px; }
.role-org { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.role-dates { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.role ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.role li { margin-bottom: 5px; transition: opacity .15s ease; }
.role li.dim { opacity: 0.32; }
.role li.hit { background: var(--sage-pale); border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
.role li.extra[hidden] { display: none; }
.role .more { background: none; border: none; color: var(--wood); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 0 0; text-decoration: underline; }
.edu { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.edu:last-child { border-bottom: none; }
.edu strong { display: block; }
.edu span { color: var(--muted); }
.edu .year { color: var(--muted); white-space: nowrap; }
.project-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.project-links a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px 6px 22px 22px; padding: 14px 16px; color: var(--ink); }
.project-links a:hover { text-decoration: none; border-color: var(--wood); }
.project-links strong { display: block; font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.project-links span { font-size: 13px; color: var(--muted); }

/* Contact -------------------------------------------------------------- */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.contact-card .left { padding: 32px; }
.contact-card .right { background: var(--sage); color: var(--plaster); padding: 32px; border-radius: 0 var(--r-soft) var(--r-hard) 0; }
.contact-card .right a { color: #fff; }

@media print {
  .site-nav, .site-footer, .no-print, .resume-rail, .filters, .counters { display: none !important; }
  body { background: #fff; color: #111; }
  .resume-layout { display: block; padding-top: 0; }
  .role { border: none; padding: 0 0 12px; margin: 0; page-break-inside: avoid; }
  .role li.dim { opacity: 1; }
  .role li.extra[hidden] { display: list-item !important; }
  .role .more { display: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .banquette { border-radius: 64px 16px 6px 6px; }
  .project-grid, .counters, .project-links, .contact-card { grid-template-columns: 1fr; }
  .contact-card .right { border-radius: 0 0 var(--r-hard) var(--r-hard); }
  .resume-layout { grid-template-columns: 1fr; gap: 20px; }
  .resume-rail { position: static; }
  .rail { flex-direction: row; flex-wrap: wrap; border-left: none; padding-left: 0; gap: 8px; }
  .rail a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .rail a::before { display: none; }
  .rail a small { display: none; }
  .rail-actions { flex-direction: row; }
}
