*, *::before, *::after { box-sizing: border-box; }

:root{
  /* ...keep your existing vars... */
  --header-offset: 108px; /* header total height (tweak to 96/112 if needed) */
}

/* make anchor jumps stop below the fixed header too */
/* Use ONE offset system everywhere */
:root{
  --header-offset: 108px;
}

/* mobile header is taller because nav wraps */
@media (max-width: 520px){
  :root{
    --header-offset: 160px; /* try 140–160px */
  }
}

/* Make sure all scroll offset uses the same var */
html{ scroll-padding-top: var(--header-offset); }
body{ padding-top: var(--header-offset); }
section, .tab-section, h1, h2, h3{ scroll-margin-top: var(--header-offset); }

/* reserve space so content never sits under the header */
body{
  padding-top: var(--header-offset);
}

/* keep header pinned */
.site-header{
  position: fixed;  /* if you already use fixed, keep it; if sticky wasn't working, fixed will */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
}

/* optional: prevent any width “jump” due to fixed positioning */
.site-header .container{
  width: 100%;
}



/* Softer, more “creamy green” palette */
:root{
  --bg: #f2f7f1;           /* calmer creamy green */
  --surface: #ffffff;
  --text: #0f1f17;
  --muted: #40554b;        /* softer muted text */
  --accent: #2f7d63;       /* confident, not neon */
  --accent-soft: #e2f0ea;  /* soft highlight */
  --divider: #d6e2da;
  --radius-lg: 1rem;
  --shadow: 0 8px 24px rgba(15,31,23,0.08);
}

