@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root {
  --cream: #f7f4ee;
  --stone: #e7e3dc;
  --forest: #173d35;
  --forest-dark: #102e28;
  --charcoal: #222222;
  --sage: #a8b2a3;
  --white: #ffffff;
  --border: #d8d2c8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: "DM Sans", sans-serif;
}


/* MAIN PAGE */

.site-layout {
  display: flex;
  min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
  width: 275px;
  min-height: 100vh;

  position: fixed;
  left: 0;
  top: 0;

  padding: 35px 25px;

  background: #f2eee7;
  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;
}

.profile-area {
  text-align: center;
}

.profile-placeholder {
  width: 260px;
  height: 260px;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  margin-bottom: 10px;

  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.profile-placeholder img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transform: none;
  border-radius: 0;
}

.profile-name {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;

  margin-top: 15px;
  margin-bottom: 8px;
}

.profile-title {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-style: italic;

  line-height: 1.5;

  color: #54514c;
}


/* SOCIAL ICONS */

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;

  margin-top: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: var(--white);
  color: var(--forest);

  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);

  transition: 0.25s ease;
}

.social-links i {
  font-size: 19px;
  line-height: 1;
}

.social-links a:hover {
  background: var(--forest);
  color: white;

  transform: translateY(-2px);
}


/* NAVIGATION */

.sidebar-nav {
  margin-top: 35px;
  padding-top: 25px;

  border-top: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 13px 16px;

  border-radius: 12px;

  text-decoration: none;
  color: var(--charcoal);

  font-size: 15px;

  transition: 0.25s ease;
}

.nav-item span {
  width: 22px;
  text-align: center;
}

.nav-item:hover {
  background: #e9e4db;
}

.nav-item.active {
  background: var(--forest);
  color: white;
}


/* SIDEBAR FOOTER */

.sidebar-footer {
  margin-top: auto;

  padding-top: 25px;

  border-top: 1px solid var(--border);

  font-size: 12px;
  line-height: 1.7;

  color: #59554f;
}

.sidebar-footer span {
  font-family: "Playfair Display", serif;
  font-style: italic;
}


/* MAIN CONTENT */

.main-content {
  margin-left: 275px;
  width: calc(100% - 275px);

  min-height: 100vh;

  padding: 45px;
}


/* HERO */

.hero {
  min-height: 520px;

  display: block;

  padding: 70px 55px;
}

.hero-copy {
  max-width: 1000px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;

  letter-spacing: 3px;

  color: var(--forest);

  margin-bottom: 22px;
}

.hero-heading {
  max-width: 900px;

  font-size: clamp(48px, 5vw, 82px);
  line-height: 0.98;

  letter-spacing: -3px;

  margin-bottom: 28px;

  color: var(--charcoal);
}

.hero-heading span {
  display: block;

  font-family: "Playfair Display", serif;
  font-weight: 500;

  letter-spacing: -2px;
}

.hero-description {
  max-width: 760px;

  font-size: 18px;
  line-height: 1.7;

  color: #56524d;

  margin-bottom: 35px;
}


/* BUTTONS */

.hero-buttons {
  display: flex;
  gap: 16px;

  flex-wrap: wrap;
}

.button {
  min-height: 52px;

  padding: 0 24px;

  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  font-weight: 600;

  text-decoration: none;

  transition: 0.25s ease;
}

.button.primary {
  background: var(--forest);
  color: white;
}

.button.primary:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid var(--forest);

  color: var(--forest);
  background: transparent;
}

.button.secondary:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* TOOLS BAR */

.tools-bar {
  width: 100%;
  margin-top: 55px;

  display: flex;
  align-items: center;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;

  min-height: 90px;
  overflow: hidden;
}

.tools-label {
  flex: 0 0 180px;

  padding: 20px 24px;

  border-right: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tools-label span {
  font-size: 9px;
  font-weight: 700;

  letter-spacing: 2px;

  color: #77716a;

  margin-bottom: 3px;
}

.tools-label strong {
  font-size: 15px;
  font-weight: 700;

  color: var(--charcoal);
}

.tools-window {
  flex: 1;
  overflow: hidden;

  padding: 0 25px;
}

.tools-track {
  display: flex;
  align-items: center;

  width: max-content;
  gap: 0;

  animation: tools-scroll 75s linear infinite;
}

.tools-group {
  display: flex;
  align-items: center;

  gap: 55px;

  padding-right: 55px;

  flex-shrink: 0;
}

.tools-track img {
  height: 42px;
  width: auto;

  max-width: 165px;

  object-fit: contain;

  flex-shrink: 0;
}
@keyframes tools-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
/* EXPERIENCE SECTION */

.experience-section {
  padding: 95px 55px 80px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--forest);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.section-heading > p:last-child {
  font-size: 17px;
  line-height: 1.7;
  color: #625d56;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.experience-card {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 30px;

  padding: 26px 28px;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 18px;

  transition: 0.25s ease;
}

.experience-card:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.experience-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--forest);
  padding-top: 5px;
}

.experience-content h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 5px;
  color: var(--charcoal);
}

.experience-content h3 span {
  font-size: 15px;
  font-weight: 500;
  color: #7a746c;
}

.experience-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 9px;
}

.experience-content p {
  font-size: 15px;
  line-height: 1.65;
  color: #5d5852;
}
/* DASHBOARD PAGE VIEWS */

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}
/* COMPACT SIDEBAR */

.sidebar {
  padding: 22px 25px;
}

.profile-placeholder {
  width: 200px;
  height: 200px;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 26px;
  margin-top: 4px;
  margin-bottom: 5px;
}

.profile-title {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.social-links {
  margin-bottom: 22px;
}

.sidebar-nav {
  margin-top: 4px;
}
/* COMPACT HOME LAYOUT */

.main-content {
  padding: 22px 38px;
}

.hero {
  min-height: auto;
  padding: 30px 55px 25px;
}

.hero-heading {
  font-size: clamp(46px, 4.3vw, 70px);
}

.hero-description {
  margin-top: 18px;
  margin-bottom: 24px;
}

.tools-bar {
  margin-top: 38px;
}
/* HOME DASHBOARD */

.home-dashboard {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 118px);
  gap: 12px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;

  color: var(--charcoal);
  text-decoration: none;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;
  transition: 0.25s ease;
}

.dashboard-card-large,
.dashboard-card-wide {
  grid-column: span 2;
}

.dashboard-card:hover {
  background: var(--white);
  border-color: #c8c1b7;
  transform: translateY(-2px);
}

.card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--forest);
}

.dashboard-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 500;
  margin: 4px 0;
}

.dashboard-card p {
  font-size: 12px;
  line-height: 1.45;
  color: #6d675f;
  max-width: 440px;
}

.card-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
}
/* HOME SIZE REFINEMENTS */

/* Thinner Daily Drivers strip */
.tools-bar {
  min-height: 72px;
  margin-top: 28px;
}

.tools-label {
  flex: 0 0 170px;
  padding: 12px 20px;
}

.tools-window {
  padding: 0 22px;
}

.tools-track img {
  height: 36px;
  max-width: 150px;
}

/* Slightly larger dashboard cards */
.home-dashboard {
  margin-top: 14px;
  grid-template-rows: repeat(2, 148px);
}

