/* =========================================================================
   Multi-Jack A/V & Tech Services: site styles

   1. Design tokens (colors, fonts, sizes). Change the look here first.
   2. Base
   3. Header and navigation
   4. Hero
   5. Marquee
   6. Services
   7. Our standard
   8. About
   9. Quote form
   10. Footer
   11. Responsive overrides
       Breakpoints (CSS can't use variables in media queries):
       - 1180px: small laptop / tablet landscape
       - 800px:  tablet portrait, menu collapses, sections stack
       - 530px:  phone
   ========================================================================= */

/* 1. Design tokens ------------------------------------------------------ */

:root {
  /* Brand colors */
  --ink: #202322;
  --cream: #f5f2ea;
  --paper: #fffdf7;
  --border: #d4d0c7;
  --muted: #6e716e;
  --blue: #597b9e;
  --rust: #da9453;
  --red: #c96f66;
  --green: #72947a;
  --gold: #e5ae76; /* accent on dark sections */
  --orange-button: #e4a46b;
  --orange-button-hover: #f1bb88;

  /* Surfaces */
  --card-bg: #fffdf7;
  --field-bg: #f4f1e9;
  --about-bg: #e9e7df;
  --standard-bg: #252a2b;
  --contact-bg: #293234;
  --footer-bg: #181e1e;

  /* Text shades */
  --text-body: #484b47;
  --text-soft: #676964;
  --text-on-dark: #ddded9;
  --text-on-dark-soft: #c2c7c3;

  /* Fonts */
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-suit: Georgia, serif;

  /* Layout */
  --wrap-max: 1260px;
  --wrap-gutter: 72px;
  --section-pad: 114px;
  --header-height: 88px;

  /* Hero and about artwork */
  --hero-poster-width: 365px;
  --about-card-width: 315px;

  /* Services */
  --service-columns: 4;
  --service-gap: 18px;
  --service-pad: 28px;
  --service-icon-size: 132px;
  --service-title-size: clamp(32px, 2.9vw, 40px); /* scales so each title stays on one line */
  --service-text-size: 15px;
  --service-list-size: 14px;
  --service-border: 2px;
  --service-band: 8px; /* suit-colored strip on top of each card */
  --service-shadow: 6px; /* hard offset shadow; grows on hover */
  --service-shadow-hover: 10px;
}

/* 2. Base --------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) - 2px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps images at their real shape. Without it, the width and
   height attributes in the HTML stretch the poster art (the old bug). */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

::selection {
  background: var(--rust);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - var(--wrap-gutter), var(--wrap-max));
  margin-inline: auto;
}

.section-pad {
  padding-block: var(--section-pad);
}

.skip-link {
  position: absolute;
  z-index: 99;
  left: 12px;
  top: -80px;
  background: #fff;
  padding: 12px;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow,
.kicker {
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.11em;
}

.kicker {
  margin: 0 0 16px;
  color: var(--blue);
}

.light-kicker {
  color: var(--gold);
}

h2 {
  font: 900 clamp(58px, 6.6vw, 94px) / 0.89 var(--font-head);
  letter-spacing: -0.007em;
  margin: 0;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 18px 22px;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button span {
  font-size: 18px;
  font-family: var(--font-body);
  line-height: 10px;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: var(--blue);
}

.button-orange {
  background: var(--orange-button);
  color: var(--ink);
  border-color: var(--ink);
}

.button-orange:hover {
  background: var(--orange-button-hover);
}

.text-link {
  font: 700 11px/1.3 var(--font-mono);
  border-bottom: 2px solid var(--ink);
  padding: 10px 0;
}

.text-link span {
  padding-left: 10px;
}

/* 3. Header and navigation ---------------------------------------------- */

.announcement {
  background: var(--ink);
  color: var(--cream);
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
}

.announcement-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.announcement-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--rust);
}

.announcement-suit {
  margin-left: auto;
  font-size: 17px;
  line-height: 1;
  color: var(--blue);
}

.site-header {
  background: rgba(245, 242, 234, 0.96);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(15px);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wordmark-card {
  height: 48px;
  width: 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 7px;
  border-radius: 5px;
  font: 800 19px/0.8 var(--font-head);
  transform: rotate(-5deg);
}

.wordmark-card span:last-child {
  font-size: 21px;
}

.wordmark-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark-type strong {
  font: 900 31px/0.88 var(--font-head);
  letter-spacing: 0.025em;
}

.wordmark-type .dash {
  color: var(--blue);
}

.wordmark-type small {
  font: 600 8px/1.2 var(--font-mono);
  letter-spacing: 0.13em;
  margin-top: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 52px);
}

.main-nav > a {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.main-nav > a:hover {
  color: var(--blue);
}

.main-nav > .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  gap: 25px;
  align-items: center;
}

.main-nav > .nav-cta:hover {
  color: var(--paper);
  background: var(--blue);
}

.menu-toggle {
  display: none;
}

/* 4. Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 0;
  background: radial-gradient(ellipse at 90% 30%, #e8e6df 0%, transparent 42%), var(--cream);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 60px;
  min-height: 688px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 58px;
}

.eyebrow {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 27px;
}

.eyebrow-line {
  display: block;
  width: 31px;
  height: 2px;
  background: var(--rust);
}

.hero h1 {
  font: 900 clamp(74px, 9.1vw, 142px) / 0.79 var(--font-head);
  letter-spacing: -0.018em;
  margin: 0 0 34px;
  white-space: nowrap;
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.right-word {
  display: block;
}

.period {
  color: var(--rust);
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  max-width: 485px;
  margin-bottom: 31px;
  color: var(--text-body);
}

.hero-description strong {
  font-weight: 700;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 62px;
  font: 600 10px/1.5 var(--font-mono);
  letter-spacing: 0.015em;
  color: var(--muted);
}

.proof-suits {
  display: flex;
  gap: 5px;
  font-size: 23px;
}

.proof-suits b {
  font-weight: 500;
}

.proof-suits b:nth-child(1) {
  color: var(--blue);
}

.proof-suits b:nth-child(2) {
  color: var(--red);
}

.proof-suits b:nth-child(3) {
  color: var(--green);
}

.proof-suits b:nth-child(4) {
  color: var(--rust);
}

/* The art box sizes itself to the poster (min-height, not a fixed height),
   so the card can never spill over the headline. */
.hero-art {
  min-height: 640px;
  padding-block: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.orbit {
  position: absolute;
  border: 1px solid #d6d1c6;
  border-radius: 50%;
  z-index: -1;
}

.orbit-one {
  height: 540px;
  width: 540px;
}

.orbit-two {
  height: 670px;
  width: 670px;
  opacity: 0.55;
}

.poster-frame {
  width: min(82%, var(--hero-poster-width));
  transform: rotate(5deg);
  padding: 11px;
  background: #242626;
  box-shadow:
    22px 30px 0 #d7d2c7,
    26px 34px 0 var(--ink),
    0 45px 60px #30251e30;
  transition: transform 0.4s;
}

.poster-frame:hover {
  transform: rotate(1deg) translateY(-8px);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 1000 / 1492;
  object-fit: cover;
  border: 1px solid #252525;
}

.floating-suit {
  position: absolute;
  z-index: -1;
  font-family: var(--font-suit);
  line-height: 1;
}

.suit-diamond {
  font-size: 188px;
  color: #e1a872;
  top: 1%;
  right: -2%;
  transform: rotate(15deg);
}

.suit-spade {
  font-size: 116px;
  color: #9aaebf;
  bottom: 7%;
  left: -1%;
  transform: rotate(-11deg);
}

.art-note {
  position: absolute;
  right: -8px;
  bottom: 42px;
  background: #e5ac70;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 12px/1.2 var(--font-mono);
  transform: rotate(-5deg);
}

.art-note-asterisk {
  font-size: 35px;
  line-height: 1;
}

.hero-bottom {
  height: 55px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #7d7f78;
}

/* 5. Marquee ------------------------------------------------------------ */

.marquee {
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
  border-block: 3px solid var(--ink);
}

.marquee-track {
  width: max-content;
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 31px;
  animation: marquee 45s linear infinite;
}

.marquee-track span {
  font: 800 27px/1 var(--font-head);
  letter-spacing: 0.06em;
}

.marquee-track i {
  font: normal 25px/1 var(--font-suit);
  color: #d0dde8;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 6. Services ----------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 46px;
}

.section-heading h2 span,
.about h2 span {
  color: var(--blue);
}

.section-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 300px;
  margin: 0 0 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(var(--service-columns), 1fr);
  gap: var(--service-gap);
}

