/* Eduardo Alvarez — original static portfolio. No build tools required. */
:root {
  --paper: #f7f8fa;
  --white: #fff;
  --ink: #171e2a;
  --muted: #556171;
  --blue: #174de1;
  --line: #d6dde7;
  --navy: #122039;
  --mono: 'Courier New', monospace;
  --radius: 5px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 12px 18px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-family: var(--mono); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; line-height: 1.6; }
.meta-label { font: .75rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; font-size: .875rem; font-weight: 600; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 13px 21px; font-size: .875rem; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius); min-height: 48px; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #103bb9; }
.button-outline { color: white; border-color: #7385a0; background: #ffffff05; }
.button-outline:hover { background: #ffffff16; }

/* Navigation and full-width image-ready introduction. */
.site-header { position: absolute; inset: 0 0 auto; z-index: 2; color: white; border-bottom: 1px solid #ffffff24; }
.header-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; min-height: 90px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.monogram { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #8094b1; font-size: 1rem; }
.header-inner nav { display: flex; gap: 25px; margin-left: auto; font-size: .875rem; }
.header-inner nav a, .header-resume { display: inline-flex; align-items: center; min-height: 44px; }
.header-resume { font-size: .875rem; font-weight: 600; gap: 15px; }
.header-inner nav a:hover, .header-resume:hover { color: #a5c2ff; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: 660px; padding: 155px 0 38px; background: #111e33; color: white; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b142a70, #12203930), linear-gradient(0deg, #0c172fbd, transparent 70%); }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { text-align: center; }
.hero-inner > .eyebrow { color: #d4e0f4; font-size: .875rem; letter-spacing: .16em; }
.hero h1 { font-size: clamp(3.4rem, 7.2vw, 6.8rem); line-height: 1.06; letter-spacing: -.055em; margin: 27px 0 21px; font-weight: 600; }
.hero h1 span { color: #9ebbff; }
.hero-statement { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: .01em; line-height: 1.4; }
.hero-description { margin: 18px auto 0; max-width: 680px; color: #c7d3e6; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 29px; }
.hero-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 72px; font: .75rem/1.7 var(--mono); color: #b4c5df; }
.hero-divider { padding: 0 10px; color: #6f8abb; }
.hero a:focus-visible, .site-header a:focus-visible { outline-color: #c0d1ff; }

/* Centered summary and two-column background. */
.section { padding-block: 80px; }
.section-heading.centered { text-align: center; margin-bottom: 42px; }
.section-heading .eyebrow { color: var(--blue); margin-bottom: 13px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); margin: 18px auto 0; max-width: 680px; }
.about .section-heading { margin-bottom: 26px; }
.about-intro { max-width: 820px; margin: auto; text-align: center; color: var(--muted); font-size: 1.125rem; line-height: 1.8; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 980px; margin: 45px auto 0; }
.about-columns > div { border-top: 1px solid var(--line); padding-top: 22px; }
.about-number { font: .75rem/1.5 var(--mono); color: var(--blue); }
.about-columns h3 { font-size: 1.45rem; margin: 10px 0 13px; }
.about-columns p { color: var(--muted); }
.about-education { display: flex; align-items: center; justify-content: space-between; gap: 25px; max-width: 980px; margin: 44px auto 0; padding: 21px 0; border-block: 1px solid var(--line); }
.about-education p { font-size: .875rem; }
.about-education p span { display: block; color: var(--muted); }
.graduation { font-size: .875rem; color: var(--blue); }
.about-skills-link { text-align: center; margin-top: 19px; }

/* Alternating experience timeline. Dates remain before each role in reading order. */
.experience-section { background: #edf1f6; }
.timeline { position: relative; padding: 9px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; width: 2px; top: 0; bottom: 0; background: #c8d3e2; transform: translateX(-50%); }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: start; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::after { content: ''; position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border: 5px solid #edf1f6; box-sizing: content-box; border-radius: 50%; background: var(--blue); }
.experience-meta { grid-column: 1; grid-row: 1; text-align: right; padding-top: 30px; }
.experience-meta p { font: .875rem/1.6 var(--mono); font-weight: 600; color: var(--blue); }
.experience-meta span { display: block; margin-top: 5px; font-size: .875rem; color: var(--muted); }
.experience-body { grid-column: 3; grid-row: 1; padding: 28px 30px; background: white; border: 1px solid #d9e0ea; border-radius: var(--radius); box-shadow: 0 4px 14px #182f4d05; }
.timeline-item:nth-child(even) .experience-meta { grid-column: 3; text-align: left; }
.timeline-item:nth-child(even) .experience-body { grid-column: 1; }
.organization-row { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.organization-mark { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; color: var(--blue); background: #edf2fd; font: .875rem/1 var(--mono); font-weight: 600; border: 1px solid #d7e2fd; border-radius: 3px; }
.organization { font-size: .875rem; color: var(--muted); line-height: 1.45; }
.experience-body h3 { font-size: 1.45rem; line-height: 1.25; }
.experience-body > p { color: var(--muted); margin-top: 15px; }
.experience-body .text-link { margin-top: 15px; }

/* Image-led project gallery: one featured system, then two supporting projects. */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.project { min-width: 0; border: 1px solid var(--line); background: white; border-radius: var(--radius); overflow: hidden; scroll-margin-top: 25px; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.project-media { background: #e9eef6; min-width: 0; display: flex; flex-direction: column; }
.project-media img { aspect-ratio: 4/3; object-fit: cover; }
.project-featured .project-media img { flex: 1; min-height: 340px; height: 100%; }
.project-media figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; padding: 12px 18px; font: .75rem/1.6 var(--mono); color: #4d607c; background: #e4ebf5; }
.project-copy { padding: 28px 30px 10px; }
.project-featured .project-copy { align-self: center; padding: 32px 35px 12px; }
.project-copy > .eyebrow { color: var(--blue); margin-bottom: 14px; }
.project-copy h3 { font-size: 1.65rem; line-height: 1.2; }
.project-featured h3 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); }
.project-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 21px 0; padding: 0; }
.tags li { font-size: .875rem; line-height: 1.5; padding: 4px 9px; color: #415571; background: #f1f4f9; border-radius: 3px; }
details { border-top: 1px solid var(--line); margin-top: 24px; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 56px; padding-block: 15px; font-size: .875rem; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { color: var(--blue); font-size: 1.375rem; line-height: 1; transition: transform .15s; }
details[open] summary > span { transform: rotate(45deg); }
.detail-content { color: var(--muted); padding-bottom: 19px; }
.detail-content ul { padding-left: 19px; margin: 0; }
.detail-content li + li { margin-top: 10px; }
.contain-image { object-fit: contain !important; }

/* Technical skills and contact. */
.skills { padding-top: 20px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.skill-group { padding-top: 21px; border-top: 2px solid #263b5a; }
.skill-number { font: .75rem/1.5 var(--mono); color: var(--blue); }
.skill-group h3 { font-size: 1.35rem; margin: 14px 0 23px; }
.skill-group dl { margin: 0; }
.skill-group dl > div + div { margin-top: 18px; }
.skill-group dt { font-weight: 600; }
.skill-group dd { margin: 3px 0 0; color: var(--muted); font-size: .875rem; }
.skill-list { padding: 0; margin: 0; list-style: none; color: var(--muted); }
.skill-list li { margin-bottom: 14px; }
.contact { padding-block: 65px; background: var(--navy); color: white; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; }
.contact .eyebrow { color: #a7c1f0; margin-bottom: 21px; }
.contact h2 { font-size: clamp(2.6rem, 4.4vw, 3.7rem); }
.contact p:not(.eyebrow) { color: #c7d3e6; margin-top: 23px; }
.contact-links { align-self: center; min-width: 0; }
.contact-links > a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 0; border-bottom: 1px solid #475b79; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-links > a:first-child { border-top: 1px solid #475b79; }
.contact-label { display: block; margin-bottom: 5px; color: #b1c7ec; font: .75rem/1.6 var(--mono); }
.contact-links small { margin-left: 10px; color: #b1c7ec; font: .75rem/1.6 var(--mono); }
.contact-links > a > span[aria-hidden] { flex-shrink: 0; }
.contact a:hover { color: #b9ceff; }
.contact a:focus-visible { outline-color: white; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 28px; font-size: .875rem; }
.site-footer strong { display: block; font-weight: 600; }
.site-footer p > span { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }

/* Small screens use a single-column timeline and gallery. */
@media (max-width: 1000px) {
  .container { width: calc(100% - 56px); }
  .header-inner { gap: 22px; }
  .header-inner nav { gap: 18px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr); }
  .experience-body { padding: 24px; }
  .project-copy, .project-featured .project-copy { padding: 25px 25px 10px; }
  .project-grid { gap: 24px; }
  .contact-inner { gap: 40px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 0; padding-block: 15px; gap: 10px; }
  .brand { font-size: .875rem; }
  .monogram { width: 34px; height: 34px; font-size: .875rem; }
  .header-resume { margin-left: auto; gap: 8px; }
  .header-inner nav { order: 3; flex-basis: 100%; margin: 0; justify-content: space-between; gap: 10px; }
  .hero { min-height: 690px; padding: 185px 0 28px; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 5rem); max-width: 600px; margin-inline: auto; }
  .hero-inner > .eyebrow { font-size: .75rem; letter-spacing: .1em; }
  .hero-description br { display: none; }
  .hero-actions { gap: 12px; }
  .hero .button { padding: 13px 15px; gap: 15px; }
  .hero-bottom { margin-top: 50px; justify-content: center; text-align: center; gap: 10px; }
  .hero-divider { padding: 0 4px; }
  .section { padding-block: 55px; }
  .section-heading.centered { margin-bottom: 30px; }
  .about-intro { font-size: 1rem; }
  .about-columns { grid-template-columns: 1fr; gap: 27px; margin-top: 30px; }
  .about-education { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; }
  .timeline::before { left: 8px; }
  .timeline-item { display: block; margin-bottom: 30px; padding-left: 33px; }
  .timeline-item::after { left: 8px; top: 0; }
  .experience-meta, .timeline-item:nth-child(even) .experience-meta { text-align: left; padding-top: 0; margin-bottom: 15px; }
  .experience-meta span { margin-top: 1px; }
  .experience-body { padding: 23px; }
  .experience-body h3 { font-size: 1.3rem; }
  .organization-row { gap: 10px; }
  .organization-mark { width: 36px; height: 36px; }
  .project-grid, .project-featured { display: block; }
  .project + .project { margin-top: 27px; }
  .project-featured .project-media img { min-height: 0; height: auto; flex: initial; }
  .project-copy h3, .project-featured h3 { font-size: 1.6rem; }
  .project-media figcaption { padding-inline: 16px; }
  .project-copy, .project-featured .project-copy { padding: 25px 22px 10px; }
  .skills { padding-top: 5px; }
  .skills-grid { grid-template-columns: 1fr; gap: 30px; }
  .skill-group h3 { margin: 12px 0 18px; }
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact p br { display: none; }
  .contact-links > a { font-size: 1rem; }
  .site-footer { align-items: flex-start; gap: 15px; }
}
@media (max-width: 380px) {
  .experience-body { padding: 19px; }
  .organization-row { align-items: flex-start; }
  .organization-mark { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .button { min-width: 205px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  body { background: white; font-size: 11pt; }
  .container { width: 100%; }
  .site-header, .hero-backdrop, .hero::after, .hero-actions, .hero-bottom, .project-media, .skip-link { display: none; }
  .hero { min-height: 0; padding: 0 0 20px; color: black; background: white; }
  .hero h1 { font-size: 38pt; }
  .hero h1 span, .hero-description, .hero-inner > .eyebrow { color: black; }
  .section { padding-block: 20px; }
  .timeline::before, .timeline-item::after { display: none; }
  .timeline-item, .project-grid, .project-featured, .contact-inner { display: block; }
  .timeline-item { break-inside: avoid; padding: 0; }
  .experience-meta { text-align: left; padding: 0 0 10px; }
  .project { break-inside: avoid; margin-bottom: 18px; }
  .contact { background: white; color: black; }
  .contact .eyebrow, .contact p:not(.eyebrow), .contact-label, .contact-links small { color: black; }
}


.husker-logo-frame {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}

.husker-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.5);
}

.organization-row > img.organization-logo {
  width: 48px;
  height: 48px;
  max-width: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  transform: none;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.hero-backdrop {
  object-fit: cover;
  object-position: center 100%;
}
#tire-analysis .project-media img {
  object-fit: contain;
  object-position: center;
  padding: 16px;
  background: white;
}
#suspension .project-media img {
  object-fit: contain;
  object-position: center;
  padding: 16px;
  transform: none;
}