.dashboard-card {
  padding: 18px 20px;
}

.dashboard-card h3 {
  font-size: 23px;
}
/* COMPACT EXPERIENCE SCREEN */

.experience-section {
  height: calc(100vh - 44px);
  padding: 28px 44px;
  overflow: hidden;
}

.experience-section .section-heading {
  max-width: 850px;
  margin-bottom: 20px;
}

.experience-section .section-eyebrow {
  margin-bottom: 6px;
}

.experience-section .section-heading h2 {
  font-size: 38px;
  margin-bottom: 8px;
}

.experience-section .section-heading > p:last-child {
  font-size: 14px;
  line-height: 1.5;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.experience-card {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
}

.experience-date {
  font-size: 9px;
  letter-spacing: 1.3px;
  padding-top: 0;
  margin-bottom: 5px;
}

.experience-content h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.experience-content h3 span {
  font-size: 12px;
}

.experience-content h4 {
  font-size: 12px;
  margin-bottom: 4px;
}

.experience-content p {
  font-size: 11px;
  line-height: 1.4;
}

.experience-card:last-child {
  grid-column: auto;
}
/* SERVICES SCREEN */

.services-section {
  height: calc(100vh - 44px);
  padding: 22px 36px;
  overflow: hidden;
}

.services-section .section-heading {
  max-width: 950px;
  margin-bottom: 18px;
}

.services-section .section-eyebrow {
  margin-bottom: 6px;
}

.services-section .section-heading h2 {
  font-size: 38px;
  margin-bottom: 8px;
}

.services-section .section-heading > p:last-child {
  max-width: 900px;
  font-size: 13px;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 132px);
  gap: 10px;
}

.service-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px 17px;
  overflow: hidden;
  transition: 0.25s ease;
}

.service-card:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.service-number {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--forest);
  margin-bottom: 7px;
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 7px;
}

.service-card p {
  font-size: 12px;
  line-height: 1.5;
  color: #625d56;
}

.services-flexibility {
  margin-top: 10px;
  min-height: 82px;
  padding: 14px 18px;

  background: var(--forest);
  border-radius: 15px;

  display: grid;
  grid-template-columns: 180px 290px 1fr;
  gap: 20px;
  align-items: center;
}

.services-flexibility > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d9e3de;
}

.services-flexibility h3 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}

.services-flexibility p {
  font-size: 12px;
  line-height: 1.5;
  color: #d9e3de;
}

/* =========================
   TECH STACK
========================= */

.tech-stack-section {
  padding: 48px 42px;
}

.tech-showcase {
  position: relative;
  margin-top: 28px;
  min-height: 360px;
  background: #174c43;
  border-radius: 24px;
  padding: 32px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech-carousel {
  width: 100%;
  max-width: 620px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-slide {
  display: none;
  width: 100%;
  min-height: 270px;
  background: #ffffff;
  border-radius: 20px;
  padding: 38px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tech-slide.active {
  display: flex;
  animation: techFade 0.35s ease;
}

.tech-slide img {
  width: 190px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 28px;
}
.tech-slide img[alt="ActiveCampaign"] {
  transform: scale(1.55);
}

.tech-slide img[alt="Anthropic"] {
  transform: scale(1.25);
}

.tech-slide img[alt="Google AI Studio"] {
  transform: scale(1.2);
}

.tech-slide img[alt="Google Workspace"] {
  transform: scale(1.2);
}

.tech-slide h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  color: #222;
}

.tech-slide p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: #5f5a54;
}

.tech-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  transition: 0.25s ease;
  z-index: 5;
}

.tech-arrow:hover {
  background: #ffffff;
  color: #174c43;
}

.tech-prev {
  left: 22px;
}

.tech-next {
  right: 22px;
}

.tech-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-filter {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #174c43;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s ease;
}

.tech-filter:hover {
  background: #eef3f0;
  border-color: #174c43;
}

.tech-filter.active {
  background: #174c43;
  color: #ffffff;
  border-color: #174c43;
}

.tech-learning {
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.tech-learning span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #174c43;
}

.tech-learning h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--charcoal);
}

.tech-learning p {
  margin: 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.6;
  color: #5f5a54;
}

@keyframes techFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   TESTIMONIALS
========================= */

.testimonials-section {
  padding: 48px 42px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  transition: 0.25s ease;
}

.testimonial-card:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.testimonial-number {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #174c43;
}

.testimonial-quote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--charcoal);
}

.testimonial-source {
  margin: auto 0 0;
  padding-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #174c43;
}

.recognition-card {
  margin-top: 16px;
  padding: 26px;
  background: #174c43;
  border-radius: 16px;
  color: white;
  display: grid;
  grid-template-columns: 0.8fr 1.8fr;
  gap: 32px;
  align-items: start;
}

/* Featured Gushwork result spans full recognition panel */
.recognition-card > .featured-recognition {
  grid-column: 1 / -1;
}

.recognition-heading span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.recognition-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
  color: white;
}

.recognition-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.recognition-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
}

.recognition-item span {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}

.recognition-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: white;
}
@media (max-width: 950px) {
  .testimonials-section {
    padding: 32px 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-height: auto;
  }

  .recognition-card {
    grid-template-columns: 1fr;
  }

  .recognition-items {
    grid-template-columns: 1fr;
  }
}
/* =========================
   ABOUT
========================= */

.about-section {
  padding: 48px 42px;
}

.about-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.about-title h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  white-space: nowrap;
}

.about-tony {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: #77716b;
  line-height: 1.2;
}

.about-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about-value-card {
  background: #174c43;
  border: 1px solid #174c43;
  border-radius: 16px;
  padding: 22px;
  min-height: 150px;
  transition: 0.25s ease;
}

.about-value-card span {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.about-value-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.about-value-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.about-value-card span {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #174c43;
}

.about-value-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--charcoal);
}

.about-value-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0.78;
}
.about-value-card:hover {
  background: #1d6257;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .about-section {
    padding: 32px 24px;
  }

  .about-section .section-heading h2 {
    white-space: normal;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}
/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
}
/* MOBILE */

