/*
Theme Name: Form & Space
Theme URI: https://www.formandspace.com.sg
Author: Form & Space
Description: Custom theme for Form & Space, a Singapore interior design-and-build studio. Built from the client's design specification (README.md / CONTENT-MODEL.md).
Version: 1.0.0
Requires PHP: 8.1
Text Domain: form-space
*/

/* ===================================================================
   1. Font faces (self-hosted, subset to Latin, WOFF2)
   =================================================================== */
@font-face{font-family:"Gotham";src:url("fonts/Gotham-Thin.woff2") format("woff2");font-weight:100;font-style:normal;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-XLight.woff2") format("woff2");font-weight:200;font-style:normal;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-LightItalic.woff2") format("woff2");font-weight:300;font-style:italic;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-Book.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-BookItalic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-MediumItalic.woff2") format("woff2");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-Bold.woff2") format("woff2");font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-BoldItalic.woff2") format("woff2");font-weight:600 700;font-style:italic;font-display:swap}
@font-face{font-family:"Gotham";src:url("fonts/Gotham-Black.woff2") format("woff2");font-weight:800 900;font-style:normal;font-display:swap}

/* ===================================================================
   2. Design tokens
   =================================================================== */
:root{
  --ground:#faf9f6;
  --ink:#141412;
  --accent:#8a7460;
  --img-placeholder:#eeece6;
  --card-white:#fff;
  --hairline:rgba(20,20,18,0.10);
  --border:rgba(20,20,18,0.22);
  --border-soft:rgba(20,20,18,0.18);
  --selection:#e6e1d6;
  --scrim:rgba(20,20,18,0.55);
  --radius-frame:18px;
  --radius-pill:100px;
  --container:1240px;
  --gutter:28px;
  --shadow-rest:0 2px 6px rgba(20,20,18,0.05),0 12px 34px rgba(20,20,18,0.10);
  --shadow-hover:0 6px 16px rgba(20,20,18,0.07),0 28px 60px rgba(20,20,18,0.18);
  --ease-reveal:cubic-bezier(.16,.84,.32,1);
  --ease-hover:cubic-bezier(.2,.7,.2,1);
}

/* ===================================================================
   3. Reset & base
   =================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
html,body{margin:0;padding:0;background:var(--ground);color:var(--ink)}
body{font-family:"Gotham","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:var(--ink);text-decoration:none}
button{font-family:inherit;cursor:pointer}
button,a,[role="button"]{touch-action:manipulation}
input,textarea,select{font-family:inherit;font-size:16px}
h1,h2,h3,p{margin:0}
ul{margin:0;padding:0;list-style:none}
::selection{background:var(--selection)}

/* Visible focus for keyboard users everywhere; the design's own
   focus states (form field underline) apply on top of this. */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--ink);outline-offset:2px;
}

.fs-container{max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}
.fs-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:1000;background:var(--ink);color:var(--ground);padding:12px 20px;border-radius:0 0 8px 0}
.skip-link:focus{left:0}

@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.fs-page-enter{animation:fadeUp .5s ease both}

/* ===================================================================
   4. Type scale
   =================================================================== */
.eyebrow{font-size:11px;letter-spacing:0.3em;text-transform:uppercase;opacity:0.55;margin-bottom:26px}
.h1-hero{margin:0;font-size:clamp(40px,4.6vw,68px);line-height:1.02;letter-spacing:-0.035em;font-weight:400;text-wrap:balance}
.h1-page{margin:0;font-size:clamp(36px,4.2vw,62px);line-height:1.04;letter-spacing:-0.035em;font-weight:400;text-wrap:balance}
.h1-project{margin:0;font-size:clamp(34px,3.8vw,56px);line-height:1.05;letter-spacing:-0.035em;font-weight:400}
.h2-large{margin:0;font-size:clamp(28px,3vw,44px);line-height:1.1;letter-spacing:-0.03em;font-weight:400;text-wrap:balance}
.h2-section{margin:0;font-size:clamp(26px,2.6vw,38px);letter-spacing:-0.03em;font-weight:400}
.stat-value{font-size:clamp(34px,4.2vw,66px);letter-spacing:-0.04em;font-weight:400;text-wrap:balance}
.lead{font-size:17px;line-height:1.62;opacity:0.62}

/* Inline links inside body copy (the global a{} rule gives them no visual
   difference from surrounding text at all) — with no underline and no
   hover on touch devices, a visitor has no way to tell these words are
   tappable until they accidentally tap one. */
.lead a:not(.link-arrow):not(.link-arrow-ink):not(.btn),
.project-brief-body a:not(.link-arrow):not(.link-arrow-ink):not(.btn),
.studio-intro-body a:not(.link-arrow):not(.link-arrow-ink):not(.btn),
.about-body-text a:not(.link-arrow):not(.link-arrow-ink):not(.btn),
.service-single-body a:not(.link-arrow):not(.link-arrow-ink):not(.btn),
.form-fineprint a:not(.link-arrow):not(.link-arrow-ink):not(.btn),
.pin-caption a:not(.link-arrow):not(.link-arrow-ink):not(.btn){
	text-decoration:underline;text-decoration-color:currentColor;text-decoration-thickness:1px;text-underline-offset:3px;opacity:0.85;transition:opacity .25s ease;
}
.body-text{font-size:16.5px;line-height:1.68;opacity:0.66}
.card-body{font-size:15px;line-height:1.65;opacity:0.6}
.caption-text{font-size:13px;letter-spacing:0.04em}
.wordmark{font-size:13px;letter-spacing:0.34em;text-transform:uppercase;font-weight:500}
p.text-pretty{text-wrap:pretty}