html, body{
  margin: 0;
  padding: 0;              /* FIX: was “padding: 20;” (no unit) */
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

/* Containers */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header + footer “card” */
.nav-container,
.site-footer .footer-grid{
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.6rem 0.6rem;
}

.nav-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Logo */
.logo{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-img{
  height: 34px;
  width: 34px;
  border-radius: 50%;
}
.logo-text{
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--accent);    /* your request: just change colour */
}
.logo-text span{
  color: inherit;          /* make “Intel” same as “Sloths” */
}

/* NAV – calmer, more premium pills */
.main-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.nav-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 0 10px;

  border-radius: 9999px;
  border: 1px solid rgba(15,31,23,0.10);

  background: rgba(255,255,255,0.92);
  color: var(--muted);

  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;

  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover{
  color: var(--text);
  border-color: rgba(47,125,99,0.35);
}

/* Active: subtle, not neon */
.nav-link.active,
.nav-link[aria-current="page"]{
  border-color: rgba(47,125,99,0.45);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Layout helpers */
.grid-1{ display: grid; }
.center-horizontal{ justify-items: start; }
.center-vertical{ align-items: center; min-height: 56vh; }

/* Typography */
h1, h2, h3{
  color: var(--text);
  margin: 0.5rem 0;
  font-weight: 650;
  letter-spacing: -0.015em;
}
h1{ font-size: clamp(1.9rem, 3.6vw, 2.4rem); }
h2{ font-size: 1.25rem; margin-top: 1.2rem; }

p{ margin: 0.9rem 0; }

a{ color: var(--accent); }
a:hover{ text-decoration: underline; }

.lead{
  margin: 0.45rem 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Pill tagline */
.pill{
  display: inline-block;
  margin-top: 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(15,31,23,0.10);
  padding: 0.4rem 0.9rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
}

/* Divider */
.divider{
  height: 1px;
  background: var(--divider);
  margin: 1.6rem 0;
}

/* Footer */
.site-footer{
  background: var(--bg);
  padding: 1rem 0 1.4rem;
}
.footer-grid{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}
.footer-links{
  display: flex;
  gap: 0.9rem;
}
.footer-links a{
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}
.footer-links a:hover{
  color: var(--text);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 799px){
  .footer-grid{ flex-direction: column; align-items: flex-start; }
}

.sub-divider {
  width: 48px;
  height: 1px;
  background: var(--divider);
  margin: 1.2rem 0;
  opacity: 0.7;
}

.about-quote {
  max-width: 720px;
  margin: 3rem 0 3.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--divider);
}

.quote-lead {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.quote-body {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

.spacer-lg {
  height: 2.4rem;
}

.spacer-xl {
  height: 3.2rem;
}

.emphasis {
  font-weight: 500;
  color: var(--text);
}

.about-quote {
  margin-left: 1.5rem;
}

.hybrid-diagram {
  max-width: 680px;
  margin: 2.4rem auto 3rem;
  color: var(--muted);
}

.hybrid-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

/* SVG text via class so we can size it responsively */
.hybrid-center {
  font-size: 14px;
  font-weight: 500;
  fill: currentColor;
}

/* Legend: responsive pills */
.hybrid-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.6rem 0 0.9rem;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(15,31,23,0.12);
  background: rgba(255,255,255,0.9);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.diagram-caption {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
  margin: 0;
}

/* Mobile tuning */
@media (max-width: 520px) {
  .hybrid-diagram { margin: 2rem auto 2.4rem; }
  .diagram-caption { font-size: 0.9rem; text-align: left; }
  .hybrid-legend { justify-content: flex-start; }
  .legend-pill { font-size: 0.82rem; }
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Remove default marker and make summary behave like a nav pill */
.nav-dropdown > summary {
  list-style: none;
}
.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

/* Add a subtle caret, optional */
.nav-dropdown > summary::after {
  content: "≡";
  margin-left: 0.5rem;
  font-size: 1.2em;
  opacity: 0.5;
  letter-spacing: -0.05em;
}


/* Dropdown menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--divider);
  box-shadow: 0 12px 28px rgba(15,31,23,0.12);
  z-index: 2000;
}

/* Menu links */
.nav-dropdown-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: rgba(47,125,99,0.10);
  color: var(--text);
}

/* Close menu when not open */
.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

/* Mobile: make dropdown menu full-width-ish and not clipped */
@media (max-width: 520px) {
  .nav-dropdown-menu {
    left: 0;
    right: auto;
    min-width: 210px;
  }
}

/* Prevent fixed nav from covering section headers */
section,
.tab-section {
  scroll-margin-top: var(--header-offset);
}

/* =========================================
   CONTACT PAGE — Jungle/Earth theme (scoped)
   Keep text + structure unchanged
========================================= */

body.sloths-page{
  /* Earth palette (overrides only on contact page) */
  --bg: #FAF8F4;            /* parchment sand */
  --surface: #FFFFFF;       /* paper */
  --text: #1C1A17;          /* charcoal bark */
  --muted: #6E665E;         /* dry wood */
  --divider: #D9CFC2;       /* warm divider */
  --accent: #2F4A3C;        /* deep forest */
  --accent-soft: #EFE8DF;   /* soft clay */
  --shadow: 0 10px 28px rgba(28,26,23,0.10);
}

/* Make the main contact content feel “considered” (a calm reading panel) */
body.sloths-page main .tab-section{
  padding: 4rem 0; /* slightly slower pacing */
}

body.sloths-page main .tab-section .container{
  /* create a “paper card” without changing HTML structure */
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
}

/* Typography tuning: calm authority, better scanning */
body.sloths-page h1{
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
}

body.sloths-page p{
  max-width: 70ch;     /* deliberate line length */
  margin: 1.05rem 0;   /* more breathing room */
  color: var(--text);
}

/* Divider becomes warmer and slightly more present */
body.sloths-page .divider{
  background: var(--divider);
  margin: 1rem 0 1.8rem;
  opacity: 0.95;
}

/* Links: confident, understated */
body.sloths-page a{
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.sloths-page a:hover{
  text-decoration-thickness: 2px;
}

/* Mobile: keep it airy, not cramped */
@media (max-width: 520px){
  body.sloths-page main .tab-section{
    padding: 3rem 0;
  }

  body.sloths-page main .tab-section:first-of-type{
    padding-top: 8rem;
  }

  body.sloths-page main .tab-section + .tab-section{
    margin-top: 4rem;
  }

  body.sloths-page main .tab-section .container{
    padding: 4rem 2rem;
  }

  body.sloths-page p{
    max-width: 100%;
  }
}





/* =========================================
   NAVIGATION — remove ALL underlines
========================================= */

nav a,
nav a:hover,
nav a:focus,
nav a:active,
nav a.active {
  text-decoration: none !important;
}

/* =========================================
   APPROACH — center hybrid intelligence SVG
========================================= */

.hybrid-diagram {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hybrid-diagram img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* =========================================
   FIX: About section paragraph full width
   (no text or style changes)
========================================= */

p {
  max-width: 100% !important;
}


/* =========================================
   CONTACT FORM
========================================= */

.contact-form{
  margin-top: 1.2rem;
  max-width: 720px;
}

.contact-form .form-row{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.9rem 0;
}

.contact-form label{
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-soft, #d9cfc2);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  outline: none;
}

.contact-form textarea{
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: var(--accent-brown, #C07A5A);
  box-shadow: 0 0 0 3px rgba(192,122,90,0.18);
}

.contact-form .btn{
  margin-top: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft, #d9cfc2);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.contact-form .btn:hover{
  transform: translateY(-1px);
}

/* =========================================
   CONTACT FORM — consistent alignment on web
========================================= */

.contact-form{
  margin-top: 1.2rem;
  max-width: 720px;
}

.contact-form .form-row{
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.95rem 0;
}

.contact-form label{
  font-weight: 550;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  outline: none;

  /* Key: makes sizing consistent across browsers */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact-form textarea{
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: rgba(47,125,99,0.55);
  box-shadow: 0 0 0 3px rgba(47,125,99,0.16);
}

.contact-form button{
  margin-top: 0.6rem;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid rgba(15,31,23,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.contact-form button:hover{
  color: var(--text);
  border-color: rgba(47,125,99,0.35);
}

.footer-meta p {
  margin: 0.1rem 0;
}


/* Make ALL hash/anchor jumps stop below the sticky header */
html {
  scroll-padding-top: var(--anchor-offset);
}

/* Extra safety: ensures section elements also respect the offset */
.tab-section {
  scroll-margin-top: var(--anchor-offset);
}

h1, h2, h3 {
  scroll-margin-top: var(--anchor-offset);
}

.work-links {
  font-size: 0.9em;
  opacity: 0.85;
}

/* Make figures and images span full content width */
figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.profile-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-decoration: none;
}

/* 50% width figure */
.figure-half {
  max-width: 50%;
  margin: 1.5rem auto; /* keeps it centred */
}

/* Zoom behaviour */
.zoomable img {
  width: 100%;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

/* Click / tap zoom */
.zoomable img:active {
  transform: scale(1.5);
  cursor: zoom-out;
}

.zoomable img {
  transition: transform 0.25s ease;
}

.zoomable img:hover {
  transform: scale(2);
}

.tab-section:first-of-type {
  margin-top: 3rem;
}
