/* =========================================================
   Markiety IT Institute — global design system
   Editorial serif display + clean sans body + mono accents
   ========================================================= */

:root {
  /* Type */
  --f-display: "Instrument Serif", "Newsreader", Georgia, serif;
  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Light palette — cream + cobalt + clay */
  --bg:        #FBF6EB;
  --bg-2:      #F2EAD6;
  --bg-3:      #E8DDC0;
  --paper:     #FFFCF4;
  --ink:       #0F0C08;
  --ink-2:     #3D362A;
  --ink-3:     #7E7563;
  --rule:      #E2D8C0;
  --rule-2:    #C9BFA4;

  --blue:      #1E48C4;
  --blue-deep: #0F2D8C;
  --blue-ink:  #0A1E5E;
  --terra:     #D9683A;
  --terra-deep:#B14E25;
  --sage:      #3B6B4E;
  --gold:      #C89A2B;

  /* Scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Density */
  --density: 1;

  /* Motion */
  --ease: cubic-bezier(.2, .65, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-palette="navy"] {
  --bg: #F6F1E7;
  --bg-2: #E9E1CC;
  --bg-3: #DAD0B4;
  --paper: #FBF6EB;
  --ink: #0A1424;
  --ink-2: #1F2A40;
  --ink-3: #6B7385;
  --rule: #D7CEB6;
  --blue: #102957;
  --blue-deep: #061638;
  --terra: #C68A2E;
  --terra-deep: #976608;
}

[data-palette="forest"] {
  --bg: #F3EEDB;
  --bg-2: #E1DAB7;
  --bg-3: #D0C99A;
  --ink: #0B1A12;
  --ink-2: #233328;
  --ink-3: #5C6B5F;
  --rule: #C8BD96;
  --blue: #15402B;
  --blue-deep: #0A2618;
  --terra: #D08B2A;
}

[data-palette="ink"] {
  --bg: #F4F4F0;
  --bg-2: #E7E6DD;
  --bg-3: #D6D4C5;
  --paper: #FFFFFF;
  --ink: #050505;
  --ink-2: #1A1A1A;
  --ink-3: #6B6B66;
  --rule: #D8D6CA;
  --blue: #0A0A0A;
  --blue-deep: #000;
  --terra: #C24D1F;
}

[data-theme="dark"] {
  --bg: #0E0B07;
  --bg-2: #1A140C;
  --bg-3: #251D11;
  --paper: #181208;
  --ink: #FBF6EB;
  --ink-2: #D9CFB7;
  --ink-3: #8B816C;
  --rule: #2E2516;
  --rule-2: #3D3220;
  --blue: #6E8FFF;
  --blue-deep: #4B6EE6;
  --blue-ink: #C4D2FF;
  --terra: #E88B5C;
  --terra-deep: #D9683A;
  --sage: #6FA983;
}

[data-density="compact"] { --density: 0.78; }
[data-density="cozy"]    { --density: 1.18; }

/* =====================================================
   Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; height: 1px; background: var(--rule); margin: var(--s-6) 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* Typography defaults */
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.2vw, 120px); }
h2 { font-size: clamp(36px, 4.6vw, 72px); }
h3 { font-size: clamp(22px, 2.2vw, 32px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); }
p  { margin: 0 0 1em; max-width: 62ch; }

.italic-em { font-style: italic; }
.serif { font-family: var(--f-display); font-weight: 400; }
.mono  { font-family: var(--f-mono); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* =====================================================
   Layout primitives
   ===================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: calc(var(--s-9) * var(--density)) 0;
  position: relative;
}
.section.tight { padding: calc(var(--s-7) * var(--density)) 0; }
.section.paper { background: var(--paper); }
.section.deep  { background: var(--bg-2); }
.section.inked { background: var(--ink); color: var(--bg); }
.section.inked .eyebrow,
.section.inked h1, .section.inked h2, .section.inked h3 { color: var(--bg); }
.section.inked p, .section.inked .ink-2 { color: var(--bg-2); }

.rule-row {
  border-top: 1px solid var(--rule);
}
.rule-bot { border-bottom: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-7);
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); }
}
.section-head .lead { color: var(--ink-2); max-width: 48ch; font-size: 18px; }

/* =====================================================
   Header / nav
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  border-radius: 2px;
  letter-spacing: -.02em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-size: 19px; }
.brand-tagline {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.is-active {
  background: var(--ink);
  color: var(--bg);
}
.header-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1100px) {
  .nav-links a { padding: 7px 10px; font-size: 13.5px; }
  .brand-tagline { display: none; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav { height: 64px; }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--blue); }
.btn-accent {
  background: var(--terra);
  color: #fff;
}
.btn-accent:hover { background: var(--terra-deep); }
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: var(--bg-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn .arr {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arr { transform: translateX(4px); }

/* =====================================================
   Chips / badges / pills
   ===================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--rule);
}
.chip.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.blue  { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.terra { background: var(--terra); color: #fff; border-color: var(--terra); }
.chip.outline { background: transparent; }
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .9; }
.chip.live .dot { background: var(--terra); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--terra) 50%, transparent); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

/* =====================================================
   Cards — editorial course card
   ===================================================== */