/* ===================================================================
   5. Buttons & pills
   =================================================================== */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 26px;border-radius:var(--radius-pill);font-size:13.5px;letter-spacing:0.04em;transition:background .4s ease,color .4s ease,border-color .4s ease,transform .12s ease;border:1px solid transparent;cursor:pointer}
.btn:active{transform:scale(0.97)}
.btn-dark{background:var(--ink);color:var(--ground)}
.btn-outline{border-color:var(--border);color:var(--ink);background:transparent}
.btn-full{width:100%}

.link-arrow{position:relative;cursor:pointer;font-size:13.5px;letter-spacing:0.04em;color:var(--accent);display:inline-flex;align-items:center;gap:7px;width:fit-content;transition:gap .34s var(--ease-reveal)}
.link-arrow::before{content:'';position:absolute;top:-14px;left:-8px;right:-8px;bottom:-14px}
.link-arrow-ink{color:var(--ink);opacity:0.6}
/* These arrow-nudge links (and .back-link, below) only animate on :hover,
   which touch devices never trigger — so on mobile they'd sit at their
   dim resting opacity forever with no reaction to a tap at all. */
@media (hover: none) {
	.link-arrow:active{gap:13px}
	.link-arrow-ink:active{opacity:1}
}

/* ===================================================================
   6. Header / nav
   =================================================================== */
.fs-header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(250,249,246,0);backdrop-filter:saturate(160%) blur(18px);-webkit-backdrop-filter:saturate(160%) blur(18px);border-bottom:1px solid rgba(20,20,18,0);transition:background .45s ease,border-color .45s ease}
.fs-header.is-scrolled{background:rgba(250,249,246,0.78);border-bottom-color:rgba(20,20,18,0.10)}
.fs-header-inner{max-width:var(--container);margin:0 auto;padding:0 var(--gutter);height:56px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.fs-logo{display:flex;align-items:center;gap:11px;white-space:nowrap}
.fs-logo img{height:22px;width:auto}
.fs-nav{display:flex;align-items:center;gap:34px;font-size:12.5px;letter-spacing:0.06em}
.fs-nav-links{display:flex;align-items:center;gap:34px}
.fs-nav-link{opacity:0.72;transition:opacity .34s ease}
.fs-nav-link.current{opacity:1}
.fs-nav-menu{display:flex;align-items:center;gap:34px;list-style:none;margin:0;padding:0}
.fs-nav-menu li{display:flex}
.fs-nav-menu a{opacity:0.72;transition:opacity .34s ease}
.fs-nav-menu .current-menu-item>a,.fs-nav-menu .current_page_item>a{opacity:1}
.fs-enquire-btn{padding:7px 16px;border:1px solid var(--border);border-radius:var(--radius-pill);transition:background .34s ease,color .34s ease,border-color .34s ease,transform .12s ease}
.fs-enquire-btn:active{transform:scale(0.96)}
.fs-nav-toggle{display:none}
.fs-nav-toggle-bars{display:flex;flex-direction:column;justify-content:space-between;width:18px;height:14px}
.fs-nav-toggle-bar{display:block;width:100%;height:1.4px;border-radius:1px;background:currentColor;transform-origin:center;transition:transform .38s var(--ease-hover),opacity .25s ease}
@media (prefers-reduced-motion: reduce){ .fs-nav-toggle-bar{transition:opacity .2s ease} }
.fs-header.is-nav-open .fs-nav-toggle-bar:nth-child(1){transform:translateY(6.3px) rotate(45deg)}
.fs-header.is-nav-open .fs-nav-toggle-bar:nth-child(2){opacity:0;transform:scaleX(0)}
.fs-header.is-nav-open .fs-nav-toggle-bar:nth-child(3){transform:translateY(-6.3px) rotate(-45deg)}

/* ===================================================================
   7. Hero
   =================================================================== */
.hero-section{padding:56px 0 0}
.hero-grid{display:grid;grid-template-columns:0.86fr 1.14fr;gap:0;align-items:stretch;min-height:calc(100vh - 56px)}
.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:80px 64px 80px 0}
.hero-copy .eyebrow{margin-bottom:34px;opacity:0.45}
.hero-copy p{margin-top:30px;max-width:38ch}
.hero-actions{display:flex;gap:12px;margin-top:44px;flex-wrap:wrap}
.hero-media{position:relative;overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder)}
.hero-media img{width:100%;height:100%;object-fit:cover;transform:scale(1.06)}
.fs-img-placeholder{width:100%;height:100%;background:var(--img-placeholder);min-height:200px}

/* ===================================================================
   8. Selected work (home)
   =================================================================== */
.selected-work{max-width:var(--container);margin:0 auto;padding:110px var(--gutter) 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding-bottom:26px;border-bottom:1px solid var(--hairline)}
.tile-grid{display:grid;grid-template-columns:1fr;gap:20px;margin-top:20px}
.tile-row-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.tile-row-2 .tile:only-child{grid-column:1 / -1;aspect-ratio:21/9}
.tile{cursor:pointer;position:relative;overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);transition:scale .5s var(--ease-hover),box-shadow .5s var(--ease-hover);display:block}
/* Touch devices have no hover state, so tapping a tile would jump
   straight to the linked page with no visual feedback at all. Give
   touch a quick press-in pulse instead, scoped to hover:none so it
   doesn't double up with the hover zoom on devices that have a mouse. */