@media (max-width: 950px) {

  .sidebar {
    position: relative;

    width: 100%;
    min-height: auto;
  }

  .site-layout {
    display: block;
  }

  .main-content {
    margin-left: 0;
    width: 100%;

    padding: 25px;
  }

  .mobile-menu-toggle {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 13px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #174c43;
  border: 1px solid #174c43;
  border-radius: 12px;

  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.mobile-menu-icon {
  font-size: 18px;
}

.sidebar-nav {
  display: none;
  margin: 0 20px 24px;
}

.sidebar-nav.mobile-open {
  display: block;
}

  .sidebar-footer {
    display: none;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-heading {
    font-size: 52px;
  }
    .experience-section {
    padding: 60px 20px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

 .section-heading h2 {
  font-size: 36px;
}

/* MOBILE HOME DASHBOARD */
.home-dashboard {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  gap: 12px;
}

.dashboard-card,
.dashboard-card-large,
.dashboard-card-wide {
  grid-column: auto;
  min-height: 135px;
  height: auto;
  overflow: visible;
}
/* MOBILE SERVICES */
.services-grid {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  gap: 12px;
}

.service-card {
  height: auto;
  min-height: 0;
  overflow: visible;
}
}

/* FORCE ABOUT CARD COLORS */
.about-values .about-value-card span {
  color: rgba(255, 255, 255, 0.72) !important;
}

.about-values .about-value-card h3 {
  color: #ffffff !important;
}

.about-values .about-value-card p {
  color: rgba(255, 255, 255, 0.82) !important;
  opacity: 1 !important;
}

/* =========================
   CONTACT
========================= */

.contact-section {
  padding: 42px;
}

.contact-heading {
  margin-bottom: 28px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 18px;
  padding: 18px;
  background: #f7f4ee;
  border: 1px solid var(--border);
  border-radius: 24px;
}


/* LEFT FAQ PANEL */

.contact-faq {
  display: flex;
  flex-direction: column;
  min-height: 510px;
  padding: 28px;
  background: #174c43;
  border-radius: 18px;
  color: #ffffff;
}

.contact-faq-heading {
  margin-bottom: 22px;
}

.contact-faq-heading span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}

.contact-faq-heading h3 {
  margin: 0;
  max-width: 320px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.12;
  color: #ffffff;
}


/* FAQ ITEMS */

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.faq-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-icon {
  font-size: 18px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

.faq-answer {
  display: none;
  padding: 0 30px 16px 38px;
}

.faq-answer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-number {
  color: #ffffff;
}


/* DIRECT CONTACT LINKS */

.contact-direct {
  margin-top: auto;
  padding-top: 24px;
}

.contact-direct > p {
  margin: 0 0 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.contact-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  text-decoration: none;
  transition: 0.25s ease;
}

.contact-direct-link:hover {
  background: #ffffff;
  color: #174c43;
}


/* RIGHT FORM PANEL */

.contact-form-wrap {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #174c43;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7d2ca;
  border-radius: 12px;
  background: #fbfaf7;
  color: #222222;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.contact-field input {
  height: 48px;
  padding: 0 15px;
}

.contact-field textarea {
  min-height: 170px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #9a958e;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #174c43;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 76, 67, 0.08);
}


/* FORM FOOTER */

.contact-form-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
}

.contact-submit {
  padding: 13px 20px;
  border: 1px solid #174c43;
  border-radius: 999px;
  background: #174c43;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.contact-submit:hover {
  background: #1d6257;
  border-color: #1d6257;
  transform: translateY(-1px);
}

.contact-form-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #7b756e;
}


/* TABLET */

@media (max-width: 1000px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-faq {
    min-height: auto;
  }

  .contact-direct {
    margin-top: 28px;
  }
}


/* MOBILE */

@media (max-width: 600px) {
  .contact-section {
    padding: 32px 20px;
  }

  .contact-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .contact-faq,
  .contact-form-wrap {
    padding: 22px;
  }

  .contact-faq-heading h3 {
    font-size: 24px;
  }

  .contact-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-submit {
    width: 100%;
  }
}

/* CONTACT FORM HEIGHT BALANCE */
.contact-form-wrap {
  display: flex;
}

.contact-form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field:last-of-type {
  flex: 1;
}

.contact-field:last-of-type textarea {
  height: 100%;
  min-height: 220px;
}

.contact-form-footer {
  margin-top: auto;
}
/* CONTACT FORM STATUS */
.contact-form-status {
  display: none;
  margin: 4px 0 0;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.contact-form-status.success {
  display: block;
  background: rgba(23, 76, 67, 0.08);
  color: #174c43;
  border: 1px solid rgba(23, 76, 67, 0.18);
}

.contact-form-status.error {
  display: block;
  background: #fff4f2;
  color: #8b3028;
  border: 1px solid #ecd0cc;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/* ========================================
   FINAL MOBILE RESPONSIVE OVERRIDES
======================================== */

@media (max-width: 950px) {

  /* EXPERIENCE */
  .experience-section {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 40px 20px;
  }

  .experience-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }


  /* SERVICES */
  .services-section {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 40px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .service-card {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }


  /* TECH STACK */
  .tech-stack-section {
    padding: 40px 20px;
  }

  .tech-showcase {
    min-height: 0;
    padding: 24px 46px;
  }

  .tech-carousel {
    width: 100%;
    max-width: none;
  }

  .tech-slide {
    width: 100%;
    min-height: 260px;
    padding: 28px 20px;
    box-sizing: border-box;
  }

  .tech-slide img {
    width: 150px;
    max-width: 100%;
    height: 60px;
    margin-bottom: 20px;
  }

  .tech-slide h3 {
    font-size: 25px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .tech-slide p {
    width: 100%;
    max-width: none;
    font-size: 13px;
    line-height: 1.55;
  }

  .tech-prev {
    left: 8px;
  }

  .tech-next {
    right: 8px;
  }

  .tech-categories {
    gap: 7px;
  }
}
/* ========================================
   CONNECTED GROWTH BACKGROUND
======================================== */

.main-content {
  position: relative;
  isolation: isolate;
}

.flow-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.flow-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.48;
}

/* IMPORTANT: removes the giant black fills */
.flow-network path {
  fill: none;
  stroke: rgba(23, 76, 67, 0.075);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.flow-network circle {
  fill: rgba(23, 76, 67, 0.13);
}

.flow-glow {
  position: absolute;
  left: 72%;
  top: 26%;
  width: 520px;
  height: 520px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(23, 76, 67, 0.10) 0%,
    rgba(23, 76, 67, 0.05) 34%,
    rgba(23, 76, 67, 0.015) 52%,
    transparent 72%
  );

  filter: blur(8px);
  transform: translate(-50%, -50%);
}

/* Keep all real website content above the background */
.page-view {
  position: relative;
  z-index: 1;
}

/* Keep mobile version very subtle */
@media (max-width: 950px) {
  .flow-network {
    opacity: 0.45;
  }

  .flow-glow {
    width: 340px;
    height: 340px;
    left: 70%;
    top: 18%;
    opacity: 0.6;
  }
}
/* ========================================
   CONNECTED GROWTH MOTION
======================================== */

.flow-network {
  width: 110%;
  height: 110%;
  left: -5%;
  top: -5%;
  inset: auto;

  transform-origin: center;
  animation: connectedGrowthFloat 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes connectedGrowthFloat {
  0% {
    transform: translate3d(-10px, -6px, 0) scale(1);
  }

  50% {
    transform: translate3d(14px, 10px, 0) scale(1.025);
  }

  100% {
    transform: translate3d(-4px, 16px, 0) scale(1.01);
  }
}

.flow-network circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: connectedNodePulse 4s ease-in-out infinite alternate;
}

.flow-network circle:nth-of-type(2n) {
  animation-delay: -1.5s;
}

.flow-network circle:nth-of-type(3n) {
  animation-delay: -2.5s;
}

@keyframes connectedNodePulse {
  from {
    opacity: 0.35;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1.35);
  }
}

.flow-glow {
  left: var(--flow-x, 72%);
  top: var(--flow-y, 26%);

  transition:
    left 0.18s ease-out,
    top 0.18s ease-out;

  will-change: left, top;
}
@media (max-width: 950px) {
  .flow-network {
    animation-duration: 28s;
  }

  .flow-glow {
    left: 70%;
    top: 18%;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-network,
  .flow-network circle {
    animation: none;
  }
}
/* ========================================
   FEATURED GUSHWORK RECOGNITION
======================================== */

.featured-recognition {
  margin-top: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;

  background: #f7f4ee;
  border: 1px solid rgba(23, 76, 67, 0.14);
  border-radius: 20px;
  color: #222;
}

.featured-recognition-content {
  padding: 6px;
}

.featured-recognition-eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #174c43;
}

.featured-recognition h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.08;
  color: #222;
}

.featured-recognition-description {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #625d56;
}

.featured-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.featured-result {
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(23, 76, 67, 0.12);
  border-radius: 14px;
}

.featured-result strong {
  display: block;
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  color: #174c43;
}

.featured-result span {
  font-size: 11px;
  line-height: 1.45;
  color: #625d56;
}

.featured-recognition-quote {
  margin: 0;
  padding: 16px 18px;
  background: rgba(23, 76, 67, 0.07);
  border-left: 3px solid #174c43;
  border-radius: 0 12px 12px 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
  color: #174c43;
}

.featured-recognition-source {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7d776f;
}

.featured-recognition-proof {
  overflow: hidden;
  border-radius: 16px;
  background: #1e2022;
}

.featured-recognition-proof img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* MOBILE FEATURED RECOGNITION */
@media (max-width: 950px) {
  .featured-recognition {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 18px;
  }

  .featured-recognition h3 {
    font-size: 26px;
  }

  .featured-results {
    grid-template-columns: 1fr 1fr;
  }

  .featured-recognition-proof {
    order: 2;
  }
}

@media (max-width: 500px) {
  .featured-results {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MOBILE APP LAYOUT
   (top identity bar + bottom nav)
========================= */

/* Hidden on desktop */
.mobile-bottom-nav,
.mobile-more-sheet {
  display: none;
}

@media (max-width: 950px) {

  body {
    overflow-x: hidden;
  }

  /* --- Compact identity bar --- */
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    min-height: auto;
    padding: 12px 18px;
    background: rgba(247, 244, 238, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: none;
    border-bottom: 1px solid #e3ddd3;
  }

  .profile-area {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
    align-items: center;
    text-align: left;
  }

  .profile-placeholder {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    left: 0;
    transform: none;
    margin: 0;
    border-radius: 50%;
    background: #e9e4db;
    border: 1px solid #d8d2c8;
    overflow: hidden;
  }

  .profile-name {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
  }

  .profile-title {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #625d56;
  }

  .profile-title br {
    display: none;
  }

  .sidebar .social-links,
  .mobile-menu-toggle,
  .sidebar-nav,
  .sidebar-nav.mobile-open,
  .sidebar-footer {
    display: none;
  }

  /* --- Leave room for the bottom nav --- */
  .main-content {
    padding: 18px 16px 120px;
  }

  /* --- Floating bottom nav --- */
  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e3ddd3;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(23, 76, 67, 0.12);
  }

  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #625d56;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .mobile-nav-link i {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-nav-link.active {
    background: #174c43;
    color: #ffffff;
  }

  /* --- "More" sheet --- */
  .mobile-more-sheet {
    position: fixed;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 210px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e3ddd3;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(23, 76, 67, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
  }

  .mobile-more-sheet.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-more-label {
    margin: 4px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #174c43;
  }

  .mobile-more-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #222222;
    font-size: 15px;
    text-decoration: none;
  }

  .mobile-more-link i {
    color: #174c43;
    font-size: 17px;
  }

  .mobile-more-link.active {
    background: #174c43;
    color: #ffffff;
  }

  .mobile-more-link.active i {
    color: #ffffff;
  }
}

/* Sliding pill behind the active bottom-nav button */
@media (max-width: 950px) {
  .mobile-nav-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    border-radius: 14px;
    background: #174c43;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }
}

/* =========================
   MOBILE DESIGN + MOTION
========================= */

@media (max-width: 950px) {

  /* --- Hero: sized for phones --- */
  .hero {
    padding: 26px 6px 8px;
  }

  .hero .eyebrow {
    font-size: 10.5px;
    letter-spacing: 2.5px;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .hero-heading {
    position: relative;
    font-size: 42px;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
  }

  .hero-heading span {
    letter-spacing: -1px;
    color: #174c43;
  }

  /* Thin green editorial rule under the heading */
  .hero-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: #174c43;
    transform-origin: left;
    animation: ruleDraw 0.7s 0.65s cubic-bezier(.2, .7, .2, 1) backwards;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.65;
    color: #625d56;
    margin-bottom: 24px;
  }

  .hero-buttons .button.primary {
    width: 100%;
    justify-content: center;
  }

  /* --- Hero entrance (staggered) --- */
  #home.active .eyebrow,
  #home.active .hero-heading,
  #home.active .hero-description,
  #home.active .hero-buttons,
  #home.active .tools-bar {
    animation: fadeUp 0.6s cubic-bezier(.2, .7, .2, 1) backwards;
  }

  #home.active .hero-heading     { animation-delay: 0.08s; }
  #home.active .hero-description { animation-delay: 0.18s; }
  #home.active .hero-buttons     { animation-delay: 0.26s; }
  #home.active .tools-bar        { animation-delay: 0.34s; }

  /* --- Page switch transition --- */
  .page-view.active {
    animation: pageIn 0.45s cubic-bezier(.2, .7, .2, 1) backwards;
  }

  /* --- Scroll reveal for cards --- */
  .reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.55s ease,
      transform 0.55s cubic-bezier(.2, .7, .2, 1);
  }

  .reveal-item.in-view {
    opacity: 1;
    transform: none;
  }

  /* --- Tap feedback --- */
  .dashboard-card,
  .service-card,
  .experience-card,
  .testimonial-card,
  .about-value-card,
  .button {
    -webkit-tap-highlight-color: transparent;
  }

  .dashboard-card:active,
  .service-card:active,
  .experience-card:active,
  .testimonial-card:active,
  .about-value-card:active,
  .button:active {
    transform: scale(0.98);
    transition: transform 0.12s ease;
  }

  /* --- Header shrinks + lifts on scroll --- */
  .sidebar {
    transition: padding 0.25s ease, box-shadow 0.25s ease;
  }

  .profile-placeholder {
    transition: width 0.25s ease, height 0.25s ease;
  }

  .sidebar.is-scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 6px 20px rgba(23, 76, 67, 0.07);
  }

  .sidebar.is-scrolled .profile-placeholder {
    width: 40px;
    height: 40px;
  }

  /* --- Bottom nav: entrance + sliding pill --- */
  .mobile-bottom-nav {
    animation: navIn 0.6s 0.3s cubic-bezier(.2, .7, .2, 1) backwards;
  }

  .mobile-nav-indicator {
    transition:
      transform 0.4s cubic-bezier(.3, .8, .25, 1),
      width 0.4s cubic-bezier(.3, .8, .25, 1),
      opacity 0.2s ease;
  }

  .mobile-nav-link {
    position: relative;
    z-index: 1;
  }

  .mobile-bottom-nav .mobile-nav-link.active {
    background: transparent;
    color: #ffffff;
  }

  .mobile-nav-link i {
    transition: transform 0.3s cubic-bezier(.3, .8, .25, 1);
  }

  .mobile-nav-link.active i {
    transform: translateY(-1px) scale(1.08);
  }

  /* --- More sheet: items cascade in --- */
  .mobile-more-sheet.open .mobile-more-link {
    animation: fadeUp 0.35s cubic-bezier(.2, .7, .2, 1) backwards;
  }

  .mobile-more-sheet.open .mobile-more-link:nth-of-type(2) { animation-delay: 0.05s; }
  .mobile-more-sheet.open .mobile-more-link:nth-of-type(3) { animation-delay: 0.10s; }

  /* --- Connected Growth glow drifts slowly on phones --- */
  .flow-glow {
    animation: glowDrift 16s ease-in-out infinite alternate;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ruleDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes glowDrift {
  0%   { left: 70%; top: 18%; }
  50%  { left: 35%; top: 34%; }
  100% { left: 62%; top: 58%; }
}

/* Respect "reduce motion" phone settings */
@media (prefers-reduced-motion: reduce) {
  .page-view.active,
  #home.active .eyebrow,
  #home.active .hero-heading,
  #home.active .hero-description,
  #home.active .hero-buttons,
  #home.active .tools-bar,
  .hero-heading::after,
  .mobile-bottom-nav,
  .mobile-more-link,
  .flow-glow {
    animation: none !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile: zoom header photo to head & shoulders */
@media (max-width: 950px) {
  .sidebar .profile-placeholder img {
    transform: scale(1.9);
    transform-origin: 49% 34%;
  }

  .mobile-nav-link {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Mobile: Services "Need something else?" banner stacks */
@media (max-width: 950px) {
  .services-flexibility {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 24px 22px;
    border-radius: 18px;
  }

  .services-flexibility > span {
    font-size: 10.5px;
    letter-spacing: 2.5px;
  }

  .services-flexibility h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .services-flexibility p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* =========================
   HERO PROOF STRIP (mobile)
========================= */

.hero-proof {
  display: none;
}

@media (max-width: 950px) {
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 22px;
    padding: 16px 4px;
    border-top: 1px solid #e3ddd3;
    border-bottom: 1px solid #e3ddd3;
  }

  .proof-item {
    padding: 0 10px;
    text-align: left;
  }

  .proof-item + .proof-item {
    border-left: 1px solid #e3ddd3;
  }

  .proof-item strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    color: #174c43;
    font-variant-numeric: tabular-nums;
  }

  .proof-item span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #7d776f;
  }

  #home.active .hero-proof {
    animation: fadeUp 0.6s 0.3s cubic-bezier(.2, .7, .2, 1) backwards;
  }
}

/* =========================
   CONTACT QUICK ACTIONS (mobile)
========================= */

.contact-quick {
  display: none;
}

@media (max-width: 950px) {
  .contact-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 22px;
  }

  #contact.active .contact-quick {
    animation: fadeUp 0.6s 0.15s cubic-bezier(.2, .7, .2, 1) backwards;
  }

  .contact-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 6px 14px;
    background: #ffffff;
    border: 1px solid #e3ddd3;
    border-radius: 16px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background 0.2s ease;
  }

  .contact-quick-link:active {
    transform: scale(0.96);
    background: #f2eee7;
  }

  .contact-quick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #174c43;
    color: #ffffff;
    font-size: 18px;
  }

  .contact-quick-link strong {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
  }

  .contact-quick-link small {
    margin-top: -4px;
    font-size: 10.5px;
    color: #7d776f;
  }
}

