:root {
  color-scheme: light;
  --navy: #11133c;
  --navy-deep: #0e102d;
  --ink: #181937;
  --muted: #50536c;
  --gold: #ffdf57;
  --paper: #f3f3f7;
  --line: #dcdde8;
  --wrap: min(100% - 5rem, 76rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: white;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #925900; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--gold); transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { background: #fff; }
.header-inner { min-height: 5.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: 0 1 15.4rem; min-width: 0; }
.brand img { width: 100%; height: auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); font-weight: 680; font-size: .94rem; }
.primary-nav a { text-decoration: none; padding-block: .65rem; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: .24em; }
.primary-nav .nav-contact { border: 1px solid var(--line); border-radius: .3rem; padding: .65rem 1.15rem; }
.primary-nav .nav-contact:hover { background: var(--paper); text-decoration: none; }

.hero { position: relative; isolation: isolate; background: var(--navy-deep); color: white; overflow: hidden; border-bottom: .33rem solid var(--gold); }
.hero-media { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 58%; background: #29243a url("assets/hero.jpg") center 53% / cover no-repeat; }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, var(--navy-deep), #0e102d65 23%, #0e102d00 55%); }
.hero-inner { min-height: 35rem; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 4rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .79rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 1.15rem; min-width: 1.15rem; height: .15rem; background: #c59409; }
.hero .eyebrow, .featured .eyebrow, .contact .eyebrow { color: var(--gold); }
.hero .eyebrow > span, .featured .eyebrow > span, .contact .eyebrow > span { background: var(--gold); }
.hero h1 { margin-top: 1.05rem; font-size: clamp(3.9rem, 7.1vw, 7rem); font-weight: 800; line-height: .95; letter-spacing: -.074em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-description { margin-top: 1.5rem; color: #e2e2eb; max-width: 24rem; font-size: clamp(1.03rem, 1.5vw, 1.2rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .66rem; margin-top: 1.95rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.03rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .3rem; font-size: .93rem; font-weight: 740; text-decoration: none; }
.button-gold { color: var(--navy-deep); background: var(--gold); }
.button-gold:hover { background: #ffec9c; }
.button-outline { color: white; border-color: #8b8da8; }
.button-outline:hover { background: #ffffff19; }
.hero :focus-visible, .featured :focus-visible, .contact :focus-visible { outline-color: var(--gold); }

.technology, .knowledge, .contact { padding-block: clamp(3.5rem, 7vw, 6.6rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.1rem 2rem; margin-bottom: 1.9rem; }
.section-heading h2, .contact h2 { margin-top: .55rem; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 780; line-height: 1.05; letter-spacing: -.054em; }
.section-heading > p { color: var(--muted); font-size: 1.03rem; max-width: 22rem; line-height: 1.55; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.product-card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: .58rem; overflow: hidden; text-decoration: none; }
.card-link:hover { border-color: #a7a8bc; }
.card-photo { display: grid; place-items: center; aspect-ratio: 1.74; overflow: hidden; background: #e8e8ef; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease-out; }
.card-link:hover img { transform: scale(1.035); }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem clamp(1rem, 2vw, 1.6rem) 1.4rem; }
.card-type { color: #535678; font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.card-copy h3 { margin-block: .4rem; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.027em; }
.card-copy > p:not(.card-type) { color: var(--muted); margin-bottom: 1.1rem; line-height: 1.45; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 740; text-decoration: underline; text-underline-offset: .23em; }
.read-more b { font-size: 1.17rem; color: #785710; text-decoration: none; }

.knowledge { background: var(--paper); }
.knowledge-layout { display: grid; gap: clamp(1.4rem, 4vw, 4rem); grid-template-columns: minmax(0, .92fr) minmax(0, 1.1fr); align-items: start; }
.featured { overflow: hidden; background: var(--navy); color: white; border-radius: .58rem; }
.featured-photo { aspect-ratio: 1.95; background: #dfe0e9; overflow: hidden; }
.featured-photo img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy { padding: clamp(1.4rem, 3vw, 2.35rem); }
.featured h3 { margin-top: .65rem; font-size: clamp(1.55rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1.05; }
.featured-copy > p:not(.eyebrow) { margin: .8rem 0 1.35rem; color: #ddddec; line-height: 1.55; }
.directory-group + .directory-group { margin-top: 1.35rem; }
.directory-group h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.directory-group ul { margin: 0; padding: 0; list-style: none; }
.directory-group li { border-top: 1px solid #d6d7e2; }
.directory-group li:last-child { border-bottom: 1px solid #d6d7e2; }
.directory-group a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.65rem; padding: .5rem .1rem; text-decoration: none; font-weight: 620; font-size: .96rem; }
.directory-group a b { color: #715009; font-size: 1.18rem; font-weight: 580; }
.directory-group a:hover span { text-decoration: underline; text-underline-offset: .22em; }

.contact { background: var(--navy); color: white; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.contact-inner p:not(.eyebrow) { margin-top: 1.2rem; color: #e0e1ec; line-height: 1.5; }
.contact-links { display: grid; align-content: center; justify-items: start; gap: .35rem; padding-left: 1.5rem; border-left: 1px solid #464869; }
.contact-label { color: var(--gold); font-size: .81rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.contact-label:not(:first-child) { margin-top: .7rem; }
.contact-links a { color: white; font-size: clamp(1rem, 1.55vw, 1.26rem); font-weight: 650; text-underline-offset: .24em; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--gold); }
.phone-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .65rem; }
.phone-links span { color: #dcdded; }
.site-footer { background: var(--navy-deep); color: #dcdded; font-size: .9rem; }
.footer-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer a { text-underline-offset: .25em; }
.site-footer a:focus-visible { outline-color: var(--gold); }

dialog { width: min(54rem, 100% - 2rem); max-height: min(88dvh, 57rem); background: white; color: var(--ink); border: 1px solid #d8d8e5; border-radius: .65rem; padding: 0; overscroll-behavior: contain; box-shadow: 0 1.4rem 5rem #08092250; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #10112cd2; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--navy); color: var(--gold); padding: .45rem clamp(1rem, 4vw, 2.5rem); letter-spacing: .07em; font-size: .85rem; font-weight: 750; }
.close-dialog { display: grid; place-items: center; appearance: none; min-width: 2.65rem; min-height: 2.65rem; border-radius: .3rem; border: 1px solid #ffffff50; background: transparent; color: white; cursor: pointer; font-size: 1.65rem; line-height: 1; }
.close-dialog:hover { background: #ffffff25; }
.close-dialog:focus-visible { outline-color: var(--gold); }
.dialog-scroll { padding: clamp(1rem, 4vw, 2.65rem); min-height: 0; overflow: auto; overscroll-behavior: contain; }
#dialog-title, .standalone h1 { margin: 0 0 1.2rem; font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
#dialog-title:focus { outline: none; }
.article-content { line-height: 1.62; overflow-wrap: anywhere; }
.article-content :where(p, div, ul, ol, blockquote) { margin: .65em 0; }
.article-content :where(h2, h3, h4, h5, h6) { margin: 1.1em 0 .45em; line-height: 1.24; }
.article-content img { display: inline-block; height: auto; max-width: min(100%, 42rem); margin: .35rem .3rem .35rem 0; vertical-align: middle; }
.article-content td img, .article-content th img { max-width: min(100%, 13rem); }
.article-content img:only-child { margin-right: 0; }
.article-content .table-scroll { overflow: auto; max-width: 100%; padding: .1rem; }
.article-content table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: .95rem; }
.article-content :where(td, th) { border: 1px solid var(--line); padding: .45rem; vertical-align: top; }
.article-content :where(td, th) p { margin: 0; }
.article-content th { background: var(--paper); text-align: left; }
.article-content address { font-style: normal; }
.standalone { width: min(42rem, 100% - 2rem); margin: 4rem auto; }
.standalone > a { display: inline-block; margin-top: 1.25rem; }
.no-script { padding-block: .8rem; }

@media (max-width: 55rem) {
  :root { --wrap: min(100% - 3rem, 76rem); }
  .hero-inner { min-height: 30rem; }
  .hero-media { width: 62%; }
  .hero-media::after { background: linear-gradient(90deg, var(--navy-deep), #0e102d80 30%, #0e102d00 80%); }
}

@media (max-width: 43rem) {
  :root { --wrap: min(100% - 2rem, 76rem); }
  .section-heading { flex-direction: column; align-items: start; }
  .product-grid, .knowledge-layout, .contact-inner { grid-template-columns: 1fr; }
  .contact-links { padding: 1.1rem 0 0; border-top: 1px solid #464869; border-left: 0; }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-media { position: relative; width: 100%; aspect-ratio: 1.65; background-position: 60% 54%; }
  .hero-media::after { background: linear-gradient(180deg, var(--navy-deep), #0e102d00 24%); }
  .hero-inner { min-height: auto; padding-block: 2.8rem 1.25rem; }
  .hero h1 { font-size: clamp(3.15rem, 10.5vw, 4.6rem); }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .card-photo { aspect-ratio: 1.95; }
}

@media (max-width: 28rem) {
  .header-inner { gap: .25rem; flex-direction: column; justify-content: center; padding-block: .55rem .4rem; }
  .brand { width: 12.1rem; flex: none; }
  .primary-nav { gap: 1.05rem; }
  .primary-nav .nav-contact { padding: .45rem .7rem; }
  .hero .eyebrow { font-size: .73rem; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-photo img { transition: none; }
}
