/* CRESTIAL — shared shell.
 * GENERATED by _source/_docs/build_theme_shell.py from
 * _source/homepagev2-r2.src.html. Do not edit by hand: edit the mockup,
 * re-run check_shell.py, then regenerate. */

/* ===== tokens ===== */
:root{
  /* Gessi's ground is #EFECE8 and its ink #14120E — both warm. CRESTIAL's
     extended palette is warm too, so these are derived from it rather than
     borrowed: paper is Pantone 7527 at high value, ink is 410 at low value. */
  --ink:#14120F;
  --ink-2:#221E19;         /* dark band */
  --paper:#EEEBE4;         /* page ground — high value of Pantone 7527 */
  --card:#F8F6F1;
  --stone:#D6D2C4;         /* Pantone 7527 */
  --stone-2:#C4BCB7;       /* Pantone 406 */
  --taupe:#746661;         /* Pantone 410 */
  --sand:#E0C6AD;          /* Pantone 4685 */
  --cream:#FCFBF8;
  --grey:#58595B;          /* brand grey K80 */
  --orange:#FF8200;        /* accent only — far under the guide's 20% ceiling */
  --line:rgba(20,18,15,.15);
  --line-l:rgba(255,255,255,.22);
  --rad:20px;
  --wrap:1400px;
  --logo-gap:clamp(22px,2.5vw,44px);   /* tightened 14 Oct when the basket
                                          icon joined - see .hdr__tools */
  --gut:clamp(22px,5vw,60px);
  --sec:clamp(72px,8.5vw,124px);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ===== base ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
/* A jump link lands at the top of the document, and .hdr is position:fixed over it,
   so without this the first 82px of the target sits under the header. Measured on
   Brand Features, whose twelve plates have no padding of their own to hide it.
   82px is .hdr__in's height; the other 10px is so it does not touch. The legal
   pages set their own 108px on .lbody h2, which outranks this. */
section[id],article[id]{scroll-margin-top:92px}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:Poppins,"Century Gothic",Avenir,sans-serif;
  font-weight:300;font-size:16px;line-height:1.8;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}
.sec{padding:var(--sec) 0}

/* ===== type ===== */
/* --- type ---------------------------------------------------------------- */
h1,h2,h3,h4{margin:0;font-weight:200;line-height:1.14;letter-spacing:-.01em}
/* The section label is the one place --orange is spent as type. It is the same
   value on every ground, light and dark, which is why the dark-context colour
   overrides that used to sit further down this file are gone — there is nothing
   left for them to override. The hairline that sat under the label was dropped
   with this change, to match the reference.
   NOTE: --orange on --paper measures 2.09:1, and on --card 2.30:1. On the dark
   bands it is 6.66:1. The light-ground figure is well under WCAG AA for 13px
   text; it is a deliberate client choice, recorded in DESIGN-FEEDBACK. */
.eyebrow{
  font-size:13px;font-weight:500;letter-spacing:.26em;text-transform:uppercase;
  color:var(--orange);margin:0 0 20px;
}
.t-hero{font-size:clamp(30px,3.9vw,50px);font-weight:200;letter-spacing:.1em;line-height:1.06}
.t-sec{font-size:clamp(27px,3.3vw,42px)}
.sub{font-size:clamp(14.5px,1.1vw,16.5px);font-weight:300;line-height:1.8;color:var(--taupe)}
p{margin:0 0 1em}

/* the header for every section: eyebrow over title, both centred */
.head{text-align:center;max-width:760px;margin:0 auto clamp(40px,5vw,68px)}
.head .sub{margin:18px auto 0;max-width:60ch}

