/* Technical Dossier — yeraldin.com */
:root {
  --paper: #F3F0E8;
  --paper-warm: #E7E1D3;
  --surface: #FBFAF5;
  --ink: #171717;
  --muted: #5F5A50;
  --rule: #25231E;
  --rule-soft: #C9C0AE;
  --accent: #B63A1F;
  --accent-2: #4F5D2F;
  --red: #B63A1F;
  --olive: #4F5D2F;
  --cobalt: #284F8F;
  --teal: #0F6B68;
  --mustard: #D9A441;
  --plum: #6C3D63;
  --focus: #284F8F;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* faint ruled-paper texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(23,23,23,0.025) 1px, transparent 1px);
  background-size: 100% 12px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

.container { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

a { color: var(--ink); }
::selection { background: var(--mustard); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red); text-decoration: none;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--cobalt), var(--cobalt));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.25s ease;
  padding-bottom: 2px;
}
.nav-links a:hover { background-size: 100% 2px; color: var(--cobalt); }
.nav-links a.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 8px 16px; border-radius: 2px;
  background-image: none;
}
.nav-links a.nav-cta:hover { background: var(--cobalt); color: var(--paper); }
.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em;
  background: none; border: 1px solid var(--cobalt);
  border-radius: 2px;
  color: var(--ink); padding: 6px 12px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--cobalt); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 96px;
  border-bottom: 1px solid var(--rule);
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal);
  padding-bottom: 24px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 48px;
}
.hero-main { min-width: 0; }
.hero-art {
  display: block;
  width: 100%;
  max-width: 460px;
  margin-top: 48px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
}
.hero-sub {
  font-size: 1.375rem;
  line-height: 1.45;
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-sub strong { font-weight: 700; color: var(--red); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }

.proof-ledger { list-style: none; }
.proof-ledger li {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 0;
  border-top: 2px solid var(--rule);
}
.proof-ledger li:nth-child(1) { border-top-color: var(--cobalt); }
.proof-ledger li:nth-child(2) { border-top-color: var(--red); }
.proof-ledger li:nth-child(3) { border-top-color: var(--teal); }
.proof-ledger li:nth-child(4) { border-top-color: var(--olive); }

/* ---------- Sections ---------- */
.section {
  padding: 96px 0 128px;
  border-top: 1px solid var(--rule);
}
.section-alt { background: var(--paper-warm); }
.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 600; line-height: 1;
  margin-bottom: 64px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 600;
  color: var(--accent);
  vertical-align: 0.5em;
  margin-right: 8px;
}
.section-slash {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  vertical-align: 0.5em;
  margin-right: 12px;
}

/* ---------- Services ---------- */
.service-list { border-bottom: 1px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  transition: background 0.2s;
  align-items: start;
}
.service-row:nth-child(1) { --row: var(--cobalt); }
.service-row:nth-child(2) { --row: var(--red); }
.service-row:nth-child(3) { --row: var(--teal); }
.service-row:hover { background: #F4E6BD; }
.service-num {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 600;
  color: var(--row, var(--ink));
}
.service-art {
  width: 140px; height: auto;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.service-body h3 {
  font-family: var(--font-body);
  font-size: 1.375rem; font-weight: 600; line-height: 1.2;
  margin-bottom: 6px;
}
.service-label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--row, var(--muted));
  margin-bottom: 14px;
}
.service-desc { font-weight: 500; margin-bottom: 16px; max-width: 640px; }
.service-caps {
  list-style: none;
  columns: 2; column-gap: 48px;
  max-width: 720px;
}
.service-caps li {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 3px 0 3px 18px;
  position: relative;
  break-inside: avoid;
}
.service-caps li::before {
  content: '■';
  position: absolute; left: 0;
  font-size: 8px; top: 9px;
  color: var(--row, var(--ink));
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about-narrative { max-width: 680px; }
.lead {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}
.about-narrative p:not(.lead) { color: var(--muted); margin-bottom: 18px; }
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 600; font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}
#about { border-top: 4px solid var(--mustard); }
.field-note:nth-child(1) { --note: var(--cobalt); }
.field-note:nth-child(2) { --note: var(--red); }
.field-note:nth-child(3) { --note: var(--teal); }
.field-note::before { border-color: var(--note, var(--ink)); }
.field-note::after { border-color: var(--note, var(--ink)); }
.field-notes { display: flex; flex-direction: column; gap: 20px; }
.field-note {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 20px 22px;
  position: relative;
  background: var(--surface);
}
/* registration corner marks */
.field-note::before, .field-note::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
}
.field-note::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.field-note::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.field-note-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--note, var(--accent));
  margin-bottom: 8px;
}
.field-note h3 {
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 6px;
}
.field-note p:not(.field-note-label) { color: var(--muted); font-size: 0.92rem; }

