/*
 * romulushill.com - theme layer (loads after main.css)
 * Navy + cool neutrals (chrome/slate - no cyan, no coffee).
 */

:root {
  --rh-bg-deep: #0f1419;
  --rh-bg-panel: #151c24;
  --rh-bg-elevated: #1a232e;
  --rh-text: #eef1f5;
  --rh-text-muted: #aeb6c2;
  --rh-accent: #9aa6b2;
  --rh-accent-dim: rgba(154, 166, 178, 0.28);
  --rh-link: #d8e0ea;
  --rh-link-hover: #ffffff;
  --rh-underline: rgba(165, 178, 195, 0.42);
  --rh-underline-strong: rgba(195, 206, 220, 0.5);
  --rh-ink: #161920;
  --rh-border: rgba(255, 255, 255, 0.08);
  --rh-border-strong: rgba(255, 255, 255, 0.12);
  --rh-nav-h: 4rem;
  --rh-link-light: #3d4a5c;
  --rh-link-light-hover: #2a3340;
}

html {
  scroll-padding-top: calc(var(--rh-nav-h) + 0.75rem);
}

html,
body {
  overflow-x: hidden;
}

/* -- Site header: readable on every route, sits above hero/content -- */
.navbar.w-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  min-height: var(--rh-nav-h);
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
  background: rgba(0, 1, 52, 0.72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-menu {
  float: none;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.link-nav {
  margin-left: 0.35rem;
  margin-right: 0.35rem;
  padding: 0.35rem 0.15rem 0.45rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.link-nav:hover {
  color: #fff !important;
  box-shadow: inset 0 -2px var(--rh-accent) !important;
}

.w-nav-button {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Hero clears fixed nav; subtle depth only */
.hero {
  position: relative;
  padding-top: var(--rh-nav-h);
  box-sizing: border-box;
  background-color: #000152;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    transparent 42%,
    transparent 62%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.hero.pages {
  padding-top: var(--rh-nav-h);
  box-sizing: border-box;
}

/* Section rhythm */
.section {
  padding-top: clamp(2.75rem, 7vw, 4.25rem);
  padding-bottom: clamp(2.75rem, 7vw, 4.25rem);
}

/* Main column accent - thin ice line, not heavy grey slab */
.container-2.w-container {
  border-left-width: 2px;
  border-left-color: var(--rh-accent-dim);
}

/* --- Readable colours on dark sections --- */
.section.main,
.section.furtherdetailsection,
.section.github-section,
.section.contactformsection,
.section.productssection,
.section.campaignssection,
.section.domainsection,
.section.paperhighlights {
  color: var(--rh-text);
}

.section.main .heading-7,
.section.furtherdetailsection .furtherdetailsheading,
.section.github-section .heading-7,
.section.contactformsection h1,
.section.productssection h1,
.section.campaignssection h1,
.section.domainsection h1,
.section.paperhighlights h1 {
  color: var(--rh-text);
  letter-spacing: -0.02em;
}

.section.main .heading-8,
.section.furtherdetailsection .furtherdetailsheading2,
.section.github-section .heading-8,
.section.github-section .github-section-lead,
.section.contactformsection h3,
.section.productssection h3,
.section.campaignssection h3,
.section.paperhighlights h3 {
  color: var(--rh-text-muted);
  font-weight: 500;
}

.section.main .heading-9,
.section.main .heading-6,
.section.furtherdetailsection h1,
.section.furtherdetailsection h3 {
  color: var(--rh-text);
}

.section.main .paragraph-5,
.section.github-section p:not(.github-section-lead) {
  color: var(--rh-text-muted);
  font-weight: 400;
}

.section.furtherdetailsection .paragraph-8 {
  color: var(--rh-text);
  font-weight: 400;
}

.paragraph-6,
.paragraph-7 {
  color: var(--rh-text-muted) !important;
  font-weight: 500;
}

.heading-10 {
  color: #fff !important;
}

.section.main a.link-2,
.section.furtherdetailsection a.link-2,
.section.github-section a,
footer a.footer-links,
.section.contactformsection a,
.section.productssection a.link-2,
.section.campaignssection a,
.section.paperhighlights a.link-2,
.section.domainsection a {
  color: var(--rh-link);
  box-shadow: inset 0 -2px var(--rh-underline);
  font-weight: 500;
}

.section.main a.link-2:hover,
.section.furtherdetailsection a.link-2:hover,
.section.github-section a:hover,
footer a.footer-links:hover,
.section.contactformsection a:hover,
.section.productssection a.link-2:hover,
.section.campaignssection a:hover,
.section.paperhighlights a.link-2:hover,
.section.domainsection a:hover {
  color: var(--rh-link-hover);
  box-shadow: inset 0 -2px var(--rh-underline-strong);
}

.section.productssection .w-tab-pane a:not([class*="tab-link"]):not(.w-inline-block),
.section.paperhighlights .w-tab-pane a:not([class*="tab-link"]):not(.w-inline-block) {
  color: var(--rh-link);
  box-shadow: inset 0 -2px var(--rh-underline);
  font-weight: 500;
}

.section.productssection .w-tab-pane a:not([class*="tab-link"]):not(.w-inline-block):hover,
.section.paperhighlights .w-tab-pane a:not([class*="tab-link"]):not(.w-inline-block):hover {
  color: var(--rh-link-hover);
  box-shadow: inset 0 -2px var(--rh-underline-strong);
}

.section.main {
  background-color: var(--rh-bg-deep);
}

.section.furtherdetailsection {
  background: linear-gradient(180deg, #2d3542 0%, #283038 100%);
}

.section.github-section {
  background-color: var(--rh-bg-panel);
}

.section:not(.main):not(.furtherdetailsection):not(.github-section):not(.contactformsection):not(.productssection):not(.campaignssection):not(.domainsection):not(.paperhighlights) p,
.section:not(.main):not(.furtherdetailsection):not(.github-section):not(.contactformsection):not(.productssection):not(.campaignssection):not(.domainsection):not(.paperhighlights) li {
  color: var(--rh-ink);
  font-weight: 400;
}

.section:not(.main):not(.furtherdetailsection):not(.github-section):not(.contactformsection):not(.productssection):not(.campaignssection):not(.domainsection):not(.paperhighlights) a:hover {
  color: var(--rh-link-light-hover);
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.2);
}

.hero .paragraph-3,
.hero p {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

footer {
  border-top: 1px solid var(--rh-border-strong);
}

footer .small-p {
  color: #e6eef5;
}

footer a.footer-links {
  font-size: 16px;
}

.section .w-layout-blockcontainer {
  max-width: min(1080px, 100%);
  padding-left: clamp(1rem, 4vw, 2.25rem);
  padding-right: clamp(1rem, 4vw, 2.25rem);
  box-sizing: border-box;
}

@media screen and (max-width: 991px) {
  .wrapper-title {
    width: 100%;
    max-width: 100%;
  }
}

/* -- Tab panels: single-surface card (no Webflow clearfix gap) -- */
.rh-tab-panel.tabs.w-tabs {
  width: 100%;
  max-width: 100%;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rh-border-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--rh-bg-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

/* Webflow adds :before/:after clearfix "rows" that read as a dark band */
.rh-tab-panel.tabs.w-tabs::before,
.rh-tab-panel.tabs.w-tabs::after {
  content: none !important;
  display: none !important;
}

.rh-tab-panel.tabs.w-tabs .tabs-menu.w-tab-menu {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 10px 10px 14px;
  gap: 8px;
  box-sizing: border-box;
  background: transparent !important;
  border-bottom: 1px solid var(--rh-border);
}

.rh-tab-panel.tabs.w-tabs .w-tab-link {
  flex: 1 1 10rem;
  min-width: min(100%, 9rem);
  margin: 0 !important;
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  border-right: none !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--rh-text-muted) !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.rh-tab-panel.tabs.w-tabs .w-tab-link.w--current {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--rh-text) !important;
  border-color: var(--rh-border-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rh-tab-panel.tabs.w-tabs .w-tab-link:hover:not(.w--current) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--rh-text) !important;
}

.rh-tab-panel.tabs.w-tabs .w-tab-link > div {
  width: 100%;
}

.text-block-4,
.text-block-5 {
  color: inherit !important;
}

.rh-tab-panel.tabs.w-tabs .tabs-content.w-tab-content {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent !important;
  border-radius: 0;
}

.rh-tab-panel.tabs.w-tabs .w-tab-content {
  overflow: visible;
}

.rh-tab-panel.tabs.w-tabs .w-tab-pane {
  overflow: visible;
  padding: 1.15rem 1.25rem 1.35rem;
}

.rh-tab-panel.tabs.w-tabs .w-tab-pane .heading-10 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  padding-left: 0;
}

.rh-tab-panel.tabs.w-tabs .w-tab-pane .paragraph-6,
.rh-tab-panel.tabs.w-tabs .w-tab-pane .paragraph-7 {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

.rh-tab-panel.tabs.w-tabs .tab-pane-tab-1,
.rh-tab-panel.tabs.w-tabs .tab-pane-tab-2,
.rh-tab-panel.tabs.w-tabs .tab-pane-tab-3 {
  padding-bottom: 0;
}

@media screen and (max-width: 520px) {
  .rh-tab-panel.tabs.w-tabs .tabs-menu.w-tab-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 10px 14px;
    gap: 8px;
  }

  .rh-tab-panel.tabs.w-tabs .w-tab-link {
    flex: 1 1 auto;
    min-width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 16px 14px;
  }

  .rh-tab-panel.tabs.w-tabs .w-tab-link.w--current {
    box-shadow: inset 3px 0 0 var(--rh-accent);
  }
}

/* -- About -- */
.about-tagline {
  max-width: 46rem;
}

.about-tagline .about-tagline__link {
  color: var(--rh-link);
  box-shadow: inset 0 -2px var(--rh-underline-strong);
}

.about-tagline .about-tagline__link:hover {
  color: var(--rh-link-hover);
}

.about-intro__text {
  margin-bottom: 1rem;
  max-width: 52rem;
}

.about-intro__strong {
  color: var(--rh-text);
  font-weight: 600;
}

.about-intro__handle {
  color: var(--rh-text-muted);
  font-weight: 600;
}

.about-subheading {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rh-border-strong);
}

.about-ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.about-venture-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--rh-border);
  background: rgba(255, 255, 255, 0.02);
}

.about-venture-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.about-venture-brand .heading-6 {
  margin: 0;
}

.about-venture-logo {
  max-height: 48px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
}

.about-venture-logo--robottik {
  max-height: 42px;
  max-width: min(240px, 85vw);
}

.about-venture-links {
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-venture-sep {
  color: var(--rh-text-muted);
  user-select: none;
}

.about-skills-lead {
  margin-bottom: 1rem;
}

/* Skills: grouped lists - readable, no trademark zoo */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
  margin-top: 0.75rem;
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--rh-border);
  background: rgba(0, 0, 0, 0.22);
}

.skills-matrix__title {
  margin: 0 0 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rh-border);
  font-family: Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
}

