@import "tailwindcss";

:root {
  --navy: #071426;
  --navy-2: #0b1d34;
  --ink: #10141a;
  --steel: #667180;
  --line: #d8dde3;
  --muted: #f1f3f5;
  --white: #ffffff;
  --blue: #2c73d2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-geist-sans), Arial, sans-serif; overflow-x: hidden; }
body, button, a { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #6ba8ff; outline-offset: 4px; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5vw; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); transition: background .35s, height .35s, box-shadow .35s; }
.site-header.header-solid { height: 76px; background: rgba(7,20,38,.96); box-shadow: 0 8px 30px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 205px; }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; align-items: end; width: 27px; height: 34px; transform: skew(-10deg); }
.brand-mark i { display: block; background: currentColor; border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 19px; }
.brand-mark i:nth-child(2) { height: 34px; }
.brand-mark i:nth-child(3) { height: 27px; }
.brand-name { display: grid; grid-template-columns: auto auto; gap: 0 5px; align-items: end; font-size: 21px; font-weight: 350; letter-spacing: -.7px; line-height: .9; white-space: nowrap; }
.brand-name b { font-weight: 750; }
.brand-name small { grid-column: 1 / 3; font-size: 8px; letter-spacing: 4.6px; line-height: 1; margin-top: 8px; font-weight: 600; }

.main-nav { display: flex; align-items: stretch; height: 100%; gap: clamp(20px, 2.1vw, 38px); margin-left: auto; }
.main-nav > a, .nav-trigger { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: 13px; font-weight: 540; letter-spacing: .01em; white-space: nowrap; }
.main-nav > a::after, .nav-trigger::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--white); transition: right .25s; }
.main-nav > a:hover::after, .nav-trigger:hover::after, .nav-group.is-open .nav-trigger::after { right: 0; }
.nav-group { position: relative; }
.nav-trigger { height: 100%; }
.chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s; opacity: .75; }
.chevron-open { transform: rotate(225deg) translate(-1px, -1px); }
.dropdown-menu { position: absolute; top: calc(100% + 1px); left: -28px; width: 310px; padding: 15px 18px 18px; background: var(--white); color: var(--ink); box-shadow: 0 22px 60px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .24s ease; }
.nav-group:hover .dropdown-menu, .nav-group:focus-within .dropdown-menu, .nav-group.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu > a { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 44px; padding: 0 8px; border-top: 1px solid #e5e8eb; font-size: 13px; transition: background .2s, padding .2s; }
.dropdown-menu > a:hover { background: #f3f5f7; padding-left: 13px; }
.dropdown-menu > a em { color: #8a939f; font-size: 9px; font-style: normal; letter-spacing: .08em; }
.dropdown-menu .dropdown-heading { grid-template-columns: 1fr auto; min-height: 55px; border: 0; font-size: 16px; font-weight: 650; }
.dropdown-menu .dropdown-heading span { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 20px; margin-left: clamp(24px, 3vw, 52px); }
.language-switcher { position: relative; height: 100%; display: flex; align-items: center; }
.language-switcher > button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 12px; font-weight: 650; letter-spacing: .06em; }
.globe { font-size: 20px; font-weight: 300; line-height: 1; }
.language-menu { position: absolute; top: calc(100% + 29px); right: 0; width: 180px; padding: 8px; background: var(--white); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s; }
.language-switcher.is-open .language-menu { opacity: 1; visibility: visible; transform: none; }
.language-menu button { width: 100%; display: grid; grid-template-columns: 40px 1fr; padding: 12px; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
.language-menu button:hover, .language-menu button.active { background: #f0f3f6; }
.language-menu button span { color: var(--blue); font-weight: 700; }
.language-menu a { width: 100%; display: grid; grid-template-columns: 40px 1fr; padding: 12px; background: transparent; text-align: left; font-size: 12px; }
.language-menu a:hover, .language-menu a.active { background: #f0f3f6; }
.language-menu a span { color: var(--blue); font-weight: 700; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 18px; height: 1px; background: currentColor; transition: .25s; }
.menu-toggle.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { position: relative; min-height: 760px; height: 100svh; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.045); transition: opacity 1s ease, transform 7s ease; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,13,25,.93) 0%, rgba(4,13,25,.72) 42%, rgba(4,13,25,.25) 74%, rgba(4,13,25,.35) 100%), linear-gradient(0deg, rgba(4,13,25,.35), transparent 50%); }
.hero-bg.active { opacity: 1; transform: scale(1); }
.hero-bg:nth-child(1) { background-position: 64% 43%; }
.hero-bg:nth-child(2) { background-position: center; }
.hero-grid, .contact-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px); background-size: 100px 100px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero-content { position: absolute; z-index: 2; left: 9vw; top: 49%; transform: translateY(-50%); width: min(780px, 66vw); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 25px; color: #4d5a69; font-size: 10px; font-weight: 720; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; background: var(--blue); }
.eyebrow.light { color: rgba(255,255,255,.72); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 5.4vw, 84px); font-weight: 360; line-height: 1.02; letter-spacing: -.048em; text-wrap: balance; }
.hero-copy { max-width: 650px; margin: 30px 0 38px; color: rgba(255,255,255,.75); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-width: 220px; padding: 17px 20px; font-size: 12px; font-weight: 660; letter-spacing: .03em; transition: transform .25s, background .25s, color .25s; }
.button:hover { transform: translateY(-3px); }
.button span, .text-link span { font-size: 17px; font-weight: 400; }
.button-light { background: var(--white); color: var(--navy); }
.button-light:hover { background: #dce7f4; }
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: #12325a; }
.hero-controls { position: absolute; z-index: 3; left: 9vw; right: 9vw; bottom: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hero-controls button { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 15px 0 0; overflow: hidden; border: 0; border-top: 1px solid rgba(255,255,255,.28); background: transparent; color: rgba(255,255,255,.45); cursor: pointer; text-align: left; }
.hero-controls button > span { font-size: 10px; letter-spacing: .08em; }
.hero-controls button i { font-size: 11px; font-style: normal; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-controls button b { position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--white); }
.hero-controls button.active { color: var(--white); }
.hero-controls button.active b { animation: heroProgress 6.5s linear forwards; }
@keyframes heroProgress { to { width: 100%; } }
.scroll-cue { position: absolute; z-index: 2; right: 2.3vw; top: 50%; display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 55px; background: rgba(255,255,255,.35); }

.section { padding: 120px 9vw; }
.section-heading h2, .automation-copy h2, .process-heading h2 { margin: 0; color: var(--navy); font-size: clamp(39px, 4vw, 62px); font-weight: 390; line-height: 1.09; letter-spacing: -.045em; text-wrap: balance; }
.lead { color: #65707c; font-size: 16px; line-height: 1.75; }
.intro { padding-bottom: 105px; }
.intro-heading { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 5vw; align-items: start; }
.intro-heading .eyebrow { margin-top: 12px; }
.intro-heading h2 { font-size: clamp(40px, 4.4vw, 68px); }
.intro-heading .lead { margin: 9px 0 0; }
.capability-list { margin-top: 95px; border-top: 1px solid var(--line); }
.capability-row { display: grid; grid-template-columns: 75px 1.1fr 1.6fr 35px; gap: 30px; align-items: center; min-height: 132px; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s; }
.capability-row:hover { padding: 0 20px; background: #f5f7f9; }
.capability-row .cap-number { color: #8a949f; font-size: 10px; letter-spacing: .1em; }
.capability-row h3 { margin: 0; color: var(--navy); font-size: clamp(23px, 2vw, 31px); font-weight: 520; }
.capability-row p { margin: 0; color: #697581; font-size: 14px; line-height: 1.65; }
.capability-row b { justify-self: end; color: var(--blue); font-size: 20px; font-weight: 400; }

.mold-section { background: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1.45fr .75fr; gap: 10vw; align-items: end; }
.split-heading .lead { margin: 0 0 5px; }
.mold-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 68px; }
.mold-card { min-width: 0; background: var(--white); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.mold-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(7,20,38,.1); }
.mold-card-image { position: relative; height: 245px; background-size: cover; background-position: center; filter: grayscale(1); transition: filter .4s, transform .55s; }
.mold-card:hover .mold-card-image { filter: grayscale(.2); }
.mold-card-1 .mold-card-image { background-image: linear-gradient(0deg, rgba(7,20,38,.15), rgba(7,20,38,.05)), url('/images/mold-workshop.jpg'); }
.mold-card-2 .mold-card-image { background-image: linear-gradient(0deg, rgba(7,20,38,.28), rgba(7,20,38,.05)), url('/images/machining-detail.jpg'); background-position: 70% center; }
.mold-card-3 .mold-card-image { background-image: linear-gradient(0deg, rgba(7,20,38,.15), rgba(7,20,38,.05)), url('/images/mold-detail.jpg'); }
.mold-card-4 .mold-card-image { background-image: linear-gradient(0deg, rgba(7,20,38,.3), rgba(7,20,38,.1)), url('/images/automation.jpg'); }
.mold-card-image span { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 36px; height: 36px; background: rgba(7,20,38,.85); color: var(--white); font-size: 9px; }
.mold-card-copy { position: relative; min-height: 176px; padding: 27px 25px; }
.mold-card-copy h3 { max-width: 200px; margin: 0 0 15px; color: var(--navy); font-size: 20px; font-weight: 590; }
.mold-card-copy p { margin: 0; color: #747e88; font-size: 13px; line-height: 1.65; }
.mold-card-copy b { position: absolute; right: 22px; bottom: 20px; color: var(--blue); font-size: 18px; font-weight: 400; }

.machining-section { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 790px; background: var(--navy); color: var(--white); }
.machining-image { position: relative; min-height: 660px; background: linear-gradient(90deg, transparent 60%, rgba(7,20,38,.45)), url('/images/machining-detail.jpg') center/cover; }
.machining-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,20,38,.3), transparent 45%); }
.machining-image > span { position: absolute; z-index: 1; right: 35px; top: 35px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.35); font-size: 10px; letter-spacing: .15em; backdrop-filter: blur(5px); }
.machining-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 7vw 80px 6vw; }
.machining-copy h2 { margin: 0; font-size: clamp(42px, 4vw, 64px); font-weight: 370; line-height: 1.08; letter-spacing: -.045em; }
.machining-copy > p:not(.eyebrow) { margin: 28px 0 32px; color: rgba(255,255,255,.66); font-size: 15px; line-height: 1.75; }
.machining-copy ul { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
.machining-copy li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85); font-size: 13px; }
.machining-copy li span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #7eb3f5; font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; width: max-content; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 620; }
.light-link { color: var(--white); }

.automation-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; align-items: center; }
.automation-copy .lead { margin: 28px 0 38px; max-width: 540px; }
.automation-visual { position: relative; padding: 0 0 48px 48px; }
.automation-visual::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 74%; background: #e8edf2; }
.automation-image { position: relative; height: 540px; background: linear-gradient(0deg, rgba(7,20,38,.18), transparent), url('/images/automation.jpg') center/cover; filter: saturate(.55); }
.automation-steps { position: absolute; left: 0; right: -18px; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: 0 18px 45px rgba(7,20,38,.13); }
.automation-steps div { padding: 20px; border-right: 1px solid var(--line); }
.automation-steps div:last-child { border: 0; }
.automation-steps span { color: var(--blue); font-size: 9px; letter-spacing: .12em; }
.automation-steps p { margin: 15px 0 0; font-size: 11px; font-weight: 650; }

