/* =====================================================================
   MayTraders Inc. — site stylesheet
   1. Tokens          shared colours, spacing, type
   2. Fonts
   3. Base / reset
   4. Typography
   5. Layout           .wrap, header, footer
   6. Components        hero, services, platforms, brand, process,
                        team, stats, values, company, gallery, contact
   7. Responsive        <= 950px (tablet), <= 600px (narrow)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #171717;
  --paper: #ffffff;
  --text: #515151;          /* body copy */
  --text-soft: #5c5c5c;     /* captions, meta */
  --rule: #dedede;          /* hairline dividers */
  --rule-strong: #1d1d1d;   /* footer top border */

  --lime: #c9ff3a;          /* primary CTA + Home headline accent */
  --lime-deep: #b4ef1c;     /* CTA hover */
  --lime-wash: #f5ffe0;
  --on-lime: #1c2200;       /* dark text on lime */

  --cobalt: #2e46c7;        /* wordmark, links, some headings */
  --cobalt-deep: #22359a;   /* link hover */
  --cobalt-wash: #eef2ff;

  --font-head: Archivo, "Segoe UI", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;

  --wrap-pad: 32px;         /* shared side padding: header, hero, sections */
  --maxw: 1400px;           /* shared content width — bg/rules stay full-bleed */
  --section-y: 80px;        /* vertical rhythm between sections */
}

/* ---------- 2. Fonts ---------- */
@font-face {
  font-family: Archivo;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 3. Base / reset ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--on-lime); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }

button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 6px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

figure { margin: 0; }

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  z-index: 20;
}
.skip:focus { top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, p { margin: 0; }

h1, h2, h3, .wordmark { font-family: var(--font-head); }

h1 {
  font-size: clamp(2.7rem, 5.6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.8rem, 2.9vw, 2.8rem);
  line-height: 1.17;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
}

p { color: var(--text); }
p + p { margin-top: 18px; }

.lead {
  font-size: 20px;
  line-height: 1.5;
  margin-top: 26px;
  max-width: 680px;
}

.caption,
figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Lime underline under headline text — used on every page h1 and the
   footer "Let's talk." heading. A thick text underline so it follows
   wrapped lines cleanly. */
.accent {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.06em;
  text-decoration-skip-ink: none;
}

/* Underlined external / internal text links, cobalt. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #9ba7dd;
}
.text-link:hover {
  color: var(--cobalt-deep);
  background: var(--cobalt-wash);
  text-decoration-color: var(--cobalt);
}

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  padding-inline: var(--wrap-pad);
  margin-inline: auto;
}

.header {
  /* shares .wrap's max-width + padding so the wordmark lines up with the
     hero copy and the service list below */
  height: 60px;
  display: flex;
  align-items: center;
  gap: 46px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  position: relative;
  color: var(--cobalt);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
}
.wordmark:hover { text-decoration: none; }

.header nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 14px;
}
.header nav a { padding-block: 10px; }
.header nav a:hover { text-decoration-color: var(--cobalt); text-underline-offset: 7px; }
.header nav a[aria-current="page"] {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.header-contact {
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9999px;
  background: var(--lime);
  color: var(--on-lime);
}
.header-contact:hover { background: var(--lime-deep); text-decoration: none; }

/* Contact call-to-action — end of every page, on the white ground. */
.contact-cta {
  margin-top: 96px;
  padding: 62px 0 70px;
  border-top: 1px solid var(--rule);
}
.contact {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.contact h2 { font-size: 48px; color: var(--cobalt); }
.contact p { margin-top: 15px; }
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.email { font-size: 20px; word-break: break-word; }
.email:hover { color: var(--cobalt); }
.contact-links button {
  border: 0;
  border-bottom: 1px solid #bbb;
  background: none;
  padding: 0;
  min-height: 32px;
  font-size: 14px;
  color: #4d4d4d;
}
.contact-links button:hover { color: var(--ink); border-bottom-color: var(--cobalt); }
.contact-links [role="status"] { font-size: 13px; }

/* One intact container image: no independently stretched background slices. */
.container-footer {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  margin-top: 60px;                 /* room for Burai above the lime line */
  color: #fff;
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  background-color: #1c3f86;
  background-image: linear-gradient(rgba(0, 15, 45, .12), rgba(0, 15, 45, .12)), url("/assets/container-footer-v2.png");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

/* --- company info: top area, clear of the top frame and the right rod --- */
.footer-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  box-sizing: border-box;
  padding: 76px 80px 0 64px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);   /* legibility on the photo, no overlay */
}
.fcol { min-width: 0; }
.fname {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
}
.fsubhead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}
.fline {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #eef1ff;
}
.femail,
.fcontact {
  display: block;
  font-weight: 700;
  word-break: break-word;
}
.femail { font-size: 18px; color: #fff; }
.fcontact { margin-top: 12px; font-size: 15px; color: var(--lime); }
.femail:hover,
.fcontact:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- copyright: directly under the info columns, well clear of the printed
   sticker (lower-left of the photo) and the bottom frame --- */
.footer-legal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  box-sizing: border-box;
  margin-top: 22px;
  padding: 0 64px 40px;
}
.footer-legal p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Burai: face + front paws clearly over the footer's top edge (the
   photo's lime line). Footer has no overflow clip, so nothing is cut. --- */
