
:root {
  --ink: #102033;
  --muted: #5e6a77;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --soft-2: #eaf0f7;
  --line: #d8e1ec;
  --brand: #0d4c92;
  --brand-2: #083564;
  --accent: #f5b400;
  --accent-2: #ffe69a;
  --success: #1d7a5f;
  --shadow: 0 20px 50px rgba(16, 32, 51, 0.12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .7rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.topbar {
  background: var(--brand-2);
  color: #fff;
  font-size: .93rem;
}
.topbar__inner, .nav__inner, .container, .footer__inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: .7rem; font-weight: 900; text-decoration: none; font-size: 1.05rem; letter-spacing: -.02em; }
.logo__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow); }
.logo__small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.nav__links { display: flex; align-items: center; gap: .28rem; }
.nav__links a { text-decoration: none; padding: .65rem .72rem; border-radius: 999px; font-weight: 750; color: #23384f; font-size: .94rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--soft-2); color: var(--brand-2); }
.nav__cta { background: var(--accent) !important; color: #221800 !important; box-shadow: 0 10px 20px rgba(245,180,0,.25); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .65rem .85rem; font-weight: 800; }
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 112px); display: flex; align-items: stretch; color: #fff; background: linear-gradient(90deg, rgba(7,30,56,.94), rgba(7,30,56,.58)), url("../img/case-taper-product-hero.jpg") center / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; filter: saturate(1.05) contrast(1.04); }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,30,56,.94) 0%, rgba(7,30,56,.75) 42%, rgba(7,30,56,.34) 70%, rgba(7,30,56,.72) 100%), radial-gradient(circle at 78% 24%, rgba(245,180,0,.34), transparent 30%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .62fr); gap: 3rem; align-items: center; min-height: calc(100svh - 112px); padding: clamp(42px, 7vh, 84px) 0; }
.hero__copy { max-width: 800px; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { color: #fff; text-shadow: 0 3px 28px rgba(0,0,0,.38); }
.hero .lede { color: #eaf2fb; }
.hero .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; }
.hero .keyword-row span { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.24); color: #fff; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .82rem; margin: 0 0 .8rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5.8vw, 5.3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.28rem; margin: 0 0 .65rem; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1.65vw, 1.3rem); color: #30465b; max-width: 68ch; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.35rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .8rem 1.15rem; border-radius: 999px; text-decoration: none; font-weight: 900; border: 1px solid transparent; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px rgba(13,76,146,.25); }
.btn--accent { background: var(--accent); color: #221800; box-shadow: 0 12px 24px rgba(245,180,0,.25); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--brand-2); }
.keyword-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.keyword-row span { display: inline-flex; padding: .48rem .7rem; border: 1px solid var(--line); background: rgba(255,255,255,.74); border-radius: 999px; color: #244057; font-weight: 800; font-size: .88rem; }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 1.35rem; box-shadow: var(--shadow); }
.hero-card--glass { background: rgba(7,30,56,.72); border-color: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(14px); }
.hero-card--glass h2 { font-size: clamp(1.4rem, 2.4vw, 2.05rem); margin-bottom: .75rem; }
.hero-card--glass p { color: #eaf2fb; }
.hero-card--glass .hero-card__list { grid-template-columns: 1fr; }
.hero-card--glass .stat { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); }
.hero-card--glass .stat strong { color: #fff; }
.hero-card--glass .stat span { color: #d9e5f2; }
.hero-card__actions { margin-top: 1rem; }
.hero-card__list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; margin-top: .9rem; }
.stat { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: .9rem; }
.stat strong { display: block; font-size: 1.1rem; }
.stat span { display: block; color: var(--muted); font-size: .88rem; }
.section { padding: 74px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: linear-gradient(135deg, var(--brand-2), #071e38); color: #fff; }
.section--dark .muted, .section--dark .lede { color: #d9e5f2; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.7rem; }
.section-head p { max-width: 68ch; color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 8px 26px rgba(16,32,51,.055); }
.card--link { text-decoration: none; display: block; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card--link:hover { transform: translateY(-3px); border-color: rgba(13,76,146,.35); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; padding: .35rem .58rem; border-radius: 999px; font-size: .78rem; font-weight: 900; background: var(--soft-2); color: var(--brand-2); margin-bottom: .8rem; }
.card ul, .checklist { margin: .9rem 0 0; padding: 0; list-style: none; }
.card li, .checklist li { position: relative; padding-left: 1.55rem; margin: .45rem 0; color: #364b5f; }
.card li:before, .checklist li:before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.spec-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 1.2rem; align-items: start; }
.callout { background: var(--paper); color: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 26px; padding: 1.35rem; box-shadow: var(--shadow); }
.callout--blue { background: linear-gradient(135deg, #f8fbff, #edf5ff); border: 1px solid #cfe0f4; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; }
.step + .step { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.step__num { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; }
.long-copy { max-width: 920px; }
.long-copy h2 { margin-top: 2rem; }
.long-copy h3 { margin-top: 1.4rem; }
.long-copy p, .muted { color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.faq details + details { margin-top: .75rem; }
.faq summary { cursor: pointer; font-weight: 900; color: var(--brand-2); }
.faq p { margin-top: .8rem; color: var(--muted); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--brand); text-decoration: none; font-weight: 800; }
.page-hero { background: linear-gradient(135deg, #f7fbff, #fff8df); padding: 56px 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 4.8vw, 4.5rem); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr); gap: 2rem; align-items: start; }
.sticky-card { position: sticky; top: 96px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--brand-2); }
tr:last-child td { border-bottom: 0; }
.footer { background: #071e38; color: #eaf2fb; padding: 48px 0 22px; }
.footer a { color: #fff; text-decoration: none; }
.footer__inner { display: grid; grid-template-columns: 1.2fr .8fr .8fr .9fr; gap: 2rem; }
.footer h3 { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .44rem 0; }
.footer__bottom { width: min(var(--max), calc(100% - 32px)); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #b8c9da; font-size: .9rem; }
.notice { border-left: 5px solid var(--accent); background: #fff9e6; padding: 1rem; border-radius: 14px; color: #3f3100; }
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.contact-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; }
.contact-tile strong { display: block; color: var(--brand-2); }
@media (max-width: 980px) {
  .hero .container, .spec-panel, .two-col { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
  .sticky-card { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav__links { display: none; position: absolute; left: 16px; right: 16px; top: 82px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .7rem; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav__links.is-open { display: flex; }
  .nav__links a { border-radius: 12px; }
  .grid--2, .grid--3, .grid--4, .contact-strip { grid-template-columns: 1fr; }
  .hero-card__list { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 104px); }
  .hero .container { min-height: calc(100svh - 104px); padding: 42px 0; }
  .hero-card--glass { display: none; }
  .section { padding: 54px 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .topbar__inner { display: block; }
  .topbar__inner span { display: block; margin-bottom: .25rem; }
}


/* Image and local-preview enhancements */
.hero-image { margin: 0; min-height: 310px; border-radius: 22px; overflow: hidden; background: #f4f7fb; border: 1px solid var(--line); }
.hero-image img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.card-media { margin: -1.2rem -1.2rem 1rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-hero .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr); gap: 2rem; align-items: center; }
.page-hero__image { margin: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.page-hero__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 980px) { .page-hero .page-hero__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* Viewport-fit hero and product-image update */
:root { --masthead-height: 112px; }
.hero {
  min-height: calc(100svh - var(--masthead-height));
  height: calc(100svh - var(--masthead-height));
  max-height: calc(100svh - var(--masthead-height));
  background: linear-gradient(90deg, rgba(7,30,56,.94), rgba(7,30,56,.58)), url("../img/case-taper-product-hero.jpg") center / cover no-repeat;
}
.hero .container {
  min-height: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .58fr);
  gap: clamp(1.25rem, 3vw, 2.35rem);
  padding: clamp(18px, 4vh, 44px) 0;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.75rem);
  margin-bottom: .8rem;
}
.hero .lede {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  max-width: 60ch;
}
.hero .btns { margin-top: 1.05rem; }
.hero .keyword-row { margin-top: 1rem; }
.hero-product {
  align-self: center;
  background: rgba(7,30,56,.72);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: .85rem;
  backdrop-filter: blur(14px);
  max-height: min(70vh, 560px);
  overflow: hidden;
}
.hero-product__figure { margin: 0; }
.hero-product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
}
.hero-product figcaption {
  color: #eaf2fb;
  font-weight: 850;
  font-size: .9rem;
  line-height: 1.35;
  padding: .7rem .25rem 0;
}
.hero-product__specs {
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
}
.hero-product__specs span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: .55rem .68rem;
}
.hero-product__specs strong { font-size: .9rem; }
.hero-product__specs em {
  color: #d9e5f2;
  font-style: normal;
  font-size: .84rem;
  text-align: right;
}

@media (max-height: 760px) and (min-width: 981px) {
  :root { --masthead-height: 104px; }
  .topbar__inner { padding: .36rem 0; }
  .nav__inner { min-height: 70px; }
  .hero .container { padding: 16px 0; gap: 1.35rem; }
  .hero h1 { font-size: clamp(2.05rem, 4.25vw, 4rem); }
  .hero .lede { font-size: 1.02rem; }
  .hero .btns { margin-top: .82rem; }
  .hero .keyword-row { margin-top: .75rem; }
  .keyword-row span { padding: .35rem .58rem; }
  .btn { min-height: 42px; padding: .65rem 1rem; }
  .hero-product { max-height: calc(100svh - var(--masthead-height) - 36px); }
  .hero-product img { aspect-ratio: 16 / 10; }
  .hero-product figcaption { font-size: .82rem; padding-top: .5rem; }
  .hero-product__specs { gap: .32rem; margin-top: .55rem; }
  .hero-product__specs span { padding: .42rem .55rem; }
}

@media (max-width: 980px) {
  .hero {
    height: auto;
    max-height: none;
    min-height: calc(100svh - var(--masthead-height));
  }
  .hero .container {
    height: auto;
    min-height: calc(100svh - var(--masthead-height));
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .hero-product { max-width: 560px; max-height: none; }
}

@media (max-width: 760px) {
  .hero .container { padding: 34px 0; }
  .hero h1 { font-size: clamp(2.05rem, 11vw, 3.15rem); }
  .hero-product { display: none; }
}