@media (hover: none) {
	.tile{transition:scale .1s ease,box-shadow .1s ease}
	.tile:active{scale:0.88}
}
.tile img{width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.tile-21-9{aspect-ratio:21/9}
.tile-4-3{aspect-ratio:4/3}
.tile-static{cursor:default}

.fs-slideshow{cursor:default}
.fs-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.1s ease}
.fs-slide.is-active{opacity:1;z-index:1}
.fs-slide img{width:100%;height:100%;object-fit:cover}
.fs-slideshow-dots{position:absolute;left:0;right:0;bottom:18px;display:flex;justify-content:center;gap:9px;z-index:2}
.fs-slideshow-dot{width:7px;height:7px;padding:0;border-radius:50%;border:1.5px solid rgba(250,249,246,0.8);background:rgba(250,249,246,0.35);cursor:pointer;transition:background .3s ease,transform .3s ease}
.fs-slideshow-dot.is-active{background:#faf9f6;transform:scale(1.2)}
.fs-slideshow-dot:not(.is-active):active{background:rgba(250,249,246,0.7);transform:scale(1.1)}

/* ===================================================================
   9. Studio intro (home)
   =================================================================== */
.studio-intro{max-width:var(--container);margin:0 auto;padding:120px var(--gutter) 0}
.studio-intro-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:80px;align-items:start}
.studio-intro-body{display:grid;gap:26px;max-width:62ch}
.studio-intro-body p{margin:0}
.studio-intro-body strong{font-weight:500;opacity:0.92}

/* ===================================================================
   10. Process
   =================================================================== */
.process-section{max-width:var(--container);margin:0 auto;padding:120px var(--gutter) 0}
.process-label{font-size:11px;letter-spacing:0.3em;text-transform:uppercase;opacity:0.55;padding-bottom:26px;border-bottom:1px solid var(--hairline)}
.process-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:var(--hairline);margin-top:0}
.process-cell{background:var(--ground);padding:34px 26px 40px}
.process-num{font-size:12px;opacity:0.4;margin-bottom:18px}
.process-title{font-size:18px;letter-spacing:-0.01em;margin-bottom:10px}
.process-body{font-size:14px;line-height:1.6;opacity:0.6}

/* ===================================================================
   11. Pinned image
   =================================================================== */
.pin-section{position:relative;height:300vh;margin-top:130px}
.pin-sticky{position:sticky;top:0;height:100vh;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pin-frame{position:relative;width:100%;height:100%;overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);will-change:width,height,border-radius}
.pin-frame img{width:100%;height:100%;object-fit:cover;transform:scale(1.08);will-change:transform}
.pin-scrim{position:absolute;inset:0;background:linear-gradient(to top,var(--scrim),rgba(20,20,18,0) 55%);opacity:0}
.pin-caption{position:absolute;left:0;right:0;bottom:0;padding:0 8vw 9vh;color:var(--ground);opacity:0}
.pin-caption .eyebrow{opacity:0.7;color:var(--ground);margin-bottom:18px}
.pin-headline{font-size:clamp(26px,3.4vw,50px);line-height:1.1;letter-spacing:-0.03em;max-width:18ch;text-wrap:balance}
@media (max-width:768px){
  .pin-section{height:180vh}
  .pin-sticky{height:62vh}
}

/* ===================================================================
   12. Stats
   =================================================================== */
.stats-section{max-width:var(--container);margin:0 auto;padding:140px var(--gutter)}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.stat-cell{padding:0 40px;text-align:center;position:relative}
.stat-cell:first-child{padding-left:0}
.stat-cell:last-child{padding-right:0}
.stat-cell::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--hairline)}
.stat-cell:first-child::before{display:none}
.stat-rule{width:0;height:2px;background:var(--accent);margin:0 auto 20px;transition:width .9s var(--ease-reveal) .25s}
[data-reveal-done] .stat-rule{width:28px}
.stat-value{font-variant-numeric:tabular-nums}
.stat-label{font-size:13.5px;opacity:0.55;margin-top:10px}

/* ===================================================================
   13. Footer
   =================================================================== */
.fs-footer{padding:130px var(--gutter) 46px;max-width:var(--container);margin:0 auto}
.fs-footer-inner{padding-top:34px;border-top:1px solid var(--hairline);display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:50px;align-items:start}
.fs-footer-wordmark{font-size:13.5px;letter-spacing:0.08em;text-transform:uppercase;font-weight:500;margin-bottom:14px}
.fs-footer-address{font-size:13.5px;line-height:1.75;opacity:0.55;max-width:30ch}
.fs-footer-col{display:grid;gap:11px;font-size:13.5px}
.fs-footer-col a{opacity:0.6;transition:opacity .34s ease}
@media (hover: none) {
	.fs-footer-col a:active{opacity:1;color:var(--ink)}
}
.fs-footer-social{display:flex;gap:14px;margin-top:4px}
.fs-social-link{display:inline-flex;opacity:0.6;transition:opacity .34s ease;color:var(--ink)}
.fs-social-link-inert{cursor:default;opacity:0.3}
@media (hover: none) {
	a.fs-social-link:active{opacity:1}
}

/* ===================================================================
   Cookie consent (CookieAdmin plugin) — hide the floating reconsent
   icon entirely, per request. Note: this removes visitors' visible way
   to reopen their cookie preferences after their first choice.
   =================================================================== */
button.cookieadmin_re_consent{display:none !important}
.fs-footer-copyright{margin-top:46px;font-size:11.5px;opacity:0.4}

