﻿:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6b66;
  --paper: #f7f3ed;
  --panel: #ffffff;
  --line: #d9ded7;
  --green: #315f4d;
  --deep: #173f35;
  --gold: #c4933f;
  --rose: #9f4f55;
  --blue: #355c75;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(rgba(23,33,31,.48), rgba(23,33,31,.68)), url("assets/photos/work-1.jpg") center / cover, linear-gradient(135deg, #173f35, #355c75 55%, #9f4f55); }
.gate__panel { width: min(590px, 100%); padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(255,255,255,.34); border-radius: 8px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.gate h1, .hero h1, .section h2, .cta h2 { margin: 0; line-height: 1.02; letter-spacing: 0; }
.gate h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.gate__copy { max-width: 48ch; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.gate__form { display: grid; gap: 10px; margin-top: 26px; }
.gate__form label, .fit-panel label { color: var(--deep); font-size: .85rem; font-weight: 900; }
.gate__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, button, .button { min-height: 48px; border-radius: 8px; font: inherit; }
input { width: 100%; border: 1px solid var(--line); padding: 0 14px; background: #fff; color: var(--ink); }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0 18px; font-weight: 900; text-decoration: none; cursor: pointer; }
.button--primary, button { background: var(--green); color: #fff; }
.button--secondary { border: 1px solid var(--line); background: #fff; color: var(--deep); }
.gate__hint { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.gate__error { min-height: 20px; margin: 0; color: var(--rose); font-size: .9rem; font-weight: 800; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px clamp(18px, 4vw, 56px); border-bottom: 1px solid rgba(217,222,215,.84); background: rgba(247,243,237,.9); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 900; }
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; color: var(--muted); font-size: .9rem; font-weight: 800; }
.topbar nav a { text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(28px, 6vw, 72px); align-items: end; min-height: calc(100vh - 68px); padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 72px) 36px; }
.hero__content { max-width: 820px; }
.hero h1 { max-width: 12ch; font-size: clamp(3rem, 8vw, 7.2rem); }
.hero p, .section p { color: var(--muted); line-height: 1.7; }
.hero p { max-width: 64ch; font-size: clamp(1.04rem, 2vw, 1.28rem); }
.hero__actions, .cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.candidate-card, .fit-panel, .timeline article, .metrics article, .resume-card, .note-grid article { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.8); box-shadow: 0 18px 48px rgba(23,33,31,.08); }
.candidate-card { padding: 16px; }
.portrait { position: relative; display: grid; aspect-ratio: 4 / 5; place-items: center; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--deep), var(--blue)); color: #fff; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img:not([src]), .portrait img[src=""] { display: none; }
.portrait span { position: absolute; font-size: 4rem; font-weight: 900; z-index: -1; }
.candidate-card dl { display: grid; gap: 12px; margin: 18px 0 0; }
.candidate-card div { display: grid; gap: 2px; }
dt { color: var(--muted); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
dd { margin: 0; font-weight: 800; line-height: 1.45; }
.band { padding: 22px clamp(18px, 5vw, 72px); background: var(--deep); color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metrics article { padding: 22px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.metrics strong { display: block; margin-bottom: 8px; font-size: 1.15rem; }
.metrics span { color: rgba(255,255,255,.78); line-height: 1.55; }
.section { padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.section h2, .cta h2 { max-width: 13ch; font-size: clamp(2rem, 5vw, 4.45rem); }
.fit-panel { display: grid; gap: 18px; padding: clamp(20px, 4vw, 34px); }
.fit-panel input { border-color: var(--green); font-size: 1.2rem; font-weight: 900; }
.fit-grid, .resume-grid, .note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fit-grid span { display: block; margin-bottom: 8px; color: var(--deep); font-weight: 900; }
ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.75; }
.section__heading { margin-bottom: 28px; }
.resume-grid { grid-template-columns: 1.2fr .9fr .9fr; margin-bottom: 22px; }
.resume-card, .note-grid article { padding: 24px; }
.resume-card h3, .note-grid h3 { margin: 0 0 12px; font-size: 1.25rem; }
.resume-card p, .note-grid p { margin: 0; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.timeline article { padding: 24px; }
.timeline__date { color: var(--gold); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.timeline h3 { margin: 12px 0 4px; font-size: 1.35rem; }
.timeline p { margin: 0 0 18px; color: var(--green); font-weight: 900; }
.work { background: #fff; }
.gallery { display: grid; grid-template-columns: 1.25fr .85fr .85fr; gap: 16px; }
.gallery figure { position: relative; min-height: 280px; margin: 0; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--deep), var(--blue)); }
.gallery figure::before { content: "MX"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.82); font-size: 4rem; font-weight: 900; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.gallery figcaption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 18px; color: #fff; font-weight: 900; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.note-grid { grid-template-columns: repeat(3, 1fr); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 clamp(18px, 5vw, 72px) 48px; padding: clamp(28px, 5vw, 54px); border-radius: 8px; background: var(--deep); color: #fff; }
.cta p:not(.eyebrow) { max-width: 62ch; color: rgba(255,255,255,.78); line-height: 1.7; }
.cta .button--primary { background: #fff; color: var(--deep); }
@media (max-width: 1020px) { .metrics { grid-template-columns: repeat(2, 1fr); } .resume-grid, .note-grid { grid-template-columns: 1fr; } }
@media (max-width: 920px) { .hero, .split, .timeline, .gallery { grid-template-columns: 1fr; } .hero { min-height: 0; } .hero h1 { max-width: 12ch; } .gallery figure:first-child { grid-row: auto; } .cta { display: grid; } }
@media (max-width: 680px) { .topbar { align-items: flex-start; flex-direction: column; } .topbar nav { justify-content: flex-start; } .gate__row, .fit-grid, .metrics { grid-template-columns: 1fr; } .gate__row button { width: 100%; } .hero h1 { font-size: 3rem; } .cta__actions .button { width: 100%; } }
@media print { .gate, .topbar, .hero__actions, .cta__actions { display: none !important; } .hidden { display: block !important; } body { background: #fff; } .hero, .section, .cta { padding: 24px; margin: 0; } .candidate-card, .resume-card, .timeline article, .note-grid article { box-shadow: none; } }
