/* The requested hero experiment retains the restored template below it. */
@font-face {
  font-family: "Uncut Sans";
  src: url("/assets/fonts/uncut-sans-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --heading-font: Georgia, "Times New Roman", serif;
  --site-header-height: 54px;
  --text-link-gap: 6px;
  --text-link-underline-offset: 5px;
  --text-link-arrow-size: 12px;
  --text-link-arrow-travel: 1px;
  /* shadow.floriankiem.com: smooth-shadow-ring-lg, neutral-400, neutral-50/30.
     MIT attribution: /assets/licenses/shadow-plugin.txt */
  --card-shadow-color: oklch(70.8% 0 0);
  --card-ring-color: oklch(98.5% 0 0 / 30%);
  --card-shadow:
    0 25px 50px color-mix(in srgb, var(--card-shadow-color) 5%, transparent),
    0 12px 24px color-mix(in srgb, var(--card-shadow-color) 4%, transparent),
    0 6px 12px color-mix(in srgb, var(--card-shadow-color) 3%, transparent),
    0 3px 6px color-mix(in srgb, var(--card-shadow-color) 2%, transparent),
    0 1.5px 3px color-mix(in srgb, var(--card-shadow-color) 2%, transparent),
    0 0 0 1px var(--card-ring-color);
}

.site-header > .container {
  min-height: var(--site-header-height);
  padding-block: 5px;
}

h1,
.section-heading h2,
.about-heading h2,
.article-body h2,
.prose h2,
.card-copy h2 {
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.workbench-hero {
  position: relative;
  isolation: isolate;
  background: var(--cream);
  padding: 44px 0 32px;
}
.workbench-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background-image:
    linear-gradient(rgb(2 6 23 / 58%), rgb(2 6 23 / 58%)),
    url("/assets/plaid-pattern.webp");
  background-position: center;
  background-size:
    auto,
    auto 100%;
  background-repeat: no-repeat, repeat-x;
  pointer-events: none;
}
.workbench-hero > .container {
  position: relative;
  z-index: 1;
}
.section.dark.practical-band {
  background-image:
    linear-gradient(rgb(2 6 23 / 58%), rgb(2 6 23 / 58%)),
    url("/assets/plaid-pattern.webp");
  background-position: center;
  background-size:
    auto,
    auto 100%;
  background-repeat: no-repeat, repeat-x;
}
@media (min-width: 900px) {
  .workbench-hero {
    display: flex;
    align-items: flex-end;
    min-height: calc(
      100svh - var(--site-header-height) - clamp(56px, 6vw, 88px)
    );
  }
}
.workbench-intro {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}
.workbench-intro .eyebrow {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.workbench-intro h1 {
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.workbench-intro h1 span {
  color: var(--blueprint);
  white-space: nowrap;
}
.workbench-copy {
  max-width: 560px;
  margin: 23px auto 26px;
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}
.workbench-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}
.workbench-services {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--brand);
}
.workbench-picture {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--card-shadow);
}
.workbench-picture img {
  width: 100%;
  height: 305px;
  object-fit: cover;
  object-position: center 49%;
}
.workbench-picture figcaption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.workbench-picture figcaption span + span {
  border-left: 1px solid var(--border);
}
.brand.monogram {
  min-height: 44px;
  padding: 0;
  gap: 0;
  align-items: center;
}
.brand.monogram img {
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  margin-inline-end: -6.5px;
  object-fit: contain;
  /* Align the C's ink baseline with the wordmark, allowing for the roof. */
  transform: translate(-0.5px, calc(-16.62% - 2px));
}
.brand-name {
  font-family: "Uncut Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.header-cta {
  min-height: 40px;
  padding: 8px 16px;
}

