:root {
  --red: #a8121b;
  --red-soft: #b6242c;
  --gold: #a07c2c;
  --ink: #1b1714;
  --muted: #6c6256;
  --line: #e7ddcf;
  --line-soft: #f0e9dd;
  --cream: #f6f0e6;
  --cream-2: #fbf7ef;
  --white: #fff;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-indent: 1px;
}

/* ---------- Header ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 58px;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 60px;
}

.topbar nav {
  display: flex;
  gap: 30px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.topbar nav a {
  position: relative;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.topbar nav a:hover {
  opacity: 1;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.topbar nav a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.header-cta:hover {
  background: #fff;
  color: var(--red);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(420px, 1fr);
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #7f0d13 0%, #a8121b 48%, #5a1418 100%);
}

.hero-figure {
  min-height: 720px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 126px 0 0 58px;
}

.hero-figure img {
  width: min(440px, 90%);
  display: block;
  opacity: 0;
  animation: heroFade 1.4s ease 0.3s forwards;
}

.hero-copy {
  max-width: 720px;
  padding: 160px 58px 104px 24px;
}

.hero-copy > * {
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-copy .eyebrow {
  animation-delay: 0.15s;
}
.hero-copy h1 {
  animation-delay: 0.28s;
}
.hero-copy p:not(.eyebrow) {
  animation-delay: 0.42s;
}
.hero-copy .hero-meta {
  animation-delay: 0.58s;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  color: #fff;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 44px;
}

.hero-meta span {
  display: block;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 18px;
  font-weight: 500;
}

.hero-meta small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* ---------- Generic screen ---------- */
.screen {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px;
}

.intro-screen {
  max-width: 880px;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 88px;
}

.intro-screen p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* ---------- Target audience ---------- */
.split-screen {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: start;
}

.target-screen {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.target-screen p:not(.eyebrow),
.case-screen p,
.leader-profile p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.target-screen h2 {
  margin-bottom: 6px;
}

.target-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: start;
  margin-top: 44px;
}

.target-columns > div:last-child p:not(.eyebrow) {
  font-size: 17px;
  color: var(--ink);
}

/* ---------- Plain lists (editorial, hairline rows) ---------- */
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.55;
}

.plain-list li:first-child {
  border-top: none;
  padding-top: 0;
}

/* ---------- When Clients Come to Us ---------- */
.needs-screen {
  text-align: center;
}

.needs-screen h2 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.needs-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 72px;
  text-align: left;
}

.needs-list li {
  break-inside: avoid;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.35s ease;
}

.needs-list li:hover {
  color: var(--red);
}

/* ---------- Product Architecture (table-of-contents style) ---------- */
.architecture-screen {
  position: relative;
  max-width: none;
  padding: 108px max(24px, calc((100% - var(--max)) / 2 + 24px));
  background: linear-gradient(155deg, #7f0d13 0%, #a8121b 52%, #5a1418 100%);
  color: #fff;
  text-align: center;
}

.architecture-screen .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.architecture-screen h2 {
  color: #fff;
}

.architecture-screen h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.architecture-list {
  margin: 52px auto 0;
  padding: 0;
  max-width: 880px;
  list-style: none;
  text-align: left;
}

.architecture-list li {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--sans);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  transition: color 0.35s ease, padding-left 0.35s ease;
}

.architecture-list li:hover {
  color: #f0cd7a;
  padding-left: 14px;
}

.architecture-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---------- Product detail screens ---------- */
.product-screen {
  display: grid;
  grid-template-columns: minmax(300px, 0.66fr) minmax(520px, 1fr);
  gap: 80px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.product-screen:nth-of-type(even) {
  max-width: none;
  background: var(--cream-2);
  padding-left: max(24px, calc((100% - var(--max)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--max)) / 2 + 24px));
}

.product-heading h2 {
  position: sticky;
  top: 40px;
  max-width: 460px;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
}

