:root {
  --ink: #101216;
  --ink-soft: #515762;
  --paper: #ffffff;
  --paper-alt: #f5f5f7;
  --line: #dedfe3;
  --brand: #f36f21;
  --brand-aa: #b84400;
  --brand-aa-hover: #943700;
  --brand-soft: #fff0e6;
  --night: #101216;
  --night-soft: #1a1c21;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(17, 18, 22, .11);
  --shadow-soft: 0 12px 42px rgba(17, 18, 22, .08);
  --radius: 28px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #0067d8; outline-offset: 3px; }
::selection { background: var(--brand); color: #111; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 9999;
  transform: translateY(-180%);
  background: #fff;
  color: #111;
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 126px) 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-aa);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow-on-dark { color: #ffad7d; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.038em; }
h1 { font-size: clamp(3.35rem, 8vw, 7.15rem); max-width: 940px; margin-bottom: 24px; }
h2 { font-size: clamp(2.3rem, 5vw, 4.45rem); margin-bottom: 18px; }
h3 { font-size: clamp(1.42rem, 2vw, 1.85rem); margin-bottom: 10px; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 760px; }

/* Floating navigation: keeps the original logo readable over every hero frame. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  pointer-events: none;
}
.nav-shell {
  min-height: var(--header-height);
  margin-top: 12px;
  padding: 8px 10px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 20px;
  background: rgba(12, 14, 18, .72);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  pointer-events: auto;
}
.site-header.is-scrolled .nav-shell {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(16, 18, 22, .09);
  box-shadow: 0 12px 34px rgba(17, 18, 22, .11);
}
.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
}
.brand-mark img { width: 36px; height: 39px; object-fit: contain; }
.brand-copy { line-height: 1.05; }
.brand-copy strong { display: block; font-size: .94rem; }
.brand-copy small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .86);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .045em;
}
.site-header.is-scrolled .brand { color: var(--ink); }
.site-header.is-scrolled .brand-copy small { color: #666c76; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .94);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 760;
  transition: color .18s ease, background-color .18s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.site-nav a[aria-current="location"] { color: #fff; background: rgba(255, 255, 255, .13); }
.site-header.is-scrolled .site-nav a { color: #373c45; }
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a[aria-current="location"] { color: #111; background: #f0f1f3; }
.site-nav .nav-cta,
.site-header.is-scrolled .site-nav .nav-cta {
  margin-left: 3px;
  color: #fff;
  background: var(--brand-aa);
  border-radius: 999px;
  padding-inline: 17px;
}
.site-nav .nav-cta:hover,
.site-header.is-scrolled .site-nav .nav-cta:hover { color: #fff; background: var(--brand-aa-hover); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  border-radius: 14px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }
.site-header.is-scrolled .nav-toggle { background: #fff; border-color: #d8dade; }
.site-header.is-scrolled .nav-toggle span { background: #111; }

/* Original three-image hero, rebuilt without legacy jQuery/Vegas dependencies. */
.hero {
  min-height: min(920px, 100svh);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #15171b;
}
.hero-media,
.hero-slide,
.hero-slide img,
.hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: 0; background: #15171b; }
.hero-slide {
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.25s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.015);
  transition: transform 8s linear;
}
.hero-slide.is-active img { transform: scale(1.075) translate3d(-.7%, -.25%, 0); }
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, .75) 47%, rgba(8, 9, 12, .30) 100%),
    linear-gradient(0deg, rgba(8, 9, 12, .82) 0%, rgba(8, 9, 12, .12) 62%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  padding: clamp(170px, 23vh, 245px) 0 42px;
}
.hero-copy-block { max-width: 930px; }
.hero-copy {
  max-width: 770px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(1.13rem, 2vw, 1.42rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--brand-aa); box-shadow: 0 12px 35px rgba(184, 68, 0, .28); }
