/* October 15: the public portal and shared catalog entrances only. */
@font-face { font-family:'Cactus Manrope Oblique'; src:url('/assets/fonts/CactusManrope-Oblique.ttf') format('truetype'); font-style:normal; font-weight:400; font-display:swap; }
/* Remove only the approved perimeter separators. Transparent borders retain
   the existing interior footer geometry, including its back-to-top boundary. */
body #page #masthead { box-shadow:none!important; border-color:transparent!important; }
body #page #colophon { box-shadow:none!important; border-color:transparent!important; }
body #page #colophon .footer-bottom .columns-container,
body #page #colophon .footer-bottom .columns-container::before { border-color:transparent!important; }
:root {
 --portal-gap:14px;
 --portal-width:85.3%;
 /* Preserve the accepted panel bands. The campus absorbs the former header
    and top gap; short windows retain a readable floor and scroll naturally. */
 --portal-band:clamp(194px,min(15.08vw,calc((100svh - 188px) / 3)),260px);
}
body.portal-home { margin:0; background:#282623; color:#eeeae3; }
body.portal-home #page { min-height:100svh; background:#282623; }
body.portal-home #masthead { position:absolute; top:0; left:0; right:0; width:100%; margin:0; background:transparent; z-index:2; }
body.portal-home #masthead::before { content:none; }
body.portal-home #masthead > .container { display:flex; align-items:center; justify-content:center; }
body.portal-home #masthead .site-branding { margin:0; }
body.portal-home #masthead .custom-logo-link { margin:auto; }
/* Main artwork is the same 1921×422 alpha crop as the interior logo. The
   115px date extension hangs below it without changing its width or top. */
body.portal-home #masthead .container .site-branding img {
 transform:translate(-50%,-39.292365%);
 filter:drop-shadow(0 1px 2px #0006);
}
body #page .portal-layout { width:var(--portal-width); max-width:1640px; margin-inline:auto; box-sizing:border-box; }
body #page .portal-home-grid {
 display:grid; grid-template-columns:17% minmax(0,1fr) minmax(0,1fr) 17%;
 gap:var(--portal-gap); padding:0; margin-top:0; margin-bottom:0;
}
body #page .portal-campus-window { grid-column:1/-1; grid-row:1; position:relative; height:calc(var(--portal-band) + 112.59375px); }
body #page .portal-campus { width:100%; height:100%; filter:sepia(.12) saturate(1.04); object-fit:cover; object-position:50% 53%; display:block; margin:0; }
body #page .portal-campus-window::after { content:""; position:absolute; inset:0 0 auto; height:60%; pointer-events:none; background:linear-gradient(#000b,transparent); }
/* Trim the font’s internal cap/descender space before applying the cushion.
   The notch ends at the panels, consuming the row gap instead of adding one. */
body #page .portal-browse-heading { position:absolute; z-index:1; left:50%; bottom:calc(-1 * var(--portal-gap)); transform:translateX(-50%); width:max-content; max-width:100%; box-sizing:border-box; margin:0; padding:calc(var(--portal-gap) / 2 + 1px); background:#282623; color:#fff; text-align:center; font-family:'Cactus Stone Caps',sans-serif!important; font-weight:300!important; font-size:clamp(18px,1.2vw,22px); line-height:1; text-box-trim:trim-both; text-box-edge:cap alphabetic; text-transform:uppercase; letter-spacing:.075em!important; font-kerning:none!important; }
/* A small filled halo continues behind the cushion and into the matching
   row gap. The campus wrapper supplies the only outer clip, at the panels;
   cutting this layer at the photo edge created the former side-end seams.
   Six pixels of solid overlap cover the 2px blur's falloff at the cushion. */
