/* Ward Plastering. Palette from their logo: navy #27476e, brick orange #e99944, plaster #ddd8c4.
   Ours: deep navy #152f4f, light plaster #ebe7da, page #f4f2ec, ink #18222f.
   Type: Fraunces (headings, echoes "Plastering" in the logo) and Manrope (everything else). */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope.woff2") format("woff2"); }

:root {
  --navy: #27476e;
  --deep: #152f4f;
  --orange: #e99944;
  --plaster: #ddd8c4;
  --plaster-light: #ebe7da;
  --page: #f4f2ec;
  --ink: #18222f;
  --muted: #4a5568;
  --white: #fff;
  --shadow: 0 24px 60px -24px rgba(21, 47, 79, .5);
  --shadow-photo: 0 18px 40px -22px rgba(21, 47, 79, .55);
  --wrap: 1200px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
.panel :focus-visible, .band :focus-visible, .sto-card :focus-visible, .foot :focus-visible, .lightbox :focus-visible, .skip:focus-visible { outline-color: var(--orange); }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 540;
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); color: var(--deep); }
h3 { font-size: 1.45rem; color: var(--deep); }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--deep); color: var(--white); padding: .8rem 1.1rem; font-weight: 800; }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.5rem; border-radius: 4px; border: 0;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: var(--deep); }
.btn-orange:hover { background: #f1ab5e; }
.btn-ghost { color: var(--white); border: 2px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--deep); }
.btn-line { color: var(--navy); border: 2px solid var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--plaster); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; padding-block: .5rem; }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { width: 124px; }
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .7rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }
.top-call { margin-left: .4rem; }
.menu-btn { display: none; }

/* Hero: photo on the right, navy panel overlapping its left edge */
.hero { position: relative; padding: 2.5rem 0 3.5rem; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 6.5rem; width: 66%; overflow: hidden; background: var(--plaster); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-grid { position: relative; min-height: clamp(640px, 36vw, 860px); display: flex; align-items: flex-end; }
.panel {
  position: relative;
  width: min(700px, 100%);
  background: var(--navy);
  color: var(--white);
  padding: 3rem 3rem 2.5rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--orange);
}
.panel h1 { font-size: clamp(2.4rem, 1.5rem + 3.1vw, 3.9rem); color: var(--white); max-width: 13ch; }
.lede { margin-top: 1.2rem; font-size: 1.125rem; line-height: 1.5; max-width: 42ch; color: rgba(255, 255, 255, .92); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.proof {
  list-style: none; margin-top: 1.75rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .24);
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .93rem; font-weight: 600; color: var(--plaster);
}
.proof li { position: relative; padding-left: .85rem; }
.proof li::before { content: ""; position: absolute; left: 0; top: .42em; width: 3px; height: .8em; background: var(--orange); }

/* Inner page hero (About, Work): the same panel, shorter */
.hero-inner .hero-grid { min-height: clamp(470px, 26vw, 640px); }
.hero-inner .panel h1 { max-width: 14ch; }
.hero-work .hero-photo img { object-position: 60% 40%; }
@media (min-width: 861px) { .hero-about .hero-photo img { object-position: 55% 76%; } }
.hero + .section { padding-top: 3rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); max-width: 46ch; }

/* Work: one big photo, the rest around it */
.jobs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.job { margin: 0; }
.job a { display: block; overflow: hidden; box-shadow: var(--shadow-photo); background: var(--plaster); }
.job img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.job a:hover img { transform: scale(1.03); }
.job p { margin-top: .7rem; font-weight: 600; color: var(--deep); font-size: .98rem; }
.job-lead { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.job-lead a { flex: 1; }
.job-lead img { height: 100%; aspect-ratio: auto; min-height: 320px; object-position: 50% 25%; }
.job-wide { grid-column: span 2; }
.job-wide img { aspect-ratio: 2.75; object-position: 50% 66%; }
.jobs-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jobs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
.more { margin-top: 2.75rem; }

/* Up close: finishes on a plaster band */
.close { background: var(--plaster-light); border-top: 1px solid var(--plaster); border-bottom: 1px solid var(--plaster); }
.finishes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.finishes a { display: block; overflow: hidden; background: var(--plaster); }
.finishes img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.finishes li:nth-child(1) img { object-position: 12% 40%; }
.finishes li:nth-child(2) img { object-position: 25% 55%; }
.finishes li:nth-child(4) img { object-position: 80% 80%; }
.finishes p { margin-top: .7rem; font-weight: 600; color: var(--deep); font-size: .98rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; }
.services-intro p { margin: 1.1rem 0 1.6rem; color: var(--muted); max-width: 34ch; }
.services-photo { margin: 3rem 0 0; max-width: 440px; }
.services-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-photo); }
.services-photo figcaption { margin-top: .7rem; font-weight: 600; color: var(--deep); font-size: .98rem; }
.service-list > div { padding: 1.3rem 0; border-top: 1px solid var(--plaster); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .3rem 2rem; }
.service-list > div:last-child { border-bottom: 1px solid var(--plaster); }
.service-list dt { font-weight: 800; color: var(--deep); font-size: 1.1rem; }

