/* ------------------------------------------------------------------
   Header, wordmark, menu
------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--paper);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header[data-theme="light"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  line-height: 1;
}
.mark__stripes {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  height: 30px;
  --a: var(--fresh);
  --b: #5d8a45;
  transition: opacity 0.3s;
}
.site-header[data-theme="light"] .mark__stripes { --a: #2f5a36; --b: #7ea64f; }
.mark__stripes i { display: block; background: var(--a); }
.mark__stripes i:nth-child(even) { background: var(--b); }
.mark__text { display: grid; gap: 0.32rem; }
.mark__name { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.005em; }
.mark__sub { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; }

.site-nav { display: none; }
.site-header__tel { display: none; }
.menu-btn {
  padding: 0.55rem 0;
  border: 0;
  background: none;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header) + 1.5rem) var(--gutter) 5.5rem;
  background: var(--turf-900);
  color: var(--paper);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(231, 233, 227, 0.16);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1.15;
  text-decoration: none;
}
.menu__contact { display: grid; gap: 0.4rem; font-size: 1.05rem; }
.menu__contact a:first-child { font-family: var(--serif); font-size: 1.9rem; text-decoration: none; }

@media (min-width: 1060px) {
  .menu-btn, .menu { display: none; }
  .site-nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); font-size: 0.92rem; font-weight: 500; }
  .site-nav a {
    position: relative;
    padding-block: 0.4rem;
    text-decoration: none;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.1rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .site-nav a:hover::after { transform: scaleX(1); }
  .site-header__tel { display: block; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
  .site-header__tel span { opacity: 0.6; margin-right: 0.4rem; }
}


/* ------------------------------------------------------------------
   Hero: turf stripes, one large photograph, one setting-out mark
------------------------------------------------------------------- */
.hero {
  --stripe: clamp(2.5rem, 5.5vw, 5.5rem);
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  background: var(--turf-700);
  color: var(--paper);
  padding-top: var(--header);
}

/* the stripes mow in from the left of every tile once, on load */
.hero__stripes {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, var(--turf-700) 0 var(--stripe), var(--turf-stripe) var(--stripe) calc(var(--stripe) * 2));
  -webkit-mask: linear-gradient(90deg, #000 var(--p), transparent var(--p)) 0 0 / calc(var(--stripe) * 2) 100% repeat-x;
          mask: linear-gradient(90deg, #000 var(--p), transparent var(--p)) 0 0 / calc(var(--stripe) * 2) 100% repeat-x;
}
.js .hero__stripes { animation: mow-late 1.5s var(--ease) 0.2s both; }
@keyframes mow-late { from { --p: 50%; } to { --p: 100%; } }
@keyframes mow { from { --p: 0%; } to { --p: 100%; } }

.hero__figure { display: flex; flex-direction: column; order: -1; }
.hero__frame { position: relative; aspect-ratio: 4 / 3; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; background: var(--turf-800); }
.hero__figure .cap { color: rgba(231, 233, 227, 0.72); margin-inline: var(--gutter); }
.hero__figure .cap span:first-child { color: var(--paper); }

.hero__copy { padding: 2.25rem var(--gutter) 3.25rem; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.9rem); margin-top: 1.4rem; }
.hero h1 em { color: var(--fresh); }
.hero__lede { margin-top: 1.6rem; max-width: 30rem; font-size: var(--step-1); line-height: 1.5; color: rgba(231, 233, 227, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: 2.1rem; }

/* the setting-out mark: spray-paint cross, leader line, true figures from the job */
.setout {
  position: absolute;
  right: 30%;
  top: 70%;
  display: flex;
  align-items: center;
  color: var(--paint);
  transform: translate(12px, -50%);
}
.setout__label {
  order: 1;
  padding: 0.4rem 0.65rem;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: nowrap;
}
.setout__label b { font-weight: 600; font-variant-numeric: tabular-nums; }
.setout::before { content: ""; order: 2; width: 1.6rem; height: 1px; background: currentColor; }
.setout__cross { order: 3; flex: none; margin-left: -4px; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    min-height: max(40rem, 100svh);
    padding: calc(var(--header) + 1.25rem) 0 2rem max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .hero__copy { grid-column: 1 / span 5; align-self: end; padding: 0 0 clamp(0.5rem, 2.5vw, 2.5rem); }
  .hero__figure { grid-column: 6 / -1; grid-row: 1; order: 0; }
  .hero__frame { flex: 1; aspect-ratio: auto; min-height: 24rem; }
  .hero__figure .cap { margin-inline: 0 var(--gutter); }
  .setout__label { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
  .setout::before { width: 2.6rem; }
}


/* ------------------------------------------------------------------
   Schedule of works
------------------------------------------------------------------- */
.work { background: var(--paper); }

.svc { border-top: 1px solid var(--ink); --rows: 9; }
.svc__btn {
  position: relative;
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1.3rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  transition: padding 0.4s var(--ease);
}
.svc__btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.15rem;
  width: 0;
  height: 2px;
  background: var(--paint);
  transition: width 0.4s var(--ease);
}
.svc__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  transition: color 0.3s;
}
.svc__spec { color: var(--ink-2); max-width: 30rem; }
.svc__btn:hover .svc__name { color: var(--ink); }
.svc__item.is-active .svc__name { color: var(--ink); font-weight: 400; }
.svc__item.is-active .svc__btn { padding-left: 2.6rem; }
.svc__item.is-active .svc__btn::before { width: 1.7rem; }