.skills-matrix__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-matrix__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--rh-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skills-matrix__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.skills-matrix__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media screen and (max-width: 900px) {
  .skills-matrix {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 520px) {
  .skills-matrix {
    grid-template-columns: 1fr;
    padding: 1.1rem 1rem;
  }
}

/* Legacy grid if any page still uses logo cells */
.rh-layout-layout {
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  justify-items: center;
  align-items: center;
}

.rh-layout-layout .w-layout-cell img {
  object-fit: contain;
}

/* -- Contact -- */
.contactformsection .contactformsectionheading,
.contactformsection .contactformsectionheading2 {
  text-align: left;
  max-width: 34rem;
}

.contactformsection .contactformsectionheading2 {
  color: var(--rh-text-muted) !important;
  font-weight: 400;
  line-height: 1.55;
}

.contactform.rh-contact-form {
  text-align: left;
  max-width: 26rem;
  margin: 0;
}

.rh-contact-form .form-row {
  margin-bottom: 1rem;
}

.rh-contact-form__optional {
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rh-text-muted);
}

.contactformlabels {
  display: block;
  text-align: left;
  margin-bottom: 0.4rem;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-text-muted) !important;
}

.contactformentries {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: var(--rh-text) !important;
  background-color: rgba(0, 0, 0, 0.38) !important;
  border: 1px solid var(--rh-border-strong) !important;
  border-radius: 8px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contactformentries::placeholder {
  color: rgba(200, 192, 178, 0.5);
}

.contactformentries:focus {
  outline: none;
  border-color: var(--rh-accent) !important;
  box-shadow: 0 0 0 3px var(--rh-accent-dim);
}

textarea.contactformentries,
.contactformentries.rh-contact-form__textarea {
  min-height: 9rem;
  resize: vertical;
  font-family: Roboto, sans-serif;
}

.contactformbutton {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  padding: 0.55rem 1.5rem !important;
  min-height: 44px !important;
  width: auto !important;
  min-width: 9.5rem !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--rh-text) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--rh-border-strong) !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}

