/* Temoyo site prototype. Provisional look: calm, senior, unfussy, so the structure is what gets judged.
   Colour is provisional (Devon, 2026-11-07): verdigris green from round 2 A, strong blue with high contrast from round 2 B. */

:root {
  --ink: #14181f;
  --ink-2: #4a5260;
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --rule: #d9d6ce;
  --blue: #1f3bb3;
  --blue-dark: #162b85;
  --green: #2f6b5c;
  --green-wash: #e7efeb;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Placeholder and sample marks: visible on purpose, so nothing illustrative passes as real. */
.ph { background: #fff4c2; color: #4a3b00; padding: 0 4px; border-radius: 2px; font-size: .92em; }
.label-sample { display: inline-block; border: 1px solid var(--ink); padding: 2px 8px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.mark { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { color: #fff; }
.nav .btn:hover { text-decoration: none; color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); font: 600 15px var(--sans); padding: 10px 14px; border-radius: 4px; cursor: pointer; }

.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 4px; border: 0; font-size: 16px; font-family: var(--sans); cursor: pointer; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-plain { display: inline-block; color: var(--ink); font-weight: 600; padding: 13px 4px; }

/* Page top */
.hero { padding: 96px 0 80px; }
.hero h1 { max-width: 17em; }
.hero .lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 36em; margin-bottom: 32px; }
.page-top { padding: 72px 0 48px; }
.page-top h1 { max-width: 18em; }
.page-top .lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 38em; margin: 0; }
.crumb { font-size: 15px; margin-bottom: 20px; color: var(--ink-2); }
.crumb a { color: var(--ink-2); }

/* Sections: heading in a left column, content on the right */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 64px 0; border-top: 1px solid var(--rule); }
.split > h2 { font-size: 28px; }
.split > div > :last-child { margin-bottom: 0; }

/* The three things a client gets */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.three h3 { font-size: 24px; margin-bottom: 8px; }
.three p { color: var(--ink-2); margin: 0; }

/* Row lists: services, work, documents */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--rule); padding: 24px 0; }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows h3 { margin-bottom: 6px; }
.rows h3 a { color: var(--ink); text-decoration: none; }
.rows h3 a:hover { color: var(--blue); text-decoration: underline; }
.rows p { margin: 0 0 6px; }
.svc-list { list-style: none; padding: 0; margin: 8px 0 10px; }
.svc-list li { padding: 4px 0; }
.svc-list a { font-weight: 600; }

/* Group block on the services index */
.group { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--rule); }
.group .for { color: var(--ink-2); margin: 0 0 12px; }
.group .svc { border-top: 1px solid var(--rule); padding: 18px 0; }
.group .svc:first-child { border-top: 0; padding-top: 0; }
.group .svc h3 { font-size: 22px; margin-bottom: 4px; }
.group .svc p { margin: 0; color: var(--ink-2); }

