/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0C0C0B;
  --surface: #141413;
  --text:    #F4F1EC;
  --dim:     #B0ACA7;
  --soft:    #DDD9D3;
  --rule:    #2A2A27;
  --accent:  #C9BAA0;
  --nav-h:   60px;
  --max:     960px;
  --gutter:  2.5rem;

  --display: 'Syne', sans-serif;
  --body:    'DM Sans', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }

/* ── Nav ─────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(12,12,11,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
  display: flex;
  align-items: stretch;
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--soft);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--text); }

#nav ul {
  list-style: none;
  display: flex;
  gap: 0.3rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-tab svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-tab.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.nav-tab.active svg { opacity: 1; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,186,160,0.3);
  padding: 0.42rem 0.9rem;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta svg { width: 13px; height: 13px; flex-shrink: 0; }
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(201,186,160,0.06);
}

/* ── Layout ──────────────────────────────────────────────────── */
main { flex: 1; padding-top: var(--nav-h); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem var(--gutter) 5rem;
  display: grid;
  grid-template-columns: 1fr clamp(180px, 26%, 260px);
  gap: 2rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-top { display: flex; flex-direction: column; gap: 1.1rem; }

.hero-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--soft);
  line-height: 2;
  max-width: 480px;
}

.hero-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-icons { display: flex; gap: 0.5rem; }

.contact-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.contact-icon-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.contact-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201,186,160,0.06);
}

/* Resume button in hero — wider to fit text label */
.hero-resume-btn {
  width: auto;
  padding: 0 0.75rem;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-color: rgba(201,186,160,0.3);
  color: var(--accent);
}
.hero-resume-btn:hover {
  background: rgba(201,186,160,0.1);
  border-color: var(--accent);
  color: var(--text);
}

.dimmed { font-size: 0.82rem; color: var(--dim); display: block; }

/* Photo — natural grid column, full image shown, scales with window */
.hero-photo {
  width: 100%;
  align-self: start;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Carousel ────────────────────────────────────────────────── */
.carousel-section {
  border-top: 1px solid var(--rule);
  padding: 4rem 0 4.5rem;
}
.carousel-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.carousel-label {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}
.carousel-nav { display: flex; gap: 0.4rem; }
.carousel-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--dim);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  background: none;
}
.carousel-btn:hover { border-color: var(--soft); color: var(--text); }

.carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.c-card {
  flex: 0 0 calc(25% - 0.94rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s;
  cursor: default;
}
a.c-card { cursor: pointer; }
a.c-card:hover { border-color: rgba(201,186,160,0.3); }
a.c-card:hover .c-arrow { color: var(--accent); }

.c-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem 1rem;
}
/* Real photos inside card image containers */
.c-img img, .proj-img img, .exp-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.c-img::before, .c-img::after,
.proj-img::before, .proj-img::after,
.exp-img::before, .exp-img::after { z-index: 1; }
.c-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
  background-size: 18px 18px, 100% 100%;
}
.c-img::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  top: -50px; right: 5%;
  border-radius: 50%;
}

