:root {
  --black: #080808;
  --white: #fff;
  --paper: #f2f2ef;
  --line: rgba(12, 12, 12, 0.14);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

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

img {
  max-width: 100%;
}

.modern-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-top: 2px solid #54656f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.modern-logo,
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.72;
}

.modern-logo strong,
.footer-brand strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 34px;
  letter-spacing: -2.8px;
}

.modern-logo span,
.footer-brand span {
  margin-top: 7px;
  color: #747474;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.modern-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modern-nav > a,
.modern-nav-group > a {
  position: relative;
  padding: 10px 0;
}

.modern-nav > a::after,
.modern-nav-group > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transition: right 0.2s ease;
}

.modern-nav > a:hover::after,
.modern-nav > a:focus-visible::after,
.modern-nav > a.active::after,
.modern-nav-group > a:hover::after,
.modern-nav-group > a:focus-visible::after {
  right: 0;
}

.modern-nav .nav-contact {
  padding: 11px 16px;
  color: #fff;
  background: #111;
  border-radius: 100px;
}

.modern-nav .nav-contact::after {
  display: none;
}

.modern-nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.modern-dropdown {
  position: relative;
}

.modern-dropdown summary {
  width: 22px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.modern-dropdown summary::-webkit-details-marker {
  display: none;
}

.modern-dropdown summary::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.modern-dropdown[open] summary::before {
  margin-top: 4px;
  transform: rotate(225deg);
}

.modern-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 275px;
  display: none;
  padding: 12px 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

.modern-submenu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    #a5d52e,
    #0b86c1,
    #f68a21,
    #ffb526,
    #244e93,
    #df0870,
    #7b2b88
  );
}

.modern-dropdown[open] .modern-submenu {
  display: block;
  animation: submenu-in 0.18s ease-out;
}

.modern-submenu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 17px;
  font-size: 11px;
  transition: background 0.18s ease, padding-left 0.18s ease;
}

.modern-submenu a:hover,
.modern-submenu a:focus-visible {
  padding-left: 21px;
  background: #f2f2f2;
}

.modern-submenu a span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--menu-color);
}

@keyframes submenu-in {
  from {
    opacity: 0;
    transform: translate(-50%, -7px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.modern-menu-check,
.modern-menu-toggle {
  display: none;
}

.modern-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(80px, 10vw, 150px) max(28px, calc((100vw - 1280px) / 2));
  color: #fff;
  background: #000;
}

.modern-hero-wordmark {
  position: absolute;
  left: 46%;
  top: 45%;
  width: max(1750px, 132vw);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.88;
  user-select: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 60%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(800px, 88vw);
}

.eyebrow {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #666;
}

.hero-content h1,
.section-heading h2,
.work-heading h2,
.about-copy h2,
.modern-contact h2 {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(62px, 8.5vw, 132px);
}

.hero-content h1 span {
  display: block;
  color: #a5d52e;
}

.hero-intro {
  max-width: 600px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-light {
  color: #111;
  background: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: #111;
  background: #fff;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: max(28px, calc((100vw - 1280px) / 2));
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 46px;
  height: 1px;
  background: currentColor;
}

.color-rail {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 7px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.color-rail span:nth-child(1) { background: #a5d52e; }
.color-rail span:nth-child(2) { background: #0b86c1; }
.color-rail span:nth-child(3) { background: #f68a21; }
.color-rail span:nth-child(4) { background: #ffb526; }
.color-rail span:nth-child(5) { background: #244e93; }
.color-rail span:nth-child(6) { background: #df0870; }
.color-rail span:nth-child(7) { background: #7b2b88; }

.modern-services {
  padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - 1280px) / 2));
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 70px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -40px;
}

.section-heading h2,
.work-heading h2,
.about-copy h2,
.modern-contact h2 {
  font-size: clamp(48px, 6.2vw, 92px);
}

.section-heading > p:last-child {
  margin: 0;
  color: #585858;
  font-size: 18px;
  line-height: 1.55;
}

.modern-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.modern-service-card {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 0.24s ease, transform 0.24s ease;
}

.modern-service-card::before {
  content: "";
  position: absolute;
  inset: 100% 0 0;
  z-index: -1;
  background: var(--service-color);
  transition: inset 0.28s ease;
}

.modern-service-card:hover,
.modern-service-card:focus-visible {
  color: #fff;
  transform: translateY(-5px);
}

.modern-service-card:hover::before,
.modern-service-card:focus-visible::before {
  inset: 0;
}

.service-number {
  color: #777;
  font-size: 11px;
  font-weight: 800;
}

.modern-service-card:hover .service-number,
.modern-service-card:focus-visible .service-number {
  color: rgba(255, 255, 255, 0.72);
}

.modern-service-card i {
  width: 34px;
  height: 34px;
  margin: 32px 0 24px;
  display: block;
  border-radius: 50%;
  background: var(--service-color);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modern-service-card:hover i,
.modern-service-card:focus-visible i {
  background: #fff;
  transform: scale(1.18);
}

.modern-service-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.modern-service-card p {
  margin: 12px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.modern-service-card:hover p,
.modern-service-card:focus-visible p {
  color: rgba(255, 255, 255, 0.78);
}

.modern-service-card b {
  position: absolute;
  right: 28px;
  bottom: 25px;
  font-size: 23px;
  font-weight: 400;
}

.modern-service-card:last-child {
   grid-column: auto;
}

.featured-work {
  padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - 1280px) / 2));
  color: #fff;
  background: #0a0a0a;
}

.work-heading {
  margin-bottom: 64px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: repeat(2, 360px);
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #222;
}

.work-card-large {
  grid-row: 1 / 3;
}

.work-card img,
.work-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-card img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 65%);
}

.work-card > div {
  position: absolute;
  z-index: 2;
  inset: auto 30px 28px;
}

.work-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 38px);
  letter-spacing: -0.04em;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.045);
}

.modern-about {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.about-visual {
  min-height: 600px;
  overflow: hidden;
  background: #f7ebe5;
}

.about-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 8vw, 130px);
}

.about-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 35px 0 0;
  color: #555;
  font-size: 18px;
  line-height: 1.65;
}

