/* ==========================================================================
   vinayai.in — Portfolio Home
   Light, clean theme. Vanilla CSS, no framework, no build step.
   Drop at /css/portfolio.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:        #12284c;
  --navy-700:    #1c3a68;
  --accent:      #1e6fd9;
  --accent-700:  #1656ab;
  --accent-soft: #eaf2fd;
  --live:        #0b8a5a;
  --live-soft:   #e4f6ee;
  --todo:        #b4530a;
  --todo-soft:   #fdf1e4;

  /* Neutrals */
  --ink:         #16202e;
  --ink-2:       #3d4a5c;
  --ink-3:       #63718a;
  --line:        #e2e7ef;
  --line-2:      #eef1f6;
  --bg:          #ffffff;
  --bg-tint:     #f7f9fc;
  --bg-chip:     #f1f4f9;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap: 1140px;
  --nav-h: 66px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(18,40,76,.05), 0 1px 3px rgba(18,40,76,.04);
  --sh-2: 0 4px 12px rgba(18,40,76,.07), 0 2px 4px rgba(18,40,76,.04);
  --sh-3: 0 12px 32px rgba(18,40,76,.10), 0 4px 8px rgba(18,40,76,.05);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); letter-spacing: -.022em; }
h3 { font-size: 1.14rem; }
h4 { font-size: 1.04rem; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-700); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--mono); font-size: .86em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sep  { color: var(--line); margin: 0 .35em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { padding: 8px 14px; font-size: .86rem; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--accent-700); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-2); }

.btn--outline { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn--ghost { color: var(--ink-3); background: transparent; }
.btn--ghost:hover { color: var(--accent); background: var(--accent-soft); }

/* --------------------------------------------------------------------------
   4. Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }

.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}

.nav__brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.05rem; color: var(--navy); letter-spacing: -.02em;
}
.nav__brand img { width: 26px; height: 26px; }

.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ink-2); padding: 4px 0;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s ease;
}
.nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #4ea3ff);
}

/* --------------------------------------------------------------------------
   5. Sections
   -------------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line-2); }

.sec-head { margin-bottom: 34px; max-width: 720px; }
.sec-head h2 { margin-bottom: .25em; }
.sec-head h2::after {
  content: ''; display: block; width: 46px; height: 3px;
  background: var(--accent); border-radius: 3px; margin-top: 14px;
}
.sec-head__sub { color: var(--ink-3); font-size: 1.03rem; margin: 14px 0 0; }
.sec-head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 68px 0 62px;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--accent-soft) 0%, transparent 62%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-2);
}
.hero__grid {
  display: block;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--live-soft); color: var(--live);
  border: 1px solid rgba(11,138,90,.2);
  padding: 6px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  margin: 0 0 20px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(11,138,90,.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(11,138,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,138,90,0); }
}

.hero__text { min-width: 0; }
.hero__name { margin-bottom: .18em; }
.hero__title {
  font-size: clamp(1rem, 1.8vw, 1.16rem); font-weight: 600;
  color: var(--accent); margin: 0 0 22px; letter-spacing: -.01em;
}
.hero__summary { max-width: none; }
.hero__summary p { color: var(--ink-2); font-size: 1.02rem; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero__social { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; clear: both; }
.hero__social a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .89rem; font-weight: 500; color: var(--ink-3);
}
.hero__social a:hover { color: var(--accent); }
.hero__social svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.hero__social a:last-child svg { fill: none; stroke: currentColor; stroke-width: 1.7; }

.hero__media {
  width: 300px; float: right; display: flex; justify-content: center;
  margin: 0 0 28px 56px;
}
.hero__photo {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1;
  border-radius: 22px; overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--sh-3);
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 17px; box-shadow: inset 0 0 0 1px rgba(18,40,76,.06);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   6b. Contact
   -------------------------------------------------------------------------- */
.contact-hero {
  padding: 76px 0 88px;
  background:
    radial-gradient(760px 360px at 90% 0%, var(--accent-soft) 0%, transparent 65%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
}
.contact-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start;
}
.contact-intro { padding-top: 12px; }
.contact-intro h1 { max-width: 11ch; margin-bottom: 20px; }
.contact-intro__lead { max-width: 48ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.72; }
.contact-signals { display: grid; gap: 20px; margin-top: 38px; }
.contact-signals > div { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-signal__label { display: block; color: var(--ink-3); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-signals strong { display: block; font-size: .94rem; }
.contact-links { display: flex; gap: 18px; }
.contact-links a { font-size: .94rem; font-weight: 600; }
.contact-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-3); }
.contact-form__heading { margin-bottom: 26px; }
.contact-form__heading .tag { margin-bottom: 12px; }
.contact-form__heading h2 { margin-bottom: 6px; }
.contact-form__heading h2::after { display: none; }
.contact-form__heading p { color: var(--ink-3); margin: 0; font-size: .94rem; }
.contact-form { display: grid; gap: 18px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--ink); font-size: .84rem; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-tint); color: var(--ink); font: inherit; font-size: .94rem; padding: 11px 13px; outline: 0; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 4px rgba(30,111,217,.11); }
.field input.field__input--error, .field textarea.field__input--error { border-color: var(--todo); }
.field__error { color: var(--todo); font-size: .78rem; }
.contact-form__submit { justify-content: center; margin-top: 4px; }
.contact-success { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid rgba(11,138,90,.2); border-left: 4px solid var(--live); border-radius: var(--r-sm); background: var(--live-soft); color: #14513a; font-size: .9rem; }
.contact-success strong { color: var(--live); }

/* --------------------------------------------------------------------------
   7. How I Help
   -------------------------------------------------------------------------- */
.help-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.help-card:hover { border-color: var(--accent); box-shadow: var(--sh-2); transform: translateY(-2px); }
.help-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.help-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.help-card p { margin: 0; font-size: .96rem; }

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.stat {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px; text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.stat:hover { border-color: var(--accent); box-shadow: var(--sh-2); }
.stat__num {
  display: block; font-size: 2.3rem; font-weight: 800;
  color: var(--navy); line-height: 1; letter-spacing: -.035em; margin-bottom: 10px;
}
.stat__num em { font-style: normal; color: var(--accent); font-size: .68em; }
.stat__label { font-size: .81rem; color: var(--ink-3); font-weight: 500; line-height: 1.45; }

/* Placeholder tile — visually obvious so it cannot ship by accident */
.stat--todo { border-style: dashed; border-color: var(--todo); background: var(--todo-soft); }
.stat--todo .stat__num,
.stat--todo .stat__num em { color: var(--todo); }

/* --------------------------------------------------------------------------
   9. Technical Arsenal
   -------------------------------------------------------------------------- */
.arsenal {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px;
}
.arsenal__group {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px;
  border-top: 3px solid var(--line);
}
.arsenal__group--accent { border-top-color: var(--accent); }
.arsenal__group--muted  { opacity: .72; }
.arsenal__group h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-3); font-weight: 700; margin-bottom: 14px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--bg-chip); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: .82rem; font-weight: 500;
  padding: 5px 11px; border-radius: 6px;
}
.chips--muted li { color: var(--ink-3); }
.chips--tech { margin-top: 16px; }
.chips--tech li {
  font-family: var(--mono); font-size: .75rem;
  background: transparent; border-color: var(--line); color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   10. Tags
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 10px; border-radius: 5px;
  background: var(--bg-chip); color: var(--ink-3);
  margin: 0 6px 10px 0;
}
.tag--ai   { background: var(--accent-soft); color: var(--accent-700); }
.tag--live { background: var(--live-soft);   color: var(--live); }