/* =========================
   CAREER SNAPSHOT — green summary card
   (sets it apart from the job cards)
========================= */

.experience-card.career-snapshot {
  background: #174c43;
  border-color: #174c43;
  color: #ffffff;
}

.experience-card.career-snapshot:hover {
  background: #1d6257;
}

.career-snapshot .experience-date {
  color: rgba(255, 255, 255, 0.7);
}

.career-snapshot .snapshot-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.career-snapshot .snapshot-stats div + div {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.career-snapshot .snapshot-stats strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  color: #ffffff;
}

.career-snapshot .snapshot-stats span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

/* =========================
   GUSHWORK PROOF — tap to enlarge
========================= */

.featured-recognition-proof {
  position: relative;
  cursor: zoom-in;
}

.proof-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 24px;
  background: rgba(16, 46, 40, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.proof-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.proof-lightbox img {
  display: block;
  max-width: min(100%, 900px);
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}

.proof-lightbox.open img {
  transform: scale(1);
}

.proof-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #174c43;
  font-size: 18px;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* "Tap to enlarge" hint — phones only */
@media (max-width: 950px) {
  .featured-recognition-proof::after {
    content: "⤢  Tap to enlarge";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #174c43;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
  }
}

/* =========================
   EXPERIENCE TIMELINE (mobile)
========================= */

@media (max-width: 950px) {
  .experience-list {
    position: relative;
    padding-left: 26px;
  }

  /* Faint track */
  .experience-list::before,
  .experience-list::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
  }

  .experience-list::before {
    background: #e3ddd3;
  }

  /* Green line that grows as you scroll */
  .experience-list::after {
    background: #174c43;
    transform-origin: top;
    transform: scaleY(var(--timeline-progress, 0));
    transition: transform 0.15s linear;
  }

  .experience-list .experience-card {
    position: relative;
    overflow: visible;
  }

  /* Node dot for each role */
  .experience-list .experience-card::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 18px;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f7f4ee;
    border: 2px solid #c9c2b6;
    transition:
      background 0.4s ease 0.2s,
      border-color 0.4s ease 0.2s,
      box-shadow 0.4s ease 0.2s;
  }

  /* Dot lights up when the card scrolls in */
  .experience-list .experience-card.in-view::before {
    background: #174c43;
    border-color: #174c43;
    box-shadow: 0 0 0 5px rgba(23, 76, 67, 0.12);
  }

  /* Snapshot = end of the line */
  .experience-list .career-snapshot::before {
    top: 50%;
    width: 14px;
    height: 14px;
    left: -26px;
    margin-top: -7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-list::after {
    transform: none;
    transition: none;
  }
}

