/* ============================================================
   DESIGN SYSTEM — Shubhanshu Bishwash Portfolio
   Aesthetic: Longbridge Station — warm instrument-grade
   Fonts: Zilla Slab, IBM Plex Mono, Public Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Longbridge Palette */
  --cream:       #EFE7D6;
  --cream-light: #F7F2E7;
  --cream-dark:  #E4DACA;
  --lake-ink:    #1A414F;
  --lake-deep:   #122E38;
  --slate:       #2E3438;
  --haze:        #9DB4C0;
  --amber:       #E8A13D;
  --alert:       #E07A3F;
  --live-green:  #4F8A54;
  --muted:       #6B7A83;
  --line:        #DDD2BC;
  --soft-line:   #E9DFC9;
  --white:       #FAFAF5;

  /* Type */
  --serif: 'Zilla Slab', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;
  --sans:  'Public Sans', system-ui, sans-serif;

  /* Layout */
  --max-width:  1140px;
  --nav-height: 72px;

  /* Radius */
  --radius: 10px;
  --radius-sm: 6px;

  /* Grain — fine turbulence for ink/navy surfaces (high contrast) */
  --grain-ink: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 2.6 -0.55' result='c'/%3E%3CfeComponentTransfer in='c'%3E%3CfeFuncA type='gamma' exponent='0.55' amplitude='1' offset='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Grain — coarser woven texture for cream/amber surfaces */
  --grain-cream: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7 0.9' numOctaves='2' stitchTiles='stitch' seed='7' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.0 -0.35' result='c'/%3E%3CfeComponentTransfer in='c'%3E%3CfeFuncA type='gamma' exponent='0.75' amplitude='1' offset='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* ─── Reset ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  position: relative;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--slate);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background-image: var(--grain-cream);
  background-size: 240px 240px;
  opacity: 0.14;
  mix-blend-mode: multiply;
}
a { color: var(--lake-ink); text-decoration: none; }
a:hover { color: var(--amber); }
ul { list-style: none; }
img { max-width:100%; display:block; }
button { cursor:pointer; border:none; background:none; font:inherit; color:inherit; }

/* ─── Utility ─── */
.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.fade-in.visible { opacity:1; transform:translateY(0); }

.stagger > :nth-child(1) { transition-delay: .04s; }
.stagger > :nth-child(2) { transition-delay: .1s; }
.stagger > :nth-child(3) { transition-delay: .16s; }
.stagger > :nth-child(4) { transition-delay: .22s; }
.stagger > :nth-child(5) { transition-delay: .28s; }
.stagger > :nth-child(6) { transition-delay: .34s; }
.stagger > :nth-child(7) { transition-delay: .40s; }
.stagger > :nth-child(8) { transition-delay: .46s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--lake-ink);
  border-bottom: 3px solid var(--lake-deep);
  display: flex;
  align-items: center;
}
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--grain-ink);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 92%; max-width: var(--max-width); margin: 0 auto;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
}
.nav__logo-circle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cream);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.nav__logo-circle:hover {
  transform: scale(1.05);
}
.nav__logo-circle svg {
  width: 100%; height: 100%;
}
.nav__brand-text {
  display: flex; flex-direction: column; justify-content: center;
}
.nav__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  line-height: 1.1;
  text-decoration: none;
}
.nav__name:hover {
  color: var(--amber);
}
.nav__location {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--haze);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav__role {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--haze);
  opacity: 0.75;
  margin-top: 1px;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media(max-width:560px){
  .nav__role { display: none; }
}
.nav__links {
  display: flex; gap: 4px; align-items: center;
}
.nav__link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--haze);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--cream); background: rgba(255,255,255,.08); }
.nav__link.active { color: var(--cream); }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lake-deep);
  background: var(--amber);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  transition: background .15s;
}
.nav__cta:hover { background: #d4912f; color: var(--lake-deep); }

/* Hamburger */
.nav__burger {
  display: none; flex-direction: column; gap: 4px; width: 22px; cursor:pointer; z-index:1001;
}
.nav__burger span {
  display:block; height:2px; background:var(--cream); border-radius:1px;
  transition: transform .3s ease, opacity .15s ease;
}
.nav__burger.open span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity:0; }
.nav__burger.open span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }

@media(max-width:768px){
  .nav__links {
    position:fixed; top:0; right:-100%; width:260px; height:100vh;
    flex-direction:column; justify-content:center; gap:16px;
    background:var(--lake-deep); border-left:1px solid rgba(255,255,255,.1);
    transition: right .35s cubic-bezier(.16,1,.3,1); z-index:999;
  }
  .nav__links.open { right:0; }
  .nav__burger { display:flex; }
}

/* Pilings divider (SVG bridge motif) */
.pilings {
  background: var(--lake-ink);
  display: flex;
  justify-content: center;
  margin-top: var(--nav-height);
}
.pilings svg {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  height: auto;
}

/* ============================================================
   FRONT PAGE — Dense Dashboard Layout
   ============================================================ */