/* Why STO: navy card that hangs into the next band */
.sto { padding: 5.5rem 0 0; background: linear-gradient(to bottom, var(--page) 0 70%, var(--plaster-light) 70% 100%); }
.sto-card {
  background: var(--navy); color: var(--white);
  padding: 3.25rem 3rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem 4rem; align-items: end;
  border-top: 6px solid var(--orange);
}
.sto-card h2 { color: var(--white); }
.sto-text p { margin-top: 1.1rem; color: rgba(255, 255, 255, .92); max-width: 52ch; }
.sto-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 1.75rem; }
.sto-link { color: var(--white); font-weight: 600; display: inline-flex; align-items: center; min-height: 48px; }
.marks-label { font-size: .95rem; font-weight: 600; color: var(--plaster); margin-bottom: .75rem; }
.marks ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.marks li { background: var(--white); border-radius: 3px; padding: .4rem; }
.marks img { width: 100%; }

/* Questions */
.faq { background: var(--plaster-light); padding-top: 5.5rem; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; margin-top: 2.25rem; }
.faq-list > div { padding: 1.3rem 0; border-top: 1px solid var(--plaster); }
.faq-list dt { font-weight: 800; color: var(--deep); font-size: 1.1rem; }
.faq-list dd { margin-top: .35rem; max-width: 50ch; }

/* The logo's plaster-over-brick course, used once above the contact section */
.course { display: block; width: 100%; height: 44px; }
.course .coat { fill: var(--plaster); }
html.js .course .coat { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.3, .6, .2, 1); }
html.js .course.in .coat { clip-path: inset(0 0 0 0); }

/* Contact */
.contact { padding: 5rem 0 5.5rem; }
.contact .course { margin-bottom: 3.5rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
.contact-intro p { margin-top: 1.1rem; max-width: 38ch; }
.contact-lines { list-style: none; margin-top: 1.75rem; font-weight: 800; font-size: 1.4rem; }
.contact-lines a { text-decoration: none; display: inline-flex; align-items: center; min-height: 46px; white-space: nowrap; }
.contact-lines a:hover { text-decoration: underline; }
.area { color: var(--muted); }
.enquiry { background: var(--white); padding: 2.25rem; box-shadow: var(--shadow); border-top: 6px solid var(--navy); display: grid; gap: .4rem; }
.enquiry label { font-weight: 600; font-size: .95rem; margin-top: .6rem; display: grid; gap: .4rem; }
.enquiry input, .enquiry textarea {
  font: inherit; width: 100%; min-height: 48px; padding: .6rem .8rem;
  border: 1px solid #77766a; border-radius: 4px; background: var(--page); color: var(--ink);
}
.enquiry textarea { resize: vertical; min-height: 120px; }
.enquiry input:focus-visible, .enquiry textarea:focus-visible { outline-offset: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry button { margin-top: .6rem; justify-self: start; }
.enquiry button:disabled { background: #c9cdd3; color: #4a5568; cursor: not-allowed; }
.enquiry [data-form-status] { font-weight: 600; margin-top: .4rem; }
.enquiry [data-form-status]:empty { display: none; }
.form-privacy { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

/* Call band on the inner pages */
.band { background: var(--navy); color: var(--white); padding: 4rem 0; border-top: 6px solid var(--orange); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band h2 { color: var(--white); }
.band p { margin-top: .6rem; color: rgba(255, 255, 255, .92); }
.band .actions { margin-top: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem 5rem; align-items: start; }
.prose > p { max-width: 58ch; font-size: 1.125rem; }
.prose > p + p { margin-top: 1.2rem; }
.prose > p:first-child { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 40; font-size: 1.55rem; line-height: 1.3; color: var(--deep); }
.stack { position: relative; padding: 0 0 3rem 3rem; }
.stack img { box-shadow: var(--shadow-photo); }
.stack img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stack img:last-child { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--page); object-position: 12% 40%; }
.marks-light { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--plaster); }
.marks-light .marks-label { color: var(--muted); }
.marks-light ul { max-width: 420px; }
.marks-light li { border: 1px solid var(--plaster); }

/* Work page */
.group + .group { margin-top: 4.5rem; }
.group h2 { margin-bottom: 1.75rem; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.jumps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-bottom: 3.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--plaster); font-weight: 600; }
.jumps a { display: inline-block; padding: .65rem 0; text-decoration: none; border-bottom: 2px solid transparent; }
.jumps a:hover { border-bottom-color: var(--orange); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: var(--white); }
.lightbox::backdrop { background: rgba(12, 24, 40, .94); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .75rem; padding: 1rem; }
.lb-bar { display: flex; justify-content: flex-end; gap: .5rem; }
.lb-btn { min-width: 48px; min-height: 48px; background: rgba(255, 255, 255, .12); color: var(--white); border: 0; border-radius: 4px; font: inherit; font-weight: 800; cursor: pointer; padding: 0 1rem; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem 1rem; }
.lb-cap { font-weight: 600; text-align: center; }

/* Footer */
.foot { background: var(--deep); color: rgba(255, 255, 255, .88); padding: 3.5rem 0 2.5rem; font-size: .97rem; }
.foot a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.foot-name { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.5rem; color: var(--white); margin-bottom: .5rem; }
.foot ul { list-style: none; }
.foot li a { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 0; min-height: 44px; }
.foot li svg { width: 1.2rem; height: 1.2rem; flex: none; }
.foot-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; color: rgba(255, 255, 255, .75); }
.foot-base a { display: inline-block; padding: .65rem .3rem; margin-inline: -.3rem; }

/* 404 */
.lost { padding: 7rem 0; min-height: 62vh; }
.lost p { margin: 1rem 0 2rem; max-width: 44ch; }

/* Motion: once, gated on html.js, off under reduced motion */
html.js .panel { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) .15s forwards; }
html.js .hero-photo img { animation: settle 7s cubic-bezier(.2, .6, .2, 1) forwards; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .panel, html.js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html.js .hero-photo img { animation: none; }
  html.js .course .coat { clip-path: none; transition: none; }
  .btn, .job img { transition: none; }
}

