img {
  pointer-events: none;
  user-select: none;
}

/* css variables... dark mode by default, light mode overrides on body.light */
:root {
  --bg:               #0a0c18;
  --text:             #e8e8f0;
  --text-muted:       rgba(232,232,240,0.6);
  --text-faint:       rgba(232,232,240,0.4);
  --text-dim:         rgba(232,232,240,0.55);
  --dot-bg:           #0a0c18;
  --card-bg:          rgba(255,255,255,0.05);
  --card-border:      rgba(255,255,255,0.1);
  --card-bg-hover:    rgba(31,47,92,0.08);
  --card-border-hover:rgba(31,47,92,0.4);
  --timeline-line:    rgba(255,255,255,0.12);
  --dot-border:       rgba(255,255,255,0.4);
  --accent:           #5b8dee;
  --accent-dim:       rgba(91,141,238,0.15);
}

/* light mode — navy accent color and inverted bg/text */
body.light {
  --bg:               #f6f6f9;
  --text:             #1a1a2e;
  --text-muted:       rgba(26,26,46,0.6);
  --text-faint:       rgba(26,26,46,0.4);
  --text-dim:         rgba(26,26,46,0.55);
  --dot-bg:           #f6f6f9;
  --card-bg:          rgba(255,255,255,0.7);
  --card-border:      rgba(0,0,0,0.09);
  --card-bg-hover:    rgba(31,47,92,0.06);
  --card-border-hover:rgba(31,47,92,0.35);
  --timeline-line:    rgba(0,0,0,0.12);
  --dot-border:       rgba(0,0,0,0.25);
  --accent:           #1f2f5c;
  --accent-dim:       rgba(31,47,92,0.12);
}

body {
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: museo-sans, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "slnt" 0, "wght" 400;
  line-height: 1.6;
  font-size: 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 40px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

/* hero fills at least the first screen, content centered in the space above the bottom dock,
   with at least 96px of breathing room above and below. On shorter screens the hero grows
   taller than the screen instead of squeezing that space.
   - margin-top: -24px cancels .content's 24px top padding, so the hero starts at the top edge
   - the dock sits 20px from the bottom and is ~57px tall, so 77px of the bottom padding reserves it
   - padding-top + min-height + padding-bottom = 100svh when the content fits
   svh only (no vh): browsers without svh just skip the min-height. */
#home {
    margin-top: -24px;
    padding-top: 96px;
    padding-bottom: calc(77px + 96px);
    min-height: calc(100svh - 96px - 77px - 96px);
    justify-content: center;
}

/* thin full-width line where the hero ends, so the empty bottom half of the hero reads as intentional */
:root {
    --divider: rgba(255,255,255,0.08);
}

body.light {
    --divider: #e2e4ea;
}

/* thin strip across the very top of the page (scrolls away with the page): accent blue in
   dark mode, navy in light mode. Tweak --top-strip-height here. */
:root {
    --top-strip-height: 8px;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-strip-height);
    background: var(--accent);
    z-index: 1001; /* above the dock / phone top bar */
    pointer-events: none;
}

/* inline text links: thin underline that draws in left to right on hover/focus and retracts on
   mouse out. Drawn with a background gradient so it follows links that wrap onto several lines.
   Applies automatically to links inside the intro, contact blurb, project and experience
   descriptions; add class="text-link" to use it anywhere else. Buttons, the dock, and icon
   links aren't matched.
   Tweak here:
     --underline-thickness   line thickness
     --underline-duration    draw/retract time */
:root {
    --underline-thickness: 1px;
    --underline-duration:  0.3s;
}

.hero-intro a,
.contact-intro a,
.project-desc a,
.timeline-desc a,
.text-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% var(--underline-thickness);
    transition: background-size var(--underline-duration) cubic-bezier(0.22, 1, 0.36, 1), /* ease-out */
                color 0.15s;
}

.hero-intro a:hover,
.hero-intro a:focus-visible,
.contact-intro a:hover,
.contact-intro a:focus-visible,
.project-desc a:hover,
.project-desc a:focus-visible,
.timeline-desc a:hover,
.timeline-desc a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    background-size: 100% var(--underline-thickness);
    color: var(--accent); /* fades blue like the other links; the underline follows (currentColor) */
}

/* reduced motion: underline appears instantly */
@media (prefers-reduced-motion: reduce) {
    .hero-intro a,
    .contact-intro a,
    .project-desc a,
    .timeline-desc a,
    .text-link {
        transition: none;
    }
}

