:root {
  --paper: #f7f4ed;
  --ink: #30312f;
  --muted: #5f625a;
  --rust: #b4500f;
  --rust-dark: #96420c;
  --forest: #282f29;
  --line: #d9dbd0;
  --cream: #fff6e7;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
.contact-copy a:focus-visible { outline-color: var(--cream); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin-top: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.6vw, 92px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 28px; }
h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 0; }
h3 { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
p { margin-top: 0; max-width: 62ch; }

.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: -60px; left: 20px; background: var(--ink); color: white; padding: 12px; z-index: 100; }
.skip:focus { top: 10px; }
.visually-hidden, .form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header and footer */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; }
.brand img { width: 140px; height: auto; mix-blend-mode: multiply; }
.header nav { display: flex; align-items: center; gap: 36px; font-size: 16px; }
.header nav a:hover { color: var(--rust); }
.menu-toggle { display: none; }

.footer { display: flex; align-items: center; gap: 32px; padding-block: 32px; font-size: 15px; color: var(--muted); }
.footer .brand img { width: 100px; }
.footer > span { margin-left: auto; }
.footer > a:hover { color: var(--rust); }

/* Shared controls */
.button {
  display: inline-block;
  background: var(--rust);
  color: white;
  padding: 14px 24px;
  font-size: 16px;
  transition: background .15s;
}
.button:hover { background: var(--rust-dark); }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Sections share one two-column axis. */
.section-head, .firm, .capital-inner, .contact-with-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.section-head { margin-bottom: 56px; }
.section-head p { margin-bottom: 0; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 680px;
  padding-block: 64px 72px;
}
.hero h1 { font-size: clamp(48px, 5.6vw, 84px); }