/* --- pills --------------------------------------------------------------- */
.pill{
  display:inline-flex;align-items:center;gap:10px;border-radius:999px;
  font-size:11.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  padding:15px 32px;border:1px solid var(--ink);color:var(--ink);
  transition:background .45s var(--ease),color .45s var(--ease),border-color .45s var(--ease);
}
.pill:hover{background:var(--ink);color:var(--cream)}
.pill--solid{background:var(--ink);color:var(--cream)}
.pill--solid:hover{background:var(--orange);border-color:var(--orange)}
.pill--l{border-color:var(--line-l);color:var(--cream);backdrop-filter:blur(6px);background:rgba(255,255,255,.08)}
.pill--l:hover{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.pills{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ===== header ===== */
/* --- header -------------------------------------------------------------- */
.hdr{
  position:fixed;inset:0 0 auto;z-index:70;
  transition:background .5s var(--ease),box-shadow .5s var(--ease),backdrop-filter .5s var(--ease);
}
.hdr__in{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  height:82px;max-width:var(--wrap);margin:0 auto;padding:0 var(--gut);
  position:relative;          /* .hdr__tools is pinned to this */
}
.hdr.is-stuck{background:rgba(238,235,228,.94);backdrop-filter:blur(14px);box-shadow:0 1px 0 var(--line)}
/* Nav split either side of the centred logo — keeps the symmetry of the layout
   while leaving every route one click away. */
.nav{display:flex;align-items:center;gap:clamp(13px,1.35vw,24px)}
/* Both navs hug the logo with the SAME margin, so the gap either side of it
   is one value in one place instead of whatever the columns happen to leave.
   Before this (14 Oct 2026, client: "the spacing between products > company
   logo > projects is not equal") the right gap was 72px narrower than the left
   at 1600, 1440 and 1366 alike - the same 72px at every width, which is the
   tell that it was structural and not a rounding artefact. Cause: the search
   and account icons lived in the right-hand grid column, so the column had to
   hold nav + icons and the nav got pushed toward the logo by exactly the width
   of the icons. No amount of moving menu items could fix that; the icons had
   to come out of the flow. They are now .hdr__tools, pinned to the right
   gutter and weightless.

   That paid off immediately: the BASKET icon was added hours later and the two
   gaps did not move by a pixel, because a third icon in an out-of-flow cluster
   costs the layout nothing. What it DID cost was the clearance between CONTACT
   and the icons, which went to -16px at 1600 and -21px at 1366. Reclaimed by
   tightening three things rather than dropping a menu item or raising the
   burger breakpoint: the nav gap 30->24, --logo-gap 58->44, and the icon
   cluster 6->2 with 30px buttons. Measured clearance is now 41/51/30/23px at
   1600/1440/1366/1349 - 1349 being what a real 1366 laptop leaves after its
   scrollbar, which is the width this breakpoint was raised to protect in the
   first place. */
.nav--l{grid-column:1;justify-self:end;margin-right:var(--logo-gap)}
.nav a{
  position:relative;padding:6px 0;white-space:nowrap;
  font-size:11.5px;font-weight:400;letter-spacing:.17em;text-transform:uppercase;
}
.nav a::after{
  content:"";position:absolute;left:50%;right:50%;bottom:0;height:1px;
  background:currentColor;opacity:.8;transition:left .45s var(--ease),right .45s var(--ease);
}
.nav a:hover::after{left:0;right:0}
/* ⚑ TWO SELECTORS, AND THE SECOND ONE IS THE LIVE SITE. In this mockup the current page is
   marked with a class, because static HTML has nothing else. The theme marks it with
   `aria-current="page"` — which is the accessible truth and what a screen reader reads — and
   since the header menu became client-managed on 22 Oct nothing has added `is-here` at all.
   So this rule matched nothing on the real site and the underline vanished the moment you
   stopped hovering. Keith, 23 Oct: "the header menu hover over underline to stay when the
   user is in that page."
   Styling the attribute rather than adding a parallel class on purpose: one source of truth.
   A class that has to be kept in step with aria-current is the drift this codebase keeps
   paying for. */
.nav a.is-here::after,
.nav a[aria-current="page"]::after{left:0;right:0;opacity:.45}
.brand{grid-column:2;justify-self:center}
.brand img{width:214px}
/* The utility cluster is deliberately TIGHTER than the nav gap, and the
   hairline divider that used to sit before it is gone (8 Oct 2026, client:
   "5 menus on the left, 3 on the right ... it is not balanced").
   Moving Projects across made it 4/4 by count but not by eye: the right side
   also carries the search and account icons, ~131px the left side has nothing
   to answer with, so PROJECTS ended up 17px from the logo while the left had
   134px of air. Measured, not guessed. Closing this gap from 30px to 16px and
   dropping the divider gives that 131px back to the two gaps either side of
   the logo, which is what balance actually means here. */
.nav--r{grid-column:3;justify-self:start;margin-left:var(--logo-gap)}
.hdr__tools{position:absolute;right:var(--gut);top:50%;transform:translateY(-50%);
  display:flex;align-items:center;gap:16px}
.util{display:flex;align-items:center;gap:2px}
.util svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.4}
.util button{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  transition:background .35s}
.burger{display:none;place-items:center;width:32px;height:32px}
.burger i{display:block;width:20px;height:9px;position:relative}
.burger i::before,.burger i::after{
  content:"";position:absolute;left:0;right:0;height:1px;background:currentColor}
.burger i::before{top:0}.burger i::after{bottom:0}
/* over the hero the header is inverted; once stuck it flips back */
.hdr:not(.is-stuck){color:var(--cream)}
.hdr:not(.is-stuck) .brand .b-dark{display:none}
.hdr.is-stuck .brand .b-light{display:none}
.hdr:not(.is-stuck) .util button:hover{background:rgba(255,255,255,.14)}
.hdr.is-stuck .util button:hover{background:rgba(20,18,15,.07)}

/* ===== reveal ===== */
/* --- reveal -------------------------------------------------------------- */
.rv{opacity:0;transform:translateY(24px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.rv.in{opacity:1;transform:none}

/* ===== footer ===== */
/* --- footer -------------------------------------------------------------- */
.ftr{background:var(--ink);color:rgba(252,251,248,.6);
  padding:clamp(56px,6.5vw,88px) 0 32px;text-align:center}
.ftr__brand img{width:184px;margin:0 auto clamp(30px,4vw,44px)}
.ftr__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(22px,3vw,44px);
  text-align:left;padding-top:clamp(34px,4vw,50px);border-top:1px solid var(--line-l)}
.ftr h4{font-size:10px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;
  color:var(--cream);margin-bottom:16px}
.ftr ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ftr a{font-size:13.5px;transition:color .35s}
.ftr a:hover{color:var(--orange)}
.ftr p{font-size:13.5px;line-height:1.8;margin:0}
/* one social row, two grounds: light in the enquiry column, dark in the footer */
.socials{display:flex;gap:10px;flex-wrap:wrap}
.socials a{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--line);transition:background .35s,border-color .35s,color .35s}
.socials a:hover{background:var(--ink);border-color:var(--ink);color:var(--cream)}
.socials svg{width:15px;height:15px;fill:currentColor}
.ftr .socials{justify-content:center;margin-bottom:clamp(30px,4vw,44px)}
.ftr .socials a{border-color:var(--line-l)}
.ftr .socials a:hover{background:var(--cream);border-color:var(--cream);color:var(--ink)}
.ftr__base{display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:space-between;
  margin-top:clamp(38px,4.5vw,60px);padding-top:24px;border-top:1px solid var(--line-l);
  font-size:12px;letter-spacing:.04em;text-align:left}

/* ===== responsive (shell only) ===== */
@media(max-width:1330px){
  .nav{display:none}
  .burger{display:grid}
}
@media(max-width:1080px){
  /* the column count is already two at every width now */
  .ftr__grid{grid-template-columns:1fr 1fr;gap:34px}
}
@media(max-width:860px){
  .brand img{width:168px}
}
@media(max-width:620px){
  .ftr__grid{grid-template-columns:1fr}
}
