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

:root {
  --bg:           #000000;
  --surface:      #0c0c0c;
  --text-p:       #f3f3f3;
  --text-s:       #cccccc; // #949ba5;
  --text-t:       #6f7681;
  --text-b:		  #4a7fb8; // — medium blue 
  --border:       rgba(61,64,69,0.9);
  --border-l:     rgba(61,64,69,0.45);
  --sans:         'Manrope', sans-serif;
  --mono:         'Fragment Mono', monospace;
  --nav-h:        72px;
  --ease-out:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-s);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: fadeIn 1.2s ease both;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

a { color: inherit; }


/* ── NAV (stacked brand) ── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  min-height: var(--nav-h);
  z-index: 100;
  border-bottom: 0.5px solid var(--border);
  background: rgba(0,0,0,0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* outer nav wrapper matches content-wrap max-width and centering */
.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0 28px;
  position: relative;
}

/* inner row: full-width on desktop so logo-t can align with body text */
.nav-row {
  max-width: none;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0;
}

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

.nav-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.nav-logo-t {
  margin-left: 100px;
  width: 400px;
}

/* desktop: hide nav links, show both logos */
.nav-links {
  display: none;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.nav-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-p);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-tagline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-t);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-t);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-p); }


/* ── CONTENT WRAP ── */

.content-wrap {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  padding-top: var(--nav-h);
}


/* ── TOC ── */

.toc {
  flex: 0 0 280px;
  padding: 80px 28px 120px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 0.5px solid var(--border-l);
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  text-decoration: none;
  transition: none;
}

.toc-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-t);
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.toc-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-t);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.toc-item:hover .toc-dot,
.toc-item.active .toc-dot  { background: var(--text-p); transform: scale(1.6); }
.toc-item:hover .toc-label,
.toc-item.active .toc-label { color: var(--text-p); }


/* ── MAIN CONTENT ── */

.main {
  flex: 1;
  padding: 0 48px 160px;
  min-width: 0;
}

.section {
  border-top: 0.5px solid var(--border);
  padding: 64px 0 80px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  position: relative;
}

.section:first-of-type { border-top: none; }



/* section tag with animated dash (grows then settles) */
.section-tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-p);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* tag-line styles moved to inline <style> in HTML */

.section h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--text-p);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 36px;
}

.section p {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-s);
}

.section p:last-of-type { margin-bottom: 0; }

.case-study {
  display: block;
  width: 650px;
  min-width: 300px;
  max-width: 650px;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  margin: 20px 0;
  padding: 20px;
  border-right: 3px solid;
  border-image: linear-gradient(to bottom, #000000 0px, #a8c8e8 100px, #4a7fb8 50%, #1a3a6e calc(100% - 100px), #000000 100%) 1;
}
@media (max-width: 640px) {
  .case-study { width: 100%; max-width: 100%; }
}



/* ── SCROLL REVEAL ── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms;  opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 480ms; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ── DIFFERENTIATION LIST ── */

.diff-list {
  list-style: none;
  margin-top: 12px;
  max-width: 700px;
}

.diff-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 0.5px solid var(--border-l);
}

.diff-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-t);
  padding-top: 2px;
}

.diff-body {
  font-size: 17px;
  color: var(--text-s);
  line-height: 1.7;
}

.diff-body strong {
  color: var(--text-p);
  font-weight: 500;
}


/* ── CONTACT ── */

.contact-address {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-t);
  letter-spacing: 0.06em;
  line-height: 2;
}

#contact { padding-bottom: 0; }
.main { padding-bottom: 0; }

.inline-link {
  color: var(--text-p);
  text-decoration: none;
  border-bottom: 0.5px solid var(--border);
  transition: border-color 0.2s;
}

.inline-link:hover { border-color: var(--text-p); }

/* ── FORM ── */

.contact-form { margin-top: 14px; max-width: 580px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 12px; }

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-b); //blue
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-p);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  padding: 8px 0 10px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--text-p); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-t); font-weight: 300; }

.form-group textarea { resize: none; height: 120px; line-height: 1.6; }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.captcha-question {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-s);
  white-space: nowrap;
}

.captcha-input { width: 72px !important; text-align: center; }

.captcha-row .captcha-input { margin-bottom: 0; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-submit {
  background: transparent;
  color: var(--text-p);
  border: 1px solid;
  border-image: linear-gradient(to right, #a8c8e8, #4a7fb8, #1a3a6e) 1;
  padding: 13px 32px;
  transition: letter-spacing 0.3s;
}
.form-submit:hover {
  letter-spacing: 0.2em;
}

.form-submit:disabled { opacity: 0.4; cursor: default; }

.form-status {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  min-height: 18px;
}

.form-status.ok  { color: #6fcf97; }
.form-status.err { color: #eb5757; }


/* ── DECORATIVE LINES (footer) ── */

.lines-wrap {
  width: 100%;
  overflow: hidden;
}

#decoLines {
  display: block;
  width: 100%;
  height: 300px;
}

/* line animation classes */
.l-breathe  { /* removed */ }
.l-slide-dn,
.l-slide-up,
.l-shimmer  { animation-play-state: paused; }

.lines-wrap.is-visible .l-slide-dn {
  animation: lSlideDown 2s linear forwards;
}
.lines-wrap.is-visible .l-slide-up {
  animation: lSlideUp   2s linear forwards;
}
.lines-wrap.is-visible .l-shimmer {
  animation: lShimmer   2s linear 0.5s forwards;
}

@keyframes lSlideDown {
  0%   { transform: translateY(0);     opacity: 1; }
  50%  { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}
@keyframes lSlideUp {
  0%   { transform: translateY(0);      opacity: 1; }
 50%  { opacity: 1; }
  100% { transform: translateY(-150px); opacity: 0; }
}
@keyframes lShimmer {
  0%   { transform: translateX(0);                              opacity: 0; }
  15%  {                                                        opacity: 1; }
  85%  {                                                        opacity: 0.5; }
  100% { transform: translateX(var(--shim-travel, 3000px));    opacity: 0; }
}


/* ── PAGE FOOTER ── */

.page-footer {
  border-top: 0.5px solid var(--border);
  padding: 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-t);
  letter-spacing: 0.08em;
}


/* ── RESPONSIVE ── */

@media (max-width: 960px) {
  .toc { display: none; }
  .main { padding: 0 28px 120px; }

	.nav-row {
		flex-direction: column; align-items: flex-start;
	}	
  /* mobile nav: show links, hide logo-L, keep logo-t flush-left */
  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }
  .nav-logo-l,
  .nav-brand:has(.nav-logo-l) { display: none; }
  .nav-brand-t { margin-left: 0; }
  .nav-logo-t { margin-left: 0; }
}

@media (max-width: 640px) {
  .nav {
    min-height: auto;
  }
  .nav-inner {
    padding: 12px 20px;
    min-height: auto;
  }
  .nav-row {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: auto;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 10px;
  }
  .nav-tagline { font-size: 9px; }
  .content-wrap { padding-top: 0; }
  body { padding-top: 104px; }
  .main { padding: 0 20px 80px; }
  .section h2 { font-size: 28px; }
  .page-footer { padding: 24px 20px; }
}