/* ===================================================================
   14. Portfolio archive
   =================================================================== */
.portfolio-header{max-width:var(--container);margin:0 auto;padding:96px var(--gutter) 0}
.portfolio-header .h1-page{max-width:20ch}
.filter-bar{max-width:var(--container);margin:0 auto;padding:44px var(--gutter) 0}
.filter-bar-inner{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding-bottom:26px;border-bottom:1px solid var(--hairline)}
.filter-pill{padding:8px 18px;border-radius:var(--radius-pill);font-size:12.5px;letter-spacing:0.04em;border:1px solid var(--border-soft);background:transparent;color:rgba(20,20,18,0.7);transition:background .3s ease,color .3s ease,border-color .3s ease,transform .1s ease;min-height:44px;display:inline-flex;align-items:center}
.filter-pill.is-active{border-color:var(--ink);background:var(--ink);color:var(--ground)}
/* Previously had a transition declared but nothing to transition to —
   clicking a filter gave no feedback at all before the page changed. */
.filter-pill:active{transform:scale(0.96)}
.filter-count{margin-left:auto;align-self:center;flex:none;white-space:nowrap;font-size:12.5px;opacity:0.45}
.portfolio-grid-section{max-width:var(--container);margin:0 auto;padding:22px var(--gutter) 0 var(--gutter)}
.portfolio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;padding-bottom:120px}
.portfolio-tile-wide{grid-column:1 / -1}
.portfolio-tile-caption{display:flex;justify-content:space-between;gap:20px;padding-top:14px;font-size:13.5px}
.portfolio-tile-meta{opacity:0.5}
.portfolio-empty{padding:40px 0 120px;opacity:0.6;font-size:15px}

/* ===================================================================
   15. Project detail
   =================================================================== */
.project-section{max-width:var(--container);margin:0 auto;padding:80px var(--gutter) 0}
.back-link{cursor:pointer;font-size:13px;opacity:0.5;margin-bottom:34px;display:inline-flex;align-items:center;gap:7px;transition:opacity .34s ease,gap .34s var(--ease-reveal)}
@media (hover: none) {
	.back-link:active{opacity:1;gap:13px;color:var(--ink)}
}
.project-title-row{display:grid;grid-template-columns:1.1fr 0.9fr;gap:70px;align-items:end;padding-bottom:38px;border-bottom:1px solid var(--hairline)}
.project-meta-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:28px;font-size:13.5px}
.project-meta-pair dt{opacity:0.45;margin-bottom:7px;font-weight:400}
.project-meta-pair dd{margin:0}
.project-hero-frame{overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);aspect-ratio:16/9;margin-top:34px}
.project-hero-frame img{width:100%;height:100%;object-fit:cover}
.project-brief{display:grid;grid-template-columns:1fr 1.25fr;gap:80px}
.project-brief .eyebrow{margin-bottom:0}
.project-brief-body{font-size:17px;line-height:1.65;opacity:0.68;max-width:60ch}
.project-brief-body p{margin:0 0 1em}
.project-brief-body p:last-child{margin-bottom:0}
.project-gallery{display:flex;flex-direction:column;gap:60px;padding-top:80px}
.project-gallery-row{display:flex;align-items:center;gap:60px;margin:0}
.project-gallery-row:nth-child(even){flex-direction:row-reverse}
.project-gallery-photo{flex:0 1 380px;min-width:0;max-width:380px}
.project-gallery-frame{display:block;width:100%;overflow:hidden;border:none;padding:0;cursor:pointer;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);aspect-ratio:4/5;transition:scale .5s var(--ease-hover),box-shadow .5s var(--ease-hover)}
.project-gallery-frame img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
@media (hover: none) {
	.project-gallery-frame{transition:scale .1s ease,box-shadow .1s ease}
	.project-gallery-frame:active{scale:0.88}
}
.project-gallery-caption{margin-top:12px;font-size:13.5px;line-height:1.5;opacity:0.6}
.project-gallery-text{flex:1 1 0;min-width:0;font-size:17px;line-height:1.65;opacity:0.68;max-width:42ch}
.project-gallery-text h1,.project-gallery-text h2,.project-gallery-text h3,.project-gallery-text h4{font-size:22px;line-height:1.3;opacity:1;margin:0 0 14px;font-weight:600}
.project-gallery-text p{margin:0 0 1em}
.project-gallery-text p:last-child{margin-bottom:0}