.svc__fig img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  -webkit-mask: linear-gradient(90deg, #000 var(--p), transparent var(--p)) 0 0 / 12.5% 100% repeat-x;
          mask: linear-gradient(90deg, #000 var(--p), transparent var(--p)) 0 0 / 12.5% 100% repeat-x;
}
.svc.is-ready .svc__item.is-active .svc__fig img { animation: mow 0.9s var(--ease) both; }

.svc__also {
  margin-top: 2rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-2);
}

@media (max-width: 959px) {
  .svc__item { border-bottom: 1px solid var(--line); }
  .svc__btn { border-bottom: 0; }
  .svc__fig { display: none; padding-bottom: 1.5rem; }
  .svc__item.is-active .svc__fig { display: block; }
}

@media (min-width: 960px) {
  .svc {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .svc__item { display: contents; }
  .svc__btn { grid-column: 1 / span 5; }
  .svc__fig {
    grid-column: 7 / span 6;
    grid-row: 1 / span var(--rows);
    align-self: start;
    position: sticky;
    top: calc(var(--header) + 1.5rem);
    margin-top: 1.3rem;
    visibility: hidden;
    z-index: 0;
  }
  .svc__item.is-leaving .svc__fig { visibility: visible; z-index: 1; }
  .svc__item.is-active .svc__fig { visibility: visible; z-index: 2; }
}


/* ------------------------------------------------------------------
   Before and after
------------------------------------------------------------------- */
.ba { background: var(--slab); }
.ba__grid { display: grid; gap: 2.25rem; }

.ba__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--turf-900); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img[hidden] { display: none; }
.ba__img--next {
  --p: 0%;
  transition: --p 0.95s var(--ease);
  -webkit-mask: linear-gradient(90deg, #000 var(--p), transparent var(--p)) 0 0 / 12.5% 100% repeat-x;
          mask: linear-gradient(90deg, #000 var(--p), transparent var(--p)) 0 0 / 12.5% 100% repeat-x;
}
.ba__img--next.is-wiping { --p: 100%; }

.ba__controls { display: grid; gap: 1.75rem; align-content: start; }
.ba__projects { border-bottom: 1px solid var(--ink); }
.ba__project {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.1rem 0 1.1rem;
  border: 0;
  border-top: 1px solid var(--ink);
  background: none;
  text-align: left;
  transition: padding 0.4s var(--ease);
}
.ba__project b { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--step-1); line-height: 1.2; color: var(--ink-2); transition: color 0.3s; }
.ba__project span { display: block; margin-top: 0.2rem; font-size: var(--step--1); color: var(--ink-2); }
.ba__project::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 0; height: 2px; background: var(--paint); transition: width 0.4s var(--ease); }
.ba__project:hover b, .ba__project[aria-pressed="true"] b { color: var(--ink); }
.ba__project[aria-pressed="true"] { padding-left: 2.3rem; }
.ba__project[aria-pressed="true"]::before { width: 1.5rem; }

