/* Rootline Genomics — static stylesheet
   Plant genomics & bioinformatics consulting */

:root {
  --page: #FAF8F2;
  --surface: #FFFFFF;
  --panel: #F3EFE4;
  --ink: #19241F;
  --ink-2: #3C463F;
  --muted: #5A655F;
  --muted-2: #6A746E;
  --line: #EAE4D6;
  --line-2: #E2DCCD;
  --teal: #2C7370;
  --teal-deep: #0F3A38;
  --teal-tint: #E4EEEC;
  --sky: #5E94A8;
  --gold: #C9A14A;
  --clay: #BB6A3C;
  --sage: #7FB7AE;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--white { background: var(--surface); border-top: 1px solid #EFE9DC; border-bottom: 1px solid #EFE9DC; }
.section--panel { background: var(--panel); border-top: 1px solid #E7E1D3; border-bottom: 1px solid #E7E1D3; }
.section--dark { background: var(--teal-deep); color: #CFE0DB; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.section--dark .eyebrow { color: var(--sage); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.h1 { font-size: clamp(38px, 5vw, 55px); line-height: 1.07; }
.h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; }
.section--dark .h1, .section--dark .h2 { color: #F4F1E8; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.mono { font-family: var(--mono); }
.italic { font-style: italic; }
em, .accent { color: var(--teal); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}
.btn--primary { background: var(--teal-deep); color: #F4F1E8; }
.btn--primary:hover { background: var(--teal); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: #CFC8B8; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: #F4F1E8; color: var(--teal-deep); }
.btn--light:hover { background: #FFFFFF; }
.btn--outline-light { background: transparent; color: #DCEAE6; border-color: rgba(127,183,174,0.5); }
.btn--outline-light:hover { border-color: var(--sage); background: rgba(255,255,255,0.04); }
.btnrow { display: flex; gap: 13px; flex-wrap: wrap; }

.textlink { font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: none; white-space: nowrap; }
.textlink:hover { color: var(--teal-deep); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,242,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E7E1D3;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 13px; padding-bottom: 13px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 2.5px;
  width: 34px; height: 34px; border-radius: 9px; background: var(--teal-deep);
  padding-bottom: 9px; flex: none;
}
.brand__mark i { width: 3px; border-radius: 1px; display: block; }
.brand__mark i:nth-child(1) { height: 9px; background: var(--sage); }
.brand__mark i:nth-child(2) { height: 14px; background: var(--gold); }
.brand__mark i:nth-child(3) { height: 7px; background: var(--sky); }
.brand__mark i:nth-child(4) { height: 12px; background: var(--sage); }
.brand--light .brand__mark { background: #14514E; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.brand__name span { color: var(--teal); }
.brand--light .brand__name { color: #F4F1E8; }
.brand--light .brand__name span { color: var(--sage); }
.brand__tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.15em; color: #928C7C; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav > a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 9px 13px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.nav > a:not(.btn):hover { background: #E6EFEC; color: #1C5C58; }
.nav__cta { margin-left: 6px; padding: 11px 17px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; }
.hero__grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; max-width: 53ch; }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid #E7E1D3; padding-top: 22px; margin-top: 36px; }
.stat__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 5px; }
.stat__v { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Genome browser motif ---------- */
.browser-wrap { position: relative; }
.browser-glow { position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--teal-tint) 0%, rgba(228,238,236,0) 70%); }
.browser { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 22px; box-shadow: 0 26px 64px -30px rgba(15,58,56,0.32); }
.browser__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.browser__title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #8A8577; }
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: #E2DCCD; display: block; }
.browser__dots i:last-child { background: var(--gold); }
.track { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px dashed #F0EBDF; }
.track:last-child { border-bottom: 0; }
.track__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: #B0AA99; width: 42px; flex: none; text-align: right; padding-right: 12px; }
.track__body { flex: 1; }
.ref-bar { height: 13px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, var(--teal) 8px 15px, var(--sky) 15px 25px, var(--clay) 25px 30px, var(--sage) 30px 37px, var(--gold) 37px 41px); }
.reads { display: flex; flex-direction: column; gap: 3px; }
.reads__row { display: flex; gap: 4px; }
.read { height: 5px; border-radius: 2px; background: #A9C8C2; }
.gene { position: relative; height: 14px; display: flex; align-items: center; }
.gene__line { position: absolute; left: 0; right: 0; height: 2px; background: #D8E4E1; }
.gene__exon { position: relative; height: 14px; background: var(--teal); border-radius: 2px; }
.gene__arrow { position: relative; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--teal); margin-left: 6px; }
.meth { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.dot--open { background: transparent; border: 1.5px solid #9CC3BC; }
.browser__foot { margin-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: #A8A290; display: flex; justify-content: space-between; }
.browser__foot span:last-child { color: var(--teal); }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--page); border: 1px solid var(--line); border-radius: 15px; padding: 28px; }
.section--white .card { background: var(--page); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-tint); margin-bottom: 18px; position: relative; }
.card__icon .circle { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.iconlines { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.iconlines i { display: block; border-radius: 2px; height: 3px; }
.iconlines i:nth-child(1) { width: 18px; background: var(--teal); }
.iconlines i:nth-child(2) { width: 12px; background: var(--sky); }
.iconlines i:nth-child(3) { width: 20px; background: var(--gold); }

/* services overview grid (home) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.svc-cell { background: var(--surface); padding: 30px 26px; text-decoration: none; display: block; transition: background .15s ease; }
.svc-cell:hover { background: #FBFAF5; }
.svc-cell .num { font-family: var(--mono); font-size: 12px; color: #A8A290; margin-bottom: 14px; }
.svc-cell h3 { font-family: var(--sans); font-weight: 600; font-size: 18.5px; color: var(--ink); margin-bottom: 8px; }
.svc-cell p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }

/* ---------- Platforms band ---------- */
.ribbon { display: flex; height: 6px; width: 100%; }
.ribbon i { display: block; }
.ribbon i:nth-child(1){flex:2;background:var(--sage);}
.ribbon i:nth-child(2){flex:1;background:var(--gold);}
.ribbon i:nth-child(3){flex:3;background:var(--sky);}
.ribbon i:nth-child(4){flex:1;background:var(--clay);}
.ribbon i:nth-child(5){flex:2.4;background:var(--teal);}
.ribbon i:nth-child(6){flex:1;background:var(--sage);}
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.sublabel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--sage); margin-bottom: 16px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid rgba(127,183,174,0.4); background: rgba(255,255,255,0.03); color: #DCEAE6; padding: 9px 16px; border-radius: 999px; font-size: 14px; }

/* ---------- About teaser ---------- */
.media-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 54px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.about-body p { font-size: 16.5px; line-height: 1.68; color: var(--ink-2); margin: 0 0 16px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.tag { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); padding: 8px 14px; border-radius: 8px; font-size: 13.5px; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .h2 { margin-bottom: 18px; }
.cta p { font-size: 17.5px; line-height: 1.6; color: #A8C2BC; margin: 0 auto 34px; max-width: 54ch; }
.cta .btnrow { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #BFD4CE; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr; gap: 44px; padding-top: 62px; padding-bottom: 30px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__desc { font-size: 14.5px; line-height: 1.65; color: #A8C2BC; max-width: 42ch; margin: 0 0 22px; }
.footer__legal { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: #7FA59E; max-width: 50ch; margin: 0; }
.footer__h { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #6E938C; margin: 0 0 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14.5px; color: #CBDDD8; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.footer__col a:hover { color: #FFFFFF; }
.footer__col a .led { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer__bar span { font-size: 12.5px; color: #7FA59E; }
.footer__bar .mono { font-size: 11px; letter-spacing: 0.1em; color: #6E938C; }

/* ---------- Services page ---------- */
.svc-block { border-top: 1px solid #EFE9DC; }
.svc-block:last-of-type { border-bottom: 1px solid #EFE9DC; }
.svc-block__inner { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 46px; padding: 56px 0; }
.svc-block h2 { font-size: 29px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; }
.svc-block .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 13px; }
.svc-block p.desc { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.detail { background: var(--surface); padding: 22px; }
.detail__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 13px; text-transform: uppercase; }
.detail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.detail li { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.detail li::before { content: "–"; color: var(--sage); flex: none; }
.jumpnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jumpnav a { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; text-decoration: none; }
.jumpnav a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- About page extras ---------- */
.about-hero { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start; }
.role { font-size: 17px; color: var(--teal); font-weight: 500; margin: 0 0 26px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 10px; }
.linkpill { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 15px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.linkpill:hover { border-color: var(--teal); color: var(--teal); }
.linkpill .led { width: 7px; height: 7px; border-radius: 50%; }
.factcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 16px; }
.fact { margin-bottom: 14px; }
.fact:last-child { margin-bottom: 0; }
.fact__k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 4px; text-transform: uppercase; }
.fact__v { font-size: 14px; color: var(--ink-2); }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 18px; line-height: 1.72; color: #3A443E; margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }
.cols-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.timeline { display: flex; flex-direction: column; gap: 28px; }
.tl { position: relative; padding-left: 24px; border-left: 2px solid var(--line-2); }
.tl::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); border: 2px solid var(--panel); }
.tl.sky::before { background: var(--sky); }
.tl.gold::before { background: var(--gold); }
.tl .when { font-family: var(--mono); font-size: 11.5px; color: var(--teal); margin-bottom: 6px; }
.tl h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin-bottom: 3px; }
.tl .where { font-size: 14px; color: var(--muted-2); margin-bottom: 8px; }
.tl p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.pub { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid #EFE9DC; }
.pub:last-child { border-bottom: 1px solid #EFE9DC; }
.pub .yr { font-family: var(--mono); font-size: 12px; color: #7A8079; }
.pub .badge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--teal); margin-top: 5px; }
.pub .badge.pre { color: var(--clay); }
.pub h3 { font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1.35; margin-bottom: 5px; }
.pub .src { font-size: 13.5px; color: var(--muted-2); line-height: 1.4; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.skill .detail__label { margin-bottom: 16px; }
.skill .chips .chip { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 8px; padding: 7px 12px; font-size: 13px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: start; }
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: 0 18px 48px -34px rgba(15,58,56,0.3); }
.field { margin-bottom: 16px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.lopt { color: #9A917C; font-weight: 400; }
input, select, textarea {
  width: 100%; background: var(--surface); border: 1px solid #D9D2C2; border-radius: 9px;
  padding: 11px 13px; font-size: 14.5px; font-family: inherit; color: var(--ink); line-height: 1.5;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(44,115,112,0.12); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 12.5px; color: #8A8577; }
.aside { display: flex; flex-direction: column; gap: 18px; }
.aside__dark { background: var(--teal-deep); border-radius: 16px; padding: 24px; color: #CFE0DB; }
.aside__dark .footer__h { color: var(--sage); }
.aside__dark a { color: #F4F1E8; }
.aside__email { display: block; font-size: 16px; color: #F4F1E8; text-decoration: none; margin-bottom: 14px; font-weight: 500; }
.aside__email:hover { color: var(--sage); }
.aside__orcid { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #CBDDD8; text-decoration: none; }
.aside__orcid:hover { color: #FFF; }
.aside__card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.checklist li::before { content: "–"; color: var(--sage); flex: none; }
.aside__note { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 24px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.aside__note strong { color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.step { background: var(--surface); padding: 26px 24px; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--teal); margin-bottom: 13px; }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin-bottom: 7px; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.privacy { max-width: 920px; margin: 0 auto; }
.privacy__card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.privacy__icon { display: inline-flex; width: 34px; height: 34px; border-radius: 9px; background: var(--teal-tint); align-items: center; justify-content: center; flex: none; }
.privacy__icon i { width: 12px; height: 12px; border-radius: 3px; background: var(--teal); display: block; }
.privacy__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.privacy p { font-size: 16px; line-height: 1.68; color: #434E48; margin: 0 0 22px; }
.privacy__legal { border-top: 1px solid #EFE9DC; padding-top: 18px; }
.privacy__legal p { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: #8A8577; margin: 0; }

.page-head { padding-top: 74px; padding-bottom: 44px; }
.page-head .lead { margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid, .media-grid, .about-hero, .contact-grid, .cols-2, .cols-2-eq, .svc-block__inner { grid-template-columns: 1fr; gap: 36px; }
  .browser-wrap { max-width: 460px; }
  .cards-3, .svc-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .cards-3, .svc-grid, .skills-grid, .field-2, .footer__grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .stat-row { gap: 22px; }
  .nav__cta { margin-left: 0; }
}

/* ---------- Home (Direction B) ---------- */
.hero-b__grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 52px; align-items: center; padding: 78px 0 30px; }
.hero-b__grid h1 { color: #F4F1E8; margin-bottom: 22px; }
.hero-b__grid .lead { color: #A8C2BC; max-width: 50ch; margin-bottom: 32px; }
.hero-b__meta { font-family: var(--mono); font-size: 12px; color: #7FA59E; letter-spacing: 0.04em; border-top: 1px solid rgba(127,183,174,0.2); padding-top: 18px; margin-top: 30px; }
.dir-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.dir-row { display: grid; grid-template-columns: 46px minmax(0,1.5fr) minmax(0,1fr) 22px; align-items: center; gap: 18px; padding: 19px 24px; text-decoration: none; border-top: 1px solid #EFE9DC; transition: background .15s ease; }
.dir-row:first-child { border-top: 0; }
.dir-row:hover { background: #FBFAF5; }
.pipe-arrow { color: #BFB6A1; font-size: 18px; align-self: center; padding-top: 8px; }
@media (max-width: 920px) { .hero-b__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .dir-row { grid-template-columns: 34px 1fr; } .dir-row .dir-tags, .dir-row .dir-arrow { display: none; } }

/* ---------- Language switcher ---------- */
.nav__lang { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-decoration: none; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; margin-left: 8px; transition: border-color .15s ease, color .15s ease; }
.nav__lang:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 600px) { .nav__lang { margin-left: 0; } }