.fs-lightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:40px;background:rgba(10,10,10,0.92);opacity:0;visibility:hidden;transition:opacity .3s ease}
.fs-lightbox.is-open{opacity:1;visibility:visible}
.fs-lightbox-img{max-width:100%;max-height:82vh;object-fit:contain;border-radius:8px;box-shadow:0 30px 80px rgba(0,0,0,0.5);transform:scale(0.97);transition:transform .3s ease}
.fs-lightbox.is-open .fs-lightbox-img{transform:scale(1)}
.fs-lightbox-caption{position:absolute;left:0;right:0;bottom:24px;text-align:center;color:rgba(255,255,255,0.75);font-size:14px;padding:0 40px}
.fs-lightbox-close{position:absolute;top:24px;right:28px;width:44px;height:44px;border:none;background:rgba(255,255,255,0.08);color:#fff;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s ease,transform .1s ease}
.fs-lightbox-close:active{background:rgba(255,255,255,0.24);transform:scale(0.92)}
.project-cta{margin-top:70px;padding-top:70px;border-top:1px solid var(--hairline);display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.project-cta-text{font-size:clamp(22px,2.2vw,32px);letter-spacing:-0.025em}

/* ===================================================================
   16. Services
   =================================================================== */
.services-header{max-width:var(--container);margin:0 auto;padding:96px var(--gutter) 0}
.services-header .h1-page{max-width:22ch}
.services-header p{margin-top:28px;max-width:56ch}
.services-grid-section{max-width:var(--container);margin:0 auto;padding:70px var(--gutter) 0}
.services-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--hairline);border-top:1px solid var(--hairline)}
.service-card{background:var(--ground);padding:40px 34px 46px;transition:background .5s ease,scale .1s ease;display:block}
@media (hover: none) {
	.service-card:active{background:#f4f2ec;scale:0.98}
}
.service-card-title{font-size:20px;letter-spacing:-0.015em;margin-bottom:12px;color:var(--ink)}
.service-card-body{font-size:15px;line-height:1.65;opacity:0.6;max-width:46ch}
.service-card-fill{background:var(--ground)}
.services-closing{max-width:var(--container);margin:0 auto;padding:100px var(--gutter) 0}
.services-closing-frame{overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);aspect-ratio:24/9}
.services-closing-frame img{width:100%;height:100%;object-fit:cover}

/* single service page */
.service-single-hero{overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);aspect-ratio:21/9;margin-top:34px}
.service-single-hero img{width:100%;height:100%;object-fit:cover}
.service-single-hero.is-portrait{aspect-ratio:4/5;max-width:480px;margin-left:auto;margin-right:auto}
.service-single-content{display:grid;grid-template-columns:1fr 1.25fr;gap:80px;padding-top:60px}
.service-single-content .eyebrow{margin-bottom:0}
.service-single-body{font-size:17px;line-height:1.66;opacity:0.7;max-width:62ch}
.service-single-body p{margin:0 0 1.2em}

/* ===================================================================
   17. Studio / about
   =================================================================== */
.about-header{max-width:var(--container);margin:0 auto;padding:96px var(--gutter) 0}
.about-header .h1-page{max-width:24ch}
.about-attribution{font-size:13px;opacity:0.45;margin-top:22px}
.about-hero{max-width:var(--container);margin:0 auto;padding:70px var(--gutter) 0}
.about-hero-frame{overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);aspect-ratio:16/7}
.about-hero-frame img{width:100%;height:100%;object-fit:cover}
.about-body-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:80px;padding:80px 0 0;max-width:var(--container);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.about-body-text{display:grid;gap:24px;font-size:17px;line-height:1.66;opacity:0.68;max-width:62ch}
.about-body-text p{margin:0}
.factory-block{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-top:80px;max-width:var(--container);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter);padding-bottom:120px}
.factory-image-frame{overflow:hidden;border-radius:var(--radius-frame);box-shadow:var(--shadow-rest);background:var(--img-placeholder);aspect-ratio:1/1}
.factory-image-frame img{width:100%;height:100%;object-fit:cover}
.factory-copy{display:flex;flex-direction:column;justify-content:center;padding:0 20px}
.factory-heading{font-size:clamp(24px,2.4vw,34px);letter-spacing:-0.025em;line-height:1.2}
.factory-body{margin-top:16px;font-size:16px;line-height:1.65;opacity:0.62;max-width:44ch}

/* ===================================================================
   18. Contact
   =================================================================== */
.contact-section{max-width:var(--container);margin:0 auto;padding:96px var(--gutter) 120px}
.contact-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:90px;align-items:start;max-width:var(--container);margin:0 auto}
.contact-details{display:grid;gap:26px;margin-top:52px;font-size:15px;line-height:1.6}
.contact-details dt{opacity:0.45;font-size:12.5px;margin-bottom:7px}
.contact-details dd{margin:0;opacity:0.85}
.whatsapp-btn{display:inline-flex;align-items:center;gap:10px;padding:12px 22px;border:1px solid var(--border);border-radius:var(--radius-pill);font-size:13.5px;width:fit-content;transition:background .34s ease,color .34s ease,border-color .34s ease,transform .12s ease}
.whatsapp-btn:active{transform:scale(0.97)}
.whatsapp-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);display:block}

.contact-form-card{border:1px solid rgba(20,20,18,0.12);padding:40px 36px 44px;background:var(--card-white)}
.contact-form-card .fs-form-placeholder{font-size:14px;line-height:1.6;opacity:0.6;padding:40px 0}

/* Fluent Forms / WPForms style override so the plugin's own markup reads as
   part of this design without needing a page builder. */
.contact-form-card form{display:grid;gap:26px}
.contact-form-card label,.contact-form-card .ff-el-input--label label{font-size:12px;letter-spacing:0.06em;opacity:0.5;text-transform:uppercase;display:block;margin-bottom:9px}
.contact-form-card input[type=text],
.contact-form-card input[type=tel],
.contact-form-card input[type=email],
.contact-form-card input[type=date],
.contact-form-card select,
.contact-form-card textarea{
  border:none;border-bottom:1px solid rgba(20,20,18,0.2);background:transparent;padding:9px 0;font-size:16px;color:var(--ink);outline:none;width:100%;border-radius:0;
}
.contact-form-card textarea{resize:vertical}
.contact-form-card input:focus,.contact-form-card select:focus,.contact-form-card textarea:focus{border-bottom-color:var(--ink)}
/* File upload (Floor Plan) -- Fluent Forms wraps the raw input in its own
   dropzone markup that varies by version, so this targets the plain input
   as a safe baseline; revisit once the live field's actual markup is
   inspectable. */