.service-card {
  --accent: var(--blue);
  background: var(--card-bg);
  border: var(--service-border) solid var(--ink);
  border-top: var(--service-band) solid var(--accent);
  box-shadow: var(--service-shadow) var(--service-shadow) 0 var(--ink);
  padding: var(--service-pad);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.service-card:hover {
  --lift: calc(var(--service-shadow) - var(--service-shadow-hover));
  transform: translate(var(--lift), var(--lift));
  box-shadow: var(--service-shadow-hover) var(--service-shadow-hover) 0 var(--ink);
}

.heart-card {
  --accent: var(--red);
}

.club-card {
  --accent: var(--green);
}

.diamond-card {
  --accent: var(--rust);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-num {
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.service-suit {
  font: normal 60px/0.7 var(--font-suit);
  color: var(--accent);
}

.service-icon {
  height: calc(var(--service-icon-size) + 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Bold printed-card icons: ink outlines, suit-colored fills, hard offset shadow */
.service-icon svg {
  height: var(--service-icon-size);
  width: var(--service-icon-size);
  overflow: visible;
  stroke: var(--ink);
  fill: none;
  transition: transform 0.25s;
}

.service-card:hover .service-icon svg {
  transform: rotate(-4deg) scale(1.06);
}

.service-icon .icon-shadow {
  fill: var(--ink);
  stroke: none;
}

.service-icon .icon-paper {
  fill: var(--paper);
}

.service-icon .icon-accent {
  fill: var(--accent);
}

.service-icon .icon-ink,
.service-icon .icon-star {
  fill: var(--ink);
  stroke: none;
}

.service-icon .icon-glare {
  fill: var(--paper);
  stroke: none;
  opacity: 0.8;
}

.service-icon .icon-wave-accent {
  stroke: var(--accent);
  stroke-width: 7;
}

.service-icon .icon-wave-paper {
  stroke: var(--paper);
}

.service-icon .icon-stud {
  stroke-width: 4;
  stroke-dasharray: 6 7;
}

.service-icon .icon-hidden {
  stroke: var(--accent);
  stroke-dasharray: 1 11;
}

.service-icon .icon-cable {
  stroke: var(--accent);
  stroke-width: 7;
}

.service-icon .icon-cable-outline {
  stroke-width: 14;
}

.service-card h3 {
  font: 900 var(--service-title-size) / 1 var(--font-head);
  letter-spacing: 0.02em;
  margin: 8px 0 14px;
}

.service-card p {
  font-size: var(--service-text-size);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 0 20px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}

.service-card li {
  font-size: var(--service-list-size);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-card li::before {
  content: '↗';
  color: var(--accent);
  font-weight: 800;
}

.card-link {
  margin-top: auto;
  border-top: var(--service-border) solid var(--ink);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12px/1.3 var(--font-mono);
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--accent);
}

.card-link span {
  font-size: 20px;
}

.services-footnote {
  margin: 18px 0 0;
  color: #777a76;
  font-size: 12px;
  line-height: 1.6;
}

/* 7. Our standard ------------------------------------------------------- */

.standard {
  background: var(--standard-bg);
  color: var(--paper);
  padding-bottom: 0;
  overflow: hidden;
}

.standard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
}

.standard h2 {
  font-size: clamp(76px, 8.5vw, 128px);
}

.standard h2 em {
  font-style: normal;
  color: var(--gold);
}

.standard-lead {
  margin: 25px 0 30px;
  max-width: 415px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-on-dark);
}

.standard-list {
  border-top: 1px solid #5b6060;
}

.standard-list > div {
  display: flex;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid #5b6060;
}

.standard-check {
  flex: 0 0 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--blue);
  font-size: 21px;
  color: #fff;
}

.standard-list h3 {
  font: 800 23px/1 var(--font-head);
  margin: 1px 0 7px;
}

.standard-list p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
  margin: 0;
  max-width: 375px;
}

.trust-strip {
  border-top: 1px solid #616768;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 30px;
  flex-wrap: wrap;
}

.trust-strip span {
  font: 600 11px/1.2 var(--font-mono);
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-strip b {
  font: normal 25px/0.7 var(--font-suit);
  color: var(--gold);
}

/* 8. About -------------------------------------------------------------- */

.about {
  background: var(--about-bg);
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11%;
  align-items: center;
}

.about-visual {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-back-card {
  width: 300px;
  height: 447px;
  background: var(--blue);
  border: 10px solid var(--paper);
  outline: 3px solid var(--ink);
  transform: rotate(-12deg) translate(-45px, -3px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 17px 20px;
  position: absolute;
  font: 800 49px/0.8 var(--font-head);
  color: #fff;
}

.about-back-card span:nth-child(2) {
  font: normal 65px/1 var(--font-suit);
}

.about-back-card small {
  font: 600 12px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
}

.about-front-card {
  position: absolute;
  transform: rotate(8deg) translate(63px, 5px);
  width: var(--about-card-width);
  background: var(--ink);
  padding: 8px;
  box-shadow: 16px 17px 0 #c5c2b9;
}

.about-front-card img {
  width: 100%;
  aspect-ratio: 1000 / 1492;
  object-fit: cover;
}

.about-copy h2 {
  font-size: clamp(64px, 6.2vw, 99px);
  margin-bottom: 29px;
}

.about-copy p:not(.kicker):not(.about-signoff) {
  line-height: 1.75;
  font-size: 16px;
  color: #5d625d;
  max-width: 495px;
  margin-bottom: 14px;
}

.about-rule {
  height: 1px;
  background: #c6c4bc;
  margin: 33px 0 19px;
}

.about-signoff {
  display: flex;
  align-items: center;
  gap: 19px;
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}

.about-signoff span {
  font: normal 26px/1 var(--font-suit);
  color: var(--blue);
}

/* 9. Quote form --------------------------------------------------------- */

.contact {
  background: var(--contact-bg);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8%;
  align-items: start;
}

.contact-copy {
  position: relative;
}

.contact h2 {
  font-size: clamp(75px, 8.1vw, 120px);
}

.contact h2 span {
  color: var(--gold);
}

.contact-copy > p:not(.kicker) {
  font-size: 17px;
  line-height: 1.7;
  color: #ccd2d0;
  max-width: 405px;
  margin-top: 28px;
}

.contact-details {
  display: grid;
  gap: 25px;
  margin-top: 44px;
}

.contact-details > div {
  display: flex;
  gap: 15px;
  align-items: center;
}

.detail-icon {
  height: 40px;
  width: 40px;
  background: #415457;
  display: grid;
  place-items: center;
  color: #edc18f;
  font-size: 27px;
}

.contact-details strong {
  display: block;
  font: 700 12px/1.6 var(--font-mono);
}

.contact-details small {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #bcc8c5;
}

.giant-suit {
  font: normal 470px/0.9 var(--font-suit);
  color: #344143;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -135px;
  top: 320px;
  opacity: 0.75;
}

.contact-copy > *:not(.giant-suit) {
  position: relative;
  z-index: 1;
}

.form-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 31px 38px 36px;
  box-shadow: 12px 12px 0 #151d1f;
  border: 2px solid #151d1f;
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #bfc0ba;
  padding-bottom: 16px;
  font: 600 10px/1.2 var(--font-mono);
  color: #747670;
}

.form-card h3 {
  font: 900 48px/0.9 var(--font-head);
  margin: 28px 0 9px;
}

.form-subtitle {
  font-size: 13px;
  color: #666c69;
  margin: 0 0 27px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font: 700 10px/1.3 var(--font-mono);
  letter-spacing: 0.015em;
}

.field label span {
  color: #c76d52;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  appearance: none;
  background: var(--field-bg);
  color: var(--ink);
  border: 1px solid #cdcac2;
  border-radius: 0;
  padding: 14px;
  outline: none;
  line-height: 1.4;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #597b9e40;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b8e89;
  font-size: 13px;
}

.field select {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23202322" stroke-width="2"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 19px;
  padding-right: 36px;
}

.field textarea {
  resize: vertical;
  min-height: 124px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.submit-button {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
  gap: 20px;
}

.form-note {
  font-size: 11px;
  line-height: 1.6;
  color: #757a76;
  margin: 15px 0 0;
  text-align: center;
}

/* "Success!" overlay shown on the form card after the quote form is sent */

.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 253, 247, 0.85);
  cursor: pointer;
  animation: form-success-in 0.2s ease-out;
}

.form-success[hidden] {
  display: none;
}

.form-success-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px 30px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
  font: 900 40px/1 var(--font-head);
  color: var(--ink);
}

.form-success-suit {
  font: normal 32px/1 var(--font-suit);
  color: var(--blue);
}

@keyframes form-success-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Success page (success.html, shown after the quote form is sent) */

.success-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--cream);
}

