html[data-theme="light"] {
  color-scheme: light;
}

.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 17% 21%, rgba(53, 150, 190, .2), transparent 36%),
    radial-gradient(ellipse at 78% 38%, rgba(228, 194, 72, .14), transparent 34%),
    radial-gradient(ellipse at 53% 108%, rgba(91, 199, 177, .14), transparent 43%),
    linear-gradient(120deg, #0b1422 0%, #101b2b 45%, #123044 100%);
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("../img/hero_bg.png") center / cover no-repeat;
  content: "";
  opacity: .32;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid,
.hero-footer {
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: #f3d878;
  background: linear-gradient(105deg, #fff0a4 0%, #f0d15d 42%, #c89828 74%, #fff0a4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(228, 194, 72, .24));
}

.hero-description {
  color: #d0dce5;
  text-shadow: 0 0 20px rgba(74, 174, 188, .11);
}

.hero-note {
  color: #e2f8f2;
  text-shadow: 0 0 20px rgba(146, 232, 206, .22);
}

.hero-note::before {
  background: linear-gradient(180deg, #e4c248, #92e8ce 55%, #63aee8);
  box-shadow: 0 0 14px rgba(146, 232, 206, .38);
}

.hero .button-primary {
  background: linear-gradient(115deg, #f4df8c, #e4c248 55%, #c99d2d);
  box-shadow: inset 0 1px rgba(255, 255, 255, .42), 0 0 22px rgba(228, 194, 72, .2);
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible {
  background: linear-gradient(115deg, #fff0a4, #f1d875 58%, #ddb548);
  box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 0 28px rgba(228, 194, 72, .32);
}

.hero-footer {
  border-image: linear-gradient(90deg, rgba(146, 232, 206, .18), rgba(228, 194, 72, .55), rgba(99, 174, 232, .18)) 1;
  color: #9fb5c2;
  text-shadow: 0 0 14px rgba(99, 174, 232, .2);
}

.label-top-center {
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
}

.label-bottom-center {
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
}

/* These labels belong to the sections that switch themes. */
.intro .eyebrow,
.solutions .eyebrow,
.approach .eyebrow {
  color: #03045e;
  font-size: 13px;
}

html[data-theme="dark"] .intro {
  background: #101b2b;
  color: #f4f5f2;
}

html[data-theme="dark"] .solutions {
  background: #132033;
  color: #f4f5f2;
}

html[data-theme="dark"] .approach {
  background: #152a35;
  color: #f4f5f2;
}

html[data-theme="dark"] .intro .eyebrow,
html[data-theme="dark"] .solutions .eyebrow,
html[data-theme="dark"] .approach .eyebrow {
  color: #90e0ef;
}

html[data-theme="dark"] .intro h2 span,
html[data-theme="dark"] .section-heading h2 span,
html[data-theme="dark"] .approach h2 span {
  color: var(--accent);
}

html[data-theme="dark"] .intro-grid > div > p:last-child,
html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .solution-card p,
html[data-theme="dark"] .approach-copy,
html[data-theme="dark"] .steps p {
  color: #bbc6cb;
}

html[data-theme="dark"] .solution-grid,
html[data-theme="dark"] .solution-card,
html[data-theme="dark"] .steps,
html[data-theme="dark"] .steps li {
  border-color: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] .solution-card:hover {
  background: #1b2b3d;
}

html[data-theme="dark"] .solution-card > a,
html[data-theme="dark"] .approach .text-link {
  color: var(--gold);
}

.workspace-showcase {
  padding: clamp(42px, 6vw, 76px) 0;
  background: #101b2b;
}

.workspace-showcase .container {
  max-width: 1080px;
}

.workspace-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(228, 194, 72, .28);
  border-radius: clamp(12px, 2vw, 22px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.legal-content {
  padding-block: clamp(64px, 9vw, 112px);
  background: #101b2b;
  color: #f4f5f2;
}

.legal-inner {
  max-width: 860px;
}

.legal-inner .eyebrow {
  margin-bottom: 18px;
  color: #90e0ef;
}

.legal-inner h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 64px);
}

.legal-inner .legal-updated {
  margin-bottom: 38px;
  color: #90e0ef;
  font-size: 13px;
}

.legal-inner h2 {
  margin: 42px 0 14px;
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.025em;
}

.legal-inner p,
.legal-inner li {
  color: #c0cbd3;
  font-size: 15px;
  line-height: 1.85;
}

.legal-inner ul {
  padding-left: 22px;
}

.legal-inner li + li {
  margin-top: 10px;
}

.legal-inner a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.footer-inner {
  flex-wrap: wrap;
  padding-block: 22px;
  row-gap: 18px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal-links a {
  color: #aab3c0;
  font-size: 11px;
  text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible,
.footer-legal-links a[aria-current="page"] {
  color: var(--gold);
}

.about-page {
  background: #101b2b;
  color: #f4f5f2;
}

.about-hero {
  padding: clamp(62px, 8vw, 106px) 0;
  background: radial-gradient(ellipse at 78% 35%, rgba(44, 108, 111, .2), transparent 38%), linear-gradient(120deg, #101b2b, #12283a);
}

.about-hero-grid,
.about-story-grid,
.about-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.about-page .eyebrow {
  color: #90e0ef;
}

.about-hero h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(46px, 6.3vw, 76px);
}

.about-hero h1 span,
.about-contact h2 span {
  color: var(--gold);
}

.about-lead {
  max-width: 560px;
  margin-bottom: 30px;
  color: #c0cbd3;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.8;
}

.about-visual {
  margin: 0;
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(228, 194, 72, .28);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.about-visual figcaption {
  margin-top: 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-page-section {
  padding: clamp(68px, 9vw, 108px) 0;
}

.about-story {
  background: #132033;
}

.about-story h2,
.about-approach h2,
.site-faq-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 54px);
}

.about-story-copy p,
.about-approach-grid > div > p:last-child,
.site-faq-heading > p {
  color: #bbc6cb;
  font-size: 15px;
  line-height: 1.85;
}

.about-story-copy p:last-child {
  margin-bottom: 0;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-principle-card {
  min-height: 265px;
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .025);
}

.about-principle-card > span {
  color: #90e0ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.about-principle-card h2 {
  margin: 30px 0 13px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.22;
}

.about-principle-card p {
  margin: 0;
  color: #bbc6cb;
  font-size: 13px;
  line-height: 1.8;
}

.about-principle-featured {
  border-color: rgba(228, 194, 72, .55);
  background: linear-gradient(145deg, rgba(228, 194, 72, .1), rgba(255, 255, 255, .025));
}

.about-principle-featured > span {
  color: var(--gold);
}

.about-approach {
  background: #152a35;
}

.about-approach-grid > div > p:last-child {
  max-width: 530px;
  margin: 20px 0 0;
}

.about-practice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .17);
}

.about-practice-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.about-practice-list li > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.about-practice-list h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.about-practice-list p {
  margin: 0;
  color: #bbc6cb;
  font-size: 13px;
  line-height: 1.7;
}

.site-faq {
  background: #101b2b;
}

.site-faq-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 36px;
}

.site-faq-heading > p {
  max-width: 340px;
  margin: 0 0 6px;
}

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

.site-faq-item {
  padding: 0 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.site-faq-item summary {
  position: relative;
  padding: 21px 36px 21px 0;
  color: #f4f5f2;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.site-faq-item summary::-webkit-details-marker {
  display: none;
}

.site-faq-item summary::after {
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--gold);
  content: "+";
  font-size: 23px;
  font-weight: 400;
}

.site-faq-item[open] summary::after {
  content: "−";
}

.site-faq-item p {
  max-width: 850px;
  margin: -2px 32px 22px 0;
  color: #bbc6cb;
  font-size: 14px;
  line-height: 1.8;
}

.about-contact {
  padding: clamp(48px, 7vw, 78px) 0;
  background: #173c47;
}

.about-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.about-contact .eyebrow {
  margin-bottom: 14px;
}

.about-contact h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 48px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(228, 194, 72, .62);
  border-radius: 2px;
  background: transparent;
  color: #e4c248;
  font: inherit;
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(228, 194, 72, .1);
}

.theme-toggle-icon {
  font-size: 17px;
  line-height: 1;
}

.solution-card .card-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 19px;
  height: 1px;
  background: var(--gold);
}

.menu-icon { position: relative; }

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

@media (min-width: 561px) and (max-width: 820px) {
  .header-inner { height: 72px; }

  .menu-toggle {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }

  .navigation {
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: #101b2b;
    border-bottom: 1px solid var(--line);
  }

  .navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .navigation a {
    padding: 13px 5px;
    border-bottom: 1px solid var(--line);
  }

  .navigation .nav-contact {
    margin-top: 10px;
    padding: 13px 5px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 560px) {
  .brand small {
    font-size: 8px;
    letter-spacing: .06em;
  }
}

@media (max-width: 800px) {
  .about-hero-grid,
  .about-story-grid,
  .about-approach-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-visual {
    max-width: 680px;
  }

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

  .about-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .about-principles-grid {
    grid-template-columns: 1fr;
  }

  .about-principle-card {
    min-height: 0;
  }

  .site-faq-heading {
    display: block;
  }

  .site-faq-heading > p {
    margin-top: 17px;
  }

  .site-faq-item summary {
    font-size: 15px;
  }

  .label-top-center,
  .label-bottom-center {
    padding: 7px 5px;
    font-size: 6px;
    letter-spacing: .03em;
  }

  .label-top-center::before,
  .label-bottom-center::before {
    margin-right: 4px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    justify-content: initial;
    gap: 0;
  }

  .theme-toggle {
    align-self: center;
    min-width: 0;
    margin: 0 8px 0 auto;
    padding: 7px 9px;
  }

  .theme-toggle-icon {
    font-size: 21px;
  }

  .theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Soft, hero-matched surfaces for both theme states and the permanent dark sections. */
.intro {
  background: linear-gradient(125deg, #e8eef1 0%, #e3ebef 48%, #dce7ec 100%);
}

.solutions {
  background: linear-gradient(115deg, #e5ecef 0%, #eaf0f2 52%, #dfe9ed 100%);
}

.approach {
  background: linear-gradient(130deg, #e2eaed 0%, #e8eef0 48%, #d9e5e9 100%);
}

html[data-theme="dark"] .intro {
  background: radial-gradient(ellipse at 14% 20%, rgba(72, 125, 153, .2), transparent 42%), linear-gradient(125deg, #111d2d 0%, #172538 52%, #1b3441 100%);
}

html[data-theme="dark"] .solutions {
  background: radial-gradient(ellipse at 86% 18%, rgba(53, 125, 126, .16), transparent 40%), linear-gradient(115deg, #132033 0%, #17283b 52%, #1a303d 100%);
}

html[data-theme="dark"] .approach {
  background: radial-gradient(ellipse at 10% 80%, rgba(50, 126, 131, .16), transparent 44%), linear-gradient(130deg, #142631 0%, #172e39 52%, #1b3742 100%);
}

html[data-theme="dark"] .solution-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(17, 34, 48, .3));
}

html[data-theme="dark"] .solution-card:hover {
  background: linear-gradient(145deg, #203649, #1b303e);
}

.workspace-showcase,
.legal-content,
.site-faq,
.site-footer {
  background: radial-gradient(ellipse at 82% 16%, rgba(45, 108, 118, .16), transparent 42%), linear-gradient(125deg, #0d1726 0%, #101d2d 54%, #142b38 100%);
}

.about-page {
  background: linear-gradient(125deg, #0d1726 0%, #101d2d 54%, #142b38 100%);
}

.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 18%, rgba(141, 146, 63, .25), transparent 38%), radial-gradient(ellipse at 78% 36%, rgba(20, 157, 127, .25), transparent 42%), radial-gradient(ellipse at 72% 84%, rgba(10, 125, 78, .2), transparent 42%), linear-gradient(120deg, #172d20 0%, #123b34 52%, #0e3529 100%);
}

.about-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("../img/about_hero_bg.png") center / cover no-repeat, radial-gradient(ellipse at 18% 18%, #9b9848, transparent 48%), radial-gradient(ellipse at 64% 46%, #168a78, transparent 54%), linear-gradient(125deg, #697a31 0%, #16796e 42%, #087b50 72%, #103c2a 100%);
  background-blend-mode: multiply;
  content: "";
  opacity: .4;
  pointer-events: none;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
}

.about-story {
  background: radial-gradient(ellipse at 12% 45%, rgba(57, 111, 149, .14), transparent 44%), linear-gradient(120deg, #121f31, #17283b 58%, #1a3040);
}

.about-principles {
  background: radial-gradient(ellipse at 18% 20%, rgba(228, 194, 72, .07), transparent 36%), radial-gradient(ellipse at 86% 80%, rgba(62, 143, 151, .12), transparent 42%), linear-gradient(125deg, #101b2b, #132235 56%, #17303b);
}

.about-approach {
  background: radial-gradient(ellipse at 86% 65%, rgba(54, 132, 131, .17), transparent 43%), linear-gradient(125deg, #142631, #172e39 55%, #1b3742);
}

.about-contact,
.contact {
  background: radial-gradient(ellipse at 18% 18%, rgba(146, 232, 206, .12), transparent 42%), radial-gradient(ellipse at 88% 82%, rgba(228, 194, 72, .1), transparent 40%), linear-gradient(115deg, #153440 0%, #173c47 52%, #1d4650 100%);
}

.about-page .eyebrow,
.about-principle-card > span {
  font-size: 12px;
}

.about-hero h1 {
  font-size: clamp(48px, calc(6.3vw + 2px), 78px);
}

.about-story h2,
.about-approach h2 {
  font-size: clamp(36px, calc(4.5vw + 2px), 56px);
}

.about-principle-card h2 {
  font-size: clamp(24px, calc(2.5vw + 2px), 32px);
}

.about-practice-list h3 {
  font-size: 19px;
}