.nav-links,
.mobile-nav-links {
  --nav-rule-offset: 1px;
  --nav-rule-height: 5px;
  position: relative;
}
.nav-label {
  position: relative;
  white-space: nowrap;
}
.nav-links > a:not(.button),
.mobile-nav-links > a:not(.button) {
  background: transparent;
  text-decoration: none;
}
/* The same two rules serve the no-JS fallback and the moving indicator. */
.nav-label::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--nav-rule-offset));
  inset-inline: 0;
  height: var(--nav-rule-height);
  border-block: 1px solid currentColor;
  opacity: 0;
  pointer-events: none;
}
:is(.nav-links, .mobile-nav-links):not(.has-nav-indicator)
  > a:is([aria-current], :focus-visible) .nav-label::after {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  :is(.nav-links, .mobile-nav-links):not(.has-nav-indicator)
    > a:hover .nav-label::after {
    opacity: 1;
  }
}
.nav-indicator {
  position: absolute;
  top: var(--nav-rule-offset);
  left: 0;
  height: var(--nav-rule-height);
  border-block: 1px solid var(--brand);
  opacity: 0;
  pointer-events: none;
}
.nav-indicator.is-animated {
  transition:
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    width 300ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 150ms ease;
}
.nav-indicator.is-ready {
  opacity: 1;
}

