/* Techontrol — site styles
   Palette: drafting paper, ink, blueprint blue, grid line, signal amber
   Fonts are served from this site (no Google Fonts requests), licensed under the SIL Open Font License. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --paper: #f6f8fb;
  --paper-2: #eaf0f8;
  --ink: #14213d;
  --ink-soft: #46546f;
  --blue: #1f4fa3;
  --blue-deep: #163a7a;
  --grid: #c9d6ec;
  --signal: #e8a317;
  --white: #ffffff;
  --radius-s: 4px;
  --radius-m: 10px;
  --wrap: 1120px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; font-stretch: 108%; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 104%; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 248, 251, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--grid); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.2rem; letter-spacing: .02em; }
.brand svg { flex: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--grid); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a { display: block; white-space: nowrap; padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: .97rem; border-radius: var(--radius-s); }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.site-nav a.nav-cta { background: var(--blue); color: var(--white); margin-left: 8px; }
.site-nav a.nav-cta:hover { background: var(--blue-deep); color: var(--white); }
.site-nav a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--radius-s); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--grid); border-radius: var(--radius-s); overflow: hidden; font-size: .88rem; font-weight: 600; }
.lang-switch a, .lang-switch span { padding: 6px 10px; text-decoration: none; color: var(--ink-soft); line-height: 1.2; }
.lang-switch a:hover { background: var(--paper-2); color: var(--ink); }
.lang-switch span { background: var(--ink); color: var(--white); }
@media (min-width: 1100px) { .header-tools { order: 3; margin-left: 12px; } .site-header .wrap { gap: 8px; } .site-nav { margin-left: auto; } }

@media (max-width: 440px) {
  .site-header .brand { font-size: 1rem; gap: 7px; letter-spacing: 0; }
  .site-header .brand svg { width: 24px; height: 24px; }
  .header-tools { gap: 6px; }
  .lang-switch a, .lang-switch span { padding: 6px 8px; }
  .nav-toggle { padding: 7px 10px; }
}

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--grid); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--paper-2); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
  .site-nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius-s); }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 22px; border-radius: var(--radius-s); background: var(--blue); color: var(--white); text-decoration: none; font-weight: 600; border: 2px solid var(--blue); font-family: var(--body); font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn.secondary { background: transparent; color: var(--blue); }
.btn.secondary:hover { background: var(--paper-2); color: var(--blue-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- blueprint hero ---------- */
.blueprint {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(201, 214, 236, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 214, 236, .45) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  border-bottom: 1px solid var(--grid);
}
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.25fr 1fr; } .hero { padding: 104px 0 112px; } }
.hero h1 { max-width: 14ch; }
.hero .dial { width: 100%; max-width: 420px; justify-self: center; }
.dial .needle { transform-origin: 200px 200px; animation: settle 1.8s cubic-bezier(.2, .8, .2, 1) .3s both; }
@keyframes settle { from { transform: rotate(-120deg); } to { transform: rotate(28deg); } }

.page-head { padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--white); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.section-intro { margin-bottom: 40px; }

/* three columns separated by drafting rules, not cards */
.columns { display: grid; gap: 32px; }
@media (min-width: 820px) { .columns { grid-template-columns: repeat(3, 1fr); gap: 0; } .columns > * { padding: 0 32px; border-left: 1px solid var(--grid); } .columns > *:first-child { padding-left: 0; border-left: 0; } }
.columns .icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 16px; }
.columns p { color: var(--ink-soft); }

/* process: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: step; position: relative; padding-top: 56px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); position: absolute; top: 12px; left: 0; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--signal); line-height: 1; }
.steps p { color: var(--ink-soft); }

/* split text / image */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }
.split figure { margin: 0; }
.split img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--grid); background: var(--paper-2); }

.service + .service { margin-top: 72px; }

.callout { border-left: 4px solid var(--signal); padding: 4px 0 4px 20px; margin: 32px 0; }
.callout p { font-size: 1.15rem; color: var(--ink); }