/* Tablet and phone */
@media (min-width: 861px) and (max-width: 1000px) {
  .panel { width: min(560px, 100%); padding: 2.5rem 2.25rem 2.25rem; }
}
@media (max-width: 1000px) {
  .nav { gap: 1.2rem; }
  .services-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .sto-card { grid-template-columns: 1fr; gap: 2.25rem; }
  .marks ul { max-width: 420px; }
  .finishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finishes li:nth-child(even) { margin-top: 0; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .top-row { min-height: 68px; gap: .6rem; flex-wrap: wrap; }
  .brand img { width: 100px; }
  .top-call { margin-left: auto; min-height: 44px; padding: 0 1rem; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0 1.4rem; flex-wrap: wrap; border-top: 1px solid var(--plaster); padding: .2rem 0 .4rem; }
  .nav a { padding: .65rem 0; }
  html.js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; background: none; border: 2px solid var(--navy); border-radius: 4px; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
  html.js .nav { display: none; }
  html.js .nav.open { display: flex; flex-direction: column; }
  html.js .nav.open a { border-bottom: 1px solid var(--plaster); padding: .8rem 0; }
  .hero { padding: 0 0 2.5rem; }
  .hero-photo { position: static; width: 100%; height: 250px; }
  .hero-photo img { object-position: 72% 45%; }
  .hero-grid, .hero-inner .hero-grid { min-height: 0; display: block; }
  .panel { margin-top: -3.5rem; padding: 1.75rem 1.4rem 1.6rem; }
  .menu-btn { order: 2; }
  .top-call { order: 1; }
  .lb-foot { grid-template-columns: 1fr 1fr; }
  .lb-cap { grid-column: 1 / -1; grid-row: 1; font-size: .95rem; }
  .lb-foot .lb-btn { justify-self: start; min-width: 7rem; }
  .lb-foot .lb-btn:last-child { justify-self: end; }
  .jumps { gap: 0 1.4rem; margin-bottom: 2rem; }
  .jobs-two { grid-template-columns: 1fr; gap: 1.5rem; }
  .prose > p:first-child { font-size: 1.3rem; }
  .sto { padding-top: 3.5rem; }
  .services-photo { margin-top: 2rem; }
  .panel h1 { max-width: none; }
  .band .actions { width: 100%; }
  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .jobs-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-lead { grid-row: auto; }
  .job-lead img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .job-wide img { aspect-ratio: 16 / 9; }
  .work .job:last-child { grid-column: 1 / -1; }
  .hero + .section { padding-top: 2rem; }
  .job p, .finishes p { font-size: .92rem; }
  .service-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .sto-card { padding: 2.25rem 1.4rem; }
  .faq { padding-top: 3.5rem; }
  .faq-list { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .contact { padding: 3rem 0 3.5rem; }
  .contact .course { margin-bottom: 2.25rem; height: 30px; }
  .enquiry { padding: 1.5rem 1.25rem; }
  .two { grid-template-columns: 1fr; }
  .stack { padding: 0 0 2rem 1.5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .lost { padding: 4rem 0; }
}
@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .contact .course { display: none; }
}
@media (max-width: 420px) {
  body { font-size: 1rem; }
  .contact-lines { font-size: 1.2rem; }
  .marks ul { gap: .5rem; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 1.75rem); }
  .top-row { gap: .5rem; }
  .brand img { width: 80px; }
  html.js .menu-btn { padding: 0 .6rem; }
  .top-call { padding: 0 .7rem; font-size: .92rem; }
  .hero-photo { height: 200px; }
  .panel h1 { font-size: 2.15rem; }
}
.job img[src*="grey-entry"] { object-position: 50% 52%; }