/* =========================
   TECH STACK — swipe + scrollable filters (mobile)
========================= */

.tech-counter {
  display: none;
}

@media (max-width: 950px) {
  .tech-showcase {
    touch-action: pan-y;
  }

  /* Slide direction animations */
  .tech-slide.active.slide-from-right {
    animation: techSlideRight 0.35s cubic-bezier(.2, .7, .2, 1);
  }

  .tech-slide.active.slide-from-left {
    animation: techSlideLeft 0.35s cubic-bezier(.2, .7, .2, 1);
  }

  /* "02 / 26" counter + swipe hint */
  .tech-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #174c43;
  }

  .tech-counter small {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7d776f;
  }

  /* Filters: one row you can scroll sideways */
  .tech-categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  }

  .tech-categories::-webkit-scrollbar {
    display: none;
  }

  .tech-filter {
    flex: 0 0 auto;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
}

@keyframes techSlideRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}

@keyframes techSlideLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: none; }
}

/* =========================
   HOME DASHBOARD — 2×2 tiles (mobile)
========================= */

@media (max-width: 950px) {
  .home-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Experience stays full width, as a green feature card */
  .home-dashboard .dashboard-card-large {
    grid-column: 1 / -1;
    background: #174c43;
    border-color: #174c43;
  }

  .home-dashboard .dashboard-card-large .card-label,
  .home-dashboard .dashboard-card-large p {
    color: rgba(255, 255, 255, 0.75);
  }

  .home-dashboard .dashboard-card-large h3,
  .home-dashboard .dashboard-card-large .card-link {
    color: #ffffff;
  }

  /* The four small tiles */
  .home-dashboard .dashboard-card:not(.dashboard-card-large) {
    position: relative;
    grid-column: auto;
    min-height: 118px;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .home-dashboard .dashboard-card:not(.dashboard-card-large) p {
    display: none;
  }

  .home-dashboard .dashboard-card:not(.dashboard-card-large) .card-label {
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }

  .home-dashboard .dashboard-card:not(.dashboard-card-large) h3 {
    margin: 18px 0 0;
    padding-right: 26px;
    font-size: 20px;
    line-height: 1.15;
  }

  /* Small green arrow in the corner */
  .home-dashboard .dashboard-card:not(.dashboard-card-large)::after {
    content: "→";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef3f0;
    color: #174c43;
    font-size: 13px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .home-dashboard .dashboard-card:not(.dashboard-card-large):active::after {
    transform: translateX(3px);
    background: #174c43;
    color: #ffffff;
  }
}

/* =========================
   ABOUT VALUE CARDS — 2×2 (mobile)
========================= */

@media (max-width: 950px) {
  .about-values {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .about-value-card {
    min-height: 0;
    padding: 16px 14px;
    border-radius: 16px;
  }

  .about-value-card span {
    margin-bottom: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
  }

  .about-value-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
    color: #ffffff;
  }

  .about-value-card p {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    opacity: 1;
  }
}

/* =========================
   MOBILE FOOTER LINE
========================= */

@media (max-width: 950px) {
  .main-content::after {
    content: "© 2026 Anthony Nucup  ·  Build. Support. Grow.";
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #e3ddd3;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #7d776f;
  }
}

/* =========================
   LAPTOP SIDEBAR — fit shorter screens
========================= */

@media (min-width: 951px) and (max-height: 860px) {
  .sidebar {
    padding-top: 16px;
    padding-bottom: 14px;
    overflow-y: auto;
  }

  .profile-placeholder {
    width: 150px;
    height: 150px;
  }

  .profile-name {
    font-size: 24px;
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .profile-title {
    margin-bottom: 10px;
  }

  .social-links {
    margin-top: 12px;
    margin-bottom: 14px;
  }

  .sidebar-nav {
    padding-top: 14px;
    gap: 2px;
  }

  .nav-item {
    padding: 10px 16px;
  }

  .sidebar-footer {
    padding-top: 14px;
  }
}

/* =========================
   VISIT COUNTER (hidden until threshold)
========================= */

.visit-pill[hidden] {
  display: none !important;
}

.visit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e3ddd3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #625d56;
  font-variant-numeric: tabular-nums;
}

.visit-pill-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #174c43;
}

.visit-pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #174c43;
  opacity: 0;
  animation: visitPulse 2.4s ease-out infinite;
}

