:root {
    --paper: #f5f3ef;
    --ink: #14151a;
    --muted: #535560;
    --line: #d8d6d0;
    --blue: #222bdc;
    --blue-deep: #171db3;
    --orange: #ff6a3e;
    --mono: "IBM Plex Mono", monospace;
    --header-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Readex Pro", Tahoma, Arial, sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
::selection { background: var(--blue); color: white; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.wrap { width: min(100% - 96px, 1320px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 5; inset: 12px 12px auto auto; padding: 8px 18px; background: white; }

.header { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { width: fit-content; display: inline-flex; align-items: center; }
.brand img { object-fit: contain; }
nav { display: flex; gap: clamp(20px, 3vw, 46px); align-self: stretch; }
nav a { display: flex; align-items: center; position: relative; font-size: .88rem; font-weight: 500; }
nav a:hover, nav a[aria-current] { color: var(--blue); }
nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--blue); }
.mobile-contact { display: none; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; width: fit-content; min-height: 50px; padding: 10px 19px; border: 1px solid transparent; font-size: .87rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.button span, .text-link span { font-family: Arial, sans-serif; font-size: 1.2em; line-height: 1; }
.header-cta { justify-self: end; border-color: var(--ink); min-height: 42px; }
.header-cta:hover { background: var(--ink); color: white; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-deep); }
.text-link { display: inline-flex; align-items: center; width: fit-content; gap: 8px; font-size: .86rem; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(30px, 5vw, 86px); padding-block: clamp(34px, 5vw, 76px); }
.hero-copy { animation: arrive .7s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; }
.dot { width: 8px; height: 8px; background: var(--orange); display: inline-block; flex: none; }
.hero h1 { margin-block: 23px; font-size: clamp(3rem, 5.7vw, 6rem); line-height: 1.14; letter-spacing: -.04em; font-weight: 700; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 34ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 25px; margin-top: 28px; }
.hero-media { position: relative; overflow: hidden; min-width: 0; background: #121745; animation: arrive .8s .08s ease-out both; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1.16; object-fit: cover; object-position: 52% center; }
.hero-media figcaption { position: absolute; inset: auto 16px 16px auto; background: var(--paper); color: var(--ink); padding: 5px 11px; font-size: .72rem; font-weight: 500; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ribbon { background: var(--blue); color: white; }
.ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 15px; font-size: clamp(.9rem, 2.25vw, 1.9rem); font-weight: 700; }
.ribbon i { color: #b8bcff; font-family: Arial, sans-serif; font-size: .8em; font-style: normal; }

.section { padding-block: clamp(60px, 8vw, 115px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px 35px; margin-bottom: clamp(25px, 4vw, 50px); }
.section-head h2, .contact h2 { margin-top: 10px; font-size: clamp(2rem, 4.15vw, 4.1rem); letter-spacing: -.045em; }
.section-head > p { max-width: 37ch; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; align-items: start; padding: clamp(18px, 2.25vw, 32px); min-height: 266px; border-block-start: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background .2s; }
.service-card:hover { background: #edecfc; }
.service-card h3, .steps h3 { font-size: clamp(1.05rem, 1.55vw, 1.45rem); }
.service-card p, .steps p { margin-block: 10px 19px; color: var(--muted); font-size: .91rem; }
.service-card a { margin-top: auto; color: var(--blue); }
.service-icon { display: block; position: relative; width: 42px; height: 42px; margin-bottom: 22px; color: var(--blue); }
.service-icon::before, .service-icon::after { content: ""; position: absolute; display: block; border: 2px solid currentColor; }
.service-icon.design::before { inset: 7px; transform: rotate(45deg); }
.service-icon.design::after { inset: 16px; background: currentColor; border-radius: 50%; }
.service-icon.booth::before { inset: 4px 3px 7px; transform: skewY(-12deg); }
.service-icon.booth::after { inset: 15px 14px 9px 8px; transform: skewY(-12deg); border-bottom: 0; }
.service-icon.sign::before { inset: 5px 1px 13px; border-radius: 14px; }
.service-icon.sign::after { height: 11px; inset: auto 20px 2px auto; border-width: 0 2px 0 0; }
.service-icon.print::before { inset: 2px 8px 12px 13px; }
.service-icon.print::after { inset: 12px 14px 2px 7px; background: var(--paper); }

.work { background: #171821; color: #fbfaf7; }
.light { border-color: #6e7080; white-space: nowrap; }
.light:hover { background: white; color: var(--ink); border-color: white; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project { min-width: 0; background: #232431; }
.project a { display: block; height: 100%; }
.project-media { overflow: hidden; background: #30314b; }
.project-media img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; transition: transform .5s ease; }
.project a:hover img { transform: scale(1.055); }
.project-copy { position: relative; padding: clamp(16px, 2vw, 26px); padding-inline-end: 43px; }
.project-copy h2 { margin-top: 7px; font-size: clamp(1.1rem, 2vw, 1.8rem); overflow-wrap: anywhere; }
.project-copy p { color: #c8cad9; font-size: .84rem; }
.project-copy span { position: absolute; inset: 19px auto auto 19px; color: #bec3ff; }
.work-intro { color: #c8cad9; margin-top: 13px; max-width: 60ch; }
.work .section-head:last-child { margin-bottom: 0; }
.gallery-head { color: white; background: var(--blue); }
.gallery-heading { padding-block: clamp(45px, 7vw, 95px); animation: arrive .6s ease-out both; }
.gallery-heading h1 { font-size: clamp(2.65rem, 6.5vw, 6.1rem); letter-spacing: -.04em; margin-block: 14px; overflow-wrap: anywhere; }
.gallery-heading > p:not(.eyebrow) { max-width: 60ch; color: #eff0ff; }
.gallery-body { padding-block: clamp(30px, 6vw, 78px); min-height: 320px; }
.gallery-body .project { color: #fff; }
.project-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 70ch; margin-bottom: 28px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
.gallery-photo { position: relative; display: block; overflow: hidden; background: #dfdce1; }
.gallery-photo:first-child { grid-column: 1 / -1; }
.gallery-photo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; transition: transform .4s ease; }
.gallery-photo:first-child img { max-height: min(68vh, 720px); }
.gallery-photo:hover img { transform: scale(1.035); }
.gallery-photo span { position: absolute; inset: auto auto 10px 10px; background: var(--paper); color: var(--blue); padding: 4px 9px; }
.gallery-empty { display: grid; justify-items: start; align-content: start; gap: 14px; }
.gallery-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.photo-dialog { margin: auto; padding: 13px; max-width: min(94vw, 1120px); max-height: 94vh; background: #171821; color: white; border: 1px solid #5f6074; }
.photo-dialog[open] { animation: arrive .25s ease-out both; }
.photo-dialog::backdrop { background: rgb(15 16 31 / .88); }
.dialog-frame { display: grid; gap: 10px; }
.dialog-frame img { margin-inline: auto; max-height: 74vh; object-fit: contain; }
.dialog-frame p { color: #e9e9fa; padding-inline: 8px; }
.dialog-controls, .dialog-controls > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; justify-content: space-between; }
.dialog-controls button { background: #303150; color: white; border: 1px solid #666784; padding: 5px 10px; cursor: pointer; }
.dialog-controls [data-counter] { direction: ltr; font: 500 .8rem var(--mono); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .15s; }
::view-transition-new(root) { animation-duration: .25s; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; }
.step-number { font: 600 1.3rem var(--mono); color: var(--blue); display: inline-block; margin-bottom: 20px; }
.steps p { margin-bottom: 0; }
.contact { background: var(--blue); color: white; }
.contact-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 8vw, 95px); padding-block: clamp(54px, 7vw, 100px); }
.contact p:not(.eyebrow) { margin-block: 12px 22px; color: #efefff; }
.white { background: white; color: var(--blue-deep); }
.white:hover { background: #e0e2ff; }
.contact-details { font-style: normal; }
.contact-details a { display: grid; grid-template-columns: 4.8rem 1fr auto; align-items: center; gap: 10px; min-height: 58px; border-top: 1px solid #a6abff; padding-block: 6px; }
.contact-details a:last-child { border-bottom: 1px solid #a6abff; }
.contact-details a:hover { background: #1b22ba; }
.contact-details span { color: #e5e7ff; font-size: .82rem; }
.contact-details bdi { width: fit-content; overflow-wrap: anywhere; font: 500 .94rem var(--mono); }
.contact-details strong { font-size: .9rem; font-weight: 500; }
.contact-details i { font-style: normal; }
.footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.footer p { font: 500 .79rem var(--mono); color: var(--muted); }

.reveal.in-view { animation: arrive .55s ease-out both; }
.service-card:nth-child(2), .project:nth-child(2), .steps li:nth-child(2) { animation-delay: .07s; }
.service-card:nth-child(3), .project:nth-child(3), .steps li:nth-child(3) { animation-delay: .14s; }
.service-card:nth-child(4) { animation-delay: .21s; }

@media (max-width: 1050px) {
    .wrap { width: calc(100% - 56px); }
    .hero { gap: 25px; }
}

@media (max-width: 780px) {
    :root { --header-height: 66px; }
    .wrap { width: calc(100% - 36px); }
    .header-inner { gap: 12px; grid-template-columns: 1fr auto; }
    .header .brand img { width: 48px; height: auto; }
    .header-cta { display: none; }
    .mobile-contact { display: flex; }
    .menu-toggle:not([hidden]) { display: grid; place-content: center; gap: 5px; background: transparent; border: 1px solid var(--line); width: 44px; height: 42px; cursor: pointer; }
    .menu-toggle span:not(.sr-only) { display: block; background: var(--ink); width: 18px; height: 2px; }
    nav { grid-column: 1 / -1; gap: 8px 18px; flex-wrap: wrap; padding: 6px 0 14px; }
    .header-inner:has(.menu-toggle:not([hidden])) nav { position: absolute; inset: 100% 0 auto; background: var(--paper); padding: 8px 18px 16px; border-bottom: 1px solid var(--line); }
    nav a { min-height: 40px; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero h1 { font-size: clamp(2.65rem, 9vw, 4.8rem); margin-block: 15px; }
    .hero-media img { aspect-ratio: 1.45; }
    .hero-actions { margin-top: 19px; }
    .section-head { flex-wrap: wrap; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .project-grid, .steps { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 225px; padding: 13px; }
    .service-card a, .service-card p { font-size: .78rem; }
    .service-icon { margin-bottom: 12px; }
    .ribbon-inner { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
