/* Cassius Visual Studios public site. Palette and type from brand-kit/brand-guidelines.html. */
:root {
  --ink: #121826;          /* Blueprint Navy */
  --ink-2: #5B6475;        /* Slate Dark */
  --slate: #9AA3B2;        /* Slate, secondary text on navy */
  --paper: #FFFFFF;
  --stone: #F3F5F8;
  --line: #D9DEE6;
  --accent: #1F68DF;       /* Cobalt: text-safe on white */
  --accent-deep: #1E3FC4;  /* Deep */
  --highlight: #5EE0FB;    /* Highlight: focus on navy */
  --sans: "Mulish", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

.eyebrow, .index, .caption, .hint, .compare__tag, .service__list, .form-preview {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.index { color: var(--accent); }

/* ---------- header ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.logo { display: block; }
.logo img { width: 200px; } /* brand minimum for the horizontal lockup */
.site-header ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-header nav a { font-size: 15px; font-weight: 600; text-decoration: none; padding-block: 6px; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { color: var(--accent); }
@media (max-width: 480px) { .site-header ul { column-gap: 18px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--accent); color: #fff; font: 700 16px/1.2 var(--sans);
  padding: 17px 24px; text-decoration: none;
}
.btn:hover { background: var(--accent-deep); }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.link-arrow::after { content: " \2193"; }
.link-arrow:hover { text-decoration-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(32px, 7vw, 104px); }
.hero__grid { display: grid; gap: 24px; }
.hero__eyebrow { color: var(--ink-2); }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.0; letter-spacing: -0.035em; max-width: 14ch; }
.hero__aside { display: grid; gap: 28px; max-width: 46ch; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__media { margin: clamp(40px, 6vw, 88px) 0 0; }
.hero__slides { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 88vh; overflow: hidden; background: var(--stone); }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide--construction { object-position: 50% 30%; }
.hero__slide--miami-river { object-position: 50% 50%; }.hero__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-top: 6px; }
.caption { color: var(--ink-2); font-size: 11.5px; padding-block: 8px; }
.hero__controls { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.hero__controls button {
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 8px 10px; cursor: pointer;
}
.hero__controls button:hover { color: var(--ink); }
.hero__controls [aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.hero__toggle { margin-left: 14px; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; align-items: end; }
  .hero__eyebrow { grid-column: 1 / -1; }
  .hero h1 { grid-column: 1 / span 8; }
  .hero__aside { grid-column: 9 / -1; padding-bottom: 10px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 144px); }
.section--stone { background: var(--stone); }
.section--navy { background: var(--ink); color: #fff; }
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head__intro, .lede { color: var(--ink-2); max-width: 46ch; font-size: 18px; }
@media (min-width: 860px) {
  .section-head { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .section-head .index { grid-column: 1 / span 1; padding-top: 10px; }
  .section-head h2 { grid-column: 2 / span 6; }
  .section-head__intro { grid-column: 8 / -1; padding-top: 8px; }
}

/* ---------- before / after ---------- */
.compare { margin: 0; --pos: 50%; }
.compare__frame { position: relative; aspect-ratio: 1800 / 1201; overflow: hidden; background: var(--stone); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag { position: absolute; top: 14px; background: rgba(18, 24, 38, 0.78); color: #fff; padding: 6px 10px; font-size: 11.5px; }
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 24, 38, 0.2); pointer-events: none; }
.compare__handle::after {
  content: "\2039\2002\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: rgba(18, 24, 38, 0.72);
  color: #fff; font: 700 20px/42px var(--sans); text-align: center;
}
/* Native range input covers the image: keyboard, touch and screen reader support for free. */
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range::-webkit-slider-runnable-track { height: 100%; }
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.compare__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.compare__range:focus-visible + .compare__handle::after { outline: 3px solid var(--highlight); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }
.compare__caption { display: grid; gap: 14px 24px; padding-top: 20px; }
.compare__caption h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.compare__caption > p { color: var(--ink-2); max-width: 62ch; font-size: 15px; }
.hint { color: var(--ink-2); font-size: 11.5px; margin-top: 8px; }
@media (min-width: 860px) {
  .compare__caption { grid-template-columns: 7fr 5fr; }
}

.clip { margin: clamp(56px, 8vw, 112px) 0 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }

/* ---------- services ---------- */
.services { counter-reset: none; }
.service { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-block: 28px 32px; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.service__desc { color: var(--ink-2); max-width: 48ch; }
.service__list { display: grid; gap: 8px; font-size: 12px; color: var(--ink); padding-top: 6px; }
.service__list li::before { content: "\2014\2002"; color: var(--accent); }
.service--minor h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
@media (min-width: 860px) {
  .service { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline; }
  .service .index { grid-column: 1 / span 1; }
  .service h3 { grid-column: 2 / span 4; }
  .service__desc { grid-column: 6 / span 4; }
  .service__list { grid-column: 10 / -1; padding-top: 0; }
  .service--minor .service__desc { grid-column: 6 / -1; }
}

/* ---------- process ---------- */
.section--stone .section-head { border-top-color: var(--line); }
.steps { display: grid; gap: 36px; }
.steps li { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- about ---------- */
.about { display: grid; gap: 48px; border-top: 1px solid var(--line); padding-top: 20px; }
.about > div:first-child { display: grid; gap: 18px; align-content: start; }
.about > div:first-child > p:last-child { max-width: 52ch; }
.area h3 { color: var(--ink-2); padding-bottom: 12px; font-weight: 500; letter-spacing: 0.08em; }
.area li { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; padding-block: 14px; border-top: 1px solid var(--line); }
.area li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .about { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .about > div:first-child { grid-column: 1 / span 6; }
  .area { grid-column: 8 / -1; padding-top: 10px; }
}

/* ---------- inquiry ---------- */
.section--navy .index { color: var(--highlight); }
.section--navy .lede { color: var(--slate); }
.section--navy :focus-visible { outline-color: var(--highlight); }
.inquire { display: grid; gap: 48px; border-top: 1px solid #2A3345; padding-top: 20px; }
.inquire > div { display: grid; gap: 18px; align-content: start; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field__note { font-weight: 400; color: var(--slate); margin-left: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #fff; border-radius: 2px; padding: 13px 14px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field [aria-invalid] { border-color: #FF8A7A; box-shadow: 0 0 0 2px #FF8A7A; }
.field__error { color: #FFB4A9; font-size: 15px; font-weight: 600; }
.field__error:empty { display: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-preview { border: 1px dashed var(--slate); color: #D7DCE4; padding: 12px 14px; font-size: 12px; line-height: 1.6; text-transform: none; letter-spacing: 0.02em; }
.form-preview strong { color: var(--highlight); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 8px; }
.form[data-live="true"] .form-preview { display: none; }
.form .btn { justify-self: start; }
.form-status { color: #fff; font-weight: 600; }
.form-status:empty { display: none; }
@media (min-width: 900px) {
  .inquire { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .inquire > div { grid-column: 1 / span 5; }
  .form { grid-column: 7 / -1; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--slate); font-size: 14px; }
.site-footer__inner { display: grid; gap: 20px; padding-block: 40px 56px; border-top: 1px solid #2A3345; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; } }

/* ---------- thanks page ---------- */
.thanks { min-height: 60vh; display: grid; align-content: center; gap: 22px; padding-block: 80px; }
.thanks h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.thanks p { color: var(--ink-2); max-width: 46ch; }

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