.ba__steps { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ba__step {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--ink);
  background: none;
  font-weight: 500;
  transition: background-color 0.25s, color 0.25s;
}
.ba__step:hover { background: rgba(23, 32, 26, 0.08); }
.ba__step[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ba__note { color: var(--ink-2); max-width: 26rem; }

@media (min-width: 960px) {
  .ba__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .ba__stage { grid-column: 1 / span 8; }
  .ba__controls { grid-column: 9 / span 4; position: sticky; top: calc(var(--header) + 1.5rem); }
}


/* ------------------------------------------------------------------
   After dark
------------------------------------------------------------------- */
.dusk {
  padding-block: var(--section);
  background: var(--night);
  color: var(--paper);
  overflow: clip;
}
.dusk__grid { display: grid; gap: 2.5rem; }
.dusk h2 { font-size: var(--step-3); margin-top: 1.1rem; }
.dusk h2 em { color: var(--fresh); }
.dusk__text { max-width: 30rem; color: rgba(231, 233, 227, 0.78); font-size: var(--step-1); line-height: 1.5; }
.dusk__side { display: grid; gap: 2.5rem; }

/* on phones the paragraph follows the heading, then the photographs */
@media (max-width: 959px) {
  .dusk__side { display: contents; }
  .dusk__head { order: 1; }
  .dusk__text { order: 2; }
  .dusk__lit { order: 3; }
  .dusk__day { order: 4; }
  .dusk__disc { order: 5; }
}
.dusk .cap { color: rgba(231, 233, 227, 0.68); }
.dusk .cap span:first-child { color: var(--paper); }
.dusk img { background: #1a211d; }

/* the lights come on as the section arrives */
.js .dusk__lit img { filter: brightness(0.45) saturate(0.7); transition: filter 2.2s ease 0.15s; }
.js .dusk.is-in .dusk__lit img { filter: none; }

@media (min-width: 960px) {
  .dusk__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .dusk__head { grid-column: 1 / span 6; grid-row: 1; }
  .dusk__day { grid-column: 8 / span 5; grid-row: 1; }
  .dusk__lit { grid-column: 1 / span 8; grid-row: 2; }
  .dusk__side { grid-column: 9 / span 4; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
}


/* ------------------------------------------------------------------
   Recent work
------------------------------------------------------------------- */
.recent { background: var(--paper); }
.mosaic { display: grid; gap: 2.25rem; }
.tile img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; }
.tile--a { --ar: 4 / 3; }
.tile--b { --ar: 4 / 3; }
.tile--c { --ar: 4 / 3; }
.tile--d { --ar: 4 / 3; }
.tile--e { --ar: 4 / 3; }
.tile--f { --ar: 4 / 3; }
.tile--g { --ar: 4 / 3; }
.tile--h img { aspect-ratio: auto; object-fit: cover; }
.recent__also { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 36rem; font-family: var(--serif); font-size: var(--step-1); font-weight: 300; font-style: italic; color: var(--ink-2); }

@media (min-width: 960px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .tile--a { grid-column: 1 / span 7; --ar: 4 / 3; }
  .tile--b { grid-column: 8 / span 5; --ar: 15 / 16; margin-top: clamp(2rem, 5vw, 4.5rem); }
  .tile--c { grid-column: 1 / span 4; --ar: 3 / 4; align-self: end; }
  .tile--d { grid-column: 5 / span 8; --ar: 16 / 9; }
  .tile--e { grid-column: 1 / span 5; --ar: 4 / 3; }
  .tile--f { grid-column: 6 / span 3; --ar: 3 / 4; margin-top: clamp(2rem, 5vw, 4.5rem); }
  .tile--g { grid-column: 9 / span 4; --ar: 1 / 1; }
  .tile--h { grid-column: 3 / span 10; }
}


/* ------------------------------------------------------------------
   Enquire
------------------------------------------------------------------- */
.enquire {
  padding-block: var(--section);
  background: var(--turf-800);
  color: var(--paper);
}
.enquire__grid { display: grid; gap: 3rem; }
.enquire h2 { font-size: var(--step-3); margin-top: 1.1rem; }
.enquire__text { margin-top: 1.4rem; max-width: 28rem; color: rgba(231, 233, 227, 0.8); font-size: var(--step-1); line-height: 1.5; }
.enquire__tel { margin-top: 2.25rem; }
.enquire__tel a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 1.2rem + 3.8vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-variant-numeric: lining-nums tabular-nums;
  border-bottom: 2px solid var(--fresh);
  padding-bottom: 0.15em;
  transition: color 0.25s;
}
.enquire__tel a:hover { color: var(--fresh); }
.enquire__lines { margin-top: 2.5rem; border-top: 1px solid rgba(231, 233, 227, 0.22); }
.enquire__lines li {
  display: grid;
  gap: 0.15rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(231, 233, 227, 0.22);
}
@media (min-width: 560px) {
  .enquire__lines li { grid-template-columns: 6.5rem 1fr; }
}
.enquire__lines li span { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; padding-top: 0.15rem; }
.enquire__lines a { overflow-wrap: anywhere; }

.form { display: grid; gap: 1.6rem; align-content: start; }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(231, 233, 227, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-size: var(--step-1);
  transition: border-color 0.25s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder { color: rgba(231, 233, 227, 0.4); }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--fresh); box-shadow: 0 1px 0 var(--fresh); }
