/* ==========================================================================
   Artan — design system
   Vibe: Ethereal Glass (OLED black + mesh gradients + hairline glass)
   Layout: Asymmetrical Bento
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg:            #05070a;
  --bg-elevated:   #080b11;
  --shell:         rgba(255, 255, 255, 0.035);
  --core:          #0a0f16;
  --core-2:        #0c121a;
  --hairline:      rgba(255, 255, 255, 0.08);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --inner-light:   inset 0 1px 0 rgba(255, 255, 255, 0.07);

  /* ink */
  --fg:        #e9eef4;
  --fg-strong: #ffffff;
  --muted:     #8d9aab;
  --muted-2:   #63707f;

  /* accents */
  --accent:      #3ee8a0;
  --accent-deep: #12b981;
  --accent-2:    #57c8ff;
  --accent-wash: rgba(62, 232, 160, 0.10);
  --accent-line: rgba(62, 232, 160, 0.28);

  /* type */
  --font-sans: "Sora", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  /* geometry */
  --r-shell: 2rem;
  --r-core: 1.625rem;      /* calc(2rem - 0.375rem) */
  --shell-pad: 0.375rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 78rem;
  --section-y: clamp(6rem, 12vw, 10.5rem);

  /* motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 700ms;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #04120c; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  transform: translate(-50%, -200%);
  z-index: 90;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04150e;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Ambient background: mesh orbs + grain ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.ambient__orb--a {
  width: 46rem; height: 46rem;
  top: -20rem; left: -14rem;
  background: radial-gradient(circle, rgba(18, 185, 129, 0.30), transparent 62%);
}
.ambient__orb--b {
  width: 40rem; height: 40rem;
  top: 12%; right: -18rem;
  background: radial-gradient(circle, rgba(87, 200, 255, 0.16), transparent 62%);
}
.ambient__orb--c {
  width: 52rem; height: 52rem;
  bottom: -28rem; left: 26%;
  background: radial-gradient(circle, rgba(62, 232, 160, 0.12), transparent 60%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.shell-page { position: relative; z-index: 1; }
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(4rem, 8vw, 6.5rem); }


.display {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--fg-strong);
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--fg-strong);
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--fg-strong);
}
.h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg-strong);
}
.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.accent-text { color: var(--accent); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #04150e;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.5rem 0.5rem 1.375rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), background-color 400ms var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 34px -14px rgba(62, 232, 160, 0.75);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 18px 44px -14px rgba(62, 232, 160, 0.9); }
.btn:active { transform: scale(0.98); }
.btn__icon {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: rgba(4, 21, 14, 0.14);
  transition: transform 500ms var(--ease), background-color 400ms var(--ease);
}
.btn:hover .btn__icon { transform: translate(3px, -2px) scale(1.06); background: rgba(4, 21, 14, 0.2); }
.btn__icon svg { width: 0.875rem; height: 0.875rem; }

.btn--ghost {
  --btn-bg: rgba(255,255,255,0.04);
  --btn-fg: var(--fg);
  border: 1px solid var(--hairline);
  box-shadow: var(--inner-light);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.075); box-shadow: var(--inner-light); }
.btn--ghost .btn__icon { background: rgba(255,255,255,0.07); }
.btn--ghost:hover .btn__icon { background: rgba(255,255,255,0.12); }

.btn--sm { padding: 0.375rem 0.375rem 0.375rem 1.125rem; font-size: 0.875rem; }
.btn--sm .btn__icon { width: 1.75rem; height: 1.75rem; }
.btn--block { width: 100%; justify-content: center; padding-left: 1.375rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow svg { width: 0.75rem; height: 0.75rem; transition: transform 500ms var(--ease); }
.link-arrow:hover svg { transform: translate(4px, -3px); }

/* ---------- Double-bezel card ---------- */
.bezel {
  position: relative;
  padding: var(--shell-pad);
  border-radius: var(--r-shell);
  border: 1px solid var(--hairline-soft);
  background: var(--shell);
  transition: border-color 600ms var(--ease), transform 600ms var(--ease), background-color 600ms var(--ease);
}
.bezel__core {
  position: relative;
  height: 100%;
  border-radius: var(--r-core);
  background: linear-gradient(180deg, var(--core-2), var(--core));
  box-shadow: var(--inner-light);
  padding: clamp(1.5rem, 2.6vw, 2.125rem);
  overflow: hidden;
}
a.bezel:hover, .bezel--hover:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  background: rgba(62, 232, 160, 0.05);
}