.success-card {
  width: min(100%, 590px);
  text-align: center;
  border: 3px solid var(--ink);
  background: var(--paper);
  padding: clamp(35px, 7vw, 75px);
  box-shadow: 12px 12px 0 var(--blue);
}

.success-symbol {
  font: normal 90px/1 var(--font-suit);
  color: var(--blue);
  margin-bottom: 20px;
}

.success-card h1 {
  font: 900 clamp(57px, 11vw, 86px) / 0.9 var(--font-head);
  margin: 0 0 21px;
}

.success-card p {
  font: 400 16px/1.8 var(--font-body);
  color: #606560;
  margin: 0 0 28px;
}

.success-card .button {
  margin: 0 auto;
}

/* 10. Footer ------------------------------------------------------------ */

.footer {
  background: var(--footer-bg);
  color: #f0eee6;
}

.footer-top {
  min-height: 159px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #4c5251;
}

.footer-wordmark .wordmark-card {
  background: #f0eee6;
  color: var(--ink);
}

.footer-wordmark .wordmark-type strong {
  font-size: 33px;
}

.footer-top > p {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  margin: 0;
  color: #abb2ae;
}

.back-top {
  font: 700 11px/1 var(--font-mono);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 8px;
  white-space: nowrap;
}

.footer-bottom {
  padding-block: 24px;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: center;
  font: 600 10px/1.5 var(--font-mono);
  letter-spacing: 0.03em;
  color: #abb2ae;
}