/* Overlapping fades and line growth keep the timeline flowing through each step. */
.paper-steps {
  --timeline-gap: 28px;
  --timeline-line-start: scaleX(0);
  position: relative;
  gap: var(--timeline-gap);
}
.paper-steps > li {
  position: relative;
  padding: 84px 0 0;
  background: transparent;
  box-shadow: none;
}
.paper-steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 25.5px;
  left: 50%;
  width: calc(100% + var(--timeline-gap));
  height: 1px;
  background: rgb(246 241 232 / 40%);
  transform-origin: top left;
  pointer-events: none;
}
.paper-steps > li::after {
  content: none;
}
.paper-steps .step-number {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(50% - 26px);
  width: 52px;
  height: 52px;
  margin: 0;
  border: 1px solid rgb(42 61 107 / 8%);
  background: var(--cream);
  color: var(--brand);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 2px 4px 9px rgb(2 6 23 / 15%);
}
.step-paper {
  height: 100%;
  padding: 26px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #faf6ef, var(--cream));
  box-shadow: var(--card-shadow);
}
.step-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.paper-steps .step-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}
.step-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: rgb(42 61 107 / 6%);
  color: var(--brand);
}
.step-icon svg {
  width: 20px;
  height: 20px;
}
.paper-steps.is-timeline-ready > li > :is(.step-number, .step-paper) {
  opacity: 0;
}
.paper-steps.is-timeline-ready > li:not(:last-child)::before {
  transform: var(--timeline-line-start);
}
.paper-steps.is-timeline-running > li > :is(.step-number, .step-paper) {
  opacity: 1;
  transition: opacity var(--timeline-step-duration)
    cubic-bezier(0.32, 0, 0.2, 1) var(--timeline-step-delay);
}
.paper-steps.is-timeline-running > li:not(:last-child)::before {
  transform: none;
  transition: transform var(--timeline-line-duration)
    cubic-bezier(0.4, 0, 0.2, 1) var(--timeline-line-delay);
}
@media (max-width: 899px) {
  .step-paper {
    padding: 22px;
  }
  .step-heading {
    gap: 12px;
  }
}
@media (max-width: 899px) {
  .paper-steps {
    --timeline-gap: 24px;
    --timeline-line-start: scaleY(0);
    grid-template-columns: minmax(0, 1fr);
    gap: var(--timeline-gap);
  }
  .paper-steps > li {
    padding: 0 0 0 62px;
  }
  .paper-steps > li:not(:last-child)::before {
    top: 45px;
    left: 20.5px;
    width: 1px;
    height: calc(100% + var(--timeline-gap));
  }
  .paper-steps .step-number {
    top: 24px;
    left: 0;
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .step-paper {
    padding: 22px;
  }
  .step-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .paper-steps .step-heading h3 {
    font-size: 17px;
  }
  .step-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .step-icon svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 359px) {
  .step-heading .step-icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paper-steps.is-timeline-ready > li > :is(.step-number, .step-paper) {
    opacity: 1;
  }
  .paper-steps.is-timeline-ready > li:not(:last-child)::before {
    transform: none;
  }
}

/* One fixed-size control morphs between burger and close. */
.menu-disclosure > summary {
  width: 44px;
  padding: 10px;
  justify-content: center;
  border: 0;
  background: transparent;
}
.menu-disclosure > summary::after,
.menu-disclosure[open] > summary::after {
  content: none;
}
@media (max-width: 899px) and (max-height: 600px) {
  .menu-disclosure .mobile-nav {
    justify-content: flex-start;
    padding-top: 92px;
  }
  .menu-disclosure .mobile-nav-links {
    gap: 4px;
  }
}
.menu-disclosure > summary svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.menu-burger-icon path {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 360ms var(--ease),
    opacity 180ms ease;
}
.menu-disclosure[open] .menu-line-top {
  transform: translateY(6px) rotate(45deg);
}
.menu-disclosure[open] .menu-line-middle {
  opacity: 0;
  transform: scaleX(0.6);
}
.menu-disclosure[open] .menu-line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 899px) {
  html:has(.menu-disclosure[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
    background: var(--cream);
  }
  .site-header:has(.menu-disclosure[open]) {
    backdrop-filter: none;
  }
  .menu-disclosure {
    position: static;
  }
  .menu-disclosure[open] > summary {
    position: relative;
    z-index: 42;
  }
  .site-header:has(.menu-disclosure[open]) .brand {
    position: relative;
    z-index: 41;
  }
  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    width: var(--menu-viewport-width, 100vw);
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--cream);
    box-shadow: none;
  }
  .mobile-nav-links {
    display: flex;
    width: min(calc(100% - var(--gutter) * 2), 480px);
    flex: none;
    flex-direction: column;
    gap: 8px;
    padding-block: env(safe-area-inset-top, 0px)
      env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav a {
    min-height: 54px;
    justify-content: center;
    padding: 8px 12px;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 500;
    text-align: center;
  }
  .mobile-nav .button {
    min-height: 48px;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 400;
  }
}
@media (max-width: 899px) {
  .workbench-hero {
    padding-top: 34px;
  }
  .workbench-intro h1 {
    font-size: 54px;
  }
  .workbench-picture img {
    height: 290px;
  }
}
@media (max-width: 639px) {
  .workbench-hero {
    padding: 30px 0 24px;
  }
  .workbench-intro {
    margin-bottom: 26px;
  }
  .workbench-intro .eyebrow {
    font-size: 10px;
    letter-spacing: 0.04em;
    margin-bottom: 17px;
  }
  .workbench-intro h1 {
    font-size: clamp(40px, 9vw, 49px);
    line-height: 1.12;
  }
  .workbench-intro h1 span {
    display: block;
  }
  .workbench-copy {
    margin: 20px auto 23px;
    font-size: 15px;
    line-height: 1.7;
    max-width: 380px;
  }
  .workbench-actions {
    flex-direction: column;
    gap: 4px;
  }
  .workbench-actions .button {
    width: min(100%, 290px);
  }
  .workbench-services {
    font-size: 13px;
    min-height: 40px;
  }
  .workbench-picture img {
    height: 220px;
    object-position: 70% center;
  }
  .workbench-picture figcaption {
    padding: 15px 9px;
    gap: 9px;
    font-size: 10px;
    line-height: 1.55;
  }
  .workbench-picture figcaption span + span {
    padding-left: 9px;
  }
  .brand.monogram img {
    flex-basis: 23.76px;
    width: 23.76px;
    height: 23.76px;
    margin-inline-end: -4.5px;
    max-height: none;
    /* Uncut Sans rounded glyphs end 0.381em below the line-box centre;
       the C ends 43.4% below the SVG centre. Keep their ink baselines aligned. */
    transform: translate(-0.5px, calc(0.381em - 43.4%));
  }
  .brand.monogram {
    gap: 0;
    font-size: clamp(14px, 4vw, 17px);
  }
  .brand-name {
    font-size: inherit;
  }
  .site-header > .container {
    gap: 12px;
  }
}

