@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

html { scroll-behavior: smooth; }
.agency-home {
  --paper: #eeeae1;
  --black: #151411;
  --accent: #ef9565;
  --line: #15141136;
  --mono: "DM Mono", monospace;
  --gutter: clamp(22px, 5vw, 86px);
  background: var(--paper);
  color: var(--black);
  color-scheme: light;
  font-family: Manrope, Arial, sans-serif;
}
.agency-home a { color: inherit; text-decoration: none; }
.agency-home :focus-visible { outline: 2px solid #ad512b; outline-offset: 5px; }
.frame { padding-inline: var(--gutter); }
.skip { position: fixed; z-index: 5; left: 15px; top: 15px; padding: 12px; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-bar {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  min-height: 71px;
  pointer-events: auto;
  background: var(--paper);
}
.wordmark { font-size: 29px; font-weight: 800; letter-spacing: -.1em; justify-self: start; line-height: 1; }
.wordmark span { margin-left: .13em; }
.site-bar nav, .bar-actions { display: flex; align-items: center; gap: clamp(14px, 2.15vw, 36px); font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-bar nav { justify-content: center; }
.bar-actions { justify-content: flex-end; }
.bar-actions button { padding: 9px 0; background: none; border: 0; color: inherit; font-weight: inherit; }
.site-bar a:not(.wordmark):hover, .bar-actions button:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { border: 1px solid var(--line); padding: 9px 12px; display: inline-flex; gap: 12px; }
.home-hero {
  position: relative;
  isolation: isolate;
  background: #171511;
  color: #f6f0e6;
  min-height: clamp(640px, calc(100svh - 71px), 1050px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-image, .home-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 55% 50%; z-index: -2; }
.home-hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,#100e0be0 0%,#110e0a86 40%,#15120d08 75%), linear-gradient(0deg,#110e0bc0,transparent 25%); }
.hero-content { padding-top: clamp(80px, 12vh, 158px); padding-bottom: 42px; }
.label, .hero-foot, .service-num { font: 400 .72rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.label { display: flex; align-items: center; gap: 11px; margin: 0 0 25px; }
.signal { width: 7px; height: 7px; background: #9e4825; flex: 0 0 7px; }
.home-hero .signal, .approach .signal { background: var(--accent); }
.home-hero h1, .agency-home main h2 {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 8.3vw, 9.5rem);
  line-height: .96;
  letter-spacing: -.09em;
  margin: 0;
}
.agency-home em { font: inherit; color: var(--accent); }
.hero-summary { max-width: 420px; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.55; margin: 29px 0 31px; color: #f5ede0; }
.action { display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 58px); padding: 13px 16px; min-height: 50px; font-size: 13px; font-weight: 800; border: 1px solid transparent; transition: background .23s, color .23s; }
.action span, .nav-contact span { display: inline-block; transition: transform .23s; }
.action:hover span, .nav-contact:hover span { transform: translate(3px,-2px); }
.action-light { background: var(--paper); color: var(--black) !important; }
.action-light:hover { background: var(--accent); }
.action-dark { background: var(--black); color: var(--paper) !important; }
.action-dark:hover { background: #6b351e; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eeeae14d; margin-inline: var(--gutter); padding: 14px 0; color: #fff4e4; }
.hero-foot a { display: grid; place-items: center; border: 1px solid #eeeae175; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; transition: background .2s; }
.hero-foot a:hover { background: #eeeae12d; }
.services { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 7vw, 115px); padding-block: clamp(75px, 11vw, 165px); }
.agency-home .section-head h2, .agency-home .approach h2 { font-size: clamp(2.8rem, 5.1vw, 6.3rem); line-height: 1; }
.section-head > p:last-child, .approach-copy > p:not(.label) { max-width: 400px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.65; margin: 25px 0 0; }
.service-list { border-top: 1px solid var(--line); }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list summary { cursor: pointer; display: grid; grid-template-columns: 35px 1fr 32px; align-items: center; gap: 12px; padding: 20px 0; list-style: none; font-size: clamp(17px, 2.1vw, 32px); font-weight: 700; letter-spacing: -.055em; transition: color .2s; }
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary:hover { color: #8c3d20; }
.service-num { color: #6d574b; padding-inline-start: 8px; }
.toggle { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; }
.toggle::before, .toggle::after { content: ""; grid-area: 1/1; width: 11px; height: 1px; background: currentColor; }
.toggle::after { transform: rotate(90deg); transition: transform .24s; }
details[open] .toggle { background: var(--black); color: var(--paper); }
details[open] .toggle::after { transform: rotate(0); }
.service-detail { padding: 0 26px 24px 47px; }
.service-detail p { margin: 0 0 17px; line-height: 1.55; max-width: 46ch; }
.service-detail ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service-detail li { padding: 5px 8px; border: 1px solid var(--line); font: .69rem/1.4 var(--mono); }
.approach { display: grid; grid-template-columns: 1.02fr .98fr; background: #1e1c17; color: var(--paper); }
.approach-image { position: relative; min-height: 340px; }
.approach-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.approach-copy { padding: clamp(65px, 8vw, 145px) var(--gutter); }
.approach-copy > p:not(.label) { color: #d5cec0; }
.contact { padding-block: clamp(86px, 14vw, 200px); background: #dfaa8b; }
.agency-home .contact h2 { font-size: clamp(3rem, 7.2vw, 8rem); margin-bottom: 34px; }
.agency-home .contact em { color: #7b331c; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 95px; font-size: 13px; }
#login-dialog { color-scheme: dark; }
#login-title { font: 400 38px/1.15 Georgia, serif; letter-spacing: -1px; margin: 0 0 12px; }
@media (max-width: 760px) {
  .site-bar { grid-template-columns: auto 1fr; gap: 10px; min-height: 62px; }
  .site-bar nav { display: none; }
  .site-bar .wordmark { font-size: 25px; }
  .nav-contact { padding: 8px; gap: 6px; }
  .home-hero { min-height: max(610px, calc(86svh - 62px)); }
  .home-hero::after { background: linear-gradient(90deg,#100d09d9,#110e0a36 100%), linear-gradient(0deg,#110e0bc0,transparent 28%); }
  .hero-image { object-position: 60% 50%; }
  .services, .approach { grid-template-columns: 1fr; }
  .service-detail { padding-right: 0; }
  .approach-image { min-height: min(70vw, 380px); }
}
@media (max-width: 390px) {
  .home-hero h1 { font-size: clamp(2.6rem, 13.4vw, 3.4rem); }
  .site-footer { flex-wrap: wrap; padding-block: 24px; }
  .hero-foot { font-size: .63rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: home-enter .72s cubic-bezier(.2,.65,.25,1) both; }
  @keyframes home-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agency-home *, .agency-home *::after { transition: none; }
}

.wordmark { display: inline-flex; align-items: baseline; isolation: isolate; }
.wordmark .mark-agency { margin-left: .13em; }
.wordmark .mark-period { color: var(--accent); margin-left: .015em; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 4;
  background: var(--accent);
  transform: scaleX(var(--read, 0));
  transform-origin: left;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0) scale(1.065);
    transition: transform .85s cubic-bezier(.2,.7,.25,1);
  }
  .hero-content { animation: none; }
  .hero-content > * { animation: home-enter .75s cubic-bezier(.2,.65,.25,1) both; }
  .hero-content > h1 { animation-delay: .08s; }
  .hero-content > .hero-summary { animation-delay: .16s; }
  .hero-content > .action { animation-delay: .24s; }
  @keyframes home-enter { from { opacity: .55; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .home-hero .signal { animation: signal-in .85s ease-out .4s both; }
  @keyframes signal-in { from { box-shadow: 0 0 0 0 #ef956590; } to { box-shadow: 0 0 0 12px #ef956500; } }
  .hero-foot a:hover { transform: translateY(3px); }
  .hero-foot a { transition: transform .25s, background .25s; }
  .motion-ready [data-reveal]:not(.in-view) { opacity: .45; transform: translateY(24px); }
  .motion-ready [data-reveal] { transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.25,1); }
  .motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
  .service-list details[open] .service-detail { animation: detail-enter .32s ease-out both; }
  @keyframes detail-enter { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
  .service-list summary > span:nth-child(2), .service-list .toggle { transition: transform .25s, background .25s, color .25s; }
  .service-list summary:hover > span:nth-child(2) { transform: translateX(4px); }
  .service-list summary:hover .toggle { transform: scale(1.09); }
  .approach-image { overflow: hidden; }
  .approach-image img { transition: transform 1s cubic-bezier(.2,.7,.25,1); }
  .approach-image:hover img { transform: scale(1.045); }
  .motion-ready .approach-image:not(.in-view) img { transform: scale(1.085); }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
}

.site-bar { position: sticky; top: 0; z-index: 3; }
.agency-home section[id] { scroll-margin-top: 74px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    transform: translate3d(var(--hero-x, 0px), calc(var(--hero-y, 0px) + var(--hero-scroll, 0px)), 0) scale(1.18);
    transition: transform .5s ease-out;
  }
  .home-hero .hero-foot a {
    animation: scroll-cue 1.9s ease-in-out 3 both;
  }
  @keyframes scroll-cue {
    0%, 60%, 100% { transform: translateY(0); }
    28% { transform: translateY(5px); }
  }
  .motion-ready [data-reveal]:not(.in-view) { opacity: 0; transform: translateY(48px); }
  .motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
  .motion-ready .approach-image[data-reveal] {
    opacity: 1;
    transform: none;
  }
  .motion-ready .approach-image img {
    clip-path: inset(0);
    transform: scale(1);
    transition: clip-path 1s cubic-bezier(.22,.68,.18,1), transform 1.25s cubic-bezier(.22,.68,.18,1);
  }
  .motion-ready .approach-image:not(.in-view) img {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.12);
  }
  .motion-ready .approach-image.in-view:hover img { transform: scale(1.06); }

  .service-list summary {
    background: linear-gradient(90deg, #e2b19b55, #e2b19b00) no-repeat;
    background-size: 0 100%;
    transition: background-size .35s, color .22s;
  }
  .service-list summary:hover, .service-list summary:focus-visible, .service-list details[open] summary {
    background-size: 100% 100%;
  }
  .service-list details[open] .service-detail li {
    animation: detail-enter .38s ease-out both;
  }
  .service-detail li:nth-child(2) { animation-delay: .05s !important; }
  .service-detail li:nth-child(3) { animation-delay: .1s !important; }
  .service-detail li:nth-child(4) { animation-delay: .15s !important; }
  .service-detail li:nth-child(5) { animation-delay: .2s !important; }
  .action { transition: background .23s, color .23s, transform .23s, box-shadow .23s; }
  .action:hover { transform: translateY(-3px); box-shadow: 0 6px 0 #9f482f80; }
  .action:active { transform: translateY(0); box-shadow: none; }
}

.type-mask { display: block; }
.type-mask > span { display: block; }
.pointer-halo { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .type-mask { overflow: hidden; padding: 0 .10em .17em 0; margin: 0 -.10em -.17em 0; }
  .hero-content > h1 { animation: none; }
  .home-hero h1 .type-mask > span { animation: type-rise 1.05s cubic-bezier(.18,.72,.21,1) both; }
  .home-hero h1 .type-mask:nth-child(2) > span { animation-delay: .14s; }
  @keyframes type-rise {
    from { transform: translateY(112%); filter: blur(7px); }
    to { transform: translateY(0); filter: blur(0); }
  }
  .motion-ready [data-reveal] .type-mask > span {
    transition: transform .95s cubic-bezier(.18,.72,.21,1), filter .85s ease;
  }
  .motion-ready [data-reveal] .type-mask:nth-child(2) > span { transition-delay: .12s; }
  .motion-ready [data-reveal]:not(.in-view) .type-mask > span {
    transform: translateY(112%);
    filter: blur(6px);
  }
  .motion-ready :is(.section-head, .approach-copy, .contact h2)[data-reveal]:not(.in-view) { opacity: 1; transform: none; }
  .motion-ready :is(.section-head, .approach-copy) > p { transition: opacity .65s ease .18s, transform .65s ease .18s; }
  .motion-ready :is(.section-head, .approach-copy):not(.in-view) > p { opacity: 0; transform: translateY(14px); }
  .agency-home section[id] { scroll-margin-top: 110px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pointer-halo {
    display: block;
    position: fixed;
    inset: 0 auto auto 0;
    width: 36px;
    height: 36px;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%,-50%);
    transition: opacity .2s ease;
  }
  .pointer-halo::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #b95a32;
    background: #ef956515;
    transition: transform .24s ease, background .24s ease, border-color .24s ease;
  }
  .pointer-halo.is-visible { opacity: 1; }
  .pointer-halo.is-dark::before { border-color: #ef9565; }
  .pointer-halo.is-active::before { transform: scale(1.48); background: #ef95652e; }
  .pointer-halo.is-pressed::before { transform: scale(.78); }
}

.agency-home #login-dialog {
  color-scheme: light;
  width: min(500px, calc(100% - 32px));
  padding: clamp(30px, 6vw, 56px);
  color: var(--black);
  background: var(--paper);
  border: 1px solid #15141133;
  box-shadow: 0 28px 90px #100e0a75;
}
#login-dialog::backdrop { background: #151411a0; backdrop-filter: blur(13px); }
#login-dialog .close {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  color: var(--black);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
#login-dialog .close:hover { background: var(--black); color: var(--paper); }
#login-dialog .label { padding-right: 34px; }
#login-dialog #login-title { font: 700 clamp(2.8rem, 8vw, 4.25rem)/.98 Manrope, Arial, sans-serif; letter-spacing: -.085em; }
#login-dialog #login-title em { color: #984426; }
#login-dialog .intro { color: #564b43; font-size: 15px; line-height: 1.55; margin: 16px 0 24px; }
#login-dialog label { color: var(--black); font: .72rem/1.5 var(--mono); }
#login-dialog input {
  padding: 13px;
  min-height: 48px;
  color: var(--black);
  background: #ffffff55;
  border: 1px solid #15141155;
  font-size: 16px;
}
#login-dialog input:focus { outline: 2px solid #9b4828; outline-offset: 2px; }
#login-dialog input::placeholder { color: #655850; }
#login-dialog .submit {
  min-height: 50px;
  margin-top: 16px;
  background: var(--black);
  color: var(--paper);
  font-weight: 800;
  font-size: 13px;
  transition: background .2s;
}
#login-dialog .submit:hover:not(:disabled) { background: #713720; }
#login-dialog .submit:disabled { opacity: .65; cursor: wait; }
#login-dialog .submit span { transition: transform .2s; }
#login-dialog .submit:hover span { transform: translate(3px,-2px); }
#login-dialog .status { color: #873b21; }
@media (prefers-reduced-motion: no-preference) {
  #login-dialog[open] { animation: login-enter .42s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes login-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  #login-dialog * { transition: none; }
}

.site-footer { flex-wrap: wrap; padding-block: 22px; }
.footer-cities { font: .72rem/1.5 var(--mono); }

/* Overlapping masks soften content progressively towards the top edge. */
.scroll-glass { display: none; }
@supports (backdrop-filter: blur(1px)) and (mask-image: linear-gradient(#000, transparent)) {
  .agency-home.has-scrolled .scroll-glass {
    display: grid;
    position: fixed;
    inset: 0 0 auto;
    height: 160px;
    z-index: 2;
    pointer-events: none;
  }
  .scroll-glass i { grid-area: 1 / 1; }
  .scroll-glass i:nth-child(1) { backdrop-filter: blur(1px); mask-image: linear-gradient(transparent 48%, #000 66% 82%, transparent); }
  .scroll-glass i:nth-child(2) { backdrop-filter: blur(2px); mask-image: linear-gradient(transparent 31%, #000 48% 66%, transparent 84%); }
  .scroll-glass i:nth-child(3) { backdrop-filter: blur(4px); mask-image: linear-gradient(transparent 14%, #000 31% 48%, transparent 68%); }
  .scroll-glass i:nth-child(4) { backdrop-filter: blur(8px); mask-image: linear-gradient(transparent, #000 14% 31%, transparent 51%); }
  .scroll-glass i:nth-child(5) { backdrop-filter: blur(16px); mask-image: linear-gradient(#000 0% 15%, transparent 37%); }
  .agency-home.has-scrolled .site-bar { background: #eeeae1bd; }
  @media (max-width: 760px) {
    .agency-home.has-scrolled .scroll-glass { height: 122px; }
  }
}

.agency-home { font-variant-emoji: text; }

.heading-period { color: var(--accent); }

#hero-globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.home-hero.has-globe { background: #18110e; }
.home-hero.has-globe .hero-image { visibility: hidden; }
.home-hero.has-globe::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -3;
  background: radial-gradient(ellipse at 78% 42%, #552a1c 0%, transparent 58%),
              radial-gradient(ellipse at 12% 92%, #392017 0%, transparent 58%),
              #150e0b;
}
.home-hero.has-globe::after {
  background: linear-gradient(90deg, #120b08d9 0%, #120b0880 39%, transparent 78%),
              linear-gradient(0deg, #120b08c7, transparent 28%);
}
.hero-controls { display: flex; align-items: center; gap: 9px; }
.globe-toggle {
  display: grid;
  place-items: center;
  border: 1px solid #eeeae175;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: inherit;
  background: transparent;
}
.globe-toggle:hover { background: #eeeae12d; }
.globe-toggle[hidden] { display: none; }
.globe-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .home-hero.has-globe::before { animation: ambient-drift 28s ease-in-out infinite alternate; }
  .home-hero.has-globe.globe-paused::before { animation-play-state: paused; }
}
@media (max-width: 760px) {
  .home-hero.has-globe::after {
    background: linear-gradient(90deg, #120b08c9, #120b0826),
                linear-gradient(0deg, #120b08e0, transparent 32%);
  }
}