.c-img--alpha   { background: linear-gradient(135deg, #0f1a38 0%, #1a082e 60%, #0b1525 100%); }
.c-img--alpha::after   { background: radial-gradient(circle, rgba(110,70,220,0.28) 0%, transparent 70%); }
.c-img--globe   { background: linear-gradient(135deg, #091f1a 0%, #0b2a1e 60%, #081520 100%); }
.c-img--globe::after   { background: radial-gradient(circle, rgba(20,160,90,0.22) 0%, transparent 70%); }
.c-img--ucb     { background: linear-gradient(135deg, #0a1628 0%, #102038 60%, #0d1a30 100%); }
.c-img--ucb::after     { background: radial-gradient(circle, rgba(40,100,220,0.22) 0%, transparent 70%); }
.c-img--ets     { background: linear-gradient(135deg, #1a0f28 0%, #200d30 60%, #160c22 100%); }
.c-img--ets::after     { background: radial-gradient(circle, rgba(140,60,200,0.22) 0%, transparent 70%); }
.c-img--quminex { background: linear-gradient(135deg, #1a1208 0%, #241600 60%, #1a1208 100%); }
.c-img--quminex::after { background: radial-gradient(circle, rgba(200,140,30,0.2) 0%, transparent 70%); }
.c-img--esdc    { background: linear-gradient(135deg, #081820 0%, #0c2030 60%, #081820 100%); }
.c-img--esdc::after    { background: radial-gradient(circle, rgba(30,120,180,0.2) 0%, transparent 70%); }
.c-img--clearcom { background: linear-gradient(135deg, #141414 0%, #1e1e1e 60%, #141414 100%); }
.c-img--clearcom::after { background: radial-gradient(circle, rgba(180,180,180,0.12) 0%, transparent 70%); }
.c-img--xlerob  { background: linear-gradient(135deg, #1a0c08 0%, #2a1200 60%, #1a0e08 100%); }
.c-img--xlerob::after  { background: radial-gradient(circle, rgba(220,90,30,0.25) 0%, transparent 70%); }
.c-img--ollaweb { background: linear-gradient(135deg, #071e20 0%, #0b2e30 60%, #071e20 100%); }
.c-img--ollaweb::after { background: radial-gradient(circle, rgba(30,180,170,0.25) 0%, transparent 70%); }

.c-tag {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  z-index: 2;
}

.c-body {
  padding: 1.1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.c-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
}
.c-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.c-arrow { font-size: 0.9rem; color: var(--dim); transition: color 0.2s; flex-shrink: 0; }
.c-stack {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6;
}
.c-desc { font-size: 0.95rem; color: var(--soft); line-height: 1.8; margin-top: 0.5rem; }

/* ── Inner pages ─────────────────────────────────────────────── */
.page-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem var(--gutter) 6rem;
}

.sec-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sec-num { color: var(--accent); }

/* ── Skills ──────────────────────────────────────────────────── */
.skills { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.skill-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 2.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.skill-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}
.skill-val { font-size: 1rem; color: var(--soft); }

/* ── Experience cards ────────────────────────────────────────── */
.exp-cards { display: flex; flex-direction: column; gap: 2rem; }

.exp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: border-color 0.25s;
}
.exp-card:hover { border-color: rgba(201,186,160,0.25); }

.exp-img {
  width: 100%;
  aspect-ratio: 3 / 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.5rem;
}
.exp-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.exp-img::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  top: -60px; right: -20px;
  border-radius: 50%;
}
/* Logo images — contain so they're never cropped */
.exp-img--ets img     { object-fit: contain; object-position: center;     padding: 1.5rem; }
.c-img--ets img       { object-fit: contain; object-position: center 35%; padding: 1.25rem; }
.exp-img--quminex img,
.c-img--quminex img   { object-fit: contain; object-position: center;     padding: 1.5rem; }
.exp-img--esdc img    { object-fit: contain; object-position: center;     padding: 1.5rem; }
.exp-img--clearcom img{ object-fit: contain; object-position: center;     padding: 1.5rem; }
.exp-img--ucb img     { object-fit: contain; object-position: center;     padding: 1rem; }

/* TouchIQ carousel — wide render */
.c-img--ucb img       { object-fit: contain; object-position: center;     padding: 1rem; filter: contrast(1.1) brightness(1.05); }

/* GemmaEvolve logo SVG — cover fills the card naturally */
.c-img--alpha img,
.proj-img--alpha img  { object-fit: cover; object-position: center; padding: 0; }

/* OllaWeb screenshot */
.proj-img--ollaweb img,
.c-img--ollaweb img { object-fit: cover; object-position: center top; padding: 0; filter: contrast(1.1) brightness(1.05); }

/* Location line in card text */
.proj-location {
  font-size: 0.82rem;
  color: var(--dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.exp-location {
  font-size: 0.82rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.exp-img--ucb      { background: linear-gradient(160deg, #0a1628 0%, #0f2240 100%); }
.exp-img--ucb::after      { background: radial-gradient(circle, rgba(40,100,220,0.28) 0%, transparent 70%); }
.exp-img--ets      { background: linear-gradient(160deg, #180f28 0%, #22103a 100%); }
.exp-img--ets::after      { background: radial-gradient(circle, rgba(140,60,210,0.28) 0%, transparent 70%); }
.exp-img--quminex  { background: linear-gradient(160deg, #1c1408 0%, #251800 100%); }
.exp-img--quminex::after  { background: radial-gradient(circle, rgba(200,140,30,0.28) 0%, transparent 70%); }
.exp-img--esdc     { background: linear-gradient(160deg, #f2f0eb 0%, #e6e2da 100%); }
.exp-img--esdc::after     { background: none; }
.exp-img--clearcom { background: linear-gradient(160deg, #141414 0%, #202020 100%); }
.exp-img--clearcom::after { background: radial-gradient(circle, rgba(160,160,160,0.15) 0%, transparent 70%); }

.exp-img-tag {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  z-index: 2;
  line-height: 1.5;
}

.exp-content {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 68ch; /* keeps lines at a comfortable reading length */
}
.exp-header { display: flex; flex-direction: column; gap: 0.25rem; }
.exp-content h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.exp-org {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.exp-date {
  font-size: 0.82rem;
  color: var(--dim);
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}
.exp-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.exp-content li {
  font-size: 1rem;
  color: var(--soft);
  line-height: 2;
  padding-left: 0.9rem;
  position: relative;
}
.exp-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.68em;
  width: 4px; height: 1px;
  background: var(--dim);
}
.exp-content em { font-style: italic; color: var(--text); }

/* ── Project cards ───────────────────────────────────────────── */
.proj-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.proj-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s;
}
.proj-card:hover { border-color: rgba(201,186,160,0.3); }
.proj-card:hover .proj-arrow { color: var(--accent); }

/* Stretched link: arrow's ::after covers the whole card so it's fully clickable */
.proj-card .proj-arrow[href]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Inner body links (e.g. arXiv) sit above the stretched overlay */
.proj-card .proj-body a {
  position: relative;
  z-index: 2;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}

.proj-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.5rem;
}
.proj-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.proj-img::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  top: -80px; right: 5%;
  border-radius: 50%;
}
.proj-img--alpha { background: linear-gradient(135deg, #0f1f3d 0%, #1a0a2e 55%, #0d1b2a 100%); }
.proj-img--alpha::after { background: radial-gradient(circle, rgba(110,70,220,0.3) 0%, transparent 70%); }
.proj-img--globe  { background: linear-gradient(135deg, #091f1a 0%, #0b2a1e 55%, #081520 100%); }
.proj-img--globe::after  { background: radial-gradient(circle, rgba(20,160,90,0.25) 0%, transparent 70%); }
.proj-img--xlerob { background: linear-gradient(135deg, #1a0c08 0%, #2a1200 55%, #1a0e08 100%); }
.proj-img--xlerob::after { background: radial-gradient(circle, rgba(220,90,30,0.28) 0%, transparent 70%); }
.proj-img--ollaweb { background: linear-gradient(135deg, #071e20 0%, #0b2e30 55%, #071e20 100%); }
.proj-img--ollaweb::after { background: radial-gradient(circle, rgba(30,180,170,0.28) 0%, transparent 70%); }

.proj-img-tag {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  z-index: 2;
}
.proj-content {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.proj-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.proj-arrow { font-size: 1rem; color: var(--dim); transition: color 0.2s; }
.proj-stack {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-body { font-size: 1rem; color: var(--soft); line-height: 2; max-width: 60ch; }

/* ── About section ───────────────────────────────────────────── */
.about-section {
  border-top: 1px solid var(--rule);
  padding: 5rem 0 5.5rem;
}
.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}
.about-block {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.about-block:first-child { border-top: none; padding-top: 0; }
.about-block-label {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.about-body {
  font-size: 1rem;
  color: var(--soft);
  line-height: 2;
  max-width: 60ch;
}
.about-body + .about-body {
  margin-top: 0.9rem;
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--soft);
  background: var(--surface);
  white-space: nowrap;
}
.pill--accent {
  border-color: rgba(201,186,160,0.25);
  color: var(--accent);
  background: rgba(201,186,160,0.05);
}
.pill--dim {
  border-color: rgba(255,255,255,0.06);
  color: var(--dim);
  background: transparent;
}
.pill-group + .pill-group { margin-top: 0.75rem; }

/* Education block in about */
.about-edu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.about-edu-degree {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.about-edu-school {
  font-size: 0.88rem;
  color: var(--dim);
}
.about-edu-year {
  font-size: 0.82rem;
  color: var(--dim);
  opacity: 0.7;
}

/* ── Recent Updates ──────────────────────────────────────────── */
.updates-section {
  background: var(--surface);
  padding: 5rem 0 5.5rem;
}
.updates-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.updates-heading {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}
.updates-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.update-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.update-date {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.update-text {
  font-size: 1rem;
  color: var(--soft);
  line-height: 1.9;
}
.update-text em { font-style: italic; color: var(--text); }
.update-text strong { font-weight: 500; color: var(--text); }
.update-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(201,186,160,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.update-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── Skills on home page ─────────────────────────────────────── */
.skills-section { padding: 5rem 0 5.5rem; border-top: 1px solid var(--rule); }
.skills-inner   { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skills-home-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

/* ── Contributions categories ────────────────────────────────── */
.contrib-category {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.contrib-category:first-of-type {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: none;
}
.contrib-category-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.contrib-category-desc {
  font-size: 0.9rem;
  color: var(--dim);
  margin-bottom: 1.75rem;
}

/* ── Service ─────────────────────────────────────────────────── */
.service-section { padding: 5rem 0 5.5rem; border-top: 1px solid var(--rule); }
.service-inner   { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.service-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.service-list { display: flex; flex-direction: column; }
.service-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-item:first-child { border-top: 1px solid var(--rule); }
.service-meta  { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.2rem; }
.service-date  { font-size: 0.85rem; color: var(--dim); letter-spacing: 0.02em; }
.service-type  {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.service-body  { font-size: 0.95rem; color: var(--dim); line-height: 1.85; max-width: 60ch; }
@media (max-width: 600px) {
  .service-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ── Resume section ──────────────────────────────────────────── */
.resume-section {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 3.5rem 0;
}
.resume-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.resume-heading {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.resume-sub {
  font-size: 0.9rem;
  color: var(--dim);
}
.resume-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.resume-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.resume-btn--outline {
  border: 1px solid var(--rule);
  color: var(--soft);
}
.resume-btn--outline:hover {
  border-color: var(--soft);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.resume-btn--fill {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.resume-btn--fill:hover {
  background: var(--text);
  border-color: var(--text);
}

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--soft);
}
.footer-copy { font-size: 0.85rem; color: var(--dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--soft); }

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet — 2 carousel cards */
@media (max-width: 860px) {
  .c-card { flex: 0 0 calc(50% - 0.63rem); }
}

@media (max-width: 720px) {
  :root { --gutter: 1.5rem; }

  #nav ul { gap: 0; }
  .nav-tab { padding: 0.4rem 0.55rem; font-size: 0; gap: 0; }
  .nav-tab svg { width: 15px; height: 15px; opacity: 1; }

  .hero-inner { grid-template-columns: 1fr 140px; gap: 2rem; }

  .exp-img { aspect-ratio: 3 / 1; }
  .proj-cards { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 720px) {
  .about-skills { margin-top: 1.75rem; padding-top: 1.5rem; }
}

/* Mobile */
@media (max-width: 520px) {
  :root { --gutter: 1.25rem; }

  .nav-cta span { display: none; }
  .nav-cta { padding: 0.42rem 0.65rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 200px; }

  .c-card { flex: 0 0 80%; }

  .update-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .update-date { color: var(--accent); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
