@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f4;
  --ink: #171711;
  --muted: #56554c;
  --line: #dfddd3;
  --yellow: #ffdc21;
  --red: #a82c1d;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 10px auto auto 10px; padding: 12px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 85px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; justify-self: start; text-decoration: none; }
.wordmark { display: block; position: relative; overflow: hidden; width: 115px; height: 47px; }
.wordmark img { position: absolute; max-width: none; width: 168px; inset: 50% auto auto 50%; transform: translate(-50%, -50%); mix-blend-mode: multiply; }
.brand-label { font-size: 9px; text-transform: uppercase; letter-spacing: .19em; font-weight: 750; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 46px); }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 620; padding-block: 10px; }
.main-nav a:hover, .text-link:hover { color: var(--red); }
.header-action { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 14px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 720; line-height: 1.15; text-decoration: none; transition: background-color .18s, border-color .18s; }
.button span, .text-link span { font-size: 17px; line-height: 1; }
.button-outline { border-color: #bbb9ae; }
.button-outline:hover { background: #eeece1; border-color: #9a988c; }
.button-primary { background: var(--yellow); border-color: #e9c511; }
.button-primary:hover { background: #f3ce0e; border-color: #cba709; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; text-decoration: none; padding-block: 13px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 28px; padding-block: 40px 50px; }
.hero-copy { padding-block: 32px; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--red); font-size: 12px; font-weight: 780; line-height: 1.4; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 18px; height: 2px; flex: none; background: currentColor; border-radius: 1px; }
.hero h1 { margin-block: 20px 26px; font-size: clamp(50px, 6.1vw, 89px); line-height: .98; letter-spacing: -.074em; font-weight: 790; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 71%, #ffe35b 71%, #ffe35b 96%, transparent 96%); }
.hero-intro { max-width: 43ch; color: var(--muted); font-size: clamp(16px, 1.58vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px; margin-top: 28px; }

.hero-art { min-width: 0; overflow: hidden; isolation: isolate; position: relative; aspect-ratio: 1.085; border-radius: 22px; background: radial-gradient(ellipse at 54% 49%, #fffef9 20%, #fff7cd 49%, transparent 76%), radial-gradient(ellipse at 90% 98%, #f9cd39 2%, transparent 63%), linear-gradient(135deg, #ffed9d, #fef8dd 45%, #fff3b8); }
.hero-mascot { position: absolute; z-index: 1; width: 87%; max-width: none; top: 50%; left: 51%; transform: translate(-50%, -49%); mix-blend-mode: multiply; mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent); }
.light-trail, .light-trail::before, .light-trail::after { position: absolute; border-radius: 50%; pointer-events: none; }
.light-trail { width: 125%; height: 44%; top: 36%; left: -14%; transform: rotate(-24deg); border: 2px solid #fffbea; border-left-color: transparent; border-bottom-color: #f8cf38; }
.light-trail::before { content: ''; inset: -14px -7px 9px; border: 6px solid transparent; border-right-color: #fff8d6; border-bottom-color: #fff8d6; filter: drop-shadow(0 0 9px #fff5b4); }
.light-trail::after { content: ''; inset: 10px 5px -19px; border: 1px solid transparent; border-bottom-color: #d68a37; border-right-color: #eead3c; opacity: .68; }

.portfolio { background: #f0eee5; border-block: 1px solid #e8e5da; padding-block: 67px 76px; scroll-margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 29px; }
h2 { font-size: clamp(36px, 4.4vw, 62px); font-weight: 780; letter-spacing: -.065em; line-height: 1.03; margin-top: 10px; }
.section-heading > p { max-width: 34ch; padding-bottom: 1px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 19px; }
.project-card { overflow: hidden; background: #fffefa; border: 1px solid #dedbd1; border-radius: 14px; box-shadow: 0 6px 16px #2a231007; }
.case-art { overflow: hidden; position: relative; display: grid; place-items: center; height: clamp(126px, 13vw, 174px); }
.project-copy { padding: 22px; }
.project-type { color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 780; letter-spacing: .12em; }
.project-copy h3 { margin-block: 8px 9px; font-size: clamp(20px, 2.3vw, 29px); line-height: 1.08; font-weight: 770; letter-spacing: -.043em; }
.project-copy > p:not(.project-type) { min-height: 4.5em; color: var(--muted); font-size: 14px; line-height: 1.5; }
.project-copy details { border-top: 1px solid #e7e4da; margin-top: 17px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding-top: 14px; min-height: 35px; font-size: 13px; line-height: 1.4; font-weight: 720; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--red); }
summary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); margin-right: 3px; flex: none; }
details[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
details ul { margin: 13px 0 1px; padding-left: 17px; color: var(--muted); font-size: 14px; line-height: 1.5; }
details li + li { margin-top: 7px; }
details li::marker { color: var(--red); }

.shop-art { background: radial-gradient(ellipse at 85% 8%, #ffece0, transparent 62%), #f0bca6; }
.shop-window { position: relative; width: 55%; height: 63%; padding: 10px; border-radius: 9px; background: #fff8ed; border: 1px solid #774a40; box-shadow: 7px 9px 0 #73371d24; transform: translateX(-5%) rotate(-8deg); }
.shop-window i { display: block; width: 42%; height: 4px; border-radius: 5px; background: #387264; }
.shop-window div { display: flex; gap: 5px; height: calc(100% - 13px); margin-top: 8px; }
.shop-window b { flex: 1; border-radius: 4px; background: linear-gradient(#e9b89d 0 63%, #f2dfd0 63%); }
.shop-window b:nth-child(2) { background: linear-gradient(#8cbab0 0 63%, #d4e1d7 63%); }
.shop-window b:nth-child(3) { background: linear-gradient(#e8ce9c 0 63%, #f0e2c9 63%); }
.shop-bag { position: absolute; width: 16%; height: 37%; left: 65%; top: 45%; border-radius: 5px 5px 8px 8px; background: #2f695f; border: 1px solid #24564b; box-shadow: 4px 5px #71391f29; transform: rotate(12deg); }
.shop-bag::before { content: ''; position: absolute; inset: -29% 26% 68%; border: 2px solid #24564b; border-bottom: 0; border-radius: 12px 12px 0 0; }

.rad-art { background: radial-gradient(ellipse at 10% 100%, #264772, transparent 76%), #18243a; }
.scan { width: 34%; max-width: 114px; aspect-ratio: 1; margin-right: 30%; border: 1px solid #91cfff; border-radius: 50%; position: relative; display: grid; place-items: center; box-shadow: 0 0 24px #6cb8ff44, inset 0 0 18px #6cb8ff33; background: repeating-radial-gradient(circle, transparent 0 10px, #70a5d744 10px 11px); }
.scan::before, .scan::after { content: ''; position: absolute; background: #91cfff65; }
.scan::before { width: 128%; height: 1px; }
.scan::after { width: 1px; height: 128%; }
.scan i { width: 28%; height: 28%; border: 1px solid #b9e7ff; border-radius: 50%; background: #4173a8; }
.scan-panel { position: absolute; inset: 26% 14% 26% 57%; display: grid; align-content: center; gap: 8px; padding: 10px; border: 1px solid #8ebbe56e; border-radius: 6px; background: #203655; }
.scan-panel b { display: block; height: 3px; width: 85%; border-radius: 4px; background: #84c9fc; }
.scan-panel b:nth-child(2n) { width: 55%; background: #6587b4; }

.moto-art { background: #283f36; }
.map-grid { position: absolute; inset: -60%; transform: rotate(-23deg); background: repeating-linear-gradient(0deg, transparent 0 26px, #597265 27px 29px, transparent 30px 46px), repeating-linear-gradient(90deg, #283f36 0 38px, #597265 39px 41px, #283f36 42px 64px); }
.map-route { position: relative; width: 48%; height: 46%; transform: rotate(-23deg); border: solid #fce65c; border-width: 0 3px 3px 0; border-radius: 0 0 11px 0; filter: drop-shadow(0 0 6px #ffd65175); }
.map-route i { width: 12px; height: 12px; position: absolute; background: #ffe65b; border-radius: 50%; border: 2px solid #fff9be; }
.map-route i:first-child { top: -4px; right: -7px; }
.map-route i:last-child { bottom: -7px; left: -4px; }

.solutions { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 8vw, 110px); align-items: center; padding-block: 75px; scroll-margin-top: 12px; }
.solutions-art { display: grid; place-items: center; min-height: 300px; padding: 12px; border-radius: 20px; background: radial-gradient(circle at center, #fffdf4, #fff3b2); }
.solutions-art img { width: min(76%, 275px); mix-blend-mode: multiply; }
.solutions h2 { font-size: clamp(36px, 4vw, 54px); }
.solutions-list { margin: 22px 0 0; }
.solutions-list div { padding-block: 14px; border-top: 1px solid var(--line); }
.solutions-list dt { font-size: 16px; font-weight: 740; margin-bottom: 4px; }
.solutions-list dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.footer { color: #faf9f4; background: #211f18; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 86px; padding-block: 16px; }
.footer p { font-weight: 750; }
.footer p span { margin-left: 6px; color: #ded8c3; font-size: 13px; font-weight: 450; }
.footer a { font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.footer a:hover { color: #ffe35b; }
.footer a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 980px) {
  .shell { width: calc(100% - 56px); }
  .project-grid { gap: 13px; }
  .project-copy { padding: 16px; }
  .project-copy > p:not(.project-type) { min-height: 6em; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 34px 36px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(49px, 10.5vw, 77px); margin-block: 15px 18px; }
  .hero-art { width: min(100%, 530px); justify-self: center; }
  .hero-actions { margin-top: 22px; }
  .section-heading { flex-direction: column; align-items: start; gap: 12px; }
  .section-heading > p { max-width: 45ch; }
  .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-copy { padding: 20px; }
  .project-copy > p:not(.project-type) { min-height: 0; }
  .case-art { height: 155px; }
  .shop-window { max-width: 218px; }
  .shop-bag { max-width: 57px; }
  .scan-panel { max-width: 112px; }
  .portfolio, .solutions { padding-block: 45px; }
  .solutions { grid-template-columns: 1fr; gap: 23px; }
  .solutions-copy { grid-row: 1; }
  .solutions-art { min-height: 250px; }
  .solutions-art img { width: min(69%, 240px); }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; display: flex; justify-content: space-between; gap: 10px; }
  .header-action { display: none; }
  .main-nav { gap: clamp(10px, 3vw, 21px); }
  .main-nav a { font-size: 13px; }
  .brand-label { font-size: 8px; }
  .wordmark { width: 98px; height: 38px; }
  .wordmark img { width: 143px; }
  .hero-art { border-radius: 15px; }
}

@media (max-width: 350px) {
  .footer p span { display: block; margin: 3px 0 0; }
}

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