/* Laimos Construction & Development
   The look follows the company book: warm paper, charcoal ink, light lettering,
   small wide-spaced capitals, and large photographs with room around them. */

/* Commissioner, served from this site (no requests to Google) */
@font-face {
  font-family: "Commissioner"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("assets/fonts/commissioner-greek-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("assets/fonts/commissioner-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("assets/fonts/commissioner-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #f4f3f0;      /* the paper of the cover drawing */
  --sand: #e9e5dc;
  --ink: #262422;
  --stone: #666159;
  --wide: 1560px;         /* content never gets wider than this; it centres on larger screens */
  --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --line: #d6d1c7;
  --oak: #8b6b4a;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(80px, 12vw, 190px);
  --font: "Commissioner", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background: var(--paper);
  color: var(--ink);
  font: 300 1.0625rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Language switching: both languages are in the page, one is hidden */
html[lang="en"] [lang="el"],
html[lang="el"] [lang="en"] { display: none; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

h1, h2 { font-weight: 200; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.25rem); }
h3 { font-size: 1.1875rem; font-weight: 400; line-height: 1.3; }

p { max-width: 64ch; }
p + p { margin-top: 1.1em; }
.large { font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.4; font-weight: 200; max-width: 30ch; }
.note { font-size: 0.875rem; line-height: 1.6; color: var(--stone); max-width: 78ch; }

/* The book's small wide-spaced capitals */
.caps {
  font-size: 0.8125rem; font-weight: 400; line-height: 1.8;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--stone);
  max-width: none;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 30; }
.skip:focus { left: 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 18px max(var(--edge), env(safe-area-inset-right)) 18px max(var(--edge), env(safe-area-inset-left));
  background: rgb(244 243 240 / 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 350ms ease;
}
.top.is-hidden { transform: translateY(-100%); }   /* hidden while scrolling down, back when scrolling up */
.top__menu {
  display: none;
  font: 400 0.75rem/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase;
  min-height: 44px; padding: 0 0 0 8px; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.top__menu .when-open, .top.is-open .top__menu .when-closed { display: none; }
.top.is-open .top__menu .when-open { display: inline; }
.top__logo { margin-right: auto; }
.top__logo img { width: clamp(150px, 15vw, 196px); opacity: 0.88; }
.top__nav { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.top__nav a {
  text-decoration: none; font-size: 0.75rem; font-weight: 400; white-space: nowrap;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid transparent;
}
.top__nav a:hover { border-bottom-color: var(--ink); }

.lang { display: flex; gap: 2px; }
.lang button {
  font: 400 0.75rem/1 var(--font); letter-spacing: 0.14em;
  padding: 8px 8px; border: 0; background: none; color: var(--stone); cursor: pointer;
  border-bottom: 1px solid transparent;
}
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.btn {
  display: inline-block; padding: 17px 30px;
  border: 1px solid currentColor; text-decoration: none;
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background-color 200ms, color 200ms;
}

/* Opening screen: the slogan over the cover drawing */
.hero {
  min-height: calc(100vh - 86px);
  min-height: calc(100svh - 86px);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero__text { padding: clamp(40px, 7vh, 96px) var(--edge) 0; }
.hero h1 {
  font-size: clamp(1.5rem, 5.2vw, 5.25rem);
  font-weight: 200; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.25;
  margin-right: -0.3em;
}
.hero__text .caps { margin-top: clamp(16px, 2.4vw, 32px); }

/* The drawing is as wide as the screen allows while the whole opening still fits in one view */
.hero__art { position: relative; padding-bottom: 64px; margin-left: auto; margin-right: max(0px, calc((100% - var(--wide)) / 2)); width: min(100%, var(--wide), calc((100svh - 310px - 3.5vw) * 2.473)); min-width: min(100%, 720px); }
.hero__art img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%), linear-gradient(to right, transparent, #000 7%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 14%), linear-gradient(to right, transparent, #000 7%, #000 97%, transparent);
  mask-composite: intersect;
}

/* On opening, the drawing is revealed from left to right: foundations first, finished building last */
.hero__draw {
  -webkit-mask: linear-gradient(to right, #000 86%, transparent) no-repeat 0 0 / 118% 100%;
  mask: linear-gradient(to right, #000 86%, transparent) no-repeat 0 0 / 118% 100%;
  animation: build 2600ms cubic-bezier(0.45, 0.05, 0.3, 1) 250ms both;
}
@keyframes build { from { -webkit-mask-size: 0% 100%; mask-size: 0% 100%; } to { -webkit-mask-size: 118% 100%; mask-size: 118% 100%; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.hero__stages { counter-reset: stage; }
.hero__stages li {
  counter-increment: stage;
  position: absolute; bottom: 14px; transform: translateX(-50%);
  text-align: center; white-space: nowrap; font-size: 0.75rem; line-height: 1.7;
  animation: appear 700ms ease both;
}
.hero__stages li:nth-child(1) { animation-delay: 700ms; }
.hero__stages li:nth-child(2) { animation-delay: 1250ms; }
.hero__stages li:nth-child(3) { animation-delay: 1800ms; }
.hero__stages li:nth-child(4) { animation-delay: 2400ms; }
.hero__stages li::before { content: "0" counter(stage); display: block; color: var(--ink); }

/* Who we are */
.about {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 7vw, 120px); align-items: center;
  padding: var(--section) var(--edge);
}
.about h2 { margin-bottom: 14px; }
.about .caps { margin-bottom: 40px; }
.about__img { width: 100%; }

.figures { display: flex; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 72px); }
.figures div { flex: 1 1 0; min-width: 130px; padding-right: 24px; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figures dd { font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 200; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.figures dt { margin-top: 10px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.7; color: var(--stone); }

/* What we do */
.services { padding: var(--section) var(--edge); background: var(--sand); }
.services__head { margin-bottom: clamp(36px, 5vw, 80px); }
.services__head h2 { margin-bottom: 14px; }
.services__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
.services__list > li { padding-top: 24px; border-top: 1px solid var(--ink); }
.services__list h3 { margin-bottom: 14px; min-height: 2.6em; }
.services__list p { font-size: 1rem; color: #4a4741; }

/* Work: a few chapters, each with a handful of large photographs */
.work { padding: 0 var(--edge); }
.chapter { padding-top: clamp(64px, 8vw, 128px); }
.chapter__head { margin-bottom: clamp(28px, 4vw, 60px); }
.chapter__head h2 { max-width: 16ch; margin-bottom: 16px; }
/* One title for the whole of the work; each chapter below it carries a smaller one */
.work__head { padding-top: var(--section); }
.work__head + .chapter { padding-top: clamp(44px, 6vw, 96px); }
.chapter__head h3 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); font-weight: 200; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; margin-bottom: 14px; }
.work__note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; max-width: none; margin-top: clamp(56px, 8vw, 120px); padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 200; line-height: 1.4; }
.work__note a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--ink); }
.work__note a:hover { color: var(--stone); border-bottom-color: var(--stone); }

.chapter__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; font: inherit; color: inherit; text-align: left; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.2, 0.7, 0.1, 1); }
@media (hover: hover) { .shot:hover img { transform: scale(1.025); } }
.shot--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--wide { aspect-ratio: 3 / 2; }

/* Photos fade in once as they scroll into view (only when the script is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1000ms ease, transform 1000ms cubic-bezier(0.2, 0.7, 0.1, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Blocks that sit side by side follow one another */
.build__cols > .reveal:nth-child(2), .contact__main > .reveal:nth-child(2) { transition-delay: 140ms; }
.build__cols > .reveal:nth-child(3) { transition-delay: 280ms; }

.shot__cap { display: block; padding-top: 12px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* New build */
.build { padding: var(--section) var(--edge); }
.build__hero { aspect-ratio: 16 / 9; }
.build__intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  align-items: start; padding: clamp(40px, 6vw, 96px) 0;
}
.build__intro .figures { margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
.build__intro .figures div { min-width: 0; }
.build__intro .figures div:nth-child(odd) { padding-left: 0; border-left: 0; }
.build__intro .figures dd { font-size: clamp(1.75rem, 3.4vw, 3.25rem); }

.build__cols { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: clamp(28px, 4vw, 72px); }
.build__cols h3 { margin-bottom: 18px; }
.build__cols li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.build__cols li:last-child { border-bottom: 1px solid var(--line); }
.build__cols--two { grid-template-columns: 1fr 1fr; }
.build__cols + .stage { margin-top: clamp(56px, 7vw, 110px); }
/* The penthouse: one residence of the building, presented under it */
.build__unit { margin-top: var(--section); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.build__unit .build__intro { padding-top: 0; }
.build__intro > div > .large { margin-bottom: 24px; }

.build__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); margin: clamp(48px, 7vw, 110px) 0; }
.build__gallery .shot { background: none; overflow: visible; }
.build__gallery .shot img { aspect-ratio: 16 / 10; height: auto; }
.build__gallery .shot:hover img { transform: none; }
.shot--plan img { object-fit: contain; background: #fff; padding: 3%; }

.stage h3 { margin-bottom: 28px; }
.stage__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; margin-bottom: 28px; }
.stage__steps li { counter-increment: step; padding: 18px 18px 0 0; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.5; color: var(--stone); }
.stage__steps li::before { content: "0" counter(step); display: block; font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 8px; }
.stage__steps strong { display: block; color: var(--ink); font-weight: 400; font-size: 1.0625rem; }
.stage__steps .is-done, .stage__steps .is-now { border-top: 2px solid var(--ink); }
.stage__steps .is-now { border-image: linear-gradient(to right, var(--ink) 80%, var(--line) 80%) 1; }
.stage__steps .is-now::before, .stage__steps .is-done::before { color: var(--oak); }

/* Contact and footer */
.contact { background: var(--ink); color: var(--paper); padding: var(--section) var(--edge) calc(48px + env(safe-area-inset-bottom)); }
.contact__main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); }
.contact h2 { margin-bottom: 28px; }
/* Contact details: a small label, then the detail, each on a thin rule */
.contact__list { margin: 0; }
.contact__list > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid #45423e; }
.contact__list > div:last-child { border-bottom: 1px solid #45423e; }
.contact__list dt { color: #b9b4aa; }
.contact__list dd { grid-column: 2; margin: 0; }
.contact__list a {
  display: inline-block; font-weight: 300; line-height: 1.4;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
}
.contact__list a:hover { border-bottom-color: currentColor; }
.contact :focus-visible { outline-color: var(--paper); }
.contact__foot { margin-top: var(--section); padding-top: 44px; border-top: 1px solid #45423e; }
.contact__foot img { width: 210px; margin-bottom: 28px; opacity: 0.92; }
.contact__foot .caps { color: #b9b4aa; margin-bottom: 28px; }
.contact__foot .note { color: #9c978e; }
.privacy { margin: 28px 0; color: #9c978e; font-size: 0.875rem; max-width: 72ch; }
.privacy summary { cursor: pointer; color: #b9b4aa; font: 400 0.75rem/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 0; }
.privacy summary:hover { color: var(--paper); }
.privacy p { margin-top: 12px; }
.privacy a { color: inherit; }

/* Photo viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1b1a18; color: var(--paper); }
.viewer[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: appear 300ms ease; }
.viewer figure img { opacity: 0; transition: opacity 400ms ease; }
.viewer figure img.is-ready { opacity: 1; }
.viewer::backdrop { background: #1b1a18; }
.viewer figure { display: flex; align-items: center; justify-content: center; height: 100dvh; padding: 56px 8px 32px; min-width: 0; }
.viewer img { max-height: calc(100dvh - 96px); width: auto; max-width: 100%; object-fit: contain; }
.viewer button { background: none; border: 0; color: var(--paper); cursor: pointer; font: 200 2.75rem/1 var(--font); padding: 12px 20px; }
.viewer button:hover { opacity: 0.6; }
.viewer :focus-visible { outline-color: var(--paper); }
.viewer__close { position: absolute; top: 4px; right: 8px; z-index: 1; }

/* Smaller screens */
@media (max-width: 1000px) {
  .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__list h3 { min-height: 0; }
  .build__intro, .contact__main { grid-template-columns: 1fr; }
  .build__cols { grid-template-columns: 1fr 1fr; }
  .build__cols > :first-child { grid-column: 1 / -1; }
  .build__cols--two > :first-child { grid-column: auto; }
  .stage__steps { grid-template-columns: 1fr; }
  .stage__steps li { padding-bottom: 18px; }
}

/* Phones and upright tablets: the links move into a menu that opens under the header */
@media (max-width: 1080px) {
  html { scroll-padding-top: 76px; }
  .top { padding-block: 10px; gap: 12px; }
  .top__menu { display: block; }
  .top__nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 100%); height: calc(100dvh - 100%);
    flex-direction: column; gap: 0;
    padding: 12px var(--gutter) 40px; background: var(--paper); overflow-y: auto;
  }
  .top.is-open { background: var(--paper); }
  .top.is-open .top__nav { display: flex; }
  .top__nav a { font-size: 1rem; letter-spacing: 0.24em; padding: 26px 0; border-bottom: 1px solid var(--line); }
  .lang button { min-height: 44px; padding-inline: 10px; }
  body.menu-open { overflow: hidden; }
  .hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
}

@media (max-width: 820px) {
  .hero h1 { letter-spacing: 0.22em; margin-right: 0; font-size: clamp(1.6rem, 7.4vw, 3rem); }
  .hero__art { padding-bottom: 0; width: 100%; }
  .hero__art img { width: 190%; max-width: none; margin-left: -90%; }   /* show the finished building large */
  .hero__stages { display: none; }
  .about { grid-template-columns: 1fr; }
  .shot--lead { aspect-ratio: 4 / 3; }
  .contact__list a { padding-block: 4px; }
  .contact__list > div { grid-template-columns: 1fr; }
  .contact__foot { margin-top: 48px; padding-top: 36px; }
  .contact__list dd { grid-column: 1; }
  .figures dd { font-size: clamp(1.75rem, 8vw, 2.75rem); }
  .figures dt { letter-spacing: 0.14em; }
  .figures div { min-width: 0; padding-right: 12px; }
  .figures div + div { padding-left: 12px; }
  .build__intro .figures dd { font-size: clamp(1.75rem, 8vw, 2.75rem); }
}

@media (max-width: 560px) {
  /* Phone opening: the slogan sits lower and the finished building is drawn as large as the screen height allows */
  .hero__text { padding-top: 11vh; padding-top: 11svh; }
  .hero__art img { --w: clamp(190%, calc((100svh - 330px) * 2.473), 240%); width: var(--w); margin-left: calc(100% - var(--w)); }
  .services__list, .build__cols, .chapter__photos, .build__gallery { grid-template-columns: 1fr; }
  .viewer[open] { grid-template-columns: 1fr; }
  .viewer__nav { position: absolute; bottom: 4px; }
  .viewer__nav--prev { left: 8px; }
  .viewer__nav--next { right: 8px; }
  .viewer figure { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__draw, .hero__stages li, .viewer[open] { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .top, .viewer figure img { transition: none; }
  .top.is-hidden { transform: none; }
  .shot img { transition: none; }
  .shot:hover img { transform: none; }
}

/* Rows laid out as in the company book: photos keep their own shape and share one height per row */
.chapter__rows { display: flex; flex-direction: column; gap: clamp(12px, 1.8vw, 28px); }
.row { display: flex; gap: clamp(12px, 1.8vw, 28px); }
.row .shot { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); }
@media (max-width: 560px) {
  .row { flex-direction: column; }
  .row .shot { flex: none; }
}

/* What we do: each service is a name, a short line and a sentence. On first view the rule above
   each one is drawn from the left and its text follows, one column after another. */
.services__list > li { position: relative; border-top: 0; }
.services__list > li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid var(--ink); transform-origin: left; }
/* Name, line and sentence share rows across the columns, so they line up whatever the text length */
.services__list { row-gap: 0; }
.services__list > li { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 16px; padding-bottom: clamp(24px, 3vw, 56px); }
.services__list .caps { margin: 0; }
.services__list h3 { font-size: clamp(1.4rem, 1.9vw, 1.75rem); font-weight: 200; line-height: 1.2; min-height: 0; margin: 0; }
.services__list > li > p { margin: 0; }
.services__text p { font-size: 1rem; color: #4a4741; }

.services__list.will-draw > li::before { transform: scaleX(0); }
.services__list.will-draw > li > * { opacity: 0; transform: translateY(16px); }
.services__list.will-draw.is-in > li::before { transform: none; transition-property: transform; transition-duration: 1100ms; transition-timing-function: cubic-bezier(0.2, 0.7, 0.1, 1); }
.services__list.will-draw.is-in > li > * { opacity: 1; transform: none; transition-property: opacity, transform; transition-duration: 800ms; transition-timing-function: ease, cubic-bezier(0.2, 0.7, 0.1, 1); }
.services__list.is-in > li:nth-child(2)::before { transition-delay: 180ms; }
.services__list.is-in > li:nth-child(3)::before { transition-delay: 360ms; }
.services__list.is-in > li:nth-child(4)::before { transition-delay: 540ms; }
.services__list.is-in > li:nth-child(1) > * { transition-delay: 250ms; }
.services__list.is-in > li:nth-child(2) > * { transition-delay: 430ms; }
.services__list.is-in > li:nth-child(3) > * { transition-delay: 610ms; }
.services__list.is-in > li:nth-child(4) > * { transition-delay: 790ms; }
@media (prefers-reduced-motion: reduce) {
  .services__list.will-draw > li::before, .services__list.will-draw > li > * { transform: none; opacity: 1; transition: none; }
}

/* What we do: a number above each service, and below it the scope of works, folded away.
   A click on any "Scope of works" opens all four lists together and a second click closes them; on a phone each opens on its own. */
.services__list > li > .services__num { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--stone); margin-bottom: -8px; }
.scope__toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.scope__toggle::after { content: "+"; font-size: 1.125rem; font-weight: 300; letter-spacing: 0; line-height: 1; color: var(--stone); transition: transform 500ms cubic-bezier(0.2, 0.7, 0.1, 1); }
.scope__body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 700ms cubic-bezier(0.2, 0.7, 0.1, 1), visibility 0s 700ms; }
.scope__body > ul { min-height: 0; overflow: hidden; }
.scope__body li { padding: 9px 0; border-top: 1px solid #cdc7ba; font-size: 0.9375rem; line-height: 1.45; opacity: 0; transition: opacity 500ms ease; }
.scope__body li:last-child { border-bottom: 1px solid #cdc7ba; }
.services__list > li.is-open .scope__body { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.services__list > li.is-open .scope__body li { opacity: 1; transition-delay: 200ms; }
.services__list > li.is-open .scope__toggle::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .scope__body, .scope__body li, .scope__toggle::after { transition: none; }
}

/* Phones: a slim bar at the bottom to call or message, shown between the opening screen and the contact section */
.callbar { display: none; }
@media (max-width: 820px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform 400ms cubic-bezier(0.2, 0.7, 0.1, 1);
  }
  .callbar.is-shown { transform: none; }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 54px;
    color: var(--paper); text-decoration: none;
    font-size: 0.75rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  }
  .callbar a + a { border-left: 1px solid #45423e; }
  .callbar a:active { background: #3a3734; }
  body.menu-open .callbar { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }
