/* Section polish + responsive layer. Loaded after main.css.
   Theme tokens follow body.theme-day / body.theme-night (set in main.js). */

body {
  --s-fg: #e6edf7;
  --s-muted: #8fa0b8;
  --s-accent: #6589ba;
  --s-card: rgba(255, 255, 255, 0.04);
  --s-card-hover: rgba(255, 255, 255, 0.07);
  --s-border: rgba(255, 255, 255, 0.1);
  --s-chip: rgba(101, 137, 186, 0.16);
  --s-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --s-line: rgba(255, 255, 255, 0.16);
}

body.theme-day {
  --s-fg: #1f2340;
  --s-muted: #5b6082;
  --s-accent: #424288;
  --s-card: #ffffff;
  --s-card-hover: #ffffff;
  --s-border: rgba(66, 66, 136, 0.14);
  --s-chip: rgba(66, 66, 136, 0.08);
  --s-shadow: 0 10px 30px rgba(66, 66, 136, 0.12);
  --s-line: rgba(66, 66, 136, 0.22);
}

/* ---- Section headings (all viewports) ---- */
.heading {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sec-sub {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--s-muted);
}

/* ---- Project cards (mobile list) ---- */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
}

.proj-card {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--s-shadow);
  color: var(--s-fg);
}

.proj-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.proj-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--s-accent);
}

.proj-status {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--s-chip);
  color: var(--s-accent);
  white-space: nowrap;
}

.proj-role {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: var(--s-muted);
}

.proj-desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--s-fg);
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proj-tags li {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--s-border);
  color: var(--s-muted);
}

.proj-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--s-accent);
  text-decoration: none;
}

.proj-link:hover,
.proj-link:focus {
  text-decoration: underline;
  color: var(--s-accent);
}

.proj-more {
  grid-column: 1 / -1;
}

.proj-more > summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  padding: 12px;
  border: 1px dashed var(--s-border);
  border-radius: 14px;
  font-weight: 600;
  color: var(--s-accent);
}

.proj-more > summary::-webkit-details-marker {
  display: none;
}

.proj-more[open] > summary {
  margin-bottom: 16px;
}

.proj-more[open] .proj-grid-inner {
  display: grid;
  gap: 16px;
}

/* ---- Testimonials ---- */
#slickComments blockquote {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-left: 4px solid var(--s-accent);
  border-radius: 14px;
  box-shadow: var(--s-shadow);
}

/* ---- Mobile / tablet: real responsive layout, no pinned scenes ---- */
@media screen and (max-width: 768px) {
  .outer[id] {
    display: block;
    height: auto;
    min-height: 0;
    padding-bottom: 56px;
  }

  #ProjectsMobileContent {
    display: block !important;
  }

  [id$="HeadingRow"] {
    position: static !important;
    padding-top: 72px !important;
    width: 100% !important;
  }

  [id$="HeadingRow"] > div {
    padding-bottom: 24px !important;
  }

  /* underline always visible: scroll-triggered highlight is disabled on mobile */
  .heading {
    background-size: 100% 2px;
  }

  #timelineDetails,
  #TimelineDetailsSection {
    overflow: visible !important;
  }

  .cd-timeline__content h2 {
    font-size: 1.15rem;
  }

  .cd-timeline__date,
  .color-contrast-medium {
    font-size: 0.9rem;
  }

  /* Skills */
  #technicalStackHeadingRow > div:nth-child(2),
  #AchievementsHeadingRow > div:nth-child(2),
  #ConnectHeadingRow > div:nth-child(2) {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .skills-image,
  .logos-image,
  .github-logo {
    width: 56px;
    height: 56px;
    margin-top: 0;
  }

  .skill-container {
    margin-bottom: 18px;
  }

  .skill-name {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  /* Achievements */
  .achievements-list {
    margin: 0;
    padding: 0 8px;
    font-size: 1rem;
    text-align: left;
  }

  .achievements-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--s-border);
    color: var(--s-fg);
  }

  /* Testimonials */
  #slickComments {
    width: 100% !important;
    margin-top: 32px !important;
  }

  blockquote p {
    font-size: 0.95rem;
    text-align: left;
  }

  blockquote footer {
    font-size: 0.8rem;
    text-align: left;
  }

  /* Connect form */
  .feedback-name,
  .feedback-textarea {
    width: 100%;
    max-width: 420px;
    margin-left: 0;
    font-size: 1rem;
  }

  .feedback-textarea {
    height: 120px;
  }

  .submit-feedback-button {
    width: 100%;
    max-width: 420px;
    height: 48px;
    font-size: 1rem;
  }

  .final-text {
    width: 100%;
    max-width: none;
    font-size: 0.85rem;
    padding: 32px 16px 0;
  }

  #GaneshName {
    display: none;
  }

  #GaneshNameMobile {
    display: block;
  }
}