.sectors-section { background: var(--navy); color: var(--white); }
.sectors-section .section-heading h2 { color: var(--white); }
.sectors-section .lead { color: rgba(255,255,255,.6); }
.sector-list { margin-top: 70px; border-top: 1px solid rgba(255,255,255,.17); }
.sector { position: relative; display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; min-height: 114px; border-bottom: 1px solid rgba(255,255,255,.17); overflow: hidden; }
.sector::before { content: ""; position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transform: scale(1.03); transition: opacity .35s, transform .7s; }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,38,.92), rgba(7,20,38,.65)); opacity: 0; transition: opacity .35s; }
.sector:hover::before, .sector:hover::after { opacity: 1; transform: scale(1); }
.sector-1::before { background-image: url('/images/machining-detail.jpg'); }
.sector-2::before { background-image: url('/images/automation.jpg'); }
.sector-3::before { background-image: url('/images/mold-detail.jpg'); }
.sector-4::before { background-image: url('/images/mold-workshop.jpg'); }
.sector-5::before { background-image: url('/images/mold-detail.jpg'); background-position: bottom; }
.sector span, .sector h3, .sector b { position: relative; z-index: 1; }
.sector > span { color: rgba(255,255,255,.45); font-size: 10px; }
.sector h3 { margin: 0; font-size: clamp(25px, 2.5vw, 39px); font-weight: 400; letter-spacing: -.025em; }
.sector b { justify-self: end; font-size: 20px; font-weight: 400; }

