/* Wave Watcher, concept 1: minimal spec sheet */
:root {
  --ink: #111214;
  --ink-2: #5b5f66;
  --ink-3: #8a8f97;
  --rule: #e4e5e7;
  --paper: #ffffff;
  --tint: #f5f6f7;
  --accent: #0a66c2;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --measure: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --gap: clamp(72px, 11vw, 136px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

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

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.bar { border-bottom: 1px solid var(--rule); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mark { font-weight: 600; letter-spacing: -0.01em; }
.mark::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 1px;
}
.bar-link { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.bar-link:hover { color: var(--accent); }

/* 1. statement */
.intro { padding-top: clamp(72px, 12vw, 152px); padding-bottom: clamp(40px, 6vw, 72px); }
.eyebrow {
  margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
h1 {
  margin: 0; max-width: 20ch;
  font-size: clamp(32px, 5.2vw, 60px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em;
}

/* 2. footage */
.footage { margin: 0; }
.frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--tint); border-radius: 4px;
}
.frame > video, .frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-3); text-align: center; padding: 16px;
  background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 4px;
}
.placeholder span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.placeholder small { font-size: 13px; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* section scaffolding */
.section { padding-top: var(--gap); }
.label {
  margin: 0 0 32px; padding-top: 16px; border-top: 1px solid var(--ink);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}

/* 3. spec grid */
.spec {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
}
.cell { padding: 4px 24px 8px; border-right: 1px solid var(--rule); }
.cell dt { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.idx { display: block; font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.cell dd { margin: 0; color: var(--ink-2); font-size: 16px; }

/* 4. comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; padding-top: 0; }
.compare thead th.ww { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 20%; }
.compare td { color: var(--ink-2); width: 40%; }
.compare td.ww { color: var(--ink); }
.compare tbody tr { transition: background-color .15s ease; }
.compare tbody tr:hover { background: var(--tint); }

/* 5. who */
.who { list-style: none; margin: 0; padding: 0; }
.who li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.who li:first-child { padding-top: 0; }
.who strong { font-weight: 600; }
.who span { color: var(--ink-2); }

/* 6. field test */
.lede { margin: 0 0 40px; max-width: 46ch; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; letter-spacing: -0.01em; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.figures { margin: 0; }
.figures div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.figures div:first-child { padding-top: 0; }
.figures dt { color: var(--ink-2); }
.figures dd { margin: 0; font-weight: 600; text-align: right; }

/* placeholders: deliberately visible so they can't ship by accident */
.ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; font-weight: 500;
  color: #8a5a00; background: #fff4d6; padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.ph-box {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 16px; border: 1px dashed #d9b45a; background: #fffaf0; border-radius: 4px; color: #8a5a00;
}
.ph-box span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 500; }
.ph-box small { font-size: 13px; color: #8a6d2a; }

/* 7. contact */
.contact { padding-bottom: var(--gap); }
.contact-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 18px; }
.btn {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: 9px 20px; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-quiet { color: var(--ink); background: transparent; border-color: var(--rule); padding: 6px 14px; font-size: 14px; }
.btn-quiet:hover { color: var(--accent); background: transparent; border-color: var(--accent); }
.email-row { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email-row[hidden] { display: none; }
.email { font-size: 20px; font-weight: 500; user-select: all; -webkit-user-select: all; word-break: break-all; }
.copied { font-size: 14px; color: var(--ink-3); }

/* footer */
.foot { padding-bottom: 40px; font-size: 13px; color: var(--ink-3); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* responsive */
@media (max-width: 960px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .cell { border-right: 0; border-top: 1px solid var(--rule); padding: 20px 24px 28px 0; }
  .cell:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--rule); }
  .cell:nth-child(even) { padding-left: 24px; }
  .idx { margin-bottom: 16px; }
  .cell:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .field { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .spec { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(odd), .cell:nth-child(even) { border-right: 0; padding: 20px 0 24px; }
  .idx { margin-bottom: 10px; }
  .cell:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 20px; }
  .cell:first-child { padding-top: 0; }
  .cell dt { font-size: 18px; margin-bottom: 6px; }

  /* table becomes stacked rows on phones */
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody tr:first-child { padding-top: 0; }
  .compare tbody tr:hover { background: none; }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 8px; }
  .compare td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 3px 0; }
  .compare td::before { content: attr(data-l); font-size: 13px; color: var(--ink-3); padding-top: 2px; }
  .compare td.ww::before { color: var(--accent); }

  .who li { grid-template-columns: 1fr; gap: 2px; }
  .lede { margin-bottom: 28px; }
  .foot-inner { flex-direction: column; gap: 4px; }
}
