/* Semiconductor Solutions — site styles */
:root {
  --ink: #15203B;
  --ink-soft: #3E4862;
  --wafer: #F2F4F1;
  --panel: #FFFFFF;
  --gold: #B8892A;
  --gold-soft: #E8D6A8;
  --oxide: #3D6F8A;
  --rule: #CED6D2;
  --die: #1C2A4A;
  --die-line: #2E3E63;
  --maxw: 1160px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wafer);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--oxide); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 112%;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; font-stretch: 105%; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-stretch: 112%; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; border-radius: 4px; font-weight: 500; }
.nav a:hover { background: var(--wafer); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .nav-cta { background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: var(--die-line); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
}

/* Hero with floorplan */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 56px; } }

.btn { display: inline-block; padding: 13px 22px; border-radius: 4px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--die-line); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }

/* The die */
.die {
  position: relative;
  background: var(--die);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 0 0 10px #D9DED9, 0 0 0 11px var(--rule);
  margin: 12px;
}
/* bond pads around the edge */
.die::before {
  content: ""; position: absolute; inset: 8px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 26px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 26px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(0deg, var(--gold) 0 10px, transparent 10px 26px) left / 5px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--gold) 0 10px, transparent 10px 26px) right / 5px 100% no-repeat;
  opacity: .85; pointer-events: none;
}
.floorplan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 74px;
  gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.floorplan li { display: flex; }
.floorplan a {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 12px;
  border: 1px solid var(--die-line);
  background:
    linear-gradient(var(--die-line) 1px, transparent 1px) 0 0 / 100% 12px,
    #22325A;
  color: #E9EDF5;
  text-decoration: none;
  font-family: var(--head);
  font-stretch: 105%;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.2;
  border-radius: 2px;
  transition: background-color .2s, border-color .2s;
}
.floorplan a small { display: block; font-family: var(--body); font-weight: 400; font-size: .74rem; color: #A9B4CC; margin-top: 3px; }
.floorplan a:hover, .floorplan a:focus-visible { border-color: var(--gold); background: linear-gradient(var(--die-line) 1px, transparent 1px) 0 0 / 100% 12px, #2A3D6B; }
.fp-design   { grid-column: 1 / 4; grid-row: span 2; }
.fp-train    { grid-column: 4 / 7; }
.fp-advisory { grid-column: 4 / 7; }
.fp-dist     { grid-column: 1 / 3; }
.fp-trade    { grid-column: 3 / 5; }
.fp-jv       { grid-column: 5 / 7; }
.die-caption { font-size: .85rem; color: var(--ink-soft); margin: 18px 12px 0; }
@media (max-width: 520px) {
  .floorplan { grid-template-columns: 1fr 1fr; grid-auto-rows: 84px; }
  .fp-design, .fp-train, .fp-advisory, .fp-dist, .fp-trade, .fp-jv { grid-column: auto; grid-row: auto; }
  .die { padding: 20px; }
}

/* Load-in: blocks "light up" once */
@media (prefers-reduced-motion: no-preference) {
  .floorplan li { animation: power-on .5s ease-out both; }
  .floorplan li:nth-child(2) { animation-delay: .08s; }
  .floorplan li:nth-child(3) { animation-delay: .16s; }
  .floorplan li:nth-child(4) { animation-delay: .24s; }
  .floorplan li:nth-child(5) { animation-delay: .32s; }
  .floorplan li:nth-child(6) { animation-delay: .40s; }
  @keyframes power-on { from { opacity: 0; filter: brightness(1.8); } to { opacity: 1; filter: none; } }
}

/* Sections */
.band { padding: 72px 0; }
.band-white { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-ink { background: var(--ink); color: #E9EDF5; }
.band-ink h2 { color: #fff; }
.band-ink p { color: #C3CBDB; }
.band-ink a { color: var(--gold-soft); }
@media (max-width: 600px) { .band { padding: 52px 0; } }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.audience li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.audience strong { display: block; font-family: var(--head); font-stretch: 105%; }
.audience span { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 600px) { .audience { grid-template-columns: 1fr; } }

/* Services page */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: 1.6rem; }
.service ul { margin: 0 0 1em; padding-left: 1.1em; }
.service li { margin-bottom: .35em; max-width: 64ch; }
.service li::marker { color: var(--gold); }
.service .for { font-size: .95rem; color: var(--ink-soft); }
.service-mark { width: 52px; height: 52px; margin-bottom: 16px; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.jump a { display: block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); text-decoration: none; color: var(--ink); font-size: .93rem; }
.jump a:hover { border-color: var(--gold); }

.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }

/* About */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.values div { border-left: 2px solid var(--gold); padding-left: 18px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 20px; } }
.person { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 28px; max-width: 760px; }
.person .avatar { width: 140px; height: 140px; border-radius: 4px; background: var(--die); display: grid; place-items: center; color: var(--gold-soft); font-family: var(--head); font-size: 2.4rem; font-weight: 700; }
.person .role { color: var(--ink-soft); margin-bottom: .8em; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-direct dt { font-family: var(--head); font-stretch: 105%; font-weight: 600; margin-top: 18px; }
.contact-direct dd { margin: 2px 0 0; font-size: 1.1rem; }
form.enquiry { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 32px; }
@media (max-width: 600px) { form.enquiry { padding: 22px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #FBFCFB;
  border: 1px solid #AEB8B3; border-radius: 4px; padding: 11px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status.error { color: #A3302A; }
.form-status.ok { color: #2B6A43; }

/* Footer */
.site-footer { background: var(--die); color: #C3CBDB; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #E9EDF5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-base { border-top: 1px solid var(--die-line); margin-top: 36px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }

/* Photography */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-top: 24px; background: var(--rule); }
.photo-strip { margin: 0; height: clamp(180px, 28vw, 360px); overflow: hidden; background: var(--die); border-top: 1px solid var(--rule); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.service .photo { margin: 0 0 20px; aspect-ratio: 3 / 2; }
.svc-title { display: flex; align-items: center; gap: 14px; }
.svc-title .service-mark { width: 40px; height: 22px; margin: 0; flex: none; }
.svc-title h2 { margin: 0; }
.service .for { margin-top: 10px; }
@media (max-width: 860px) { .split .photo { max-height: 320px; } }

/* Hero illustration */
.hero-art { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -18px rgba(21,32,59,.45); }
.what-we-do .die { margin-top: 12px; }

/* Learn page */
.ep-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.ep-card a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.ep-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--rule); }
.ep-card a:hover img { box-shadow: 0 0 0 2px var(--gold); }
.ep-meta { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ep-title { font-family: var(--head); font-stretch: 105%; font-weight: 650; font-size: 1.1rem; line-height: 1.25; }
.ep-sub { font-size: .93rem; color: var(--ink-soft); line-height: 1.4; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin: 0 0 48px; background: var(--die); border-radius: 6px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.learn-band { }
.learn-teaser img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--rule), 0 14px 30px -16px rgba(21,32,59,.5); }
.learn-teaser:hover img { box-shadow: 0 0 0 2px var(--gold), 0 14px 30px -16px rgba(21,32,59,.5); }
