/* Triyas — shared design system.
   Tokens match the Defender site (Geist / Newsreader / IBM Plex Mono, teal accent) so the two read as one brand;
   copper is the engineering secondary, used sparingly. */

@view-transition { navigation: auto; }

:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --tint: #f3f2ee;
  --sand: #ebe9e2;
  --ink: #16150f;
  --soft: #63625a;
  --faint: #9d9b91;
  --line: #e2e0d8;
  --accent: #35746e;
  --accent-strong: #2b605b;
  --accent-soft: #e4efed;
  --copper: #a85a32;
  --copper-soft: #f4e9e1;
  --on-accent: #ffffff;
  --night: #101311;
  --night-2: #181c19;
  --night-line: #2a2f2b;
  --night-ink: #ecebe5;
  --night-soft: #9a9c93;
  --night-accent: #6ccbbe;
  --shadow: 0 1px 2px rgb(20 20 15 / .05), 0 12px 32px -12px rgb(20 20 15 / .16);

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
picture > source { display: none; } /* sources would otherwise become empty grid/flex items */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.display { font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -.045em; line-height: .98; }
.h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -.04em; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--soft); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft);
}
.eyebrow .n { color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.plain::before { display: none; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn.sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); color: var(--on-accent); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.accent:hover { background: var(--accent-strong); }
.btn.line { border-color: var(--line); background: var(--white); }
.btn.line:hover { border-color: var(--ink); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .link:hover .arr, .card-link:hover .arr { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.link.accent { color: var(--accent); }
.arr { display: inline-block; }

/* ---------- header: floating pill + mega menu ---------- */
.site-head { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .3s var(--ease); }
.site-head .bar {
  display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-head.scrolled .bar, .site-head.open .bar {
  background: color-mix(in srgb, var(--white) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-color: var(--line); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand svg { flex: none; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav > a, .nav > .has-mega > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: none; border: 0; cursor: pointer; font-size: 14.5px; color: var(--soft); transition: color .2s, background .2s;
}
.nav > a:hover, .nav > .has-mega > button:hover, .nav > .has-mega.open > button, .nav > a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.nav .chev { width: 9px; height: 9px; transition: transform .25s var(--ease); }
.has-mega.open .chev { transform: rotate(180deg); }
.head-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.mega {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-col h6 { margin: 0 0 10px 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mega-item { display: block; padding: 12px; border-radius: 14px; transition: background .2s; }
.mega-item:hover { background: var(--tint); }
.mega-item b { display: block; font-weight: 500; font-size: 15px; }
.mega-item span { display: block; color: var(--soft); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.mega-feature {
  position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 240px;
  background: var(--night); color: var(--night-ink); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: .5; z-index: 0; }
.mega-feature::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(10 12 10 / .15) 0%, rgb(10 12 10 / .94) 62%); }
.mega-feature > :not(img) { position: relative; z-index: 1; }
.mega-feature .tag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-accent); }
.mega-feature b { display: block; font-size: 18px; font-weight: 500; margin: 8px 0 4px; letter-spacing: -.01em; }
.mega-feature p { margin: 0 0 12px; color: var(--night-soft); font-size: 13.5px; line-height: 1.45; }
.mega-feature .link { color: var(--night-ink); border-color: var(--night-line); align-self: flex-start; font-size: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.site-head.open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-head.open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1020px) {
  .nav, .head-cta .btn { display: none; }
  .menu-btn { display: block; }
  .mobile-menu {
    position: fixed; inset: 84px 12px auto; max-height: calc(100dvh - 96px); overflow: auto;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px;
  }
  .site-head.open .mobile-menu { display: block; }
  .mobile-menu a { display: flex; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-size: 17px; }
  .mobile-menu a:hover { background: var(--tint); }
  .mobile-menu h6 { margin: 14px 12px 4px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
  .mobile-menu .btn { width: 100%; margin-top: 12px; justify-content: center; color: var(--paper); }
}

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec.tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .lede { margin: 0; }
.sec-head.stack { grid-template-columns: 1fr; align-items: start; }
.sec-head h2 { margin-top: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- home hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--soft);
  transition: border-color .2s, box-shadow .2s;
}
.announce:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.announce .pill { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 6px 9px; border-radius: 999px; order: -1; margin-left: -8px; }
.announce .go { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.hero h1 { margin: 28px 0 0; max-width: 15ch; }
.hero h1 .rot { display: inline-grid; vertical-align: bottom; }
.hero h1 .rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); color: var(--accent); }
.hero h1 .rot > span.on { opacity: 1; transform: none; filter: none; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: 32px; }
.hero-row .lede { margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } }

.hero-media { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.hero-media.single { grid-template-columns: 1fr; }
@media (max-width: 700px) { .hero-media.single .main { min-height: 0; aspect-ratio: 1 / 1; } }
.hero-media .main, .hero-media .side { border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: clamp(320px, 42vw, 560px); }
.hero-media .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 1.8s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-media .main .cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgb(255 255 255 / .82); color: #16150f; font-size: 13px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip i { width: 6px; height: 6px; border-radius: 99px; background: var(--copper); }

/* Defender tile in hero */
.side.defender { border: 1px solid var(--night-line); background: var(--night); color: var(--night-ink); display: flex; flex-direction: column; padding: 24px; isolation: isolate; }
.side.defender::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 420px; height: 420px; z-index: -1;
  background: radial-gradient(closest-side, rgb(108 203 190 / .28), transparent); filter: blur(10px);
}
.side.defender .tag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-accent); display: flex; align-items: center; gap: 8px; }
.side.defender .tag::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--night-accent); box-shadow: 0 0 0 4px rgb(108 203 190 / .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(108 203 190 / 0); } }
.side.defender h3 { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.025em; line-height: 1.1; margin: 16px 0 10px; }
.side.defender p { color: var(--night-soft); font-size: 15px; margin: 0; line-height: 1.5; }
.side.defender .shot { margin-top: auto; padding-top: 20px; }
.side.defender .shot img { border-radius: 12px 12px 0 0; border: 1px solid var(--night-line); border-bottom: 0; width: 100%; margin-bottom: -24px; box-shadow: 0 -20px 40px -20px rgb(0 0 0 / .6); transition: transform .5s var(--ease); }
.side.defender:hover .shot img { transform: translateY(-6px); }
.side.defender .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.side.defender .link { color: var(--night-ink); border-color: #3a403b; }
.side.defender .link:hover { border-color: var(--night-accent); }
@media (max-width: 860px) {
  .hero-media { grid-template-columns: 1fr; }
  .hero-media .side { min-height: 0; }
}

.side.defender.def-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; border-radius: var(--r-lg); overflow: hidden; position: relative; padding: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .side.defender.def-wide { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- partner strip / marquee ---------- */
.partners { display: grid; grid-template-columns: auto 1fr; gap: 24px 56px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.partners .logos { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.partners .logos img { height: 28px; width: auto; filter: grayscale(1); opacity: .75; transition: opacity .2s, filter .2s; }
.partners .logos img.ptc { height: 34px; }
.partners .logos img.siemens { height: 22px; }
.partners .logos a:hover img { filter: none; opacity: 1; }
@media (max-width: 700px) { .partners { grid-template-columns: 1fr; } }

@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- practices: numbered accordion with hover preview ---------- */
.practices { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.p-list { border-top: 1px solid var(--line); }
.p-item { border-bottom: 1px solid var(--line); }
.p-item > button {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.p-item .num { font: 500 13px/1 var(--mono); color: var(--faint); transition: color .3s; }
.p-item .t { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; transition: transform .35s var(--ease), color .3s; }
.p-item .pm { width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s; }
.p-item:hover .t { transform: translateX(6px); }
.p-item.open .num { color: var(--accent); }
.p-item.open .pm { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.p-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.p-item.open .p-body { grid-template-rows: 1fr; }
.p-body > div { overflow: hidden; }
.p-inner { padding: 0 0 30px 68px; display: grid; gap: 18px; }
.p-inner p { margin: 0; color: var(--soft); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-s { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--soft); background: var(--white); }
.p-inner .mobile-img { display: none; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.p-inner .mobile-img img { width: 100%; height: 100%; object-fit: cover; }
.p-preview { position: sticky; top: 110px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--tint); }
.p-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.p-preview img.on { opacity: 1; transform: none; }
.p-preview .meta { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
@media (max-width: 960px) {
  .practices { grid-template-columns: 1fr; }
  .p-preview { display: none; }
  .p-inner { padding-left: 0; }
  .p-inner .mobile-img { display: block; }
  .p-item > button { grid-template-columns: 40px 1fr auto; }
}


/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(180px, auto); gap: 12px; }
.b { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.b .big { font-size: clamp(52px, 6vw, 88px); letter-spacing: -.05em; line-height: .95; }
.b .big sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; color: var(--accent); margin-left: 4px; }
.b .lab { margin-top: auto; padding-top: 18px; color: var(--soft); font-size: 15px; max-width: 34ch; }
.b.img { padding: 0; border: 0; min-height: 320px; }
.b.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b.img .over { position: relative; margin-top: auto; padding: 24px; color: #fff; background: linear-gradient(180deg, transparent, rgb(0 0 0 / .65)); z-index: 1; }
.b.tint { background: var(--accent-soft); border-color: transparent; }
.b.copper { background: var(--copper-soft); border-color: transparent; }
.b.dark { background: var(--night); color: var(--night-ink); border-color: transparent; }
.b.dark .lab { color: var(--night-soft); }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(6, 1fr); } .c-3, .c-4, .c-5 { grid-column: span 3; } .c-6, .c-7, .c-8, .c-12 { grid-column: span 6; } }
@media (max-width: 600px) { .bento > * { grid-column: span 6 !important; grid-row: auto !important; } }

/* ---------- industries: scroll-snap rail ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.ind { scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .78)); }
.ind:hover img { transform: scale(1.05); }
.ind .mono { opacity: .8; }
.ind h3 { font-size: 26px; letter-spacing: -.02em; margin: 8px 0 8px; }
.ind p { margin: 0; font-size: 14px; line-height: 1.5; color: rgb(255 255 255 / .82); }

/* ---------- engagement / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step .mono { color: var(--accent); }
.step h3 { font-size: 22px; letter-spacing: -.02em; margin: 18px 0 10px; line-height: 1.2; }
.step p { margin: 0; color: var(--soft); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } .step:nth-child(3) { padding-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { border-right: 0; padding-left: 0; } .step + .step { border-top: 1px solid var(--line); } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .ico.cu { background: var(--copper-soft); color: var(--copper); }
.card .card-link { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14.5px; }
.card.media { padding: 0; overflow: hidden; }
.card.media .im { aspect-ratio: 16 / 10; overflow: hidden; }
.card.media .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card.media:hover .im img { transform: scale(1.04); }
.card.media .tx { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cards.two { grid-template-columns: 1fr 1fr; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .card { padding: 22px; } .card.media .tx { padding: 20px 22px 24px; } .b { padding: 22px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { margin-top: 22px; max-width: 18ch; }
.page-hero .lede { margin-top: 24px; }
.crumbs { display: flex; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.crumbs a:hover { color: var(--ink); }
.banner { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; position: relative; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .banner { aspect-ratio: 4 / 3; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.2; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split.rev .media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev .media { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li .mono { color: var(--faint); padding-top: 3px; }
.checklist li b { font-weight: 500; display: block; }
.checklist li span { color: var(--soft); font-size: 15px; }

/* ---------- products catalogue ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); gap: 2px; }
.tabs button { height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--soft); display: inline-flex; align-items: center; gap: 10px; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.tabs button { padding: 0 24px; }
.tabs button img { height: 15px; width: auto; }
.tabs button img.ptc { height: 22px; }
.tabs button img.siemens { height: 13px; }
.tabs button[aria-selected="false"] img { filter: grayscale(1); opacity: .6; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 28px; }
.filters button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 14px; color: var(--soft); transition: all .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters button .ct { font-family: var(--mono); font-size: 12px; opacity: .6; margin-left: 4px; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .3s var(--ease), opacity .3s; }
.prod:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); transform: translateY(-2px); }
.prod .cat { font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.prod h3 { font-size: 21px; letter-spacing: -.02em; }
.prod p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; }
.prod .ask { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.prod .ask:hover { color: var(--accent); }
.prod[hidden] { display: none; }
@media (max-width: 960px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .catalog { grid-template-columns: 1fr; } }
.panel[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta { border-radius: var(--r-lg); overflow: hidden; position: relative; color: #fff; isolation: isolate; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 10 9 / .84) 0%, rgb(8 10 9 / .7) 50%, rgb(8 10 9 / .66)); }
.cta .inner { padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta .eyebrow { color: rgb(255 255 255 / .7); }
.cta h2 { margin-top: 18px; }
.cta p { color: rgb(255 255 255 / .78); margin: 0 0 24px; max-width: 44ch; }
.cta .btn.primary { background: #fff; color: #111; }
.cta .btn.primary:hover { background: var(--night-accent); }
.cta .btn.line { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.cta .btn.line:hover { border-color: #fff; }
@media (max-width: 860px) { .cta .inner { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 32px; }
.info-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list .mono { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; }
.info-list a:hover { color: var(--accent); }
form.f { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f .full { grid-column: 1 / -1; }
.f label { display: grid; gap: 8px; font-size: 13.5px; font-weight: 500; }
.f input, .f select, .f textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  font: 400 15px var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.f textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.f .err { color: #b4472b; font-size: 12.5px; font-weight: 400; min-height: 1em; }
.f .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f .opts label { display: inline-flex; position: relative; gap: 0; font-weight: 400; }
.f .opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f .opts span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 400; color: var(--soft); transition: all .2s; }
.f .opts input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.f .opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.f .note { color: var(--faint); font-size: 13px; }
.f .ok { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-size: 14.5px; }
.f .ok.bad { background: #fdecea; color: #b42318; }
.f .ok a { color: inherit; text-decoration: underline; }
.f .btn[disabled] { opacity: .6; cursor: progress; }
.f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { form.f { grid-template-columns: 1fr; } .info-list > div { grid-template-columns: 1fr; gap: 4px; } }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; margin-top: 24px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* ---------- footer ---------- */
.site-foot { padding: clamp(72px, 9vw, 120px) 0 32px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-top h6 { margin: 0 0 16px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-top a { color: var(--soft); font-size: 14.5px; transition: color .2s; }
.foot-top a:hover { color: var(--ink); }
.foot-top .about p { color: var(--soft); font-size: 14.5px; max-width: 34ch; margin: 16px 0 20px; }
.foot-top .about .addr { font-style: normal; color: var(--soft); font-size: 14px; line-height: 1.6; }
.wordmark { font-size: clamp(80px, 35vw, 515px); letter-spacing: -.07em; line-height: .95; padding-bottom: .06em; font-weight: 500; margin: clamp(40px, 5vw, 64px) 0 0 -.04em; color: var(--ink); user-select: none; white-space: nowrap; display: flex; align-items: flex-end; gap: .06em; }
.wordmark .dot { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot-bottom a:hover { color: var(--ink); }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top .about { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Above-the-fold content animates in with CSS alone, so it never waits on script. */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* industries: on wide screens show all six cards in a 3 x 2 grid so none is cut off at the edge */
@media (min-width: 961px) {
  .rail#ind-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  #ind-rail .ind { aspect-ratio: 4 / 3; }
}