@media screen and (max-width: 430px) {
  .nav-brand-name {
    display: none !important;
  }
}

@media screen and (max-width: 430px) {
  .hero-company-name {
    overflow: visible;
    text-overflow: clip;
    font-size: 10.5px;
    letter-spacing: 0;
  }
}

/* ---- Timeline (all viewports) ---- */
.cd-timeline__container::before {
  width: 2px !important;
  background: var(--s-line) !important;
}

.cd-timeline__img {
  background: #fff !important;
  border: 2px solid var(--s-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.cd-timeline__img img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.cd-timeline__block {
  margin-bottom: 28px;
}

.cd-timeline__content {
  background: var(--s-card) !important;
  border: 1px solid var(--s-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--s-shadow) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cd-timeline__content:hover {
  transform: translateY(-2px);
}

.cd-timeline__content::before {
  display: none;
}

.cd-timeline__content h2 {
  margin: 0 0 2px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  font-family: inherit;
}

.cd-timeline__content p.color-contrast-medium {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--s-muted) !important;
}

.cd-timeline__content p[style*="600"] {
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 600 !important;
  color: var(--s-fg) !important;
  opacity: 0.8;
}

.cd-timeline__content .flex {
  margin-top: 14px;
}

.cd-timeline__date {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--s-chip);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--s-accent) !important;
}

@media (min-width: 64rem) {
  .cd-timeline__content {
    font-size: 1rem;
    width: 45%;
  }

  .cd-timeline__date,
  .cd-timeline__block:nth-child(even) .cd-timeline__date {
    position: static;
    width: auto;
    left: auto;
    right: auto;
    text-align: left;
  }
}

/* ---- Project tiles: distinct from timeline cards ---- */
body { --s-tint: rgba(101, 137, 186, 0.16); }
body.theme-day { --s-tint: rgba(66, 66, 136, 0.07); }

.proj-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 22px;
}

.proj-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--s-accent), transparent);
}

.proj-head {
  align-items: center;
  gap: 14px;
  padding: 22px 20px 16px;
  background: linear-gradient(160deg, var(--s-tint), transparent 70%);
}

.proj-mono {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--s-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px var(--s-tint);
}

body:not(.theme-day) .proj-mono { color: #0a0e16; }

.proj-id { flex: 1; min-width: 0; }
.proj-title { font-size: 1.1rem; }
.proj-role { margin: 2px 0 0; font-size: 0.8rem; }

.proj-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proj-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.proj-desc { padding: 0 20px; }

.proj-tags { padding: 0 20px; }

.proj-tags li {
  background: var(--s-chip);
  border-color: transparent;
  color: var(--s-accent);
  font-weight: 600;
}

.proj-link {
  margin: 18px 20px 20px;
  padding: 11px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--s-accent);
  color: var(--s-accent);
  transition: background 0.2s, color 0.2s;
}

.proj-link:hover,
.proj-link:focus {
  background: var(--s-accent);
  color: #fff;
  text-decoration: none;
}

body:not(.theme-day) .proj-link:hover,
body:not(.theme-day) .proj-link:focus { color: #0a0e16; }

.proj-card:not(:has(.proj-link)) .proj-tags { padding-bottom: 20px; }
.proj-card:not(:has(.proj-tags)):not(:has(.proj-link)) .proj-desc { padding-bottom: 20px; }

/* show more / fewer */
.proj-more > summary {
  padding: 14px;
  border: 1px solid var(--s-border);
  border-radius: 14px;
  background: var(--s-card);
  box-shadow: var(--s-shadow);
}

.proj-more > summary::before { content: "Show 4 more projects  \2193"; }
.proj-more[open] > summary::before { content: "Show fewer  \2191"; }

/* ---- Projects: swipe carousel (1 card per view on phones, peek of next) ---- */
.proj-grid {
  display: flex;
  gap: 14px;
  max-width: none;
  padding: 4px 8vw 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 8vw;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  counter-reset: proj;
}

.proj-grid::-webkit-scrollbar { display: none; }

.proj-card {
  flex: 0 0 84%;
  scroll-snap-align: center;
  counter-increment: proj;
  padding: 26px 22px 22px;
  border-radius: 22px;
  box-shadow: var(--s-shadow);
}

.proj-card::before { display: none; }

.proj-card::after {
  content: counter(proj, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--s-muted);
}

.proj-head {
  display: block;
  padding: 0;
  background: none;
}

.proj-title { font-size: 1.4rem; margin-top: 18px; }
.proj-role { margin: 4px 0 12px; font-size: 0.85rem; }
.proj-status { display: inline-flex; margin-bottom: 0; }
.proj-desc { padding: 0; font-size: 0.97rem; }
.proj-tags { padding: 0; }

.proj-link {
  margin: auto 0 0;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: none !important;
  color: var(--s-accent) !important;
}

.proj-desc + .proj-tags,
.proj-desc { margin-bottom: 14px; }
.proj-card:not(:has(.proj-link)) .proj-tags,
.proj-card:not(:has(.proj-tags)):not(:has(.proj-link)) .proj-desc { padding-bottom: 0; }

.proj-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.proj-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--s-line);
  transition: width 0.25s, background 0.25s;
}