/* ---------- Icon tile ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  box-shadow: var(--inner-light);
  color: var(--accent);
  flex: none;
}
.icon-tile svg { width: 1.25rem; height: 1.25rem; }

/* ==========================================================================
   Header / Fluid island nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding-top: 1.5rem;
  transition: transform 600ms var(--ease);
}
.site-header.is-stuck { transform: translateY(-0.75rem); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(9, 12, 17, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--inner-light), 0 20px 50px -30px rgba(0,0,0,0.9);
  transition: background-color 600ms var(--ease), box-shadow 600ms var(--ease);
}
.site-header.is-stuck .nav {
  background: rgba(9, 12, 17, 0.86);
  box-shadow: var(--inner-light), 0 26px 60px -34px rgba(0,0,0,1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.brand__mark { width: 1.75rem; height: 1.75rem; }
.brand__name { font-size: 1.0625rem; }
.brand__name span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 400ms var(--ease), background-color 400ms var(--ease);
}
.nav__link:hover { color: var(--fg-strong); background: rgba(255,255,255,0.05); }
.nav__link[aria-current="page"] { color: var(--fg-strong); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0.15rem;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

/* hamburger */
.nav__toggle {
  display: none;
  position: relative;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 1rem; height: 1.5px;
  margin-left: -0.5rem;
  border-radius: 2px;
  background: var(--fg-strong);
  transition: transform 600ms var(--ease), opacity 300ms var(--ease);
}
.nav__toggle span:nth-child(1) { transform: translateY(-4px); }
.nav__toggle span:nth-child(2) { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-content: center;
  padding: 7rem var(--gutter) 3rem;
  background: rgba(5, 7, 10, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 600ms var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__list { display: flex; flex-direction: column; gap: 0.25rem; }
.menu__item {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.menu.is-open .menu__item { opacity: 1; transform: translateY(0); }
.menu.is-open .menu__item:nth-child(1) { transition-delay: 100ms; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: 160ms; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: 220ms; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: 280ms; }
.menu.is-open .menu__item:nth-child(5) { transition-delay: 340ms; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--fg-strong);
  transition: color 400ms var(--ease);
}
.menu__link:hover { color: var(--accent); }
.menu__link .mono { font-size: 0.6875rem; color: var(--muted-2); }
.menu__foot {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease) 400ms, transform 700ms var(--ease) 400ms;
}
.menu.is-open .menu__foot { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav {
    width: calc(100% - 2rem);
    justify-content: space-between;
    gap: 1rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 11vw, 8.75rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero__grid > * { min-width: 0; }
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
/* hero headline is capped tighter than inner-page h1 so it stays within two lines */
.hero .display { font-size: clamp(2.25rem, 4.1vw, 3.4rem); }
.hero__lede { max-width: 40ch; }


@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Marquee / trust strip ---------- */
.strip {
  border-block: 1px solid var(--hairline-soft);
  background: rgba(255,255,255,0.012);
  padding-block: 1.5rem;
  overflow: hidden;
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: slide 38s linear infinite;
}
.strip:hover .strip__inner { animation-play-state: paused; }
.strip__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.strip__item svg { width: 0.875rem; height: 0.875rem; color: var(--accent); opacity: 0.7; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip__inner { animation: none; }
}

/* ==========================================================================
   Bento / grids
   ========================================================================== */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1;
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(12, 1fr); } }

.span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 1; }
@media (min-width: 720px) {
  .span-4 { grid-column: span 3; }
  .span-5 { grid-column: span 3; }
  .span-6 { grid-column: span 3; }
  .span-7 { grid-column: span 6; }
  .span-8 { grid-column: span 6; }
  .span-12 { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.grid-2 {
  display: grid;
  gap: clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}

/* service card */
.card-service { display: flex; flex-direction: column; gap: 1.125rem; height: 100%; }
.card-service p { color: var(--muted); font-size: 0.9375rem; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.025);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}


/* feature list */
.checks { display: flex; flex-direction: column; gap: 0.875rem; }
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--muted);
}
.checks svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--accent); margin-top: 0.2rem; }
.checks strong { color: var(--fg-strong); font-weight: 600; }


