:root {
  --ink: #271e31;
  --muted: #5d5464;
  --plum: #40274f;
  --plum-dark: #2e1a3b;
  --teal: #08645d;
  --paper: #f8f6fa;
  --white: #fff;
  --line: #ded7e4;
  --mint: #e6f3ee;
  --lavender: #eee7f2;
  --wrap: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.62 var(--font); }
[hidden] { display: none !important; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.75rem); font-weight: 750; letter-spacing: -.058em; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.65rem); font-weight: 720; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.018em; }
p + p { margin-top: .8rem; }
svg, img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
form { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.reading { max-width: 73ch; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-180%); background: var(--white); padding: .65rem 1rem; }
.skip:focus { transform: none; }
.subtle { color: var(--muted); }
.overline { font-size: .85rem; font-weight: 700; color: var(--teal); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .66rem 1.03rem;
  border: 1px solid var(--plum);
  border-radius: 5px;
  color: var(--white);
  background: var(--plum);
  font-weight: 690;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { background: var(--plum-dark); }
.button--secondary { background: var(--white); color: var(--ink); border-color: #bfb4c7; }
.button--secondary:hover { background: var(--lavender); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.35rem; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: .4rem; font-weight: 660; }
.arrow { font-weight: 400; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.75rem; min-height: 72px; }
.wordmark { display: inline-flex; flex: 0 0 auto; gap: .63rem; align-items: center; text-decoration: none; color: var(--ink); line-height: 1.13; font-size: 1.06rem; font-weight: 760; }
.mark { display: grid; width: 36px; aspect-ratio: 1; place-items: center; color: var(--white); background: var(--plum); border-radius: 5px; font-size: 1.18rem; font-weight: 740; }
.brand-section { color: var(--teal); font-size: .84rem; font-weight: 650; display: block; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; column-gap: clamp(.8rem, 2.7vw, 2.15rem); row-gap: .25rem; }
.nav-list > a:not(.button) { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-weight: 620; font-size: .93rem; text-decoration: none; }
.nav-list > a:not(.button):hover, .nav-list a[aria-current]:not(.button) { color: var(--teal); text-decoration: underline; }
.nav-contact-mobile { display: none; }
.breadcrumbs { padding-top: .45rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .15rem .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs + .page-hero { padding-top: clamp(1.2rem, 3vw, 2.65rem); }

.home-hero { padding-block: clamp(2.2rem, 6vw, 5.25rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 5vw, 4.5rem); }
.hero-copy h1 { max-width: 15ch; }
.hero-copy > p { color: var(--muted); max-width: 45ch; margin-top: 1.05rem; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.sample-stage {
  --stage-focus: #ceefe4;
  position: relative;
  isolation: isolate;
  min-width: 0;
  border-radius: 11px;
  padding: clamp(.65rem, 2vw, 1.2rem);
  background: var(--plum);
  color: var(--white);
}
.sample-stage :focus-visible { outline-color: var(--stage-focus); }
.stage-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .6rem; margin-bottom: .7rem; }
.stage-label { font-size: .88rem; font-weight: 660; }
.sample-toggle { display: flex; flex-wrap: wrap; gap: .27rem; }
.sample-toggle button {
  min-height: 44px;
  padding: .36rem .57rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  font-size: .84rem;
  font-weight: 660;
}
.sample-toggle button:hover { border-color: #b79ac7; }
.sample-toggle button[aria-pressed="true"] { background: #eee5f3; color: var(--plum-dark); }
.paper-sheet { background: var(--white); color: var(--ink); border-radius: 4px; padding: clamp(.9rem, 2vw, 1.5rem); }
.paper-sheet :focus-visible { outline-color: var(--teal); }
.paper-sheet h2 { margin: .25rem 0 .4rem; font-size: clamp(1.35rem, 2.6vw, 1.92rem); }
.paper-sheet .subtle { font-size: .92rem; }
.mini-records { margin-top: .78rem; }
.mini-records > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: .6rem; padding: .48rem 0; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.4; }
.mini-records dt { font-weight: 700; }
.mini-records dd { color: var(--muted); }
.paper-sheet .text-link { margin-top: .35rem; }
.sample-stage .paper-sheet.is-visible { animation: sheet-in .16s ease-out; }
@keyframes sheet-in { from { opacity: .78; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.section { padding-block: clamp(2.5rem, 5.5vw, 4.8rem); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading p, .page-hero p { margin-top: .65rem; color: var(--muted); max-width: 64ch; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.service-grid article { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.25rem 1.15rem 0; }
.service-grid article + article { border-inline-start: 1px solid var(--line); padding-inline-start: 1.25rem; }
.service-grid article > p:not(.overline) { color: var(--muted); }
.service-grid .text-link { margin-top: auto; }
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; padding: 0; margin: 1.3rem 0 0; list-style: none; counter-reset: step; }
.process li { counter-increment: step; border-top: 2px solid var(--line); padding-top: .8rem; }
.process li::before { content: "0" counter(step); color: var(--teal); font-weight: 700; font-size: .85rem; }
.process h3 { margin: .34rem 0 .45rem; }
.process p { color: var(--muted); }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(1.15rem, 3.6vw, 2.5rem); background: var(--lavender); border-radius: 7px; }
.contact-band h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.contact-band p { color: var(--muted); margin-top: .4rem; }
.contact-band .button { flex: 0 0 auto; }

.page-hero { padding-block: clamp(2.2rem, 6vw, 4.55rem) clamp(1.65rem, 4vw, 3.5rem); }
.page-hero h1 { max-width: 21ch; font-size: clamp(2.3rem, 5.1vw, 4.25rem); }
.page-hero .overline { margin: 0 0 .6rem; color: var(--teal); }
.page-hero > p:not(.overline) { font-size: 1.1rem; }
.content-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 2rem clamp(2rem, 6vw, 5.2rem); }
.content-group + .content-group { margin-top: 1.6rem; }
.content-group h2, .report h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: .65rem; }
.content-group h3 { margin-bottom: .45rem; }
.plain-list { padding-inline-start: 1.2rem; margin: .65rem 0 0; }
.plain-list li + li { margin-top: .35rem; }
.side-note { padding: 1rem 1.1rem; background: var(--mint); border-inline-start: 3px solid var(--teal); }
.side-note p, .side-note ul { margin-top: .5rem; }
.service-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.service-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 5px; background: var(--white); font-weight: 650; }
.service-jump a:hover { background: var(--mint); border-color: var(--teal); }
.service-detail, #agency { scroll-margin-top: 1rem; }
.service-detail + .service-detail { margin-top: 1.65rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.service-detail p { margin-top: .55rem; }

.sample-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sample-card { display: flex; flex-direction: column; padding: clamp(1rem, 3.5vw, 1.65rem); background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.sample-card h2 { margin-top: .45rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.sample-card > p:not(.overline) { margin: .62rem 0 .85rem; color: var(--muted); }
.sample-card .text-link { margin-top: auto; }
.report { padding-bottom: 2.5rem; }
.report > * + * { margin-top: 1.6rem; }
.report p { max-width: 77ch; }
.report-box { padding: clamp(1rem, 3.5vw, 1.65rem); background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.report-table { width: 100%; border-collapse: collapse; text-align: left; }
.report-table :is(th, td) { padding: .7rem .65rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.report-table thead th { color: var(--muted); font-size: .9rem; }
.report-table tbody th { min-width: 7.2rem; }
.report-table td { font-size: .94rem; }
.report-table tbody tr:last-child > * { border-bottom: 0; }
.report-table td::before { display: none; }
.resume-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.resume-page { background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3.4vw, 1.8rem); }
.resume-page--edited { border-top: 3px solid var(--teal); }
.resume-page h2 { margin: .65rem 0 .1rem; font-size: 1.75rem; }
.resume-page h3 { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .85rem; }
.resume-page .plain-list { font-size: .96rem; }

.enquiry-form { padding: clamp(1rem, 3.5vw, 1.7rem); border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 680; }
.field :is(input, select, textarea), .draft textarea {
  min-height: 46px;
  width: 100%;
  min-width: 0;
  border: 1px solid #a79caf;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  padding: .6rem .7rem;
  font-size: 1rem;
}
.field textarea, .draft textarea { resize: vertical; }
.field small, .form-note { color: var(--muted); font-size: .88rem; }
.form-note { margin-bottom: .8rem; }
.draft { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.draft h2 { font-size: 1.35rem; }
.draft p { margin: .45rem 0 .6rem; }
.draft textarea { min-height: 9rem; margin-top: .5rem; }
.draft label { display: block; font-weight: 650; }
.draft .actions { margin-top: .55rem; }

.footer { margin-top: 2.4rem; border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.15rem; }
.footer nav { display: flex; flex-wrap: wrap; column-gap: 1rem; }
.footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
.footer .copyright { color: var(--muted); font-size: .84rem; }

@media (min-width: 761px) and (max-height: 640px) {
  .home-hero { padding-block: clamp(1.65rem, 5vh, 2.25rem); }
  .hero-copy h1 { font-size: clamp(2.55rem, 4.55vw, 3.75rem); }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--wrap), calc(100% - 2rem)); }
  .hero-grid, .content-columns { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-copy h1 { max-width: 18ch; }
  .hero-copy > p { margin-top: .75rem; }
  .nav-list { column-gap: .9rem; }
  .process { gap: .9rem; }
}

@media (max-width: 540px) {
  .masthead-inner { flex-wrap: wrap; gap: .35rem .75rem; padding-block: .55rem .15rem; }
  .nav-list { justify-content: flex-start; flex: 1 0 100%; column-gap: .85rem; }
  .nav-list .nav-contact { margin-inline-start: auto; min-height: 44px; padding: .45rem .65rem; font-size: .9rem; }
  .nav-contact-desktop { display: none; }
  .nav-contact-mobile { display: inline; }
  .service-grid, .process, .sample-index, .resume-pair { grid-template-columns: 1fr; }
  .service-grid article, .service-grid article + article { padding: .95rem 0 .6rem; border-inline-start: 0; }
  .service-grid article + article { border-top: 1px solid var(--line); }
  .contact-band { align-items: start; flex-direction: column; }
  .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .report-table, .report-table :is(tbody, tr, th, td) { display: block; }
  .report-table :is(th, td) { padding: .42rem 0; border-bottom: 0; }
  .report-table tr + tr { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
  .report-table td::before { content: attr(data-label); display: block; font-size: .83rem; font-weight: 700; }
}

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