@keyframes visitPulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Phones: show the count in the footer line instead */
@media (max-width: 950px) {
  .sidebar .visit-pill {
    display: none !important;
  }

  .main-content[data-visits]::after {
    content: "© 2026 Anthony Nucup  ·  " attr(data-visits) " visits  ·  Build. Support. Grow.";
  }
}

@media (prefers-reduced-motion: reduce) {
  .visit-pill-dot::after {
    animation: none;
  }
}

/* =========================
   CONNECTED GROWTH BACKGROUND v2
   dot grid + visible network + traveling pulses
========================= */

/* Faint planner-style dot grid, fading toward the edges */
.flow-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(23, 76, 67, 0.13) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 65% 35%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 65% 35%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}

/* Network lines: visible, still quiet */
.flow-network {
  opacity: 1;
}

.flow-network path {
  stroke: rgba(23, 76, 67, 0.16);
  stroke-width: 1.3;
}

.flow-network circle {
  fill: rgba(23, 76, 67, 0.28);
}

/* Pulses of light traveling along the lines */
.flow-network .flow-pulse {
  fill: none;
  stroke: #174c43;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  stroke-dashoffset: 100;
  opacity: 0.55;
  filter: drop-shadow(0 0 4px rgba(23, 76, 67, 0.45));
  animation: flowPulse 9s linear infinite;
}

@keyframes flowPulse {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* Phones: same idea, a touch calmer */
@media (max-width: 950px) {
  .flow-network {
    opacity: 0.75;
  }

  .flow-background::before {
    background-size: 20px 20px;
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-network .flow-pulse {
    display: none;
  }
}

/* =========================
   CONNECTED GROWTH INTRO
========================= */

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background-color: #f7f4ee;
  background-image: radial-gradient(circle, rgba(23, 76, 67, 0.12) 1px, transparent 1.4px);
  background-size: 24px 24px;
  animation: introExit 0.7s cubic-bezier(.7, 0, .2, 1) 1.65s forwards;
}

.intro-skip .site-intro,
.intro-done .site-intro {
  display: none;
}

.intro-playing body {
  overflow: hidden;
}

/* Nodes + lines */
.intro-flow {
  display: flex;
  align-items: flex-start;
}

.intro-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 92px;
  opacity: 0;
  animation: introNodeIn 0.4s ease forwards;
}

.intro-node span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #174c43;
  background: #f7f4ee;
  animation: introNodeFill 0.3s ease forwards;
}

.intro-node small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #174c43;
}

.intro-line {
  width: 64px;
  height: 2px;
  margin: 7px -30px 0;
  border-radius: 2px;
  background: #174c43;
  transform: scaleX(0);
  transform-origin: left;
  animation: introLineDraw 0.35s ease-in-out forwards;
}

/* Timeline */
.intro-node-1      { animation-delay: 0.1s; }
.intro-node-1 span { animation-delay: 0.3s; }
.intro-line-1      { animation-delay: 0.4s; }
.intro-node-2      { animation-delay: 0.3s; }
.intro-node-2 span { animation-delay: 0.72s; }
.intro-line-2      { animation-delay: 0.8s; }
.intro-node-3      { animation-delay: 0.5s; }
.intro-node-3 span { animation-delay: 1.12s; }

/* Tagline */
.intro-tagline {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  color: #222222;
  opacity: 0;
  transform: translateY(10px);
  animation: introTagIn 0.5s ease 1.15s forwards;
}

.intro-tagline em {
  color: #174c43;
}

@keyframes introNodeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

@keyframes introNodeFill {
  to {
    background: #174c43;
    box-shadow: 0 0 0 6px rgba(23, 76, 67, 0.12);
  }
}

@keyframes introLineDraw {
  to { transform: scaleX(1); }
}

@keyframes introTagIn {
  to { opacity: 1; transform: none; }
}