/* ─── Hero ─── */
.hero {
  padding: 48px 0 0;
}
.hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.identity__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}
.identity__name {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--slate);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.identity__tagline {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
}
/* Status badges — not pills, bordered boxes */
.identity__badges {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
@media(max-width:700px){
  .identity__badges { flex-direction: row; align-items: stretch; }
}
.badge-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: var(--cream-light);
}
.badge-box__label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 2px;
}
.badge-box__value {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

.identity__bio {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 28px;
}
.hero__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.identity__contact {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.identity__contact a { color: var(--muted); }
.identity__contact a:hover { color: var(--amber); }

/* Skill list & tech tags — stylized text */
.skill-list {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 24px;
  line-height: 1.6;
}
.skill-list span,
.prof-panel__techs span,
.proj-card__tech span,
.tl-item__tech span,
.edu-card__courses span {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.skill-list span::before,
.prof-panel__techs span::before,
.proj-card__tech span::before,
.tl-item__tech span::before,
.edu-card__courses span::before {
  content: '▹';
  color: var(--amber);
  font-size: 1.2em;
}
.skill-list span::after,
.prof-panel__techs span::after,
.proj-card__tech span::after,
.tl-item__tech span::after,
.edu-card__courses span::after {
  display: none !important;
}

.identity__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background .15s, border-color .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn--primary {
  background: var(--lake-ink);
  color: var(--cream);
  border: 1px solid var(--lake-ink);
}
.btn--primary:hover { background: var(--lake-deep); color: var(--cream); }
.btn--outline {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--line);
}
.btn--outline:hover { border-color: var(--lake-ink); color: var(--lake-ink); }

/* ─── Core Proficiency section ─── */
.proficiency-section {
  padding-bottom: 8px;
}
.proficiency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.prof-panel {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.prof-panel__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}
.prof-panel__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.prof-panel__techs {
  display: flex; flex-wrap: wrap; gap: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--slate);
  line-height: 2;
}
.prof-panel__techs span::after {
  content: '·';
  margin: 0 7px;
  color: var(--line);
}
.prof-panel__techs span:last-child::after { display: none; }

/* ─── Divider ─── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ============================================================
   CAREER ARC (Home inline timeline)
   ============================================================ */
.career-section {
  padding-bottom: 48px;
}
.career-section__header {
  margin-bottom: 24px;
}
.career-section__title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.career-timeline {
  position: relative;
  padding-left: 24px;
}
.career-timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.career-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
}
.career-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--lake-ink);
  background: var(--cream);
}
.career-item:first-child::before {
  background: var(--lake-ink);
}
.career-item__date {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.career-item__role {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
}
.career-item__company {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.career-item__tech {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.8;
}

/* ============================================================
   METRICS ROW
   ============================================================ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-light);
  overflow: hidden;
  margin-bottom: 40px;
}
.metric-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--soft-line);
  text-align: center;
}
.metric-cell:last-child { border-right: none; }
.metric-cell__value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.2;
}
.metric-cell__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 4px;
}
@media(max-width:600px){
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .metric-cell { border-bottom: 1px solid var(--soft-line); }
}

/* ============================================================
   FEATURED PROJECTS (Home)
   ============================================================ */
.projects-section {
  padding-bottom: 48px;
}
.projects-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.projects-header__title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.projects-header__link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lake-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.projects-header__link:hover { color: var(--amber); }
.projects-header__link-icon {
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.projects-header__link:hover .projects-header__link-icon {
  transform: translateX(3px);
}

.projects-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.proj-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .2s;
}
.proj-card:hover { border-color: var(--lake-ink); }
.proj-card__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}
.proj-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.proj-card__tech {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
}
.proj-card__tech span::after {
  content: '·';
  margin: 0 6px;
  color: var(--line);
}
.proj-card__tech span:last-child::after { display: none; }

/* ============================================================
   EXPERIENCE PAGE — Full Timeline
   ============================================================ */
.page-header {
  padding: calc(var(--nav-height) + 48px) 0 32px;
}
.page-header__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}
.page-header__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 8px;
}
.page-header__desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.timeline-full {
  position: relative;
  padding-left: 32px;
  padding-bottom: 48px;
}
.timeline-full::before {
  content:'';
  position:absolute;
  left:7px; top:0; bottom:0;
  width:1px;
  background: linear-gradient(to bottom, var(--lake-ink), var(--line), transparent);
}
.tl-item {
  position: relative;
  margin-bottom: 36px;
}
.tl-item__dot {
  position:absolute; left:-30px; top:8px;
  width:10px; height:10px; border-radius:50%;
  border:2px solid var(--lake-ink); background:var(--cream);
}
.tl-item:first-child .tl-item__dot {
  background:var(--lake-ink);
}
.tl-item__card {
  background:var(--cream-light);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px 28px;
  transition: border-color .2s;
}
.tl-item__card:hover { border-color: var(--lake-ink); }
.tl-item__meta {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-bottom:6px;
}
.tl-item__company {
  font-family:var(--mono);
  font-size:11px; font-weight:600;
  color:var(--lake-ink);
  letter-spacing:0.04em;
}
.tl-item__date {
  font-family:var(--mono);
  font-size:10px; color:var(--muted);
}
.tl-item__location {
  font-size:11px; color:var(--muted);
}
.tl-item__role {
  font-family:var(--serif);
  font-size:18px; font-weight:600;
  color:var(--slate);
  margin-bottom:8px;
}
.tl-item__desc {
  font-size:13.5px; color:var(--muted);
  line-height:1.8; margin-bottom:12px;
}
.tl-item__note {
  font-size:13px; color:var(--muted);
  font-style: italic;
  margin-bottom:12px;
}
.tl-item__highlights {
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom:14px;
}
.tl-highlight {
  display:flex; align-items:baseline; gap:6px;
  font-size:11.5px;
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:7px 12px;
  line-height:1.4;
}
.tl-highlight__tool {
  font-family:var(--mono);
  font-weight:600;
  color:var(--lake-ink);
  white-space:nowrap;
}
.tl-highlight__action {
  color:var(--muted);
}
.tl-item__tech {
  font-family:var(--mono);
  font-size:10.5px; color:var(--muted);
  line-height:2;
}
.tl-item__tech span::after {
  content:'·'; margin:0 6px; color:var(--line);
}
.tl-item__tech span:last-child::after { display:none; }

