/* ==========================================================================
   Carolina Mark Works — stylesheet
   Palette derives from the anneal spectrum a MOPA fiber laser produces on
   stainless: straw -> bronze -> steel blue -> violet. Base is cool brushed
   stainless, not warm paper.
   ========================================================================== */

:root {
  --bg:        #27333B;
  --surface:   #1E282E;
  --ink:       #E9EFF2;
  --ink-2:     #A4B4BC;
  --ink-3:     #7E8F98;
  --rule:      #3B4A53;
  --rule-soft: #324048;

  --gun:       #1B2429;
  --header-bg: #000000;
  --gun-2:     #2C3A42;
  --gun-3:     #3E4F58;

  --brand:     #E02238;
  --gold:      #B8862F;
  --straw:     #EAD9B0;
  --bronze:    #8E6B3A;
  --blue:      #7BAEDB;
  --blue-deep: #2E5C8A;
  --violet:    #5B4B7A;

  --anneal: linear-gradient(96deg, #C9962F 0%, #8E6B3A 26%, #4A5F86 55%, #2E5C8A 76%, #5B4B7A 100%);

  --shell: 1180px;
  --gap: 28px;

  /* Logo height drives the wordmark size. Change --mark-h and the text
     follows; change --wordmark-ratio to tune how tall the name sits. */
  --mark-h: 34px;
  --wordmark-ratio: 0.8;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* CC Monster Mash Worn, from the Adobe Fonts kit linked in each page head.
     Ships in a single 400 weight only, so never ask for bold here. */
  --f-wordmark: "ccmonstermashworn", var(--f-display);
  --f-text: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* Tells the browser to render form controls, scrollbars and the native
   date picker in their dark variants. */
:root { color-scheme: dark; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #B7D6F0; }

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

/* ---------- shell -------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.band { padding-block: 84px; }
.band--tight { padding-block: 56px; }
.band--dark { background: var(--gun); color: #DCE3E6; }
.band--dark h2, .band--dark h3 { color: #FFF; }
.band--dark h4 { color: var(--straw); }
.band--rule { border-top: 1px solid var(--rule); }

/* ---------- type --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.012em; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.05em; max-width: 68ch; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.band--dark .lede { color: #A9B8BF; }
.small { font-size: 0.9rem; color: var(--ink-2); }
.push-top { margin-top: 34px; }
.band--dark .small { color: #93A4AC; }

.section-intro { max-width: 62ch; margin-bottom: 44px; }

/* ---------- header ------------------------------------------------------- */

.masthead {
  background: var(--header-bg);
  border-bottom: 1px solid #2A343A;
}
.masthead .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding-block: 16px;
}

.wordmark {
  font-family: var(--f-wordmark);
  font-weight: 400;
  font-size: calc(var(--mark-h) * var(--wordmark-ratio));
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.wordmark:hover { color: #F04A5C; }
.wordmark .mark {
  height: var(--mark-h);
  width: auto;
  flex: none;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a {
  color: #B6C4CB;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #FFF; }
.nav a[aria-current="page"] { color: #FFF; border-bottom-color: var(--gold); }

/* ---------- hero --------------------------------------------------------- */

.hero {
  background: var(--gun);
  color: #C9D5DA;
  padding-block: 96px 92px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* machined hatch, very faint */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(74deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.hero .shell { position: relative; }

.hero-mark { position: relative; display: inline-block; }
.hero-mark h1 { color: #38474F; margin-bottom: 0.34em; }

.hero-mark .overlay {
  position: absolute;
  inset: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  background: var(--anneal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
}

.hero-mark .galvo {
  position: absolute;
  top: -6px; bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #FFE6B0 18%, #FFF 50%, #FFE6B0 82%, transparent);
  box-shadow: 0 0 14px 3px rgba(255, 214, 140, 0.55);
  opacity: 0;
  left: 0;
}

.hero p.lede { color: #9FB0B8; margin-top: 4px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid #33424A;
  font-size: 0.93rem; color: #8FA1AA;
}
.hero-meta b { color: #E4EBEE; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .js-anim .hero-mark .overlay { animation: burn 1500ms cubic-bezier(.22,.61,.36,1) 220ms both; }
  .js-anim .hero-mark .galvo   { animation: sweep 1500ms cubic-bezier(.22,.61,.36,1) 220ms both; }
}
@keyframes burn {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes sweep {
  0%   { left: 0;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- buttons ------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-block;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--gold); color: #17110A; border-color: var(--gold); }
.btn--primary:hover { background: #CE9836; border-color: #CE9836; color: #17110A; }
.btn--ghost { background: transparent; color: #DCE3E6; border-color: #4B5C65; }
.btn--ghost:hover { border-color: #8FA1AA; color: #FFF; }
.btn--dark { background: transparent; color: var(--ink); border-color: #4E606A; }
.btn--dark:hover { background: rgba(255,255,255,0.05); color: #FFF; border-color: #7E939E; }

/* ---------- split columns ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 52px var(--gap);
}
.split-gap-top { margin-top: 52px; }
.split--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px var(--gap); }

.stream > * + * { margin-top: 40px; }

/* ---------- product line blocks (not generic cards) ---------------------- */

.line { border-top: 3px solid var(--ink); padding-top: 20px; }
.line--gold { border-top-color: var(--gold); }
.line--blue { border-top-color: var(--blue); }
.line h3 { margin-bottom: 0.35em; }
.line p { margin-bottom: 0.7em; }

/* ---------- plate: dark photo placeholder -------------------------------- */

.plate {
  background: var(--gun-2);
  background-image:
    repeating-linear-gradient(74deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 6px),
    linear-gradient(150deg, #35444C, #1E272C);
  border: 1px solid var(--rule);
  border-radius: 3px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #7E9099;
  font-size: 0.83rem;
}

/* ---------- shot: real photo, same frame as .plate ----------------------- */

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--gun-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
}


/* ---------- dropzone ----------------------------------------------------- */

.dropzone {
  position: relative;
  border: 2px dashed var(--rule);
  border-radius: 4px;
  background: var(--surface);
  padding: 34px 20px;
  text-align: center;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.dropzone.is-over {
  border-color: var(--gold);
  background: rgba(184, 134, 47, 0.08);
}

/* Real input, laid over the whole zone: keeps it clickable AND focusable. */
.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone-text {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
  pointer-events: none;
}
.dropzone-text b { color: var(--ink); font-weight: 600; }
.dropzone-input:focus-visible + .dropzone-text { outline: 2px solid var(--blue); outline-offset: 6px; }

.filelist { list-style: none; margin: 12px 0 0; padding: 0; }
.filelist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.92rem;
}
.filelist li:last-child { border-bottom: none; }
.filelist-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.filelist-size { color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.filelist-remove {
  flex: none;
  background: none;
  border: none;
  padding: 2px 4px;
  font: inherit;
  font-size: 0.86rem;
  color: #F0907A;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filelist-remove:hover { color: #F5B0A2; }

/* ---------- pricing table ------------------------------------------------ */

.rate { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.rate caption { text-align: left; font-weight: 600; padding-bottom: 10px; color: var(--ink-2); }
.rate th, .rate td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--rule); }
.rate thead th { font-size: 0.86rem; color: var(--ink-2); font-weight: 600; border-bottom-color: var(--ink); }
.rate td.price { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; white-space: nowrap; }
.rate tbody tr:last-child th, .rate tbody tr:last-child td { border-bottom: none; }
.rate th { font-weight: 500; }

/* ---------- numbered sequence (justified: it IS a sequence) -------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(s);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.1;
}
.steps h4 {
  margin-bottom: 0.25em;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.008em;
}
.steps p { margin: 0; }

/* ---------- alert -------------------------------------------------------- */

.alert {
  background: var(--surface);
  border-left: 4px solid #D9563C;
  border-radius: 0 3px 3px 0;
  padding: 22px 24px;
  margin: 0 0 32px;
}
.alert h3 { color: #F0A392; margin-bottom: 0.3em; font-size: 1.1rem; }
.alert p:last-child { margin-bottom: 0; }
.band--dark .alert { background: #232E34; }
.band--dark .alert h3 { color: #F0A392; }

/* ---------- spec list ---------------------------------------------------- */

.spec { margin: 0; padding: 0; list-style: none; }
.spec li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.spec li:last-child { border-bottom: none; }
.spec li::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 9px; height: 2px; background: var(--gold);
}
.band--dark .spec li { border-bottom-color: #33424A; }

/* ---------- form --------------------------------------------------------- */

.form { max-width: 680px; }
.field { margin-bottom: 24px; }
.field > label,
.fieldset > legend {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 7px;
  padding: 0;
}
.field .hint { display: block; font-size: 0.86rem; color: var(--ink-2); margin: -3px 0 8px; font-weight: 400; }
.field .field-msg { display: block; font-size: 0.86rem; color: #F0907A; margin-top: 6px; min-height: 1px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea,
.field input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 13px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="date"] { min-height: 47px; appearance: none; -webkit-appearance: none; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
.field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }

.fieldset { border: none; margin: 0 0 24px; padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 0.97rem; }
.choice input { margin-top: 5px; flex: none; }

.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--gap); }

.form-note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.form-note p:last-child { margin-bottom: 0; }

.status { margin-top: 18px; font-weight: 500; }
.status[data-state="ok"] { color: #6FCB9B; }
.status[data-state="err"] { color: #F0907A; }

/* ---------- callout strip ------------------------------------------------ */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 34px var(--gap);
  border-top: 1px solid #33424A;
  padding-top: 34px;
}
.strip .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  background: var(--anneal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}
.strip p { margin: 0; font-size: 0.95rem; color: #9FB0B8; max-width: 34ch; }

/* ---------- footer ------------------------------------------------------- */

.foot {
  background: var(--gun);
  color: #8FA1AA;
  padding-block: 52px 40px;
  font-size: 0.92rem;
}
.foot .shell { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px var(--gap); }
.foot h4 { color: #E4EBEE; font-size: 0.9rem; margin-bottom: 0.8em; }
.foot a { color: #A9BAC2; text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: #FFF; }
.foot p { margin: 0 0 0.7em; max-width: 34ch; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #33424A; padding-top: 22px; font-size: 0.84rem; color: #6F818A; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .band { padding-block: 60px; }
  .hero { padding-block: 64px 60px; }
}