.contact-form-card input[type=file]{
  width:100%;font-size:14px;color:var(--ink);opacity:0.75;padding:10px 0;
}
.contact-form-card .ff-el-form-control.ff_upload_wrapper,
.contact-form-card [class*=upload]{
  border:1px dashed rgba(20,20,18,0.25);border-radius:8px;padding:16px;background:rgba(20,20,18,0.02);
}
.contact-form-card button[type=submit],.contact-form-card input[type=submit],.contact-form-card .ff-btn-submit{
  cursor:pointer;margin-top:6px;padding:14px 28px !important;background:var(--ink) !important;color:var(--ground) !important;border:none !important;border-radius:var(--radius-pill) !important;font-size:13.5px !important;text-align:center;letter-spacing:0.04em;transition:background .4s ease,transform .12s ease;width:100%;height:auto !important;
}
.contact-form-card button[type=submit]:active,.contact-form-card .ff-btn-submit:active{transform:scale(0.97)}
/* Fluent Forms ships its own error styling (a saturated red box) with
   nothing here to override it — the exact moment a visitor mistypes
   something is when the plugin's un-styled default would suddenly show
   through and break the custom feel. Keep it in the same understated,
   underline-driven language as the rest of the form. */
.contact-form-card .ff-el-is-error input,
.contact-form-card .ff-el-is-error select,
.contact-form-card .ff-el-is-error textarea{border-bottom-color:#b3261e}
.contact-form-card .error_message,
.contact-form-card .ff-el-is-error .ff-el-help-text{color:#b3261e;font-size:12.5px;margin-top:6px;opacity:0.9}
.form-fineprint{font-size:12px;opacity:0.4;line-height:1.5}
.form-success{min-height:420px;display:flex;flex-direction:column;justify-content:center;animation:fadeIn .4s ease both}
.form-success p{margin:14px 0 0;font-size:15.5px;line-height:1.6;opacity:0.6;max-width:36ch}

/* ===================================================================
   19. Breadcrumbs
   =================================================================== */
.fs-breadcrumbs{max-width:var(--container);margin:0 auto;padding:20px var(--gutter) 0;font-size:12.5px;opacity:0.5}
.fs-breadcrumbs a{opacity:1}

/* ===================================================================
   20. Reveal on scroll — visible by default, JS only hides then reveals
   =================================================================== */
/* translate, not transform:translateY() — a hover/active effect on the
   same element (e.g. .tile) sets scale via the separate `scale`
   property below, so the two compose instead of one clobbering the
   other through CSS specificity on a shared `transform`. */
[data-reveal]{opacity:1;translate:none;filter:none;transition:opacity .85s var(--ease-reveal),translate .85s var(--ease-reveal),filter .85s var(--ease-reveal)}
.js-reveal-ready [data-reveal]{opacity:0;translate:0 22px}
.js-reveal-ready [data-reveal].is-visible{opacity:1;translate:0 0}
@media (prefers-reduced-motion: reduce){
  .js-reveal-ready [data-reveal]{opacity:1!important;translate:none!important;filter:none!important}
}
/* .tile and .service-card carry [data-reveal] on themselves (not on a
   wrapping parent like the project-gallery photos do), so the rule above
   and their own hover-scale transition both set the `transition` shorthand
   on the same element — whichever is later in the stylesheet wins outright
   and wipes the other out. [data-reveal] came later, so scale/box-shadow
   had no transition at all and the hover zoom snapped instantly instead of
   easing. Redeclare the full combined property list here so both animate. */
.tile[data-reveal],.service-card[data-reveal]{transition:opacity .85s var(--ease-reveal),translate .85s var(--ease-reveal),filter .85s var(--ease-reveal),scale .5s var(--ease-hover),box-shadow .5s var(--ease-hover)}
@media (hover: none){
  .tile[data-reveal],.service-card[data-reveal]{transition:opacity .85s var(--ease-reveal),translate .85s var(--ease-reveal),filter .85s var(--ease-reveal),scale .1s ease,box-shadow .1s ease}
}

/* ===================================================================
   20b. Scroll-tied word reveal — trial (Apple-style "reading line")
   Each word sits dim until it crosses a line in the lower viewport,
   then brightens to full ink. Fully readable without JS: every word
   is plain full-color text until .js-rv-ready confirms the scroll
   handler is live, matching the reveal-on-scroll pattern above.
   =================================================================== */
.rv-text{opacity:1}
.rv-word{color:var(--ink);transition:color .5s linear}
.js-rv-ready .rv-word{color:rgba(20,20,18,0.26)}
@media (prefers-reduced-motion: reduce){
  .js-rv-ready .rv-word{color:var(--ink)!important;transition:none!important}
}

/* ===================================================================
   21. Responsive
   =================================================================== */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:8px var(--gutter) 48px}
  .hero-media{height:60vh}
  .portfolio-grid{grid-template-columns:1fr}
  .process-grid{grid-template-columns:repeat(2,1fr)}
  .studio-intro-grid,.about-body-grid,.project-brief,.contact-grid,.service-single-content{grid-template-columns:1fr;gap:40px}
  .factory-block{grid-template-columns:1fr}
  .factory-copy{padding:24px 0 0}
  .project-title-row{grid-template-columns:1fr;gap:24px;align-items:start}
  .services-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr 1fr;row-gap:56px}
  .stat-cell::before{display:none}
}