/* deep service block (services page) */
.svc {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 940px) { .svc { grid-template-columns: 0.9fr 1.1fr; } }
.svc + .svc { margin-top: clamp(2rem, 4vw, 3rem); }
.svc__head { display: flex; flex-direction: column; gap: 1rem; position: relative; }
@media (min-width: 940px) { .svc__head { position: sticky; top: 7.5rem; } }
.svc__list { display: grid; gap: 0.75rem; }
@media (min-width: 620px) { .svc__list { grid-template-columns: 1fr 1fr; } }
.svc__item {
  padding: 1.125rem 1.25rem;
  border-radius: 1.125rem;
  border: 1px solid var(--hairline-soft);
  background: rgba(255,255,255,0.022);
  transition: border-color 500ms var(--ease), background-color 500ms var(--ease);
}
.svc__item:hover { border-color: var(--accent-line); background: rgba(62,232,160,0.04); }
.svc__item h4 { margin-bottom: 0.3rem; }
.svc__item p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* timeline */
.tl-item p { color: var(--muted); font-size: 0.9375rem; margin-top: 0.35rem; }

/* accordion */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border-radius: 1.125rem;
  border: 1px solid var(--hairline-soft);
  background: rgba(255,255,255,0.022);
  overflow: hidden;
  transition: border-color 500ms var(--ease);
}
.faq details[open] { border-color: var(--accent-line); background: rgba(62,232,160,0.035); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg-strong);
  font-size: 0.9375rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .faq__body { padding: 0 1.375rem 1.25rem; color: var(--muted); font-size: 0.9375rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.05fr 0.95fr; } }

.form { display: grid; gap: 1.125rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--hairline);
  background-color: rgba(255,255,255,0.025);
  color: var(--fg);
  font-size: 0.9375rem;
  transition: border-color 400ms var(--ease), background-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-line);
  background-color: rgba(62,232,160,0.04);
  box-shadow: 0 0 0 4px rgba(62,232,160,0.08);
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.5 5.5 3.5 3.5 3.5-3.5' stroke='%238d9aab' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select option { background: #0c121a; color: var(--fg); }
.field__hint { font-size: 0.75rem; color: var(--muted-2); }
.form__row { display: grid; gap: 1.125rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--muted-2);
  line-height: 1.6;
}
.form__note svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; color: var(--accent); }

.contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.contact-line:last-of-type { border-bottom: 0; }
.contact-line__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  width: 5.5rem;
  flex: none;
}
.contact-line__value { font-size: 0.9375rem; color: var(--fg-strong); font-weight: 500; word-break: break-word; }
.contact-line a.contact-line__value:hover { color: var(--accent); }

/* ==========================================================================
   CTA + Footer
   ========================================================================== */
.cta .bezel__core {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 120% at 20% 0%, rgba(18,185,129,0.18), transparent 60%),
    linear-gradient(180deg, var(--core-2), var(--core));
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  background: rgba(255,255,255,0.012);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer__brand { max-width: 22rem; display: flex; flex-direction: column; gap: 1rem; }
.footer__brand p { font-size: 0.875rem; color: var(--muted); }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__links a {
  font-size: 0.9375rem;
  color: var(--muted);
  width: max-content;
  padding-block: 0.3rem; /* keeps the tap target >= 24px on touch screens */
  transition: color 400ms var(--ease);
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  transition: color 400ms var(--ease), border-color 400ms var(--ease), transform 400ms var(--ease);
}
.socials a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.socials svg { width: 1rem; height: 1rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-top: clamp(8.5rem, 16vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-head__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; max-width: 52rem; }
.crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.crumb a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.err {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--gutter) 4rem;
}
.err__code {
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}