/* clients */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logos figure { margin: 0; background: var(--white); border: 1px solid var(--grid); border-radius: var(--radius-m); aspect-ratio: 1; display: grid; place-items: center; padding: 20px; }
.logos img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; }
.logos figure:hover img { filter: none; opacity: 1; }

/* news / events */
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; gap: 4px 32px; padding: 24px 0; border-top: 1px solid var(--grid); }
.events li:last-child { border-bottom: 1px solid var(--grid); }
@media (min-width: 720px) { .events li { grid-template-columns: 180px 1fr auto; align-items: baseline; } }
.events time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.events h3 { margin: 0; }
.events p { margin: 4px 0 0; color: var(--ink-soft); }

/* booking */
.booking-types { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 820px) { .booking-types { grid-template-columns: repeat(3, 1fr); } }
.booking-types div { border: 1px solid var(--grid); border-radius: var(--radius-m); padding: 20px; background: var(--white); }
.booking-types h3 { margin-bottom: .3em; }
.booking-types p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.scheduler { border: 1px solid var(--grid); border-radius: var(--radius-m); background: var(--white); overflow: hidden; }
.scheduler iframe { width: 100%; height: 720px; border: 0; display: block; }
.scheduler .placeholder { padding: 40px 24px; text-align: center; }
.scheduler .placeholder p { margin: 0 auto 1em; }
.scheduler .consent { font-size: .9rem; color: var(--ink-soft); max-width: 52ch; }

/* legal pages */
.legal-text h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text address { font-style: normal; margin-bottom: 1em; }
.todo { background: #fff3cd; color: #6b4e00; padding: 0 4px; border-radius: 2px; }

/* contact form */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .97rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #a9b8d3; border-radius: var(--radius-s); background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--blue); }
.form textarea { min-height: 160px; resize: vertical; }
.form .btn { justify-self: start; }
.form .form-note { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.notice { max-width: 560px; padding: 14px 18px; border-radius: var(--radius-s); margin-bottom: 24px; font-weight: 600; }
.notice.ok { background: #e3f3e8; color: #1d5e33; border-left: 4px solid #2f8a4c; }
.notice.bad { background: #fbe9e7; color: #8a2a1d; border-left: 4px solid #c0392b; }

/* closing band */
.band { background: var(--blue); color: var(--white); padding: 64px 0; }
.band h2 { color: var(--white); max-width: 22ch; }
.band p { color: #dbe5f6; }
.band .btn { background: var(--white); color: var(--blue); border-color: var(--white); }
.band .btn:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--blue-deep); }

/* footer */
.site-footer { background: var(--ink); color: #c4cde0; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: var(--white); margin-bottom: 8px; }
.site-footer .legal { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3a5a; }

/* ---------- blog ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.post-list li { padding: 32px 0; border-top: 1px solid var(--grid); }
.post-list li:last-child { border-bottom: 1px solid var(--grid); }
.post-list h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0 0 .4em; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--blue); text-decoration: underline; }
.post-list p { color: var(--ink-soft); }
.post-meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .6em; font-variant-numeric: tabular-nums; }
.post-more { font-weight: 600; }
.post-back { margin: 0 0 1.2em; font-size: .97rem; }
.post-back a::before { content: "\2190\00a0"; }
.post-translation { margin: .8em 0 0; font-size: .97rem; }

.prose { max-width: 70ch; font-size: 1.1rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--signal); padding: 4px 0 4px 20px; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.prose pre { background: var(--ink); color: #e6ecf7; padding: 18px 20px; border-radius: var(--radius-m); overflow-x: auto; line-height: 1.5; }
.prose pre code { background: none; padding: 0; font-size: .9rem; color: inherit; }
.prose img { border-radius: var(--radius-m); border: 1px solid var(--grid); margin: .4em 0; }
.prose hr { border: 0; border-top: 1px solid var(--grid); margin: 2.2em 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--grid); padding: 8px 12px 8px 0; text-align: left; vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 700; }
