:root {
  color-scheme: light;
  --ink: #132322;
  --muted: #4c625d;
  --page: #f6f8f6;
  --line: #dce5df;
  --deep: #071715;
  --dark: #0c2420;
  --mint: #86f2bc;
  --green: #18734f;
  --wrap: 76rem;
  font: 100%/1.65 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.1vw, 3.35rem); letter-spacing: -.05em; }
h3 { font-size: 1.28rem; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #38a775; outline-offset: 4px; }
.wrap { width: min(var(--wrap), calc(100% - 5.6rem)); margin-inline: auto; }
.section { padding-block: clamp(3.6rem, 8vw, 7.1rem); }
.skip-link { position: absolute; top: .7rem; left: .7rem; z-index: 5; transform: translateY(-200%); padding: .6rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { transform: none; }

.site-header { background: var(--deep); color: white; }
.header-row { min-height: 5.1rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #cfece026; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; color: white; flex-shrink: 0; }
.brand-word { font-size: 1.45rem; font-weight: 770; letter-spacing: .035em; line-height: 1; }
.brand-word small { display: block; margin-top: .22rem; font-size: .48rem; font-weight: 650; letter-spacing: .09em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 1fr); gap: .21rem; width: 1.35rem; transform: rotate(-12deg); }
.brand-mark i { height: .55rem; background: var(--mint); border-radius: 1px; }
.brand-mark i:nth-child(2) { opacity: .55; }
.brand-mark i:nth-child(3) { opacity: .78; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); }
.nav a { color: #d0e0d9; text-decoration: none; font-size: .93rem; font-weight: 550; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint); }
.menu-toggle { display: none; }
.button { min-height: 3rem; padding: .64rem 1.15rem; display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: .34rem; text-decoration: none; font-weight: 680; font-size: .95rem; line-height: 1.3; transition: background .18s ease, border-color .18s ease; }
.button-primary { background: var(--mint); color: #09251a; }
.button-primary:hover { background: #b5ffd3; }
.button-header { border-color: #87baaa80; color: #e4f7ef; background: transparent; white-space: nowrap; }
.button-header:hover, .button-outline:hover { background: #ddfff117; border-color: #d0e9de; }
.button-outline { color: #eef8f4; border-color: #b9d5c980; background: #08181545; }
.button-dark { color: white; background: var(--dark); }
.button-dark:hover { background: #1b4438; }
.button-light { background: white; color: var(--dark); border-color: #b9cec3; }
.button-light:hover { background: #e9f4ed; }

.hero { position: relative; isolation: isolate; color: white; background: var(--deep); min-height: min(44rem, 86vh); display: grid; grid-template-rows: 1fr auto; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #061714 0%, #061714ec 26%, #06171460 53%, #0617140a 100%), url("/assets/semiconductor-hero.webp") 74% 55% / cover no-repeat; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(5rem, 10vw, 8.8rem) 4rem; }
.eyebrow { color: var(--green); font-size: .875rem; font-weight: 780; text-transform: uppercase; letter-spacing: .13em; }
.hero .eyebrow, .page-intro .eyebrow { color: var(--mint); }
.hero h1, .page-intro h1 { font-size: clamp(3.2rem, 7.2vw, 6rem); font-weight: 670; letter-spacing: -.068em; line-height: 1.01; }
.hero h1 { margin: .94rem 0 1.35rem; }
.hero-lede { max-width: 30rem; color: #d2e6dd; font-size: clamp(1.08rem, 2vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-foot { display: flex; justify-content: space-between; gap: .7rem; padding-block: .92rem 1.04rem; border-top: 1px solid #d5e8df3d; color: #dce9e3; font-size: .87rem; font-weight: 600; letter-spacing: .035em; }

.capabilities, .test-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.22fr); align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.section-heading .eyebrow { margin-bottom: .72rem; }
.section-heading p:not(.eyebrow), .page-intro p:not(.eyebrow) { margin-top: 1rem; }
.section-heading p:not(.eyebrow), .service-list p, .planning-grid p, .package-row p { color: var(--muted); }
.section-link { margin-top: 1.3rem !important; }
.text-link { display: inline-block; color: var(--green); font-weight: 680; text-underline-offset: .2rem; text-decoration-thickness: 1px; }
.text-link:hover { color: #0e4f32; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.family-card { position: relative; display: grid; align-content: end; min-height: 9.7rem; background: #eaf2ec; border: 1px solid #dce8dd; border-radius: .42rem; padding: 1.05rem 1.18rem; color: var(--dark); text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.family-card:nth-child(2), .family-card:nth-child(3) { background: #edf4f0; }
.family-card:hover { background: #dcefe1; border-color: #aad5b8; }
.family-card strong { font-size: clamp(1.85rem, 3.3vw, 2.65rem); letter-spacing: -.065em; line-height: 1.05; }
.family-card span:not(.card-plus) { color: var(--muted); margin-top: .36rem; }
.card-plus { position: absolute; right: .95rem; top: .65rem; font-size: 1.43rem; font-weight: 450; color: var(--green); }

.test-section { background: #e9f0eb; }
.service-list { border-top: 1px solid #b9cfc3; }
.service-list article { border-bottom: 1px solid #b9cfc3; padding: 1.32rem 0; }
.service-list article h3 { margin-bottom: .45rem; }
.service-list .text-link, .package-row .text-link { margin-top: .65rem; }
.start { padding-bottom: 1.2rem; }
.planning-grid { margin-top: 1.7rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem 2.1rem; }
.planning-grid article { border-top: 1px solid #adc9ba; padding-top: 1.05rem; }
.planning-grid p { margin-top: .5rem; }
.cta-band { background: var(--dark); color: white; padding: clamp(1.6rem, 5vw, 3.7rem); display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; border-radius: .45rem; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.cta-band p { color: #cfdfd6; margin-top: .45rem; }
.cta-band .button { flex-shrink: 0; }

.page-intro { color: white; background: radial-gradient(ellipse at 90% 5%, #244739, transparent 52%), var(--deep); padding-block: clamp(3.5rem, 8vw, 7rem); }
.page-intro h1 { max-width: 15ch; font-size: clamp(2.6rem, 6.5vw, 5.3rem); margin-top: .55rem; }
.page-intro p:not(.eyebrow) { max-width: 40rem; color: #d2e6dd; font-size: 1.12rem; }
.pills { display: flex; flex-wrap: wrap; gap: .65rem; padding-bottom: 1.7rem; }
.pills a { background: #e8f3eb; border: 1px solid #d1e5d6; color: #1b5741; text-decoration: none; padding: .43rem 1rem; border-radius: 5rem; font-weight: 680; }
.pills a:hover { background: #d5ecdd; }
.package-row { scroll-margin-top: 1rem; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); }
.package-name span { color: var(--green); font-weight: 800; }
.package-name h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); margin-top: .15rem; }
.callout { background: #f7faf7; border: 1px solid #d0dfd4; border-radius: .35rem; padding: 1.5rem; }
.check-list { color: var(--muted); padding-left: 1.3rem; margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 6vw, 5rem); }
.contact-info h2, .inquiry-form h2 { font-size: 1.65rem; }
.contact-info dl { margin-top: 1rem; }
.contact-info dl div { border-top: 1px solid var(--line); padding-block: .9rem; }
.contact-info dt { font-weight: 720; }
.contact-info dd { color: var(--muted); overflow-wrap: anywhere; }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: clamp(1.1rem, 3vw, 2.25rem); }
.inquiry-form > p { color: var(--muted); margin-top: .55rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.fields label { display: grid; align-content: start; gap: .34rem; font-weight: 650; font-size: .94rem; }
.fields input, .fields select, .fields textarea, .copy-fallback { width: 100%; border: 1px solid #bacdc2; color: var(--ink); background: #fcfdfc; border-radius: .28rem; padding: .58rem .68rem; font-weight: 440; font-size: 1rem; }
.fields select { appearance: none; padding-right: 2.2rem; background: linear-gradient(45deg, transparent 50%, #48685b 50%) calc(100% - 1.04rem) 50% / .36rem .36rem no-repeat, linear-gradient(135deg, #48685b 50%, transparent 50%) calc(100% - .68rem) 50% / .36rem .36rem no-repeat, #fcfdfc; }
.fields textarea { resize: vertical; }
.field-wide { grid-column: 1 / -1; }
.copy-fallback { margin-top: .5rem; }
.form-status:empty { display: none; }

.footer { color: #d5e2dc; background: var(--deep); padding-block: 2.7rem 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 1.6rem 2.2rem; }
.footer-grid p { margin-top: .7rem; }
.footer-links { display: grid; gap: .28rem; align-content: start; }
.footer-links h2 { font-size: .98rem; letter-spacing: 0; color: white; margin-bottom: .3rem; }
.footer-links a { text-decoration: none; width: fit-content; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--mint); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid #d1e3d92e; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; color: #bdd1c7; font-size: .875rem; }

@media (max-width: 55rem) {
  .wrap { width: min(var(--wrap), calc(100% - 3rem)); }
  .header-row { gap: 1rem; }
  .nav { gap: .9rem; }
  .button-header { padding-inline: .75rem; }
  .hero::before { background-position: 68% 50%; }
  .wide-only { display: none; }
  .capabilities, .test-grid { gap: 2rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2.3rem); }
  .header-row { min-height: 4.4rem; flex-wrap: wrap; gap: 0; padding-block: .7rem; }
  .header-row .button-header { display: none; }
  .nav { order: 3; width: 100%; justify-content: flex-start; padding-top: .65rem; gap: .7rem 1.2rem; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .65rem; background: transparent; border: 1px solid #87baaa80; border-radius: .3rem; color: #e4f7ef; font-size: .93rem; }
  .js .menu-toggle span { width: .7rem; height: .55rem; border-block: 1px solid currentColor; }
  .js .nav:not(.open) { display: none; }
  .hero { min-height: 33rem; }
  .hero-inner { padding-block: 6rem 3.75rem; }
  .hero::before { background-image: linear-gradient(90deg, #061714f2, #06171492 72%, #06171465), url("/assets/semiconductor-hero.webp"); background-position: 63% 50%; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.25rem); }
  .hero-lede { max-width: 24rem; }
  .capabilities, .test-grid, .contact-grid, .package-row { grid-template-columns: minmax(0, 1fr); }
  .planning-grid { grid-template-columns: minmax(0, 1fr); }
  .family-card { min-height: 8.4rem; padding-inline: .76rem; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 29rem) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .hero-foot { font-size: .79rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.blog-index { padding-top: clamp(2.2rem, 5vw, 4.25rem); }
.blog-card { max-width: 53rem; padding: clamp(1.35rem, 3vw, 2.15rem); background: white; border: 1px solid var(--line); border-radius: .45rem; }
.blog-card .post-date { color: var(--green); font-size: .89rem; font-weight: 650; }
.blog-card h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); margin-block: .5rem .65rem; }
.blog-card h2 a { text-decoration: none; }
.blog-card h2 a:hover { color: var(--green); text-decoration: underline; }
.blog-card > p:last-child { max-width: 60ch; color: var(--muted); }
.blog-post .page-intro h1 { max-width: 19ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.4rem; margin-top: 1.45rem; color: #d2e6dd; font-size: .92rem; }
.article-back { color: var(--mint); text-underline-offset: .19rem; }
.article-content { max-width: 50rem; padding-top: clamp(2.4rem, 5vw, 4.25rem); font-size: 1.055rem; }
.article-content h2 { margin: 2.55rem 0 .85rem; font-size: clamp(1.5rem, 3.25vw, 2.15rem); letter-spacing: -.035em; }
.article-content p + p { margin-top: .95rem; }
.article-content p { color: var(--muted); }
.article-table { overflow-x: auto; border: 1px solid var(--line); border-radius: .4rem; }
.article-table table { width: 100%; border-collapse: collapse; background: white; text-align: left; font-size: .95rem; line-height: 1.5; }
.article-table th, .article-table td { padding: .76rem clamp(.63rem, 2vw, 1rem); vertical-align: top; }
.article-table thead { background: #e6f0e9; }
.article-table tbody th { width: 26%; }
.article-table tbody tr { border-top: 1px solid var(--line); }
.article-table td { color: var(--muted); }
.rfq-template { margin-top: 2.65rem; padding: clamp(1.05rem, 3vw, 1.7rem); background: #e9f0eb; border: 1px solid #d1e3d6; border-radius: .4rem; }
.rfq-template h2 { margin-top: 0; }
.rfq-template dl > div { padding-block: .5rem; border-top: 1px solid #d0ded4; }
.rfq-template dt { font-weight: 700; }
.rfq-template dd { color: var(--muted); }
