@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Palette from the logo: black, brushed silver, gold.
   The logo is made for black, so it only ever sits on --ink surfaces.
   --gold is for the primary WhatsApp button on dark surfaces; never body text. */
:root {
  --ink: #0d0e10;
  --ink-raised: #16181b;
  --ink-line: #262a2f;
  --text: #15181c;
  --text-hover: #2b3138;
  --steel: #59626b;
  --plate: #e8ebed;
  --rule: #cfd5da;
  --paper: #ffffff;
  --silver: #c7c9cb;
  --gold: #ce9b4f;
  --gold-hover: #dcb06c;
  --on-dark: #e8ebed;
  --on-dark-muted: #a1a7ae;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  font-stretch: 80%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.site-header :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.mobile-cta :focus-visible {
  outline-color: #fff;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--text-hover);
}

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

.btn .icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn-sm .icon {
  width: 18px;
  height: 18px;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-hover);
}

/* Header */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: auto;
  height: 40px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.15;
}

.brand-name strong {
  color: #fff;
  font-size: 1.0625rem;
  font-stretch: 85%;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding-block: 6px;
  color: var(--on-dark-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
}

/* Desktop keeps the header (and its WhatsApp button) in view; phones get the bottom bar instead. */
@media (min-width: 761px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    min-height: 60px;
  }

  .brand-mark {
    height: 36px;
  }
}

/* Hero */

.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: var(--on-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.hero h1,
.not-found h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.75rem);
  font-stretch: 75%;
  line-height: 0.98;
}

.hero h1 {
  color: #fff;
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--on-dark-muted);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 36px;
}

.hint {
  color: #8b9198;
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-cta {
    width: 100%;
  }
}

/* Hero logo: the brand mark with a flickering weld arc at the torch tip and a passing metal shine. */

.hero-logo {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

/* Centred on the spark in the logo artwork (57.6% / 37.7% of the image). */
.logo-arc {
  position: absolute;
  top: 37.7%;
  left: 57.6%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 246 220 / 0.95) 0%, rgb(255 214 140 / 0.5) 16%, rgb(255 170 60 / 0) 62%);
  mix-blend-mode: screen;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Masked with the logo itself so the shine only crosses the metal, never the background. */
.logo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 44%, rgb(255 255 255 / 0.85) 50%, transparent 56%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url("img/logo.webp") center / 100% 100% no-repeat;
  mask: url("img/logo.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero-logo {
    max-width: 440px;
  }
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.service-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--text);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  align-items: baseline;
  gap: 12px 40px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}

.service h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
}

.service p {
  max-width: 40em;
  color: var(--steel);
}

.service a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.service a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 820px) {
  .service {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 24px 16px;
  }
}

.process {
  background: var(--plate);
}

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

.steps li {
  padding-top: 20px;
  border-top: 2px solid var(--text);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 20px;
  font-size: 2.75rem;
  font-weight: 700;
  font-stretch: 70%;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.375rem;
}

.steps p {
  color: var(--steel);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Contact */

.contact {
  background: var(--ink);
  color: var(--on-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.contact h2 {
  color: #fff;
}

.contact p {
  max-width: 34em;
  margin-top: 20px;
  color: var(--on-dark-muted);
}

.contact .contact-number {
  margin-top: 28px;
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
  font-stretch: 85%;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

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

.draft {
  margin: 0;
  padding: 24px 28px;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  background: var(--ink-raised);
}

.draft figcaption {
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.contact .draft p {
  margin-top: 14px;
  color: var(--on-dark);
  line-height: 1.75;
  white-space: pre-line;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .contact .btn {
    width: 100%;
  }

  .draft {
    padding: 20px;
  }
}

/* Footer */

.site-footer {
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  width: 220px;
}

/* Mobile WhatsApp bar */

.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-cta.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}

.mobile-cta .btn {
  width: 100%;
  min-height: 52px;
}

@media (min-width: 761px) {
  .mobile-cta {
    display: none;
  }
}

/* Scroll animations. Content is only hidden when app.js has run (html.js) and the visitor allows motion. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .steps > :nth-child(2) {
    transition-delay: 90ms;
  }

  .js .steps > :nth-child(3) {
    transition-delay: 180ms;
  }

  .js .steps > :nth-child(4) {
    transition-delay: 270ms;
  }

  .hero-logo img {
    animation: logo-in 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) both;
  }

  .logo-arc {
    animation: arc-flicker 2.6s linear 0.9s infinite both;
  }

  .logo-shine {
    animation: logo-shine 6s linear 1.2s infinite both;
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* Irregular steps so it reads as a welding arc, not a pulse. */
@keyframes arc-flicker {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.9);
  }

  6% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }

  9% {
    opacity: 0.6;
  }

  15% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }

  22% {
    opacity: 0.7;
  }

  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  37% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.92);
  }

  48% {
    opacity: 0.9;
  }

  55% {
    opacity: 0.65;
  }

  63% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }

  71% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.98);
  }

  90% {
    opacity: 0.55;
  }
}

/* One sweep in the first ~2 s (visible for about 1 s), then a pause until the next loop. */
@keyframes logo-shine {
  0% {
    background-position: 100% 0;
  }

  35%,
  100% {
    background-position: 0% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta,
  .mobile-cta.is-shown {
    transition: none;
  }
}

/* 404 */

.not-found {
  padding-block: clamp(80px, 14vw, 180px);
}

.not-found p {
  max-width: 34em;
  margin-block: 20px 32px;
  color: var(--steel);
}
