/* GHRC Website — ported 1:1 from the Claude Design tokens/animations in GHRC Website.dc.html */
:root{
  --ink:#22282d; --ink-soft:#4c5c63; --teal:#38b7c6; --teal-deep:#2a8f9c; --teal-dark:#21747f;
  --sky:#aecbd6; --sky-soft:#eef4f6; --blue:#5f7c92; --bg:#ffffff; --surface:#f6f9fa;
  --line:#dbe6ea; --grey:#6b7d85;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Montserrat",system-ui,-apple-system,sans-serif;text-wrap:pretty;-webkit-font-smoothing:antialiased;}
a{color:var(--teal-deep);text-decoration:none;}
a:hover{color:var(--teal);}
img{display:block;max-width:100%;}
::selection{background:var(--sky);}
button{font-family:inherit;}

/* Self-hosted (no fonts.googleapis.com request at runtime) — static per-weight woff2 files.
   Deliberately NOT the variable-weight font: Chromium renders -webkit-text-stroke on this
   variable font's overlapping glyph contours incorrectly (self-intersecting/broken outlines
   on the hero heading's stroked text) — static instances don't have that overlap and render
   cleanly. */
@font-face{font-family:"Montserrat";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/montserrat-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/montserrat-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/montserrat-500-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/montserrat-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/montserrat-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/montserrat-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/montserrat-700-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/montserrat-700-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/montserrat-800-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url("/assets/fonts/montserrat-800-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:900;font-display:swap;src:url("/assets/fonts/montserrat-900-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:900;font-display:swap;src:url("/assets/fonts/montserrat-900-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes dropIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
/* Baseline is 1.06, not 1, even at the extremes of the cycle -- .ghrc-kb elements also get a
   scroll-parallax `translate` (see initParallax() in site.js) layered on top of this same
   transform via the separate `translate` property, and without a permanent overscan margin
   that offset would expose empty space past the image's edge at the 0%/100% keyframes. */
@keyframes kenBurns{0%{transform:scale(1.06)}50%{transform:scale(1.14)}100%{transform:scale(1.06)}}

.ghrc-dd{animation:dropIn .16s ease both}
.ghrc-dd-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:8px;text-decoration:none}
.ghrc-dd-item .ghrc-dd-arrow{opacity:0;transform:translateX(-4px);transition:opacity .15s ease,transform .15s ease}
.ghrc-dd-item:hover .ghrc-dd-arrow{opacity:1;transform:translateX(0)}
.ghrc-kb{animation:kenBurns 46s ease-in-out infinite}
.rise{animation:fadeUp .7s ease both;}
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.16,.8,.4,1),transform .8s cubic-bezier(.16,.8,.4,1);}
.reveal.is-in{opacity:1;transform:translateY(0);}
.reveal-item{opacity:0;transform:translateY(14px);transition:opacity .55s cubic-bezier(.16,.8,.4,1),transform .55s cubic-bezier(.16,.8,.4,1);}
.reveal-item.is-in{opacity:1;transform:translateY(0);}
.no-reveal .reveal,.no-reveal .reveal-item{opacity:1;transform:none;}

html.ghrc-hc,html.ghrc-hc body{background:#000 !important;}
html.ghrc-hc *{background-color:transparent !important;background-image:none !important;color:#fff !important;border-color:#555 !important;box-shadow:none !important;text-shadow:none !important;}
html.ghrc-hc img,html.ghrc-hc iframe,html.ghrc-hc video{filter:grayscale(.15) contrast(1.05);opacity:.9;}
/* The blanket "transparent" rule above made the sticky header and the full-screen mobile menu see-through. */
html.ghrc-hc .ghrc-header.solid,html.ghrc-hc .ghrc-header.scrolled,html.ghrc-hc .ghrc-header.mm-open,html.ghrc-hc .ghrc-mobile-menu{background-color:#000 !important}
html.ghrc-hc .ghrc-header-logo img{filter:brightness(0) invert(1) !important}
html.ghrc-hc .ghrc-burger span{background-color:#fff !important}
html.ghrc-hc a{color:#ffe14d !important;text-decoration:underline !important;}
html.ghrc-hc a:hover{color:#fff !important;background-color:#ffe14d !important;}
html.ghrc-hc input,html.ghrc-hc textarea{background-color:#111 !important;border:1px solid #fff !important;}

nav::-webkit-scrollbar{display:none}

/* Header */
.ghrc-header{position:fixed;top:0;left:0;right:0;z-index:100;background:transparent;border-bottom:1px solid transparent;transition:background-color .35s ease,border-color .35s ease}
.ghrc-header.solid,.ghrc-header.scrolled{background:#fff;border-bottom-color:var(--line);box-shadow:0 1px 2px rgba(38,40,45,.04)}
.ghrc-header.scrolled .ghrc-header-logo img{filter:none}
.ghrc-header.scrolled .ghrc-nav-link{color:var(--ink)}
.ghrc-header.scrolled .ghrc-lang{border-left-color:var(--line)}
.ghrc-header-inner{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:0 40px;height:76px}
.ghrc-header-logo{cursor:pointer;display:flex;align-items:center;flex:none}
.ghrc-header-logo img{height:38px;width:82px;object-fit:contain;transition:filter .35s ease}
.ghrc-header.solid .ghrc-header-logo img{filter:none}
.ghrc-header:not(.solid):not(.scrolled):not(.mm-open) .ghrc-header-logo img{filter:brightness(0) invert(1)}
.ghrc-nav{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;grid-column:2}
.ghrc-nav-link{cursor:pointer;padding:4px 0;font-size:13.5px;font-weight:600;letter-spacing:.01em;color:#fff;border-bottom:2px solid transparent;transition:color .35s ease;display:flex;align-items:center;gap:4px}
.ghrc-header.solid .ghrc-nav-link{color:var(--ink)}
.ghrc-nav-link:hover{color:var(--teal);border-bottom-color:var(--teal)}
.ghrc-nav-drop{position:relative;display:flex}
.ghrc-nav-menu{position:absolute;top:100%;left:0;padding-top:14px;min-width:240px;z-index:80;display:none}
.ghrc-nav-drop:hover .ghrc-nav-menu,.ghrc-nav-menu:hover{display:block}
.ghrc-nav-menu.right{left:auto;right:0}
.ghrc-nav-menu-card{background:#fff;border-radius:14px;box-shadow:0 18px 40px rgba(20,25,28,.16);padding:8px;display:flex;flex-direction:column;gap:1px}
.ghrc-header-controls{display:flex;align-items:center;gap:14px;flex:none;justify-self:end}
.ghrc-lang{display:flex;align-items:center;gap:10px;flex:none;padding-left:20px;border-left:1px solid rgba(255,255,255,.3)}
.ghrc-header.solid .ghrc-lang{border-left-color:var(--line)}
.ghrc-lang a{cursor:pointer;display:flex;border-radius:3px;overflow:hidden}

/* Mobile burger + full-screen menu panel (see header.php, site.js initMobileMenu()) */
.ghrc-burger{display:none;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:38px;height:38px;cursor:pointer;background:none;border:none;padding:0;color:#fff;transition:color .35s ease}
.ghrc-burger span{display:block;width:20px;height:2px;flex:none;background:currentColor;border-radius:2px}
.ghrc-header.solid .ghrc-burger,.ghrc-header.scrolled .ghrc-burger,.ghrc-header.mm-open .ghrc-burger{color:var(--ink)}
.ghrc-header.mm-open{background:#fff;border-bottom-color:var(--line)}
.ghrc-header.mm-open .ghrc-header-logo img{filter:none}
.ghrc-header.mm-open .ghrc-nav-link{color:var(--ink)}

.ghrc-mobile-menu{display:none;position:fixed;inset:0;z-index:99;background:#fff;padding:96px 28px 28px;flex-direction:column;gap:4px;overflow-y:auto}
.ghrc-mobile-menu.is-open{display:flex}
html.ghrc-mm-open{overflow:hidden}
.ghrc-mm-link{cursor:pointer;padding:16px 4px;border-bottom:1px solid var(--line);font-size:17px;font-weight:700;color:var(--ink);text-decoration:none}
.ghrc-mm-langs{display:flex;gap:14px;padding-top:20px;align-items:center}
.ghrc-mm-lang{cursor:pointer;display:flex;border-radius:4px;overflow:hidden}
.ghrc-mm-a11y{cursor:pointer;display:flex;align-items:center;gap:10px;padding:16px 4px;margin-top:8px;border:none;border-top:1px solid var(--line);background:none;font-size:14px;font-weight:700;color:var(--ink);width:100%;text-align:left;font-family:inherit}

/* Footer */
.ghrc-footer{background:var(--ink);color:#d7e4e9;padding:64px 0 28px}
.ghrc-footer-inner{max-width:1360px;margin:0 auto;padding:0 40px}
.ghrc-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid #37454c}
.ghrc-footer h3{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6f8a92;margin:0 0 12px}
.ghrc-footer a{color:#d7e4e9;font-size:13.5px}
.ghrc-footer a:hover{color:var(--teal)}
.ghrc-social{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:rgba(255,255,255,.08);color:#d7e4e9}
.ghrc-social:hover{background:var(--teal);color:#fff}
.ghrc-footer-badges{display:flex;align-items:center;gap:22px;padding:18px 0;border-top:1px solid #37454c;flex-wrap:wrap}
.ghrc-footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:14px;font-size:11.5px;color:#6f8a92;flex-wrap:wrap;gap:8px}

/* Buttons */
.ghrc-btn{cursor:pointer;display:inline-flex;align-items:center;gap:10px;background:#fff;color:var(--ink);padding:14px 22px;border-radius:999px;font-size:12.5px;font-weight:800;letter-spacing:.04em;border:none}
.ghrc-btn:hover{background:var(--teal);color:#fff}
.ghrc-btn-solid{background:var(--teal);color:#fff;border-radius:6px;padding:14px 26px;text-transform:uppercase}
.ghrc-btn-solid:hover{background:var(--teal-deep);color:#fff}

/* Cards / grid utilities used across pages */
.ghrc-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(38,40,45,.08);transition:box-shadow .25s,transform .25s}
.ghrc-card:hover{box-shadow:0 18px 34px rgba(38,40,45,.14);transform:translateY(-3px)}
.ghrc-imgcard{transition:box-shadow .25s}
.ghrc-imgcard:hover{box-shadow:0 18px 34px rgba(38,40,45,.28)}
.ghrc-imgcard-img{transition:transform .35s ease}
.ghrc-imgcard:hover .ghrc-imgcard-img{transform:scale(1.06)}
.ghrc-home-hero-scrollcue{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);color:rgba(255,255,255,.75);display:flex;align-items:center;justify-content:center;width:32px;height:32px;pointer-events:none;animation:ghrcScrollCue 2.2s ease-in-out infinite}
@keyframes ghrcScrollCue{0%,100%{transform:translate(-50%,0);opacity:.75}50%{transform:translate(-50%,7px);opacity:1}}
@media (prefers-reduced-motion:reduce){.ghrc-home-hero-scrollcue{animation:none}}
.ghrc-home-hero-card{transition:box-shadow .25s,transform .25s}
.ghrc-home-hero-card:hover{box-shadow:0 18px 34px rgba(38,40,45,.18);transform:translateY(-3px)}
.ghrc-showcase-link:hover .ghrc-showcase-slide[style*="opacity:1"]{transform:scale(1.03)}
.ghrc-showcase-slide{transition:transform .6s ease}
.ghrc-filter-pill{transition:box-shadow .2s,transform .2s}
.ghrc-filter-pill:hover{box-shadow:0 6px 14px rgba(38,40,45,.12);transform:translateY(-2px)}

/* Accessibility widget + lightbox + back-to-top share the design's fixed-position pattern; JS toggles .open */
.ghrc-fixed-fab{cursor:pointer;width:46px;height:46px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(20,25,28,.3);border:none}
.ghrc-fixed-fab:hover{background:var(--teal-deep)}

/* Before/after block + inline gallery block, compiled from the admin body-content block
   editor (see app/lib/blocks.php, blocks_compile()). The project detail page's own hero
   before/after comparison (app/views/projects/detail.php) reuses these same class names
   but sets its own inline positioning styles, which simply take precedence over these —
   this block only needs to give the compiled-into-body-copy version (which has no inline
   styles at all) working structural CSS. initBeforeAfterSliders() in this file already
   drags any `.ghrc-ba` it finds, wherever it appears on the page. */
.ghrc-ba{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:10px;cursor:ew-resize;user-select:none;max-width:1000px;margin:0 0 1.4em;background:var(--surface)}
.ghrc-ba:not(.ghrc-ba-inline){clear:both}
/* A real float, so paragraph text wraps around it -- the collision this caused earlier
   (a later full-width block like a carousel not clearing the float and getting squeezed
   into the remaining column width) is fixed at the source below: every full-width
   body-content block and heading clears floats, so only running paragraph text ever
   wraps around this. */
.ghrc-ba-inline{float:right;width:42%;max-width:340px;margin:4px 0 1.2em 24px}
@media (max-width: 640px){ .ghrc-ba-inline{float:none;width:100%;max-width:100%;margin:0 0 1.4em} }
.ghrc-ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ghrc-ba .ghrc-ba-before{clip-path:inset(0 50% 0 0)}
.ghrc-ba .ghrc-ba-handle{position:absolute;top:0;bottom:0;left:50%;width:3px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.15)}
/* Grip affordance so a static screenshot of the slider still reads as draggable.
   initBeforeAfterSliders() (site.js) also runs a one-time position "peek" on load
   for the same reason, purely via JS so it moves the real clip-path in sync. */
.ghrc-ba .ghrc-ba-handle::after{content:"";position:absolute;top:50%;left:50%;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.22);transform:translate(-50%,-50%)}
.ghrc-ba .ghrc-ba-handle::before{content:"⟷";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:13px;line-height:1;color:var(--ink);z-index:1}
.ghrc-ba-label{position:absolute;bottom:16px;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#fff;padding:6px 10px;border-radius:4px;pointer-events:none;background:rgba(34,40,45,.82)}
.ghrc-ba-label-before{left:16px}
.ghrc-ba-label-after{right:16px;background:var(--teal)}
/* Migrated bodies use a WordPress-era convention where a standalone bold paragraph
   (nothing else in it) acts as a section subtitle -- e.g. "Technical Aspects" on a
   project page. Detected in JS (initLeadSubParagraphs(), site.js) rather than the
   CSS-only `p:has(> strong:only-child)` this used to be -- that selector's
   :only-child only counts element siblings, not text, so it also matched an
   ordinary paragraph that just happens to contain exactly one **bold** phrase
   partway through a normal sentence. */
.ghrc-body-copy p.ghrc-lead-sub{color:var(--teal-deep);margin-top:1.6em;font-size:1.05em;letter-spacing:.01em;clear:both}
.ghrc-body-copy h2,.ghrc-body-copy h3,.ghrc-body-copy h4{clear:both}
.ghrc-body-copy ul,.ghrc-body-copy ol{list-style:none;margin:0 0 1.4em;padding:0;display:flex;flex-direction:column;gap:5px;clear:both}
.ghrc-body-copy ul li,.ghrc-body-copy ol li{position:relative;padding-left:24px}
.ghrc-body-copy ul li::before{content:"";position:absolute;left:2px;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--teal)}
.ghrc-body-copy ol{counter-reset:ghrc-ol}
.ghrc-body-copy ol li::before{counter-increment:ghrc-ol;content:counter(ghrc-ol);position:absolute;left:0;top:0;font-size:.85em;font-weight:800;color:var(--teal-deep)}
/* A standalone image dropped into body copy renders full-width below the text it follows,
   same as every other body-content block (gallery, before/after) -- floating it alongside
   text looked deliberate for a single short paragraph but broke badly wherever a floated
   image landed next to a later full-width block (e.g. a carousel, which doesn't clear a
   float and ends up squeezed into the remaining column width beside it). The :not() keeps
   this off carousel slides, which use the same .ghrc-lightbox-trigger class but need to
   stay full-bleed within their track. */
.ghrc-body-copy div.ghrc-lightbox-trigger:not(.ghrc-carousel-slide){cursor:pointer;aspect-ratio:16/9;margin:0 0 1.4em;border-radius:10px;overflow:hidden;max-width:1000px;clear:both}
.ghrc-body-copy div.ghrc-lightbox-trigger:not(.ghrc-carousel-slide) img{width:100%;height:100%;object-fit:cover;display:block;border-radius:10px}
/* Same treatment for a bare <figure> image left over from the original WordPress import
   (html_sanitize() strips its class, so it can't be targeted by the WP class name anymore). */
.ghrc-body-copy figure{margin:0 0 1.4em;max-width:1000px;clear:both}
.ghrc-body-copy figure img{width:100%;height:auto;display:block;border-radius:10px}
.ghrc-body-copy figure figcaption{font-size:12px;color:var(--grey);margin-top:6px}
/* Row-group pairs (blocks_compile() in app/lib/blocks.php) use align-items:start on the
   grid, which aligns the two <div> wrappers' box edges perfectly -- but whatever block sits
   first inside a column (a <p>, since there's no generic .ghrc-body-copy p rule, still
   carries the browser's default 1em top margin) can push its own visible content down
   inside that box, so the columns still look misaligned even though the grid is correct.
   Zero out the leading block's top margin in both columns so visible content lines up,
   regardless of which block type happens to land first. */
.ghrc-row-group > div > :first-child{margin-top:0}
.ghrc-inline-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 1.4em;clear:both}
.ghrc-inline-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;cursor:pointer;display:block}
@media (max-width: 640px){ .ghrc-inline-gallery{grid-template-columns:repeat(2,1fr)} }
.ghrc-filter-row{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ghrc-filter-row::-webkit-scrollbar{display:none}
.ghrc-filter-pill{white-space:nowrap;flex:none}

@media (max-width: 900px){
  /* With .ghrc-nav hidden below, the header's 3-column grid (1fr auto 1fr,
     middle column pinned to the now-invisible nav) sizes unpredictably —
     the burger ends up stranded mid-header instead of flush right. Flexbox
     is the right tool once there's no middle column to arrange. */
  .ghrc-header-inner{display:flex;justify-content:space-between;padding:0 20px}
  .ghrc-nav{display:none}
  .ghrc-lang{display:none}
  .ghrc-burger{display:flex}
  .ghrc-header-controls{gap:0}
  /* .ghrc-a11y-float's inline style sets left/bottom/align-items (desktop values) — !important
     needed to reposition it as a full-width bottom sheet on mobile. */
  .ghrc-a11y-float{position:fixed;inset:auto 0 0 0 !important;left:0 !important;bottom:0 !important;padding:16px 20px calc(16px + env(safe-area-inset-bottom));justify-content:flex-end;align-items:stretch !important}
  #ghrc-a11y-toggle{display:none}
  #ghrc-a11y-panel{width:100% !important}
}

/* ------------------------------------------------------------------------
 * Mobile/tablet responsive pass. The public views are built almost entirely
 * from inline `style="..."` attributes (ported 1:1 from desktop-only Claude
 * Design mockups), so @media queries here can't reach most of the layout —
 * only properties that actually differ between breakpoints have been pulled
 * out of the relevant inline attribute and into one of the classes below,
 * which supplies the desktop-default (base) value plus the mobile/tablet
 * override. Everything else in each element's inline style is untouched.
 * ------------------------------------------------------------------------ */

/* About page (app/views/about.php) */
.ghrc-about-layout{display:flex;gap:56px;align-items:flex-start}
.ghrc-about-nav{position:sticky;top:100px;flex:none;width:220px;gap:2px}
/* The base color/font-size are set inline on each <a> (see about.php) -- !important is
   needed here to win against that for the active state, same as elsewhere in this file. */
.ghrc-about-navitem{transition:color .2s ease,font-size .2s ease}
.ghrc-about-navitem.ghrc-about-navitem-active{border-left-color:var(--teal-deep);color:var(--teal-deep) !important;font-size:14.5px !important}
.ghrc-about-content{display:flex;flex-direction:column;gap:88px}
/* Left-nav tabs (about.php, ~line 35) are plain #id anchors, so a click does a native
   anchor jump -- without this, the target's very top lands flush with the viewport top,
   which is exactly where .ghrc-header's fixed 76px bar sits, hiding the section heading
   behind it and leaving body text as the first visible thing. Same fix/value as
   .ghrc-art-title above (76px header + margin). Applies to every #id the nav links to
   (formation/mission/capabilities/board/foi in about.php), not just one. */
#formation, #mission, #capabilities, #board, #foi{scroll-margin-top:100px}
.ghrc-about-grid-2{display:grid;grid-template-columns:1.1fr 1fr;gap:40px}
/* Formation section: 2+ images render twice -- a stacked column (desktop/tablet, hidden below)
   and a .ghrc-carousel (hidden until the same phone breakpoint where ghrc-about-grid-2 collapses
   to one column) -- see about.php. Single-image sections only ever render the stacked version. */
.ghrc-about-images-carousel{display:none}
.ghrc-mission-cards{display:grid;grid-template-columns:repeat(2,1fr)}
.ghrc-cap-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.ghrc-board-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}

/* Contact page (app/views/contact.php) */
.ghrc-contact-grid{display:grid;grid-template-columns:1fr 440px;gap:48px;align-items:start;transform:translateY(-64px)}

/* Home page (app/views/home.php) — hero content/kicker/heading/CTA row and the
   mission/ongoing/finished grids below it, plus the news-card horizontal carousel. */
.ghrc-home-hero-content{padding:0 40px 64px 150px}
.ghrc-home-hero-kicker{}
.ghrc-home-hero-title{font-size:clamp(30px,7.4vw,var(--hs,64px))}
.ghrc-home-hero-ctarow{display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
.ghrc-home-hero-body{}
.ghrc-home-hero-cta{}
.ghrc-home-hero-card{}
.ghrc-home-hero-card-text{}
.ghrc-news-card{}
.ghrc-home-mission-section{display:grid;grid-template-columns:1.1fr 2fr;gap:60px}
.ghrc-home-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.ghrc-home-ongoing-grid{display:grid;grid-template-columns:1.4fr 1fr}

/* "How it was" before/after showcase (app/views/home.php) */
.ghrc-showcase-grid{display:grid;grid-template-columns:1fr 2fr}
.ghrc-showcase-dot{width:7px;height:7px;padding:0;border-radius:999px;border:none;background:rgba(255,255,255,.4);cursor:pointer}
.ghrc-showcase-dot.active{background:#fff;width:18px}

/* News article (app/views/news/article.php) */
.ghrc-article-layout{display:grid;grid-template-columns:1fr 280px;gap:0 40px;align-items:start}
.ghrc-article-aside{position:sticky;top:100px}
.ghrc-aside-row{transition:background-color .15s ease}
.ghrc-aside-row:hover{background:var(--surface)}
.ghrc-aside-row:hover span:not([style*="uppercase"]){color:var(--teal-deep)}
/* Swipeable image carousel (2+ gallery images) -- scroll-snap does the actual swipe/
   momentum/snapping natively; the JS in site.js only syncs the dots and wires the arrows,
   both of which just scroll the track (nothing reimplements the drag gesture itself). */
.ghrc-carousel{position:relative;margin:0 0 1.4em;clear:both}
/* Body-content video embed (legacy WordPress-import iframes, migrated to the same clean
   youtube-nocookie autoplay pattern used on project/news detail pages -- see
   projects/detail.php and news/article.php). html_sanitize() strips 'style' off iframe and
   div alike, so the responsive 16:9 box has to come from this fixed class, not inline styles. */
.ghrc-video-embed{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;margin:0 0 1.4em;background:var(--ink);max-width:1000px;clear:both}
.ghrc-video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:none}
/* Facebook's video plugin isn't responsive like YouTube's -- it has real width/height
   attributes (see html_sanitize()) and needs to keep them rather than being stretched to
   fill the box, or its player renders pinned to one corner instead of filling the frame. */
.ghrc-video-embed:has(iframe[src*="facebook.com"]){aspect-ratio:auto;display:flex;justify-content:center}
.ghrc-video-embed iframe[src*="facebook.com"]{position:static;width:100%;height:auto;aspect-ratio:16/9;max-width:680px}
/* Poster image covering the iframe until the YouTube player actually starts playing --
   autoplay is unreliable on mobile (data connection, battery-saver autoplay blocks, etc.),
   and while it's stalled the visitor sees YouTube's own bare play-button/branding with
   nothing else on screen. initVideoPosters() (site.js) fades this out once the player
   reports it's playing, with a timeout fallback so it never gets stuck showing forever. */
.ghrc-video-poster{transition:opacity .4s ease}
.ghrc-video-poster.is-hidden{opacity:0;pointer-events:none}
/* Our own tap-to-play button, shown only when autoplay is refused (initVideoPosters(), site.js). */
.ghrc-video-play{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;border:2px solid rgba(255,255,255,.85);background:rgba(20,25,28,.6);color:#fff;z-index:6;cursor:pointer;align-items:center;justify-content:center;padding:0 0 0 4px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.ghrc-video-play.is-shown{display:flex}
.ghrc-video-play.is-hero{top:40%}
.ghrc-video-play:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
/* Background videos never show a native play button, even where autoplay is blocked (the poster holds the frame). */
[data-video-poster] video{pointer-events:none}
[data-video-poster] video::-webkit-media-controls,[data-video-poster] video::-webkit-media-controls-start-playback-button,[data-video-poster] video::-webkit-media-controls-overlay-play-button{display:none !important;-webkit-appearance:none}
.ghrc-carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:10px}
.ghrc-carousel-track::-webkit-scrollbar{display:none}
.ghrc-carousel-slide{flex:0 0 100%;scroll-snap-align:start;aspect-ratio:16/9;cursor:pointer;background:var(--surface)}
.ghrc-carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
.ghrc-carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:999px;border:none;background:rgba(20,25,28,.55);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ghrc-carousel-arrow:hover{background:rgba(20,25,28,.8)}
.ghrc-carousel-arrow.prev{left:12px}
.ghrc-carousel-arrow.next{right:12px}
.ghrc-carousel-dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.ghrc-carousel-dot{width:7px;height:7px;padding:0;border-radius:999px;border:none;background:var(--line);cursor:pointer}
.ghrc-carousel-dot.active{background:var(--teal-deep);width:18px}
.ghrc-date-grid{display:grid;grid-template-columns:76px 1fr;gap:0 28px}
.ghrc-date-col{}
.ghrc-date-circle{}
.ghrc-date-day{}
.ghrc-date-month{}
.ghrc-date-line{}
.ghrc-date-content{}
/* .ghrc-header-inner is a fixed 76px tall at every breakpoint (see its rule above) --
   this clears it with a bit of breathing room whenever a linked update's title is
   scrolled to directly (see initScrollToCurrentUpdate() in site.js). */
.ghrc-art-title{scroll-margin-top:100px}

/* News index (app/views/news/index.php) */
.ghrc-news-featured{display:grid;grid-template-columns:1.3fr 1fr}
.ghrc-news-featured-body{padding:20px 32px 20px 0}
.ghrc-featured-img{}
.ghrc-news-grid{display:grid;grid-template-columns:repeat(3,1fr)}

/* Project detail (app/views/projects/detail.php) */
.ghrc-project-hero{height:560px}
.ghrc-project-about-grid{display:grid;grid-template-columns:2fr 1fr}
.ghrc-project-about-text{border-right:1px solid var(--line)}
.ghrc-project-other-grid{display:grid;grid-template-columns:repeat(3,1fr)}

/* Project detail: labelled photo albums (Before / Works in progress / Ready). All populated
   albums sit in one row, side by side, each its own horizontally-scrollable tile strip (like
   a logo strip) rather than a stacked full-width grid per album -- keeps a handful of photos
   compact instead of each blowing up to fill the row. Arrows only appear once JS (site.js
   initAlbumStrips()) detects the strip actually overflows its column. */
.ghrc-project-albums-row{display:flex;flex-wrap:wrap;gap:32px 40px;align-items:flex-start}
/* Shrink-to-fit, not stretch: a 1-photo album shouldn't claim half the row just because
   there's another column next to it -- each column sizes to its own strip's natural
   content width (capped so one very full album can't hog the whole row), so the next
   album's column starts right where the previous one's photos end. min-width:0 lets a
   column shrink below that if 3+ populated albums need to squeeze into one row -- the
   strip's own overflow-scroll + arrows (initAlbumStrips() in site.js) still show every
   photo regardless of how much width it ends up with. */
.ghrc-project-album-col{flex:0 1 auto;min-width:0;max-width:620px}
.ghrc-project-album-label{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--grey);margin-bottom:14px}
.ghrc-album-strip{position:relative}
.ghrc-album-strip-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;scrollbar-width:none}
.ghrc-album-strip-track::-webkit-scrollbar{display:none}
.ghrc-album-strip-tile{flex:0 0 130px;aspect-ratio:4/3;cursor:pointer;overflow:hidden;border-radius:8px;background:var(--surface);scroll-snap-align:start}
.ghrc-album-strip-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.ghrc-album-strip-tile:hover img{transform:scale(1.06)}
.ghrc-album-strip .ghrc-carousel-arrow{display:none}
.ghrc-album-strip.has-overflow .ghrc-carousel-arrow{display:flex}
.ghrc-album-strip.at-start [data-album-strip-prev],
.ghrc-album-strip.at-end [data-album-strip-next]{opacity:.35;pointer-events:none}
/* A lighter-weight arrow just for this strip -- the plain .ghrc-carousel-arrow (36px, dark
   55%-opacity circle) is sized for sitting on top of one large full-bleed photo; here it's
   next to 2-3 small tiles, where that same treatment reads as a big overlay button rather
   than "a strip has more to scroll." Smaller, pale, closer to the edge -- a nav affordance,
   not a call to action. Positioning only (not display) so .has-overflow above still governs
   visibility, and at-start/at-end above still dims/disables it the same way. */
.ghrc-album-strip .ghrc-carousel-arrow{width:26px;height:26px;font-size:14px;background:rgba(255,255,255,.92);color:var(--ink-soft);box-shadow:0 1px 4px rgba(20,25,28,.16)}
.ghrc-album-strip .ghrc-carousel-arrow:hover{background:#fff;color:var(--ink)}
.ghrc-album-strip .ghrc-carousel-arrow.prev{left:4px}
.ghrc-album-strip .ghrc-carousel-arrow.next{right:4px}
/* Small image row on a "Project updates" timeline entry (projects/detail.php), sitting below
   that entry's title/excerpt -- up to 3 photos (hero + gallery, see controller_project_detail())
   side by side, sized down via --count so 1 photo isn't stretched full-width and 3 don't get
   cramped. Beyond 3, project_build_gallery_and_albums()-style slicing keeps it at exactly 3;
   no carousel/arrows needed since there's never more to scroll to here. */
.ghrc-timeline-thumb{max-width:360px}
.ghrc-timeline-thumb-grid{display:grid;grid-template-columns:repeat(var(--count,3),1fr);gap:8px}

/* Projects index (app/views/projects/index.php) */
.ghrc-projects-grid{display:grid;grid-template-columns:repeat(3,1fr)}

/* Tenders (app/views/tenders.php) */
.ghrc-tender-row{display:grid;grid-template-columns:1fr 140px 140px;gap:24px;align-items:center}

/* Error pages (app/views/errors/404.php, 500.php) — not covered by the current design pass, untouched */
.ghrc-error-section{padding:200px 40px 120px}
.ghrc-error-code{font-size:120px}

@media (max-width: 900px){
  .ghrc-footer-grid{grid-template-columns:1fr 1fr}
  .ghrc-footer-badges{justify-content:center;gap:26px;padding:24px 0}
  .ghrc-footer-bottom{flex-direction:column;gap:10px;text-align:center;padding-top:20px}
  .ghrc-about-layout{flex-direction:column;gap:32px}
  /* .ghrc-about-nav's inline style="" sets display:flex/flex-direction:column/border-left/width
     (base desktop values) — !important needed on those to flip it to a horizontal tab bar.
     width:100% (not auto) plus flex-wrap:nowrap is what actually contains the row within the
     viewport: .ghrc-about-nav is itself a flex item of .ghrc-about-layout, whose base
     align-items:flex-start (never overridden here) means an unconstrained width lets the item
     shrink-wrap to its content's max-content size instead of the parent's width — exactly the
     same contained-horizontal-scroll pattern as .ghrc-filter-row (project-list filter pills). */
  .ghrc-about-nav{
    position:sticky;top:76px;z-index:40;
    flex-direction:row !important;flex-wrap:nowrap;width:100% !important;border-left:none !important;
    overflow-x:auto;-webkit-overflow-scrolling:touch;gap:4px;scrollbar-width:none;
    background:#fff;padding:10px 0;
    border-bottom:1px solid var(--line);
  }
  .ghrc-about-nav::-webkit-scrollbar{display:none}
  /* padding/margin-left/border-left are set inline on each nav <a> — !important needed. */
  .ghrc-about-navitem{
    flex:none;white-space:nowrap;
    padding:8px 14px !important;margin-left:0 !important;
    border-left:none !important;border-bottom:2px solid transparent;
  }
  .ghrc-about-navitem-active{border-bottom-color:var(--teal)}
  /* Below this breakpoint .ghrc-about-nav itself becomes a second sticky bar (top:76px,
     directly under the fixed header) rather than a side column -- an anchor jump has to
     clear both bars now, not just the header, or the heading still lands underneath. */
  #formation, #mission, #capabilities, #board, #foi{scroll-margin-top:140px}
  .ghrc-about-content{gap:56px}
  .ghrc-about-grid-2{grid-template-columns:repeat(2,1fr);gap:24px}
  .ghrc-cap-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-board-grid{grid-template-columns:repeat(2,1fr);gap:20px}
  .ghrc-contact-grid{grid-template-columns:repeat(2,1fr);gap:24px;transform:none;padding-bottom:48px !important}
  /* Desktop's height:92vh/min-height:960px (inline, home.php) was tuned to guarantee a
     1920px-tall video/image crop never shows white space below it on a wide desktop
     viewport -- a mobile-only concern that never applied here, since a phone's video crop
     is nowhere near that tall. Left as-is on mobile, that same 960px floor makes the hero
     far taller than the screen itself (a typical phone is 650-930px tall), and since the
     text content is bottom-anchored (.ghrc-home-hero-content, justify-content:flex-end),
     the headline ends up pinned well past the vertical center of the first screenful
     instead of near the top. 78vh/650px keeps the same "no white space below the crop"
     guarantee (the video/image wrappers below size themselves as percentages of this
     section, so they scale down with it) while landing the headline comfortably above
     center on both a short phone (~667px tall) and a tall one (~926px) -- verified at
     both. min-height is the floor that keeps it there even on the shortest phones, where
     78vh alone would land the headline right under the fixed header. */
  .ghrc-home-hero{height:78vh !important;min-height:650px !important}
  .ghrc-home-hero-content{padding:0 20px 40px 20px}
  /* These coexist with matching properties already set inline on the same elements
     (ported 1:1 from the desktop-only design markup) — !important is required here,
     same as the design's own mobile overrides, to actually win over the inline style. */
  .ghrc-home-hero-kicker{font-size:9px !important;letter-spacing:.14em !important}
  .ghrc-home-hero-title{line-height:.95 !important;font-size:11.5vw}
  .ghrc-home-hero-ctarow{flex-direction:column !important;align-items:stretch !important}
  .ghrc-home-hero-body{gap:12px !important;max-width:100% !important}
  .ghrc-home-hero-body p{font-size:13.5px !important;line-height:1.5 !important}
  .ghrc-home-hero-cta{padding:11px 18px 11px 20px !important;font-size:11.5px !important}
  .ghrc-home-hero-card{width:220px !important;align-self:flex-end !important;padding:16px 18px !important}
  .ghrc-home-hero-card-text{font-size:13px !important}
  .ghrc-news-card{flex:0 0 260px !important}
  .ghrc-home-mission-section{grid-template-columns:repeat(2,1fr);gap:24px}
  .ghrc-home-stats-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-home-ongoing-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-showcase-grid{grid-template-columns:1fr}
  .ghrc-article-layout{grid-template-columns:1fr 240px;gap:0 24px}
  /* These four coexist with inline size/font-size attributes ported 1:1 from the
     desktop markup, so !important is required to win over the inline style. */
  .ghrc-art-title{font-size:30px !important}
  .ghrc-date-grid{grid-template-columns:56px 1fr !important}
  .ghrc-date-circle{width:48px !important;height:48px !important}
  .ghrc-date-day{font-size:14px !important}
  .ghrc-article-aside{position:static;top:auto}
  .ghrc-news-featured{grid-template-columns:repeat(2,1fr)}
  .ghrc-featured-img{aspect-ratio:auto !important;height:100%}
  .ghrc-news-featured-body{padding:20px}
  .ghrc-news-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-project-hero{height:420px}
  .ghrc-project-about-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-project-other-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-projects-grid{grid-template-columns:repeat(2,1fr)}
  .ghrc-tender-row{grid-template-columns:repeat(2,1fr)}
  .ghrc-error-section{padding:130px 24px 80px}
  .ghrc-error-code{font-size:80px}
}

@media (max-width: 640px){
  .ghrc-footer-grid{grid-template-columns:repeat(2,1fr);gap:28px 20px}
  .ghrc-footer-grid > *:first-child{grid-column:1 / -1}
  .ghrc-mission-cards{grid-template-columns:1fr}
  .ghrc-cap-grid{grid-template-columns:1fr}
  .ghrc-board-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  /* transform:none (disabling the desktop hero-overlap) leaves the card sitting flush against
     whatever comes next in normal flow -- add back breathing room before the footer here since
     the base inline style="padding:0 40px" carries no bottom padding of its own (the desktop
     translateY(-64px) overlap made that a non-issue there). */
  /* padding-bottom needs !important -- the section's inline style="padding:0 40px" expands to
     padding-bottom:0 at inline-level specificity, which otherwise beats this class rule. */
  .ghrc-contact-grid{grid-template-columns:1fr;gap:24px;transform:none;padding-bottom:48px !important}
  .ghrc-home-mission-section{grid-template-columns:1fr}
  /* 24+ | 2007 | 6+ stay on ONE row (three compact columns) instead of stacking. */
  .ghrc-home-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .ghrc-home-stats-grid > div{gap:5px !important;padding-left:10px !important;min-width:0}
  .ghrc-home-stats-grid > div > span:first-child{font-size:28px !important}
  .ghrc-home-stats-grid > div > span:last-child{font-size:8.5px !important;letter-spacing:.06em !important;line-height:1.35;overflow-wrap:anywhere}
  .ghrc-home-ongoing-grid{grid-template-columns:1fr}
  .ghrc-news-card{flex:0 0 82vw !important}
  .ghrc-art-title{font-size:26px !important}
  .ghrc-page-title{font-size:30px !important}
  /* Below this breakpoint the date badge/circle column is dropped entirely (see .ghrc-date-col
     below) rather than squeezed -- on a chained timeline (multiple updates on one article) the
     .ghrc-date-col/.ghrc-date-content pair repeats per entry, and reordering them with `order`
     at a narrower breakpoint (the old approach) sorts by order *across the whole grid*, not
     per-row, which interleaves every entry's date badge with the wrong entry's content. Hiding
     the column sidesteps that entirely; the "Last updated" line inside .ghrc-date-content (with
     the calendar icon) already carries the date on every screen size, so nothing is lost. */
  .ghrc-date-grid{grid-template-columns:1fr !important}
  .ghrc-date-col{display:none !important}
  .ghrc-article-layout{grid-template-columns:1fr;gap:40px}
  .ghrc-news-featured{grid-template-columns:1fr}
  .ghrc-featured-img{aspect-ratio:16/11 !important;height:auto}
  .ghrc-news-grid{grid-template-columns:1fr}
  /* Facts (Locality/Status/Year/etc.) surface above the body text on mobile via `order` (grid
     items, not DOM reordering, so source order/accessibility is untouched) and lay out as a
     compact 2-column grid instead of one full-width row per fact. */
  .ghrc-project-about-grid{grid-template-columns:1fr}
  /* A row-grouped pair (blocks_compile() in app/lib/blocks.php -- two body-content blocks, e.g.
     video+text or text+text, merged into a 50/50, 25/75, or 75/25 side-by-side grid) squeezes
     each column to a sliver on a phone -- a video especially becomes too small to actually
     watch. Below this breakpoint every row-group collapses to one column, content stacking in
     its normal top-to-bottom order instead of side by side; needs !important since the grid's
     column split is one of three fixed inline styles (see html_sanitize()'s allow-list in
     app/lib/content.php), which otherwise beats a plain class rule. */
  .ghrc-row-group{grid-template-columns:1fr !important;gap:24px !important}
  .ghrc-project-about-text{border-right:none;border-bottom:1px solid var(--line);order:2}
  .ghrc-project-facts{order:1;display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:0 14px !important;padding-bottom:28px !important;align-items:start}
  /* Locality | Status | Launched sit on ONE row (three columns); no per-fact rules, one hairline under the row. */
  .ghrc-project-facts > div:not(.ghrc-phase-nav){border-bottom:none !important;padding-bottom:0 !important;gap:3px !important;min-width:0}
  .ghrc-project-facts > div:not(.ghrc-phase-nav) span:first-child{font-size:9.5px !important;letter-spacing:.08em !important}
  .ghrc-project-facts > div:not(.ghrc-phase-nav) span:last-child{font-size:14.5px !important;line-height:1.25;overflow-wrap:anywhere}
  /* The "Project phases" index in the sidebar duplicates the "Works by area" accordions below and, as a
     single grid cell, got squeezed into one narrow column -- hidden on phones. */
  .ghrc-phase-nav{display:none !important}
  .ghrc-project-other-grid{grid-template-columns:1fr}
  .ghrc-projects-grid{grid-template-columns:1fr}
  .ghrc-tender-row{grid-template-columns:1fr;gap:4px;padding:18px 0}
  /* .ghrc-project-album-col (above) deliberately lets a column shrink narrower than its
     strip's content -- needed so 3+ populated albums can squeeze onto one row on desktop.
     On mobile the section's side padding stays a fixed 40px (not reduced at any breakpoint),
     so a 2-tile strip at the desktop 130px tile size only has ~10-25px of spare width on
     common ~360-390px phones, and none at all under ~350px -- close enough to the edge that
     an ordinary phone (or a slightly narrower one, or the viewport a text-size/zoom
     accessibility setting produces) genuinely runs out of room and correctly overflows,
     triggering the arrow for what's really just a sliver of a photo peeking off-screen.
     Smaller tiles here give real breathing room instead of relying on being exactly at the
     edge of fitting: 2 tiles now need 226px, comfortably under any realistic phone width. */
  .ghrc-album-strip-tile{flex:0 0 108px}
  /* About page: side-by-side text/image column collapses to a single full-width column; 2+
     images swap from the stacked column to the swipeable carousel (see about.php / the
     .ghrc-about-images-carousel rule above) instead of a tall stack of separate blocks. */
  .ghrc-about-grid-2{grid-template-columns:1fr}
  .ghrc-about-images-stack{display:none !important}
  .ghrc-about-images-carousel{display:block}
}

/* Projects list: sticky year-jump rail. Desktop-only (see the 900px override below) — on
   narrow screens the year headings are already close enough together that a jump rail adds
   clutter more than it helps, so it's dropped entirely rather than squeezed in horizontally.
   !important is required: the rail's inline style="...display:flex..." otherwise wins over
   this plain class rule and the rail stays visible (and eats ~1/4 of the viewport width)
   right down to phone widths -- same "inline beats unqualified class" trap as elsewhere in
   this file. */
.ghrc-year-rail-link{font-size:13px;color:var(--grey)}
.ghrc-year-rail-link.active{font-size:17px;color:var(--teal-deep)}
@media (max-width: 900px){
  .ghrc-projects-layout{gap:0}
  .ghrc-year-rail{display:none !important}
}

/* Project phases -- Projects index timeline rows (projects/index.php) ---------------------- */
.ghrc-phase-line:hover .ghrc-phase-title{color:var(--teal-deep)}
.ghrc-phase-line:hover .ghrc-phase-arrow{opacity:1;transform:translateX(0)}
.ghrc-phase-line[hidden]{display:none !important}
.ghrc-phase-line[data-last] .ghrc-phase-vline{opacity:0}
@media (max-width: 700px){
  .ghrc-phase-line{grid-template-columns:12px 1fr !important}
  .ghrc-phase-status{grid-column:2 !important;padding-top:0 !important;padding-bottom:13px !important}
  .ghrc-phase-body{padding-bottom:6px !important}
  .ghrc-phase-arrow{display:none !important}
}

/* Project page: sidebar accordion (native <details>) ------------------------------------- */
.ghrc-phase-acc > summary::-webkit-details-marker{display:none}
.ghrc-phase-acc[open] .ghrc-phase-acc-chev{transform:rotate(180deg)}
.ghrc-phase-acc-link:hover{background:var(--sky-soft)}

/* Project page: "Works by area" section --------------------------------------------------- */
[data-phase-slide][hidden]{display:none !important}
.ghrc-phase-arrow-btn{cursor:pointer;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--ink);font:inherit;font-size:13px;padding:0}
.ghrc-phase-arrow-btn:hover{border-color:var(--teal);color:var(--teal-deep)}
.ghrc-ba-tile img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.ghrc-ba-tile:hover img{transform:scale(1.04)}
/* Scroll-to + brief highlight of the phase row reached from the sidebar or the Projects
   index (initPhaseAnchors(), site.js): ~2s light sky-blue background. */
.ghrc-phase-card{transition:background-color .6s ease,box-shadow .6s ease}
.ghrc-phase-card.is-phase-flash{background-color:var(--sky-soft);box-shadow:0 0 0 10px var(--sky-soft)}
@media (max-width: 1180px){
  .ghrc-ba-row{grid-template-columns:1fr !important;gap:12px !important}
}
@media (max-width: 1024px){
  .ghrc-works-cat{grid-template-columns:1fr !important;gap:22px !important}
  .ghrc-works-side{position:static !important}
}
@media (max-width: 640px){
  .ghrc-works{padding:48px 20px 8px !important}
  .ghrc-works-cat{padding:28px 0 20px !important}
}

/* Contact form live field validation (initContactValidation(), site.js) -- invalid-state
   colors match the existing server-side $error banner's palette on the same page. */
.ghrc-form-input.is-invalid{border-color:#e3a9a3 !important;background:#fdeceb !important}
.ghrc-field-error{font-size:12px;font-weight:700;color:#ffe2df;min-height:0;display:none}
.ghrc-field-error.is-visible{display:block}

/* ---- Content package: category filter pills, tags, "Keep reading", author box ---- */
.ghrc-cat-pill{display:inline-flex;align-items:center;padding:8px 15px;border-radius:999px;background:var(--surface);color:var(--ink);font-size:12.5px;font-weight:800;letter-spacing:.02em;line-height:1.2;transition:background .2s,color .2s}
.ghrc-cat-pill:hover{background:#dde7e6}
.ghrc-cat-pill.active{background:var(--ink);color:#fff}
.ghrc-art-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 14px}
.ghrc-art-cat{display:inline-flex;padding:4px 10px;border-radius:999px;background:var(--teal);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ghrc-art-readtime{font-size:12px;font-weight:700;color:var(--grey)}
.ghrc-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.ghrc-tag{font-size:12.5px;font-weight:700;color:var(--teal-deep);padding:4px 10px;border-radius:6px;background:var(--surface)}
.ghrc-tag:hover{background:#dde7e6}
.ghrc-author-box{display:flex;gap:14px;align-items:center;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.ghrc-author-photo{width:56px;height:56px;flex:none;border-radius:50%;overflow:hidden;background:var(--surface)}
.ghrc-author-photo img{width:100%;height:100%;object-fit:cover;display:block}
.ghrc-keep-reading{max-width:1360px;margin:0 auto;padding:8px 40px 72px}
.ghrc-keep-reading-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:start}
@media (max-width: 900px){ .ghrc-keep-reading-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 640px){ .ghrc-keep-reading{padding:8px 20px 56px} .ghrc-keep-reading-grid{grid-template-columns:1fr} }

/* ------------------------------------------------------------------------
 * Project detail, phone layout (app/views/projects/detail.php).
 * The page's side padding is a fixed 40-48px of inline style on every section, which leaves
 * only ~280px of a 375px phone for text, sliders and the phase list, and a project with ~30
 * sub-projects/phases (Marsamxett) ran ~25,000px tall. This pass: tighter gutters (!important
 * since the inline paddings otherwise win), the body's H2 sections become
 * tap-to-expand accordions (initCollapsibleSections(), site.js), the
 * before/after cards get compact, and the updates timeline drops its date-circle column.
 * Everything here is inside the 640px query or is neutral on desktop.
 * ---------------------------------------------------------------------- */
.ghrc-sec-chev{display:none}
.ghrc-upd-date{display:none}
.ghrc-sec-count{display:none}
@media (max-width: 640px){
  .ghrc-project-hero-pad{padding:0 0 26px !important}
  .ghrc-project-hero-inner{padding:0 20px !important}
  .ghrc-project-h1{font-size:30px !important;line-height:1.12}
  .ghrc-project-sec{padding-left:20px !important;padding-right:20px !important}
  section.ghrc-project-sec{padding-top:32px !important;padding-bottom:32px !important}
  .ghrc-project-about-text{padding:28px 20px 36px !important;gap:14px !important}
  .ghrc-project-about-text .ghrc-body-copy{font-size:16px !important;line-height:1.65 !important}
  .ghrc-project-facts{padding:24px 20px 12px !important}

  /* Accordion chevron (body H2 sections + Works-by-area categories). */
  .ghrc-sec-chev{display:inline-block;width:9px;height:9px;border-right:2px solid var(--grey);border-bottom:2px solid var(--grey);transform:rotate(45deg);margin:-4px 4px 0 2px;flex:none;transition:transform .2s}
  .ghrc-sec[open] > .ghrc-sec-summary .ghrc-sec-chev{transform:rotate(-135deg);margin-top:4px}

  /* Body H2 sections -> accordion (built by JS; without JS it all just stays expanded). */
  .ghrc-sec{border-top:1px solid var(--line)}
  .ghrc-sec:last-child{border-bottom:1px solid var(--line)}
  .ghrc-sec-summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 0;min-height:48px}
  .ghrc-sec-summary::-webkit-details-marker{display:none}
  .ghrc-sec-summary h2{flex:1;margin:0 !important;font-size:18px !important;line-height:1.25 !important}
  .ghrc-sec-count{display:inline-block;font-size:11px;font-weight:800;color:var(--teal-deep);background:var(--sky-soft);border-radius:999px;padding:3px 9px}
  .ghrc-sec-body{padding:2px 0 14px}

  /* Before/after cards: title tight above its slider, less air between cards. */
  .ghrc-body-copy .ghrc-row-group{gap:8px !important;margin:0 0 22px}
  .ghrc-body-copy .ghrc-row-group p{margin:0;font-size:14.5px;line-height:1.4}
  .ghrc-body-copy .ghrc-row-group .ghrc-ba{margin:0}
  .ghrc-body-copy .ghrc-ba-label{bottom:10px;font-size:9px;padding:5px 8px}
  .ghrc-body-copy .ghrc-ba-label-before{left:10px}
  .ghrc-body-copy .ghrc-ba-label-after{right:10px}
  .ghrc-body-copy > p,.ghrc-sec-body > p{margin:0 0 1em}

  /* Updates: drop the 64px date-circle column, show a plain date line, hairline between entries. */
  .ghrc-upd-grid{grid-template-columns:1fr !important;gap:0 !important}
  .ghrc-upd-datecol{display:none !important}
  .ghrc-upd-content{padding:18px 0 22px !important;border-top:1px solid var(--line);gap:10px !important}
  .ghrc-upd-datecol + .ghrc-upd-content:nth-child(2){border-top:none}
  .ghrc-upd-date{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-deep)}
  .ghrc-timeline-thumb{max-width:none}
  .ghrc-upd-content a > span:first-child{font-size:17px !important}
  .ghrc-upd-content a > span:nth-child(2){font-size:14px !important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .ghrc-upd-content .ghrc-timeline-thumb-grid > div{aspect-ratio:16/9 !important}
}

/* "Works by area" categories as accordions on a phone (initWorksAccordions(), site.js). Outside
   the 640px query these elements don't exist, so desktop is untouched. */
@media (max-width: 640px){
  .ghrc-works-cat:has(> .ghrc-works-acc){padding:0 !important}
  .ghrc-works-acc-summary{list-style:none;display:flex;align-items:center;gap:12px;cursor:pointer;padding:18px 0;min-height:56px}
  .ghrc-works-acc-summary::-webkit-details-marker{display:none}
  .ghrc-works-acc-head{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .ghrc-works-acc-head h3{font-size:18px !important;line-height:1.25 !important}
  .ghrc-works-acc[open] > .ghrc-works-acc-summary .ghrc-sec-chev{transform:rotate(-135deg);margin-top:4px}
  .ghrc-works-acc-body{display:flex;flex-direction:column;gap:6px;padding:0 0 12px}
  .ghrc-works-acc-body .ghrc-works-side{gap:0 !important}
  .ghrc-works-acc-body .ghrc-works-side p{font-size:13.5px !important;margin:0 0 10px !important}
  /* Phase row: tighter, year and title above the photo pair. */
  .ghrc-works-acc-body .ghrc-phase-card{gap:12px !important;padding:16px 0 !important}
}