.section-divider {
    border-top: 1px solid var(--divider);
    padding-top: 40px;
}

.section-divider > .content-wrapper {
    margin-top: 0;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* hero name: one line on desktop (the <br> only shows on phones), larger than other headings */
.hero h1 {
    font-size: clamp(4rem, 7.5vw, 7.5rem);
    line-height: 0.88;
}

.name-break {
    display: none;
}

.hero-intro {
    font-size: 1.15rem; /* ~18.4px */
    line-height: 1.7;
    color: var(--text);
    opacity: 0.8;
    max-width: none; /* full content width, same as the sections below */
    margin: 2.5rem 0 0;
}

/* second intro paragraph: ~18px gap instead of the large gap under the name */
.hero-intro + .hero-intro {
    margin-top: 1.125rem;
}

/* last intro paragraph: outlined box, same border color as the outlined hero buttons
   (--card-border switches with light/dark mode). border-box keeps its outer edge on the
   same 60ch line as the paragraphs above. */
.hero-intro--strong {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    background: var(--card-bg); /* subtle lift in dark mode; white in light mode below */
    box-sizing: border-box;
}

body.light .hero-intro--strong {
    background: #ffffff;
}

/* the text above the box has built-in line spacing (~7px) that the box edge doesn't, so the
   margins differ a little to make the visible gaps above and below the box match */
.hero-intro + .hero-intro--strong {
    margin-top: 24px;
}

.hero-intro--strong + .hero-buttons {
    margin-top: 32px;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: museo-sans, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
    background: var(--text);
    color: var(--bg);
    border: 1px solid transparent;
}

.hero-btn:hover {
    opacity: 0.8;
}

.hero-btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--card-border);
}

.hero-btn--outline:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent);
}


.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
}

h1 {
    color: var(--text);
    font-family: "instrument-serif", sans-serif;
    font-size: clamp(4.5rem,6vw, 14rem);
    font-weight: 400;
    font-variation-settings: "wght" 400;
    line-height: 0.8;
    margin: 0;
    letter-spacing: -0.02em;
}

h2 {
    color: var(--text);
    font-family: "museo-sans", sans-serif;
    font-weight: 800;
    font-variation-settings: "wght" 400;
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 10px;
    line-height: 3;
}

h3 {
    color: var(--text);
    font-family: "instrument-serif", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 400;
    font-size: 3rem;
    opacity: 0.8;
    align-self: flex-start;
    text-align: left;
    width: 100%;
    margin: 0;
    margin-bottom: 0;
}

/* elements start hidden and shift down; .reveal-visible applies when they scroll into view */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* navbar */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.3s ease;
}

.topnav-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topnav-brand {
    font-family: "rl-limo", sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: 0.00em;
    line-height: 1;
    color: var(--text);
    text-decoration: none;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topnav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-family: museo-sans, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.15s, color 0.15s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-link--resume {
    opacity: 1;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.nav-link--resume:hover {
    background: var(--accent);
    color: var(--bg);
}

/* theme toggle button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    flex-shrink: 0;
}

.theme-toggle:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent);
}

/* show sun icon in dark mode (to switch to light), moon in light mode (to switch to dark) */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }

body.light .theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun  { display: none; }

/* bottom dock (index.html). Dark mode: a slightly raised dark pill. Light mode: a white pill.
   On phones it becomes a plain bar at the top (see the max-width: 768px block) */
:root {
    --dock-bg:     #1c1f30;
    --dock-text:   #e8e8f0;
    --dock-border: rgba(255,255,255,0.08);
    --dock-active: rgba(255,255,255,0.09);
    --dock-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

body.light {
    --dock-bg:     #ffffff;
    --dock-text:   #1a1a2e;
    --dock-border: rgba(0,0,0,0.08);
    --dock-active: rgba(26,26,46,0.06);
    --dock-shadow: 0 6px 20px rgba(26,26,46,0.08);
}

.dock {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 14px;
    background: var(--dock-bg);
    border: 1px solid var(--dock-border);
    box-shadow: var(--dock-shadow);
    white-space: nowrap;
}

/* highlight box behind the active link; script.js sets its size and position,
   and the transition makes it slide between links */
.dock-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 9px;
    background: var(--dock-active);
    pointer-events: none;
}

.dock-indicator--ready {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .dock-indicator--ready { transition: none; }
}

.dock-link {
    position: relative;
    font-family: museo-sans, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dock-text);
    opacity: 0.7;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 9px;
    transition: opacity 0.15s, background 0.15s;
}

