﻿:root {
  --ink: #10130f;
  --ink-soft: #252b23;
  --paper: #f5f2ea;
  --paper-muted: #e2ded2;
  --line: rgba(245, 242, 234, 0.18);
  --muted: #c5c6bd;
  --teal: #23b8aa;
  --teal-dark: #0b5d56;
  --amber: #d9973c;
  --clay: #ba6d4d;
  --white: #ffffff;
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--paper);
  background: var(--ink);
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--teal);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--paper);
  background: rgba(16, 19, 15, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(16, 19, 15, 0.92);
  border-color: rgba(245, 242, 234, 0.12);
}

.brand,
.site-nav,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.site-nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.header-action,
.button {
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-action {
  background: rgba(245, 242, 234, 0.08);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 184, 170, 0.7);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 108px clamp(18px, 5vw, 64px) 30px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 19, 15, 0.94) 0%, rgba(16, 19, 15, 0.78) 42%, rgba(16, 19, 15, 0.34) 100%),
    linear-gradient(0deg, rgba(16, 19, 15, 0.98) 0%, rgba(16, 19, 15, 0.18) 44%, rgba(16, 19, 15, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  max-width: 830px;
  margin: 0;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7.8vw, 6.2rem);
}

.hero-title-lockup {
  --hero-title-size: clamp(3rem, 7.8vw, 6.2rem);
  --hero-logo-size: calc(var(--hero-title-size) * 3.53);
  --hero-logo-offset-x: calc(var(--hero-title-size) * -0.58);
  --hero-logo-overlap: calc(var(--hero-title-size) * -1.15);

  display: grid;
  width: max-content;
  max-width: 100%;
}

.hero-title-logo {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: var(--hero-logo-size);
  height: var(--hero-logo-size);
  margin-bottom: var(--hero-logo-overlap);
  object-fit: contain;
  transform: translateX(var(--hero-logo-offset-x));
  filter: drop-shadow(0 20px 42px rgba(35, 184, 170, 0.24));
}

.hero-title-lockup h1 {
  position: relative;
  z-index: 1;
  font-size: var(--hero-title-size);
}

.hero-title-eyebrow {
  justify-self: end;
  max-width: min(100%, 560px);
  margin: 8px 0 0;
  text-align: right;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
}

h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--paper-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-width: 156px;
}

