:root {
  --bg: #f8f7f3;
  --surface: rgba(21, 21, 21, 0.045);
  --text: #151515;
  --heading: #0f0f0f;
  --petrol-teal: #0F766E;
}

/* Reset / Base */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
  linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.3;
}

::selection {
  background: rgba(210, 255, 0, 0.35);
  color: #111;
}

/* Layout */

main {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
  padding-top: clamp(100px, 11vh, 122px);
  padding-bottom: clamp(80px, 12vh, 160px);
  animation: fadeIn 0.6s ease-out;
  box-shadow: inset 0 1px 0 rgba(210, 255, 0, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings */

h1 {
  max-width: 11ch;
  margin: 0 0 2rem -0.02em;
  color: var(--heading);
  font-size: clamp(3.8rem, 6.2vw, 4.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-shadow: 0 0 0.01px rgba(0, 0, 0, 0.1);
}

h1 a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.18s ease;
}

h1 a:hover {
  color: var(--petrol-teal);
}

h1 a:active {
  transform: translateY(1px);
}

h2 {
  margin: 3rem 0 1.5rem -0.02em;
  color: var(--petrol-teal);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.55rem;
  line-height: 1.35;
}

h3 {
  margin: 2rem 0 1rem;
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Text */

p {
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.6;
  hanging-punctuation: first;
  transition: color 0.2s ease;
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.6;
  hanging-punctuation: first;
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateY(4px);
  animation: settle 0.5s ease forwards;
}

p:nth-of-type(1) { animation-delay: 0.1s; }
p:nth-of-type(2) { animation-delay: 0.2s; }
p:nth-of-type(3) { animation-delay: 0.3s; }
p:nth-of-type(4) { animation-delay: 0.35s; }
p:nth-of-type(5) { animation-delay: 0.4s; }
p:nth-of-type(6) { animation-delay: 0.45s; }

@keyframes settle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.index {
  max-width: 42rem;
  margin: 0 0 2rem;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(21, 21, 21, 0.82);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.index:hover,
.lead:hover {
  color: #000;
  text-shadow: 0 0 0.05px rgba(0, 0, 0, 0.25);
}

.lead {
  max-width: 33em;
  margin: 3.5rem 0 2rem;
  color: rgba(21, 21, 21, 0.92);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.015em;
  transition: color 0.2s ease, text-shadow 0.2s ease;

}

.tech {
  max-width: 38rem;
  color: rgba(21, 21, 21, 0.84);
}

.foto {
  max-width: 40rem;
}

.fakrw {
  max-width: 42rem;
}

.contact a[href^="tel"] {
  letter-spacing: 0.02em;
}

/* Marker */

.neon-purple {

  color: var(--petrol-teal);
  font-weight: 600;
  letter-spacing: 0.01em;

}

/* Subline */

.subline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: -0.6em 0 2rem -0.7em;
}

.subline span {
  backdrop-filter: blur(2px);
  border-radius: 2px;
  box-shadow:
    0 0.5px 0 rgba(0,0,0,0.03),
    0 6px 18px rgba(0,0,0,0.03);
  display: inline-block;
  padding: 0.62rem 1.55rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subline span {
  transition:
    background 0.08s linear,
    color 0.08s linear,
    transform 0.08s linear,
    filter 0.08s linear;
}

.subline span.flash {
  transform: translateY(-3px);
  filter: blur(0.3px);
}

/* Contact */

.contact {
  font-size: 1.28rem;
  position: relative;
  margin: 3rem 0 0 -0.7em;
  padding: 1.2rem 1.35rem 1.2rem 1.4rem;
  max-width: 23rem;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(2px);
  border-radius: 2px;
  box-shadow:
    0 0.5px 0 rgba(0,0,0,0.03),
    0 6px 18px rgba(0,0,0,0.03);
  letter-spacing: 0.05em;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact a:hover {
  color: var(--petrol-teal);
}

.contact br {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-subtle {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.015em;
  opacity: 0.35;
  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.contact:hover .contact-subtle {
  opacity: 0.9;
  color: var(--text);
}

/* Footer */

footer {
  margin: 3.5rem 0 0 -0.015em;
  padding-top: 0;
  color: var(--petrol-teal);
  font-size: 1.04rem;
  font-weight: 800;
}

footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
  letter-spacing: 0.015em;
}

footer a:hover {
  color: var(--petrol-teal);
}

/* Ambient hover */

main:hover .lead {
  color: rgba(21, 21, 21, 0.96);
}

main:hover .mark-drawn::after {
  background: rgba(220, 255, 0, 0.24);
}

/* Responsive */

@media (max-width: 700px) {
  body::before {
    background-size: 80px 80px;
    opacity: 0.14;
  }

  main {
    width: calc(100vw - 32px);
    padding-top: clamp(48px, 8vh, 72px);
    padding-bottom: clamp(56px, 9vh, 88px);
    box-shadow: none;
  }

  h1 {
    max-width: 9ch;
    margin: 0 0 1.4rem -0.02em;
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
  }

  h2 {
    margin: 2.2rem 0 1.2rem -0.02em;
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  h3 {
    margin: 1.6rem 0 0.8rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  p,
  .index {
    max-width: none;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .lead {
    max-width: none;
    margin: 2.4rem 0 1.5rem;
    font-size: 1.18rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }

  .tech,
  .fakrw,
  .contact {
    max-width: none;
  }

  .mark-drawn::after {
    left: -1px;
    right: -1px;
    top: 52%;
    height: 0.85em;
    border-radius: 1px;
    box-shadow:
      0 0 3px rgba(220, 255, 0, 0.35),
      0 0 7px rgba(160, 255, 0, 0.14);
  }

  .subline {
    gap: 0.35rem;
    margin: -0.1rem 0 1.5rem -0.015em;
    transform: none;
  }

  .subline span {
    padding: 0.5rem 0.72rem;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  .contact {
    margin-top: 2rem;
  }

  .contact,

  footer {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  footer {
    margin-top: 2rem;
  }

  .lead br, .index br {
    display: none;
  }
}

@media (max-width: 420px) {
  main {
    width: calc(100vw - 44px);
    padding-top: 42px;
    padding-bottom: 56px;
  }

  h1 {
    max-width: 8ch;
    margin-bottom: 1.1rem;
    font-size: clamp(2.1rem, 12vw, 2.9rem);
  }

  .lead {
    margin-top: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.62;
    font-weight: 400;
  }

  p,
  .index {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .subline span {
    padding: 0.46rem 0.64rem;
    font-size: 0.66rem;
  }

  .contact,
  footer {
    font-size: 0.94rem;
  }
}