.dock-link:hover {
    opacity: 1;
}

.dock-link.is-active {
    opacity: 1;
}

/* Resume: opens the PDF, so it gets a small arrow like the other outside links */
.dock-link--external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.dock-divider {
    width: 1px;
    height: 22px;
    margin: 0 6px;
    background: var(--dock-text);
    opacity: 0.2;
}

.dock-theme {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 9px;
    color: var(--dock-text);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dock-theme:hover {
    opacity: 1;
}

/* scroll hint: thin chevron centered above the dock. Hidden until script.js adds
   .is-visible (fade in ~1s after load), hidden again once you scroll.
   Desktop: dock sits 20px from the bottom and is ~57px tall, so its top edge is ~77px up.
   The chevron's bottom edge goes 24px above that (101px); the 44px-tall link has 15px
   under the 14px chevron, so the link's bottom is 101 - 15 = 86px. */
:root {
    --hint-color: #6e7385;
}

body.light {
    --hint-color: #8a8e9a;
}

.scroll-hint {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 999;
    width: 56px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hint-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-hint.is-visible {
    opacity: 1;
    pointer-events: auto;
    transition-duration: 0.6s;
}

/* one-time nudge after it first fades in */
@keyframes hint-nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

.scroll-hint.is-nudging svg {
    animation: hint-nudge 1s ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint { transition: none; }
    .scroll-hint svg { animation: none !important; }
}

/* sun in dark mode (switch to light), moon in light mode (switch to dark) */
.dock-theme .icon-moon { display: none; }
.dock-theme .icon-sun  { display: block; }
body.light .dock-theme .icon-moon { display: block; }
body.light .dock-theme .icon-sun  { display: none; }

.content {
    padding-top: 24px;
    padding-bottom: 80px;
}

h4 {
    color: var(--text);
    font-family: museo-sans, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* skills */
.skills-subsection {
    margin-bottom: 2.5rem;
}

.skills-subsection-label {
    display: block;
    font-family: museo-sans, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1.25rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 0.5px solid var(--text-faint);
    background: transparent;
}

.skill-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.skill-icon-wrap--lucide {
    color: var(--text);
}

.skill-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.skill-label {
    font-family: museo-sans, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1;
}

/* projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
}

.project-coming-soon {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.project-coming-soon-category {
    font-family: museo-sans, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-coming-soon-title {
    font-family: museo-sans, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.project-coming-soon-desc {
    font-family: museo-sans, sans-serif;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover .project-img-wrap {
    opacity: 0.85;
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.2s;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* project cards without a screenshot: centered icon on the colored block */
.project-img-wrap--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
}

.project-info {
    padding: 1.1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-category {
    font-family: museo-sans, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.project-title {
    font-family: museo-sans, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    transition: color 0.2s;
}

.project-desc {
    font-family: museo-sans, sans-serif;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.project-tag {
    font-family: museo-sans, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.project-tag--solid {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-family: museo-sans, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.project-link:hover {
    color: var(--accent);
}

/* links below the projects grid */
.projects-footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.projects-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: museo-sans, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.projects-footer-link:hover {
    color: var(--accent);
}

/* experience timeline */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 48px;
    align-items: start;
    position: relative;
}

/* vertical line connecting timeline entries. positioned at the horizontal center of the logo column */
.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 38px;           
    top: 0; 
    bottom: calc(-2.5rem);
    width: 1px;
    background: var(--timeline-line);
    z-index: 0;
}

.timeline-logo-wrap {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 10px; /* the only inset; the logo fills the rest of the box */
    box-sizing: border-box;
}

body.light .timeline-logo-wrap {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}

/* each company logo has a light and dark variant, which are in assets */
.logo-dark { display: none; }
body.light .logo-dark { display: none; }
body.light .logo-light { display: block; }
body:not(.light) .logo-dark { display: block; }
body:not(.light) .logo-light { display: none; }

.timeline-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.timeline-body {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.timeline-role {
    display: block;
    font-family: museo-sans, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.3;
}

.timeline-company {
    display: block;
    font-family: museo-sans, sans-serif;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 0.15rem;
}

/* company name link (was inline styles); fades to the accent blue on hover like the other links */
.timeline-company-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.timeline-company-link:hover,
.timeline-company-link:focus-visible {
    color: var(--accent);
}

.timeline-meta {
    font-family: museo-sans, sans-serif;
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.timeline-desc ul {
    padding-left: 1.1rem;
    margin: 0;
}

.timeline-desc li {
    margin-bottom: 0.3rem;
}

/* earlier role at the same employer, listed under the current one */
.timeline-subrole {
    margin-top: 1.75rem;
}

/* education: compact list (no logos or timeline line). Degree and school on the left,
   date on the right in the same small caps style as the Experience dates (.timeline-meta).
   Thin divider between rows. */
.edu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* line only between rows; the 24px padding stays on every row, including the first and last */
.edu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
}

.edu-item + .edu-item {
    border-top: 1px solid var(--divider);
}

.edu-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-degree {
    font-size: 1.25rem; /* 20px */
    line-height: 1.3;
}

.edu-school {
    font-family: museo-sans, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-muted); /* same gray as the company names in Experience */
    margin: 0;
}

/* school link: no underline, just fades to the accent blue on hover */
.edu-school a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.edu-school a:hover,
.edu-school a:focus-visible {
    color: var(--accent);
}

.edu-coursework {
    font-family: museo-sans, sans-serif;
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    color: var(--text-faint);
    margin: 4px 0 0;
}

/* small outlined button (jumps to the coursework list in Skills); same border and hover
   as the outlined hero buttons, just smaller */
.edu-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 10px;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: museo-sans, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.edu-btn:hover,
.edu-btn:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

/* Norco degrees as pills, same outline style as the skill pills */
.edu-pills {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-pills li {
    font-family: museo-sans, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text);
    padding: 0.4rem 0.85rem;
    border: 0.5px solid var(--text-faint);
    border-radius: 999px;
}

/* sits level with the degree name */
.edu-date {
    margin-top: 0;
    padding-top: 6px;
    white-space: nowrap;
}

/* phones: date stacks under the content */
@media (max-width: 640px) {
    .edu-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .edu-date {
        padding-top: 0;
    }
}

/* contact: heading + blurb on the left, list of links on the right */
#contact {
    margin-top: 96px;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-intro {
    font-family: museo-sans, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 22rem;
    margin: 1.25rem 0 0;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--card-border);
}

.contact-list li {
    border-bottom: 1px solid var(--card-border);
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    text-decoration: none;
    color: var(--text);
}

.contact-row-label {
    font-family: museo-sans, sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.contact-row-value {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: museo-sans, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    transition: color 0.15s;
}

.contact-row:hover .contact-row-value {
    color: var(--accent);
}

/* footer: copyright on the left, build note + source link on the right */
.site-footer {
    background: var(--bg);
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    /* extra bottom space so the floating dock doesn't cover the footer text */
    padding: 0 40px calc(3rem + 72px);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    font-family: museo-sans, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-row p {
    margin: 0;
}

.footer-source {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.footer-source:hover {
    color: var(--accent);
}

/* mobile menu button: just a dot, toggles the dropdown */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.mobile-menu-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text);
    display: block;
    opacity: 1;
    transition: opacity 0.15s;
}

.mobile-menu-btn:hover .mobile-menu-dot {
    opacity: 1;
}

/* mobile dropdown */
.mobile-menu {
    display: none;
    background: var(--bg);
    border-top: 1px solid var(--card-border);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 0.85rem 0;
    text-decoration: none;
    color: var(--text);
    font-family: museo-sans, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--card-border);
    opacity: 0.65;
    transition: opacity 0.15s, color 0.15s;
}

.mobile-menu-links li:last-child .mobile-nav-link {
    border-bottom: none;
}

.mobile-nav-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* Coffee list page header photo (i'm adding this page later) */
.page-header-photo {
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.page-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .topnav-inner {
    padding: 12px 1.25rem;
    position: relative;
  }
  .topnav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .topnav-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .topnav-links {
    display: none;
  }
  .nav-link--resume {
    display: none;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    order: -1;
  }
  .mobile-menu-btn {
    display: flex;
    margin-right: 1.2rem;
  }
  h2 {
    font-size: 1rem;
    line-height: 1.8;
  }
  .content-wrapper {
    padding: 0 20px;
  }
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* phones: the dock becomes a plain bar fixed to the top, in the page's own colors */
  .dock {
    --dock-bg: var(--bg);
    --dock-text: var(--text);
    --dock-border: var(--card-border);
    --dock-active: rgba(255,255,255,0.08);
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    transform: none;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid var(--dock-border);
    border-radius: 0;
    box-shadow: none;
  }
  body.light .dock {
    --dock-active: rgba(26,26,46,0.06);
  }
  .dock-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
  }
  .dock-divider {
    margin: 0 4px;
  }
  .dock-theme {
    width: 36px;
    height: 36px;
  }
  /* dock is at the top on phones, so the chevron sits 24px above the bottom edge
     (link bottom = 24 - 15px of space under the chevron) */
  .scroll-hint {
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }
  /* clear the top bar (~53px): hero starts below it, and section links don't land under it */
  /* phones: hero still fills the first screen (24px .content padding + 53px top bar
     + min-height = 100svh) so the chevron sits on the hero, not the next section.
     Content stays at the top instead of centered. */
  #home {
    margin-top: 0;
    padding-top: 53px;
    padding-bottom: 0;
    min-height: calc(100svh - 77px);
    justify-content: flex-start;
  }
  .section-divider {
    margin-top: 40px;
    padding-top: 32px;
  }
  .content-wrapper {
    scroll-margin-top: 64px;
  }
  /* no floating dock at the bottom on phones, so the footer doesn't need the extra space */
  .footer-inner {
    padding-bottom: 3rem;
  }
  .hero {
    padding-top: 1.25rem;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }
  .name-break {
    display: inline;
  }
  .hero-intro {
    font-size: 1.0625rem; /* ~17px on phones */
    line-height: 1.65;
  }
  .hero-intro + .hero-intro {
    margin-top: 0.875rem;
  }
  .hero-buttons {
    flex-wrap: wrap;
  }
}

/* "Cal State Fullerton" stays on one line on desktop; on phones it wraps normally
   (see the max-width: 640px block) so the line before it isn't cut short */
.keep-together {
  white-space: nowrap;
}

/* ---------- phones (max-width: 640px): hero layout ----------
   Desktop and tablet are untouched; everything here only applies on narrow screens. */
@media (max-width: 640px) {
  /* nav: sticky bar at the top in the page's own (opaque) background, links on the left,
     theme button at the right end with a 44x44 tap target */
  .dock {
    position: sticky;
    top: 0;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 12px;
    /* start below the top strip instead of under it; once the strip scrolls away the
       bar sticks flush to the top */
    margin-top: var(--top-strip-height);
  }
  /* links share the row evenly (instead of bunching on the left) with slightly larger text.
     Shorter than the 44px theme button so the active highlight has room above and below. */
  .dock-link {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.4rem 0.25rem;
  }
  /* Resume is left out of the nav on phones (no room for five links); the hero's
     Resume button covers it */
  .dock-link--external {
    display: none;
  }
  .dock-divider {
    display: none;
  }
  .dock-theme {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* hero: only as tall as its content (no full-screen height), and no scroll arrow.
     The sticky nav takes up its own space, so no top padding is needed to clear it. */
  #home {
    padding-top: 0;
    min-height: 0;
  }
  .scroll-hint {
    display: none !important;
  }

  /* 56px from the bottom of the buttons to the Skills border, then 36px above "Skills" */
  .section-divider {
    margin-top: 56px;
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 64px);
    line-height: 0.95;
  }

  /* text: 16px / 1.6; 16px between the hero blocks (name, paragraphs, callout, buttons).
     The callout is border-box, so its edges line up with the paragraphs and buttons. */
  .hero-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 16px;
  }
  .hero-intro + .hero-intro,
  .hero-intro + .hero-intro--strong {
    margin-top: 16px;
  }
  .keep-together {
    white-space: normal;
  }

  /* buttons: Resume full width on its own row, then GitHub / LinkedIn / Email in three
     equal columns */
  .hero-buttons,
  .hero-intro--strong + .hero-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 16px;
  }
  .hero-btn {
    justify-content: center;
    height: 46px;
    padding: 0 8px;
    box-sizing: border-box;
  }
  .hero-btn:first-child {
    grid-column: 1 / -1;
    height: 48px;
  }
}

/* very narrow phones (e.g. 360px Android): tighten the nav so the four links and the
   44px theme button still fit on one row */
@media (max-width: 380px) {
  .dock {
    padding-left: 8px;
    padding-right: 8px;
  }
  .dock-link {
    font-size: 0.85rem;
  }
}
