.agency-home {
  --agency-ink: #11181b;
  --agency-steel: #222c30;
  --agency-muted: #617074;
  --agency-paper: #f4f4f0;
  --agency-line: rgba(17, 24, 27, .16);
  --agency-accent: #c86032;
  --agency-accent-dark: #a94924;
  --agency-sans: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --agency-mono: "Cascadia Mono", "SFMono-Regular", "Consolas", monospace;
  background: var(--agency-paper);
  color: var(--agency-ink);
  font-family: var(--agency-sans);
  font-feature-settings: "kern";
  text-rendering: geometricPrecision;
}

.agency-home .site-header {
  border-bottom: 1px solid var(--agency-line);
  background: rgba(244, 244, 240, .96);
  box-shadow: 0 8px 30px rgba(17, 24, 27, .055);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.agency-home .topline {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: .3rem;
  padding-bottom: .3rem;
  background: var(--agency-ink);
  color: rgba(239, 244, 241, .82);
  font: 700 10px var(--agency-mono);
  letter-spacing: .045em;
}

.agency-home .topline a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
}

.agency-home .topline a:hover {
  color: #fff;
}

.agency-home .nav {
  min-height: 68px;
  max-width: 1500px;
  padding-top: .75rem;
  padding-bottom: .75rem;
  gap: clamp(1rem, 2vw, 2rem);
}

.agency-home .logo {
  width: 178px !important;
  height: 42px !important;
  flex-basis: 178px;
  background-size: 178px auto !important;
}

.agency-home .nav nav {
  gap: clamp(.75rem, 1.4vw, 1.35rem);
  font-size: .86rem;
}

.agency-home .nav nav a,
.agency-home .mega a,
.agency-home .saved-link {
  position: relative;
  text-decoration: none;
}

.agency-home .nav nav a::after,
.agency-home .mega a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.42rem;
  height: 1px;
  background: var(--agency-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.agency-home .nav nav a:hover::after,
.agency-home .mega a:hover::after {
  transform: scaleX(1);
}

.agency-home .nav-actions {
  gap: .55rem;
  font-size: .78rem;
}

.agency-home .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(17, 24, 27, .18);
  font-size: .95rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.agency-home .icon-link:hover {
  border-color: var(--agency-ink);
  background: var(--agency-ink);
  color: #fff;
  text-decoration: none;
}

.agency-home .saved-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  color: var(--agency-ink);
}

.agency-home .saved-link b {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  background: var(--agency-accent);
  color: #fff;
  font: 800 11px var(--agency-mono);
}

.agency-home .button.accent {
  background: var(--agency-accent);
  border-color: var(--agency-accent);
}

.agency-home .button.accent:hover {
  background: var(--agency-accent-dark);
  border-color: var(--agency-accent-dark);
}

.agency-home .mega {
  min-height: 39px;
  max-width: none;
  padding-top: .62rem;
  padding-bottom: .62rem;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(17, 24, 27, .105);
  gap: clamp(.85rem, 1.7vw, 1.5rem);
  font-size: .77rem;
}

.agency-home .mega strong {
  color: var(--agency-ink);
}

.agency-home .mega span {
  color: rgba(97, 112, 116, .92);
}

.agency-home .menu-toggle {
  min-height: 38px;
  padding: .55rem .82rem;
  border: 1px solid rgba(17, 24, 27, .24);
  background: transparent;
  color: var(--agency-ink);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.agency-home .menu-toggle:hover,
.agency-home .menu-toggle[aria-expanded="true"] {
  border-color: var(--agency-ink);
  background: var(--agency-ink);
  color: #fff;
}

.agency-home .eyebrow {
  margin: 0 0 1rem;
  color: var(--agency-accent);
  font: 800 10px var(--agency-mono);
  letter-spacing: .09em;
  text-transform: none;
}

.agency-home h1,
.agency-home h2,
.agency-home h3 {
  text-wrap: balance;
}

.agency-hero {
  position: relative;
  min-height: clamp(500px, calc(100dvh - 210px), 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  gap: clamp(2rem, 5vw, 7rem);
  align-items: end;
  padding: clamp(3.4rem, 7vw, 5.8rem) var(--space) clamp(1.7rem, 3.4vw, 3rem);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 17, 19, .94), rgba(12, 17, 19, .68) 44%, rgba(12, 17, 19, .18)),
    linear-gradient(0deg, rgba(12, 17, 19, .42), rgba(12, 17, 19, .02) 55%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=86") center / cover;
}

.agency-hero::after {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .24);
  pointer-events: none;
}

