/* avuno.dev - The Dot. Black, Poppins, open space, blue only where it earns it. */
:root {
  --bg: #000;
  --line: #232325;
  --text: #fff;
  --body: #8a8a92;
  --ghost: #757580;
  --mono-c: #7a7a82;
  --blue: #2e6bff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* Film grain over everything, barely there */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 60;
}

::selection { background: var(--blue); color: #fff; }

.mono-note, .label, .optional { font-family: 'Space Mono', monospace; }

/* Focus: visible everywhere, blue, offset */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { left: 14px; top: 14px; }

.frame { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  gap: 16px;
}
.logo { font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -0.3px; }
.dot-char { color: var(--blue); }
.site-header nav ul { display: flex; gap: 22px; list-style: none; position: relative; }
.site-header nav a { color: var(--body); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); }
.nav-ind {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s;
}
/* On narrow phones the nav drops to its own full-width row so all five
   items stay on one line and the sliding underline keeps tracking them. */
@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; }
  .site-header nav ul { justify-content: space-between; gap: 8px; }
  .site-header nav a { font-size: 12px; }
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes dot-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }
.steps .col:nth-child(2) { transition-delay: 0.12s; }
.steps .col:nth-child(3) { transition-delay: 0.24s; }
.work-grid li:nth-child(2) .work-card { transition-delay: 0.12s; }
.work-grid li:nth-child(3) .work-card { transition-delay: 0.24s; }

/* Hero */
.hero { position: relative; padding: 88px 0 110px; }
.hero::before {
  content: '';
  position: absolute;
  inset: -40px -24px 0;
  background-image: radial-gradient(circle, #23232c 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 80% 15%, black 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 85% at 80% 15%, black 15%, transparent 70%);
  pointer-events: none;
}
.hero h1 { animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.hero-sub { animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s backwards; }
.hero-cta { animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.34s backwards; }
.hero h1 .dot { animation: dot-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s backwards; }
.hero-alt { animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.46s backwards; }

/* Underline draws itself under "It isn't" after the headline lands */
@keyframes draw { from { transform: scaleX(0); } }
.hero h1 .uline { position: relative; white-space: nowrap; }
.hero h1 .uline::after {
  content: '';
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.09em;
  height: 0.055em;
  background: var(--blue);
  border-radius: 999px;
  transform-origin: left;
  animation: draw 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s backwards;
}
h1 {
  color: var(--text);
  font-size: clamp(34px, 8vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
h1 .blue { color: var(--blue); }
h1 .dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 0.08em;
}
.hero-sub { max-width: 540px; margin-top: 30px; font-size: 15px; }
.hero-cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta-link {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: text-decoration-color 0.25s, text-underline-offset 0.25s;
}
.cta-link:hover { text-decoration-color: var(--text); text-underline-offset: 5px; }
.mono-note { font-size: 12px; color: var(--mono-c); letter-spacing: 1px; }
/* Second hero path: the new-build offer, ranked below the scan */
.hero-alt {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 540px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cta-link.sm { font-size: 15px; }

/* Shared section bits */
section { padding: 56px 0; }
.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mono-c);
  letter-spacing: 1px;
}
.marker {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--mono-c);
  margin-bottom: 12px;
}
.kicker::after { content: ''; height: 1px; flex: 1; background: var(--line); }
h2 {
  color: var(--text);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h2 .dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 0.1em;
}
.section-sub { margin-top: 14px; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 0; }
/* Step numbers as CSS content: pure decoration, exempt from text contrast */
.steps .col::before {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 52px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #454553;
  margin-bottom: 14px;
  user-select: none;
}
.steps .col:nth-child(1)::before { content: '01'; }
.steps .col:nth-child(2)::before { content: '02'; }
.steps .col:nth-child(3)::before { content: '03'; }
.steps h2 { font-size: 16px; margin: 14px 0 6px; }
.steps p { font-size: 13.5px; max-width: 340px; }

/* Work */
.work-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
.work-card { display: block; text-decoration: none; }
.work-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  filter: grayscale(35%);
  opacity: 0.92;
  transition: filter 0.25s, opacity 0.25s, transform 0.25s;
}
.work-card:hover img, .work-card:focus-visible img { filter: none; opacity: 1; transform: translateY(-3px); }
.work-name { display: block; margin-top: 16px; color: var(--text); font-weight: 600; font-size: 16px; }
.work-desc { display: block; color: var(--body); font-size: 13px; margin-top: 2px; }

/* About */
.about p { max-width: 600px; margin-top: 20px; font-size: 15px; }
.about a { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }

/* Scan form */
.scan { padding-bottom: 96px; }
/* Honeypot: invisible to people and screen readers, bots fill it anyway */
.hp { display: none; }
#scan-form { margin-top: 36px; max-width: 520px; }
.field { margin-bottom: 30px; }
.field label { display: block; color: var(--text); font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.optional { color: var(--mono-c); font-size: 11px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  padding: 12px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #767680; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 var(--blue);
}
.field-error { color: #ff9d96; font-size: 13px; margin-top: 6px; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #ff9d96; box-shadow: 0 1px 0 #ff9d96; }
.submit-btn {
  background: var(--text);
  color: var(--bg);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.2s;
}
.submit-btn:hover { transform: translateY(-2px); background: #dcdce2; }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 18px; font-size: 14px; color: var(--text); }

/* ===== Example page ===== */
.ex-hero { padding-bottom: 40px; }
.ex-demo { padding-top: 24px; }

/* The mock cafe site: an illustration, not a real site (role=img, nothing focusable) */
.mock {
  background: #faf6ef;
  border-radius: 12px;
  padding: 18px 22px 26px;
  margin-top: 0;
  font-size: 14px;
  color: #1f1f18;
}
.mock .pin {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 9px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #1d52d8;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #faf6ef;
}
.m-bar { display: flex; }
.m-skip {
  position: relative;
  background: #1f1f18;
  color: #faf6ef;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
}
.m-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 6px;
}
.m-logo { font-weight: 600; font-size: 16px; }
.m-links { color: #5a5a4e; font-size: 12.5px; }
.m-btn {
  position: relative;
  display: inline-block;
  background: #1f1f18;
  color: #faf6ef;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}
.m-focus { outline: 3px solid #1d52d8; outline-offset: 3px; }
.m-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px 0 10px;
}
.m-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.m-h1 { position: relative; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.5px; max-width: 320px; }
.m-sub { position: relative; color: #5a5a4e; font-size: 13px; line-height: 1.6; max-width: 340px; }
.m-green { background: #1f5130; }
.m-img { position: relative; margin: 0; }
.m-sun {
  display: block;
  height: 130px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, #f5c84c 0 26px, transparent 27px),
    linear-gradient(180deg, #efe3c8 60%, #e0cfa6 60%);
}
.m-alt {
  position: relative;
  display: block;
  margin-top: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  color: #41413a;
  background: #f0e9da;
  border-radius: 4px;
  padding: 7px 10px;
  width: fit-content;
}
.m-form {
  border-top: 1px solid #e3dccc;
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.m-label { position: relative; font-size: 12.5px; font-weight: 600; }
.m-input {
  display: block;
  width: min(300px, 100%);
  border-bottom: 2px solid #b5ad99;
  color: #1f1f18;
  font-size: 13px;
  padding: 6px 0;
}
.m-error { position: relative; color: #a02818; font-size: 12px; font-weight: 500; }
.m-small { margin-top: 6px; }

/* Legend */
.legend-list { list-style: none; margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 34px; }
.legend-list li { display: flex; gap: 16px; align-items: flex-start; }
.legend-list .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d52d8;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.legend-list h3 { color: var(--text); font-size: 15.5px; font-weight: 600; }
.legend-list p { font-size: 13.5px; margin: 4px 0 8px; max-width: 480px; }
.legend-list .wcag { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 1px; color: var(--mono-c); }

.ex-cta { padding-top: 0; padding-bottom: 110px; }

@media (min-width: 760px) {
  .mock { padding: 24px 32px 32px; }
  .m-hero { grid-template-columns: 1.1fr 0.9fr; }
  .legend-list { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
}

/* ===== New-sites page ===== */
.np-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
.np-grid h3 { color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.np-grid p { font-size: 14px; max-width: 460px; }
.np-contact { list-style: none; margin-top: 36px; display: grid; gap: 28px; }
.np-c-label { display: block; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--mono-c); margin-bottom: 8px; }
.np-contact a {
  color: var(--text);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.2s;
}
.np-contact a:hover { text-underline-offset: 10px; }
.np-aside { margin-top: 44px; font-size: 14px; }
.np-aside a { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }
@media (min-width: 760px) {
  .np-grid { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
}

/* Footer */
.footer-mark {
  font-size: clamp(58px, 13vw, 150px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #131319;
  user-select: none;
  margin-top: 20px;
  white-space: nowrap;
  overflow: hidden;
}
.footer-mark::before { content: 'avuno'; }
.footer-mark::after { content: '.dev'; color: #101c3d; }
.site-footer {
  padding: 40px 0 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.foot-list { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.foot-list a { color: var(--body); }
.foot-list a:hover { color: var(--text); }

/* Desktop */
@media (min-width: 760px) {
  .frame { padding: 0 40px; }
  .hero { padding: 130px 0 150px; }
  section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .scan { padding-bottom: 130px; }
}
