/* =========================
   Design tokens
========================== */
:root{
  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --maxw: 1120px;

  --bg: #ffffff;
  --ink: #2a2a2a;                /* body text primary */
  --ink-dim: #60657a;            /* secondary */
  --brand: #0f0f66;              /* deep navy band */
  --accent: #2bd4a1;             /* mint/teal accent line */
  --link: #1ba786;               /* links */
  --card: #f6f8fb;               /* light surfaces */

  --radius: 14px;
  --shadow: 0 10px 30px rgba(10,16,34,.08);
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;

  --h1: clamp(2rem, 3vw + 1rem, 3rem);
  --h2: clamp(1.5rem, 2.2vw + .8rem, 2rem);
  --h3: clamp(1.1rem, 1.2vw + .6rem, 1.25rem);
  --body: clamp(.98rem, .35vw + .8rem, 1.0625rem);
}

/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body{
  font-family: var(--font);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  font-size: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  font-weight: 500;
  color: var(--brand);
}
h2 {
  line-height: 1.4;
}
.hero h2 {
  text-align: center;
}
h3 {
  font-size: 1.4em;
  font-weight: 400;
}
.project-grid h3 {
  color: var(--ink);
}
h4 {
  font-size: 1.1em;
  font-weight: 400;
}
h5 {
  font-size: 1.1em;
  font-weight: 400;
  color: var(--ink);
}
.heading {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--ink);
}
img{ max-width: 100%; display: block; height: auto; }
a{
  color: var(--link);
  text-decoration: underline;
}
header a {
  text-decoration: none;
}
a:hover{
  text-decoration: none;
}
a.btn:hover {
  opacity: 0.8;
}
a.btn{
  font-size: .9em;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
}
#focus h2 {
  color: var(--bg);
}
#focus .container {
  text-align: center;
  font-size: var(--h3);
}
#focus img, .inner img {
  margin: auto;
  margin-top: 32px;
  margin-bottom: 32px;
}
#focus p {
  line-height: 1.8;
}
#focus .btn-bar {
  margin-top: 32px;
}
#brands {
  margin: auto;
  text-align: center;
}
#brands h3 {
  font-size: 1.5rem;
}
#block {
  background: #fafafa;
}
#block h4 {
  text-align: center;
  font-size: 1em;
}
ol {
  list-style-type: disc; /* or circle, or square */
}
ol.item {
  margin: 1em;
}
ol li {
  margin-bottom: 1em;
}
ol li::marker {
  font-size: 0.7em;
}
/* Layout helpers */
.container{ 
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto; 
}
.about.container {
  max-width: 90%;
  min-width: 80%;
}
.stack>*+*{ margin-top: var(--space-2); }
.section{ padding-block: var(--space-6); }
.subpage.section {
  padding-block: var(--space-5);
}
.section--band{ background: var(--brand); color: #fff; }

.section-background {
  background-image: radial-gradient(#c1c9d1 20%, transparent 20%);
  background-size: 4px 4px;
  background-position: -1px -1px;
  min-height: 26vh;
}

header{
  position: fixed;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter:
  blur(8px);
  padding-top: 1.8vw;
  padding-bottom: 1.8vw;
  padding-left: 3vw;
  padding-right: 3vw;
  width: 100%;
  transition: background 140ms ease-in-out 140ms, transform 140ms ease-in-out;
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.breadcrumb {
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
}
.breadcrumb div {
  flex: 1;
  width: 50%;
  text-align: left;
}
.breadcrumb div:nth-child(2) {
  text-align: right;
}
.breadcrumb a {
  cursor: pointer;
}
.title{
  letter-spacing:.2px;
  font-size: calc(1vw + .65rem);
  font-weight: 500;
}
.title a {
  color: var(--ink);
}
.menu{
  display: flex;
  gap: 3rem;
}
.menu a{
  color: var(--ink);
  opacity:.85;
  font-weight: 500;
}
.menu a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: .25rem;
}
/* Burger menu container - hidden by default */
.burger-container {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  transform: rotate(0deg);
  transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

#burger {
  width: 24px;
  height: 14px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bar {
  width: 100%;
  height: 2px;
  background: var(--ink);
  position: absolute;
  transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition-delay: 0s;
}

.topBar {
  top: 0;
  transform: translateY(0px) rotate(0deg);
}

.btmBar {
  bottom: 0;
  transform: translateY(0px) rotate(0deg);
}

.hero{
  padding-block: clamp(6rem, 4vw, 2rem);
  width: 48%;
}
.eyebrow{
  padding: .1em 0;
}
.eyebrow hr{
  width: 150px;
  background-color: var(--accent);
  max-width: 150px;
  height: 1.5px;
  border: 0;
}
.hero h4 {
  text-align: center;
  line-height: 1.4em;
}
.hero p{ max-width: 65ch; color: var(--ink); }

.recommendations {
  padding-block: clamp(3rem, 2vw, 2rem);
  width: 55%;
  text-align: center;
}
.recommendations p {
  font-size: 0.9em;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.8rem;
  border-radius: 999px; 
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  border: 0;
  box-shadow: var(--shadow);
  opacity: 1;
}
.btn-bar{
  width: 100%;
  text-align: center;
}
.btn--accent{
  background: var(--accent);
  color:#0d2530;
}
.btn--primary{
  background: var(--brand);
  color: var(--bg);
}

footer {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-5);
  margin: auto;
  text-align: center;
  color: var(--ink);
  font-size: 0.9em;
}
.social {
  padding-block: var(--space-2);
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.social a img {
  height: 24px;
  width: auto;
  margin: auto 10px;
}

/* Brand images */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  flex-wrap: wrap;
}

.logo-grid .row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 1em auto;
}

.logo-grid .logo {
  flex: 1;
  width: 32%;
  height: 80%;
}

.projects {
  padding: 2.5em;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  flex-wrap: wrap;
}

.project-grid .row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 1em auto;
}