.agency-hero-copy,
.agency-hero-panel {
  position: relative;
  z-index: 1;
}

.agency-hero-copy {
  max-width: 820px;
}

.agency-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.agency-hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 1.35rem 0 0;
  color: rgba(245, 248, 246, .86);
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.5;
}

.agency-home .button-row {
  margin-top: 1.9rem;
}

.agency-home .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-width: 1px;
  font-size: .76rem;
  letter-spacing: .045em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.agency-home .button:hover {
  transform: translateY(-1px);
}

.agency-home .button.ghost {
  border-color: rgba(255, 255, 255, .68);
  color: #fff;
}

.agency-home .button.ghost:hover {
  background: #fff;
  color: var(--agency-ink);
}

.agency-hero-panel {
  display: grid;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(17, 24, 27, .72);
}

.agency-hero-panel div {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.agency-hero-panel div:last-child {
  border-bottom: 0;
}

.agency-hero-panel strong {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.agency-hero-panel span {
  display: block;
  margin-top: .4rem;
  color: rgba(245, 248, 246, .72);
  font-size: .82rem;
}

.agency-section-title {
  max-width: 880px;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.agency-section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  max-width: none;
}

.agency-section-title h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.9vw, 5.2rem);
  line-height: .93;
  letter-spacing: -.058em;
}

.agency-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) minmax(0, .95fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1rem;
}

.agency-system-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid var(--agency-line);
  background:
    linear-gradient(180deg, rgba(17, 24, 27, .02), rgba(17, 24, 27, .68)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1100&q=78") center / cover;
  color: #fff;
  text-decoration: none;
  transition: transform .24s ease, filter .24s ease, border-color .24s ease;
}

.agency-system-card:hover {
  transform: translateY(-5px);
  filter: saturate(1.07);
  border-color: rgba(255, 255, 255, .34);
  text-decoration: none;
}

.agency-system-card-large {
  grid-row: span 2;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(17, 24, 27, .04), rgba(17, 24, 27, .76)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1300&q=82") center / cover;
}

.agency-system-card-dark {
  background:
    linear-gradient(180deg, rgba(17, 24, 27, .02), rgba(17, 24, 27, .7)),
    url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1100&q=80") center / cover;
}

.agency-system-card span {
  margin-bottom: .65rem;
  color: #f28a58;
  font: 800 10px var(--agency-mono);
  letter-spacing: .06em;
}

.agency-system-card strong {
  max-width: 420px;
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.agency-system-card p {
  max-width: 430px;
  margin: .8rem 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
}

.agency-spec-strip {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--agency-line);
  border-bottom: 1px solid var(--agency-line);
}

.agency-spec-strip div {
  min-height: 128px;
  padding: 1.1rem var(--space);
  border-right: 1px solid var(--agency-line);
}

.agency-spec-strip div:last-child {
  border-right: 0;
}

.agency-spec-strip b {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -.025em;
}

.agency-spec-strip span {
  display: block;
  margin-top: .55rem;
  color: var(--agency-muted);
  font-size: .84rem;
  line-height: 1.42;
}

.agency-compose {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.agency-compose-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.agency-compose-media img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border: 1px solid var(--agency-line);
  background: #fff;
}

.agency-compose-media img:first-child {
  grid-column: 1 / -1;
  height: 360px;
}

.agency-compose-copy h2,
.agency-gate h2,
.agency-process h2,
.agency-inquiry h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.65rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.agency-compose-copy p,
.agency-gate-copy p,
.agency-inquiry p {
  max-width: 620px;
  color: var(--agency-muted);
  font-size: 1.02rem;
}

.agency-link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--agency-ink);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-decoration: none;
}

.agency-link i {
  color: var(--agency-accent);
}

.agency-link:hover {
  color: var(--agency-accent);
  text-decoration: none;
}

.agency-gate {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 7vw, 7rem) max(var(--space), calc((100% - 1420px) / 2));
  background: #1c2629;
  color: #fff;
}

.agency-gate-copy p {
  color: rgba(231, 237, 234, .78);
}

.agency-gate-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin: 1.4rem 0 0;
  color: rgba(241, 245, 243, .88);
  font: 800 10px var(--agency-mono);
}