.proj-dots button.on {
  width: 22px;
  background: var(--s-accent);
}

@media (min-width: 600px) and (max-width: 768px) {
  .proj-card { flex-basis: 46%; }
}

/* ---- Timeline: merged role layout + mobile polish ---- */
.tl-role {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--s-border);
}

.tl-role:first-of-type { margin-top: 14px; }

.tl-role-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--s-fg);
}

.tl-role-title small {
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--s-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tl-role .cd-timeline__date { margin-bottom: 4px; }

@media screen and (max-width: 768px) {
  .cd-timeline__container { padding: 8px 0; }

  .cd-timeline__container::before { left: 17px; }

  .cd-timeline__img {
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  .cd-timeline__content {
    margin-left: 14px;
    min-width: 0;
    padding: 16px 16px 14px;
    border-radius: 14px;
  }

  .cd-timeline__content h2 { font-size: 1.05rem; }

  .cd-timeline__content p.color-contrast-medium {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .tl-role-title { font-size: 0.95rem; }

  .cd-timeline__block { margin-bottom: 18px; }
}

.proj-head .proj-status { margin-bottom: 14px; }

/* ---- Projects: spacing, no counter, laptop footer ---- */
.proj-card::after { display: none; }

#ProjectsMobileHeadingRow > div { padding-bottom: 36px !important; }

.proj-grid { padding-top: 12px; padding-bottom: 28px; gap: 16px; }

.proj-card { padding: 30px 26px 26px; }

.proj-title { margin-top: 0; }
.proj-role { margin: 6px 0 18px; }
.proj-head .proj-status { margin-bottom: 18px; }
.proj-desc { margin-bottom: 20px; line-height: 1.65; }
.proj-link { padding-top: 16px; }

.proj-dots { margin-top: 0; }

.proj-laptop {
  width: min(74vw, 300px);
  margin: 40px auto 0;
}

.proj-laptop-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: #151515;
  border: 6px solid #2f2f2f;
  border-radius: 12px 12px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 40px var(--s-tint);
}

.proj-laptop-screen span { transition: opacity 0.15s; }

.proj-laptop-base {
  position: relative;
  height: 12px;
  width: 112%;
  margin: 0 -6%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(#d4d6db, #9a9ca2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.proj-laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 22%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, 0.25);
}

.skills-ai-icon {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--s-border);
  background: var(--s-chip);
  color: var(--s-accent);
  font-size: 32px;
}

@media screen and (max-width: 768px) {
  .skills-ai-icon { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }
}

@media screen and (max-width: 768px) {
  #AchievementsHeadingRow .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .achievements-list { font-size: 0.98rem !important; }
}

/* ---- Desktop projects: tabs, description, detail panels ---- */
@media screen and (min-width: 769px) {
  #slick .project-name {
    display: inline-block;
    width: auto;
    padding: 9px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
  }

  #slick .project-name:hover {
    background: var(--s-chip);
  }

  #slick .project-name.active {
    background: var(--s-chip);
    border-color: var(--s-accent);
    box-shadow: 0 0 20px var(--s-tint);
  }

  #projectDescription {
    margin-top: 6vh !important;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }

  #projectDescriptionText {
    font-size: 1.08rem !important;
    line-height: 1.75;
    color: var(--s-fg) !important;
  }

  #furtherDetails {
    max-width: 1060px;
    margin: 36px auto 0;
    padding: 0;
  }

  #furtherDetails .column {
    float: none;
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 8px;
  }

  #furtherDetails .card {
    height: 100%;
    padding: 18px 14px;
    border: 1px solid var(--s-border);
    border-radius: 16px;
    background: var(--s-card);
    box-shadow: var(--s-shadow);
  }

  #furtherDetails .text-anchor {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--s-muted) !important;
  }

  #furtherDetails .card p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--s-fg) !important;
  }
}