@keyframes introExit {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

@media (max-width: 600px) {
  .site-intro {
    gap: 28px;
  }

  .intro-node {
    width: 84px;
  }

  .intro-line {
    width: 48px;
    margin: 7px -24px 0;
  }

  .intro-tagline {
    font-size: 26px;
  }
}

/* =========================
   CUSTOM CURSOR (desktop only)
========================= */

.cursor-dot,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }

  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select {
    cursor: text !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4000;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: #174c43;
    transition: opacity 0.2s ease, background 0.25s ease;
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(23, 76, 67, 0.5);
    transition:
      width 0.28s cubic-bezier(.2, .7, .2, 1),
      height 0.28s cubic-bezier(.2, .7, .2, 1),
      margin 0.28s cubic-bezier(.2, .7, .2, 1),
      background 0.25s ease,
      border-color 0.25s ease,
      opacity 0.2s ease;
  }

  .cursor-ring-label {
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  html.cursor-visible .cursor-dot,
  html.cursor-visible .cursor-ring {
    opacity: 1;
  }

  /* Over links + buttons: ring grows and tints */
  html.cursor-hover .cursor-ring {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    background: rgba(23, 76, 67, 0.08);
    border-color: #174c43;
  }

  /* Over dashboard cards / proof image: solid ring with a label */
  html.cursor-label .cursor-ring {
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
    background: #174c43;
    border-color: #174c43;
  }

  html.cursor-label .cursor-ring-label {
    opacity: 1;
  }

  html.cursor-label .cursor-dot {
    opacity: 0;
  }

  /* Pressing */
  html.cursor-down .cursor-ring {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
  }

  /* On forest-green panels: switch to cream */
  html.cursor-on-dark .cursor-dot {
    background: #f7f4ee;
  }

  html.cursor-on-dark .cursor-ring {
    border-color: rgba(247, 244, 238, 0.75);
  }

  html.cursor-on-dark.cursor-hover .cursor-ring {
    background: rgba(247, 244, 238, 0.14);
    border-color: #f7f4ee;
  }

  html.cursor-on-dark.cursor-label .cursor-ring {
    background: #f7f4ee;
  }

  html.cursor-on-dark.cursor-label .cursor-ring-label {
    color: #174c43;
  }

  /* Typing in the form: hide the custom cursor */
  html.cursor-text .cursor-dot,
  html.cursor-text .cursor-ring {
    opacity: 0;
  }
}

/* =========================================================
   NIGHT MODE
   Deep forest night + cream text + soft sage accents.
   Everything is scoped to html[data-theme="dark"],
   so light mode is untouched.
========================================================= */

html[data-theme="dark"] {
  --n-bg: #0f1714;
  --n-sidebar: #121c19;
  --n-surface: #17221e;
  --n-surface-2: #1c2925;
  --n-input: #111a17;
  --n-text: #ece6db;
  --n-muted: #b3ab9f;
  --n-soft: #8f887d;
  --n-accent: #8fc7b4;
  --n-line: rgba(236, 230, 219, 0.11);
  color-scheme: dark;
}

/* ---------- Theme toggle button (both modes) ---------- */

.theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #d8d2c8;
  background: rgba(255, 255, 255, 0.75);
  color: #174c43;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  transform: rotate(-12deg) scale(1.05);
}

.theme-toggle i {
  line-height: 1;
  animation: themeIconIn 0.45s cubic-bezier(.2, .7, .2, 1);
}