.agency-gate-facts span {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
}

.agency-gate-facts i {
  color: #f28a58;
}

.agency-link-light {
  color: #fff;
}

.agency-gate-image {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(255, 255, 255, .025);
  overflow: hidden;
}

.agency-gate-image img {
  width: min(92%, 650px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .36));
  transition: transform .45s ease;
}

.agency-gate:hover img {
  transform: translateY(-6px) scale(1.02);
}

.agency-products .product-grid {
  gap: 1rem;
  background: transparent;
}

.agency-products .product-card {
  overflow: hidden;
  border: 1px solid var(--agency-line);
  transition: transform .24s ease, border-color .24s ease;
}

.agency-products .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 24, 27, .32);
}

.agency-products .product-card h3 {
  letter-spacing: -.035em;
}

.agency-products .card-actions button,
.agency-products .card-actions a {
  color: var(--agency-ink);
  font-weight: 800;
}

.agency-products .card-actions button:hover,
.agency-products .card-actions a:hover {
  color: var(--agency-accent);
}

.agency-realizations .inspiration-grid {
  gap: 1rem;
  background: transparent;
}

.agency-realizations .inspiration {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .24s ease, filter .24s ease;
}

.agency-realizations .inspiration:hover {
  transform: translateY(-4px);
  filter: saturate(1.06);
}

.agency-process {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) var(--space);
  border-top: 1px solid var(--agency-line);
}

.agency-process ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--agency-line);
}

.agency-process li {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: #fff;
  transition: background-color .2s ease;
}

.agency-process li:hover {
  background: #f8f8f5;
}

.agency-process b {
  color: var(--agency-accent);
  font: 800 1rem var(--agency-mono);
}

.agency-process span {
  font-weight: 800;
  line-height: 1.1;
}

.agency-inquiry {
  background: #e0e4e1;
}

.agency-inquiry form {
  border: 1px solid rgba(17, 24, 27, .14);
  background: rgba(255, 255, 255, .55);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.agency-inquiry input,
.agency-inquiry textarea {
  border-color: rgba(17, 24, 27, .18);
  background: rgba(255, 255, 255, .92);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.agency-inquiry input:focus,
.agency-inquiry textarea:focus {
  outline: none;
  border-color: var(--agency-accent);
  box-shadow: 0 0 0 3px rgba(200, 96, 50, .14);
}

.agency-home footer {
  background: #11181b;
  color: rgba(235, 240, 237, .88);
}

.agency-home footer a {
  text-decoration: none;
}

.agency-home footer a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .agency-hero,
  .agency-compose,
  .agency-gate {
    grid-template-columns: 1fr;
  }

  .agency-system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agency-system-card-large {
    grid-row: span 1;
    min-height: 340px;
  }

  .agency-spec-strip,
  .agency-process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .agency-home .topline {
    justify-content: center;
    min-height: 29px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .agency-home .topline span {
    display: none;
  }

  .agency-home .nav {
    min-height: 66px;
  }

  .agency-home .nav-actions {
    display: none;
  }

  .agency-home .nav nav.open {
    top: 95px;
    background: rgba(244, 244, 240, .98);
    border-top: 1px solid var(--agency-line);
    box-shadow: 0 18px 40px rgba(17, 24, 27, .1);
  }

  .agency-home .nav nav.open a {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(17, 24, 27, .08);
    font-weight: 800;
  }
}

@media (max-width: 760px) {
  .agency-hero {
    min-height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding-top: 3rem;
  }

  .agency-hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.75rem);
    line-height: .94;
  }

  .agency-hero-panel {
    display: none;
  }

  .agency-section-title-row {
    display: block;
  }

  .agency-system-grid,
  .agency-spec-strip,
  .agency-compose-media,
  .agency-process ol {
    grid-template-columns: 1fr;
  }

  .agency-system-card,
  .agency-system-card-large {
    min-height: 270px;
  }

  .agency-spec-strip div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--agency-line);
  }

  .agency-spec-strip div:last-child {
    border-bottom: 0;
  }

  .agency-compose-media img,
  .agency-compose-media img:first-child {
    height: 240px;
  }

  .agency-gate-image {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .agency-hero {
    min-height: 540px;
  }

  .agency-home .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .agency-hero::after {
    inset: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-system-card,
  .agency-gate-image img,
  .agency-products .product-card {
    transition: none !important;
  }
}