/* ---- Timeline logos: uniform, centred, clipped to the circle ---- */
.cd-timeline__img { overflow: hidden; }

.cd-timeline__img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cd-timeline__img img {
  width: 62% !important;
  height: 62% !important;
  margin: 0 !important;
  object-fit: contain;
}

/* ---- Achievements + testimonials ---- */
.award-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.award-card {
  flex: 1 1 280px;
  max-width: 310px;
  padding: 22px 20px;
  text-align: left;
  border: 1px solid var(--s-border);
  border-radius: 16px;
  background: var(--s-card);
  box-shadow: var(--s-shadow);
}

.award-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--s-chip);
  color: var(--s-accent);
}

.award-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--s-fg);
}

.award-meta {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--s-muted);
}

.sec-sub-title {
  margin: 56px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-muted);
}

#slickComments {
  position: relative;
  max-width: 900px;
  padding: 0 64px;
}

#slickComments .slick-slide > div { padding: 0 6px; }

#slickComments blockquote {
  margin: 0;
  padding: 28px 32px;
  text-align: left;
}

#slickComments blockquote p { font-size: 1.05rem; line-height: 1.7; }
#slickComments blockquote footer { margin-top: 14px; font-size: 0.85rem; }

#slickComments > .slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid var(--s-border);
  border-radius: 50%;
  background: var(--s-card);
  color: var(--s-accent) !important;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

#slickComments > .slick-arrow:hover { background: var(--s-chip); }
#slickComments > .fa-arrow-left { left: 0; }
#slickComments > .fa-arrow-right { right: 0; }

@media screen and (max-width: 768px) {
  .award-card { flex-basis: 100%; max-width: none; }
  #slickComments { padding: 0; }
  #slickComments > .slick-arrow { display: none !important; }
  #slickComments blockquote { padding: 20px; }
  .sec-sub-title { margin-top: 40px; }
}

#slickComments .slick-slide > div,
#slickComments blockquote {
  width: 100%;
  box-sizing: border-box;
}

#slickComments .slick-track {
  display: flex;
  align-items: center;
}

#slickComments .slick-slide { height: auto; }

/* ---- Hero quick-contact row ---- */
.hero-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--s-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--s-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hero-contact a:hover,
.hero-contact a:focus {
  color: var(--s-accent);
  border-color: var(--s-accent);
  background: var(--s-chip);
  text-decoration: none;
}

.hero-contact i { font-size: 0.95rem; }

@media screen and (max-width: 768px) {
  .hero-company-name {
    overflow: visible;
    text-overflow: clip;
    font-size: 10.5px;
    letter-spacing: 0;
  }
}

/* ---- Hero balance ---- */
.scroll-down:before { left: calc(50% - 15px); }

@media screen and (max-width: 768px) {
  /* nudge hero content above true centre so tall phones don't look bottom-heavy */
  .outer:not([id]) > .middle > .inner:last-of-type { padding-bottom: 12vh; }
}

/* ---- Mobile nav: lighter bar, Resume lives in the hero ---- */
.hero-resume { display: none !important; }

