/* niafajota.com — static site styles */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Poppins:wght@400&display=swap');

:root {
  --bg: #FBF8F2;
  --card: #FFFFFF;
  --line: #EDE5D8;
  --brown: #5A4030;
  --ink: #333333;
  --ink-deep: #2E2318;
  --muted: #8C7B6B;
  --green: #6A8F72;
  --green-dark: #587A60;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 22px 16px;
  display: flex; justify-content: flex-end; align-items: center;
}
.site-header nav { display: flex; gap: 32px; flex-wrap: wrap; }
.site-header nav a {
  font-family: 'Poppins', sans-serif; font-size: 16px;
  color: var(--brown); text-decoration: none; line-height: 1;
  transition: color .2s;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--muted); }
.site-header nav a.resume-link { display: inline-flex; align-items: center; gap: 6px; }
.site-header nav a.resume-link svg { width: 13px; height: 13px; opacity: .7; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--green); color: var(--bg);
  font-family: 'Figtree', sans-serif; font-size: 20px; font-weight: 500;
  padding: 8px 24px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: background .2s;
}
.btn:hover { background: var(--green-dark); }

/* Home: hero */
.hero { min-height: calc(100vh - 70px); display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero h1 {
  font-size: 70px; font-weight: 700; letter-spacing: -1.9px;
  color: var(--brown); margin: 0 0 6px; line-height: 1.1;
}
.hero p {
  font-size: 31px; font-weight: 300; line-height: 1.5; margin: 0 0 22px;
}
.hero p span { display: block; }

/* Home: work */
.section { padding: 80px 0; }
.section h2 {
  font-size: 32px; font-weight: 600; color: var(--brown);
  text-align: center; margin: 0 0 36px;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(90, 64, 48, .08); }
.card .eyebrow {
  font-size: 16px; font-weight: 600; color: var(--green);
  text-transform: uppercase; margin: 0 0 14px;
}
.card h3 { font-size: 24px; font-weight: 600; color: var(--brown); margin: 0 0 12px; line-height: 1.15; }
.card p { font-size: 18px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Contact form */
.contact { max-width: 556px; margin: 0 auto; }
.contact label { display: block; font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.contact label .req { color: #c0392b; margin-left: 4px; }
.contact input, .contact textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 10px 14px; margin: 0 0 14px;
}
.contact textarea { min-height: 96px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--green); outline-offset: 0; }
.contact .note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Project pages */
.project { padding: 40px 0 80px; color: var(--ink-deep); }
.project h1 { font-size: 40px; font-weight: 600; color: var(--brown); margin: 0 0 32px; }
.project h2 { font-size: 32px; font-weight: 600; color: var(--brown); margin: 48px 0 16px; }
.project h3 { font-size: 22px; font-weight: 600; color: var(--brown); margin: 32px 0 10px; }
.project p, .project li { font-size: 20px; line-height: 1.5; }
.project p { margin: 0 0 16px; }
.project ul { margin: 0 0 16px; padding-left: 24px; }
.project ul ul { margin: 4px 0; }
.meta { list-style: none; padding: 0 !important; margin: 0 0 20px !important; }
.meta li { margin: 0; }
.meta strong { font-weight: 700; }
.intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.intro .lede { margin-top: 28px; }
.figure { margin: 24px auto; }
.figure img { margin: 0 auto; border-radius: 6px; }
.figure.wide img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; }
.back { display: inline-block; margin-top: 48px; color: var(--green); font-weight: 600; text-decoration: none; font-size: 18px; }
.back:hover { text-decoration: underline; }

/* About */
.about { padding: 40px 0 60px; }
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.about .portrait img { width: 100%; border-radius: 22px; }
.about h1 { font-size: 32px; font-weight: 600; color: var(--brown); margin: 0 0 8px; }
.about p { font-size: 18px; color: var(--ink-deep); margin: 0 0 30px; }
.about p.tight { margin-bottom: 12px; }
.about a { color: var(--green); font-weight: 700; text-decoration: none; }
.about a:hover { text-decoration: underline; }

.gallery { position: relative; margin: 50px 0 0; }
.gallery .track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery .track::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 768 / 509; object-fit: cover; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.gallery .arrow {
  position: absolute; top: calc(50% - 32px); width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(251, 248, 242, .85); color: var(--brown); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery .prev { left: 8px; }
.gallery .next { right: 8px; }

.site-footer { text-align: center; padding: 30px 16px 40px; font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .site-header .inner { justify-content: center; padding: 16px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 15px; }
  .hero { min-height: 72vh; }
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .hero p { font-size: 21px; }
  .hero p span { display: inline; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: 1fr; }
  .intro, .about .grid { grid-template-columns: 1fr; }
  .project h1 { font-size: 32px; }
  .project h2 { font-size: 26px; }
  .project p, .project li { font-size: 18px; }
  .gallery .track { grid-auto-columns: 85%; }
}

/* tVNS intro: app video + device side by side */
.media { display: flex; align-items: center; justify-content: center; gap: 24px; }
.media video { width: 46%; max-width: 360px; height: auto; display: block; }
.media img { width: 46%; max-width: 350px; }
@media (max-width: 767px) { .media { gap: 12px; } }

/* Resume password page */
.gate { min-height: calc(100vh - 180px); display: flex; align-items: center; padding: 40px 0; }
.gate .wrap { width: 100%; max-width: 556px; }
.gate h1 { font-size: 32px; font-weight: 600; color: var(--brown); margin: 0 0 12px; }
.gate p { font-size: 18px; color: var(--ink-deep); margin: 0 0 24px; }
.gate-form label { display: block; font-size: 16px; margin: 0 0 8px; }
.gate-row { display: flex; gap: 12px; }
.gate-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px;
}
.gate-row input:focus { outline: 2px solid var(--green); outline-offset: 0; }
.gate-form .btn { font-size: 18px; padding: 8px 26px; }
.gate-error { color: #b03a2e !important; font-size: 16px !important; margin: 12px 0 0 !important; }
