/* FONT SETUP */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-ExtraLight.woff2") format("woff2");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* DESIGN TOKENS */
:root {
  --green: #0f7a4f;
  --green-dark: #075c3b;
  --green-soft: #eaf5ef;
  --black: #121815;
  --gray-900: #27302b;
  --gray-700: #5c6861;
  --gray-600: #737f78;
  --gray-500: #8b9690;
  --gray-300: #dce2de;
  --gray-100: #f4f6f5;
  --white: #ffffff;
  --gunmetal: #2a3439;
  --graphite: #242424;
  --dark-section: #171d19;
  --dark-panel: #20282b;
  --dark-card: #172019;
  --dark-accent: #8ed4b1;
  --dark-text: #f2f5f3;
  --dark-border: #46534b;
  --dark-field: #1a221d;
  --dark-accent-soft: #193126;
  --company-copy: #c9d0cc;
  --company-link-hover: #b9efd3;
  --form-border: #cfe0d7;
  --invalid-border: #a72b2b;
  --invalid-background: #fff7f7;
  --invalid-text: #8f2020;
  --valid-background: #f7fcf9;
  --danger-dark: #e07979;
  --danger-text-dark: #ff9c9c;
  --panel-radius: 8px;
  --max-width: 1180px;
}

/* GLOBAL RESET AND BASE ELEMENTS */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(15, 122, 79, 0.42);
  outline-offset: 4px;
}

/* STICKY HEADER AND PRIMARY NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(18, 24, 21, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(18, 24, 21, 0.11);
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}


/* Brand and CSS logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 17.16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 51px;
  height: 51px;
  display: grid;
  grid-template-columns: repeat(3, 13px);
  grid-template-rows: 13px 32px;
  gap: 6px;
}

.brand-mark span {
  background: var(--green);
}

.brand-mark .top {
  grid-column: 1 / 4;
}

.brand-mark .stem {
  display: grid;
  grid-template-rows: 13px 13px;
  align-content: space-between;
  background: transparent;
}

.brand-mark .stem::before,
.brand-mark .stem::after {
  content: "";
  display: block;
  background: var(--green);
}

.brand-mark .left,
.brand-mark .right {
  opacity: 0.68;
}

.brand-name {
  width: max-content;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-size: 1.399rem;
  font-weight: 700;
}

.brand-name small {
  width: 100%;
  margin-top: 6.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-700);
  font-size: 0.898rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name small span {
  display: block;
}


/* Desktop navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--gray-700);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="location"] {
  color: var(--green);
}

.nav-links a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--green);
  transition: right 160ms ease;
}

.nav-links a:not(.nav-contact):hover::after,
.nav-links a:not(.nav-contact).active::after,
.nav-links a:not(.nav-contact)[aria-current="location"]::after {
  right: 0;
}

.nav-contact {
  padding: 10px 17px;
  color: var(--white) !important;
  background: var(--green-dark);
  border-radius: 8px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--green);
  transform: translateY(-1px);
}

/* THEME TOGGLE AND ACCESSIBILITY UTILITIES */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.response-nav-actions {
  gap: 14px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  display: block;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
}

/* MOBILE NAVIGATION CONTROL */
.mobile-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon {
  width: 19px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* HERO SECTION */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 570px;
  margin: 0 auto;
  padding: 46px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.25vw, 5.35rem);
  line-height: 1;
  letter-spacing: -0.042em;
  font-weight: 700;
}

.headline-line {
  display: block;
}

.headline-primary {
  white-space: nowrap;
}

.headline-accent {
  margin-top: 0.16em;
  color: var(--green);
}

.hero-copy-group {
  max-width: 640px;
  margin-top: 28px;
}

.hero-copy {
  margin: 0;
  color: var(--gray-700);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
}

.hero-copy-followup {
  margin-top: 12px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
  border-radius: 8px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green);
  border-color: var(--green);
}

.button-secondary {
  background: transparent;
}