/* ---------- Scroll reveal ----------
   Gated behind .js (set by an inline script in <head>) so that with JavaScript
   disabled or broken the content is simply visible instead of invisible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  will-change: transform, opacity;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- Touch-target top-ups ---------- */
.crumb a,
.menu__foot a {
  display: inline-block;
  padding-block: 0.3rem;
}


/* ==========================================================================
   Components added in the anti-slop pass
   ========================================================================== */

/* hero media frame */
.media {
  position: relative;
  border-radius: var(--r-shell);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background: var(--core);
  aspect-ratio: 11 / 13;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(5,7,10,0.42));
  pointer-events: none;
}
@media (max-width: 899px) { .media { aspect-ratio: 16 / 11; } }

/* two-part section: heading column + content column */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 0.95fr 1.05fr; } }
.split__head { display: flex; flex-direction: column; gap: 1.25rem; }
.split__head .muted { font-size: 0.9375rem; }

/* hairline rows: replaces equal-card rows */
.rows { display: grid; }
.row {
  display: grid;
  gap: 0.35rem 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline-soft);
}
.row:last-child { border-bottom: 1px solid var(--hairline-soft); }
@media (min-width: 720px) { .row { grid-template-columns: 14rem 1fr; align-items: baseline; } }
.row__title { font-size: 1.0625rem; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.015em; }
.row__body { font-size: 0.9375rem; color: var(--muted); }

/* timeline: sparse dividers, day label as the anchor */
.timeline { display: grid; gap: 0.25rem; }
.tl-item { display: grid; gap: 0.35rem 2.5rem; padding-block: 1.5rem; }
.tl-item + .tl-item { border-top: 1px solid var(--hairline-soft); }
@media (min-width: 780px) { .tl-item { grid-template-columns: 10rem 1fr; align-items: start; } }
.tl-item__when { color: var(--accent); padding-top: 0.2rem; }
.tl-item p { color: var(--muted); font-size: 0.9375rem; margin-top: 0.35rem; }

/* bento background diversity */
.tint-a .bezel__core {
  background:
    radial-gradient(ellipse 90% 130% at 88% 8%, rgba(18,185,129,0.16), transparent 58%),
    linear-gradient(180deg, var(--core-2), var(--core));
}
.tint-b .bezel__core {
  background:
    radial-gradient(ellipse 80% 120% at 6% 96%, rgba(87,200,255,0.13), transparent 56%),
    linear-gradient(180deg, var(--core-2), var(--core));
}

/* three-up service item grid (stacked service sections) */
@media (min-width: 900px) { .svc__list--three { grid-template-columns: repeat(3, 1fr); } }

/* shared modifiers */
.lede--center { text-align: center; margin-inline: auto; }
.btn-row--center { justify-content: center; }
.page-head__lede { max-width: 54ch; }
.form__heading { margin-bottom: 1.5rem; }
.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-side__head { margin-bottom: 1.25rem; }
.contact-note { font-size: 0.9375rem; margin-top: 0.75rem; }
.contact-note strong { color: var(--fg-strong); }
.footer__head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer__static { font-size: 0.9375rem; color: var(--muted); display: inline-block; padding-block: 0.3rem; }
.err__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.err__inner .brand { margin-bottom: 1rem; }

/* real icon sizing (Phosphor, 256 viewBox, filled paths) */
.faq__caret {
  width: 1rem; height: 1rem;
  flex: none;
  color: var(--muted);
  transition: transform 500ms var(--ease);
}
.faq details[open] .faq__caret { transform: rotate(180deg); }
.icon-tile svg { width: 1.375rem; height: 1.375rem; }
.checks svg { width: 1.125rem; height: 1.125rem; }
.socials svg { width: 1.0625rem; height: 1.0625rem; }
.btn__icon svg { width: 0.875rem; height: 0.875rem; }
.link-arrow svg { width: 0.8125rem; height: 0.8125rem; }
.form__note svg { width: 1.0625rem; height: 1.0625rem; }