.text-link {
  width: fit-content;
  margin-top: 36px;
  padding-bottom: 7px;
  border-bottom: 1px solid #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link span {
  margin-left: 10px;
}

.client-strip {
  padding: 60px max(24px, calc((100vw - 1280px) / 2));
  overflow: hidden;
  background: #dededb;
}

.client-strip > p {
  margin: 0 0 28px;
  color: #666;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.client-strip > div {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 45px);
  letter-spacing: -0.04em;
}

.client-strip i {
  color: #999;
  font-size: 9px;
}

.client-strip > a {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 5px;
  border-bottom: 1px solid;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.modern-contact {
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - 1280px) / 2));
  color: #fff;
  background: #0a0a0a;
}

.contact-circle {
  width: clamp(190px, 21vw, 290px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111;
  background: #a5d52e;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-circle b {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 400;
}

.contact-circle:hover,
.contact-circle:focus-visible {
  transform: rotate(-5deg) scale(1.04);
  background: #fff;
}

.modern-footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: end;
  gap: 50px;
  padding: 46px max(24px, calc((100vw - 1280px) / 2));
  background: #fff;
}

.modern-footer address {
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.modern-footer address a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modern-footer > p {
  margin: 0;
  color: #777;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .modern-nav {
    gap: 18px;
  }

  .modern-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modern-service-card:last-child {
    grid-column: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .section-heading > p:last-child {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .modern-logo strong {
    font-size: 30px;
  }

  .modern-logo span {
    font-size: 13px;
  }

  .modern-menu-toggle {
    width: 42px;
    height: 42px;
    margin-left: auto;
    display: block;
    padding: 8px;
    cursor: pointer;
  }

  .modern-menu-toggle span {
    width: 100%;
    height: 2px;
    display: block;
    margin: 5px 0;
    background: #111;
  }

  .modern-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  }

  .modern-menu-check:checked ~ .modern-nav {
    display: flex;
  }

  .modern-nav > a,
  .modern-nav-group > a {
    padding: 12px 2px;
  }

  .modern-nav .nav-contact {
    margin-top: 6px;
    padding: 13px 16px;
    text-align: center;
  }

  .modern-nav-group {
    width: 100%;
    justify-content: space-between;
  }

  .modern-dropdown {
    flex: 1 0 auto;
  }

  .modern-dropdown summary {
    width: 100%;
    justify-content: end;
    padding-right: 8px;
  }

  .modern-submenu {
    position: static;
    width: calc(100% + 180px);
    margin: 3px 0 0 -180px;
    transform: none;
    box-shadow: none;
  }

  .modern-dropdown[open] .modern-submenu {
    animation: none;
  }

  .modern-hero {
    min-height: 760px;
    padding-bottom: 90px;
  }

  .modern-hero-wordmark {
    width: 1550px;
    left: 40%;
  }

  .scroll-cue {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(330px, 55vw));
  }

  .work-card-large {
    grid-row: auto;
  }

  .modern-about {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 460px;
  }

  .modern-contact {
    min-height: 600px;
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-circle {
    align-self: flex-end;
  }

  .modern-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .modern-hero {
    min-height: 690px;
  }

  .hero-content h1 {
    font-size: clamp(54px, 17vw, 80px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modern-service-grid {
    grid-template-columns: 1fr;
  }

  .modern-service-card {
    min-height: 270px;
  }

  .about-visual {
    min-height: 330px;
  }

  .about-copy {
    padding: 64px 24px;
  }

  .client-strip > div {
    gap: 15px;
    font-size: 27px;
  }

  .contact-circle {
    width: 185px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