.two-columns article {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.two-columns h3 {
  margin-bottom: 22px;
}

/* ---------- Additional Capabilities ---------- */
.capabilities-screen {
  position: relative;
  max-width: none;
  padding: 108px max(24px, calc((100% - var(--max)) / 2 + 24px));
  background: linear-gradient(165deg, #8f0f16 0%, #a8121b 55%, #6e0f15 100%);
  color: #fff;
  text-align: center;
}

.capabilities-screen .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.capabilities-screen h2 {
  color: #fff;
}

.capabilities-screen .plain-list li {
  color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(255, 255, 255, 0.18);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin-top: 56px;
  text-align: left;
}

.capability-grid article {
  padding-top: 24px;
  border-top: 2px solid #c9a24a;
}

.capability-grid h3 {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Case studies ---------- */
.case-screen {
  max-width: none;
  padding: 104px max(24px, calc((100% - var(--max)) / 2 + 24px));
  background: var(--cream);
  text-align: center;
}

.case-screen h2 {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin-top: 60px;
  text-align: left;
  align-items: start;
}

.case-grid h3 {
  min-height: 3em;
  margin-bottom: 18px;
}

.case-grid article {
  padding-top: 24px;
  border-top: 2px solid var(--gold);
}



.case-grid article:first-child p {
  color: var(--ink);
  font-size: 17px;
}

/* ---------- Leadership ---------- */
.leader-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(520px, 1fr);
  gap: 76px;
  align-items: center;
}

.leader-photo {
  min-height: 500px;
  display: flex;
  align-items: end;
  justify-content: center;
  background: linear-gradient(160deg, var(--cream-2), var(--cream));
  border-radius: 2px;
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}

.leader-photo img {
  width: min(360px, 88%);
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.leader-photo:hover img {
  transform: translateY(-8px) scale(1.02);
}

.elena-profile .leader-photo img {
  width: min(430px, 98%);
}

.leader-profile h3 {
  margin-top: -8px;
  margin-bottom: 26px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
}

.bio-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.bio-meta article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bio-meta p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding: 64px max(24px, calc((100% - var(--max)) / 2 + 24px));
  background: linear-gradient(150deg, #7f0d13 0%, #a8121b 48%, #5a1418 100%);
  color: #fff;
}

.footer div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer img {
  width: 52px;
}

.footer strong {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
}

.footer nav {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
}

.footer nav a:hover {
  color: #fff;
}

.footer > a {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Motion / animations ---------- */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

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

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-button:hover {
  background: #8f0f16;
  transform: translateY(-1px);
}

.contact-button--on-dark {
  background: #fff;
  color: var(--red);
}

.contact-button--on-dark:hover {
  background: var(--cream);
  color: var(--red);
  transform: translateY(-1px);
}

.leader-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.leader-aside .contact-button {
  width: min(100%, 300px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.carousel-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding: 6px 2px;
}

.carousel-slide .product-heading h2 {
  position: static;
  top: auto;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin-top: 54px;
}

.carousel-btn {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.carousel-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.carousel-counter {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.carousel-counter #serviceIndex {
  color: var(--red);
  font-weight: 600;
}

.carousel-sep {
  margin: 0 4px;
  color: var(--line);
}


.offices-screen { text-align: center; }

.offices-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 56px;
  margin: 52px auto 0;
  max-width: 980px;
  text-align: center;
}

.offices-grid article {
  flex: 0 1 250px;
}

.offices-grid article {
  padding-top: 0;
}

.offices-grid .flag {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  line-height: 0;
}

.offices-grid .flag svg {
  height: 28px;
  width: auto;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.offices-grid p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-figure img {
    opacity: 1;
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1080px) {
  .topbar {
    position: static;
    color: var(--ink);
    padding: 24px 32px;
  }

  .topbar nav a {
    opacity: 1;
  }

  .header-cta {
    border-color: var(--line);
  }

  .header-cta:hover {
    background: var(--red);
    color: #fff;
  }

  .hero,
  .split-screen,
  .target-columns,
  .product-screen,
  .carousel-slide,
  .leader-profile,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    min-height: auto;
    padding: 60px 0 0;
  }

  .hero-copy {
    padding: 40px 32px 76px;
  }

  .product-screen:nth-of-type(even) {
    background: var(--cream-2);
  }

  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bio-meta {
    grid-template-columns: 1fr 1fr;
  }

  .offices-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  h2 {
    font-size: clamp(28px, 8.4vw, 40px);
  }

  .case-screen h2 {
    font-size: clamp(25px, 7.4vw, 34px);
  }

  .intro-screen {
    padding-top: 70px;
    padding-bottom: 60px;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px;
  }

  .topbar nav {
    display: none;
  }

  .screen {
    padding: 68px 22px;
  }

  .architecture-screen,
  .capabilities-screen,
  .case-screen {
    padding-top: 74px;
    padding-bottom: 74px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .architecture-list li {
    font-size: 22px;
    padding: 20px 2px;
  }

  .needs-list li {
    font-size: 21px;
  }

  .product-screen:nth-of-type(even) {
    padding-left: 22px;
    padding-right: 22px;
  }

  .needs-list {
    column-count: 1;
  }

  .two-columns,
  .case-grid,
  .capability-grid,
  .bio-meta {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .leader-photo {
    min-height: 380px;
  }

  .product-heading h2 {
    position: static;
  }

  /* red sections: left-aligned on phones (remove big centered indent) */
  .architecture-screen,
  .capabilities-screen {
    text-align: left;
  }

  .architecture-screen .eyebrow,
  .capabilities-screen .eyebrow,
  .architecture-screen h2,
  .capabilities-screen h2 {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .architecture-list,
  .architecture-list li {
    margin-left: 0;
    text-align: left;
  }

  /* cleaner mobile header */
  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
  }

  .brand {
    font-size: 18px;
    gap: 10px;
  }

  .brand img {
    width: 44px;
  }

  .header-cta {
    flex: none;
    padding: 9px 16px;
    font-size: 11px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  /* carousel controls: easier to tap, centered */
  .carousel-controls {
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }

  .carousel-btn {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 1080px) {
  }