.burai {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 44px;
  width: 108px;
  height: auto;                             /* keep the source aspect ratio */
  transform: translateY(calc(-100% + 4px)); /* paws overlap the lime line by a few px */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* ---------- 6. Components ---------- */

/* Section rhythm */
.section { padding-top: var(--section-y); padding-bottom: 20px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 75px;
}

/* Hero — copy + container image as one centred grid, capped at the shared
   1280px container. No absolute / vw / transform / negative-margin tricks:
   the image scales with its column and never bleeds to the viewport edge. */
.hero {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  box-sizing: border-box;
  padding: 32px var(--wrap-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);   /* ~64px from 1280px up */
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
/* Hand-drawn lime underline (SVG) under "Made personal." */
.hero-copy h1 .accent {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.accent-draw {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
}
.hero-copy .lead { margin-top: 16px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.4; }
.hero + .tagline { border-top: 0; }
.hero-art-wrap { width: 100%; max-width: 580px; }
.hero-art { display: block; width: 100%; height: auto; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  height: 52px;
  padding: 0 30px;
  border-radius: 9999px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 19px;
  font-weight: 700;
}
.button:hover { background: var(--lime-deep); color: var(--on-lime); text-decoration: none; }

/* Home — centred tagline strip below the hero */
.tagline {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.tagline-line {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.tag-blue { position: relative; display: inline-block; color: var(--cobalt); }
.tag-blue .accent-draw { bottom: -0.28em; height: 0.3em; }
.services-list { padding-top: 46px; }
.about-tag { font-size: 15px; color: var(--text-soft); margin-top: 18px; }

/* Home — service list */
.service-row {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 25px 0;
}
.service-row:first-child { padding-top: 0; }
.service-row p { font-size: 15px; margin-top: 7px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* Home — about teaser + weekly update */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 75px;
  align-items: start;
}
.about-teaser .text-link { margin-top: 28px; }
.update {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 25px;
}
.update > div { max-width: 450px; }
.update .text-link { margin-top: 20px; }

/* Services — page intro + detail rows */
.page-intro { padding-top: 70px; padding-bottom: 75px; }
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding: 50px 0 55px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.service-detail h2 { font-size: 32px; margin-bottom: 23px; }
.service-detail .text-link { margin-top: 25px; }

.source-scope {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.source-scope h3 { font-size: 16px; color: var(--cobalt); }
.source-scope p { color: #333; font-size: 15px; margin-top: 10px; line-height: 1.9; }
.source-scope p span { padding: 0 5px; }

.platforms > a {
  display: grid;
  grid-template-columns: 85px 1fr 24px;
  align-items: center;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.platforms strong { font-size: 28px; letter-spacing: -1px; color: var(--cobalt); }
.platforms span { font-size: 15px; }

/* Services — Wholesale reach map, filling the right column */
.service-side { display: flex; flex-direction: column; }
.reach { margin: 48px 0 0; }
.reach-scroll { overflow-x: auto; }
.reach-map { display: block; width: 100%; min-width: 480px; height: auto; }
.reach figcaption { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--text-soft); }

/* Services — 4PM product videos */
.brand-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.brand-videos video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: 10px;
}

/* Services — 4PM brand story, filling the left column below the links */
.brand-story {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.brand-story h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-story > p {
  margin-top: 12px;
  font-size: 15px;
  max-width: 46ch;
}
.brand-facts {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px 40px;
}
.brand-facts dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--cobalt);
}
.brand-facts dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.brand-facts dd span { padding: 0 3px; }

/* Services — process */
.process {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.process li { border-top: 1px solid #a5b0e2; padding-top: 20px; }
.process strong { font-size: 18px; font-weight: 500; color: var(--cobalt); }
.process p { font-size: 14px; margin-top: 12px; }

/* About — intro */
.intro-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  margin-top: 40px;
  max-width: 1050px;
}
.intro-copy p { margin: 0; }
.about-intro > .text-link { margin-top: 32px; }

/* About — stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stats strong {
  display: block;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--cobalt);
}
.stats span { display: block; font-size: 13px; color: var(--text-soft); margin-top: 12px; }

/* About — team */
.section-desc { margin-top: 16px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.team-member { min-width: 0; }
/* Portraits sit in a soft round bubble; the supplied art is pre-trimmed to a
   square pastel field so the circle just rounds the corners. */
.team-photo {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  background: #efeaf8;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.team-member h3 { margin-top: 22px; }
.team-member .role { font-size: 14px; color: #222; margin-top: 5px; }
.team-member p:not(.role) { font-size: 14px; margin-top: 18px; overflow-wrap: break-word; }
.team-member details { border-top: 1px solid var(--rule); margin-top: 24px; }
.team-member summary {
  list-style: none;
  padding: 15px 0;
  min-height: 44px;
  font-size: 14px;
  color: var(--cobalt);
  cursor: pointer;
}
.team-member summary::after { content: "+"; float: right; }
.team-member details[open] summary::after { content: "\2212"; }
.history { list-style: none; padding: 0; margin: 0; }
.history li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  margin-bottom: 16px;
}
.history li span:first-child { color: #666; }

/* About — values + company details */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.values p { font-size: 15px; margin-top: 12px; }

.company { row-gap: 46px; }
.company dl { margin: 0; }
.company dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.company dl > div:first-child { padding-top: 0; }
.company dt { color: #666; }
.company dd { margin: 0; }

/* Office location map — full width beneath the company details grid. */
.office-map { grid-column: 1 / -1; }
.office-map iframe {
  display: block;
  width: 100%;
  height: 370px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--cobalt-wash);
}
.office-map figcaption { margin-top: 14px; }

/* About — field gallery */
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}
.gallery-heading p { margin-top: 16px; }
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.photo-strip figure { min-width: 0; }
.photo-strip img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 7. Responsive ---------- */
@media (max-width: 760px) {
  :root { --section-y: 72px; }

  .header { height: 64px; gap: 25px; }
  .header nav { gap: 20px; }

  /* Hero stacks: copy, then image centred below it */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px var(--wrap-pad) 32px;
  }
  .hero-copy { max-width: none; }
  .hero-art-wrap { max-width: 460px; margin-inline: auto; }

  /* Heading + content blocks stack on tablet. */
  .split,
  .about-teaser { grid-template-columns: 1fr; gap: 28px; }
  .service-detail,
  .intro-copy { gap: 40px; }
  .brand-facts { grid-template-columns: 1fr; gap: 22px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Footer: below 1000 the locking rod crowds column 3, so switch to the
   portrait mobile slices and stack to one column. Height is content-driven. */
@media (max-width: 1000px) {
  .container-footer {
    margin-top: 54px;
    min-height: 0;
    aspect-ratio: auto;
    background-image: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: clamp(52px, 13vw, 74px) 24px 14px;
  }
  /* copyright sits right under the info; the printed sticker + bottom frame
     occupy the reserved band below (bottom padding reserves that space) */
  .footer-legal {
    margin-top: 12px;
    padding: 0 24px 28px;
  }
  .burai { width: 96px; right: 20px; }
}

@media (max-width: 600px) {
  :root { --wrap-pad: 20px; --section-y: 60px; }

  h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }

  .header {
    height: auto;
    min-height: 104px;
    flex-wrap: wrap;
    gap: 13px;
    padding: 20px 20px 16px;
  }
  .wordmark { font-size: 24px; }
  .header nav { order: 3; width: 100%; margin: 0; gap: 25px; }
  .header-contact { margin-left: auto; }

  .hero-inner { padding: 28px 20px 32px; gap: 24px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero-art-wrap { max-width: 420px; }
  .hero + .section, .hero + .tagline + .section { padding-top: 45px; }
  .lead { font-size: 17px; margin-top: 20px; }
  .button { height: 50px; padding: 0 24px; font-size: 17px; }
  .tagline-line { font-size: clamp(1.35rem, 6vw, 1.7rem); }

  .split,
  .about-teaser,
  .service-detail,
  .intro-copy,
  .values { grid-template-columns: 1fr; gap: 30px; }

  .service-row { flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; }
  .service-row p { font-size: 14px; }

  .update { display: block; }
  .update > div { margin-top: 22px; }

  .page-intro { padding-top: 45px; padding-bottom: 45px; }
  .service-detail { padding-top: 35px; padding-bottom: 38px; }
  .service-detail h2 { font-size: 27px; }
  .reach { margin-top: 32px; }
  .reach-map { min-width: 0; }

  .brand-videos { gap: 10px; }

  .process { grid-template-columns: 1fr 1fr; gap: 25px; }

  .stats { gap: 26px; }
  .stats strong { font-size: 34px; }

  .team-grid { gap: 35px 20px; }
  .team-photo { width: 100px; height: 100px; }
  .team-member h3 { font-size: 18px; }
  .team-member .role { font-size: 13px; }

  .platforms > a { grid-template-columns: 70px 1fr 18px; gap: 10px; }
  .platforms span { font-size: 14px; }

  .gallery-heading { display: block; }
  .gallery-heading > .text-link { margin-top: 18px; }
  .photo-strip { grid-template-columns: 1fr; gap: 22px; }
  .field-gallery { padding-top: var(--section-y); }

  .contact-cta { margin-top: 60px; padding: 44px 0 50px; }
  .contact { display: block; }
  .contact h2 { font-size: 38px; }
  .contact-links { margin-top: 30px; }
  .email { font-size: 17px; }

  .company dl > div { grid-template-columns: 100px 1fr; gap: 14px; }
  .office-map iframe { height: 260px; }

  .container-footer { margin-top: 44px; }
  .footer-grid { padding: clamp(48px, 15vw, 66px) 22px 14px; gap: 18px; }
  .footer-legal { padding: 0 22px 28px; }
  .burai { width: 88px; right: 14px; }
}

/* On narrow screens keep the complete panel below the stacked information;
   no cropping, repetition, or separate scaling of its rails and locking rod. */
@media (max-width: 1000px) {
  .container-footer::after {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    background: url("/assets/container-footer-v2.png") center / contain no-repeat;
  }
}
/* Final home hero layout — approved final composition.
   Header, hero, body sections and footer all share the same --maxw boundaries.
   The container artwork intentionally bleeds past the right content edge and is
   clipped by the hero frame to create the cropped shipping-container feel. */
@media (min-width: 761px) {
  .header {
    max-width: var(--maxw);
    height: 60px;
    padding-inline: var(--wrap-pad);
    gap: 46px;
  }
  .wordmark {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
  }
  .header nav {
    font-size: 14px;
    font-weight: 400;
    gap: 30px;
  }
  .header-contact {
    font-size: 14px;
    padding: 9px 18px;
  }

  .hero {
    overflow: hidden;
    background: #fff;
  }
  .hero-inner {
    width: 100%;
    max-width: var(--maxw);
    min-height: clamp(360px, 35vw, 500px);
    margin-inline: auto;
    padding: 0 var(--wrap-pad);
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
  }
  .hero-copy {
    max-width: 650px;
    align-self: center;
    padding: clamp(30px, 4vw, 56px) 18px clamp(34px, 4vw, 58px) 0;
    position: relative;
    z-index: 2;
  }
  .hero-copy h1 {
    margin: 0;
    font-size: clamp(54px, 5.4vw, 80px);
    line-height: .96;
    letter-spacing: -.052em;
    font-weight: 800;
  }
  .hero-copy h1 .accent { white-space: nowrap; }
  .hero-copy .lead {
    margin-top: clamp(20px, 2vw, 28px);
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.4;
    color: #4e5968;
  }
  .hero-copy .button {
    margin-top: clamp(22px, 2.2vw, 30px);
    height: 54px;
    padding-inline: 30px;
    font-size: 17px;
  }

  .hero-art-wrap {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    align-self: stretch;
    overflow: visible;
  }
  .hero-art {
    position: absolute;
    z-index: 1;
    right: -12%;
    bottom: -1px;
    width: auto;
    max-width: none;
    height: 112%;
    object-fit: contain;
    object-position: right bottom;
  }

  .tagline {
    padding-block: 14px;
  }
  .tagline-line {
    font-size: clamp(22px, 1.9vw, 30px);
  }
}

/* Laptop widths keep the same visual idea: compact header, large copy,
   oversized artwork clipped on the right. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 51% 49%;
    min-height: 330px;
  }
  .hero-copy h1 {
    font-size: clamp(48px, 6vw, 62px);
  }
  .hero-copy .lead {
    font-size: 16px;
    margin-top: 16px;
  }
  .hero-copy .button {
    margin-top: 18px;
    height: 46px;
    padding-inline: 24px;
    font-size: 14px;
  }
  .hero-art {
    height: 116%;
    right: -16%;
  }
}

/* FINAL MOBILE CONTACT + FOOTER
   One compact white flow: Let's talk -> company details -> Burai -> container.
   All mobile left edges are aligned to the same inset. */
@media (max-width: 600px) {
  :root { --mobile-edge: 24px; }

  .contact-cta {
    margin-top: 44px;
    padding: 34px var(--mobile-edge) 18px;
  }

  .contact {
    display: block;
    width: 100%;
  }

  .contact h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.02;
  }

  .contact p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.55;
  }

  .contact-links {
    display: none;
  }

  .container-footer {
    --mobile-container-h: 33.333vw;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 var(--mobile-container-h);
    min-height: 0;
    background: #fff;
    color: var(--ink);
    overflow: visible;
  }

  .footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 24px var(--mobile-edge) 54px;
    background: #fff;
    text-shadow: none;
  }

  .fcol { min-width: 0; }

  .fname {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.15;
  }

  .fsubhead {
    margin: 0 0 10px;
    color: #344363;
    font-size: 14px;
    letter-spacing: .16em;
  }

  .fline {
    margin-top: 8px;
    color: #344363;
    font-size: 16px;
    line-height: 1.55;
  }

  .femail {
    color: #0d1c3d;
    font-size: 17px;
    line-height: 1.45;
  }

  .fcontact {
    margin-top: 10px;
    color: #65c900;
    font-size: 16px;
  }

  .container-footer::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: var(--mobile-container-h);
    background: url("/assets/container-footer-v2.png") center / 100% 100% no-repeat;
    pointer-events: none;
  }

  .burai {
    position: absolute;
    z-index: 4;
    top: auto;
    right: 14px;
    bottom: calc(var(--mobile-container-h) - 3px);
    width: 96px;
    height: auto;
    transform: none;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.18));
  }

  .footer-legal {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 16px;
    width: 100%;
    margin: 0;
    padding: 0 var(--mobile-edge);
    color: #fff;
  }

  .footer-legal::before {
    content: "MayTraders Inc.";
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
  }

  .footer-legal p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
  }
}

/* FINAL BOXED WORDMARK — MayTraders blue reverse logo */
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px 7px;
  background: #2e46c7;
  color: #fff;
  border-radius: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.8px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: #fff;
  text-decoration: none;
  background: #22359a;
}

@media (max-width: 600px) {
  .wordmark {
    min-height: 34px;
    padding: 5px 10px 6px;
    font-size: 20px;
    letter-spacing: -0.6px;
  }
}

/* MOBILE INNER ALIGNMENT FIX
   Keep the shared .wrap horizontal inset on Services and About.
   Do not use padding shorthands here: they would reset padding-inline. */
@media (max-width: 600px) {
  .page-intro,
  .service-detail {
    padding-left: var(--wrap-pad);
    padding-right: var(--wrap-pad);
  }
}
