/* Florida Technology Consulting, floteccon.com. Tokens first, components after. */
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --paper-2: #f1efea;
  --card: #ffffff;
  --ink: #15181d;
  --ink-2: #3b4149;
  --muted: #646b76;
  --line: #e1dfd8;
  --red: #c81e2b;
  --red-dark: #9f1521;
  --green: #1f9e4b;
  --dark-bg: #15181d;
  --dark-card: #1d2228;
  --dark-ink: #e9eaec;
  --dark-muted: #a3a9b3;
  --dark-line: #2c323a;
  --shadow: 0 1px 2px rgba(21, 24, 29, 0.06), 0 8px 24px rgba(21, 24, 29, 0.06);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0f1216;
    --paper-2: #151920;
    --card: #1a1f26;
    --ink: #e9eaec;
    --ink-2: #c9cdd3;
    --muted: #a3a9b3;
    --line: #2c323a;
    --red: #e23848;
    --red-dark: #c81e2b;
    --green: #35c56a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.row { display: flex; align-items: center; gap: 16px; }
.between { justify-content: space-between; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow::before { content: "// "; color: var(--red); }
.red { color: var(--red); }
.mono { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.brand small { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--red); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 6px;
  border: 2px solid var(--red);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(36px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; }
.hero .lead { margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(100%, 460px); filter: drop-shadow(0 20px 40px rgba(200, 30, 43, 0.18)); }

/* proof band */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); padding-block: 28px 20px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.proof-grid div { display: flex; flex-direction: column; gap: 2px; }
.proof-grid strong { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.proof-grid span { font-size: 0.95rem; color: var(--muted); }
.proof-note { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin: 18px auto 0; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--dark-bg); color: var(--dark-ink); }
.section.dark .eyebrow { color: var(--dark-muted); }
.section.dark h2 { color: #fff; }

/* cards */
.cards { display: grid; gap: 18px; margin-top: 28px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 12px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 14px; }
.card p { color: var(--ink-2); font-size: 1rem; }

/* case studies */
.study { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 32px; padding-block: 34px; border-top: 1px solid var(--line); }
.study:first-of-type { margin-top: 24px; }
.study h3 { font-size: 1.45rem; line-height: 1.2; }
.study-body p { color: var(--ink-2); max-width: 64ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 3px 8px; }

/* how */
.how-grid .tags { margin-top: 4px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
.how-text p { color: var(--ink-2); max-width: 62ch; font-size: 1.08rem; }
.how-text p:last-child { font-weight: 600; color: var(--ink); }

/* stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.stack-grid div { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 8px; padding: 18px 20px; }
.stack-grid h3 { font-size: 0.8rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 12px; }
.stack-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stack-grid li { color: var(--dark-ink); font-size: 1rem; padding-left: 14px; position: relative; }
.stack-grid li::before { content: "›"; color: var(--green); position: absolute; left: 0; top: -1px; font-family: var(--mono); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px 14px; box-shadow: var(--shadow); }
.contact-card .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.contact-card .label:not(:first-child) { margin-top: 14px; }
.contact-card .big { font-family: var(--display); font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }
.contact-card p { margin-bottom: 4px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 22px; font-size: 0.9rem; color: var(--muted); }
.foot p { margin: 0; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .study, .how-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(60%, 280px); }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav a:not(.btn) { display: none; }
  .brand small { display: none; }
  .cards.four, .stack-grid { grid-template-columns: 1fr; }
  .study { gap: 16px; }
}

/* AI integration */
.announce { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 24px 28px 14px; box-shadow: var(--shadow); }
.announce-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.announce h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.announce p { color: var(--ink-2); max-width: 72ch; }
.announce-close { font-weight: 600; color: var(--ink) !important; }
.ai-how { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); max-width: 62ch; }
.steps li::marker { font-family: var(--display); font-weight: 800; color: var(--red); }
.ai-how .actions { margin-top: 24px; }

/* experience */
.disciplines { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 64ch; }
.disciplines li { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 6px 10px; }

/* section art */
.art { width: min(100%, 400px); margin-top: 18px; filter: drop-shadow(0 12px 28px rgba(21, 24, 29, 0.18)); }
@media (max-width: 900px) { .art { width: min(60%, 300px); } }

/* the stack, drawn in the page's own colors */
:root { --slab-top: #d6dae1; --slab-side: #aeb5bf; --slab-top-2: #c3c9d2; --slab-side-2: #99a1ad; --slab-top-3: #aeb6c1; --slab-side-3: #848d9a; --slab-top-4: #99a2ae; --slab-side-4: #6f7886; --slab-top-5: #7f8896; --slab-side-5: #5a6372; --person: #3b4149; }
@media (prefers-color-scheme: dark) { :root { --slab-top: #4b535e; --slab-side: #343b45; --slab-top-2: #434b56; --slab-side-2: #2e353f; --slab-top-3: #3b434e; --slab-side-3: #292f38; --slab-top-4: #343c47; --slab-side-4: #232931; --slab-top-5: #2d343e; --slab-side-5: #1d2229; --person: #c9cdd3; } }
.stackart { width: min(100%, 360px); height: auto; margin-top: 20px; overflow: visible; }
.stackart .top { stroke: none; }
.stackart .s1 .top { fill: var(--slab-top); } .stackart .s1 .side { fill: var(--slab-side); }
.stackart .s2 .top { fill: var(--slab-top-2); } .stackart .s2 .side { fill: var(--slab-side-2); }
.stackart .s3 .top { fill: var(--slab-top-3); } .stackart .s3 .side { fill: var(--slab-side-3); }
.stackart .s4 .top { fill: var(--slab-top-4); } .stackart .s4 .side { fill: var(--slab-side-4); }
.stackart .s5 .top { fill: var(--slab-top-5); } .stackart .s5 .side { fill: var(--slab-side-5); }
.stackart .side.r { filter: brightness(0.92); }
.stackart .trace { stroke: var(--green); stroke-width: 3; stroke-linecap: round; opacity: 0.9; }
.stackart .dot { fill: var(--green); }
.stackart .tile { fill: var(--red); }
.stackart .person { fill: var(--person); }
