/* =========================================================================
   Vikas Vijendrabhai Ajudiya — Freelance Software Developer
   "Ink & Lime" editorial design system. Dark theme, serif display type,
   ruled-line layouts, numbered sections. Mobile-first.
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  --ink:          #0b0c0f;   /* page background */
  --ink-2:        #101216;   /* raised surface */
  --ink-3:        #16181e;   /* higher surface */

  --text:         #f2efe9;   /* warm off-white */
  --muted:        #a9a59c;
  --faint:        #78756d;

  --lime:         #c9f158;   /* single accent */
  --lime-soft:    rgba(201, 241, 88, 0.12);
  --lime-ring:    rgba(201, 241, 88, 0.45);
  --on-lime:      #14160a;

  --line:         rgba(242, 239, 233, 0.12);
  --line-strong:  rgba(242, 239, 233, 0.26);

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --header-h:  76px;
  --pad:       clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}

p { margin: 0 0 1rem; }

a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--lime); }

ul { margin: 0; padding: 0; }

::selection { background: var(--lime); color: var(--on-lime); }

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

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

/* Section headers: index number + eyebrow rule + big serif title */
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.sec-topline {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(22px, 4vw, 40px);
}
.sec-index {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--lime);
}
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-topline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-4px);
}

.section-title {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: .35em;
}
.section-title em {
  font-style: italic;
  color: var(--lime);
  font-weight: 480;
}

.section-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 52ch;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -64px;
  z-index: 300;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 3px;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; color: var(--on-lime); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 18px 30px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .18s ease;
}
.btn::after {
  content: "→";
  font-size: .95em;
  transition: transform .22s ease;
}
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
}
.btn-primary:hover {
  background: #e2ff86;
  color: var(--on-lime);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-block { width: 100%; }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 220; /* stays above the mobile menu overlay */
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--lime);
}
.brand-name {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.4;
}
@media (max-width: 559px) {
  .brand-name { font-size: .66rem; letter-spacing: .12em; }
}

/* Toggle: two-line morphing burger */
.nav-toggle {
  position: relative;
  z-index: 220;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--lime); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle span:nth-child(2) { display: none; } /* two-line burger */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile: full-screen overlay menu */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--pad) 48px;
  background: var(--ink);
  background-image: radial-gradient(circle at 85% 15%, var(--lime-soft), transparent 45%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .3s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  counter-reset: navitem;
}
.nav-links li {
  counter-increment: navitem;
  border-bottom: 1px solid var(--line);
}
.nav-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 500;
  color: var(--text);
}
.nav-links a::before {
  content: "0" counter(navitem);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--faint);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--lime); }
.nav-links a:hover::before { color: var(--lime); }

.nav-cta .btn { width: 100%; }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 88px));
  padding-bottom: clamp(56px, 8vw, 104px);
  background-image:
    radial-gradient(820px 480px at 85% 0%, var(--lime-soft), transparent 62%),
    radial-gradient(rgba(242, 239, 233, 0.055) 1px, transparent 1px);
  background-size: auto, 30px 30px;
}

.hero-grid {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 36px);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime-ring);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--lime-ring); }
  70%  { box-shadow: 0 0 0 9px rgba(201, 241, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 241, 88, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7.4vw, 4.6rem);
  font-weight: 520;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: 24px;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 460;
  color: var(--lime);
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px 0 0;
  margin-right: 28px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 560px) {
  .hero-meta li + li { border-left: 1px solid var(--line); padding-left: 28px; margin-right: 0; }
}
.hero-meta svg { color: var(--lime); flex: none; }

/* Arch-shaped portrait */
.hero-visual { justify-self: center; }
.hero-portrait {
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 14px 14px;
  background: var(--ink-3);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 8px 8px;
  z-index: 2;
  pointer-events: none;
}
.hero-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.6rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: .02em;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}

/* ----- Ticker (decorative skills marquee) -------------------------------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  background: var(--ink-2);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  padding-right: 40px;
  animation: ticker 26s linear infinite;
}
.ticker-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track .tick-dot {
  font-style: normal;
  font-size: .7rem;
  color: var(--lime);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- About ------------------------------------------------------------ */
.about-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}
.about-body p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}
.about-body p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 450;
  line-height: 1.6;
  color: var(--text);
}
.about-body p strong { color: var(--text); font-weight: 600; }
.about-body p:first-child strong { font-weight: 600; }

.about-card { align-self: start; }
.about-card h3 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}
.about-list {
  list-style: none;
  counter-reset: principle;
}
.about-list li {
  counter-increment: principle;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: .99rem;
  line-height: 1.55;
}
.about-list li::before {
  content: "0" counter(principle);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--faint);
  flex: none;
}