.footer-suits {
  font: normal 24px/0.7 var(--font-suit);
  letter-spacing: 4px;
  color: var(--gold);
}

/* 11. Responsive overrides ---------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --service-pad: 22px;
    --service-icon-size: 116px;
    --service-title-size: clamp(30px, 2.95vw, 36px);
    --service-text-size: 14px;
    --service-list-size: 13px;
  }

  .hero-layout {
    gap: 30px;
    min-height: 600px;
  }

  .hero h1 {
    font-size: clamp(71px, 9vw, 116px);
  }

  .hero-art {
    min-height: 580px;
  }

  .standard-layout {
    gap: 5%;
  }

  .standard h2 {
    font-size: 96px;
  }

  .contact-layout {
    gap: 5%;
  }

  .contact h2 {
    font-size: 94px;
  }
}

/* Below laptop width four columns get too narrow for the titles. */
@media (max-width: 1099px) {
  :root {
    --service-columns: 2;
    --service-title-size: 38px;
  }
}

@media (max-width: 800px) {
  :root {
    --wrap-gutter: 42px;
    --section-pad: 80px;
    --header-height: 72px;
    --hero-poster-width: 300px;
    --service-columns: 2;
    --service-pad: 24px;
    --service-icon-size: 116px;
    --service-title-size: 36px;
    --service-text-size: 15px;
    --service-list-size: 14px;
  }

  .wrap {
    width: min(100% - var(--wrap-gutter), 680px);
  }

  .wordmark-type strong {
    font-size: 27px;
  }

  .wordmark-card {
    height: 42px;
    width: 34px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 42px;
    border: 1px solid var(--ink);
    background: transparent;
    position: relative;
    z-index: 35;
  }

  .menu-toggle span {
    height: 2px;
    width: 21px;
    background: var(--ink);
    transition:
      transform 0.2s,
      opacity 0.2s;
  }

  .menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    left: 0;
    top: var(--header-height);
    width: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 26px 21px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 14px 18px #2023221c;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 18px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav > .nav-cta {
    margin-top: 14px;
    justify-content: space-between;
  }

  /* Hero stacks: copy first, then the card underneath it. */
  .hero {
    padding-top: 62px;
    padding-bottom: 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .hero-copy {
    padding-bottom: 25px;
  }

  .hero h1 {
    font-size: clamp(70px, 14.8vw, 122px);
  }

  .hero-description {
    max-width: 530px;
  }

  .hero-proof {
    margin-top: 35px;
  }

  .hero-art {
    min-height: 0;
    padding-block: 50px;
  }

  .orbit-one {
    width: 480px;
    height: 480px;
  }

  .orbit-two {
    width: 600px;
    height: 600px;
  }

  .art-note {
    right: 10px;
    bottom: 30px;
  }

  .hero-bottom {
    margin-top: 30px;
  }

  .hero-bottom span:nth-child(2) {
    display: none;
  }

  .section-heading {
    align-items: start;
  }

  .section-intro {
    max-width: 255px;
  }

  .standard-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .standard h2 {
    font-size: clamp(82px, 13vw, 110px);
  }

  .standard-layout {
    gap: 36px;
  }

  .trust-strip {
    margin-top: 50px;
  }

  .about-layout {
    gap: 0;
  }

  .about-visual {
    min-height: 540px;
    order: 2;
  }

  .about-copy {
    order: 1;
  }

  .about-copy h2 {
    font-size: clamp(78px, 12vw, 110px);
  }

  .contact-layout {
    gap: 50px;
  }

  .contact h2 {
    font-size: clamp(89px, 14vw, 125px);
  }

  .giant-suit {
    top: 110px;
    left: auto;
    right: 0;
    font-size: 340px;
  }

  .contact-details {
    margin-top: 28px;
  }

  .form-card {
    max-width: 680px;
  }

  .footer-top > p {
    display: none;
  }
}