body #page .portal-browse-heading::before {
 content:""; position:absolute; inset:-6px; z-index:-1;
 pointer-events:none; border:0; outline:0; box-shadow:none;
 background:#282623; filter:blur(2px);
}
body #page .portal-panel { display:flex; position:relative; align-items:center; justify-content:center; min-width:0; height:var(--portal-band); padding:0; margin:0; overflow:hidden; isolation:isolate; opacity:1; border:0; border-radius:0; text-decoration:none; transform:none; }
body #page .portal-panel::after { content:none; }
/* Extra hover emphasis sits above the unchanged photo filter and below text. */
body #page .portal-panel::before { content:''; position:absolute; inset:0; z-index:0; background:#fff; opacity:0; pointer-events:none; transition:opacity .25s ease; }
body #page .portal-panel:is(:hover,:focus-visible)::before { opacity:.1; }
body #page .portal-panel img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; margin:0; filter:brightness(.88) saturate(.96); transition:filter .25s ease; z-index:-1; }
body #page .portal-tile img { object-position:50% 59%; transform:translate(-2%,1%) scale(1.06); }
body #page .portal-slabs img { object-position:50% 54%; }
body #page .portal-panel:is(:hover,:focus-visible) img { filter:brightness(1.18) saturate(.96); }
body #page .portal-panel:focus-visible { outline:3px solid #d2c8ae; outline-offset:4px; }
body #page .portal-panel .portal-panel-label {
 font-family:'Cactus Stone Caps',sans-serif!important; font-weight:300!important; font-style:normal!important; font-synthesis:none;
 font-size:calc(var(--portal-label-scale,1) * clamp(47.25px,3.96vw,69.75px)); line-height:1.2; letter-spacing:.09em!important; font-kerning:none!important;
 color:#fff; text-shadow:0 2px 3px #0009,0 0 9px #0006; text-transform:uppercase;
 padding-left:.09em; pointer-events:none; position:relative; z-index:1;
}
body #page .portal-home-grid > .portal-tile { grid-column:1/3; grid-row:2; }
body #page .portal-home-grid > .portal-slabs { grid-column:3/5; grid-row:2; }
body #page .portal-tile-info { grid-column:1; grid-row:3; text-align:left; }
body #page .portal-slabs-info { grid-column:4; grid-row:3; text-align:right; }
body #page .portal-business h2 { font-size:16px; font-weight:400; line-height:1.4; color:#fff; margin:0 0 3px; text-transform:none; }
body #page .portal-business p { font-size:14px; font-weight:400; line-height:1.5; margin:0; color:#eeeae3; }
body #page :is(.portal-business,.portal-footer) a { color:#eeeae3; font-weight:400; opacity:1; text-decoration:none; text-transform:none; }
body #page .portal-business .portal-directions,body #page .portal-business a[href^='tel:'],body #page .portal-shared-contact a[href^='mailto:'] { color:#d2c8ae; }
body #page :is(.portal-business,.portal-footer) a::after { content:none; }
body #page :is(.portal-business,.portal-footer) a:is(:hover,:focus-visible) { color:#d2c8ae; text-decoration:underline; text-underline-offset:3px; }
body #page :is(.portal-business,.portal-footer) a:focus-visible { outline:2px solid #d2c8ae; outline-offset:3px; }
body #page .portal-portrait { grid-column:2; grid-row:3; position:relative; margin:0; min-width:0; height:var(--portal-band); background:#423e3a; overflow:hidden; container-type:size; display:flex; align-items:flex-end; }
/* Bound the visible photograph to the upper half. Its proportional image
   keeps the full head; the mask completes the supplied fade before the gray
   lower half, independent of the card's width/height ratio. */
