@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- Theme --- */
/* Every colour, font and effect comes from these variables. A theme is
   mostly a new set of values here, plus the overrides at the end of the file. */
:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* backgrounds: deep teal-navy */
  --bg: #0c1923;
  --bg-deep: #08121a;
  --bg-alt: #0f202d;
  --footer-bg: #08121a;
  --hero-bg: linear-gradient(180deg, #0a1620 0%, #0f2334 100%);
  --hero-glow:
    radial-gradient(ellipse at 50% 0%, rgba(249, 196, 79, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(255, 119, 98, 0.07) 0%, transparent 45%);
  --header-glow:
    radial-gradient(ellipse at 50% 0%, rgba(249, 196, 79, 0.08) 0%, transparent 55%);
  --hero-pattern-opacity: 0.5;
  --nav-bg: rgba(8, 18, 26, 0.88);
  --nav-bg-solid: rgba(8, 18, 26, 0.97);

  /* surfaces */
  --surface: #122634;
  --surface-hover: #163044;
  --control-bg: #14293a;
  --code-bg: #1a3246;
  --border: rgba(242, 234, 209, 0.08);
  --border-strong: rgba(242, 234, 209, 0.16);
  --divider: rgba(242, 234, 209, 0.07);

  /* text: warm cream */
  --text-strong: #f2ead1;
  --text: #d5d0bf;
  --text-muted: #a9b4ba;
  --text-faint: #8f9ca5;
  --link: #f9c44f;
  --link-hover: #ffd97a;

  /* accent: amber */
  --accent: #f9c44f;
  --accent-hover: #ffd97a;
  --accent-soft: rgba(249, 196, 79, 0.12);
  --accent-border: rgba(249, 196, 79, 0.45);
  --on-accent: #0c1923;

  /* headings: solid colours */
  --brand-fill: linear-gradient(#f9c44f, #f9c44f);
  --hero-title-fill: linear-gradient(#f2ead1, #f2ead1);
  --hero-subtitle-fill: linear-gradient(#f9c44f, #f9c44f);
  --heading-fill: linear-gradient(#f2ead1, #f2ead1);

  /* tags, badges and icons */
  --tag-bg: rgba(249, 196, 79, 0.07);
  --tag-border: rgba(249, 196, 79, 0.25);
  --tag-text: #f5d58a;
  --status-bg: rgba(8, 18, 26, 0.88);
  --status-live: #5dd6a0;
  --status-building: #f9c44f;
  --status-shipped: #7cc4ff;
  --status-archived: #a1a8ad;
  --icon-1: #f9c44f;  --icon-1-bg: rgba(249, 196, 79, 0.12);
  --icon-2: #ff7762;  --icon-2-bg: rgba(255, 119, 98, 0.12);
  --icon-3: #5dd6a0;  --icon-3-bg: rgba(93, 214, 160, 0.12);
  --icon-4: #7cc4ff;  --icon-4-bg: rgba(124, 196, 255, 0.12);
  --icon-5: #c4a7ff;  --icon-5-bg: rgba(196, 167, 255, 0.12);
  --icon-6: #ff9f5a;  --icon-6-bg: rgba(255, 159, 90, 0.12);

  /* shape and depth */
  --radius: 8px;
  --radius-lg: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --photo-glow: 0 0 0 4px rgba(249, 196, 79, 0.35), 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-media: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }

/* --- Navigation --- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--border);
}

.nav-brand a {
  color: var(--text-strong);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--brand-fill);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-strong);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero --- */
.hero {
  background: var(--hero-bg);
  padding: 10rem 2rem 6rem;
  text-align: center;
  color: var(--text-strong);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background:
var(--hero-glow);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: var(--hero-pattern-opacity);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-strong);
  margin-bottom: 2rem;
  box-shadow:
var(--photo-glow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: var(--hero-title-fill);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  background: var(--hero-subtitle-fill);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  max-width: 660px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.hero .location {
  color: var(--text-faint);
  font-size: 0.875rem;
}

.hero .location a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.hero .location a:hover {
  color: var(--accent);
}

.hero .location .fa {
  margin-right: 0.4rem;
  color: var(--accent);
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
  position: relative;
}

.section.alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: var(--heading-fill);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-faint);
  font-size: 1rem;
}

/* --- Skills --- */
.skills-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}

/* --- Achievements --- */
.achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.achievement-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s;
}

.achievement-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.achievement-card .ac-icon {
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.achievement-card:nth-child(1) .ac-icon { color: var(--icon-1); background: var(--icon-1-bg); }
.achievement-card:nth-child(2) .ac-icon { color: var(--icon-2); background: var(--icon-2-bg); }
.achievement-card:nth-child(3) .ac-icon { color: var(--icon-3); background: var(--icon-3-bg); }
.achievement-card:nth-child(4) .ac-icon { color: var(--icon-4); background: var(--icon-4-bg); }
.achievement-card:nth-child(5) .ac-icon { color: var(--icon-5); background: var(--icon-5-bg); }
.achievement-card:nth-child(6) .ac-icon { color: var(--icon-6); background: var(--icon-6-bg); }

.achievement-card .ac-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.achievement-card .ac-text strong {
  color: var(--text-strong);
  font-weight: 600;
}

/* --- Career Timeline --- */
.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  min-width: 110px;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.timeline-content {
  flex: 1;
}

.timeline-role {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* --- Education --- */
.education {
  max-width: 700px;
  margin: 0 auto;
}

.edu-item {
  padding: 1rem 0;
}

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

.edu-degree {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.95rem;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Contact --- */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.contact-link:hover {
  border-color: var(--accent-border);
  color: var(--text-strong);
  box-shadow: 0 4px 20px var(--accent-soft);
  transform: translateY(-2px);
}

.contact-link .fa {
  font-size: 1.1rem;
  color: var(--accent);
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-muted);
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--divider);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-links a .fa {
  margin-right: 0.35rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: var(--text-faint);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  box-shadow: 0 0 16px var(--accent-soft);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer-copy a {
  color: var(--text-faint);
}

/* --- Page Header (Projects, etc.) --- */
.page-header {
  background: var(--hero-bg);
  padding: 8rem 2rem 3rem;
  text-align: center;
  color: var(--text-strong);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background:
var(--header-glow);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
  background: var(--heading-fill);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-faint);
  font-size: 1rem;
  position: relative;
}

/* --- Projects Grid --- */
.container.wide {
  max-width: 1100px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.project-filters button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--control-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.project-filters button:hover {
  border-color: var(--accent-border);
  color: var(--text-strong);
}

.project-filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--surface);
}

.project-card[hidden] {
  display: none;
}

.project-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.project-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-deep);
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center top;
}

.pc-media .status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.pc-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}