@keyframes themeIconIn {
  from { opacity: 0; transform: rotate(-90deg) scale(0.6); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 950px) {
  .theme-toggle {
    top: 50%;
    right: 14px;
    margin-top: -18px;
  }

  .profile-area {
    padding-right: 44px;
  }
}

html[data-theme="dark"] .theme-toggle {
  background: var(--n-surface-2);
  border-color: var(--n-line);
  color: #f2d9a0;
}

/* Smooth cross-fade only while switching */
html.theme-switching,
html.theme-switching * {
  transition:
    background-color 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease,
    fill 0.45s ease,
    stroke 0.45s ease !important;
}

/* ---------- Page + sidebar ---------- */

html[data-theme="dark"] body {
  background: var(--n-bg);
  color: var(--n-text);
}

html[data-theme="dark"] .sidebar {
  background: var(--n-sidebar);
  border-color: var(--n-line);
}

@media (max-width: 950px) {
  html[data-theme="dark"] .sidebar {
    background: rgba(15, 23, 20, 0.92);
    border-bottom-color: var(--n-line);
  }
}

html[data-theme="dark"] .profile-name,
html[data-theme="dark"] .nav-item {
  color: var(--n-text);
}

html[data-theme="dark"] .profile-title,
html[data-theme="dark"] .sidebar-footer {
  color: var(--n-muted);
}

@media (max-width: 950px) {
  html[data-theme="dark"] .profile-placeholder {
    background: var(--n-surface);
    border-color: var(--n-line);
  }
}

html[data-theme="dark"] .social-links a {
  background: var(--n-surface);
  border-color: var(--n-line);
  color: var(--n-accent);
}

html[data-theme="dark"] .social-links a:hover {
  background: #174c43;
  color: #ffffff;
}

html[data-theme="dark"] .nav-item:hover {
  background: var(--n-surface);
}

html[data-theme="dark"] .nav-item.active {
  background: #174c43;
  color: #ffffff;
}

html[data-theme="dark"] .sidebar-nav,
html[data-theme="dark"] .sidebar-footer {
  border-color: var(--n-line);
}

html[data-theme="dark"] .visit-pill {
  background: var(--n-surface);
  border-color: var(--n-line);
  color: var(--n-muted);
}

html[data-theme="dark"] .visit-pill-dot,
html[data-theme="dark"] .visit-pill-dot::after {
  background: var(--n-accent);
  border-color: var(--n-accent);
}

/* ---------- Shared type ---------- */

html[data-theme="dark"] .hero-heading,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .about-title h2,
html[data-theme="dark"] .tech-learning h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .experience-card:not(.career-snapshot) h3,
html[data-theme="dark"] .dashboard-card:not(.dashboard-card-large) h3,
html[data-theme="dark"] .featured-recognition h3,
html[data-theme="dark"] .testimonial-quote,
html[data-theme="dark"] .about-copy p {
  color: var(--n-text);
}

html[data-theme="dark"] .hero-heading span,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-eyebrow,
html[data-theme="dark"] .card-label,
html[data-theme="dark"] .card-link,
html[data-theme="dark"] .experience-date,
html[data-theme="dark"] .experience-card:not(.career-snapshot) h4,
html[data-theme="dark"] .service-number,
html[data-theme="dark"] .testimonial-number,
html[data-theme="dark"] .testimonial-source,
html[data-theme="dark"] .tech-learning span,
html[data-theme="dark"] .featured-recognition-eyebrow,
html[data-theme="dark"] .featured-result strong,
html[data-theme="dark"] .proof-item strong,
html[data-theme="dark"] .contact-form label,
html[data-theme="dark"] .tech-counter {
  color: var(--n-accent);
}

html[data-theme="dark"] .hero-description,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .dashboard-card:not(.dashboard-card-large) p,
html[data-theme="dark"] .experience-card:not(.career-snapshot) p,
html[data-theme="dark"] .experience-content h3 span,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .tech-learning p,
html[data-theme="dark"] .featured-recognition-description,
html[data-theme="dark"] .featured-result span,
html[data-theme="dark"] .contact-form-footer p,
html[data-theme="dark"] .about-tony {
  color: var(--n-muted);
}

html[data-theme="dark"] .proof-item span,
html[data-theme="dark"] .featured-recognition-source,
html[data-theme="dark"] .tech-counter small {
  color: var(--n-soft);
}

/* ---------- Light cards become night surfaces ---------- */

html[data-theme="dark"] .dashboard-card:not(.dashboard-card-large),
html[data-theme="dark"] .experience-card:not(.career-snapshot),
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .tech-learning,
html[data-theme="dark"] .featured-result,
html[data-theme="dark"] .contact-quick-link {
  background: var(--n-surface);
  border-color: var(--n-line);
}

html[data-theme="dark"] .dashboard-card:not(.dashboard-card-large):hover,
html[data-theme="dark"] .experience-card:not(.career-snapshot):hover,
html[data-theme="dark"] .service-card:hover {
  background: var(--n-surface-2);
}

/* Desktop Experience dashboard card stays a light-style card in light mode;
   in night mode it matches the other surfaces */
@media (min-width: 951px) {
  html[data-theme="dark"] .dashboard-card-large {
    background: var(--n-surface);
    border-color: var(--n-line);
  }

  html[data-theme="dark"] .dashboard-card-large h3 {
    color: var(--n-text);
  }

  html[data-theme="dark"] .dashboard-card-large p {
    color: var(--n-muted);
  }
}

html[data-theme="dark"] .featured-recognition,
html[data-theme="dark"] .contact-panel {
  background: var(--n-sidebar);
  border-color: var(--n-line);
}

html[data-theme="dark"] .featured-recognition-quote {
  background: rgba(143, 199, 180, 0.08);
  color: var(--n-accent);
}

html[data-theme="dark"] .contact-form-wrap {
  background: var(--n-surface);
  border-color: var(--n-line);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: var(--n-input);
  border-color: var(--n-line);
  color: var(--n-text);
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
  color: var(--n-soft);
}

html[data-theme="dark"] .contact-quick-link strong {
  color: var(--n-text);
}

html[data-theme="dark"] .contact-quick-link small {
  color: var(--n-soft);
}

html[data-theme="dark"] .contact-quick-link:active {
  background: var(--n-surface-2);
}

html[data-theme="dark"] .hero-proof,
html[data-theme="dark"] .proof-item + .proof-item {
  border-color: var(--n-line);
}

/* Tech filters */
html[data-theme="dark"] .tech-filter:not(.active) {
  background: var(--n-surface);
  border-color: var(--n-line);
  color: var(--n-accent);
}

/* Daily Drivers bar: same motion, logos shown in soft cream */
html[data-theme="dark"] .tools-bar {
  background: var(--n-surface);
  border-color: var(--n-line);
}

html[data-theme="dark"] .tools-label span {
  color: var(--n-soft);
}

html[data-theme="dark"] .tools-label strong {
  color: var(--n-text);
}

html[data-theme="dark"] .tools-label {
  border-color: var(--n-line);
}

html[data-theme="dark"] .tools-group img {
  filter: brightness(0) invert(0.9) sepia(0.15);
  opacity: 0.85;
}

/* ---------- Mobile pieces ---------- */

html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-more-sheet {
  background: var(--n-surface);
  border-color: var(--n-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .mobile-nav-link {
  color: var(--n-muted);
}

html[data-theme="dark"] .mobile-more-link {
  color: var(--n-text);
}

html[data-theme="dark"] .mobile-more-link i,
html[data-theme="dark"] .mobile-more-label {
  color: var(--n-accent);
}

html[data-theme="dark"] .mobile-more-link.active,
html[data-theme="dark"] .mobile-more-link.active i {
  color: #ffffff;
}

html[data-theme="dark"] .home-dashboard .dashboard-card:not(.dashboard-card-large)::after {
  background: rgba(143, 199, 180, 0.12);
  color: var(--n-accent);
}

@media (max-width: 950px) {
  html[data-theme="dark"] .main-content::after {
    border-top-color: var(--n-line);
    color: var(--n-soft);
  }
}

/* Experience timeline */
html[data-theme="dark"] .experience-list::before {
  background: var(--n-line);
}

html[data-theme="dark"] .experience-list::after {
  background: var(--n-accent);
}

html[data-theme="dark"] .experience-list .experience-card::before {
  background: var(--n-bg);
  border-color: rgba(236, 230, 219, 0.25);
}

html[data-theme="dark"] .experience-list .experience-card.in-view::before {
  background: var(--n-accent);
  border-color: var(--n-accent);
  box-shadow: 0 0 0 5px rgba(143, 199, 180, 0.14);
}

/* ---------- Connected Growth background at night ---------- */

html[data-theme="dark"] .flow-background::before {
  background-image: radial-gradient(circle, rgba(143, 199, 180, 0.11) 1px, transparent 1.4px);
}

html[data-theme="dark"] .flow-network path {
  stroke: rgba(143, 199, 180, 0.14);
}

html[data-theme="dark"] .flow-network circle {
  fill: rgba(143, 199, 180, 0.32);
}

html[data-theme="dark"] .flow-network .flow-pulse {
  stroke: var(--n-accent);
  opacity: 0.7;
  filter: drop-shadow(0 0 5px rgba(143, 199, 180, 0.6));
}

html[data-theme="dark"] .flow-glow {
  background: radial-gradient(
    circle,
    rgba(143, 199, 180, 0.09) 0%,
    rgba(143, 199, 180, 0.04) 34%,
    transparent 70%
  );
}

/* ---------- Intro at night ---------- */

html[data-theme="dark"] .site-intro {
  background-color: var(--n-bg);
  background-image: radial-gradient(circle, rgba(143, 199, 180, 0.1) 1px, transparent 1.4px);
}

html[data-theme="dark"] .intro-node span {
  background: var(--n-bg);
  border-color: var(--n-accent);
}

html[data-theme="dark"] .intro-node small,
html[data-theme="dark"] .intro-tagline em {
  color: var(--n-accent);
}

html[data-theme="dark"] .intro-line {
  background: var(--n-accent);
}

html[data-theme="dark"] .intro-tagline {
  color: var(--n-text);
}

html[data-theme="dark"] .intro-node-1 span,
html[data-theme="dark"] .intro-node-2 span,
html[data-theme="dark"] .intro-node-3 span {
  animation-name: introNodeFillNight;
}

@keyframes introNodeFillNight {
  to {
    background: var(--n-accent);
    box-shadow: 0 0 0 6px rgba(143, 199, 180, 0.14);
  }
}

/* ---------- Cursor at night ---------- */

@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] .cursor-dot {
    background: var(--n-accent);
  }

  html[data-theme="dark"] .cursor-ring {
    border-color: rgba(143, 199, 180, 0.55);
  }

  html[data-theme="dark"].cursor-hover .cursor-ring {
    background: rgba(143, 199, 180, 0.1);
    border-color: var(--n-accent);
  }

  html[data-theme="dark"].cursor-label .cursor-ring {
    background: var(--n-accent);
    border-color: var(--n-accent);
  }

  html[data-theme="dark"].cursor-label .cursor-ring-label {
    color: var(--n-bg);
  }

  html[data-theme="dark"].cursor-on-dark .cursor-dot {
    background: #f7f4ee;
  }
}