/* Hero illustration: the layered PNCG stack. Decorative only. */
.hero-art {
  height: 540px;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 55% 48%, #d7ddcc 0, transparent 66%);
}
.art-grid {
  position: absolute;
  inset: 15px;
  background-image: linear-gradient(#d6d7ca66 1px, transparent 1px), linear-gradient(90deg, #d6d7ca66 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse, black, transparent 70%);
}
.orbit {
  position: absolute;
  border: 1px solid #bcc5b3;
  border-radius: 50%;
  width: 430px;
  height: 200px;
  top: 190px;
  left: 40px;
  transform: rotate(-35deg);
  z-index: -1;
}
.orbit-two { transform: rotate(45deg); width: 390px; left: 55px; }
.slab {
  position: absolute;
  width: 300px;
  height: 240px;
  left: calc(50% - 150px);
  border-radius: 5px;
  transform: rotate(-27deg) skewX(15deg);
  border: 1px solid #ffffff60;
}
.slab-bottom {
  top: 235px;
  background: linear-gradient(135deg, #668b71, #abc2a7);
  box-shadow: -9px 12px 0 #587b62, -23px 39px 40px #364d3133;
  padding: 20px;
}
.slab-bottom i { display: block; border-bottom: 1px solid #d1e2cf70; height: 30px; }
.slab-middle {
  top: 164px;
  background: linear-gradient(120deg, #dddcd1e8, #f5f2e7e8);
  box-shadow: -7px 10px 0 #b2b8a9, -20px 30px 30px #253b2522;
  padding: 21px;
}
.circuit {
  border: 1px solid #9aa88f;
  width: 200px;
  height: 85px;
  margin: 52px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.circuit b { height: 22px; width: 22px; background: #a1b39a; border: 4px solid #eff0e7; box-shadow: 0 0 0 1px #99a58e; }
.slab-top {
  top: 82px;
  background: linear-gradient(135deg, #383e37, #242b26);
  box-shadow: -7px 10px 0 #151e18, -17px 28px 35px #1d302344;
  padding: 26px;
  border: 1px solid #60705c;
}
.plate-mark {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: bold;
  letter-spacing: -6px;
  margin-top: 46px;
  color: #eaece4;
}
.plate-mark span:nth-child(1) { color: #e88a29; }
.plate-mark span:nth-child(2) { color: #9fbaa0; }
.plate-mark span:nth-child(3) { color: #d16716; }
.intro { font-size: 20px; line-height: 1.5; max-width: 34em; color: var(--muted); margin-bottom: 32px; }

.expertise { background: var(--forest); color: #f0f0e5; padding-block: 96px; }
.expertise .section-head p { color: #c5cdbf; }
.expertise .section-head-only { margin-bottom: 0; }
.services details { border-top: 1px solid #596151; }
.services details:last-child { border-bottom: 1px solid #596151; }
.services summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  padding-block: 24px;
}
.services summary::-webkit-details-marker { display: none; }
.services h3 { font-size: 30px; margin: 0; }
.expand { font-size: 28px; line-height: 1; transition: transform .15s; }
.services details[open] .expand { transform: rotate(45deg); }
.service-content { padding-bottom: 28px; color: #c5cdbf; }
.service-content p { margin-bottom: 12px; }
.service-content p:last-child { margin-bottom: 0; }
.service-content a { color: #f0f0e5; }

.experience { padding-block: 96px; }
.industry-list article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-block: 28px;
}
.industry-list h3, .industry-list p { margin: 0; }
.industry-list p { color: var(--muted); }

.automation-section { background: #eee9df; padding-block: 96px; }
.automation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
/* Each automation shows its flow: green steps are automated, the orange step is the handoff to a person. */
.flow {
  list-style: none;
  margin: 0 0 32px 8px;
  padding: 26px 24px;
  min-height: 210px;
  background: linear-gradient(135deg, #383e37, #242b26);
  color: #e8eadd;
  border: 1px solid #60705c;
  border-radius: 5px;
  box-shadow: -8px 10px 0 #9fbaa0, -18px 26px 30px #1d302333;
}
.flow li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.45; }
.flow li + li { margin-top: 20px; }
.flow li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9fbaa0;
  box-shadow: 0 0 0 3px #3a463c;
}
.flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 19px;
  bottom: -18px;
  width: 1px;
  background: #6f7c63;
}
.flow .handoff { color: #f5c79c; }
.flow .handoff::before { background: #e88a29; }
.automation-list p { color: var(--muted); margin-bottom: 0; }
.automation-bottom { max-width: none; margin: 48px 0 0; }

.firm { padding-block: 96px; }
.firm p { color: var(--muted); }
.firm p:last-child { margin-bottom: 0; }

.capital { background: #e5e8db; overflow: hidden; }
.capital-inner { padding-block: 72px; align-items: center; }
.capital h2 { margin-bottom: 20px; }
.capital-art { height: 360px; position: relative; isolation: isolate; }
.capital-letter {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 400px;
  line-height: .9;
  position: absolute;
  left: 45px;
  top: -25px;
  color: #8ca080;
  text-shadow: 2px 2px #b5c6a8, 14px 13px #74896b, 30px 35px 40px #56644433;
  transform: rotate(-9deg);
}
.capital-frame { position: absolute; inset: 20px 60px 10px 0; border: 1px solid #aab69e; transform: rotate(8deg); z-index: -1; }
.capital p { color: #4f574a; }

.contact { background: var(--rust); color: var(--cream); }
.contact-with-form { padding-block: 96px; align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy p:last-child { margin-bottom: 0; }

.enquiry-form { background: var(--paper); color: var(--ink); padding: 32px; min-width: 0; }
.enquiry-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.enquiry-form label { display: block; font-size: 16px; margin-bottom: 20px; }
.enquiry-form label > span { font-size: 15px; color: var(--muted); }
.enquiry-form input, .enquiry-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid #aaa99b;
  padding: 12px;
  margin-top: 6px;
  border-radius: 0;
}
.enquiry-form textarea { resize: vertical; min-height: 130px; }
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enquiry-form .button { border: 0; cursor: pointer; }
.enquiry-form .button:disabled { opacity: .55; cursor: wait; }
.form-status { font-size: 16px; margin: 18px 0 0; }
.form-status:empty { display: none; }
.form-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

/* contact.php fallback page */
.contact-page { max-width: 800px; padding-block: 48px; }
.contact-page h1 { font-size: 52px; margin-top: 32px; }
.contact-page .enquiry-form { margin-top: 28px; border: 1px solid var(--line); }

/* automation.html */
.automation-hero { padding-block: 72px; }
.automation-hero h1 { font-size: clamp(44px, 5.6vw, 76px); }
.breadcrumbs { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 88px; }
.offer { border-top: 1px solid #bab8ab; padding-top: 24px; }
.offer h2 { font-size: 30px; margin-bottom: 12px; }
.offer p, .offer li { color: var(--muted); }
.offer ul { padding-left: 18px; margin: 0; }
.process { padding-block: 88px; }
.process h2 { margin-bottom: 40px; }
.process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.process li { counter-increment: steps; }
.process li::before { content: counter(steps) '.'; font-family: var(--serif); font-size: 24px; color: var(--rust); }
.process strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; margin-block: 4px 8px; }
.process p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .section-head, .firm, .capital-inner, .contact-with-form { grid-template-columns: 1fr; gap: 16px; }
  .contact-with-form { gap: 40px; }
  .industry-list article { grid-template-columns: 1fr; gap: 6px; }
  .automation-list, .offer-grid, .process ol { grid-template-columns: 1fr; gap: 28px; }
  .automation-list { gap: 48px; }
  .flow { min-height: 0; margin-bottom: 24px; }
  .section-head { margin-bottom: 36px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-block: 48px 24px; gap: 0; }
  .hero-art { height: 495px; width: 100%; max-width: 490px; margin: -10px auto -30px; transform: scale(.88); }
  .orbit, .orbit-two { left: 0; max-width: 100%; }
  .capital-art { height: 280px; width: 100%; max-width: 340px; margin: 0 auto 24px; }
  .capital-letter { font-size: 315px; left: 30px; }
  .expertise, .experience, .automation-section, .firm, .process { padding-block: 64px; }
  .capital-inner, .contact-with-form { padding-block: 64px; }
  .offer-grid { padding-bottom: 56px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 120px; }
  .menu-toggle { display: block; border: 0; background: none; padding: 8px 0; font-size: 16px; cursor: pointer; color: inherit; }
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .header nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header nav a { padding-block: 12px; }
  .intro { font-size: 18px; }
  .services h3 { font-size: 24px; }
  .enquiry-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer { flex-wrap: wrap; gap: 12px 24px; }
  .contact-page h1 { font-size: 38px; }
}

@media (max-width: 420px) {
  .hero { overflow: hidden; }
  .hero-art { width: 340px; max-width: none; align-self: center; transform: scale(.72); margin-block: -55px -65px; }
  .capital-letter { font-size: 280px; }
  .capital-art { height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