.pc-tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.pc-year {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* --- Status Badges --- */
.status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--status-bg);
  border: 1px solid currentColor;
  line-height: 1.5;
}

.status-live { color: var(--status-live); }
.status-building { color: var(--status-building); }
.status-shipped { color: var(--status-shipped); }
.status-archived { color: var(--status-archived); }

/* --- Project Page --- */
.project-header {
  padding-top: 10rem;
  padding-bottom: 3.5rem;
}

/* sticky bar under the site nav on project pages */
.project-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.project-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-nav a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

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

.pn-back {
  justify-self: start;
}

.pn-steps {
  justify-self: end;
  display: flex;
  gap: 0.5rem;
}

.pn-steps a {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 220px;
}

.pn-steps a:hover {
  border-color: var(--accent-border);
}

.pn-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text);
}

.project-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-strong);
  background: var(--control-bg);
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
}

.btn:hover {
  color: var(--text-strong);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn .fa {
  font-size: 0.75em;
  opacity: 0.7;
}

.project-cover {
  margin: 0 0 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-media);
  background: var(--bg-deep);
}

.project-cover img {
  display: block;
  width: 100%;
}

.project-cover.portrait {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.project-cover.portrait img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: start;
}

.project-body {
  color: var(--text);
  font-size: 1.05rem;
}

.project-body > * + * {
  margin-top: 1.1rem;
}

.project-body ul,
.project-body ol {
  padding-left: 1.5rem;
}

.project-body li + li {
  margin-top: 0.4rem;
}

.project-body strong {
  color: var(--text-strong);
}

.project-body code {
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.project-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.project-facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.project-facts dd {
  color: var(--text-strong);
  font-size: 0.95rem;
  margin: 0.2rem 0 1rem;
}

.project-facts dd:last-child {
  margin-bottom: 0;
}

.project-facts .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.gallery-video {
  grid-column: 1 / -1;
}

.gallery-video video,
.gallery-item img {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.gallery-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

/* --- Homepage --- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.featured-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.fh-media {
  display: block;
  background: var(--bg-deep);
}

.fh-media video,
.fh-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fh-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.fh-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fh-body h3 a {
  color: var(--text-strong);
}

.fh-tagline {
  color: var(--accent-hover);
  font-weight: 500;
}

.fh-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fh-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.section-more {
  text-align: center;
  margin-top: 2.5rem;
  font-weight: 500;
}

.section-more .fa {
  margin-left: 0.35rem;
}

#career .education {
  margin-top: 3rem;
}

/* --- Work With Me --- */
.offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.offer-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.offer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.offer-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.offer-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.work-body {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .achievements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--nav-bg-solid);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .achievements {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .featured-hero,
  .offers {
    grid-template-columns: minmax(0, 1fr);
  }

  .fh-body {
    padding: 1.5rem;
  }

  .project-nav-inner {
    padding: 0 1rem;
  }

  .pn-label {
    display: none;
  }

  .project-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .timeline-date {
    min-width: auto;
  }

  .footer-links {
    gap: 0.75rem 1.25rem;
  }

  .skills-row {
    flex-wrap: wrap;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .tagline {
    font-size: 0.9rem;
  }
}

/* --- Theme overrides --- */
/* Midnight Amber: warm dark theme, amber and coral accents, Space Grotesk headings. */
.hero h1,
.section-title,
.page-header h1,
.fh-body h3 {
  letter-spacing: -0.035em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #f9c44f, #ff7762);
}

.hero-photo {
  border: none;
}

.project-card:hover,
.featured-hero:hover {
  border-color: var(--accent-border);
}

.featured-hero {
  transition: border-color 0.3s;
}

.btn-primary {
  font-weight: 600;
}

::selection {
  background: rgba(249, 196, 79, 0.35);
  color: #f2ead1;
}