@media (max-width:768px){
  :root{--gutter:20px}
  .fs-nav-links{
    display:flex;position:absolute;top:56px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;
    padding:8px var(--gutter) 20px;border-bottom:1px solid var(--hairline);
    background:var(--ground);
    opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(0.99);transform-origin:top center;
    transition:opacity .32s var(--ease-hover),transform .32s var(--ease-hover),visibility 0s linear .32s;
  }
  .fs-header.is-nav-open .fs-nav-links{
    opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);
    transition:opacity .32s var(--ease-hover),transform .32s var(--ease-hover),visibility 0s linear 0s;
  }
  @media (prefers-reduced-motion: reduce){
    .fs-nav-links{transform:none;transition:opacity .2s ease,visibility 0s linear .2s}
    .fs-header.is-nav-open .fs-nav-links{transform:none;transition:opacity .2s ease}
  }
  .fs-header.is-nav-open .fs-nav-menu{flex-direction:column;align-items:stretch;gap:0;width:100%}
  .fs-header.is-nav-open .fs-nav-menu li{width:100%}
  .fs-header.is-nav-open .fs-nav-menu a,.fs-header.is-nav-open .fs-nav-link{padding:12px 0;width:100%;opacity:1;display:block}
  .fs-header.is-nav-open .fs-enquire-btn{margin-top:8px;text-align:center}
  .pin-frame img{transform:none}
  .hero-media img[data-parallax]{transform:none}
  /* A dedicated mobile photo is a portrait crop, not a wide letterbox —
     switch these frames to match it instead of still forcing object-fit
     to crop a portrait image down into the desktop's wide aspect-ratio. */
  .project-hero-frame.has-mobile-crop,.about-hero-frame.has-mobile-crop,.service-single-hero.has-mobile-crop{aspect-ratio:4/5}
  .fs-nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:none;border:none;color:var(--ink)}
  .hero-section,.selected-work,.studio-intro,.process-section,.stats-section{padding-top:64px}
  .fs-footer,.portfolio-header,.services-header,.about-header,.contact-section,.project-section{padding-top:72px}
  .tile-row-2{grid-template-columns:1fr}
  .process-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr;row-gap:44px}
  .stat-cell{padding:0 !important}
  .stat-cell::before{display:none}
  .fs-footer-inner{grid-template-columns:1fr;gap:34px}
  .project-gallery{gap:48px}
  .project-gallery-row,.project-gallery-row:nth-child(even){flex-direction:column;gap:22px}
  .project-gallery-photo,.project-gallery-text{max-width:none;flex:1 1 auto}
  .project-gallery-text{font-size:16px}
  .fs-lightbox-close{top:14px;right:14px}
  .contact-form-card{padding:28px 22px 32px}
  .fs-nav-link,.filter-pill{min-height:44px;display:inline-flex;align-items:center}
}

/* ===================================================================
   14. Cookie consent banner (CookieAdmin plugin) — keep it compact
   On short mobile viewports, the plugin's own 90%-wide mobile style
   combined with its long default notice paragraph let the card grow
   tall enough to cover page content instead of staying a small corner
   notice. Cap its footprint and let the text scroll internally.
   =================================================================== */
.cookieadmin_law_container{max-width:340px !important}
.cookieadmin_consent_inside{max-height:65vh;overflow-y:auto;padding:14px !important}
.cookieadmin_notice_con{font-size:13px !important;line-height:1.5}
#cookieadmin_notice_title{font-size:13.5px !important}
.cookieadmin_btn{font-size:12px !important;padding:7px 12px !important}
.cookieadmin-poweredby{font-size:10px !important}
@media (max-width:767px){
  .cookieadmin_law_container{left:12px !important;right:auto !important;bottom:12px !important;width:88vw !important;max-width:280px !important}
  .cookieadmin_consent_inside{max-height:none;padding:12px !important}
  #cookieadmin_notice_title{font-size:12.5px !important;margin-bottom:2px !important}
  /* Clamp the privacy paragraph to 2 lines on the small toast — the full
     text is still one tap away in "Customize", this is just the teaser. */
  .cookieadmin_notice_con{font-size:11.5px !important;line-height:1.4;padding:0 2px !important}
  #cookieadmin_notice{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  /* The plugin's own mobile CSS forces every button to width:100% (stacked
     3 rows), which was tall enough on a short viewport to land right on
     top of page content underneath -- specifically burying the About
     page's "Arrange a visit" link so it couldn't be tapped at all until
     the banner was dismissed. Pair the two secondary actions on one row
     and keep only Accept All full-width, cutting the button block from
     3 rows to 2 and shrinking the banner's total footprint. */
  .cookieadmin_consent_btns{gap:4px !important;flex-wrap:wrap !important}
  .cookieadmin_btn{font-size:10px !important;padding:6px 4px !important;width:calc(50% - 2px) !important;margin:0 !important}
  .cookieadmin_btn:last-child{width:100% !important}
  .cookieadmin-poweredby{font-size:8.5px !important}
}


/* ===================================================================
   15b. WhatsApp chat widget — floating launcher + panel
   =================================================================== */
/* The flex column here lays out at the full size of its tallest child
   (the 290px-wide chat panel) even while that panel is visually hidden
   via opacity -- so without this, the container's own hit-testing box
   stretches across most of a phone screen and silently swallows taps on
   whatever page content happens to scroll underneath it, closed or not.
   pointer-events:none on the container plus explicit :auto on the two
   things that should actually be clickable keeps the dead zone from
   existing at all. */
