/* Shared design tokens and components. Values come from docs/design/*.dc.html:
   desktop artboards for 700px and wider, "Mobile-" artboards below that. */
:root {
  --ink: #222222;
  --ink-soft: #444444;
  --text: #555555;
  --yellow: #F9BB33;
  --yellow-hover: #FFC94D;
  --orange: #F08A24;
  --blue: #1D73CB;
  --blue-dark: #155A9F;
  --blue-tint: #EAF2FB;
  --cream: #FFF4D6;
  --paper: #F7F7F5;
  --line: #E6E6E6;
  --line-input: #D6D6D6;
  --dark-card: #2C2C2C;
  --dark-line: #3A3A3A;
  --dark-text: #BDBDBD;
  --dark-text-soft: #C9C9C9;
  --muted: #9A9A9A;
  --display: Poppins, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--body); }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.m-only { display: none; }

/* Layout: the artboards' 1200px content column with 24px gutters. */
.wrap { max-width: 1200px; margin: 0 auto; padding: 112px 24px; }

/* Type */
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: var(--blue-tint); padding: 8px 14px; border-radius: 999px; }
.badge--yellow { color: var(--ink); background: var(--yellow); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.mark { background: var(--yellow); color: var(--ink); padding: 0 8px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 16px 28px; cursor: pointer; }
.btn--yellow, .btn--yellow:hover { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-hover); }
.btn--outline { border: 1.5px solid var(--line-input); color: var(--ink); }
.btn--outline:hover { border-color: var(--yellow); color: var(--ink); }

/* Section heading: eyebrow over title */
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }

/* Page hero: About, Services, Works */
.page-hero { background: #FFFFFF; }
.page-hero__inner { max-width: 1200px; margin: 0 auto; padding: 88px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.page-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.07; letter-spacing: -0.03em; }
.page-hero__copy p { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 600px; }
.page-hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.page-hero__frame { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; border-radius: 40px; display: flex; align-items: center; justify-content: center; }
.page-hero__frame--blue { background: var(--blue-tint); }
.page-hero__frame--cream { background: var(--cream); }
.page-hero__frame .art { width: 82%; height: auto; }
.page-hero__image { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

/* Form fields (Contact artboards, also used by the job application) */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { height: 52px; box-sizing: border-box; border: 1.5px solid var(--line-input); border-radius: 14px; padding: 0 16px; font: 16px var(--body); color: var(--ink); background: #FFFFFF; width: 100%; }
.field textarea { height: auto; min-height: 160px; padding: 14px 16px; resize: vertical; }
.field input[type="file"] { padding: 12px 16px; font-size: 14px; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.btn--submit { height: 56px; justify-content: center; padding: 0 28px; }

/* Rich text from the CMS: job descriptions and legal pages */
.prose { font-size: 17px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 600; line-height: 1.3; color: var(--ink); margin-top: 32px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose img, .prose iframe { max-width: 100%; }

/* Drawings */
.n-float { animation: nfloat 4s ease-in-out infinite; }
.n-rays { transform-origin: 160px 80px; animation: nrays 2.4s ease-in-out infinite; }
.n-eye { transform-box: fill-box; transform-origin: center; animation: nblink 5s infinite; }
.n-code path { stroke-dasharray: 60; animation: ntype 3.2s ease-in-out infinite; }
.n-code path:nth-child(2) { animation-delay: .3s; }
.n-code path:nth-child(3) { animation-delay: .6s; }
.n-code path:nth-child(4) { animation-delay: .9s; }
@keyframes nfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nrays { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.92); } }
@keyframes nblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes ntype { 0% { stroke-dashoffset: 60; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; } }
@media (prefers-reduced-motion: reduce) {
  .n-float, .n-rays, .n-eye, .n-code path { animation: none; }
}

/* Header */
.site-header { background: var(--ink); }
.site-header__bar { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo .logo__art { height: 48px; width: auto; display: block; }
.nav { display: flex; gap: 32px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { color: #E9E9E9; }
.nav a:hover, .nav a[aria-current] { color: var(--yellow); }
.site-header__actions { display: flex; gap: 10px; align-items: center; }
.btn--header { font-size: 15px; padding: 12px 22px; min-height: 44px; box-sizing: border-box; gap: 0; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--dark-line); background: transparent; cursor: pointer; padding: 0; color: #FFFFFF; }
.menu-toggle .icon--close, .menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; color: var(--yellow); }
.menu { max-width: 1200px; margin: 0 auto; padding: 4px 24px 28px; border-top: 1px solid #333333; display: flex; flex-direction: column; }
.menu > a { color: #FFFFFF; font-family: var(--display); font-size: 22px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid #333333; display: flex; justify-content: space-between; align-items: center; }
.menu > a:hover, .menu > a[aria-current] { color: var(--yellow); }
.menu__contact { display: none; }
@media (min-width: 1025px) { .menu { display: none; } }

/* Call-to-action box */
.cta { background: #FFFFFF; }
.cta__inner { max-width: 1200px; margin: 0 auto; padding: 112px 24px; }
.cta__box { background: var(--yellow); border-radius: 40px; padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta__copy h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.cta__copy p { font-size: 18px; line-height: 1.6; color: #3A3A3A; }
.cta__form { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__form label { font-size: 14px; font-weight: 600; }
.cta__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta__row input { flex: 1 1 220px; min-width: 0; height: 56px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 999px; padding: 0 22px; font: 16px var(--body); background: #FFFFFF; color: var(--ink); }
.cta__row button { height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; font: 600 16px var(--body); cursor: pointer; }
.cta__link, .cta__link:hover { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* Form feedback (not in the artboards) */
button:disabled { opacity: .6; cursor: progress; }
.field-error { font-size: 13px; font-weight: 600; color: #B3261E; }
.form-status { font-size: 15px; line-height: 1.5; font-weight: 500; padding: 14px 18px; border-radius: 14px; }
/* Stays in the page for screen readers without taking a flex gap. */
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; }
.form-status.is-success { color: #1E6B34; background: #E8F5EC; }
.form-status.is-error { color: #8C1D18; background: #FCEDEC; }

/* Pagination (not in the artboards) */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--dark-text); }
.site-footer a { color: var(--dark-text); }
.site-footer a:hover { color: var(--yellow); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 72px 24px 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__logo { align-self: flex-start; }
.site-footer__logo .logo__art { height: 64px; width: auto; display: block; }
.site-footer__brand p { font-size: 15px; line-height: 1.6; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__heading { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; }
.site-footer__address { line-height: 1.6; }
.site-footer__bottom { border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--dark-line); display: flex; align-items: center; justify-content: center; }

/* Swipeable cards: a normal grid or row on wide screens, a carousel on phones. */
.carousel-hint { display: none; }

@media (max-width: 1024px) {
  .wrap, .cta__inner { padding: 72px 24px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 32px; }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .page-hero__copy { flex-basis: 340px; }
  .page-hero__art { flex-basis: 260px; }
}

@media (max-width: 699px) {
  .d-only, .d-br { display: none; }
  .m-only { display: inline; }
  .wrap { padding: 56px 20px; }

  .badge { font-size: 12px; letter-spacing: 0.06em; padding: 7px 12px; }
  .badge--yellow { letter-spacing: 0.08em; }
  .eyebrow { font-size: 12px; }
  .title { font-size: 28px; line-height: 1.18; }
  .page-title { font-size: 40px; }
  .mark { padding: 0 6px; }

  .site-header { position: sticky; top: 0; z-index: 30; }
  main section[id] { scroll-margin-top: 64px; }
  .site-header__bar { height: 64px; box-sizing: border-box; padding: 0 16px; flex-wrap: nowrap; gap: 8px; }
  .logo .logo__art { height: 36px; }
  .site-header__actions { gap: 8px; }
  .btn--header { font-size: 14px; height: 44px; padding: 0 16px; }
  .menu { padding: 4px 20px 24px; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .menu > a { font-size: 24px; }
  .menu__contact { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; font-size: 14px; }
  .menu__contact a { color: var(--dark-text-soft); }

  .cta__inner { padding: 16px 16px 56px; }
  .cta__box { border-radius: 28px; padding: 28px 22px; flex-direction: column; align-items: stretch; gap: 14px; }
  .cta__copy { flex: none; gap: 14px; }
  .cta__copy h2 { font-size: 28px; line-height: 1.18; }
  .cta__copy p { font-size: 15px; }
  .cta__form { flex: none; gap: 14px; }
  .cta__form label { font-size: 13px; margin-top: 6px; }
  .cta__row { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
  .cta__row input { flex: none; width: 100%; height: 52px; padding: 0 20px; }
  .cta__row button { height: 52px; padding: 0 6px; }
  .cta__link { align-self: center; font-size: 14px; }

  .site-footer__inner { padding: 40px 20px 24px; gap: 28px; }
  .site-footer__columns { gap: 28px 20px; }
  .site-footer__brand { grid-column: 1 / -1; gap: 12px; }
  .site-footer__logo { align-self: stretch; }
  .site-footer__logo .logo__art { height: 52px; width: 100%; }
  .site-footer__brand p { font-size: 14px; }
  .site-footer__col { font-size: 14px; }
  .site-footer__heading { font-size: 12px; }
  .site-footer__contact { grid-column: 1 / -1; gap: 8px; }
  .site-footer__address { line-height: normal; }
  .site-footer__bottom { padding-top: 20px; font-size: 13px; flex-wrap: nowrap; }

  .section-head { gap: 10px; }
  .page-hero__inner { padding: 32px 20px 40px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .page-hero__copy { display: contents; }
  .page-hero h1 { font-size: 40px; line-height: 1.05; }
  .page-hero__copy p { font-size: 16px; line-height: 1.6; max-width: none; }
  .page-hero__art { flex: none; }
  .page-hero__frame { max-width: none; aspect-ratio: auto; height: 240px; border-radius: 28px; overflow: hidden; }
  .page-hero__frame .art { height: 86%; width: auto; }

  .field label { gap: 6px; font-size: 13px; }
  .field input, .field textarea { padding: 0 14px; }
  .field textarea { min-height: 130px; padding: 12px 14px; }
  .field input[type="file"] { padding: 12px 14px; }
  .btn--submit { height: 52px; }
  .prose { font-size: 15px; }

  .carousel[data-carousel] { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; scroll-padding-left: 20px; scrollbar-width: none; }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > * { flex: none; width: 272px; box-sizing: border-box; scroll-snap-align: start; }
  .carousel::after { content: ""; flex: none; width: 8px; }
  .carousel-hint { display: flex; align-items: center; justify-content: space-between; }
  .dots { display: flex; gap: 6px; align-items: center; }
  .dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--dark-line); transition: width .25s ease, background .25s ease; }
  .dots span.is-active { width: 18px; background: var(--yellow); }
  .dots--light span { background: var(--line-input); }
  .swipe { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
  .swipe--light { color: #767676; }
}
