:root {
  /* ---- Type scale ---- */
  --h1:       52px;   /* page / hero name                */
  --h2:       30px;   /* section headings                */
  --h3:       20px;   /* company, project and post names */
  --h4:       15px;   /* card titles, sub-headings       */
  --text:     12px;   /* every paragraph                 */
  --text-sm:  10px;   /* meta lines, labels, captions    */

  --font-head: 'Quicksand', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --c-background:      #e8e8e8;
  --c-page:            transparent;
  --c-nav-links:       #000000;
  --c-nav-links-hover: #1d4ed8;
  --c-gradient-accent: #e6d6ff;
  --c-accent:          #1d4ed8;
  --c-title:           #000000;
  --c-text:            #111111;
  --c-muted:           #666666;
  --c-border:          #d3d3d3;

  /* Accent tints, derived from --c-accent so the whole site follows one colour.
     The rgba line is the fallback for browsers without color-mix(). */
  --c-accent-faint:    rgba(174,198,206,0.10);
  --c-accent-faint:    color-mix(in srgb, var(--c-accent) 10%, transparent);
  --c-accent-soft:     rgba(174,198,206,0.15);
  --c-accent-soft:     color-mix(in srgb, var(--c-accent) 15%, transparent);
  --c-accent-strong:   rgba(174,198,206,0.20);
  --c-accent-strong:   color-mix(in srgb, var(--c-accent) 20%, transparent);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* always reserve scrollbar width so nav doesn't shift between pages */
html { overflow-y: scroll; scroll-behavior: smooth; }


/* ---- Base ---- */
body {
  font-family: var(--font-body);
  font-size: var(--text);
  background: #f2f5f7;
  background: var(--c-background);
  color: #444;
  color: var(--c-text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* Inline links inside running text. The rule above makes every link inherit
   its surrounding colour, so without this a link in a paragraph would be
   invisible in the grey. Add a selector here when you add a prose block. */
.reel-desc a,
.reel-list a,
.project-desc a,
.summary-text a,
.exp-desc a,
.exp-list li a,
.contact-intro a,
.wid-card-desc a {
  color: var(--c-accent);
}

.reel-desc a:hover,
.reel-list a:hover,
.project-desc a:hover,
.summary-text a:hover,
.exp-desc a:hover,
.exp-list li a:hover,
.contact-intro a:hover,
.wid-card-desc a:hover {
  text-decoration: underline;
}

/* ---- Nav ---- */
nav.topnav {
  background: var(--c-background);
  border-bottom: 1px solid var(--c-border);
  width: 100%;
  height: 64px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo { display: flex; align-items: center; justify-self: start; }

.nav-logo-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a7d8 0%, #9fd4e8 60%, #7ec8ea 100%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 0 22px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-nav-links);
  line-height: 64px;
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active { color: var(--c-nav-links-hover); }

.nav-social {
  display: flex;
  gap: 14px;
  justify-self: end;
}

.nav-social a { color: #000; display: block; line-height: 0; transition: color 0.2s; }
.nav-social a:hover { color: var(--c-nav-links-hover); }
.nav-social svg { width: 14px; height: 14px; }

/* ---- Page ---- */
.page-wrap {
  max-width: 760px;
  margin: 64px auto 0;
  background: var(--c-page);
  min-height: calc(100vh - 64px);
  padding: 60px 24px 80px;
}

/* ---- Hero ---- */
.hero {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 50px 0 40px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-name {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: bold;
  color: #222;
  color: var(--c-title);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -1px;
  text-transform: uppercase;
  font-weight: bold;
}

.hero-role {
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aec6ce;
  color: var(--c-accent);
  margin-bottom: 18px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid #aec6ce;
  border-color: var(--c-accent);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-fill {
  background: #aec6ce;
  background: var(--c-accent);
  color: #fff;
}
.btn-fill:hover {
  background: transparent;
  color: #aec6ce;
  color: var(--c-accent);
}

.btn-outline {
  background: transparent;
  color: #aec6ce;
  color: var(--c-accent);
}
.btn-outline:hover {
  background: #aec6ce;
  background: var(--c-accent);
  color: #fff;
}

/* ---- Section heading ---- */
.section-heading {
  font-family: var(--font-head);
  font-size: var(--h2);
  font-weight: bold;
  text-transform: uppercase;
  color: #222;
  color: var(--c-title);
  /* margin-bottom: 10px; */
  padding-bottom: 10px;
  display: inline-block;
}

/* ---- My Services ---- */
.wid-section {
  padding: 10px 0;
  /*border-bottom: 1px solid #eee;*/
}

.wid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
}

.wid-card {
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  -webkit-transition: border-color 0.3s, box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wid-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 6px 20px var(--c-accent-strong);
}

.wid-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: #aec6ce;
  color: var(--c-accent);
}

.wid-card-body {
  flex: 1;
  min-width: 0;
}

.wid-card-title {
  font-family: var(--font-head);
  font-size: var(--h4);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 8px;
}

.wid-card-desc {
  font-size: var(--text);
  line-height: 1.7;
}

/* ---- Feature section ---- */
.nav-anchor {
  display: block;
  height: 0;
  visibility: hidden;
  position: relative;
  top: -70px;
}

/* ---- Reel ---- */
.reel-section {
  padding: 20px 0 20px 0;
}

.reel-desc {
  font-size: var(--text);
  margin: 10px 0 6px;
}

.reel-list {
  margin: 0 0 18px;
  padding-left: 18px;
}

.reel-list li {
  font-size: var(--text);
  margin-bottom: 3px;
  line-height: 1.5;
}

.reel-embed {
  position: relative;
  padding-top: 10px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.reel-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ================================================================
   BLOG TOGGLE — same page as portfolio.
   Blog nav link goes to /#blog (hash only, no page load).
   CSS :target hides portfolio and reveals blog posts.
   Home link goes to / which clears the hash and restores portfolio.
   ================================================================ */

/* hidden by default; shown when URL hash is #blog */
.blog-toggle { display: none; }
#blog:target  { display: block; }
#blog:target + #portfolio { display: none; }

/* prevent page from scrolling down when /#blog hash activates */
#blog { scroll-margin-top: 9999px; }

.blog-section {
  padding-top: 48px;
}

.blog-header {
  padding-bottom: 36px;
  border-bottom: 1px solid #eee;
  margin-bottom: 36px;
}

.blog-title {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: bold;
  color: #222;
  color: var(--c-title);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.blog-subtitle {
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aec6ce;
  color: var(--c-accent);
}

/* ---- Post card ---- */
.post-card {
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 20px;
  -webkit-transition: border-color 0.3s, box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 6px 20px var(--c-accent-soft);
}

/* ---- Post title ---- */
.post-title {
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: bold;
  color: #222;
  color: var(--c-title);
  margin-bottom: 14px;
  line-height: 1.3;
}

.post-title a {
  color: inherit;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--c-accent);
}

/* ---- Text post ---- */
.post-type-text {
  font-size: var(--text);
  line-height: 1.7;
  color: #444;
  color: var(--c-text);
}

.post-type-text h1, .post-type-text h2, .post-type-text h3 {
  font-family: var(--font-head);
  font-weight: bold;
  color: #222;
  color: var(--c-title);
  margin: 16px 0 8px;
}

.post-type-text p { margin-bottom: 12px; }
.post-type-text a { color: var(--c-accent); text-decoration: underline; }
.post-type-text img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* ---- Photo post ---- */
.post-type-photo img, .post-type-photoset img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ---- Quote post ---- */
.post-type-quote {
  padding-left: 20px;
  border-left: 4px solid var(--c-accent);
}

.quote-text {
  font-size: var(--h3);
  font-style: italic;
  color: #222;
  color: var(--c-title);
  line-height: 1.5;
  margin-bottom: 10px;
}

.quote-source {
  font-size: var(--text-sm);
  color: #888;
  display: block;
}

/* ---- Link post ---- */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--c-accent-faint);
  border: 1px solid var(--c-accent);
  border-radius: 8px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.link-card:hover {
  background: var(--c-accent-strong);
}

.link-name {
  font-size: var(--h4);
  font-weight: bold;
  color: #222;
  color: var(--c-title);
}

.link-host {
  font-size: var(--text-sm);
  color: #aec6ce;
  color: var(--c-accent);
}

/* ---- Video post ---- */
.post-type-video iframe,
.post-type-video object,
.post-type-video embed {
  width: 100% !important;
  border-radius: 8px;
  overflow: hidden;
}

/* ---- Chat post ---- */
.chat-line {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: var(--text);
}

.chat-label {
  font-weight: bold;
  margin-right: 8px;
  color: #222;
  color: var(--c-title);
}

/* ---- Caption / description ---- */
.post-caption {
  margin-top: 12px;
  font-size: var(--text);
  line-height: 1.65;
  color: #666;
}

.post-caption a { color: var(--c-accent); }

/* ---- Post meta ---- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.post-date {
  font-size: var(--text-sm);
  color: #888;
  letter-spacing: 0.5px;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.post-date:hover { color: var(--c-accent); }

.post-notes {
  font-size: var(--text-sm);
  color: #bbb;
}

/* ---- Tags ---- */
.post-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
  color: #aaa;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.post-tag:hover { color: var(--c-accent); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.pagination a {
  padding: 10px 28px;
  border-radius: 30px;
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid #aec6ce;
  border-color: var(--c-accent);
  color: #aec6ce;
  color: var(--c-accent);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--c-accent);
  color: #fff;
}

/* ---- Permalink post nav ---- */
.post-permalink-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: var(--text-sm);
  color: #888;
}

.post-permalink-nav a {
  color: #aec6ce;
  color: var(--c-accent);
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.post-permalink-nav a:hover { opacity: 0.7; }

/* ---- Back to top ---- */
.back-to-top {
  display: block;
  text-align: center;
  margin-top: 100px;
  padding-bottom: 120px;
}

.back-to-top a {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #aec6ce;
  border-color: var(--c-accent);
  color: #aec6ce;
  color: var(--c-accent);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.back-to-top a:hover {
  background: var(--c-accent);
  color: #fff;
}

/* ---- Mobile ---- */
@media screen and (max-width: 650px) {

  /* The whole scale steps down together, instead of per-selector overrides. */
  :root {
    --h1:      34px;
    --h2:      24px;
    --h3:      18px;
  }

  nav.topnav { height: 54px; }
  .nav-inner { padding: 0 16px; }
  .nav-logo-dot { width: 20px; height: 20px; }
  .nav-links { gap: 0; }
  .nav-links li a { padding: 0 8px; font-size: 9px; line-height: 54px; }
  .nav-social { gap: 10px; }
  .nav-social svg { width: 14px; height: 14px; }

  .page-wrap {
    margin-top: 54px;
    min-height: calc(100vh - 54px);
    padding: 36px 16px 50px;
  }

  .hero {
    flex-direction: column;
    /* text-align: center; */
    gap: 28px;
    padding: 36px 0 36px;
  }

    .hero-text   { flex: none; }
  .hero-name   { }
  .hero-btns   { justify-content: center; }

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

  .blog-title  { }

  .post-card   { padding: 20px; }

  .pagination  { flex-direction: column; gap: 12px; }
  .pagination a { text-align: center; width: 100%; }

}


/* ================================================================
   RESUME PAGE (/resume)
   ================================================================ */

/* ================================================================
   RESUME HEADER
   ================================================================ */
.resume-header {
  padding: 48px 0 36px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.resume-header-text {
  min-width: 0;
}

/* Same gradient ring as the old home-page portrait, at a size that suits
   a page header rather than a full hero. */
.resume-photo-ring {
  order: 2;          /* photo sits on the right */
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 5px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-gradient-accent) 0%, var(--c-accent) 100%);
}

.resume-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #e0eaed;
}

.resume-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resume-name {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: bold;
  color: var(--c-title);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.resume-role {
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.resume-contact {
  margin-bottom: 20px;
  font-size: var(--text-sm);
  color: var(--c-muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.resume-contact a {
  color: var(--c-accent);
}

.resume-contact a:hover {
  text-decoration: underline;
}

/* ================================================================
   RESUME SECTIONS
   ================================================================ */
.resume-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}

.resume-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ---- Summary ---- */
.summary-text {
  font-size: var(--text);
  line-height: 1.7;
  color: var(--c-text);
  max-width: 680px;
  margin-top: 16px;
}

/* ---- Bio entry ---- */
.exp-entry {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.exp-entry:first-of-type {
  margin-top: 16px;
}

.exp-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--c-border);
}

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

.exp-body {
  flex: 1;
}

.exp-company {
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: bold;
  color: var(--c-title);
  letter-spacing: 0.3px;
  margin-bottom: 1px;
}

.exp-role {
  font-family: var(--font-head);
  font-size: var(--h4);
  font-weight: bold;
  color: var(--c-text);
  margin-bottom: 2px;
}

.exp-meta {
  font-size: var(--text-sm);
  color: var(--c-accent);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.exp-credits {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.exp-sub {
  font-family: var(--font-head);
  font-size: var(--h4);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-title);
  margin-top: 12px;
  margin-bottom: 4px;
}

.exp-badge {
  display: inline-block;
  background: #dedede;
  color: var(--c-text);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
}

ul.exp-list {
  margin: 0;
  padding-left: 16px;
}

ul.exp-list li {
  font-size: var(--text);
  color: #666;
  margin-bottom: 3px;
  line-height: 1.5;
}

.exp-desc {
  font-size: var(--text);
  color: #666;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* ---- Skills ---- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.skill-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.skill-label {
  font-size: var(--text-sm);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-title);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 3px;
}

.skill-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skill-tag {
  display: inline-block;
  background: var(--c-accent-soft);
  color: var(--c-text);
  border: 1px solid rgba(174,198,206,0.35);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ---- Education ---- */
.edu-entry {
  margin-top: 16px;
}

.edu-school {
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: bold;
  color: var(--c-title);
  margin-bottom: 2px;
}

.edu-degree {
  font-size: var(--text);
  color: var(--c-text);
  margin-bottom: 2px;
}

.edu-meta {
  font-size: var(--text-sm);
  color: var(--c-muted);
}

/* ---- Resume mobile ---- */
@media screen and (max-width: 650px) {
  .resume-header  {
    padding: 28px 0 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .resume-photo-ring { width: 140px; height: 140px; order: 0; }
  .resume-name    { }
  .resume-contact { gap: 10px; }
  .exp-entry      { gap: 12px; }
  .exp-logo       { width: 30px; height: 30px; }
  .skill-label    { min-width: 76px; }
}

/* ================================================================
   CONTACT PAGE (/contact)
   ================================================================ */

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
  padding: 48px 0 36px;
}

.page-title {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: bold;
  color: var(--c-title);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ================================================================
   CONTACT LAYOUT
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding-top: 40px;
  align-items: start;
}

.contact-intro {
  font-size: var(--text);
  line-height: 1.7;
  color: var(--c-text);
}

/* ---- Info column (right) ---- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--c-page);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e0e0e0;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent);
}

.info-text {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.info-label {
  font-size: var(--text-sm);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-muted);
  margin-bottom: 1px;
}

.info-value {
  font-size: var(--text);
  color: var(--c-title);
}

.info-value a {
  color: var(--c-accent);
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.info-value a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ---- CTA column ---- */
.contact-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.btn-mailto {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #ffffff;
  border: 2px solid var(--c-accent);
  -webkit-transition: background 0.3s, color 0.3s;
  transition: background 0.3s, color 0.3s;
}

.btn-mailto:hover {
  background: transparent;
  color: var(--c-accent);
}


/* ---- Contact mobile ---- */
@media screen and (max-width: 650px) {
  .page-header    { padding: 28px 0 24px; }
  .page-title     { }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .btn-mailto     { align-self: stretch; text-align: center; }
}

/* ================================================================
   SOFT NAVIGATION (nav.js)
   nav.js swaps the contents of .page-wrap instead of reloading the
   document. This fades the incoming content in.

   Deliberately a plain CSS animation and not the View Transitions API:
   a view transition makes the live DOM non-hit-testable while it runs,
   which silently swallows a nav click made during the crossfade.
   ================================================================ */
.page-wrap.is-entering {
  animation: page-enter 0.18s ease both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-wrap.is-entering { animation: none; }
}

/* ================================================================
   PROJECTS PAGE (/projects)
   ================================================================ */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
}

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

/* An entry with no .project-media runs the text full width. */
.project-card:not(:has(.project-media)) {
  grid-template-columns: 1fr;
}

.project-media {
  order: 2;          /* image sits on the right */
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-accent-faint);
  aspect-ratio: 4 / 3;
}

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

.project-body {
  min-width: 0;
}

.project-title {
  font-family: var(--font-head);
  font-size: var(--h3);
  font-weight: bold;
  color: var(--c-title);
  line-height: 1.3;
  margin-bottom: 6px;
}

.project-meta {
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.project-desc {
  font-size: var(--text);
  line-height: 1.7;
  color: #777;
  margin-bottom: 14px;
}

/* ---- Tags ---- */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tag {
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--c-accent);
  background: var(--c-accent-faint);
  border: 1px solid var(--c-accent-soft);
}

/* ---- Links ---- */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.project-links a {
  font-size: var(--text-sm);
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--c-accent);
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

/* Little outward arrow, so a link reads as a link without an underline. */
.project-links a::after {
  content: ' \2197';
}

.project-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ---- Projects mobile ---- */
@media screen and (max-width: 650px) {
  .project-list  { padding-top: 24px; }
  .project-card  { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .project-media { aspect-ratio: 16 / 9; order: 0; }
}

/* ================================================================
   PROJECT CARDS ON HOME + PROJECT DETAIL PAGES
   ================================================================ */
#projects { scroll-margin-top: 84px; }

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

/* Internal link: arrow points forward instead of out. */
.project-links a.internal::after { content: ' \2192'; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-accent);
}
.back-link:hover { text-decoration: underline; }

.page-header + .reel-section { padding-top: 10px; }
.reel-section .wid-card-title { margin-top: 24px; }
.reel-section .wid-card-title:first-child { margin-top: 0; }
.reel-section .reel-embed { margin-top: 24px; }

/* GitHub icon in the nav is hidden for now. Delete this rule to show it again
   (and set the real profile URL in the nav of each page first). */
.nav-social a[aria-label="GitHub"] { display: none; }