.button-primary:hover { background: var(--brand-aa-hover); }
.button-primary:focus-visible, .nav-cta:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #0067d8; }
.button-ghost { color: #fff; border-color: rgba(255, 255, 255, .46); background: rgba(255, 255, 255, .09); backdrop-filter: blur(10px); }
.button-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .64); }
.button-outline { color: var(--ink); border-color: #cfd2d7; background: #fff; }
.button-outline:hover { background: #f6f7f8; border-color: #bfc3c9; }

.hero-footer {
  margin-top: clamp(56px, 9vh, 96px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
  font-weight: 760;
}
.hero-meta li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: #ff8a45;
}
.motion-toggle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(10, 11, 14, .32);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.motion-toggle:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .64); }
.motion-icon { display: block; }
.motion-icon-pause { display: flex; gap: 4px; }
.motion-icon-pause i { width: 3px; height: 14px; border-radius: 2px; background: currentColor; }
.motion-icon-play { display: none; width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-icon-play { display: block; }
.hero-progress { position: absolute; z-index: 3; inset: auto 0 0; height: 3px; background: rgba(255, 255, 255, .12); }
.hero-progress span { display: block; width: 0; height: 100%; background: #ff8a45; }
.hero.is-playing .hero-progress span { animation: hero-progress 7.5s linear infinite; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 42px;
  margin-bottom: 44px;
}
.section-head > * { min-width: 0; }
.section-head .lede { max-width: 570px; margin-bottom: 0; }

/* Project-first ordering follows strong contemporary portfolio patterns: proof before biography. */
.work-section { background: var(--paper-alt); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.work-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e2e5;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 40px rgba(17, 18, 22, .06);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: #d2d4d9; box-shadow: var(--shadow-soft); }
.work-card:focus-visible { outline-offset: 5px; }
.work-image { aspect-ratio: 1.585 / 1; overflow: hidden; background: #eceef1; }
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.work-card:hover .work-image img { transform: scale(1.035); }
.work-content { min-height: 168px; padding: 22px 24px 24px; display: grid; align-content: start; }
.work-kicker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #813100;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.work-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.work-link { margin-top: 10px; color: #555b65; font-size: .9rem; font-weight: 740; }
.work-card:hover .work-link { color: var(--brand-aa); }

.expertise-section { background: #fff; }
.expertise-head { align-items: start; }
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.capability {
  min-height: 260px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.capability-featured {
  color: #fff;
  background: linear-gradient(145deg, #17191e, #0e0f12);
  border-color: #17191e;
}
.capability-number { margin-bottom: auto; color: var(--brand-aa); font-weight: 900; font-size: .78rem; letter-spacing: .12em; }
.capability-featured .capability-number { color: #ffad7d; }
.capability p { margin: 0; max-width: 470px; color: var(--ink-soft); font-size: .98rem; }
.capability-featured p { color: rgba(255, 255, 255, .75); }

.about-section { background: #fff; }
.about-panel { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 7vw, 88px); align-items: center; }
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-alt); }
.about-visual img { width: 100%; }
.about-copy p { color: var(--ink-soft); font-size: 1.04rem; }
.about-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.about-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 760; }
.about-points li::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin-top: 9px; border-radius: 50%; background: var(--brand-aa); }

.feedback {
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 85, 0, .16), transparent 30%),
    linear-gradient(180deg, #111318 0%, #0b0c0f 100%);
}
.feedback-head { align-items: end; }
.feedback-head .lede {
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
  font-weight: 650;
  letter-spacing: -.015em;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quote {
  position: relative;
  min-height: 310px;
  margin: 0;
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 48px rgba(0, 0, 0, .12);
}
.quote-mark {
  display: block;
  height: 38px;
  margin-bottom: 17px;
  color: #ff9b61;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: .9;
}
.quote p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  font-weight: 520;
  line-height: 1.62;
  letter-spacing: -.013em;
}
.quote footer {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.quote-source {
  color: #ffad7d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.contact-section { background: linear-gradient(135deg, #fff4ec, #fff 56%); }
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid #ead9ce;
  border-radius: 32px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #555b65; font-size: .9rem; }
.footer-links { display: flex; gap: 5px; flex-wrap: wrap; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9px; text-decoration: none; font-weight: 740; }
.footer-links a:hover { color: var(--brand-aa); background: #f5f5f7; }

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 18, 22, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(17, 18, 22, .12);
  color: #111;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  backdrop-filter: blur(12px);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #fff; }

@media (max-width: 1040px) {
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote:last-child { grid-column: 1 / -1; min-height: 250px; }
}

@media (max-width: 880px) {
  :root { --header-height: 66px; }
  .container, .hero-inner { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { margin-top: 8px; padding: 7px 8px 7px 9px; border-radius: 18px; }
  .brand { min-width: 0; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .brand-copy small { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 7px);
    display: none;
    padding: 10px;
    border: 1px solid #dadce0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a,
  .site-header.is-scrolled .site-nav a { min-height: 48px; color: #252931; padding: 0 13px; border-radius: 11px; }
  .site-nav a:hover,
  .site-header.is-scrolled .site-nav a:hover,
  .site-nav a[aria-current="location"],
  .site-header.is-scrolled .site-nav a[aria-current="location"] { color: #111; background: #f1f2f4; }
  .site-nav .nav-cta,
  .site-header.is-scrolled .site-nav .nav-cta { margin: 4px 0 0; justify-content: center; color: #fff; background: var(--brand-aa); }
  .section-head { display: block; }
  .section-head .lede { margin-top: 12px; }
  .about-panel, .contact-card { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 86px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .brand-copy strong { font-size: .88rem; }
  .hero { min-height: 760px; }
  .hero-slide img { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8, 9, 12, .9), rgba(8, 9, 12, .58)), linear-gradient(0deg, rgba(8, 9, 12, .86), transparent 60%); }
  .hero-inner { padding-bottom: 34px; }
  .hero-actions .button { width: 100%; }
  .hero-footer { margin-top: 44px; align-items: end; }
  .hero-meta { gap: 7px 16px; font-size: .8rem; }
  .hero-meta li { width: calc(50% - 8px); }
  .work-grid, .capabilities, .quote-grid { grid-template-columns: 1fr; }
  .quote:last-child { grid-column: auto; min-height: 0; }
  .quote { min-height: 0; padding: 28px 24px 24px; }
  .work-content { min-height: 150px; }
  .capability { min-height: 220px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: -10px; }
  .back-to-top { right: 12px; bottom: 12px; }
}

@media (max-width: 390px) {
  .brand-copy { display: none; }
  .hero-meta li { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-slide:not(:first-child) { display: none; }
  .hero-slide:first-child { opacity: 1; }
  .hero-slide img,
  .hero-slide.is-active img { transform: none; }
  .motion-toggle,
  .hero-progress { display: none; }
  .button:hover,
  .work-card:hover { transform: none; }
}

@media (forced-colors: active) {
  .brand-mark, .nav-shell, .work-card, .capability, .quote, .contact-card { border: 1px solid CanvasText; }
  .hero-shade { background: rgba(0, 0, 0, .72); }
}