/* Experience — meta row split + current badge */
.tl-item__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 6px;
}
.tl-item__meta-right {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
}
.tl-item__current {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--live-green);
}
.tl-item__current::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 0 3px rgba(79,138,84,.15);
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}
.proj-domain-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 8px;
}
.proj-spotlight {
  position: relative;
  background: var(--lake-ink);
  background-image: var(--grain-ink);
  background-blend-mode: overlay;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 20px;
  overflow: hidden;
}
.proj-spotlight .proj-domain-tag { color: var(--amber); }
.proj-spotlight .proj-card__title {
  font-size: 20px;
  color: var(--cream);
}
.proj-spotlight .proj-card__desc {
  color: var(--haze);
  max-width: 720px;
}
.proj-spotlight .proj-card__tech {
  color: var(--haze);
}
.proj-spotlight .proj-card__tech span::after { color: rgba(239,231,214,.25); }

/* ============================================================
   EDUCATION PAGE
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  padding-bottom: 48px;
}
.edu-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.edu-card__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.edu-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--lake-ink);
  display: flex; align-items: center; justify-content: center;
}
.edu-card__badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lake-ink);
}
.edu-card__honors {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.edu-honor {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--slate);
  background: rgba(232,161,61,.12);
  border: 1px solid rgba(232,161,61,.35);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  line-height: 1.4;
}
.edu-honor::before { content: '★'; color: var(--amber); font-size: 11px; }
.edu-card__school {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 4px;
}
.edu-card__degree {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.edu-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.edu-card__section-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 16px;
}
.edu-card__thesis {
  font-size: 13px;
  color: var(--slate);
  padding: 12px 16px;
  background: rgba(31,78,95,.04);
  border-left: 3px solid var(--lake-ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  line-height: 1.7;
}
.edu-card__courses {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 2.2;
}
.edu-card__courses span::after {
  content: '·';
  margin: 0 6px;
  color: var(--line);
}
.edu-card__courses span:last-child::after { display: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}
@media(max-width:768px){ .contact-grid { grid-template-columns:1fr; }}

.contact-info__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media(max-width:520px){ .contact-links { grid-template-columns: 1fr; } }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, transform .2s;
}
.contact-link:hover { border-color: var(--lake-ink); transform: translateY(-2px); }
.contact-link__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(31,78,95,.06);
  color: var(--lake-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-link__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact-link__value {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
}

.contact-form {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--lake-ink);
}
.form-group textarea { resize:vertical; min-height:120px; }
.form-submit { width:100%; justify-content:center; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.cta-band__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 8px;
}
.cta-band__desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--lake-ink);
  padding: 20px 0;
  color: var(--haze);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--grain-ink);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}
.footer__inner { position: relative; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--haze);
}
.footer__links { display: flex; gap: 20px; }
.footer__link {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--haze);
  transition: color .15s;
}
.footer__link:hover { color: var(--amber); }

/* ============================================================
   FABRIC TEXTURE — applied to card & button surfaces
   ============================================================ */
.badge-box,
.prof-panel,
.tl-item__card,
.proj-card,
.edu-card,
.contact-link,
.contact-form,
.metrics-row,
.form-group input,
.form-group textarea {
  background-image: var(--grain-cream);
  background-blend-mode: overlay;
}
.btn--primary,
.nav__cta,
.footer,
.pilings {
  background-blend-mode: overlay;
}
.nav__cta {
  background-image: var(--grain-cream);
}
.btn--primary {
  background-image: var(--grain-ink);
}
.pilings {
  background-image: var(--grain-ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:600px){
  .hero { padding: 32px 0 0; }
  .identity__name { font-size: 32px; }
  .projects-grid-home { grid-template-columns: 1fr; }
  .projects-page-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}