/* Work rows */
.work-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.work-row .who { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.work-row .result { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--green); margin: 0; }
.tags { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button { font: 600 15px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 4px; padding: 9px 14px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { border: 1px dashed var(--rule); padding: 24px; color: var(--ink-2); }

/* Case study */
.facts { display: grid; grid-template-columns: 180px 1fr; margin: 0; border-top: 1px solid var(--rule); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 600; font-size: 15px; }
.result-box { background: var(--green-wash); border: 1px solid #b9d0c8; padding: 28px 32px; margin: 32px 0 0; }
.result-box p { font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--ink); margin: 0; }
.result-box .src { font-family: var(--sans); font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.prose { max-width: var(--measure); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; margin: 0 0 1em; }
table.data th, table.data td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data td.n, table.data th.n { text-align: right; }
table.data tr.total td { font-weight: 600; }

/* Principles and steps */
.principle { border-top: 1px solid var(--rule); padding: 22px 0; }
.principle:first-child { border-top: 0; padding-top: 0; }
.principle h3 { margin-bottom: 6px; }
.principle .out { color: var(--ink-2); font-size: 15px; margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 24px; color: var(--green); line-height: 1.2; }
.steps strong { display: block; }

/* Shapes */
.shape { border-top: 1px solid var(--rule); padding: 26px 0; display: grid; grid-template-columns: 1fr 220px; gap: 32px; }
.shape:first-child { border-top: 0; padding-top: 0; }
.shape h3 { margin-bottom: 6px; }
.shape dl { margin: 0; font-size: 15px; }
.shape dt { font-weight: 600; }
.shape dd { margin: 0 0 8px; color: var(--ink-2); }

/* Documents */
.docs { width: 100%; border-collapse: collapse; font-size: 16px; }
.docs th, .docs td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.docs th { font-size: 15px; }
.status { font-weight: 600; white-space: nowrap; }
.status.ok { color: var(--green); }
.status.gap { color: #8a3b12; }

/* Writing */
.post-meta { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.article { padding: 56px 0 64px; border-top: 1px solid var(--rule); }
.article .prose { font-size: 18px; }

/* Contact form */
form.start { display: grid; gap: 20px; max-width: 560px; }
form.start label { font-weight: 600; display: block; margin-bottom: 6px; }
form.start input, form.start textarea, form.start select { width: 100%; font: 400 17px var(--sans); padding: 12px; border: 1px solid #8f96a3; border-radius: 4px; background: #fff; color: var(--ink); }
form.start textarea { min-height: 140px; }
.form-note { padding: 14px 16px; background: var(--paper-2); display: none; }
.form-note.show { display: block; }

/* Closing contact block, on every page */
.close { background: var(--ink); color: #eef0f3; padding: 72px 0; }
.close .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.close h2 { color: #fff; margin-bottom: 10px; }
.close p { color: #c9ced6; margin: 0; max-width: 40em; }
.close a:not(.btn) { color: #fff; }
.close .btn { background: #fff; color: var(--ink); }
.close .btn:hover { background: #dfe4ff; color: var(--ink); }

/* Footer */
.site-foot { background: var(--ink); color: #c9ced6; border-top: 1px solid #2c333f; padding: 40px 0 48px; font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.site-foot a { color: #eef0f3; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { padding: 3px 0; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid #2c333f; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 18px; }
  .nav .btn { width: auto; margin-top: 8px; padding: 13px 22px; }
  .menu-btn { display: inline-block; }
  .site-head { position: relative; }
  .split, .group { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .three { grid-template-columns: 1fr; gap: 28px; }
  .work-row { grid-template-columns: 1fr; gap: 8px; }
  .shape { grid-template-columns: 1fr; gap: 12px; }
  .close .wrap { grid-template-columns: 1fr; align-items: start; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .hero .lede, .page-top .lede { font-size: 18px; }
  .page-top { padding: 48px 0 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .result-box { padding: 22px; }
  .result-box p { font-size: 22px; }
  .docs thead { display: none; }
  .docs tr { display: block; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .docs td { display: block; border: 0; padding: 2px 0; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}

/* Phone tap targets: list, footer and breadcrumb links get room to tap (inline prose links are left as text). */
.svc-list li { padding: 0; }
.svc-list a, .rows h3 a, .site-foot a, .crumb a, .group .svc h3 a, .shape .small a, .filter button { display: inline-block; padding-top: 6px; padding-bottom: 6px; }
.site-foot li { padding: 0; }
p > a:only-child, .group .small a, .facts a, .close a:not(.btn) { display: inline-block; padding-top: 6px; padding-bottom: 6px; }
.filter button { padding: 11px 14px; }
.skip { width: 1px; height: 1px; overflow: hidden; }
.skip:focus { width: auto; height: auto; }

[hidden] { display: none !important; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* 2026-11-08: insight line on case cards, the principal block, the one-finding story */
.work-row .insight { font-size: 16px; color: var(--ink-2); margin: 0 0 10px; }
.kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.principal { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.principal img { width: 100%; height: auto; border-radius: 4px; display: block; }
.principal h3 { margin-bottom: 10px; }
.story .q { font-family: var(--serif); font-size: 28px; line-height: 1.25; color: var(--ink); }
@media (max-width: 600px) {
  .principal { grid-template-columns: 1fr; gap: 20px; }
  .principal img { max-width: 220px; }
  .story .q { font-size: 23px; }
}
.harness { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); max-width: var(--measure); }
.lead-insight { max-width: var(--measure); margin-bottom: 40px; }
.lead-insight h3 { font-size: 32px; margin-bottom: 12px; }
.lead-insight p { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.two h3 { font-size: 24px; margin-bottom: 8px; }
.two p { color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .lead-insight h3 { font-size: 28px; } .lead-insight p { font-size: 18px; } }
.svc-acts { list-style: none; padding: 0; margin: 10px 0 6px; display: grid; gap: 8px; }
.svc-acts a { font-weight: 600; display: inline-block; padding: 6px 0; }
.svc-acts span { display: block; font-size: 15px; color: var(--ink-2); }
.group .svc .acts { font-size: 15px; margin-top: 6px; color: var(--ink-2); }

/* 2026-11-26: light water palette and glyph system */
:root { --mist: #f3f8f7; --pool: #e3f0ec; --shallow: #cfe4de; --sky: #e8edfb; }
.glyph { width: 48px; height: 48px; border-radius: 50%; background: var(--pool); color: var(--green); display: inline-grid; place-items: center; margin-bottom: 14px; }
.glyph svg, .mark-glyph svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.two .glyph { background: var(--sky); color: var(--blue); }
.rows > li > .glyph { width: 36px; height: 36px; margin-bottom: 10px; }
.rows > li > .glyph svg { width: 24px; height: 24px; }
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark-glyph { color: var(--green); display: inline-grid; }
.mark-glyph svg { width: 26px; height: 26px; }
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-ripple { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); width: 620px; height: 620px; fill: none; stroke: var(--shallow); stroke-width: 1.5; pointer-events: none; }
.group .glyph { display: grid; }
.work-row .result { margin-bottom: 10px; }
.work-row .insight { margin: 0; }
@media (max-width: 960px) { .hero-ripple { width: 420px; height: 420px; right: -200px; opacity: .6; } }
.mark img { height: 40px; width: auto; display: block; }
.mark { gap: 10px; }

/* 2026-11-27: case diagrams, services intro */
.diagram { width: 100%; height: auto; display: block; }
.card-diagram { max-width: 300px; margin-top: 18px; }
.case-diagram { margin: 32px 0 0; max-width: 560px; padding: 20px 24px; background: var(--mist); border-radius: 8px; }
.svc-intro { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: var(--measure); margin-bottom: 32px; }
.svc-intro strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
@media (max-width: 960px) { .card-diagram { max-width: 360px; } }
.detail-diagram { margin: 28px 0 0; padding: 22px 24px 16px; background: var(--mist); border-radius: 8px; max-width: 760px; }
.detail-diagram figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 600px) { .detail-diagram { padding: 14px 10px 12px; margin-left: -8px; margin-right: -8px; } }

/* 2026-11-27: ripple backdrop on every page, parallax set by script */
main { position: relative; overflow: hidden; }
body { overflow-x: clip; }
.backdrop { position: absolute; top: 40px; right: -150px; width: 640px; height: 640px; pointer-events: none; z-index: 0; will-change: transform; }
.backdrop .hero-ripple { position: static; transform: none; width: 100%; height: 100%; }
main > section, main > div:not(.backdrop) { position: relative; z-index: 1; }
@media (max-width: 960px) { .backdrop { width: 440px; height: 440px; right: -210px; top: 20px; opacity: .7; } }

/* The edge: bigger headings */
.lead-insight h3 { font-size: clamp(34px, 4vw, 46px); }
.two h3 { font-size: clamp(28px, 3vw, 34px); }

/* Home services, three short columns */
.svc-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.svc-three .glyph { margin-bottom: 12px; }
.svc-three h3 { font-size: 24px; margin-bottom: 8px; }
.svc-three h3 a { color: var(--ink); text-decoration: none; }
.svc-three h3 a:hover { color: var(--blue); text-decoration: underline; }
.svc-three p { margin: 0; }
@media (max-width: 960px) { .svc-three { grid-template-columns: 1fr; gap: 24px; } }

/* Section glyphs beside left-column headings */
.split > div > .glyph + h2 { margin-top: 0; font-size: 28px; }
.svc-three h3 a { display: inline-block; padding: 6px 0; }

/* 2026-11-27: two backdrop glyphs per page, opposite sides, stronger and more visible */
:root { --glyph-line: #b3d3cb; --glyph-line-2: #c6d2f3; }
.backdrop { top: auto; right: auto; width: auto; height: auto; }
.backdrop svg { width: 100%; height: 100%; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.backdrop svg * { vector-effect: non-scaling-stroke; }
.backdrop.b1 { top: 30px; right: -130px; width: 600px; height: 600px; }
.backdrop.b1 svg { stroke: var(--glyph-line); stroke-width: 2; }
.backdrop.b2 { top: 760px; left: -150px; width: 440px; height: 440px; }
.backdrop.b2 svg { stroke: var(--glyph-line-2); stroke-width: 2; }
.backdrop .bd-glyph { padding: 0; }
@media (max-width: 960px) {
  .backdrop.b1 { width: 400px; height: 400px; right: -170px; top: 20px; opacity: .85; }
  .backdrop.b2 { width: 300px; height: 300px; left: -150px; top: 640px; opacity: .85; }
}

/* 2026-11-27: contact form and booking embed */
.booking { width: 100%; height: 640px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 2026-11-27: hero image A (watercolour cenote from above) */
.hero.photo { background: var(--paper) url("img/hero-above.jpg") right center / cover no-repeat; }
.hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,250,247,.95) 0%, rgba(251,250,247,.82) 42%, rgba(251,250,247,0) 78%); }
.hero.photo .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .hero.photo { background-position: 70% center; } .hero.photo::before { background: rgba(251,250,247,.84); } }

/* Contour backdrops: finer lines, many of them */
.backdrop.b1 svg, .backdrop.b2 svg { stroke-width: 1.6; }

/* Glyphs on Engagements shapes and page tops */
.shape .glyph { width: 40px; height: 40px; margin-bottom: 10px; }
.shape .glyph svg { width: 24px; height: 24px; }
.page-top .glyph { margin-bottom: 18px; }
