:root {
  --bg: #050a12;
  --surface: #0a1220;
  --surface-2: #0f1a2b;
  --text: #f2f6fc;
  --muted: #a9b6ca;
  --blue: #1688ff;
  --blue-hover: #4aa4ff;
  --blue-bright: #6cbdff;
  --on-blue: #04101f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --header-height: 68px;
  --max-width: 1180px;
  --gutter: max(24px, calc((100vw - var(--max-width)) / 2));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Archivo", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  scrollbar-color: #24344d var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue-bright);
  accent-color: var(--blue);
}

::selection {
  color: var(--on-blue);
  background: var(--blue-bright);
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 10px 16px;
  color: var(--on-blue);
  background: var(--blue-bright);
  border-radius: 8px;
  font-weight: 700;
}

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--gutter);
  background: rgba(5, 10, 18, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  padding: 9px 16px;
  color: var(--on-blue);
  background: var(--blue);
  border-radius: 8px;
  font-weight: 650;
  transition: background 160ms ease;
}

.site-nav .nav-cta:hover {
  color: var(--on-blue);
  background: var(--blue-hover);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms ease;
}

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

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

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

/* Type */

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  text-wrap: balance;
}

h1,
h2 {
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.04;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: var(--on-blue);
  background: var(--blue);
}

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

.button.secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: calc(var(--header-height) + clamp(48px, 7vw, 96px)) var(--gutter) clamp(56px, 7vw, 96px);
}

.hero-copy {
  max-width: 34em;
  margin-bottom: 36px;
  color: #cdd7e6;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 14px;
}

.hero-photo figcaption {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.875rem;
}

.hero-photo figcaption span,
.work-section figcaption span {
  color: var(--muted);
}

/* One authored entrance: the hero copy settles, the photo opens. */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: rise 900ms var(--ease-out) both;
  }

  .hero-content > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-content > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero-photo img {
    animation: open 1200ms var(--ease-out) 120ms both;
  }

  .hero-photo figcaption {
    animation: rise 900ms var(--ease-out) 500ms both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes open {
  from {
    clip-path: inset(18% 0 18% 0 round 14px);
    filter: brightness(0.4);
  }
  to {
    clip-path: inset(0 0 0 0 round 14px);
    filter: none;
  }
}

/* Trust strip */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 var(--gutter);
  border-block: 1px solid var(--line);
}

.trust-strip div {
  padding: 22px 24px 22px 0;
}

.trust-strip div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-weight: 650;
}

.trust-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: clamp(80px, 10vw, 128px) var(--gutter);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading p {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
}

/* Services: a rate sheet, not a card grid */

.rate-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 88px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.rate {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-content: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.rate h3 {
  margin: 0;
}

.rate-price {
  margin: 0;
  color: var(--blue-bright);
  font-size: 1.15rem;
  font-stretch: 112%;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rate-price span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-stretch: 100%;
  font-weight: 500;
}

.rate-desc {
  grid-column: 1 / -1;
  max-width: 34em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Work */

.work-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.gallery {
  columns: 3;
  column-gap: 20px;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 32px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  background: var(--surface-2);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.gallery figcaption {
  display: grid;
  gap: 2px;
  padding: 14px 2px 0;
  font-size: 0.9rem;
}

.gallery figcaption strong {
  font-weight: 650;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.step-number {
  display: block;
  margin-bottom: 36px;
  color: var(--blue-bright);
  font-size: 2.6rem;
  font-stretch: 125%;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* About */

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
}

.about-copy {
  max-width: 40em;
}

.about-copy p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--blue-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Quote */

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.quote-copy p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
}

.contact-list div {
  display: grid;
  gap: 2px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-list dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-decoration-color: rgba(108, 189, 255, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.contact-list a:hover {
  text-decoration-color: currentColor;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 160ms ease;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form select {
  appearance: none;
  padding-right: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b6ca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  cursor: pointer;
}

.quote-form ::placeholder {
  color: #8593a8;
}

.quote-form input:hover,
.quote-form select:hover,
.quote-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible {
  border-color: var(--blue-bright);
  outline: 2px solid var(--blue-bright);
  outline-offset: 0;
  border-radius: 8px;
}

.quote-form :user-invalid {
  border-color: #ff8a8a;
}

.full-width {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.success {
  color: #83e6ad;
}

.form-note.error {
  color: #ff9b9b;
}

.quote-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* Spam trap for Web3Forms; kept off-screen for people. */
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 48px var(--gutter);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--text);
  font-stretch: 125%;
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

/* Tablet */

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    padding: 14px 16px;
    border-bottom: 0;
    text-align: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .trust-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .gallery {
    columns: 2;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }

  .about-section,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .about-image img {
    max-width: 240px;
  }
}

/* Phone */

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-photo img {
    aspect-ratio: 5 / 4;
  }

  .rate-list {
    grid-template-columns: 1fr;
  }

  .gallery {
    columns: 1;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .step-number {
    margin-bottom: 16px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div,
  .trust-strip div + div {
    padding-left: 0;
    border-left: 0;
  }

  .trust-strip div:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
