/* DistSysNet — layered creative theme */
:root {
  --color-ink: #0e1c1f;
  --color-ink-soft: #24383c;
  --color-field: #e8f0ee;
  --color-paper: #f4f8f6;
  --color-surface: #ffffff;
  --color-accent: #e85d04;
  --color-accent-deep: #c44d03;
  --color-mint: #7eb8a8;
  --color-muted: #5a6b68;
  --color-line: rgba(14, 28, 31, 0.12);
  --color-layer: rgba(14, 28, 31, 0.045);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", Georgia, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6.5rem;
  --radius: 4px;
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 40px rgba(14, 28, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(126, 184, 168, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 93, 4, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-field) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn--ghost:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn--light {
  background: var(--color-paper);
  color: var(--color-ink);
  border-color: var(--color-paper);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(244, 248, 246, 0.88);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
}

.site-header__mark {
  width: 1.35rem;
  height: 1.35rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-mint));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  animation: mark-shift 8s var(--ease) infinite alternate;
}

@keyframes mark-shift {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(12deg) scale(1.08); }
}

.site-header__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.site-header__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--color-ink);
  margin: 0.28rem 0;
  transition: transform 0.25s var(--ease);
}

.site-header__list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__list a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header__list a:hover {
  color: var(--color-accent-deep);
}

.site-header__cta {
  background: var(--color-ink);
  color: var(--color-paper) !important;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
}

.site-header__cta:hover {
  background: var(--color-accent) !important;
  color: #fff !important;
}

@media (max-width: 960px) {
  .site-header__toggle { display: block; }
  .site-header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero home — asymmetric composition */
.hero-home {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-2xl);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateX(-1.5%); }
}

.hero-home__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 28, 31, 0.92) 0%, rgba(14, 28, 31, 0.72) 42%, rgba(14, 28, 31, 0.35) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 28px,
      rgba(126, 184, 168, 0.06) 28px,
      rgba(126, 184, 168, 0.06) 29px
    );
}

.hero-home__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  color: var(--color-paper);
  max-width: 38rem;
  animation: rise-in 0.9s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-home__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-home__brand span {
  display: inline-block;
  color: var(--color-accent);
}

.hero-home__lead {
  font-size: 1.15rem;
  color: rgba(244, 248, 246, 0.88);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: 0.5rem;
}

.section__intro {
  max-width: 38rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.layer-panel {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.layer-panel::before {
  content: "";
  position: absolute;
  inset: 0.65rem -0.65rem -0.65rem 0.65rem;
  background:
    linear-gradient(135deg, rgba(126, 184, 168, 0.35), transparent 55%),
    var(--color-field);
  z-index: -1;
  border: 1px solid var(--color-line);
}

/* Offer preview */
.offer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.offer-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease);
}

.offer-item:hover {
  transform: translateY(-4px);
  color: inherit;
}

.offer-item__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.offer-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.offer-item:hover .offer-item__media img {
  transform: scale(1.06);
}

.offer-item__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

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

/* Split */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .split--reverse .split__media { order: -1; }
}

.split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.split__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(14, 28, 31, 0.35));
  pointer-events: none;
}

/* Quote strip */
.quote-strip {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.quote-strip::before {
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.25), transparent 65%);
  top: -50%;
  right: -10%;
  pointer-events: none;
}

.quote-strip blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  max-width: 40rem;
  position: relative;
}

.quote-strip cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(244, 248, 246, 0.7);
}

/* Page hero (inner) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}

.page-hero--media {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 28, 31, 0.25), rgba(14, 28, 31, 0.85));
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  color: var(--color-paper);
}

.page-hero--media .section__eyebrow {
  color: var(--color-mint);
}

.page-hero h1 {
  max-width: 18ch;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--color-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-field);
  font-weight: 600;
}

/* Services list */
.service-list {
  display: grid;
  gap: 2rem;
}

.service-row {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 760px) {
  .service-row {
    grid-template-columns: 280px 1fr;
  }
}

.service-row__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.service-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

/* Pricing */
.fee-block {
  display: grid;
  gap: 1.25rem;
}

.fee-item {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 700px) {
  .fee-item {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: baseline;
  }
}

.fee-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-accent-deep);
  white-space: nowrap;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 1.5rem;
}

.review--wide {
  grid-column: 1 / -1;
}

.review__quote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.review__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.review__service {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-deep);
}

/* Blog */
.post-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__date {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.post-body {
  max-width: 42rem;
}

.post-body p {
  font-size: 1.08rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.form {
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form__row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__row input,
.form__row select,
.form__row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  width: 100%;
}

.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form__error {
  color: #9b2226;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  display: none;
}

.form__status.is-visible { display: block; }
.form__status.is-success {
  background: rgba(126, 184, 168, 0.25);
  color: var(--color-ink);
}
.form__status.is-error {
  background: rgba(155, 34, 38, 0.12);
  color: #9b2226;
}

.contact-aside {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-lg);
  border-radius: var(--radius);
}

.contact-aside a {
  color: var(--color-mint);
}

.contact-aside__label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 248, 246, 0.55);
  margin-bottom: 0.35rem;
}

/* Process steps (engagement page) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: var(--space-2xl);
  background: var(--color-ink);
  color: rgba(244, 248, 246, 0.85);
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
}

.site-footer__layers {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(232, 93, 4, 0.2), transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(244, 248, 246, 0.03) 40px,
      rgba(244, 248, 246, 0.03) 41px
    );
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.site-footer__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 248, 246, 0.5);
  margin-bottom: 0.5rem;
}

.site-footer__text,
.site-footer__tag {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--color-mint);
  text-decoration: none;
}

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

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: 0.35rem;
}

.site-footer__copy {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin: var(--space-lg) auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 248, 246, 0.12);
  font-size: 0.85rem;
  color: rgba(244, 248, 246, 0.5);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  animation: rise-in 0.45s var(--ease);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: min(100%, 52rem);
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  margin: 0;
}

/* Reveal on scroll helper */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}