.fs-wa-widget{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:14px;pointer-events:none}
@supports (bottom: env(safe-area-inset-bottom)){
  .fs-wa-widget{right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom))}
}
.fs-wa-launcher{pointer-events:auto;width:56px;height:56px;border-radius:50%;background:var(--ink);color:var(--ground);display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;box-shadow:var(--shadow-hover);flex:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:scale .3s var(--ease-hover)}
.fs-wa-launcher svg{fill:currentColor}
.fs-wa-launcher:active{scale:0.92}

.fs-wa-panel{width:290px;max-width:calc(100vw - 40px);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-hover);background:var(--ground);opacity:0;scale:0.92;translate:0 10px;pointer-events:none;transition:opacity .3s var(--ease-hover),scale .3s var(--ease-hover),translate .3s var(--ease-hover)}
.fs-wa-widget.is-open .fs-wa-panel{opacity:1;scale:1;translate:0 0;pointer-events:auto}
@media (prefers-reduced-motion: reduce){
  .fs-wa-panel{transition:opacity .15s linear;scale:1!important;translate:none!important}
}

.fs-wa-head{background:var(--ink);color:var(--ground);padding:16px 18px;display:flex;align-items:center;gap:12px;position:relative}
.fs-wa-avatar{width:38px;height:38px;border-radius:50%;background:var(--ground);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex:none}
.fs-wa-head-text{line-height:1.3;min-width:0}
.fs-wa-eyebrow{font-size:10.5px;letter-spacing:0.08em;text-transform:uppercase;opacity:0.75}
.fs-wa-title{font-size:14.5px;font-weight:600;margin-top:1px}
.fs-wa-sub{font-size:11.5px;opacity:0.8;margin-top:1px}
.fs-wa-close{position:absolute;top:12px;right:14px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;color:var(--ground);opacity:0.85;background:none;border:none;cursor:pointer;touch-action:manipulation}

.fs-wa-body{background:#efece6;padding:18px 14px;min-height:120px}
.fs-wa-bubble{background:#fff;border-radius:14px 14px 14px 4px;padding:12px 14px;font-size:13px;line-height:1.5;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,0.06);max-width:85%}

.fs-wa-foot{background:var(--ground);padding:12px;border-top:1px solid var(--hairline);display:flex;gap:8px;align-items:center}
.fs-wa-input{flex:1;min-width:0;border:1px solid var(--border);border-radius:var(--radius-pill);padding:9px 14px;font-size:16px;font-family:inherit;color:var(--ink);background:var(--ground)}
.fs-wa-input::placeholder{color:var(--ink);opacity:0.45}
.fs-wa-send{width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--ground);display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;flex:none;touch-action:manipulation}
.fs-wa-send svg{fill:currentColor}
.fs-wa-send:active{scale:0.9}

@media (max-width:480px){
  .fs-wa-widget{right:14px;bottom:14px}
  .fs-wa-panel{width:calc(100vw - 28px)}
}

/* ===================================================================
   15. Hover states, gated to real pointers
   Every :hover rule above is collected here behind a capability query.
   Touch has no hover — without this, the first tap on any of these
   (nav links, tiles, buttons, filter pills...) applies the :hover style
   and it sticks until the user taps elsewhere. Each already has its own
   :active touch feedback where one was needed, so this only restores
   hover to the input that actually has it.
   =================================================================== */
@media (hover: hover) and (pointer: fine) {
  a:hover{color:var(--accent)}
  .lead a:hover,.project-brief-body a:hover,.studio-intro-body a:hover,.about-body-text a:hover,.service-single-body a:hover,.form-fineprint a:hover,.pin-caption a:hover{opacity:1}
  .btn-dark:hover{background:var(--accent);color:var(--ground)}
  .btn-outline:hover{border-color:var(--ink);color:var(--ink)}
  .link-arrow:hover{gap:13px;color:var(--accent)}
  .link-arrow-ink:hover{opacity:1;color:var(--ink)}
  .fs-nav-link:hover{opacity:1;color:var(--ink)}
  .fs-nav-menu a:hover{opacity:1;color:var(--ink)}
  .fs-enquire-btn:hover{background:var(--ink);color:var(--ground);border-color:var(--ink)}
  .tile:hover{scale:1.015;box-shadow:var(--shadow-hover)}
  .tile-static:hover{scale:1;box-shadow:var(--shadow-rest)}
  .fs-slideshow:hover{scale:1;box-shadow:var(--shadow-rest)}
  .fs-slideshow-dot:not(.is-active):hover{background:rgba(250,249,246,0.7);scale:1.1}
  .fs-footer-col a:hover{opacity:1;color:var(--ink)}
  .fs-social-link:hover{opacity:1}
  .filter-pill:not(.is-active):hover{border-color:var(--ink);color:var(--ink)}
  .back-link:hover{opacity:1;gap:13px;color:var(--ink)}
  .project-gallery-row:hover .project-gallery-frame{scale:1.015;box-shadow:var(--shadow-hover)}
  .fs-lightbox-close:hover{background:rgba(255,255,255,0.18)}
  .service-card:hover{background:#f4f2ec}
  .whatsapp-btn:hover{background:var(--ink);color:var(--ground);border-color:var(--ink)}
  .contact-form-card button[type=submit]:hover,.contact-form-card input[type=submit]:hover,.contact-form-card .ff-btn-submit:hover{background:var(--accent) !important}
  .fs-wa-launcher:hover{scale:1.06}
  .fs-wa-close:hover{opacity:1}
}