:root {
    --agency-ivory: #f7f3ea;
    --agency-ink: #18140f;
    --agency-ochre: #795318;
    --agency-rule: #d9c9a9;
    --agency-edge: clamp(1.25rem, 6vw, 7rem);
}
.agency-section { position: relative; isolation: isolate; padding: clamp(3.5rem, 8vw, 8rem) var(--agency-edge); }
.agency-section h2 { font-size: clamp(2.9rem, 5.6vw, 6.5rem); }
.agency-light { background: var(--agency-ivory); color: var(--agency-ink); color-scheme: light; }
.agency-light :is(.eyebrow,em) { color: var(--agency-ochre); }
.agency-light :focus-visible { outline-color: var(--agency-ochre); }
.agency-light .button.outline { color: var(--agency-ink); border-color: var(--agency-ochre); }
.agency-light .button.outline:hover { background: #ebddc2; }
.agency-dark { background: #11100d; color: #f7f3ea; color-scheme: dark; }
.agency-section [id],section[id] { scroll-margin-top: 1rem; }
.site-header nav a[aria-current="page"] { color: #ebca80; }
.agency-intro,.agency-service-preview,.agency-work-preview,.agency-advantage,.agency-contact {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 6rem); align-items: center;
}
.agency-advantage { grid-template-columns: .85fr 1.15fr; }
.agency-lead { max-width: 39rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.agency-photo,.agency-device { margin: 0; }
.agency-photo img { display: block; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; }
.agency-photo figcaption,.agency-device figcaption { font-size: .73rem; color: #635541; margin-top: .55rem; }
.agency-values,.agency-advantages { margin-bottom: 0; }
.agency-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.agency-values > div,.agency-advantages > div { border-top: 1px solid var(--agency-rule); padding-top: .65rem; }
.agency-values dt,.agency-advantages dt { font-weight: 750; }
.agency-values dd,.agency-advantages dd { margin: .3rem 0 .9rem; font-size: .9rem; color: #594b39; }
.agency-service-list { list-style: none; margin: 0; padding: 0; }
.agency-service-list li:first-child { border-top: 1px solid #61513a; }
.agency-service-list li { border-bottom: 1px solid #61513a; }
.agency-service-list a { display: block; padding: .65rem .2rem; color: #f9ebd1; text-decoration: none; font: 1.25rem/1.2 var(--display); transition: padding .2s ease; }
.agency-service-list a:hover { padding-left: .65rem; color: #ebca80; }
.agency-ribbon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; overflow: clip; height: clamp(3.5rem, 10vw, 9rem); opacity: .43; pointer-events: none; }
.agency-ribbon svg { width: 100%; height: 100%; }
.agency-service-preview,.agency-contact,.agency-page-hero { padding-bottom: clamp(5.4rem, 12vw, 11rem); }
.agency-work-tile {
    display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1rem, 3vw, 2.5rem);
    min-height: clamp(15rem, 31vw, 28rem); background: linear-gradient(110deg,#8b281edc,#471a15e0),url(signal.webp) center/cover;
    color: #fff2d7; text-decoration: none;
}
.agency-work-tile strong,.agency-device-art strong { font: 900 clamp(2.4rem,9vw,9rem)/.75 var(--body); letter-spacing: -.087em; }
.agency-work-tile small { text-decoration: underline; text-underline-offset: .25rem; }
.agency-process { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; margin: 2.5rem 0 0; padding: 0; gap: 1.5rem 2rem; }
.agency-process li { border-top: 1px solid #786749; padding-top: 1.2rem; }
.agency-process h3 { color: #ebca80; margin: 0 0 .5rem; }
.agency-process p { margin: 0; }
.agency-contact { align-items: start; }
.agency-forms { min-width: 0; }
.agency-form-panel { background: #fff; color: #201912; color-scheme: light; border: 1px solid #b19362; margin-bottom: .7rem; }
.agency-form-panel > summary,.agency-service-detail > summary { padding: .9rem 1.1rem; font-weight: 750; cursor: pointer; }
.agency-form-panel :is(.jh-form,.jh-flash) { margin: 0; padding: 0 1.15rem 1.15rem; }
.agency-form-panel .jh-form :is(input:not([type=checkbox],[type=hidden]),textarea,select) { background: #fff; color: #21170d; }
.agency-form-panel :focus-visible { outline-color: var(--agency-ochre); }
.agency-form-panel .jh-flash { margin: .45rem 1.15rem .8rem; padding: .4rem .65rem; }
.agency-page-hero h1 { font-size: clamp(3.65rem, 8vw, 9rem); }
.agency-service-directory,.agency-portfolio { max-width: 92rem; margin-inline: auto; }
.agency-service-detail { border-top: 1px solid #b6a17a; }
.agency-service-detail:last-child { border-bottom: 1px solid #b6a17a; }
.agency-service-detail > summary { font: 500 clamp(1.6rem, 3.15vw, 3.4rem)/1.08 var(--display); padding-inline: 0; }
.agency-service-detail[open] > summary { color: var(--agency-ochre); }
.agency-service-content { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem,4vw,4rem); padding: 1rem 0 2rem; }
.agency-service-content p:first-child { margin-top: 0; }
.agency-example { background: #fffaf0; border: 1px solid var(--agency-rule); }
.agency-example img { display: block; width: 100%; max-height: 17rem; object-fit: cover; }
.agency-example details { padding: .7rem 1rem; }
.agency-example summary,.agency-case-detail summary { cursor: pointer; font-weight: 700; }
.agency-case,.agency-case-notice { border-bottom: 1px solid #b6a17a; padding-bottom: 2rem; margin-bottom: 2.5rem; }
.agency-case { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,4vw,4rem); }
.agency-case h2,.agency-case-notice h2 { font-size: clamp(2.8rem,4.7vw,5.5rem); }
.agency-case-detail { margin-top: 1.5rem; }
.agency-device-frame { width: 100%; overflow: hidden; border: 6px solid #1b1814; border-radius: 12px; background: #1b1814; box-shadow: 0 12px 29px #281b152c; transition: width .35s ease; margin: auto; }
.agency-device-frame img { width: 100%; display: block; }
.agency-device[data-device="mobile"] .agency-device-frame { width: min(100%, 175px); border-radius: 19px; }
.agency-device-bar { color: #e0bd74; padding: .18rem .45rem; font-size: .64rem; }
.agency-device-art { min-height: clamp(11rem, 25vw, 22rem); display: grid; align-content: center; gap: 1rem; padding: 1rem; color: #fff4dd; background: linear-gradient(110deg,#8c291cda,#591a12d8),url(signal.webp) center/cover; }
.agency-device-art strong { font-size: clamp(2.45rem,6vw,7rem); }
[data-device="mobile"] .agency-device-art { min-height: 13rem; }
[data-device="mobile"] .agency-device-art strong { font-size: 2rem; }
.agency-device-controls { display: flex; gap: .45rem; margin-top: 1rem; }
.agency-device-controls button { padding: .5rem .8rem; min-height: 44px; border: 1px solid #9e8051; background: transparent; color: #241b10; }
.agency-device-controls button[aria-pressed="true"] { background: #231b12; color: #fff3d9; }
@media (max-width: 760px) {
    .agency-intro,.agency-service-preview,.agency-work-preview,.agency-advantage,.agency-contact,.agency-service-content,.agency-case { grid-template-columns: 1fr; }
    .agency-advantage > figure { grid-row: 2; }
    .agency-process { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .agency-photo img { aspect-ratio: 1.18; }
}
@media (max-width: 370px) {
    .agency-values { grid-template-columns: 1fr; }
}
.agency-device-capture[data-device="desktop"] [data-capture="mobile"],
.agency-device-capture[data-device="mobile"] [data-capture="desktop"] { display: none; }
.agency-device-capture[data-device="mobile"] .agency-device-frame { width: min(100%, 235px); }
.agency-binti-tile { display: block; border: 1px solid var(--agency-rule); background: #fffaf0; text-decoration: none; color: var(--agency-ink); }
.agency-binti-tile img { display: block; width: 100%; height: auto; }
.agency-binti-tile > span { display: grid; gap: .2rem; padding: .85rem 1rem; }
.agency-binti-tile small { color: var(--agency-ochre); }
.agency-binti-tile strong { font: 1.45rem/1.15 var(--display); }
.agency-binti-tile:hover strong { text-decoration: underline; text-underline-offset: .2rem; }
.agency-social-gallery { margin: 0; min-width: 0; }
.agency-social-gallery ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.agency-social-gallery a { display: block; color: #2b2115; text-decoration: none; }
.agency-social-gallery a:hover span { text-decoration: underline; }
.agency-social-gallery img { aspect-ratio: 3/4; width: 100%; height: auto; object-fit: cover; display: block; background: #201a11; }
.agency-social-gallery span,.agency-social-gallery figcaption { display: block; margin-top: .45rem; font-size: .78rem; line-height: 1.35; }
.agency-social-gallery figcaption { color: #635541; margin-top: .9rem; }
.agency-contact-diamond {
    display: grid; position: relative; isolation: isolate; place-items: center; width: min(100%, 28rem);
    margin: .45rem auto -.75rem; overflow: clip; pointer-events: none;
}
.agency-contact-diamond img {
    width: 100%; height: auto; display: block; mix-blend-mode: screen;
    mask-image: radial-gradient(ellipse,#000 49%,transparent 74%);
}
@media (max-width: 760px) {
    .agency-contact-diamond { width: min(70%, 17rem); margin: .25rem auto -1rem; }
}
.agency-whatsapp{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:15;color:#20190e}
.agency-whatsapp summary{width:54px;height:54px;margin-left:auto;border-radius:50%;list-style:none;display:grid;place-items:center;color:#fff;background:#146c42;border:1px solid #bfead2;box-shadow:0 4px 18px #0005;cursor:pointer}
.agency-whatsapp summary::-webkit-details-marker{display:none}
.agency-whatsapp-panel{position:absolute;bottom:66px;right:0;width:min(340px,calc(100vw - 2rem));background:#fcf7ed;padding:1rem;border:1px solid #ad8e54;box-shadow:0 8px 30px #0005;max-height:calc(100dvh - 100px);overflow:auto}
.agency-whatsapp-panel p{margin:.8rem 0 1rem}.agency-whatsapp-panel :focus-visible{outline-color:#815c20}.agency-whatsapp-brand .brand{font-size:1.4rem}.agency-whatsapp-brand .brand small{color:#795318}
.agency-form-single .jh-form { padding: 1.1rem; }
.brand-intro {
    z-index: 25; overflow: hidden; isolation: isolate;
    background: radial-gradient(ellipse at 50% 46%,#2d2011 0%,#0b0907 51%,#080807 100%);
    animation: agency-intro-exit 2.45s both;
}
.brand-intro .intro-ribbons { position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none; }
.intro-ribbon {
    fill:none;stroke:url(#intro-metal);stroke-linecap:round;stroke-dasharray:2200;stroke-dashoffset:2200;
    animation: agency-ribbon-draw 1.45s cubic-bezier(.19,.9,.25,1) both;
}
.intro-ribbon-first { stroke-width:27; opacity:.8; }
.intro-ribbon-second { stroke-width:3; opacity:.75; animation-delay:.1s; }
.brand-intro .brand-intro-mark {
    padding:1.15rem 1.5rem; animation:agency-intro-mark .95s .22s cubic-bezier(.19,.9,.25,1) both;
    background:radial-gradient(ellipse,#110d08 25%,transparent 76%);
}
.brand-intro .brand-intro-mark strong { color:#f8efdc; }
.brand-intro .brand-intro-mark p { font-size:.76rem;letter-spacing:.17em;text-transform:uppercase; }
.brand-intro button { z-index:1; }
@keyframes agency-ribbon-draw { to { stroke-dashoffset:0; } }
@keyframes agency-intro-mark {
    from { opacity:0;clip-path:inset(45% 12% 45%);transform:translateY(13px) scale(.96); }
    to { opacity:1;clip-path:inset(0);transform:none; }
}
@keyframes agency-intro-exit { 0%,78%{opacity:1}100%{opacity:0} }

.agency-social-case {
    background:#0b0b0a;
    color:#f8f0de;
    border:1px solid #57472b;
    padding:clamp(1.15rem,3.7vw,3.4rem);
}
.agency-social-case :is(.eyebrow,.agency-social-gallery figcaption) { color:#d8bb7c; }
.agency-social-case :is(.agency-social-gallery a,.button.outline) { color:#f8f0de; }
.agency-social-case .button.outline { border-color:#b49258; }
.agency-social-case .button.outline:hover { background:#372c19; }
.agency-social-case :focus-visible { outline-color:#e8c777; }
.agency-form-single {
    background:#1a160f;
    color:#fbf0db;
    color-scheme:dark;
    border-color:#806637;
    box-shadow:0 10px 28px #0002;
}
.agency-form-single .jh-form :is(input:not([type=checkbox],[type=hidden]),textarea,select) {
    background:#100e0a;
    color:#fff2d9;
    border-color:#9a7e45;
}
.agency-form-single .jh-form fieldset { border-color:#8a7145; }
.agency-form-single :focus-visible { outline-color:#f0d28c; }
.agency-form-single input[type=checkbox] { accent-color:#e8ca78; }
.agency-form-single .jh-form button:disabled { opacity:.58; cursor:default; }
