.portal-page {
  --portal-paper: #f7f3f2;
  --portal-edge: #8e425759;
  --site-home-blue: #163e6a;
  background: var(--portal-paper);
}

.portal-page .site-header {
  border-block-start-color: #9a2d45;
  background: #fffdfa;
}

.portal-page .header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-areas: "logo menu home";
  column-gap: clamp(12px, 2.6vw, 32px);
}
.portal-page .identity--fa { grid-area: logo; }
.portal-page .identity--fa img { width: clamp(170px, 23vw, 220px); height: auto; }
.portal-menu { grid-area: menu; flex-wrap: wrap; gap: 7px; }
.portal-menu .glass-button { min-height: 44px; padding: 7px 12px; font-size: .88rem; }

.portal-site-home {
  grid-area: home;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 6px 17px;
  border: 1px solid var(--site-home-blue);
  border-radius: 10px;
  background: var(--site-home-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.portal-site-home:hover { background: #0c305e; border-color: #0c305e; color: #fff; }
.portal-site-home:focus-visible { outline-color: var(--site-home-blue); }

.glass-button,
.portal-page .secondary {
  --glass-ink: #632237;
  --glass-rim: #a9637861;
  --glass-top: #fffcfbed;
  --glass-bottom: #efdce4ad;
  --glass-glow: #ffffffc9;
  --glass-fill: radial-gradient(ellipse at 24% -40%, var(--glass-glow) 0, transparent 70%), linear-gradient(157deg, var(--glass-top), var(--glass-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 7px 14px;
  border: 1px solid var(--glass-rim);
  border-radius: 12px;
  color: var(--glass-ink);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  background: var(--glass-fill);
  box-shadow: inset 0 1px 1px #ffffffb8, inset 0 -1px 1px #ffffff65, 0 3px 8px #431f3014;
  backdrop-filter: blur(15px) saturate(1.35);
  transition: box-shadow .18s ease, transform .18s ease;
}

.portal-menu .glass-button:hover { background: var(--glass-fill); color: var(--glass-ink); }
.glass-button:hover, .portal-page .secondary:hover { box-shadow: inset 0 1px 2px #fff, 0 4px 12px #6d244c29; transform: translateY(-1px); }
.glass-button:active, .portal-page .secondary:active { transform: translateY(0); }

.portal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(14px, 3vw, 42px);
  margin-block: 23px 25px;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 14px;
  border: 1px solid #81233c;
  background: linear-gradient(109deg, #9e294a0a 0%, #8b2241ad 53%, #5c182bce 100%), url("assets/fsw-red-texture.webp") repeat scroll center / 461px 325px, #932642;
  box-shadow: 0 12px 30px #481d2e1d;
  color: #fff9f8;
}

.portal-hero--landing { min-block-size: 280px; }
.portal-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.55rem); margin-block: 6px 10px; }
.portal-hero .context { color: #ffd8df; }
.portal-hero .intro-copy > p:last-of-type { color: #fff4f5; }
.portal-hero .intro-links { gap: 8px; margin-block-start: 14px; }
.portal-hero .cover { border: 1px solid #ffe2ea70; border-radius: 10px; background: #381c28; }
.portal-hero .cover img { width: 100%; height: auto; aspect-ratio: 2.04; max-height: none; object-fit: cover; }
.portal-hero .cover figcaption { font-size: .8rem; }

.glass-hero {
  --glass-ink: #fff9fa;
  --glass-rim: #ffdce1ac;
  --glass-top: #fff1f33c;
  --glass-bottom: #7d293d94;
  --glass-glow: #ffedf759;
}
.glass-hero:hover { box-shadow: inset 0 1px 2px #ffecef, 0 3px 12px #39102156; }
.glass-primary {
  --glass-ink: #6c1c31;
  --glass-top: #fff5f4;
  --glass-bottom: #ffc9d6e8;
  --glass-glow: #ffffffcb;
}

.portal-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-block: 0 23px;
  scroll-margin-top: 15px;
}
.portal-paths--machining { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2cbd43f;
  border-radius: 13px;
  background: linear-gradient(155deg, #fffdfa, #f9eff283);
}
.path-card h2 { font-size: 1.15rem; }
.path-card p { padding-inline: 6px; color: #54464d; font-size: .95rem; }
.path-button {
  --glass-top: #fffdf8ed;
  --glass-bottom: #e7c0cda1;
  justify-content: flex-start;
  min-height: 65px;
  width: 100%;
  gap: 11px;
  padding: 9px 12px;
}
.path-link { justify-self: start; margin-inline-start: 4px; font-size: .89rem; }
.portal-paths--gallery .path-card { grid-template-rows: auto 1fr auto auto; }
.path-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-block-start: 10px;
  border-block-start: 1px solid #e4ccd5;
}
.path-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #9d5a704a;
  border-radius: 8px;
  background: #eee3de;
}
.path-photo--welding { object-position: 60% center; }
.path-photo--drilling { object-position: 51% center; }
.path-media figcaption {
  margin-block-start: 5px;
  color: #5f4a55;
  font-size: .76rem;
  line-height: 1.5;
}
.path-media figcaption a { color: inherit; text-underline-offset: 3px; }
.process-icon {
  position: relative;
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #9d5a7056;
  background: #fffaf97a;
  box-shadow: inset 0 1px 1px #fffefa, 0 2px 4px #6d244c0b;
}
.process-icon::before, .process-icon::after { content: ""; position: absolute; background: #812941; }
.icon-welding::before { width: 9px; height: 21px; left: 16px; top: 4px; border-radius: 3px 3px 2px 2px; transform: rotate(42deg); }
.icon-welding::after { width: 19px; height: 13px; left: 4px; bottom: 5px; clip-path: polygon(0 89%, 25% 47%, 46% 63%, 64% 0, 72% 54%, 100% 73%, 77% 86%, 20% 100%); }
.icon-machining::before { width: 16px; height: 6px; left: 11px; top: 6px; border-radius: 2px; }
.icon-machining::after { width: 9px; height: 20px; top: 12px; left: 14px; background: repeating-linear-gradient(135deg, #812941 0 3px, #c68a9b 3px 5px); clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); }
.icon-bending::before { width: 13px; height: 14px; left: 13px; top: 5px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.icon-bending::after { width: 28px; height: 16px; left: 5px; bottom: 6px; clip-path: polygon(0 0, 14% 0, 50% 68%, 86% 0, 100% 0, 100% 24%, 50% 100%, 0 24%); }
.icon-feed::before { width: 22px; height: 6px; left: 8px; top: 13px; border-radius: 3px; }
.icon-feed::after { width: 9px; height: 15px; left: 22px; top: 8px; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.portal-page .primary {
  border-color: #984a62;
  border-radius: 12px;
  background: radial-gradient(ellipse at 24% -43%, #ffcddb72 0, transparent 74%), linear-gradient(156deg, #963950, #651e34);
  box-shadow: inset 0 1px 1px #e5a6bbaf, inset 0 -1px 1px #f0b8ca55, 0 3px 8px #59273b32;
  backdrop-filter: blur(15px) saturate(1.3);
}
.portal-page .primary:hover { background-color: #651e34; filter: brightness(1.12); }
.portal-page .compare label span { border-radius: 10px; background: linear-gradient(150deg, #ffffff2c, #ffffff07); box-shadow: inset 0 1px 1px #ffffff3d; }
.portal-page .compare input:checked + span { background: linear-gradient(150deg, #fff9f2, #e9c7d3); }

@media (max-width: 780px) {
  .portal-page .header-inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "logo home" "menu menu";
    gap: 8px 12px;
    padding-block: 10px;
  }
  .portal-page .identity--fa img { width: clamp(130px, 40vw, 188px); }
  .portal-menu { width: auto; }
  .portal-menu .glass-button { flex: 0 0 auto; min-height: 44px; font-size: .84rem; padding-inline: 8px; }
  .portal-paths { gap: 9px; }
  .portal-hero { margin-block-start: 17px; }
  .path-card { padding: 9px; }
}
@media (max-width: 640px) {
  .portal-hero { grid-template-columns: 1fr; gap: 14px; }
  .portal-hero .cover img { max-height: 170px; }
  .portal-paths, .portal-paths--machining { grid-template-columns: 1fr; gap: 10px; }
  .path-card { padding: 10px; }
  .portal-hero--landing { min-block-size: 0; }
}
.portal-home .header-inner {
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: "logo home";
}
@media (prefers-reduced-motion: reduce) {
  .glass-button, .portal-page .secondary { transition: none; }
}