.project-grid .project {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 80px;
  margin: 1em auto;
}

.project-grid .item {
  flex: 1;
  width: 50%;
  height: auto;
}

.project-grid .item img {
  width: 100%;
  height: auto;
}

.masthead .project .item {
  margin: 0 4em;
}

.about .project .item {
  margin: 0 1em;
}

.feature {
  padding: 2em;
}

.feature.downscale {
  padding: 6em;
}

#focus .project-grid {
  text-align: left;
}

.inner {
  width: 50%;
}

.project.details {
  font-size: 0.85em;
  line-height: 1.9;
}

.about p {
  font-size: .9em;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
}

.capability {
  flex: 1;
  width: 32%;
  height: auto;
}

.capability h3 {
  color: var(--bg);
  font-size: 1.2em;
}

.capability p {
  font-size: .95em;
}
/* =========================
   Slide animations
   Usage: add one of .slide-left/.slide-right/.slide-up on any block.
   JS below toggles .visible when in view.
========================== */
.slide-base{
  opacity: 0;
  transform: translate3d(0,0,0);          /* ensures GPU compositing */
  will-change: transform, opacity;
  transition: opacity .6s ease, transform .6s ease;
}
.slide-left{  transform: translateX(-100px); }
.slide-right{ transform: translateX(100px);  }
.slide-up {
  transform: translateY(40px);
  /*transition-timing-function: ease; transition-duration: 0.45s; transition-delay: 0.392308s;*/
}

.visible{ opacity: 1; transform: translateX(0) translateY(0); }

/* (Optional) prefers-reduced-motion: turn off movement but keep fade-in */
@media (prefers-reduced-motion: reduce){
  .slide-base, .slide-left, .slide-right, .slide-up{ transform: none !important; }
  .visible{ opacity: 1 !important; }
}
@media screen and (min-width: 768px), screen and (max-width: calc(2013px)) and (orientation: landscape) {
  h2 {
    font-size: calc(1.2vw + 1rem);
  }
}
@media screen and (max-width: 767px) {
  .hero {
    width: 90%;
  }
  .logo-grid {
    display: block;
  }
  .logo-grid .row {
    flex-direction: column;
  }
  .logo-grid .logo {
    width: 100%;
    margin: 0 0 10px 0;
  }
  .logo-grid .logo img {
    width: 80%;
    height: auto;
    margin: auto;
  }
  .project-grid .row {
    gap: 40px;
  }
  .project-grid .project {
    flex-direction: column;
    gap: 10px;
  }
  .project-grid .row:nth-child(even) .project {
    flex-direction: column-reverse;
  }
  .project-grid .item {
    width: 100%;
  }

  header {
    padding: 1rem 1.5rem;
  }

  .burger-container {
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 102, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in;
  }

  .menu.menu-opened {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.3s ease-out;
    transition-delay: 0.25s;
  }

  .menu a {
    color: var(--bg);
    font-size: 1.75rem;
    font-weight: 400;
    padding: 1.25rem 0;
    border-bottom: 0px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    text-align: center;
    opacity: 0.85;
    transform: scale(1.15) translateY(-30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0.01, 0.165, 0.99), 
                opacity 0.6s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  }

  .menu a:hover {
    opacity: 1;
  }

  .menu a.active {
    /*border-bottom: 2px solid var(--accent);*/
    border-bottom: 0;
    padding-bottom: 1.25rem;
  }

  .menu.menu-opened a {
    transform: scale(1) translateY(0);
    opacity: 0.85;
  }

  .menu.menu-opened a:nth-child(1) {
    transition-delay: 0.27s;
  }

  .menu.menu-opened a:nth-child(2) {
    transition-delay: 0.34s;
  }

  .menu.menu-opened a:nth-child(3) {
    transition-delay: 0.41s;
  }

  .burger-container.menu-opened {
    transform: rotate(90deg);
  }

  .burger-container.menu-opened .topBar {
    transform: translateY(6px) rotate(45deg);
    transition-delay: 0.2s;
    background: var(--bg);
  }

  .burger-container.menu-opened .btmBar {
    transform: translateY(-6px) rotate(-45deg);
    transition-delay: 0.2s;
    background: var(--bg);
  }
}