/* ---------- Photography ---------- */
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 3 / 2; }
.media--wide img { filter: brightness(1.04); }
.band { padding-block: clamp(1rem, 2vw, 2rem); }

/* page head that carries an image beside the copy */
.page-head__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .page-head__grid { grid-template-columns: 1.1fr 0.9fr; } }
@media (max-width: 939px) { .page-head--media .media--tall { aspect-ratio: 16 / 10; } }

/* the rack and cable photographs are shot very dark; lift them so the subject reads */
.hero .media img,
.media--tall img { filter: brightness(1.34) contrast(1.04) saturate(1.05); }


/* ==========================================================================
   Hero code panel
   Real source code, scrolled slowly. Not a simulated terminal session.
   ========================================================================== */
/* A grid item's automatic minimum size is its min-content width, and for a
   <pre> with `white-space: pre` that is the longest line. Without min-width: 0
   the column blows out and drags the whole page wider on small screens. */
.code { min-width: 0; }
.code .bezel__core { padding: 0; overflow: hidden; }
.code__viewport {
  position: relative;
  height: clamp(20rem, 46vh, 30rem);
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
}
.code__scroll {
  display: flex;
  flex-direction: column;
  animation: code-scroll 52s linear infinite;
  will-change: transform;
}
.code:hover .code__scroll,
.code:focus-within .code__scroll { animation-play-state: paused; }
@keyframes code-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.code__block {
  margin: 0;
  padding: 1.5rem 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.85;
  color: #7f8b99;
  white-space: pre;
  overflow: hidden;
}
.code__line { display: block; }

/* token colours, tuned so the mint accent carries the highlight */
.code .k { color: var(--accent); }              /* keywords */
.code .f { color: #cdd6e0; }                    /* function names */
.code .s { color: #6fd6ae; }                    /* strings and docstrings */
.code .c { color: #4d5966; font-style: italic; }/* comments */
.code .n { color: var(--accent-2); }            /* numbers */
.code .t { color: #8fb8d6; }                    /* type hints */
.code .v { color: var(--accent-2); }            /* literals */

.code__caption {
  padding: 0.875rem 1.5rem 1.125rem;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

@media (prefers-reduced-motion: reduce) {
  .code__scroll { animation: none; }
}

/* ==========================================================================
   Enquiry dialog
   ========================================================================== */
.modal {
  /* the global `* { margin: 0 }` reset kills the UA stylesheet's `margin: auto`
     on <dialog>, which is what centres a modal. Put it back explicitly. */
  margin: auto;
  width: min(38rem, calc(100% - 2rem));
  max-height: calc(100dvh - 3rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(4, 6, 9, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal__panel { display: block; }
.modal .bezel__core {
  max-height: calc(100dvh - 3.5rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.modal__lede {
  margin: 0.625rem 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 42ch;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 400ms var(--ease), border-color 400ms var(--ease),
              background-color 400ms var(--ease);
}
.modal__close:hover {
  color: var(--fg-strong);
  border-color: var(--accent-line);
  background: rgba(62, 232, 160, 0.08);
}
.modal__close svg { width: 1rem; height: 1rem; }

/* enter and exit transition for the native dialog */
.modal, .modal::backdrop {
  transition: opacity 400ms var(--ease), transform 400ms var(--ease),
              overlay 400ms allow-discrete, display 400ms allow-discrete;
  opacity: 0;
}
.modal { transform: translateY(1.25rem) scale(0.985); }
.modal[open] { opacity: 1; transform: none; }
.modal[open]::backdrop { opacity: 1; }
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(1.25rem) scale(0.985); }
  .modal[open]::backdrop { opacity: 0; }
}

@media (min-width: 600px) { .code__block { font-size: 0.75rem; } }