@media screen and (max-width: 768px) {
  .nav-resume-btn { display: none !important; }

  .hero-resume {
    display: inline-flex !important;
    color: var(--s-accent) !important;
    border-color: var(--s-accent) !important;
    background: var(--s-chip);
  }

  .nav-island { padding: 8px 12px 8px 14px !important; }

  .nav-brand-name { display: inline-block !important; font-size: 1rem; }

  /* theme toggle -> single round icon button showing the mode you can switch to */
  .theme-segmented-toggle {
    position: relative;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--s-border) !important;
    background: var(--s-chip) !important;
    overflow: hidden;
  }

  .theme-segmented-toggle .theme-slider-thumb { display: none !important; }

  .theme-segmented-toggle .theme-toggle-icon {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
    font-size: 1rem !important;
  }

  body:not(.theme-day) .theme-segmented-toggle .icon-sun,
  body.theme-day .theme-segmented-toggle .icon-moon {
    display: flex !important;
  }

  body:not(.theme-day) .theme-segmented-toggle .icon-sun { color: #f59e0b !important; }
  body.theme-day .theme-segmented-toggle .icon-moon { color: #424288 !important; }
}

@media screen and (max-width: 768px) {
  .hero-contact { gap: 7px; flex-wrap: nowrap; }
  .hero-contact a { gap: 6px; padding: 7px 10px; font-size: 0.76rem; }
  .hero-contact i { font-size: 0.85rem; }
}

@media screen and (max-width: 350px) {
  .hero-contact { flex-wrap: wrap; }
}

/* ---- Hero spacing + compact contact row on small phones ---- */
@media screen and (max-width: 768px) {
  .hero-cta-group { margin-top: 32px !important; margin-bottom: 0 !important; }
  .hero-contact { margin-top: 22px; padding: 0 16px; }
}

@media screen and (max-width: 440px) {
  .hero-contact a:not(.hero-resume) {
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .hero-contact a:not(.hero-resume) span { display: none; }
  .hero-contact a:not(.hero-resume) i { font-size: 1rem; }
  .hero-resume { padding: 9px 16px !important; font-size: 0.82rem !important; }
}

/* ---- Theme toggle: no stray focus ring after tap, lighter sun glyph ---- */
.theme-segmented-toggle:focus { outline: none; }

.theme-segmented-toggle:focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 2px;
}

@media screen and (max-width: 768px) {
  .theme-segmented-toggle .icon-sun i { font-weight: 400; font-size: 1.15rem; }
  body:not(.theme-day) .theme-segmented-toggle .icon-sun { color: #fbbf24 !important; }
}

/* ---- Connect section ---- */
.sun-svg { display: block; }

.connect-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px auto 40px;
}

.connect-icons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--s-border);
  border-radius: 999px;
  background: var(--s-card);
  box-shadow: var(--s-shadow);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--s-fg);
  transition: border-color 0.2s, color 0.2s;
}

.connect-icons a:hover,
.connect-icons a:focus {
  border-color: var(--s-accent);
  color: var(--s-accent);
  text-decoration: none;
}

.connect-icons i { color: var(--s-accent); font-size: 1.05rem; }

#Feedbackform {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: left;
  border: 1px solid var(--s-border);
  border-radius: 20px;
  background: var(--s-card);
  box-shadow: var(--s-shadow);
}

#Feedbackform > div { margin-bottom: 16px; }
#Feedbackform > div:last-child { margin-bottom: 0; }

#Feedbackform .feedback-name,
#Feedbackform .feedback-textarea {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--s-border);
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none;
  font-size: 1rem;
  color: var(--s-fg);
}

#Feedbackform .feedback-textarea { height: 130px; resize: vertical; }

#Feedbackform .feedback-name:focus,
#Feedbackform .feedback-textarea:focus {
  outline: none;
  border-color: var(--s-accent);
}

#Feedbackform ::placeholder { color: var(--s-muted); opacity: 0.8; }

#SubmitForm.submit-feedback-button {
  width: 100%;
  height: 48px;
  margin: 0;
  border: 0 !important;
  border-radius: 12px;
  background: var(--s-accent) !important;
  color: #fff;
  font-weight: 600;
}

body:not(.theme-day) #SubmitForm.submit-feedback-button { color: #0a0e16; }
#SubmitForm.submit-feedback-button:disabled { opacity: 0.45; }

.final-text { margin-top: 56px; line-height: 1.8; }

@media screen and (max-width: 768px) {
  .connect-icons { gap: 8px; margin: 22px auto 32px; flex-wrap: wrap; }
  .connect-icons a { padding: 10px 14px; font-size: 0.85rem; }
  #Feedbackform { margin: 0 16px; padding: 22px 18px; }
  .final-text { margin-top: 40px; }
}

.sun-svg { width: 22px; height: 22px; }
.theme-segmented-toggle .icon-sun { display: inline-flex; align-items: center; justify-content: center; }

/* ---- Hero company cards: identical logo box so labels share one baseline ---- */
.hero-company-card .hero-company-logo {
  height: 30px !important;
  width: auto !important;
  max-width: 64px !important;
  margin: 0 0 10px !important;
  object-fit: contain;
}

.hero-company-card .hero-company-name { line-height: 1.2; }

/* phones: don't stretch the hero to a full tall screen */
@media screen and (max-width: 768px) {
  .outer:not([id]) { height: min(100svh, 780px); }
}

@media screen and (max-width: 768px) {
  .outer:not([id]) > .middle > .inner:last-of-type { padding-bottom: 0; }
  .outer:not([id]) > .middle > .inner:first-of-type { padding-top: 72px; }
}