/* ---------- Experience ledger ---------- */
.ledger { border-bottom: 1px solid var(--rule); }
.ledger-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.ledger-row.current { border-left: 3px solid var(--accent); padding-left: 20px; }
.ledger-date {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ledger-row:nth-child(1) .ledger-date { color: var(--red); }
.ledger-row:nth-child(2) .ledger-date { color: var(--cobalt); }
.ledger-row:nth-child(3) .ledger-date { color: var(--teal); }
.ledger-row:nth-child(4) .ledger-date { color: var(--olive); }
.current-label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--ink);
  background: var(--mustard);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.ledger-body h3 {
  font-family: var(--font-body);
  font-size: 1.375rem; font-weight: 600; line-height: 1.2;
}
.ledger-org { color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.ledger-body > p:not(.ledger-org):not(.ledger-tags) { max-width: 640px; color: var(--ink); }
.ledger-tags {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--plum);
  margin-top: 12px;
  text-transform: uppercase;
}

/* ---------- Skills index ---------- */
.skills-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.skillset {
  padding: 24px 0 24px 16px;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 4px solid var(--set, var(--rule));
}
.skillset:nth-child(1) { --set: var(--cobalt); }
.skillset:nth-child(2) { --set: var(--teal); }
.skillset:nth-child(3) { --set: var(--olive); }
.skillset:nth-child(4) { --set: var(--red); }
.skillset:nth-child(5) { --set: var(--mustard); }
.skillset:nth-child(6) { --set: var(--plum); }
.skillset-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--set, var(--accent));
  margin-bottom: 6px;
}
.skillset:nth-child(5) .skillset-label { color: var(--muted); }
.skillset h3 {
  font-family: var(--font-body);
  font-size: 1.125rem; font-weight: 600;
  margin-bottom: 8px;
}
.skillset p:not(.skillset-label) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Credentials ---------- */
.cred-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.cred-seal {
  width: 130px; height: auto;
  transform: rotate(6deg);
  margin-top: -16px;
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cred-stamp {
  border: 2px solid var(--stamp, var(--accent-2));
  border-radius: 2px;
  padding: 24px 20px;
  background: var(--surface);
}
.cred-stamp:nth-child(1) { --stamp: var(--cobalt); }
.cred-stamp:nth-child(2) { --stamp: var(--olive); }
.cred-stamp:nth-child(3) { --stamp: var(--red); }
.cred-stamp:nth-child(4) { --stamp: var(--teal); }
.cred-stamp:nth-child(odd) { transform: rotate(-1deg); }
.cred-stamp:nth-child(even) { transform: rotate(1deg); }
.cred-code {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--stamp, var(--accent-2));
  margin-bottom: 10px;
}
.cred-stamp h3 {
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 4px;
}
.cred-stamp p:not(.cred-code) { color: var(--muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--rule);
}
.contact-title { color: var(--paper); }
.contact-title .section-num { color: var(--mustard); }
.contact-title .section-slash { color: var(--rule-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.contact-intro h3 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; line-height: 1.15;
  margin-bottom: 20px;
}
.contact-intro > p { color: var(--rule-soft); margin-bottom: 24px; }
.contact-links {
  font-family: var(--font-mono);
  font-size: 13px; line-height: 2;
}
.contact-links a { color: var(--paper); }
.contact-links a:hover { color: var(--mustard); }

.booking-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: 2px;
  border-top: 6px solid var(--cobalt);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
  border-color: var(--cobalt);
}
.form-field textarea { resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--red); color: var(--surface);
  border: 1px solid var(--red);
  font-size: 1rem;
}
.btn-submit:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  margin-top: 14px; min-height: 1.4em;
}
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  background: var(--paper);
}
.footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(3.25rem, 18vw, 5rem); }
  .hero-sub { font-size: 1.125rem; }
  .section-title { font-size: 2rem; }
  .skills-index { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-art {
    grid-column: 2; grid-row: 1;
    justify-self: start;
    width: 96px;
    margin-bottom: 12px;
  }
  .service-row .service-body { grid-column: 2; grid-row: 2; }
  .hero-art { max-width: 360px; margin-top: 32px; }
  .cred-seal { width: 100px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0 80px; }
  .service-caps { columns: 1; }
  .cred-grid { grid-template-columns: 1fr; }
  .booking-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