@media (max-width: 530px) {
  :root {
    --wrap-gutter: 36px;
    --section-pad: 66px;
    --header-height: 68px;
    --hero-poster-width: 230px;
    --about-card-width: 220px;
    --service-columns: 1;
    --service-pad: 24px;
    --service-icon-size: 116px;
    --service-title-size: 38px;
    --service-text-size: 15px;
    --service-list-size: 14px;
    --service-shadow: 5px;
  }

  .wrap {
    width: calc(100% - var(--wrap-gutter));
  }

  .announcement-inner {
    font-size: 8px;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(56px, 16.1vw, 86px);
    margin-bottom: 25px;
  }

  .outline-word {
    -webkit-text-stroke: 1.3px var(--ink);
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;
    gap: 20px;
  }

  .hero-actions .button {
    min-height: 54px;
  }

  .text-link {
    align-self: center;
  }

  .hero-proof {
    font-size: 8px;
    gap: 11px;
    margin-top: 31px;
  }

  .proof-suits {
    font-size: 18px;
  }

  .hero-art {
    padding-block: 36px 44px;
  }

  .poster-frame {
    padding: 7px;
    transform: rotate(3deg);
    box-shadow:
      13px 17px 0 #d7d2c7,
      16px 20px 0 var(--ink),
      0 30px 30px #30251e22;
  }

  .orbit-one {
    width: 330px;
    height: 330px;
  }

  .orbit-two {
    width: 420px;
    height: 420px;
  }

  .suit-diamond {
    font-size: 100px;
    right: 0;
  }

  .suit-spade {
    font-size: 80px;
    left: 3%;
    bottom: 7%;
  }

  .art-note {
    right: 4%;
    bottom: 17px;
    padding: 8px;
    font-size: 8px;
    gap: 7px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .art-note-asterisk {
    font-size: 23px;
  }

  .hero-bottom {
    margin-top: 20px;
    height: 44px;
    font-size: 8px;
  }

  .marquee-track {
    min-height: 50px;
    gap: 18px;
  }

  .marquee-track span {
    font-size: 23px;
  }

  .marquee-track i {
    font-size: 20px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading h2,
  h2 {
    font-size: clamp(52px, 12.8vw, 82px);
  }

  .section-intro {
    margin-top: 19px;
    font-size: 14px;
    max-width: 450px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-suit {
    font-size: 48px;
  }

  .standard h2 {
    font-size: clamp(72px, 18vw, 108px);
  }

  .standard-lead {
    font-size: 16px;
  }

  .standard-list > div {
    padding: 19px 0;
  }

  .trust-strip {
    margin-top: 27px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 21px 12px;
    padding-block: 23px;
  }

  .trust-strip span {
    font-size: 9px;
    gap: 5px;
  }

  .trust-strip b {
    font-size: 18px;
  }

  .about-copy h2 {
    font-size: clamp(62px, 15vw, 97px);
  }

  .about-copy p:not(.kicker):not(.about-signoff) {
    font-size: 14px;
  }

  .about-visual {
    min-height: 440px;
  }

  .about-back-card {
    width: 210px;
    height: 314px;
    transform: rotate(-12deg) translate(-27px, -3px);
    border-width: 7px;
    font-size: 40px;
  }

  .about-front-card {
    transform: rotate(8deg) translate(36px, 0);
  }

  .about-signoff {
    gap: 12px;
    font-size: 10px;
  }

  .about-signoff span {
    font-size: 21px;
  }

  .contact h2 {
    font-size: clamp(70px, 17vw, 105px);
  }

  .contact-copy > p:not(.kicker) {
    font-size: 15px;
    margin-top: 20px;
  }

  .giant-suit {
    font-size: 270px;
    top: 170px;
  }

  .contact-layout {
    gap: 40px;
  }

  .form-card {
    padding: 24px 20px 28px;
    box-shadow: 7px 7px 0 #151d1f;
  }

  .form-card h3 {
    font-size: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field {
    margin-bottom: 17px;
  }

  .footer-top {
    min-height: 120px;
  }

  .footer-wordmark .wordmark-type strong {
    font-size: 26px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 9px;
  }

  .footer-suits {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