.field input[aria-invalid="true"] { border-bottom-color: #ff9f8c; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.chips label { position: relative; text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 400; opacity: 1; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span {
  display: block;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(231, 233, 227, 0.45);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chips input:hover + span { border-color: var(--paper); }
.chips input:checked + span { background: var(--fresh); border-color: var(--fresh); color: var(--turf-900); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--fresh); outline-offset: 3px; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.4rem; }
.form__status { min-height: 1.5em; font-size: var(--step--1); color: #ffb9a9; }
.form__status.is-ok { color: var(--fresh); }
.form__note { font-size: var(--step--1); color: rgba(231, 233, 227, 0.6); margin-top: -0.6rem; }

@media (min-width: 960px) {
  .enquire__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .enquire__intro { grid-column: 1 / span 5; }
  .form { grid-column: 7 / span 6; }
}


/* ------------------------------------------------------------------
   Footer and mobile call bar
------------------------------------------------------------------- */
.site-footer { background: var(--turf-900); color: rgba(231, 233, 227, 0.8); padding-block: 3rem 3.5rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 1.75rem; }
.site-footer .mark { color: var(--paper); }
.site-footer .mark__stripes { --a: var(--fresh); --b: #5d8a45; }
.site-footer a { text-underline-offset: 0.25em; }
.site-footer__small { font-size: var(--step--1); opacity: 0.75; }
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1.4fr 1fr; align-items: start; }
  .site-footer__small { text-align: right; }
}

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--turf-900);
  box-shadow: 0 -1px 0 rgba(231, 233, 227, 0.18);
}
.callbar a { display: flex; align-items: center; justify-content: center; min-height: 3.4rem; font-weight: 500; text-decoration: none; }
.callbar__call { background: var(--paper-2); color: var(--turf-900); }
.callbar__quote { color: var(--paper); }
body { padding-bottom: 3.4rem; }
@media (min-width: 960px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}