body #page .portal-portrait-photo { position:absolute; inset:0 0 auto; height:50%; overflow:hidden; mask-image:linear-gradient(#000 76%,transparent 100%); }
body #page .portal-portrait-photo img { position:absolute; inset:auto; left:50%; top:calc(5px - max(5.4cqw,8.1cqh)); transform:translateX(-50%); display:block; width:max(100%,150cqh); max-width:none; height:auto; margin:0; filter:saturate(.82) brightness(.96); }
body #page .portal-portrait figcaption { position:relative; width:100%; height:50%; box-sizing:border-box; padding:0 5%; display:flex; flex-direction:column; justify-content:center; text-align:center; background:#423e3a; }
body #page .portal-portrait blockquote { width:90%; align-self:center; font:400 clamp(15.3px,min(4.455cqw,8.55cqh),21.6px)/1.25 'Manrope',sans-serif; color:#eeeae3; padding:0; margin:0; border:0; }
body #page .portal-portrait blockquote::before,body #page .portal-portrait blockquote::after { content:none; }
body #page .portal-portrait .portal-team-word { font-family:'Cactus Manrope Oblique',sans-serif!important; margin-right:.15em; font-weight:400; font-style:normal; font-synthesis:none; }
body #page .portal-portrait strong { font-weight:700; }
body #page .portal-portrait figcaption p { font:400 clamp(13px,3.2cqw,16px)/1.3 'Manrope',sans-serif; font-style:normal; color:#d2c8ae; margin:5px 0 0; }
body #page .portal-team-photo { grid-column:3; grid-row:3; display:block; width:100%; height:var(--portal-band); margin:0; object-fit:cover; object-position:50% 65%; filter:brightness(.92) saturate(.94); }
body #page .portal-footer { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:14px; padding:8px 1.5%; margin:0; min-height:44px; box-sizing:border-box; background:#282623; color:#eeeae3; }
body #page .portal-footer p { font-size:12px; font-weight:400; line-height:1.5; margin:0; }
body #page .portal-shared-contact { display:flex; flex-wrap:wrap; align-items:center; column-gap:4px; }
body #page .portal-copyright { text-align:right; }
body #page .portal-social { display:flex; gap:8px; align-items:center; }
body #page .portal-social a { display:flex; align-items:center; justify-content:center; width:28px; min-height:28px; font-size:18px; }
body #page .portal-product-panels { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--portal-gap); padding:0; }
/* The existing Products content stays in place; only its two entrances change. */
@media(max-width:1279px) {
 :root { --portal-width:92%; --portal-band:clamp(185px,22vw,230px); }
 body #page .portal-home-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 body #page .portal-home-grid > .portal-tile { grid-column:1; }
 body #page .portal-home-grid > .portal-slabs { grid-column:2; }
 body #page .portal-tile-info { grid-column:1; grid-row:3; }
 body #page .portal-slabs-info { grid-column:2; grid-row:3; }
 /* Match the actual uncropped team photograph, not an independent clamp.
    The intrinsic ratio gives both visible cards the same responsive bounds. */
 body #page .portal-portrait { grid-column:1; grid-row:4; height:auto; min-height:0; align-self:stretch; }
 body #page .portal-portrait blockquote { font-size:clamp(13px,min(4.455cqw,8.55cqh),21.6px); }
 body #page .portal-team-photo { grid-column:2; grid-row:4; height:auto; aspect-ratio:1500 / 1122; align-self:start; object-fit:contain; }
 body #page .portal-campus-window { height:calc(var(--portal-band) + 108px); }
 body #page .portal-footer { grid-template-columns:1fr auto; padding:12px 4%; }
 body #page .portal-copyright { grid-column:1/-1; text-align:center; }
 body #page .portal-footer p { font-size:12px; }
 body #page .portal-social a { width:36px; min-height:36px; }
}
@media(max-width:900px) {
 body.portal-home #masthead > .container { height:88px; }
}
@media(max-width:599px) {
 :root { --portal-width:calc(100% - 32px); --portal-gap:14px; --portal-band:clamp(165px,53vw,260px); }
 body.portal-home #masthead > .container { height:78px; }
 body #page .portal-home-grid { display:flex; flex-direction:column; }
 body #page .portal-campus-window { height:225px; }
 body #page .portal-campus { object-position:50% 60%; }
 body #page .portal-browse-heading { font-size:17px; max-width:calc(100% - 14px); }
 body #page .portal-panel { flex:none; }
 body #page .portal-business { text-align:left; padding-bottom:8px; }
 body #page .portal-business h2 { font-size:18px; }
 body #page .portal-business p { font-size:16px; }
 body #page .portal-portrait { flex:none; height:max(300px,82vw); aspect-ratio:auto; align-self:auto; min-height:0; padding:0; }
 body #page .portal-portrait blockquote { font-size:clamp(15.3px,min(4.455cqw,8.55cqh),21.6px); }
 body #page .portal-portrait figcaption p { margin-top:8px; }
 body #page .portal-team-photo { width:100%; height:auto; aspect-ratio:1.338; align-self:center; }
 body #page .portal-footer { display:flex; flex-direction:column; gap:8px; padding:14px 16px; }
 body #page .portal-shared-contact { justify-content:center; row-gap:4px; }
 body #page .portal-footer-separator { display:none; }
 body #page .portal-shared-contact > span { width:100%; text-align:center; }
 body #page .portal-social a { min-height:44px; width:44px; }
 body #page .portal-product-panels { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { body #page .portal-panel img,body #page .portal-panel::before { transition:none; } }
/* Retain Products' established 80px section inset above the panels. Its
   existing 10vh margin is separate; the panel boxes match Home exactly. */
body #page section#products-selection.portal-product-panels { padding-top:max(80px,calc(133px - 10vh)); }

/* The Manrope capitals sit 5px below the existing 22.4px line box. Move the
   whole block so the visible business-name ink meets the adjacent card top. */
@media(min-width:1280px) { body #page .portal-business { transform:translateY(-5px); } }
/* Replace only the legacy paragraph-link pseudo underline. Its absolute
   positioning escaped static anchors and painted across the viewport. Native
   text decoration follows wrapped words and leaves controls/pseudo icons alone. */
body #page p a:not(.cst-button)::after { content:none!important; }
body #page p a:not(.cst-button):is(:hover,:focus-visible) { color:#d2c8ae; text-decoration:underline; text-underline-offset:3px; }

/* October 16 final refinements: Home only, all interior entrances unchanged. */
body #page .portal-footer-nav { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:clamp(4px,1.2vw,20px); width:clamp(280px,22vw,380px); font:400 12px/1.5 'Manrope',sans-serif; }
body #page .portal-footer-nav > a { display:flex; align-items:center; min-height:28px; color:#eeeae3; font:inherit; }
body #page .portal-testimonials-link { justify-self:end; }
body #page .portal-story-link { justify-self:start; }
@media(min-width:1280px) {
 body #page .portal-business { transform:translateY(-6.25px); }
 body #page .portal-business h2 { font-size:20px; margin-bottom:3.75px; }
 body #page .portal-business p { font-size:17.5px; }
}
@media(min-width:600px) and (max-width:1279px) {
 body #page .portal-business h2 { font-size:20px; margin-bottom:3.75px; }
 body #page .portal-business p { font-size:17.5px; }
 body #page .portal-footer { grid-template-columns:1fr; gap:8px; }
 body #page .portal-footer-nav { grid-row:1; justify-self:center; }
 body #page .portal-shared-contact { grid-row:2; justify-content:center; }
 body #page .portal-copyright { grid-row:3; }
}
@media(max-width:599px) {
 body #page .portal-footer-nav { width:min(100%,380px); }
 body #page .portal-footer-nav > a { min-height:44px; }
}
/* Taper the enlarged blocks only where the four-column desktop is tight.
   All type and internal rhythm still scale together from the outer anchors. */
@media(min-width:1280px) {
 body #page .portal-business { font-size:clamp(18px,1.4vw,20px); transform:translateY(-.3125em); }
 body #page .portal-business h2 { font-size:1em; margin-bottom:.1875em; }
 body #page .portal-business p { font-size:.875em; }
}
@media(min-width:1280px) and (max-width:1439px) {
 body #page .portal-campus { object-position:50% 45%; }
}

/* Clip horizontal fade at the campus edges while retaining the solid notch
   extension into the existing 14px row gap. */
body #page .portal-campus-window { clip-path:inset(0 0 calc(-1 * var(--portal-gap)) 0); }
