:root {
  --navy-950: #06131e;
  --navy-900: #081b2a;
  --navy-800: #102f4c;
  --navy-700: #174a6b;
  --blue: #4aa7d4;
  --blue-soft: #9cd9ec;
  --gold: #d9b76c;
  --gold-bright: #f2ca6b;
  --gold-pale: #f7e8b9;
  --cream: #f5f0e5;
  --paper: #fbf8f0;
  --white: #fffefa;
  --ink: #152534;
  --muted: #61707c;
  --line: rgba(10, 38, 58, .13);
  --shadow: 0 24px 70px rgba(8, 27, 42, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 183, 108, .18), transparent 25%),
    radial-gradient(circle at 92% 38%, rgba(74, 167, 212, .12), transparent 28%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--gold); color: var(--navy-950); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--gold-bright); color: var(--navy-950); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 108px 0; }
.section.compact { padding: 78px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--navy-700); font-size: .78rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { width: 26px; height: 2px; background: var(--gold); content: ""; }
.kicker.on-dark { color: var(--gold-pale); }
.display-title, h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
.display-title, h1 { font-size: clamp(3rem, 6.3vw, 6.7rem); font-weight: 640; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.4rem); font-weight: 620; }
h3 { font-size: 1.35rem; font-weight: 680; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.32rem); }
.on-dark, .on-dark p { color: #f5f7f8; }
.on-dark .lede { color: #c1d0da; }
.gold { color: var(--gold-bright); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-700); font-weight: 720; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: white; }
.site-header.is-sticky { position: sticky; top: 0; background: rgba(6, 19, 30, .93); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(16px); }
.nav-wrap { display: flex; align-items: center; min-height: 86px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; color: white; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(242, 202, 107, .72); border-radius: 50%; color: var(--gold-bright); font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.brand-text strong, .brand-text small { display: block; }
.brand-text strong { font-size: .94rem; letter-spacing: .02em; }
.brand-text small { color: #a9bac7; font-size: .71rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 29px; }
.site-nav a { position: relative; color: #dce6ec; font-size: .9rem; font-weight: 650; text-decoration: none; }
.site-nav a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--gold-bright); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: 10px 15px; border: 1px solid rgba(242, 202, 107, .55); border-radius: 999px; color: var(--gold-pale) !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: transparent; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: white; }

.hero { position: relative; min-height: 800px; overflow: hidden; background: var(--navy-950); color: white; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(6, 19, 30, .99) 0%, rgba(6, 19, 30, .93) 42%, rgba(6, 19, 30, .42) 100%), url("images/plm-engineering-background.jpg") center / cover; content: ""; }
.hero::after { position: absolute; inset: auto -5% -30% auto; width: 46vw; height: 46vw; border: 1px solid rgba(217, 183, 108, .22); border-radius: 50%; box-shadow: 0 0 0 80px rgba(217, 183, 108, .025), 0 0 0 160px rgba(217, 183, 108, .018); content: ""; }
.hero-inner { position: relative; z-index: 2; display: grid; min-height: 800px; padding: 170px 0 76px; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: end; gap: 70px; }
.hero-copy { align-self: center; }
.hero h1 { max-width: 900px; margin-bottom: 28px; }
.hero h1 em { color: var(--gold-bright); font-family: Georgia, serif; font-weight: 400; }
.hero .lede { max-width: 750px; color: #c8d5dd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 760; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold-bright); color: var(--navy-950); }
.button.secondary { border-color: rgba(255, 255, 255, .3); color: white; background: rgba(255, 255, 255, .04); }
.hero-board { position: relative; align-self: end; padding: 25px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 47, 76, .68), rgba(8, 27, 42, .86)); box-shadow: 0 30px 100px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); }
.board-label { margin: 0 0 20px; color: var(--gold-pale); font-size: .78rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.board-flow { display: grid; gap: 10px; }
.board-step { display: grid; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; background: rgba(255, 255, 255, .045); }
.board-step span:first-child { color: var(--gold-bright); font-size: .76rem; font-weight: 800; }
.board-step strong { font-size: .9rem; }
.board-step small { color: #94abba; }
.board-note { margin: 18px 0 0; color: #afc0cb; font-size: .82rem; }
.hero-rail { position: relative; z-index: 3; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(6, 19, 30, .72); }
.hero-rail .shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.rail-item { padding: 20px 18px; border-left: 1px solid rgba(255, 255, 255, .1); color: #bccbd4; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.rail-item:last-child { border-right: 1px solid rgba(255, 255, 255, .1); }

.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.intro-grid h2 { margin-bottom: 0; }
.intro-copy p:first-child { color: var(--ink); font-size: 1.3rem; }
.feature-grid { display: grid; margin-top: 60px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .service-card, .principle-card { position: relative; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 254, 250, .7); box-shadow: 0 12px 40px rgba(8, 27, 42, .055); }
.feature-card::before, .service-card::before { display: block; width: 34px; height: 3px; margin-bottom: 24px; background: var(--gold); content: ""; }
.feature-card p, .service-card p, .principle-card p { margin-bottom: 0; color: var(--muted); }

.ai-band { position: relative; overflow: hidden; background: var(--navy-900); }
.ai-band::before { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(242, 202, 107, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 202, 107, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, transparent, black 45%, black); content: ""; }
.ai-layout { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.ai-intro { position: sticky; top: 130px; align-self: start; }
.ai-intro h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.workflow { counter-reset: workflow; }
.workflow-item { display: grid; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .13); grid-template-columns: 58px 1fr; gap: 20px; }
.workflow-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .13); }
.workflow-item::before { counter-increment: workflow; color: var(--gold-bright); content: "0" counter(workflow); font-size: .78rem; font-weight: 820; letter-spacing: .08em; }
.workflow-item h3 { margin-bottom: 8px; color: white; }
.workflow-item p { margin: 0; color: #afc0ca; }
.outcome-strip { position: relative; display: grid; margin-top: 62px; border: 1px solid rgba(242, 202, 107, .25); border-radius: 18px; grid-template-columns: repeat(4, 1fr); background: rgba(217, 183, 108, .07); }
.outcome-strip span { padding: 20px; border-right: 1px solid rgba(242, 202, 107, .18); color: var(--gold-pale); font-size: .86rem; font-weight: 680; text-align: center; }
.outcome-strip span:last-child { border: 0; }

.section-heading { display: flex; margin-bottom: 45px; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2 { max-width: 720px; margin-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: flex; min-height: 310px; flex-direction: column; }
.service-card .number { position: absolute; top: 22px; right: 24px; color: rgba(16, 47, 76, .22); font-size: 2rem; font-weight: 740; }
.service-card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding: 7px 0 7px 18px; color: #405362; font-size: .9rem; }
.service-card li::before { position: absolute; left: 0; color: var(--gold); content: "+"; font-weight: 900; }

.process { background: var(--paper); }
.process-line { display: grid; margin-top: 50px; grid-template-columns: repeat(5, 1fr); }
.process-step { position: relative; padding: 25px 20px 0 0; border-top: 2px solid var(--line); }
.process-step::before { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border: 3px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); content: ""; }
.process-step span { color: var(--gold); font-size: .75rem; font-weight: 820; }
.process-step h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.process-step p { margin: 0; padding-right: 12px; color: var(--muted); font-size: .88rem; }

.profile-section { background: linear-gradient(135deg, #f0e8d8, #f8f4ea); }
.profile-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: stretch; gap: 22px; }
.profile-card { display: grid; min-height: 420px; padding: 40px; place-items: end start; border-radius: var(--radius); background: linear-gradient(to top, rgba(6, 19, 30, .96), rgba(6, 19, 30, .18)), url("images/plm-engineering-background.jpg") 25% center / cover; color: white; }
.profile-monogram { display: grid; width: 78px; height: 78px; margin-bottom: auto; place-items: center; border: 1px solid rgba(242, 202, 107, .7); border-radius: 50%; color: var(--gold-bright); font-size: 1.2rem; font-weight: 800; }
.profile-card small { color: var(--gold-pale); letter-spacing: .09em; text-transform: uppercase; }
.profile-card h3 { margin: 8px 0 0; font-size: 2rem; }
.profile-copy { padding: 58px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 254, 250, .76); }
.profile-copy h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.profile-copy p { color: var(--muted); }

.cta-section { padding: 80px 0; background: var(--navy-950); color: white; }
.cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.cta-box h2 { max-width: 800px; margin-bottom: 10px; }
.cta-box p { margin: 0; color: #afc1cc; }

.subpage-hero { position: relative; padding: 195px 0 100px; overflow: hidden; background: var(--navy-950); color: white; }
.subpage-hero::after { position: absolute; top: 30%; right: -9%; width: 420px; height: 420px; border: 1px solid rgba(242, 202, 107, .23); border-radius: 50%; box-shadow: 0 0 0 65px rgba(242, 202, 107, .025), 0 0 0 130px rgba(242, 202, 107, .018); content: ""; }
.subpage-hero .shell { position: relative; z-index: 2; }
.subpage-hero h1 { max-width: 950px; font-size: clamp(3.2rem, 6vw, 6rem); }
.subpage-hero .lede { max-width: 770px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 35px; color: #91a8b6; font-size: .82rem; }
.breadcrumb a { color: var(--gold-pale); text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-card { padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 254, 250, .72); }
.detail-card .tag { display: inline-block; margin-bottom: 22px; color: var(--navy-700); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-card h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.detail-card p { color: var(--muted); }
.detail-card ul { margin: 22px 0 0; padding: 0; list-style: none; }
.detail-card li { padding: 10px 0; border-top: 1px solid var(--line); }
.detail-card li::before { margin-right: 10px; color: var(--gold); content: "—"; }
.expertise-table { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.expertise-row { display: grid; min-height: 78px; padding: 18px 24px; border-bottom: 1px solid var(--line); grid-template-columns: .62fr 1.38fr; align-items: center; gap: 24px; }
.expertise-row:last-child { border: 0; }
.expertise-row strong { color: var(--navy-700); }
.expertise-row span { color: var(--muted); }
.engagement-grid, .principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.engagement-card { padding: 26px; border-top: 3px solid var(--gold); background: rgba(255, 254, 250, .62); }
.engagement-card h3 { font-size: 1.06rem; }
.engagement-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.about-lead { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.about-aside { padding: 32px; border-radius: 22px; background: var(--navy-900); color: white; }
.about-aside .profile-monogram { margin-bottom: 70px; }
.about-aside dl { margin: 0; }
.about-aside dt { margin-top: 18px; color: var(--gold-pale); font-size: .72rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.about-aside dd { margin: 3px 0 0; color: #d9e3e8; }
.about-story p:first-of-type { color: var(--ink); font-size: 1.35rem; }
.about-story p { color: var(--muted); }
.principle-grid { margin-top: 48px; }
.principle-card { padding: 25px; }
.principle-card span { display: block; margin-bottom: 28px; color: var(--gold); font-size: .78rem; font-weight: 800; }
.legal-page { min-height: 100vh; padding: 170px 0 80px; background: var(--cream); }
.legal-card { max-width: 850px; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal-card h2 { margin-top: 42px; font-size: 1.45rem; letter-spacing: -.02em; }
.legal-card p { color: var(--muted); }
.site-footer { padding: 55px 0 28px; background: var(--navy-950); color: white; }
.footer-grid { display: grid; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.footer-brand p { max-width: 420px; color: #9eb1bd; }
.footer-column strong { display: block; margin-bottom: 16px; color: var(--gold-pale); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a { display: block; width: fit-content; margin: 8px 0; color: #ced9df; text-decoration: none; }
.footer-column a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; padding-top: 24px; justify-content: space-between; gap: 24px; color: #849aa8; font-size: .78rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.conversation-dialog {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(242, 202, 107, .34);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 110px rgba(0, 0, 0, .42);
}
.conversation-dialog::backdrop { background: rgba(3, 12, 20, .76); backdrop-filter: blur(7px); }
.conversation-dialog-inner { position: relative; padding: 38px; }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.conversation-dialog h2 { max-width: 470px; margin-bottom: 15px; font-size: clamp(2rem, 6vw, 3.4rem); }
.conversation-dialog p { color: var(--muted); }
.conversation-form { display: grid; margin-top: 28px; gap: 14px; }
.conversation-form label { color: var(--navy-700); font-size: .82rem; font-weight: 760; letter-spacing: .04em; }
.conversation-form input { width: 100%; min-height: 54px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: white; color: var(--ink); }
.conversation-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 183, 108, .2); }
.conversation-form .button { width: fit-content; border: 0; cursor: pointer; }
.conversation-form .button:disabled { opacity: .55; cursor: wait; }
.conversation-privacy { margin: 5px 0 0; font-size: .78rem; }
.conversation-status { min-height: 24px; margin: 4px 0 0; color: var(--navy-700) !important; font-weight: 650; }
.conversation-status.is-error { color: #9b3434 !important; }
.conversation-dev-link { display: inline-flex; margin-top: 6px; color: var(--navy-700); font-weight: 760; }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 76px; right: 20px; left: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; align-items: stretch; flex-direction: column; background: rgba(6, 19, 30, .98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner { padding-top: 145px; grid-template-columns: 1fr; gap: 35px; }
  .hero-board { max-width: 600px; }
  .intro-grid, .ai-layout, .about-lead { grid-template-columns: 1fr; gap: 45px; }
  .ai-intro { position: static; }
  .feature-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
  .engagement-grid, .principle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 76px 0; }
  .brand-text small { display: none; }
  .hero, .hero-inner { min-height: 720px; }
  .hero-inner { padding: 130px 0 52px; }
  .hero-copy, .hero-board { min-width: 0; }
  .hero .kicker { max-width: 100%; font-size: .64rem; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 3.85rem); }
  .hero-actions .button { padding-inline: 16px; font-size: .92rem; }
  .hero-board { padding: 18px; }
  .board-step { grid-template-columns: 30px 1fr; }
  .board-step small { display: none; }
  .hero-rail .shell { grid-template-columns: repeat(2, 1fr); }
  .rail-item:nth-child(3), .rail-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  .feature-grid, .service-grid, .detail-grid, .engagement-grid, .principle-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .outcome-strip { grid-template-columns: repeat(2, 1fr); }
  .outcome-strip span:nth-child(2) { border-right: 0; }
  .outcome-strip span:nth-child(-n+2) { border-bottom: 1px solid rgba(242,202,107,.18); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .process-line { grid-template-columns: 1fr; gap: 20px; }
  .process-step { padding: 16px 0 16px 28px; border-top: 0; border-left: 2px solid var(--line); }
  .process-step::before { top: 23px; left: -7px; }
  .profile-copy { padding: 32px; }
  .cta-box { grid-template-columns: 1fr; }
  .subpage-hero { padding: 155px 0 75px; }
  .expertise-row { grid-template-columns: 1fr; gap: 5px; }
  .about-aside .profile-monogram { margin-bottom: 45px; }
  .legal-card { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .conversation-dialog-inner { padding: 32px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