.contactformbutton:hover {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.contactformbutton:active {
  transform: translateY(1px);
}

/* -- GitHub section -- */
.github-section-title {
  margin-top: 0;
}

.github-section-lead {
  margin-bottom: 1.5rem;
  color: var(--rh-text-muted);
}

.github-section-subhead {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  margin: 1.75rem 0 0.75rem 0;
}

.github-section-subhead:first-of-type {
  margin-top: 0.25rem;
}

.github-orgs__status,
.github-orgs__empty,
.github-orgs__error {
  color: var(--rh-text-muted);
  font-size: 16px;
  margin: 0;
}

.github-orgs__list {
  list-style: none;
  margin: 0 0 1.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.github-orgs__item {
  margin: 0;
}

.github-orgs__link {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  background: var(--rh-bg-elevated);
  border: 1px solid var(--rh-border-strong);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
  color: var(--rh-text);
}

.github-orgs__link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #1a1f28;
  color: var(--rh-text);
}

.github-orgs__avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.github-orgs__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.github-orgs__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--rh-accent);
}

.github-orgs__link:hover .github-orgs__name {
  color: var(--rh-link-hover);
}

.github-orgs__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--rh-text-muted);
}

.github-orgs__nodesc {
  font-style: italic;
  opacity: 0.75;
}

.github-repos__status,
.github-repos__empty,
.github-repos__error {
  color: var(--rh-text-muted);
  font-size: 16px;
  margin: 0;
}

.github-repos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.github-repos__item {
  margin: 0;
}

.github-repos__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--rh-bg-elevated);
  border: 1px solid var(--rh-border-strong);
  border-radius: 12px;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s;
}

.github-repos__link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #1a1f28;
  color: var(--rh-text);
}

.github-repos__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--rh-accent);
}

.github-repos__link:hover .github-repos__name {
  color: var(--rh-link-hover);
}

.github-repos__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--rh-text-muted);
  flex: 1;
}

.github-repos__nodesc {
  font-style: italic;
  opacity: 0.75;
}

.github-repos__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 13px;
  color: #b9c4cf;
}

.github-repos__lang {
  font-weight: 500;
}

.github-repos__footnote {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 15px;
}

.github-repos__footnote a {
  color: var(--rh-link);
  box-shadow: inset 0 -2px var(--rh-underline);
}

.github-repos__footnote a:hover {
  color: var(--rh-link-hover);
}

@media screen and (max-width: 767px) {
  .section.github-section {
    height: auto;
  }

  .github-repos__list {
    grid-template-columns: 1fr;
  }
}