.process-section { background: #f4f6f8; }
.process-heading { display: grid; grid-template-columns: 1fr 2.5fr; gap: 4vw; align-items: start; }
.process-heading .eyebrow { margin-top: 13px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 75px; background: var(--line); border: 1px solid var(--line); }
.process-grid article { position: relative; min-height: 350px; padding: 34px; background: var(--white); }
.process-grid article > span { color: #7d8792; font-size: 10px; letter-spacing: .12em; }
.process-icon { position: relative; width: 54px; height: 54px; margin: 55px 0 35px; border: 1px solid #aab3bc; transform: rotate(45deg); }
.process-icon i { position: absolute; background: var(--blue); }
.process-icon i:first-child { width: 1px; height: 82px; left: 26px; top: -14px; }
.process-icon i:last-child { height: 1px; width: 82px; top: 26px; left: -14px; }
.process-grid article:nth-child(2) .process-icon { border-radius: 50%; }
.process-grid article:nth-child(3) .process-icon { border-width: 0 1px 1px 0; }
.process-grid h3 { margin: 0 0 15px; color: var(--navy); font-size: 21px; font-weight: 570; }
.process-grid p { margin: 0; color: #6b7681; font-size: 13px; line-height: 1.7; }

.contact-section { position: relative; display: grid; place-items: center; min-height: 520px; padding: 90px 9vw; overflow: hidden; background: linear-gradient(115deg, #071426, #102b4e); color: var(--white); text-align: center; }
.contact-grid { opacity: .08; mask-image: radial-gradient(circle, #000, transparent 72%); }
.contact-inner { position: relative; z-index: 1; max-width: 970px; }
.contact-inner .eyebrow { justify-content: center; }
.contact-inner h2 { margin: 0 0 45px; font-size: clamp(42px, 5vw, 72px); font-weight: 370; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }

footer { padding: 75px 9vw 0; background: #050b13; color: var(--white); }
.footer-main { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 6vw; padding-bottom: 65px; }
.footer-brand p { max-width: 340px; margin: 34px 0 0; color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.75; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-column h3 { margin: 2px 0 12px; color: rgba(255,255,255,.4); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.footer-column > a { color: rgba(255,255,255,.7); font-size: 12px; }
.footer-column > a:hover { color: var(--white); }
.footer-contact > a:first-of-type { font-size: 14px; color: var(--white); }
.footer-contact .text-link { margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 75px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: 10px; }
.footer-bottom a { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.22); color: var(--white); }

/* Inner pages */
.subpage-header { background: rgba(7,20,38,.97); }
.subpage-header .nav-group.current .nav-trigger::after, .subpage-header .main-nav > a.active::after { right: 0; }
.dropdown-menu > a.active { background: #edf2f7; color: var(--blue); }
.sub-hero { position: relative; display: flex; align-items: flex-end; min-height: 690px; padding: 170px 9vw 90px; overflow: hidden; background-color: var(--navy); background-position: center; background-size: cover; color: var(--white); }
.sub-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,27,.94) 0%, rgba(5,14,27,.76) 48%, rgba(5,14,27,.3) 82%), linear-gradient(0deg, rgba(5,14,27,.65), transparent 60%); }
.sub-hero-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 100px 100px; mask-image: linear-gradient(90deg, #000, transparent 82%); }
.sub-hero-content { position: relative; z-index: 2; max-width: 940px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 55px; color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb b { color: rgba(255,255,255,.82); font-weight: 560; }
.sub-hero h1 { max-width: 900px; margin: 0; font-size: clamp(52px, 6vw, 88px); font-weight: 360; line-height: 1.02; letter-spacing: -.052em; text-wrap: balance; }
.sub-hero-content > p:last-child { max-width: 680px; margin: 30px 0 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.7; }
.sub-hero-index { position: absolute; z-index: 2; right: 4vw; bottom: 88px; display: flex; align-items: center; gap: 16px; writing-mode: vertical-rl; color: rgba(255,255,255,.55); }
.sub-hero-index span { font-size: 10px; letter-spacing: .12em; }
.sub-hero-index i { font-size: 9px; font-style: normal; letter-spacing: .16em; text-transform: uppercase; }

.sub-intro { display: grid; grid-template-columns: 100px minmax(0, 1.25fr) minmax(280px, .75fr); gap: 6vw; align-items: start; }
.sub-intro > aside { padding-top: 10px; color: #87919c; }
.sub-intro > aside span { color: var(--blue); font-size: 10px; letter-spacing: .12em; }
.sub-intro > aside p { margin: 18px 0 0; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; }
.sub-intro-copy h2 { margin: 0; max-width: 770px; color: var(--navy); font-size: clamp(40px, 4.2vw, 65px); font-weight: 390; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.sub-intro-copy > p:last-child { margin: 32px 0 0; max-width: 760px; color: #65717d; font-size: 16px; line-height: 1.85; }
.detail-stack { border-top: 1px solid var(--line); }
.detail-stack > div { display: grid; grid-template-columns: 40px 1fr; gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-stack span { color: var(--blue); font-size: 9px; letter-spacing: .1em; }
.detail-stack p { margin: 0; color: var(--navy); font-size: 14px; line-height: 1.6; }

.service-links { background: #f0f3f5; }
.service-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 65px; }
.service-link-grid.single { grid-template-columns: minmax(280px, 520px); }
.service-link-grid > a { min-width: 0; overflow: hidden; background: var(--white); transition: transform .3s, box-shadow .3s; }
.service-link-grid > a:hover { transform: translateY(-7px); box-shadow: 0 20px 45px rgba(7,20,38,.11); }
.service-link-image { position: relative; height: 250px; background-position: center; background-size: cover; filter: grayscale(.7); transition: filter .35s, transform .5s; }
.service-link-grid > a:hover .service-link-image { filter: grayscale(.05); }
.service-link-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,20,38,.35), transparent); }
.service-link-image > span { position: absolute; z-index: 1; top: 16px; left: 16px; display: grid; place-items: center; width: 36px; height: 36px; background: rgba(7,20,38,.87); color: var(--white); font-size: 9px; }
.service-link-grid > a > div:last-child { position: relative; min-height: 190px; padding: 27px 25px 40px; }
.service-link-grid h3 { margin: 0 0 14px; color: var(--navy); font-size: 21px; font-weight: 590; }
.service-link-grid p { margin: 0; color: #737e89; font-size: 12px; line-height: 1.65; }
.service-link-grid b { position: absolute; right: 22px; bottom: 18px; color: var(--blue); font-size: 18px; font-weight: 400; }

.sub-process { background: var(--navy); color: var(--white); }
.sub-process-heading { display: grid; grid-template-columns: 1fr 2.2fr; gap: 5vw; align-items: start; }
.sub-process-heading .eyebrow { margin-top: 12px; }
.sub-process-heading h2 { max-width: 850px; margin: 0; font-size: clamp(42px, 4.5vw, 70px); font-weight: 370; line-height: 1.08; letter-spacing: -.048em; }
.sub-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.sub-process-grid article { min-height: 280px; padding: 30px; border-right: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.sub-process-grid article > span { color: #7eb3f5; font-size: 10px; letter-spacing: .12em; }
.sub-process-grid h3 { margin: 85px 0 16px; font-size: 20px; font-weight: 520; }
.sub-process-grid p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.7; }

.applications-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: center; }
.applications-image { min-height: 590px; background-position: center; background-size: cover; filter: grayscale(.65); }
.applications-copy h2 { margin: 0 0 42px; color: var(--navy); font-size: clamp(43px, 4.5vw, 66px); font-weight: 390; letter-spacing: -.045em; }
.application-list { border-top: 1px solid var(--line); }
.application-list > div { display: grid; grid-template-columns: 45px 1fr; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); }
.application-list span { color: var(--blue); font-size: 9px; }
.application-list p { margin: 0; color: var(--navy); font-size: 15px; }

.related-section { padding-top: 55px; padding-bottom: 100px; }
.related-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.related-list a { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 0 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--navy); transition: background .25s, color .25s; }
.related-list a:hover { background: var(--navy); color: var(--white); }
.related-list span { font-size: 17px; font-weight: 550; }
.related-list b { color: var(--blue); font-size: 19px; font-weight: 400; }
.subpage-cta { min-height: 470px; }

.contact-hero { min-height: 590px; }
.contact-page { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: start; }
.contact-info-panel h2, .form-heading h2 { margin: 0; color: var(--navy); font-size: clamp(37px, 3.3vw, 53px); font-weight: 390; line-height: 1.1; letter-spacing: -.04em; }
.contact-detail-list { margin-top: 60px; border-top: 1px solid var(--line); }
.contact-detail-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-detail-list > div > span { display: block; margin-bottom: 12px; color: #7c8792; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.contact-detail-list a, .contact-detail-list address { color: var(--navy); font-size: 16px; font-style: normal; line-height: 1.65; }
.contact-detail-list .map-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 15px; padding-bottom: 4px; border-bottom: 1px solid var(--navy); font-size: 11px; font-weight: 650; }
.map-link b { color: var(--blue); font-size: 16px; }
.form-panel { padding: 55px; background: #f1f4f6; }
.form-heading { display: grid; grid-template-columns: 45px 1fr; gap: 20px; }
.form-heading > span { margin-top: 10px; color: var(--blue); font-size: 10px; }
.form-heading p { margin: 20px 0 0; color: #68747f; font-size: 13px; line-height: 1.7; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: 50px; }
.contact-form label { display: flex; flex-direction: column; gap: 10px; }
.contact-form label > span { color: #5e6975; font-size: 10px; font-weight: 680; letter-spacing: .05em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #b9c1c9; border-radius: 0; background: transparent; color: var(--navy); font: inherit; font-size: 14px; outline: 0; transition: border-color .2s; }
.contact-form input, .contact-form select { height: 48px; }
.contact-form textarea { padding: 13px 0; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa3ac; }
.form-full { grid-column: 1 / 3; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }
.form-actions p { margin: 0; color: #87919a; font-size: 10px; }
.form-notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: #e3edf7; color: #183b64; }
.form-notice span { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid #4d7fb6; border-radius: 50%; font-size: 11px; }
.form-notice p { margin: 1px 0 0; font-size: 12px; line-height: 1.6; }

@media (max-width: 1180px) {
  .site-header { padding-inline: 3vw; }
  .main-nav { gap: 17px; }
  .header-actions { margin-left: 22px; }
  .main-nav > a, .nav-trigger { font-size: 11px; }
  .mold-grid { grid-template-columns: repeat(2, 1fr); }
  .mold-card-image { height: 300px; }
  .machining-section { grid-template-columns: 1.05fr .95fr; }
  .service-link-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page { gap: 5vw; }
  .form-panel { padding: 42px; }
}

@media (max-width: 900px) {
  .site-header { height: 76px; padding: 0 22px; }
  .site-header .brand { min-width: 0; }
  .site-header .brand-name { font-size: 18px; }
  .site-header .brand-name small { letter-spacing: 3.8px; }
  .main-nav { position: fixed; inset: 76px 0 0; display: block; height: auto; padding: 28px 22px 60px; overflow-y: auto; background: var(--navy); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s; }
  .main-nav.nav-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a, .nav-trigger { width: 100%; min-height: 58px; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 16px; }
  .main-nav > a::after, .nav-trigger::after { display: none; }
  .nav-group { width: 100%; }
  .dropdown-menu { position: static; width: 100%; max-height: 0; padding: 0 12px; overflow: hidden; background: rgba(255,255,255,.04); color: var(--white); box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: max-height .35s, padding .35s; }
  .nav-group.is-open .dropdown-menu { max-height: 370px; padding: 8px 12px 16px; }
  .dropdown-menu > a { border-color: rgba(255,255,255,.1); }
  .dropdown-menu > a:hover { background: rgba(255,255,255,.08); }
  .dropdown-menu .dropdown-heading { display: none; }
  .menu-toggle { display: flex; }
  .header-actions { margin-left: auto; gap: 12px; }
  .language-menu { top: 45px; }
  .hero { min-height: 700px; }
  .hero-content { left: 7vw; width: 82vw; }
  .hero-controls { left: 7vw; right: 7vw; }
  .hero-controls button { grid-template-columns: 1fr; }
  .hero-controls button i { display: none; }
  .scroll-cue { display: none; }
  .section { padding: 90px 7vw; }
  .intro-heading, .split-heading, .process-heading { grid-template-columns: 1fr; gap: 28px; }
  .intro-heading .lead, .split-heading .lead { max-width: 620px; }
  .capability-row { grid-template-columns: 55px 1fr 34px; padding: 24px 0; }
  .capability-row p { grid-column: 2 / 3; }
  .capability-row b { grid-column: 3; grid-row: 1 / 3; }
  .machining-section { grid-template-columns: 1fr; }
  .machining-image { min-height: 550px; }
  .machining-copy { padding: 80px 8vw; }
  .automation-section { grid-template-columns: 1fr; gap: 70px; }
  .automation-copy { max-width: 650px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 310px; }
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
  .footer-contact { grid-column: 2 / 4; }
  .sub-hero { min-height: 610px; padding: 150px 7vw 75px; }
  .sub-intro { grid-template-columns: 55px 1fr; }
  .sub-intro .detail-stack { grid-column: 2; margin-top: 20px; }
  .sub-process-heading { grid-template-columns: 1fr; gap: 20px; }
  .sub-process-grid { grid-template-columns: repeat(2, 1fr); }
  .applications-section { grid-template-columns: 1fr; }
  .applications-image { min-height: 500px; }
  .contact-page { grid-template-columns: 1fr; gap: 70px; }
  .contact-info-panel { max-width: 680px; }
}

@media (max-width: 620px) {
  .site-header { padding-inline: 16px; }
  .brand { gap: 9px; }
  .brand-mark { grid-template-columns: repeat(3, 5px); width: 21px; height: 29px; }
  .brand-mark i:nth-child(1) { height: 16px; }
  .brand-mark i:nth-child(2) { height: 29px; }
  .brand-mark i:nth-child(3) { height: 23px; }
  .site-header .brand-name { font-size: 16px; }
  .site-header .brand-name small { font-size: 6px; letter-spacing: 3.2px; margin-top: 6px; }
  .language-switcher > button .globe, .language-switcher > button .chevron { display: none; }
  .hero { min-height: 680px; height: 100svh; }
  .hero-content { left: 22px; width: calc(100% - 44px); top: 46%; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero-copy { margin: 22px 0 30px; font-size: 15px; line-height: 1.6; }
  .button { min-width: 205px; padding: 15px 17px; }
  .hero-controls { left: 22px; right: 22px; bottom: 25px; gap: 15px; }
  .section { padding: 75px 22px; }
  .section-heading h2, .automation-copy h2, .process-heading h2 { font-size: 38px; }
  .intro-heading { gap: 12px; }
  .intro-heading .lead { margin-top: 15px; }
  .capability-list { margin-top: 55px; }
  .capability-row { grid-template-columns: 38px 1fr 25px; gap: 10px; }
  .capability-row h3 { font-size: 23px; }
  .capability-row p { font-size: 12px; }
  .mold-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .mold-card-image { height: 270px; }
  .machining-image { min-height: 430px; }
  .machining-copy { padding: 70px 22px; }
  .automation-visual { padding: 0 0 76px 18px; }
  .automation-image { height: 390px; }
  .automation-steps { right: 0; grid-template-columns: repeat(2, 1fr); }
  .automation-steps div:nth-child(2) { border-right: 0; }
  .automation-steps div { padding: 14px; border-bottom: 1px solid var(--line); }
  .automation-steps p { margin-top: 8px; }
  .sector { grid-template-columns: 42px 1fr 30px; min-height: 92px; }
  .process-grid { margin-top: 45px; }
  .process-grid article { min-height: 300px; padding: 28px; }
  .process-icon { margin: 45px 0 32px; }
  .contact-section { min-height: 470px; padding: 70px 22px; }
  .contact-inner h2 { font-size: 39px; }
  footer { padding: 60px 22px 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 48px 25px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-contact { grid-column: 1 / 3; }
  .footer-bottom span { max-width: 250px; line-height: 1.5; }
  .sub-hero { min-height: 610px; padding: 135px 22px 65px; }
  .breadcrumb { margin-bottom: 38px; }
  .sub-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .sub-hero-content > p:last-child { font-size: 14px; }
  .sub-hero-index { display: none; }
  .sub-intro { grid-template-columns: 1fr; gap: 40px; }
  .sub-intro > aside { display: none; }
  .sub-intro .detail-stack { grid-column: 1; }
  .sub-intro-copy h2 { font-size: 38px; }
  .service-link-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .service-link-image { height: 245px; }
  .sub-process-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .sub-process-grid article { min-height: 240px; }
  .sub-process-grid h3 { margin-top: 60px; }
  .applications-image { min-height: 360px; }
  .related-list { grid-template-columns: 1fr; }
  .related-list a { min-height: 78px; }
  .contact-hero { min-height: 510px; }
  .contact-page { gap: 55px; }
  .contact-detail-list { margin-top: 40px; }
  .form-panel { margin-inline: -22px; padding: 42px 22px; }
  .form-heading { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; background-position: center; background-size: cover; transition: opacity .7s, visibility .7s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slides { position: absolute; inset: 0; }
.hero-controls button.active i { transform: scaleX(1); }
.website-field { position: absolute !important; left: -9999px !important; }
.contact-form button:disabled { opacity: .55; cursor: wait; }
.not-found { display: grid; place-items: center; min-height: 100vh; text-align: center; }

/* CMS dashboard */
.cms-shell { min-height: 100vh; display: grid; grid-template-columns: 285px minmax(0, 1fr); background: #eef1f4; color: #111923; }
.cms-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 27px 20px 18px; overflow-y: auto; background: #071426; color: #fff; }
.cms-logo { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.11); }
.cms-logo > div { display: flex; flex-direction: column; gap: 6px; }
.cms-logo b { font-size: 16px; letter-spacing: -.02em; }
.cms-logo small { color: rgba(255,255,255,.45); font-size: 7px; letter-spacing: .2em; }
.cms-add-page { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; margin-top: 20px; border: 1px solid rgba(126,179,245,.35); background: #173b65; color: #fff; cursor: pointer; font-size: 10px; font-weight: 650; }
.cms-add-page span { color: #8fc0f9; font-size: 16px; font-weight: 300; }
.cms-search { display: flex; align-items: center; gap: 10px; margin: 22px 0 16px; padding: 0 12px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); }
.cms-search span { color: rgba(255,255,255,.45); font-size: 20px; }
.cms-search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; }
.cms-search input::placeholder { color: rgba(255,255,255,.38); }
.cms-page-nav { flex: 1; }
.cms-page-nav > div { margin-top: 21px; }
.cms-page-nav h3 { margin: 0 10px 8px; color: rgba(255,255,255,.35); font-size: 8px; letter-spacing: .17em; text-transform: uppercase; }
.cms-page-nav button { display: grid; grid-template-columns: 22px 1fr 12px; align-items: center; gap: 7px; width: 100%; min-height: 39px; padding: 0 10px; border: 0; background: transparent; color: rgba(255,255,255,.61); cursor: pointer; text-align: left; font-size: 11px; transition: background .2s, color .2s; }
.cms-page-nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
.cms-page-nav button.active { color: #fff; background: #173252; }
.cms-page-nav button > span { color: #7393b8; font-size: 12px; }
.cms-page-nav button b { color: rgba(255,255,255,.4); font-size: 17px; font-weight: 400; }
.cms-user { display: flex; align-items: center; gap: 11px; margin-top: 25px; padding: 17px 7px 0; border-top: 1px solid rgba(255,255,255,.11); min-width: 0; }
.cms-user > span { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 50%; background: #2c73d2; font-size: 12px; font-weight: 700; }
.cms-user > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cms-user b, .cms-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-user b { font-size: 10px; font-weight: 600; }
.cms-user small { color: rgba(255,255,255,.4); font-size: 8px; }
.cms-workspace { min-width: 0; padding-bottom: 95px; }
.cms-topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 104px; padding: 20px 4vw; border-bottom: 1px solid #d8dde2; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.cms-topbar p { margin: 0 0 8px; color: #87919c; font-size: 9px; letter-spacing: .05em; }
.cms-topbar p span { margin: 0 5px; color: #b5bcc4; }
.cms-topbar h1 { margin: 0; color: #0b1b2e; font-size: 25px; font-weight: 560; letter-spacing: -.03em; }
.cms-top-actions { display: flex; align-items: center; gap: 25px; }
.cms-top-actions > a { color: #42668f; font-size: 10px; font-weight: 650; }
.cms-delete-page { height: 34px; padding: 0 12px; border: 1px solid #e3c6c6; background: #fff7f7; color: #a43c3c; cursor: pointer; font-size: 9px; font-weight: 650; }
.cms-lang-tabs { display: flex; padding: 4px; border: 1px solid #d9dee4; background: #f3f5f7; }
.cms-lang-tabs button { width: 39px; height: 30px; border: 0; background: transparent; color: #7a8590; cursor: pointer; font-size: 9px; font-weight: 700; }
.cms-lang-tabs button.active { background: #071426; color: #fff; }
.cms-editor-wrap { padding: 38px 4vw 45px; }
.cms-editor { width: min(1120px, 100%); margin: 0 auto; }
.cms-editor-intro { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 18px; }
.cms-editor-intro > div { display: flex; align-items: center; gap: 8px; }
.cms-editor-intro > div span { color: #2c73d2; font-size: 8px; }
.cms-editor-intro p { margin: 0; color: #7c8791; font-size: 9px; }
.cms-card { margin-bottom: 20px; padding: 34px; border: 1px solid #dfe3e7; background: #fff; box-shadow: 0 8px 30px rgba(7,20,38,.035); }
.cms-card-title { display: grid; grid-template-columns: 38px 1fr; gap: 14px; margin-bottom: 32px; }
.cms-card-title > span { margin-top: 5px; color: #2c73d2; font-size: 9px; letter-spacing: .12em; }
.cms-card-title h2 { margin: 0; color: #0b1b2e; font-size: 19px; font-weight: 620; letter-spacing: -.025em; }
.cms-card-title p { margin: 7px 0 0; color: #89939d; font-size: 10px; }
.cms-slides { display: grid; gap: 18px; }
.cms-slides article { padding: 22px; border: 1px solid #e0e4e8; background: #fafbfc; }
.cms-slides article > h3 { margin: 0 0 18px; color: #57636f; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.cms-image-field { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
.cms-image-preview { position: relative; min-height: 130px; background-color: #dce2e8; background-position: center; background-size: cover; }
.cms-image-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,20,38,.55), transparent 60%); }
.cms-image-preview > span { position: absolute; z-index: 1; left: 13px; bottom: 11px; color: #fff; font-size: 9px; font-weight: 650; }
.cms-image-actions { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 11px; }
.cms-image-actions label { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 35px; background: #0b1d34; color: #fff; cursor: pointer; font-size: 9px; font-weight: 680; }
.cms-image-actions > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cms-image-actions > input:last-child { width: 100%; height: 37px; padding: 0 11px; border: 1px solid #d7dde3; outline: 0; background: #fff; color: #66727e; font-size: 9px; }
.cms-field-error { grid-column: 1 / 3; margin: -12px 0 0; color: #b33a3a; font-size: 9px; }
.cms-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cms-section-fields { margin-top: 10px; }
.cms-span-2 { grid-column: 1 / 3; }
.cms-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cms-field > span { color: #697581; font-size: 9px; font-weight: 650; letter-spacing: .025em; }
.cms-field input, .cms-field textarea, .cms-field select { width: 100%; border: 1px solid #d8dde2; border-radius: 0; outline: 0; background: #fff; color: #162538; font: inherit; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.cms-field input { height: 42px; padding: 0 12px; }
.cms-field select { height: 42px; padding: 0 12px; }
.cms-field textarea { padding: 12px; line-height: 1.55; resize: vertical; }
.cms-field input:focus, .cms-field textarea:focus { border-color: #4d85c6; box-shadow: 0 0 0 3px rgba(44,115,210,.08); }
.cms-loading { display: grid; place-items: center; min-height: 400px; color: #79848f; }
.cms-loading span { width: 32px; height: 32px; border: 2px solid #d4dbe2; border-top-color: #2c73d2; border-radius: 50%; animation: cmsSpin .8s linear infinite; }
.cms-loading p { margin: -125px 0 0; font-size: 10px; }
@keyframes cmsSpin { to { transform: rotate(360deg); } }
.cms-savebar { position: fixed; z-index: 20; right: 0; bottom: 0; left: 285px; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px 4vw; border-top: 1px solid #d6dce2; background: rgba(255,255,255,.96); box-shadow: 0 -12px 30px rgba(7,20,38,.06); backdrop-filter: blur(10px); }
.cms-savebar > div:first-child { display: flex; align-items: center; gap: 9px; color: #697581; font-size: 10px; }
.cms-savebar > div:first-child > span { width: 7px; height: 7px; border-radius: 50%; }
.cms-savebar .dirty { background: #dc9c2d; }
.cms-savebar .saved { background: #2c9c67; }
.cms-savebar small { margin-left: 10px; color: #b13f3f; }
.cms-savebar > div:last-child { display: flex; align-items: center; gap: 10px; }
.cms-savebar button { height: 40px; padding: 0 18px; border: 0; cursor: pointer; font-size: 9px; font-weight: 680; }
.cms-reset { background: transparent; color: #66717c; }
.cms-save { min-width: 160px; background: #071426; color: #fff; }
.cms-save:disabled { cursor: wait; opacity: .6; }
.cms-seo-card { border-left: 3px solid #2c73d2; }
.cms-serp-preview { margin-top: 25px; padding: 20px; border: 1px solid #e0e4e8; background: #fafbfc; }
.cms-serp-preview > span { display: block; overflow: hidden; color: #1a0dab; font-family: Arial, sans-serif; font-size: 18px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.cms-serp-preview b { display: block; margin: 7px 0 5px; color: #16833d; font-family: Arial, sans-serif; font-size: 10px; font-weight: 400; }
.cms-serp-preview p { margin: 0; color: #4d5156; font-family: Arial, sans-serif; font-size: 11px; line-height: 1.55; }
.cms-modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 25px; overflow-y: auto; background: rgba(3,10,19,.72); backdrop-filter: blur(5px); }
.cms-modal { width: min(760px, 100%); max-height: calc(100vh - 50px); overflow-y: auto; background: #f5f7f9; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.cms-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 30px 34px; background: #071426; color: #fff; }
.cms-modal-head span { color: #7eb3f5; font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.cms-modal-head h2 { margin: 8px 0 5px; font-size: 25px; font-weight: 520; letter-spacing: -.03em; }
.cms-modal-head p { margin: 0; color: rgba(255,255,255,.5); font-size: 10px; }
.cms-modal-head button { border: 0; background: transparent; color: rgba(255,255,255,.65); cursor: pointer; font-size: 28px; font-weight: 300; }
.cms-modal-body { display: grid; gap: 20px; padding: 30px 34px; }
.cms-new-page-lang { display: grid; grid-template-columns: 55px 1fr 1fr; gap: 15px; align-items: end; padding-top: 20px; border-top: 1px solid #dbe0e5; }
.cms-new-page-lang h3 { align-self: center; margin: 0; color: #2c73d2; font-size: 10px; letter-spacing: .12em; }
.cms-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 34px; border-top: 1px solid #d7dde3; background: #fff; }
.cms-modal-actions button { min-width: 120px; height: 40px; border: 0; background: #e8ecf0; color: #66717c; cursor: pointer; font-size: 9px; font-weight: 680; }
.cms-modal-actions button:last-child { background: #071426; color: #fff; }
.cms-modal-actions button:disabled { cursor: wait; opacity: .6; }

@media (max-width: 900px) {
  .cms-shell { grid-template-columns: 1fr; }
  .cms-sidebar { position: relative; height: auto; max-height: 430px; }
  .cms-page-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
  .cms-user { display: none; }
  .cms-topbar { top: 0; padding-inline: 22px; }
  .cms-editor-wrap { padding-inline: 22px; }
  .cms-savebar { left: 0; padding-inline: 22px; }
}

@media (max-width: 620px) {
  .cms-sidebar { padding-inline: 14px; }
  .cms-page-nav { grid-template-columns: 1fr; }
  .cms-topbar { align-items: flex-start; flex-direction: column; gap: 17px; }
  .cms-top-actions { width: 100%; justify-content: space-between; }
  .cms-editor-wrap { padding: 25px 12px 115px; }
  .cms-editor-intro { align-items: flex-start; flex-direction: column; }
  .cms-card { padding: 24px 16px; }
  .cms-image-field { grid-template-columns: 1fr; }
  .cms-image-preview { min-height: 190px; }
  .cms-field-error { grid-column: 1; }
  .cms-form-grid { grid-template-columns: 1fr; }
  .cms-span-2 { grid-column: 1; }
  .cms-savebar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
  .cms-savebar > div:last-child { width: 100%; }
  .cms-savebar button { flex: 1; }
  .cms-modal-backdrop { padding: 0; }
  .cms-modal { max-height: 100vh; }
  .cms-modal-head, .cms-modal-body, .cms-modal-actions { padding-inline: 20px; }
  .cms-new-page-lang { grid-template-columns: 1fr; }
}