.button-primary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.button-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button-secondary {
  color: var(--paper);
  background: rgba(245, 242, 234, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 980px;
  margin: 42px 0 0;
  padding: 0;
  background: rgba(245, 242, 234, 0.16);
  border: 1px solid rgba(245, 242, 234, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  min-height: 112px;
  padding: 20px 24px;
  background: rgba(16, 19, 15, 0.76);
}

.hero-metrics dt {
  color: var(--amber);
  font-weight: 900;
}

.hero-metrics dd {
  margin: 10px 0 0;
  color: var(--paper-muted);
  line-height: 1.5;
}

.section-inner {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

section:not(.hero) {
  padding: clamp(76px, 10vw, 128px) 0;
}

.section-band {
  background:
    linear-gradient(90deg, rgba(35, 184, 170, 0.1), transparent 36%),
    #181c16;
  border-top: 1px solid rgba(245, 242, 234, 0.08);
  border-bottom: 1px solid rgba(245, 242, 234, 0.08);
}

.intro-grid,
.method-grid,
.contact-grid,
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro p,
.method-copy p,
.contact-panel p,
.product-copy p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  margin-bottom: 40px;
}

.section-heading h2 {
  grid-column: 1 / -1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  background: #1a201c;
  border: 1px solid rgba(245, 242, 234, 0.1);
  border-radius: 8px;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: 8px;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(4) .service-icon {
  background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
  background: var(--clay);
}

.service-card p,
.project-list p,
.timeline p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.65;
}


.portfolio-layout {
  display: grid;
  gap: 36px;
}

.portfolio-heading {
  display: block;
  max-width: 900px;
  margin-bottom: 0;
}

.portfolio-heading h2 {
  margin-bottom: 20px;
}

.portfolio-heading > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.portfolio-card {
  min-height: 282px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: rgba(245, 242, 234, 0.06);
  border: 1px solid rgba(245, 242, 234, 0.12);
  border-radius: 8px;
}

.portfolio-card-featured {
  grid-column: span 3;
  background:
    linear-gradient(135deg, rgba(35, 184, 170, 0.18), rgba(217, 151, 60, 0.08)),
    rgba(245, 242, 234, 0.07);
}

.portfolio-card:nth-child(2) {
  grid-column: span 3;
}

.portfolio-label {
  width: fit-content;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--amber);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card:nth-child(2) .portfolio-label,
.portfolio-card:nth-child(4) .portfolio-label {
  background: var(--teal);
}

.portfolio-card:nth-child(3) .portfolio-label,
.portfolio-card:nth-child(5) .portfolio-label {
  background: var(--clay);
}

.portfolio-card p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.65;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.method-copy {
  position: sticky;
  top: 110px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.timeline li {
  position: relative;
  min-height: 126px;
  padding: 26px 26px 26px 78px;
  background: rgba(245, 242, 234, 0.06);
  border: 1px solid rgba(245, 242, 234, 0.11);
  border-radius: 8px;
  counter-increment: method;
}

.timeline li::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  top: 26px;
  left: 26px;
  color: var(--amber);
  font-weight: 900;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 900;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 242, 234, 0.12);
  border: 1px solid rgba(245, 242, 234, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.project-list article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: #151a15;
}

.product-panel {
  display: grid;
  gap: 14px;
}

.product-panel div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: rgba(245, 242, 234, 0.06);
  border: 1px solid rgba(245, 242, 234, 0.12);
  border-radius: 8px;
}

.product-panel span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-panel strong {
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1.15;
}

.contact-panel {
  padding: 32px;
  background: rgba(245, 242, 234, 0.06);
  border: 1px solid rgba(245, 242, 234, 0.13);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--paper);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--paper);
  background: rgba(16, 19, 15, 0.72);
  border: 1px solid rgba(245, 242, 234, 0.18);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(35, 184, 170, 0.7);
  outline-offset: 2px;
}

.contact-form .button {
  margin-top: 24px;
  width: fit-content;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 4vw, 48px);
  color: var(--muted);
  background: #0c0e0b;
  border-top: 1px solid rgba(245, 242, 234, 0.08);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-page {
  background:
    linear-gradient(120deg, rgba(35, 184, 170, 0.12), transparent 36%),
    var(--ink);
}

.legal-main {
  width: min(calc(100% - 36px), 920px);
  margin: 0 auto;
  padding: 132px 0 80px;
}

.legal-document {
  padding: clamp(28px, 6vw, 54px);
  background: rgba(245, 242, 234, 0.06);
  border: 1px solid rgba(245, 242, 234, 0.12);
  border-radius: 8px;
}

.legal-document h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.legal-document h2 {
  margin-top: 42px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.legal-document p,
.legal-document li {
  color: var(--paper-muted);
  line-height: 1.72;
}

.legal-document a {
  color: var(--teal);
  font-weight: 800;
}

.legal-document ul {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.legal-updated {
  margin: 18px 0 34px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-metrics,
  .service-grid,
  .project-list {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card,
  .portfolio-card-featured,
  .portfolio-card:nth-child(2) {
    grid-column: auto;
  }

  .intro-grid,
  .method-grid,
  .contact-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }


  .method-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .hero-title-lockup {
    --hero-title-size: clamp(2.5rem, 15vw, 4.2rem);
    --hero-logo-size: calc(var(--hero-title-size) * 2.22);
    --hero-logo-offset-x: 0px;
    --hero-logo-overlap: calc(var(--hero-title-size) * -0.52);

    width: 100%;
  }

  .hero-title-logo {
    justify-self: start;
  }

  .hero-title-eyebrow {
    justify-self: start;
    max-width: 280px;
    margin-top: 10px;
    text-align: left;
  }

  .hero-metrics,
  .service-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    display: none;
  }

  .hero-metrics div,
  .service-card,
  .project-list article {
    min-height: auto;
  }

  .portfolio-card {
    min-height: auto;
  }

  .timeline li {
    padding-left: 64px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