/* ----- Services: numbered editorial rows --------------------------------- */
.cards {
  display: grid;
  border-top: 1px solid var(--line-strong);
  counter-reset: service;
}
.card {
  counter-increment: service;
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(26px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding-left .25s ease, padding-right .25s ease;
}
.card::before {
  content: "(0" counter(service) ")";
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--faint);
  transition: color .25s ease;
}
.card h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 520;
  margin: 0;
  transition: color .25s ease;
}
.card p {
  color: var(--muted);
  font-size: .99rem;
  line-height: 1.75;
  max-width: 58ch;
  margin: 0;
}
.card:hover {
  background: var(--ink-2);
  padding-left: clamp(14px, 2vw, 24px);
  padding-right: clamp(14px, 2vw, 24px);
}
.card:hover::before { color: var(--lime); }
.card:hover h3 { color: var(--lime); }

/* ----- Skills: indexed grid cells ---------------------------------------- */
.chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: skill;
}
.chip {
  counter-increment: skill;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 128px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  transition: background .25s ease, color .25s ease;
}
.chip::before {
  content: "0" counter(skill);
  font-family: var(--sans);
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--faint);
  transition: color .25s ease;
}
.chip:hover {
  background: var(--lime);
  color: var(--on-lime);
}
.chip:hover::before { color: var(--on-lime); }

/* ----- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}

.contact-info {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line-strong);
}
.contact-item {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .ci-label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-item .ci-value {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 480;
  line-height: 1.5;
  word-break: break-word;
}
.contact-item a.ci-value:hover { color: var(--lime); }
.contact-item address {
  font-style: normal;
  font-family: var(--sans);
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Form: underline fields */
.contact-form {
  align-self: start;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field { margin-bottom: 28px; }
.field label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 450;
  color: var(--text);
  padding: 10px 2px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color .25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); font-style: italic; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--lime);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-note {
  margin: 0 0 22px;
  font-size: .85rem;
  color: var(--faint);
}
.form-status {
  margin: 14px 0 0;
  font-size: .9rem;
  color: var(--lime);
  min-height: 1.2em;
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--ink-2);
  background-image: radial-gradient(700px 340px at 12% 110%, var(--lime-soft), transparent 60%);
  padding-block: clamp(56px, 8vw, 96px) 28px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 44px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.footer-brand .brand { align-items: baseline; }
.footer-brand .brand .brand-name { color: var(--text); }
.footer-brand > p {
  color: var(--muted);
  max-width: 340px;
  margin-top: 18px;
  font-size: .98rem;
  line-height: 1.75;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.footer-contact,
.footer-links { list-style: none; display: grid; gap: 12px; font-size: .96rem; }
.footer-contact a,
.footer-links a { color: var(--muted); }
.footer-contact a:hover,
.footer-links a:hover { color: var(--lime); }
.footer-contact address {
  font-style: normal;
  color: var(--faint);
  line-height: 1.7;
  font-size: .92rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 22px; list-style: none; }
.footer-bottom-links a { color: var(--faint); }
.footer-bottom-links a:hover { color: var(--lime); }

/* ----- Legal pages ------------------------------------------------------ */
.legal {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 72px));
  padding-bottom: clamp(72px, 9vw, 120px);
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.back-home:hover { color: var(--lime); }
.back-home svg { transition: transform .2s ease; }
.back-home:hover svg { transform: translateX(-4px); }

.legal-head {
  padding-bottom: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-strong);
}
.legal-head h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 520;
  margin-bottom: 12px;
}
.legal-head .updated {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}

.legal-body { max-width: 720px; }
.legal-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 540;
  margin-top: 52px;
  margin-bottom: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal-body p,
.legal-body li { color: var(--muted); line-height: 1.8; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--lime); }
.legal-body a:hover { color: #e2ff86; }
.legal-body ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal-body li { margin-bottom: 8px; }
.legal-body address {
  font-style: normal;
  color: var(--muted);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 4px;
  padding: 20px 24px;
  line-height: 1.8;
}

/* ----- Reveal animation (progressive enhancement) ----------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-badge .dot { animation: none; }
  .btn, .card, .chip, .nav-menu { transition: none; }
}

/* ----- Responsive ------------------------------------------------------- */
@media (min-width: 560px) {
  .chips { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }

  .about-grid { grid-template-columns: 1.5fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1.1fr .9fr; }

  /* Services rows: index | title | description */
  .card {
    grid-template-columns: 88px 1fr 1.35fr;
    gap: 24px;
    align-items: start;
  }
  .card h3 { margin-top: -6px; }
}

@media (min-width: 900px) {
  .chips { grid-template-columns: repeat(4, 1fr); }
  .chip { min-height: 150px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  /* Desktop: inline nav, no overlay */
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    padding: 0;
    background: transparent;
    background-image: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-links {
    flex-direction: row;
    gap: 30px;
    counter-reset: navitem;
  }
  .nav-links li { border-bottom: 0; }
  .nav-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 0;
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-links a::before { font-size: .62rem; color: var(--lime); }
  .nav-links a:hover { color: var(--text); }

  .nav-cta .btn { width: auto; padding: 14px 24px; }

  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-visual { justify-self: end; }
  .hero-portrait { width: min(380px, 30vw); }
}
