/* HMRS: a ficha de anestesia como linguagem visual.
   Papel frio quadriculado, tinta de caneta esferográfica azul, marcação vermelha.
   Schibsted Grotesk é a voz da empresa; Archivo estreita faz escalas, números e rótulos de formulário.
   Cada produto aparece no próprio mundo visual (cores e tipos da sua marca). */
:root {
  --paper: #F3F5F4;
  --paper-2: #E9EEEC;
  --grid: #DCE6E2;
  --grid-major: #C3D5CE;
  --ink: #1C2B5A;       /* caneta esferográfica */
  --ink-soft: #4A5677;
  --ink-mute: #6F7893;
  --pen-red: #C8312F;   /* marcação de pressão */
  --line: #CBD5D2;
  --white: #FFFFFF;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --cond: 'Archivo', 'Arial Narrow', sans-serif;
  --gut: clamp(16px, 4vw, 64px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-kerning: normal; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pen-red); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--cond); font-stretch: 78%; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* papel quadriculado: grade fina a cada 20px, grossa a cada 100px */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
}

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gut);
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.mark { width: 30px; height: 30px; }
.mark rect { fill: var(--ink); }
.mark path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark .hi { stroke: #FF6B5E; }
.mark .lo { stroke: #fff; }
.mark circle { fill: #fff; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 32px); font-size: 16px; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--ink); font-weight: 600; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.top nav .nav-cta:hover { background: var(--ink); color: #fff; }
@media (max-width: 720px) { .top nav a:not(.nav-cta) { display: none; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: #12204A; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vh, 72px) 0 0; border-bottom: 1px solid var(--grid-major); background: var(--paper); }
.hero h1 {
  font-size: clamp(42px, 6.9vw, 108px); line-height: .94; letter-spacing: -.045em; font-weight: 800;
}
.hero h1 .ln { display: block; }
.hero h1 .ln + .ln { color: var(--ink-soft); font-weight: 500; font-style: italic; letter-spacing: -.04em; }
.hero-sub { margin-top: clamp(20px, 3.4vh, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; }
.hero .lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 56ch; color: var(--ink-soft); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .hero-sub { grid-template-columns: 1fr; } }

.record { margin-top: clamp(24px, 4vh, 48px); }
.record-scroll { overflow: hidden; }
#record { width: 100%; height: auto; min-height: 280px; }
.record figcaption { font-size: 14px; color: var(--ink-mute); padding-top: 10px; padding-bottom: 18px; }
@media (max-width: 720px) {
  .record-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .record-scroll::-webkit-scrollbar { display: none; }
  #record { width: 980px; max-width: none; }
}

/* elementos do SVG da ficha */
.g-minor { fill: none; stroke: var(--grid); stroke-width: 1; }
.g-major { fill: none; stroke: var(--grid-major); stroke-width: 1; }
.rec-axis { font-family: var(--cond); font-stretch: 72%; font-size: 15px; fill: var(--ink-mute); }
.rec-zone { font-family: var(--sans); font-size: 19px; font-weight: 700; fill: var(--ink); }
.rec-zone-sub { font-family: var(--cond); font-stretch: 80%; font-size: 15px; fill: var(--ink-mute); }
.rec-sep { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 5; opacity: .5; }
.rec-bp { fill: none; stroke: var(--pen-red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rec-hr { fill: var(--ink); }
.rec-hrline { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .55; stroke-linejoin: round; }
.rec-note { font-family: var(--sans); font-size: 16px; fill: var(--ink); font-style: italic; }
.rec-note-n { font-family: var(--cond); font-stretch: 75%; font-size: 15px; font-weight: 700; fill: var(--pen-red); }
.rec-hl { fill: #FFE68A; opacity: .9; }
.rec-doc { fill: var(--ink); fill-opacity: .16; }
.mon-bg { fill: #0A1622; }
.mon-grid { stroke: #13283A; stroke-width: 1; }
.mon-ecg { fill: none; stroke: #2BD68F; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.mon-pleth { fill: none; stroke: #4CC9F0; stroke-width: 2.2; stroke-linejoin: round; }
.mon-num { font-family: var(--cond); font-stretch: 66%; font-weight: 600; font-variant-numeric: tabular-nums; }
.mon-lbl { font-family: var(--cond); font-stretch: 85%; font-size: 13px; }

/* ---------- produtos ---------- */
.products { background: var(--paper); }
.intro { padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(40px, 7vh, 72px); display: grid; gap: 20px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
.intro h2, .principles h2, .company h2, .contact h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.intro p { color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

.prod { position: relative; padding: clamp(64px, 11vh, 128px) 0; overflow: hidden; }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.prod-grid.flip .prod-copy { order: 2; }
@media (max-width: 900px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-grid.flip .prod-copy { order: 0; }
}
.moment { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--m-accent); }
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor; font-family: var(--cond); font-stretch: 80%; font-size: 14px; font-weight: 700;
}
.prod-name { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.prod-name img { width: 40px; height: auto; }
.prod-claim { margin-top: 14px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; max-width: 18ch; }
.prod-body { margin-top: 20px; max-width: 52ch; color: var(--m-soft); }
.feats { margin-top: 24px; display: grid; gap: 10px; max-width: 52ch; }
.feats li { position: relative; padding-left: 28px; color: var(--m-soft); }
.feats li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--m-accent); border-bottom: 2px solid var(--m-accent); transform: rotate(-45deg); transform-origin: 30% 60%; }
.prod-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; min-height: 48px; padding: 0 22px;
  border-radius: var(--m-radius, 999px); background: var(--m-accent); color: var(--m-on-accent, #fff);
  text-decoration: none; font-weight: 600; transition: filter .2s;
}
.prod-link:hover { filter: brightness(1.08); }
.fict { margin-top: 12px; font-size: 13px; color: var(--m-mute); text-align: center; }

/* AnestHub: verde clínico, Epilogue nos títulos */
.p-anesthub {
  --m-accent: #0A6847; --m-soft: #3E4A44; --m-mute: #6B766F; --m-radius: 12px;
  background: #FAFAF8; color: #14201A; border-top: 1px solid #E5E7E1;
}
.p-anesthub .prod-name, .p-anesthub .prod-claim { font-family: 'Epilogue', var(--sans); letter-spacing: -.035em; }
.p-anesthub .prod-name { font-weight: 800; }
.p-anesthub .prod-claim { font-weight: 800; color: #0E1712; }
.p-anesthub .prod-visual { display: grid; justify-items: center; }
.phone {
  width: min(340px, 86vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: #16362A; box-shadow: 0 40px 80px -30px rgba(10, 104, 71, .45), 0 2px 0 #0d2a20 inset;
  transform: rotate(-3deg);
}
.phone-screen {
  height: 100%; border-radius: 34px; background: #fff; padding: 26px 20px 20px; display: flex; flex-direction: column; gap: 16px;
  font-family: 'Epilogue', var(--sans); font-size: 14px; overflow: hidden;
}
.ah-top { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #0A6847; font-size: 13px; line-height: 1.25; padding-bottom: 14px; border-bottom: 1px solid #EEF0EC; }
.ah-patient { display: grid; gap: 2px; }
.ah-patient b { font-size: 18px; letter-spacing: -.02em; }
.ah-patient span { color: #6B766F; font-size: 13px; }
.ah-rows { display: grid; gap: 0; background: #F6F8F5; border-radius: 14px; padding: 4px 14px; }
.ah-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #E6EAE4; }
.ah-rows div:last-child { border-bottom: 0; }
.ah-rows dt { color: #6B766F; font-size: 13px; }
.ah-rows dd { font-weight: 700; font-size: 13px; text-align: right; }
.ah-pill { display: inline-block; background: #E3F2EA; color: #0A6847; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.ah-sign { margin-top: auto; border-top: 1px dashed #CFD6CF; padding-top: 12px; display: grid; gap: 2px; }
.ah-sign svg { width: 130px; height: 36px; fill: none; stroke: #1C2B5A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ah-sign span { font-weight: 700; font-size: 13px; color: #0A6847; }
.ah-sign small { font-size: 12px; color: #6B766F; }

/* reg.med.br: branco-documento, Inter, verde de destaque */
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
.p-reg {
  --m-accent: #0d7f56; --m-soft: #5f6773; --m-mute: #5f6773; --m-radius: 8px;
  background: #fbfbfc; color: #0e1116; font-family: 'Inter', var(--sans); border-top: 1px solid #e6e8ec;
}
.p-reg .prod-name { font-weight: 700; letter-spacing: -.02em; }
.p-reg .prod-claim { font-weight: 700; letter-spacing: -.035em; }
.reg-mark { width: 36px; height: 36px; }
.reg-mark rect { fill: #0d7f56; }
.reg-mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.steps { margin-top: 26px; display: grid; gap: 14px; counter-reset: s; max-width: 54ch; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: #5f6773; font-size: 16px; }
.steps li b { color: #0e1116; font-weight: 600; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  background: #0d7f56; color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.doc-stage { position: relative; padding: 8px 0 8px 0; min-height: 420px; }
.doc {
  position: relative; margin-left: auto; width: min(400px, 82%); background: #fff; border: 1px solid #e6e8ec; border-radius: 10px;
  padding: 26px 26px 30px; box-shadow: 0 30px 60px -36px rgba(14, 17, 22, .35); display: flex; flex-direction: column; gap: 11px;
}
.doc-h { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-bottom: 10px; }
.doc-h b { font-size: 16px; }
.doc-h span { grid-column: 1; color: #5f6773; font-size: 13px; }
.doc-h i { grid-column: 2; grid-row: 1; font-style: normal; color: #5f6773; font-size: 12px; }
.doc .l { display: block; height: 7px; border-radius: 4px; background: #e9ecf0; }
.w50 { width: 50%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.cite { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 6px; background: #e6f5ee; color: #0b6e4b; box-shadow: inset 3px 0 0 #0d7f56; }
.finding {
  position: absolute; left: 0; top: 52%; width: min(290px, 70%); background: #fff; border: 1px solid #d5d9df; border-radius: 10px;
  padding: 16px 18px; display: grid; gap: 8px; box-shadow: 0 24px 50px -24px rgba(14, 17, 22, .4); z-index: 2;
}
.f-k { font-size: 12px; color: #5f6773; }
.f-tag { justify-self: start; background: #c8273a; color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 2px 7px; }
.finding b { font-size: 15px; }
.finding q { quotes: '“' '”'; font-size: 13px; color: #0b6e4b; background: #e6f5ee; border-radius: 6px; padding: 7px 9px; }
.f-ok { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #0d7f56; font-weight: 600; }
.f-ok::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #0d7f56 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.link-line { position: absolute; left: min(270px, 66%); top: 44%; width: 18%; height: 60px; overflow: visible; z-index: 1; }
.link-line path { fill: none; stroke: #0d7f56; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
@media (max-width: 560px) {
  .doc { width: 100%; }
  .finding { position: relative; top: auto; width: 92%; margin: -40px 0 0 4%; }
  .link-line { display: none; }
  .doc-stage { min-height: 0; }
}

/* Triariz: tela de monitor, Archivo larga e números estreitos */
.p-triariz {
  --m-accent: #2BD68F; --m-on-accent: #06281A; --m-soft: #9FB2C2; --m-mute: #6F8599; --m-radius: 999px;
  background: #0A1622; color: #EEF3F2; font-family: 'Archivo', var(--sans); min-height: 760px;
}
.p-triariz .prod-copy { position: relative; z-index: 2; }
.p-triariz .moment { color: #2BD68F; }
.tz-word { font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; }
.p-triariz .prod-claim { font-weight: 650; letter-spacing: -.04em; font-size: clamp(34px, 4.4vw, 64px); line-height: .98; max-width: 14ch; }
#tz-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.tz-ecg { position: absolute; left: 0; bottom: 2%; width: 100%; height: 160px; opacity: .28; z-index: 0; }
.tz-ecg path { fill: none; stroke: #2BD68F; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tz-space { min-height: 420px; }
.signals { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; max-width: 560px; }
.signals li { position: relative; padding-left: 26px; color: #C8D5DF; font-size: 16px; line-height: 1.35; }
.signals li::before { content: ''; position: absolute; left: 0; top: .55em; width: 16px; height: 5px; border-radius: 3px; background: var(--c); }
.tz-status { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: #9FB2C2; }
.tz-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #F2C94C; box-shadow: 0 0 0 4px rgba(242, 201, 76, .18); }
@media (max-width: 900px) {
  .p-triariz { padding-top: 0; }
  .p-triariz .prod-grid { display: flex; flex-direction: column-reverse; }
  .tz-space { min-height: 340px; width: 100%; }
  #tz-gl { height: 400px; bottom: auto; }
}
@media (max-width: 480px) { .signals { grid-template-columns: 1fr; } }

/* ---------- princípios ---------- */
.principles { padding: clamp(80px, 13vh, 150px) 0; border-top: 1px solid var(--grid-major); border-bottom: 1px solid var(--grid-major); }
.rules { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.rule { padding: 28px 28px 8px 0; display: grid; align-content: start; gap: 12px; }
.rule + .rule { padding-left: 28px; border-left: 1px solid var(--grid-major); }
.rule svg { width: 40px; height: 40px; }
.rule .red, .rule .blue { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.rule .red { stroke: var(--pen-red); }
.rule .blue { stroke: var(--ink); }
.rule .dotm { fill: var(--ink); }
.rule h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.rule p { color: var(--ink-soft); font-size: 17px; background: color-mix(in srgb, var(--paper) 75%, transparent); }
@media (max-width: 860px) {
  .rules { grid-template-columns: 1fr; }
  .rule, .rule + .rule { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--grid-major); }
}

/* ---------- empresa ---------- */
.company { padding: clamp(80px, 13vh, 150px) 0; background: var(--white); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .company-grid { grid-template-columns: 1fr; } }
.company-copy > p { margin-top: 22px; color: var(--ink-soft); max-width: 50ch; }

/* carimbos de médico: borda dupla, tinta azul, levemente tortos */
.stamps { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
@media (max-width: 520px) { .stamps { grid-template-columns: 1fr; } }
.stamp {
  position: relative; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--ink);
  display: grid; gap: 2px; transform: rotate(var(--r, -1deg)); opacity: .92;
}
.stamp:nth-child(2) { --r: .8deg; }
.stamp:nth-child(3) { --r: -.4deg; }
.stamp:nth-child(4) { --r: 1.2deg; }
.stamp b { font-family: var(--cond); font-stretch: 88%; font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
.stamp span { font-size: 14px; color: var(--ink-soft); line-height: 1.35; }

/* ficha cadastral: um formulário preenchido à caneta */
.ficha { border: 2px solid var(--ink); background: var(--paper); }
.ficha h3 { font-size: 15px; font-weight: 700; padding: 12px 16px; background: var(--ink); color: #fff; letter-spacing: .01em; }
.ficha dl { display: grid; grid-template-columns: 1fr 1fr; }
.ficha dl > div { padding: 10px 16px 12px; border-top: 1px solid var(--grid-major); border-right: 1px solid var(--grid-major); min-width: 0; }
.ficha dl > div:nth-child(2n+1):not(.f2) { border-right: 1px solid var(--grid-major); }
.ficha .f2 { grid-column: 1 / -1; border-right: 0; }
.ficha dt { font-family: var(--cond); font-stretch: 82%; font-size: 13px; color: var(--ink-mute); }
.ficha dd { margin-top: 2px; font-size: 16px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.ficha dd.num { font-size: 19px; }
@media (max-width: 520px) { .ficha dl { grid-template-columns: 1fr; } .ficha dl > div { border-right: 0; } }

/* ---------- contato ---------- */
.contact { padding: clamp(80px, 13vh, 150px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact p { color: var(--ink-soft); max-width: 46ch; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.mail {
  display: inline-block; margin-top: 18px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em;
  text-decoration: none; background-image: linear-gradient(var(--pen-red), var(--pen-red)); background-size: 100% 3px;
  background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 4px; overflow-wrap: anywhere;
}
.mail:hover { color: var(--pen-red); }
.contact .small { margin-top: 18px; font-size: 15px; }

/* ---------- rodapé ---------- */
.foot { background: var(--ink); color: #C9D0E4; padding: 48px 0 40px; font-size: 15px; }
.foot .brand { color: #fff; }
.foot .mark rect { fill: #fff; }
.foot .mark .lo { stroke: var(--ink); }
.foot .mark circle { fill: var(--ink); }
.foot .mark .hi { stroke: var(--pen-red); }
.foot-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 32px 64px; align-items: start; }
.foot p { margin-top: 14px; line-height: 1.6; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .copy { margin-top: 0; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