/* --------------------------------------------------------------------------
   11. Flagship project cards
   -------------------------------------------------------------------------- */
.proj {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
  margin-bottom: 24px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.proj:hover { border-color: #c9d6ea; box-shadow: var(--sh-2); }
.proj:last-child { margin-bottom: 0; }

.proj__head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.proj__title { font-size: 1.4rem; margin: 4px 0 10px; letter-spacing: -.022em; }
.proj__hook { color: var(--ink-2); font-size: 1.01rem; max-width: 68ch; margin: 0; }
.proj__links { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* Placeholder figure — dashed so it's obvious a visual is missing */
.proj__figure {
  margin: 22px 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-tint);
}
.proj__figure img { width: 100%; }
.proj__figure--todo {
  border: 2px dashed var(--todo); background: var(--todo-soft);
  min-height: 130px; display: grid; place-items: center; padding: 24px; text-align: center;
}
.proj__figure--todo span { color: var(--todo); font-size: .88rem; font-weight: 600; }
.proj__figure--todo code { background: rgba(180,83,10,.11); padding: 2px 7px; border-radius: 4px; }

.proj__points { margin: 22px 0 0; }
.proj__points li {
  position: relative; padding-left: 22px; margin-bottom: 11px;
  font-size: .96rem; color: var(--ink-2); line-height: 1.6;
}
.proj__points li::before {
  content: ''; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.proj__points li:last-child { margin-bottom: 0; }

.proj__more { margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.proj__more summary {
  cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--accent);
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 0;
}
.proj__more summary::-webkit-details-marker { display: none; }
.proj__more summary::before {
  content: '▸'; transition: transform .2s ease; display: inline-block; font-size: .9em;
}
.proj__more[open] summary::before { transform: rotate(90deg); }
.proj__more summary:hover { color: var(--accent-700); }
.proj__more-body { padding-top: 14px; }
.proj__more-body p { font-size: .94rem; color: var(--ink-2); }
.proj__more-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Generic cards / mini cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #c9d6ea; box-shadow: var(--sh-2); }
.card h3 { margin-bottom: 4px; }

.mini {
  display: block; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mini:hover { border-color: var(--accent); box-shadow: var(--sh-2); transform: translateY(-3px); color: inherit; }
.mini h3 { font-size: 1.02rem; margin: 2px 0 8px; }
.mini:hover h3 { color: var(--accent); }
.mini p { font-size: .9rem; color: var(--ink-3); margin: 0; }

/* --------------------------------------------------------------------------
   13. Blog post cards
   -------------------------------------------------------------------------- */
.post {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; color: inherit; height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post:hover { border-color: var(--accent); box-shadow: var(--sh-2); transform: translateY(-3px); color: inherit; }
.post__date {
  font-family: var(--mono); font-size: .74rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px;
}
.post__title {
  font-size: 1.02rem; margin: 0 0 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.post:hover .post__title { color: var(--accent); }
.post__excerpt {
  font-size: .89rem; color: var(--ink-3); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  line-clamp: 3; overflow: hidden;
}

/* --------------------------------------------------------------------------
   14. Timeline
   -------------------------------------------------------------------------- */
.tl { min-width: 0; }
.tl__company { margin-bottom: 26px; }
.tl__company h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 2px; }
.tl__company p  { color: var(--ink-3); font-size: .94rem; margin: 0; }

.tl__list { position: relative; padding-left: 30px; }
.tl__list::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--accent) 0%, var(--line) 100%);
  border-radius: 2px;
}

.tl__item { position: relative; padding-bottom: 30px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ''; position: absolute; left: -30px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.tl__item--todo::before { border-color: var(--todo); }

.tl__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.tl__head h4 { margin: 0; }
.tl__date {
  font-family: var(--mono); font-size: .8rem; color: var(--ink-3); white-space: nowrap;
}
.tl__item--todo h4,
.tl__item--todo .tl__date,
.tl__item--todo .proj__points li { color: var(--todo); }
.tl__item--todo .proj__points li::before { background: var(--todo); }

.earlier { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-tint); }
.earlier summary {
  cursor: pointer; padding: 16px 22px; font-weight: 600; font-size: .94rem; color: var(--ink-2);
  list-style: none; display: flex; align-items: center; gap: 9px;
}
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary::before { content: '▸'; transition: transform .2s ease; display: inline-block; }
.earlier[open] summary::before { transform: rotate(90deg); }
.earlier__body { padding: 0 22px 22px; }

/* --------------------------------------------------------------------------
   15. Education
   -------------------------------------------------------------------------- */
.edu { min-width: 0; }
.edu__item {
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.edu__item:last-child { border-bottom: 0; }
.edu__item h3 { font-size: 1.02rem; margin-bottom: 3px; }
.edu__meta { color: var(--ink-3); font-size: .91rem; margin: 0; }
.edu__date { font-family: var(--mono); font-size: .79rem; color: var(--ink-3); margin: 5px 0 0; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: #c3d2e8; padding: 62px 0 26px; margin-top: 0; }
.footer__inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.11);
}
.footer h2 { color: #fff; }
.footer h2::after { display: none; }
.footer__lead p { color: #a9bdd8; max-width: 46ch; }
.footer__lead .btn--outline { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.footer__lead .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: #c3d2e8; font-size: .93rem; font-weight: 500; }
.footer__links a:hover { color: #fff; }

.footer__base {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 22px;
}
.footer__base p { color: #8fa6c6; font-size: .84rem; margin: 0; }

/* --------------------------------------------------------------------------
   17. Reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
  .hero__media { width: auto; float: none; order: -1; justify-content: flex-start; margin: 0; }
  .hero__photo { max-width: 190px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-intro h1 { max-width: none; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 24px 18px;
    box-shadow: var(--sh-2);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .nav__links a::after { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__contact { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 54px 0; }
  .hero { padding: 44px 0 42px; }
  .contact-hero { padding: 48px 0 58px; }
  .wrap { padding: 0 18px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .proj { padding: 24px 20px; }
  .proj__head { flex-direction: column; gap: 16px; }
  .proj__links { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat__num { font-size: 1.9rem; }
  .sec-head--row { align-items: flex-start; }
  .footer__inner { flex-direction: column; gap: 30px; }
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .contact-panel { padding: 24px 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .stats { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   19. Accessibility & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer__links, .hero__cta, .proj__links, .proj__figure--todo, .stat--todo { display: none; }
  .section, .hero { padding: 18px 0; }
  .proj, .card, .mini, .post { break-inside: avoid; border-color: #ccc; box-shadow: none; }
  .proj__more[open] .proj__more-body { display: block; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