/* One shared smooth shadow and hairline ring for white and cream cards. */
.service-card,
.borough-card,
.article-card,
.at-a-glance,
.enquiry-paper {
  border: 0;
  background: linear-gradient(145deg, #fff, #fdfcf9);
  box-shadow: var(--card-shadow);
}
.about-picture {
  box-shadow: var(--card-shadow);
}
.article-card {
  padding: 28px;
  border-radius: var(--radius);
}
.article-card .card-copy {
  padding-top: 22px;
}
.article-card .card-copy > p:not(.eyebrow) {
  flex: 1;
}
a.text-link,
a.workbench-services {
  gap: var(--text-link-gap);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  a.text-link:hover,
  a.workbench-services:hover {
    text-decoration: underline;
    text-underline-offset: var(--text-link-underline-offset);
  }
}
.text-link-arrow {
  position: relative;
  top: 1px;
  flex-shrink: 0;
  width: var(--text-link-arrow-size);
  height: var(--text-link-arrow-size);
  stroke: currentColor;
  stroke-width: 0.2;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.text-link:hover .text-link-arrow,
  a.workbench-services:hover .text-link-arrow {
    transform: translate(var(--text-link-arrow-travel), calc(-1 * var(--text-link-arrow-travel)));
  }
}
.button.secondary.hover-arrow {
  position: relative;
  padding-inline: 25px;
}
#how .button.secondary.hover-arrow {
  padding-inline: 32px;
}
.button.secondary.hover-arrow {
  border-color: transparent;
  background: #fff;
  opacity: 1;
  box-shadow: var(--button-shadow);
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .button.secondary.hover-arrow:hover {
    border-color: transparent;
    background: #fff;
    opacity: 1;
    box-shadow: var(--button-shadow-hover);
    transform: none;
  }
}
.about-heading {
  width: fit-content;
  max-width: 100%;
  text-align: center;
}
.blog-guides {
  padding-bottom: 36px;
}
.blog-introduction {
  padding-top: 36px;
}
.article-card > .guide-art {
  min-height: 220px;
  flex-shrink: 0;
  padding: 20px;
  border-radius: 4px;
}
.article-card .guide-art img {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  object-fit: contain;
}
.article-aside .button {
  width: 100%;
  padding-inline: 14px;
  font-size: 13px;
}
.button.secondary.hover-arrow .button-label {
  font: inherit;
  transition: transform 320ms var(--ease);
}
.button.secondary.hover-arrow .button-hover-arrow {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 0.2;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 220ms ease,
    transform 320ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .button.secondary.hover-arrow:hover .button-label {
    transform: translateX(-9px);
  }
  .button.secondary.hover-arrow:hover .button-hover-arrow {
    opacity: 1;
    transform: none;
  }
  #how .button.secondary.hover-arrow .button-hover-arrow {
    right: 15px;
  }
}
.site-footer .brand.monogram img {
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}
.site-footer .brand-name {
  color: #fff;
}
.footer-grid {
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-grid > div > a:not(.brand) {
  width: fit-content;
  min-height: 44px;
}
.footer-intro p {
  max-width: 30ch;
}
@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
  .blog-guides {
    padding-bottom: 24px;
  }
  .blog-introduction {
    padding-top: 24px;
  }
}
.service-card,
.borough-card,
.article-card,
.guide-polaroid {
  transition:
    opacity 650ms var(--ease),
    translate 750ms var(--ease),
    transform 400ms var(--ease),
    box-shadow 400ms var(--ease),
    border-color 300ms ease;
}
.service-card.is-reveal-ready,
.borough-card.is-reveal-ready,
.article-card.is-reveal-ready,
.guide-polaroid.is-reveal-ready {
  transition-delay:
    var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms;
}
.button {
  transition:
    opacity 650ms var(--ease),
    translate 750ms var(--ease),
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 320ms var(--ease),
    transform 320ms var(--ease);
}
.button.is-reveal-ready {
  transition-delay:
    var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms, 0ms;
}
.area-chips a,
.detail-badges li {
  transition:
    opacity 650ms var(--ease),
    translate 750ms var(--ease),
    background-color 250ms ease,
    border-color 250ms ease;
}
.area-chips a.is-reveal-ready,
.detail-badges li.is-reveal-ready {
  transition-delay:
    var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}
.mobile-nav a {
  transition:
    color 240ms ease,
    background-color 240ms ease;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card:hover,
  .borough-card:hover,
  .article-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
  }
  .button:hover {
    transform: translateY(-1px);
  }
  .button:active {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-reveal-ready,
  .is-revealed {
    opacity: 1;
    translate: none;
  }
}