/* Hero portfolio-focus panel */
.hero-sphere {
  position: absolute;
  z-index: 1;
  top: auto;
  right: 0;
  bottom: 0;
  width: clamp(320px, 42vw, 680px);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-sphere canvas {
  --sphere-point-rgb: 42, 52, 57;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 200%;
  height: 200%;
}

.portfolio-panel {
  position: relative;
  z-index: 2;
  padding: 30px 32px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(17, 24, 21, 0.08);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.portfolio-panel h2 {
  margin: 0 0 18px;
  padding: 0;
  color: var(--black);
  background: transparent;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.portfolio-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-panel li {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--gray-300);
  color: var(--black);
  font-size: 0.92rem;
}

.portfolio-panel li:first-child {
  border-top: 0;
}

.portfolio-panel li::before {
  content: "■";
  color: var(--green);
  font-size: 0.48rem;
  line-height: 1;
  align-self: center;
}

/* SHARED SECTION LAYOUT */
section {
  scroll-margin-top: 76px;
}

.section-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.08rem;
}

/* Prevent intrinsic content widths from pushing responsive grids beyond their containers. */
.hero-inner > *,
.company-grid > *,
.portfolio-intro > *,
.contact-grid > *,
.focus-grid > *,
.section-heading,
.portfolio-panel,
.focus-card {
  min-width: 0;
}

.portfolio-panel,
.focus-card {
  width: 100%;
  max-width: 100%;
}

.portfolio-panel li,
.focus-card,
.section-heading {
  overflow-wrap: anywhere;
}

/* SHARED CONTENT UTILITIES */
.company-name {
  font-weight: 700;
}

.hero-company-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(15, 122, 79, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-company-link:hover,
.hero-company-link:focus-visible {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

/* CORPORATE BIO SECTION */
.company {
  background: var(--gunmetal);
  color: var(--white);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 90px);
  align-items: start;
}

.company-eyebrow {
  color: var(--dark-accent);
}

.company h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.company-copy {
  color: var(--company-copy);
  font-size: 1.08rem;
}

.company-copy p {
  margin: 0 0 22px;
}

.company-copy a {
  color: var(--dark-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(142, 212, 177, 0.58);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.company-copy a:hover,
.company-copy a:focus-visible {
  color: var(--company-link-hover);
  text-decoration-color: currentColor;
}

.company-policy {
  margin: 40px 0 30px;
  padding: 22px 24px;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--dark-accent);
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

/* PORTFOLIO FOCUS SECTION */
#portfolio {
  background: var(--gray-100);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 90px);
  align-items: start;
  margin-bottom: 46px;
}

.portfolio-intro .section-heading {
  max-width: none;
  margin-bottom: 0;
}

.portfolio-copy {
  color: var(--gray-700);
  font-size: 1.08rem;
}

.portfolio-copy p {
  margin: 0;
}

.portfolio-copy .portfolio-value-panel {
  margin: 22px 0 0;
  padding: 22px 24px;
  color: var(--gray-900);
  background-color: var(--white);
  border-left: 3px solid var(--gunmetal);
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 14px;
}

.focus-card {
  min-height: 208px;
  height: 100%;
  padding: 22px 27px 26px;
  border: 1px solid var(--gray-300);
  border-radius: var(--panel-radius);
  background: var(--white);
}

.focus-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.focus-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.94rem;
}

/* CONTACT SECTION AND FORM */
.contact {
  background: var(--green-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 6vw, 74px);
  align-items: start;
}

.contact h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.contact-intro {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.08rem;
}

.response-time {
  margin: 16px 0 0;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 700;
}

.address-card {
  margin-top: 38px;
  padding: 22px 24px;
  background-color: var(--white);
  border-left: 3px solid var(--gunmetal);
  border-radius: 0 var(--panel-radius) var(--panel-radius) 0;
  font-style: normal;
  color: var(--gray-900);
}

.contact-form {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--form-border);
  border-radius: var(--panel-radius);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-900);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 5px;
  background: var(--gray-100);
  color: var(--black);
  font: inherit;
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 11px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-700) 50%), linear-gradient(135deg, var(--gray-700) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 130px;
  padding: 9px 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 122, 79, 0.11);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--invalid-border);
  background-color: var(--invalid-background);
  box-shadow: 0 0 0 3px rgba(167, 43, 43, 0.09);
}

input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: var(--green);
  background-color: var(--valid-background);
  box-shadow: 0 0 0 3px rgba(15, 122, 79, 0.09);
}

.field-guidance {
  margin: -2px 0 6px;
  color: var(--gray-700);
  font-size: 0.84rem;
  line-height: 1.45;
}

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 5px;
  color: var(--invalid-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.message-meta {
  min-height: 1.2em;
  margin-top: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.message-meta .field-error {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
}

.message-counter {
  flex: 0 0 auto;
  color: var(--gray-600);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.field {
  margin-bottom: 12px;
}

/* SITE FOOTER AND SOCIAL MEDIA LINKS */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-300);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-700);
  font-size: 0.86rem;
  text-align: center;
}


.footer-link {
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
}


.footer-copy {
  text-align: center;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-social-label {
  color: var(--gray-700);
  font-weight: 500;
}

.footer-social a {
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--green);
  text-decoration: underline;
}