.card-grid {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 1100px) { .card-grid { --cols: 2; } }
@media (max-width: 680px)  { .card-grid { --cols: 1; } }

.course-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.course-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.course-card .num {
  position: absolute;
  top: 14px; left: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
  z-index: 2;
}
.course-card .img {
  aspect-ratio: 4/3;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.course-card .img .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--ink-3) 8%, transparent) 14px 15px),
    var(--bg-2);
}
.course-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.course-card .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-card h3 {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.01em;
}
.course-card h3 em { color: var(--terra); font-style: italic; }
.course-card .desc { color: var(--ink-2); font-size: 14.5px; }
.course-card .row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-card .price .new { font-family: var(--f-display); font-size: 28px; }
.course-card .price .old {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-left: 6px;
}
.course-card .avatar-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 12px;
  border: 1px solid var(--rule);
  overflow: hidden;
}

/* Placeholder initials circle — used wherever a photo is missing */
.ph-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -.01em;
  flex-shrink: 0;
  user-select: none;
}

/* =====================================================
   Stat blocks
   ===================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-strip > div {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--rule);
}
.stat-strip > div:last-child { border-right: 0; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num em { font-style: italic; color: var(--terra); }
.stat-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-top: 8px;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-9);
}
[data-theme="dark"] .site-footer { background: #060503; }
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid a {
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  display: inline-block;
  padding: 4px 0;
}
.footer-grid a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-tag {
  font-family: var(--f-display);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.02em;
  padding: var(--s-7) 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  margin: var(--s-7) 0;
}
.foot-tag em { color: var(--terra); font-style: italic; }
.foot-base {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  flex-wrap: wrap;
  gap: 8px;
}

/* =====================================================
   Forms
   ===================================================== */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  padding: 10px 0;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }

/* =====================================================
   Marquee / ticker
   ===================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.marquee .track {
  display: flex;
  gap: 48px;
  padding: 18px 0;
  animation: scroll 40s linear infinite;
  width: max-content;
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee .track em { color: var(--terra); font-style: italic; }
.marquee .track .sep { color: var(--ink-3); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* =====================================================
   Utilities
   ===================================================== */
.flex { display: flex; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.middle { align-items: center; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}.mb-5{margin-bottom:48px}
.text-ink-2 { color: var(--ink-2); }
.text-ink-3 { color: var(--ink-3); }
.text-blue { color: var(--blue); }
.text-terra { color: var(--terra); }
.bg-paper { background: var(--paper); }
.tabular { font-variant-numeric: tabular-nums; }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* =====================================================
   Tweaks panel (lightweight, in-page, no React)
   ===================================================== */
.tw-toggle {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 80;
  height: 44px;
  padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.tw-toggle .d { width: 8px; height: 8px; border-radius: 999px; background: var(--terra); }
.tw-panel {
  position: fixed;
  bottom: 80px; right: 20px;
  z-index: 80;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 18px;
  font-family: var(--f-sans);
  display: none;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  border-radius: 4px;
}
.tw-panel.open { display: flex; }
.tw-panel h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.tw-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.tw-swatches { display: flex; gap: 8px; }
.tw-sw { width: 32px; height: 32px; border-radius: 999px; cursor: pointer; border: 2px solid var(--rule); position: relative; }
.tw-sw[data-active="true"]::after {
  content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); border-radius: 999px;
}
.tw-seg {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--rule);
}
.tw-seg button {
  padding: 6px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 999px;
  color: var(--ink-2);
}
.tw-seg button[data-active="true"] { background: var(--ink); color: var(--bg); }

/* Pages-specific layout helpers added in their own files */

/* =====================================================
   Alert bars
   ===================================================== */
.alert-bar {
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.alert-success { background: #e6f9f0; color: #1a6640; border-bottom: 1px solid #a8dfc0; }
.alert-error   { background: #fde8e8; color: #8b1a1a; border-bottom: 1px solid #f5b5b5; }
.alert-bar button { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; padding: 0 4px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all .2s var(--ease);
}
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  #primaryNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: var(--s-4) var(--gutter);
    z-index: 49;
  }
  #primaryNav.open { display: block; }
  #primaryNav.open .nav-links { display: flex; flex-direction: column; gap: 2px; }
  .nav { grid-template-columns: auto 1fr auto auto; position: relative; }
  .header-actions { gap: 6px; }
  .header-actions .btn-ghost { display: none; }
}

/* =====================================================
   Hamburger → X animation
   ===================================================== */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   Touch target minimums (≥ 44 px)
   ===================================================== */
.btn-sm { min-height: 44px; padding: 0 16px; }
@media (min-width: 881px) {
  .btn-sm { min-height: 36px; height: 36px; padding: 0 14px; }
}

/* =====================================================
   Responsive: foot-tag (large display text)
   ===================================================== */
@media (max-width: 768px) {
  .foot-tag { font-size: clamp(36px, 12vw, 72px); }
}
@media (max-width: 375px) {
  .foot-tag { font-size: clamp(28px, 9vw, 48px); }
}

/* =====================================================
   Responsive: contact form 2-col grid
   ===================================================== */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Responsive: nav links tap area
   ===================================================== */
@media (max-width: 880px) {
  .nav-links li a { padding: 12px 8px; min-height: 44px; display: flex; align-items: center; }
}
