/* Limehouse Partners — built from the limehouse.group page and design tokens */

:root{
  --lh-black:#000;--lh-white:#fff;--lh-deep-blue:#205478;
  --lh-slate-teal:#417a8b;--lh-sage:#89a49f;--lh-teal-pale:#9cc4d0;
  --lh-panel:#f2f3f5;--lh-text-muted:#4a4741;
  --lh-bg:#efebe4;
  --lh-title-rule:1.25px solid #000;
  --lh-font-body:Arial,Helvetica,sans-serif;
  --lh-font-display:'Arial Nova Cond Light','Arial Narrow',Arial,sans-serif;
  --lh-night:#0e1f2d;
  --pad:56px;--gap:32px;--ease:cubic-bezier(.2,.7,.2,1)
}
*{box-sizing:border-box;margin:0}
ul,ol{padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--lh-font-body);background:var(--lh-bg);color:#000;-webkit-font-smoothing:antialiased;line-height:1.6}
a{color:#000;text-decoration:none}a:hover{color:var(--lh-deep-blue)}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:left}
section[id]{scroll-margin-top:0}
.g{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap)}

/* header — logo top-left, exactly where limehouse.group puts it; never moves or shrinks on scroll */
.hd{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;justify-content:space-between;align-items:flex-start;padding:48px var(--pad) 0;border-bottom:1px solid transparent;transition:background .35s,border-color .35s}
.hd .lg img{height:38px;width:auto}
.hd nav{display:flex;gap:40px;padding-top:2px}
.hd nav a{position:relative;font-size:15px;padding:4px 0}
.hd nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .4s var(--ease)}
.hd nav a:hover::after,.hd nav a[aria-current]::after{transform:scaleX(1)}
.hd.scrolled{padding-bottom:14px;background:rgba(239,235,228,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* menu button, scroll cue, page dots: mobile only */
.menu-btn,.cue,.dots{display:none}

/* first screen — same structure as limehouse.group */
.page{min-height:100vh;display:grid;grid-template-rows:auto 1fr auto;padding:48px var(--pad) 40px;background:var(--lh-bg)}
.page .spacer{height:38px}
.page h1{align-self:end;font-family:var(--lh-font-display);font-weight:300;font-size:clamp(46px,8.2vw,132px);line-height:.95;letter-spacing:-.02em;padding-bottom:56px}
.page h1 em{display:block;font-style:normal;color:var(--lh-deep-blue);font-size:.34em;line-height:1.15;letter-spacing:-.005em;margin-top:.45em}
.bot{margin-top:8px;padding-top:24px;line-height:1.7}
.bot p{font-size:16px;max-width:920px;color:var(--lh-text-muted)}

/* sections */
.sec{padding:clamp(72px,9vw,128px) var(--pad) 0}
.sec-head{margin-bottom:clamp(36px,5vw,64px)}
h2{font-family:var(--lh-font-display);font-weight:300;font-size:clamp(40px,5vw,72px);line-height:1;letter-spacing:-.02em}
.lead{font-size:clamp(17px,1.5vw,20px);line-height:1.62}
.copy{font-size:15px;color:var(--lh-text-muted);margin-top:1.4em}

.media{position:relative;min-height:260px}
.media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.figs{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);margin-top:clamp(56px,7vw,96px)}
.figs li{border-top:var(--lh-title-rule);padding-top:16px}
.figs b{display:block;font:300 clamp(44px,5vw,76px)/1 var(--lh-font-display);letter-spacing:-.02em;margin-bottom:12px}
.figs span{display:block;font-size:13px;line-height:1.5;color:var(--lh-text-muted);max-width:22ch}

.it{border-top:1px solid rgba(0,0,0,.2);padding:20px 0 24px;display:grid;grid-template-columns:44px 1fr}
.it1{border-top:0;padding-top:4px}
.it small{font-size:11.5px;letter-spacing:.16em;color:var(--lh-text-muted);padding-top:3px}
.it p{font-size:15px;color:var(--lh-text-muted)}

.pf .list{list-style:none;align-self:start}
.pf .list li{border-top:1px solid rgba(0,0,0,.2)}
.pf .list li:first-child{border-top:0}
.pf .list li:first-child button{padding-top:0}
.pf .list li:last-child{border-bottom:1px solid rgba(0,0,0,.2)}
.pf .list button{position:relative;display:block;width:100%;padding:22px 0 24px;opacity:.42;transition:opacity .35s}
.pf .list button:hover,.pf .list .on button{opacity:1}
.pf .list b{display:block;font:300 clamp(28px,3vw,42px)/1.08 var(--lh-font-display);letter-spacing:-.01em;text-transform:uppercase}
.pf .list span{display:block;margin-top:8px;font-size:11.5px;letter-spacing:.16em;color:var(--lh-text-muted);text-transform:uppercase}
.pf .list i{position:absolute;left:0;bottom:-1px;height:2px;width:0;background:var(--lh-deep-blue)}
.pf .list .on i{animation:fill 6s linear forwards}
.pf .stage{position:relative;min-height:300px;background:#d8d4cb;overflow:hidden}
.pf .stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s,transform 6s linear;transform:scale(1.03)}
.pf .stage img.on{opacity:1;transform:scale(1)}
.pf .cap{display:none}
.pf .count{position:absolute;right:14px;bottom:12px;z-index:2;font-size:11px;letter-spacing:.18em;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
@keyframes fill{to{width:100%}}

/* contact: same colour as the page, content at the bottom */
.ft{margin-top:0;background:var(--lh-bg);color:var(--lh-text-muted);padding:clamp(112px,12vw,160px) var(--pad) 28px;font-size:16px;line-height:1.7;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end}
.ft .g{width:100%}
.ft .c2{grid-column:1/8}
.ft h4{font-size:11px;font-weight:400;letter-spacing:.18em;text-transform:uppercase;color:#000;margin-bottom:12px}
.ft a{color:#000;transition:color .2s}.ft a:hover{color:var(--lh-deep-blue)}
.ft .base{margin-top:clamp(40px,5vw,64px);padding-top:18px;border-top:1px solid rgba(0,0,0,.2);font-size:12px;color:var(--lh-text-muted)}

.rv{opacity:0;transform:translateY(12px);animation:rv .9s var(--ease) forwards;animation-delay:var(--d,.05s)}
@keyframes rv{to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.rv{animation:none;opacity:1;transform:none}.pf .list .on i{animation:none;width:100%}html{scroll-behavior:auto}}

/* desktop: section-by-section scrolling, one section fits the screen each time.
   Every section is one two-column grid: both halves meet at the page middle, like the figures. */
@media(min-width:861px){
:root{--figgap:clamp(48px,5vw,88px)}
html{scroll-snap-type:y mandatory}
.page,.sec,.ft{scroll-snap-align:start;scroll-snap-stop:always}
.sec{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--figgap);align-content:center;align-items:start;padding-top:clamp(108px,14vh,136px);padding-bottom:clamp(16px,3vh,40px)}
.pg,.pf{display:contents}
.sec-head{grid-column:1/-1;grid-row:1;margin-bottom:clamp(20px,4vh,56px)}
h2{font-size:clamp(40px,min(5vw,8.5vh),72px)}
.lead{font-size:clamp(17px,min(1.55vw,2.45vh),26px);line-height:1.5;max-width:72%}
.copy{font-size:clamp(14px,min(1.05vw,1.9vh),17px);line-height:1.6;margin-top:0;color:#3d3a35}
.figs span{font-size:clamp(12.5px,min(1vw,1.9vh),15px);color:#3d3a35;max-width:26ch}
.figs b{font-size:clamp(36px,min(5vw,8vh),76px);margin-bottom:clamp(6px,1.4vh,12px)}

/* Our Firm */
#about .media{grid-column:1;grid-row:2/4;align-self:stretch}
#about .lead{grid-column:2;grid-row:2}
#about .copy{grid-column:2;grid-row:3;align-self:end;margin-top:clamp(12px,2.4vh,28px)}
.figs{grid-column:1/-1;grid-row:4;column-gap:var(--figgap);margin-top:clamp(24px,5vh,64px)}

/* What we do */
#services .lead{grid-column:1;grid-row:2/5}
.it{grid-column:2;grid-template-columns:56px 1fr;padding:clamp(14px,2.4vh,24px) 0 clamp(16px,2.6vh,28px)}
.it1{padding-top:6px}
.it p{font-size:clamp(15px,min(1.2vw,2.15vh),18px);line-height:1.6;color:#2f2d29}
.it small{font-size:12px;padding-top:6px;color:#4a4741}

/* Portfolio */
#portfolio .lead{grid-column:1;grid-row:2;margin-bottom:clamp(14px,3vh,32px)}
.pf .list{grid-column:1;grid-row:3}
.pf .stage{grid-column:2;grid-row:3;align-self:stretch}
.pf .list button{padding:clamp(10px,2.2vh,22px) 0 clamp(12px,2.4vh,24px)}
.pf .list li:first-child button{padding-top:0}
.pf .list b{font-size:clamp(24px,min(3vw,4.4vh),42px)}
}

/* mobile: every section is one or two phone screens; text and pictures stay together */
@media(max-width:860px){
:root{--pad:24px}
/* header: logo fixed at the same size and position as limehouse.group (top 24px), menu icon on the right */
.hd,.hd.scrolled{padding:24px var(--pad) 14px;align-items:flex-start;background:var(--lh-bg);border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.hd.scrolled{border-bottom-color:rgba(0,0,0,.14)}
.menu-btn{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:44px;height:38px;margin-right:-10px;padding:0}
.menu-btn span{display:block;width:24px;height:2px;background:#000;transition:transform .3s var(--ease),opacity .2s}
.hd.open .menu-btn span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.hd.open .menu-btn span:nth-child(2){opacity:0}
.hd.open .menu-btn span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
html.menu-open{overflow:hidden}
.hd nav{position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;display:none;flex-direction:column;justify-content:center;gap:6px;padding:96px var(--pad) 48px;background:var(--lh-bg)}
.hd.open nav{display:flex}
.hd nav a{font:300 40px/1.15 var(--lh-font-display);letter-spacing:-.01em;padding:8px 0}
.hd nav a::after{display:none}
.hd nav a[aria-current]{color:var(--lh-deep-blue)}

/* first screen: headline, sub-line and intro paragraph together */
.page{display:flex;flex-direction:column;justify-content:flex-end;min-height:100vh;min-height:100svh;position:relative;padding:96px var(--pad) 56px}
.page .spacer{display:none}
.page h1{display:block;padding-bottom:0;font-size:clamp(42px,12.5vw,60px)}
.page h1 em{font-size:clamp(18px,5vw,22px);line-height:1.3;margin-top:14px}
.cue{display:block;position:absolute;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));width:20px;height:20px;margin-left:-10px;animation:bob 1.8s ease-in-out infinite}
.cue i{display:block;width:11px;height:11px;margin:0 auto;border-right:1.5px solid #000;border-bottom:1.5px solid #000;transform:rotate(45deg)}
@keyframes bob{0%,100%{transform:translateY(0);opacity:.3}50%{transform:translateY(6px);opacity:.9}}
.bot{margin-top:28px;padding:0;min-height:0}
.bot p{font-size:clamp(15px,min(4.2vw,2.4svh),18px);line-height:1.6;max-width:none}

/* pages: type scales with the phone (width and height), so tall phones are filled and short ones still fit */
.sec{padding:0}
.pg{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:92px var(--pad) calc(28px + env(safe-area-inset-bottom))}
.sec-head{margin-bottom:18px}
h2{font-size:clamp(40px,11.5vw,58px)}
.lead{font-size:clamp(17px,min(4.8vw,2.6svh),24px);line-height:1.5}
.copy{font-size:clamp(15px,min(4.2vw,2.3svh),19px);line-height:1.55;color:#3d3a35;margin:0 0 26px}

/* Our Firm: page 1 = title, picture (edge to edge), intro; page 2 = text and figures */
#about .media{min-height:0;aspect-ratio:16/10;margin:0 calc(var(--pad) * -1) 20px}
.figs{grid-template-columns:1fr 1fr;gap:22px 16px;margin:0}
.figs li{padding-top:12px}
.figs b{font-size:clamp(40px,12vw,56px);margin-bottom:6px}
.figs span{font-size:clamp(12.5px,3.4vw,15px);line-height:1.4;color:#3d3a35}

/* What we do: page 1 = title and mission; page 2 = the three points */
.it{grid-template-columns:32px 1fr;padding:12px 0 14px}
.it1{border-top:0;padding-top:0}
.it p{font-size:clamp(15px,min(4.1vw,2.15svh),18px);line-height:1.55;color:#2f2d29}
.it small{font-size:11px;padding-top:4px}

/* Portfolio: title, text, then a full photo gallery that shows only the name of the building on screen */
.pf{flex:1;display:flex;flex-direction:column}
.pf .lead{margin-bottom:20px}
.pf .list{display:none}
.pf .stage{flex:1;min-height:220px;margin:0 calc(var(--pad) * -1);touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.pf .stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:110px;background:linear-gradient(transparent,rgba(0,0,0,.6));z-index:1;pointer-events:none}
.pf .cap{display:block;position:absolute;left:16px;right:70px;bottom:14px;z-index:2;color:#fff;font:300 26px/1.1 var(--lh-font-display);letter-spacing:-.005em;text-transform:uppercase;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.pf .count{z-index:2}
#portfolio .pg{justify-content:flex-start;padding-top:92px;padding-bottom:0}

/* touch feel: page dots, entrance motion, press feedback */
.dots{display:flex;flex-direction:column;position:fixed;right:2px;top:50%;transform:translateY(-50%);z-index:40}
html.menu-open .dots{display:none}
.dots button{position:relative;width:20px;height:22px;padding:0;-webkit-tap-highlight-color:transparent}
.dots button::before{content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:3px;background:#fff;mix-blend-mode:difference;opacity:.5;transition:height .3s var(--ease),margin .3s var(--ease),opacity .3s}
.dots button.on::before{height:18px;margin-top:-9px;opacity:1}
.hd nav a:active{opacity:.5}
.js .pg>*{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .pg.in>*{opacity:1;transform:none}
.js .pg.in>*:nth-child(2){transition-delay:.08s}
.js .pg.in>*:nth-child(3){transition-delay:.16s}
.js .pg.in>*:nth-child(4){transition-delay:.24s}

/* contact follows the portfolio directly: no empty screen */
.ft{min-height:0;justify-content:flex-start;margin-top:0;padding:36px var(--pad) 24px;font-size:15px}
.ft .base{margin-top:28px}

/* page by page scrolling */
html{scroll-snap-type:y mandatory;scroll-padding-top:0}
.page,.pg{scroll-snap-align:start;scroll-snap-stop:always}
.ft{scroll-snap-align:end;scroll-snap-stop:always}
}
@media(prefers-reduced-motion:reduce){.cue{animation:none}.js .pg>*{opacity:1;transform:none;transition:none}}