.footer-social .social-separator {
  color: var(--gray-500);
  font-weight: 500;
}

/* BACK-TO-TOP OVERLAY */
.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(9, 67, 45, 0.94);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--green);
}

/* CONTACT PROCESSING AND RESPONSE STATES */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--gray-700);
  font-size: 0.84rem;
}

.recaptcha-notice {
  margin: 10px 0 0;
  color: var(--gray-600);
  font-size: 0.76rem;
  line-height: 1.5;
}


.grecaptcha-badge {
  visibility: hidden;
}

#submitButton {
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.response-main {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 56px 20px 64px;
  background: var(--gray-100);
}

.response-card {
  width: min(860px, 100%);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--gray-300);
  border-radius: var(--panel-radius);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--green-soft);
}

.response-card .eyebrow {
  margin-bottom: 16px;
}

.response-card h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--black);
  font-size: clamp(2.2rem, 5vw, 3.85rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.response-card p {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.65;
}

.response-card .response-detail {
  display: grid;
  gap: 3px;
  padding: 15px 18px;
  border-left: 4px solid var(--green);
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 400;
}

.response-card .response-detail strong {
  color: var(--black);
  font-weight: 700;
}

.response-card .hero-actions {
  margin-top: 26px;
}


/* Response page: compact mobile */
@media (max-width: 520px) {
  .response-main {
    place-items: start center;
    align-content: start;
    min-height: auto;
    padding: 28px 16px 44px;
  }

  .response-card {
    padding: 30px 22px;
    box-shadow: 5px 5px 0 var(--green-soft);
  }
}

/* RESPONSIVE: TABLET AND SMALL DESKTOP */
@media (max-width: 980px) {
  .hero-inner {
    min-height: auto;
    padding-bottom: 68px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .portfolio-panel {
    max-width: 680px;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-intro,
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}


/* RESPONSIVE: MOBILE NAVIGATION AND LAYOUT */
@media (max-width: 720px) {
  section {
    scroll-margin-top: 68px;
  }

  .nav-wrap {
    width: min(100% - 28px, var(--max-width));
    min-height: 68px;
  }

  .brand {
    gap: 16.69px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    grid-template-columns: repeat(3, 12px);
    grid-template-rows: 12px 30px;
    gap: 6px;
  }

  .brand-mark .stem {
    grid-template-rows: 12px 12px;
  }

  .brand-name strong {
    font-size: 1.361rem;
  }

  .brand-name small {
    margin-top: 3.85px;
    font-size: 0.745rem;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 22px 20px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border-bottom: 1px solid var(--gray-300);
    background: var(--white);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.nav-contact)::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a[aria-current="location"] {
    color: var(--green-dark);
  }

  .nav-contact {
    text-align: center;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-inner {
    padding: 34px 0 72px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 11vw, 4.2rem);
  }


  .headline-primary {
    white-space: normal;
  }

  .portfolio-panel {
    padding: 26px;
  }

  .portfolio-panel h2 {
    margin-bottom: 18px;
  }

  .section-inner {
    padding: 36px 0;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-row > .field {
    margin-bottom: 0;
  }

  .contact-form {
    padding: 18px;
  }

  .footer-inner {
    min-height: auto;
    padding: 30px 0;
  }
}

/* RESPONSIVE: COMPACT MOBILE */
@media (max-width: 480px) {

  .back-to-top {
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

  .hero-inner {
    padding: 25px 0 58px;
    gap: 38px;
  }

  .eyebrow {
    margin-bottom: 15px;
  }

  h1 {
    font-size: clamp(2.65rem, 13.4vw, 3.55rem);
    line-height: 1.01;
    letter-spacing: -0.04em;
  }

  .headline-accent {
    margin-top: 0.09em;
  }

  .hero-copy-group {
    margin-top: 20px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 26px;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .portfolio-panel {
    padding: 23px 22px;
  }

  .portfolio-panel h2 {
    margin-bottom: 16px;
  }

  .portfolio-panel li {
    padding: 10px 0;
  }

  .section-inner {
    padding: 31px 0;
  }

  .portfolio-intro {
    margin-bottom: 34px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

}

@media (max-width: 760px) {
  .hero-sphere {
    display: none;
  }
}

/* INTERMEDIATE-WIDTH PORTFOLIO CARD QA */
@media (min-width: 981px) and (max-width: 1180px) {
  .focus-card {
    min-height: 214px;
    padding-inline: 23px;
  }

  .focus-card h3 {
    font-size: 1.2rem;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .focus-card {
    min-height: 190px;
  }
}

/* REDUCED MOTION PREFERENCE */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .theme-toggle {
    transition: none;
  }
}

/* DARK THEME OVERRIDES */
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] {
  --green: #55b487;
  --green-dark: #72c79d;
  --green-soft: var(--dark-accent-soft);
  --black: var(--dark-text);
  --gray-900: #dbe2de;
  --gray-700: #b8c2bc;
  --gray-600: #aeb8b2;
  --gray-500: #929e97;
  --gray-300: #3a4640;
  --gray-100: var(--dark-section);
  --white: #111713;
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(222, 235, 226, 0.1);
  background: var(--gunmetal);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .hero {
  background: var(--graphite);
}

html[data-theme="dark"] .brand-name strong,
html[data-theme="dark"] .mobile-toggle {
  color: var(--black);
}

html[data-theme="dark"] .theme-toggle {
  background: #19211c;
  border-color: var(--dark-border);
  color: #dce6df;
}

html[data-theme="dark"] .portfolio-panel {
  background: var(--gunmetal);
  border-color: var(--dark-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .hero-sphere canvas {
  --sphere-point-rgb: 134, 214, 154;
}

html[data-theme="dark"] .focus-card {
  background: var(--dark-card);
}


html[data-theme="dark"] .hero-company-link {
  text-decoration-color: rgba(134, 214, 154, 0.52);
}

html[data-theme="dark"] .hero-company-link:hover,
html[data-theme="dark"] .hero-company-link:focus-visible {
  color: #a8e4ba;
}


html[data-theme="dark"] .company {
  background: var(--gunmetal);
}

html[data-theme="dark"] footer {
  background: #000;
}

html[data-theme="dark"] .back-to-top {
  background: #394640;
  border-color: rgba(215, 223, 218, 0.24);
  color: #d7dfda;
}

html[data-theme="dark"] .back-to-top:hover,
html[data-theme="dark"] .back-to-top:focus-visible {
  background: #46564e;
}

html[data-theme="dark"] .company h2 {
  color: var(--dark-text);
}

html[data-theme="dark"] .company-copy,
html[data-theme="dark"] .company-copy p {
  color: var(--company-copy);
}

html[data-theme="dark"] .company-policy {
  background-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .portfolio-value-panel {
  color: var(--dark-text);
  background-color: rgba(255, 255, 255, 0.06);
  border-left-color: var(--dark-accent);
}

html[data-theme="dark"] .contact {
  background: var(--gunmetal);
}

html[data-theme="dark"] .address-card {
  padding: 22px 24px;
  color: var(--dark-text);
  background-color: rgba(255, 255, 255, 0.06);
  border-top: 0;
  border-left: 3px solid var(--dark-accent);
}

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

html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  background-color: var(--dark-field);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] select {
  background-color: var(--dark-field);
  background-image: linear-gradient(45deg, transparent 50%, var(--dark-text) 50%), linear-gradient(135deg, var(--dark-text) 50%, transparent 50%);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--gray-500);
}

html[data-theme="dark"] input.is-invalid,
html[data-theme="dark"] select.is-invalid,
html[data-theme="dark"] textarea.is-invalid {
  border-color: var(--danger-dark);
  background-color: #2a1818;
  box-shadow: 0 0 0 3px rgba(224, 121, 121, 0.12);
}

html[data-theme="dark"] input.is-valid,
html[data-theme="dark"] select.is-valid,
html[data-theme="dark"] textarea.is-valid {
  border-color: var(--green);
  background-color: #14251c;
}

html[data-theme="dark"] .field-error {
  color: var(--danger-text-dark);
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
  -webkit-text-fill-color: var(--dark-text);
  -webkit-box-shadow: 0 0 0 1000px var(--dark-field) inset;
  caret-color: var(--dark-text);
}

html[data-theme="dark"] .button-secondary {
  color: var(--black);
  border-color: #65736a;
}

html[data-theme="dark"] .response-main {
  background: var(--dark-section);
}

html[data-theme="dark"] .response-card {
  background: #121915;
  border-color: #3e4c44;
  box-shadow: 7px 7px 0 var(--dark-accent-soft);
}

html[data-theme="dark"] .response-card .response-detail {
  background: var(--dark-field);
}

@media (max-width: 720px) {
  .nav-actions {
    gap: 12px;
  }

  .nav-actions .nav-links {
    position: absolute;
  }

  html[data-theme="dark"] .nav-links {
    background: var(--white);
    border-bottom-color: var(--gray-300);
  }
}

