/* Medium Ideas website styles.
   Values come from the Claude Design export (DesignStudio/WebSite).
   Fonts are self-hosted (latin subsets of the Google Fonts files, SIL OFL). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
}

:root {
  --ink: #16161A;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --line: #E6E4DC;
  --muted: #4D4D57;
  --soft: #C9C9D1;
  --accent: #FFC21A;      /* yellow */
  --accent-dark: #2D5BE3; /* blue */
  --highlight2: #F0603F;  /* coral */
  --link-hover: #2148C0;
  --display: 'Bricolage Grotesque', sans-serif;
}

/* Boxes use the browser default sizing (padding adds to width), as in the design. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.display { font-family: var(--display); }
.eyebrow {
  margin: 0; font-weight: 700; font-size: 14px; color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.section-title {
  margin: 12px 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em;
}
.icon { flex: none; }

/* Decorative "idea" dot clusters */
.dots { position: absolute; width: 0; height: 0; pointer-events: none; }
.dots span { position: absolute; border-radius: 999px; }
.c-accent { background: var(--accent); }
.c-blue { background: var(--accent-dark); }
.c-coral { background: var(--highlight2); }
.c-ink { background: var(--ink); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); }
.topbar .container {
  padding-top: 8px; padding-bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
}
.topbar p { margin: 0; color: #E8E8EC; font-weight: 600; font-size: 14px; }
.topbar a, .topbar a:hover {
  display: inline-flex; align-items: center; gap: 10px; color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 14px; padding: 4px 0;
}
.topbar a:hover { text-decoration: underline; }
.tag-badge {
  width: 24px; height: 24px; border-radius: 999px; background: var(--highlight2);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header nav {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand, .brand:hover { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 16px; }
.nav-links a { text-decoration: none; padding: 10px 0; }
.nav-links .nav-cta, .nav-links .nav-cta:hover {
  background: var(--ink); color: var(--white); padding: 11px 20px; border-radius: 999px; font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px; padding-bottom: 88px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-title-row { display: flex; align-items: flex-start; gap: 16px; }
.hero h1 {
  margin: 0; flex: 1 1 auto; min-width: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em;
}
.underline-accent { box-shadow: inset 0 -0.32em 0 var(--accent); }
.hero-title-dots { flex: none; position: relative; width: 96px; height: 110px; margin-top: 6px; }
.hero-title-dots span { position: absolute; border-radius: 999px; }
.hero-title-dots span:nth-child(1) { left: 6px; top: 0; width: 34px; height: 34px; }
.hero-title-dots span:nth-child(2) { left: 58px; top: 10px; width: 16px; height: 16px; }
.hero-title-dots span:nth-child(3) { left: 44px; top: 46px; width: 24px; height: 24px; }
.hero-title-dots span:nth-child(4) { left: 70px; top: 86px; width: 18px; height: 18px; }
.hero-lede { margin: 28px 0 0; font-size: 20px; color: var(--muted); max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn-accent, .btn-accent:hover {
  text-decoration: none; background: var(--accent); color: var(--ink);
  font-weight: 700; padding: 15px 26px; border-radius: 999px;
}
.btn-outline {
  text-decoration: none; border: 1.5px solid var(--ink); font-weight: 600; padding: 14px 26px; border-radius: 999px;
}

.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art-stage { position: relative; width: 100%; max-width: 460px; height: 440px; }
.hero-art-dots { right: 26px; top: 60px; }
.hero-art-dots span:nth-child(1) { left: 0; top: 0; width: 26px; height: 26px; }
.hero-art-dots span:nth-child(2) { left: 34px; top: -22px; width: 12px; height: 12px; }
.hero-art-dots span:nth-child(3) { left: 44px; top: 20px; width: 16px; height: 16px; }
.hero-art-dots span:nth-child(4) { left: -46px; top: 18px; width: 20px; height: 20px; }
.hero-art-backdrop { position: absolute; inset: 30px 0 0 40px; background: #FFF1BF; border-radius: 40px; }
.card-problem {
  position: absolute; left: 0; top: 0; width: 290px; background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px; box-shadow: 0 18px 40px rgba(22,22,26,0.10);
}
.card-label { margin: 0; font-size: 13px; font-weight: 600; color: #6B6B75; text-transform: uppercase; letter-spacing: 0.08em; }
.card-problem .card-text { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.card-build {
  position: absolute; right: 0; top: 170px; width: 280px; background: var(--ink); color: var(--white);
  border-radius: 22px; padding: 22px; box-shadow: 0 18px 40px rgba(22,22,26,0.18);
}
.card-build .card-label { color: var(--soft); }
.card-build ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.card-build li { display: flex; align-items: center; gap: 10px; }
.pill-easy {
  position: absolute; left: 60px; bottom: -18px; display: flex; /* design: 10px, which hid the card's last line */ align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 10px;
  box-shadow: 0 10px 24px rgba(22,22,26,0.08);
}
.pill-easy-icon {
  width: 36px; height: 36px; border-radius: 999px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.pill-easy-text { font-weight: 600; font-size: 15px; }

/* ---------- Services ---------- */
.services { position: relative; overflow: hidden; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services > .container { position: relative; padding-top: 96px; padding-bottom: 96px; }
.services-dots { right: 110px; top: 96px; }
.services-dots span:nth-child(1) { left: 0; top: 0; width: 32px; height: 32px; }
.services-dots span:nth-child(2) { left: 40px; top: -26px; width: 14px; height: 14px; }
.services-dots span:nth-child(3) { left: 52px; top: 18px; width: 20px; height: 20px; }
.services .section-title { max-width: 720px; }
.section-lede { margin: 18px 0 0; color: var(--muted); font-size: 19px; max-width: 640px; }
.service-grid {
  margin-top: 56px; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.service-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.bg-yellow-soft { background: #FFF1BF; }
.bg-coral-soft { background: #FDE3DC; }
.bg-blue-soft { background: #E3EAFD; }
.bg-gray-soft { background: #EDEDF0; }
.service-card h3 { margin: 22px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.service-card p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Work ---------- */
.work-head { position: relative; padding-top: 104px; padding-bottom: 40px; }
.work-dots { right: 110px; top: 104px; }
.work-dots span:nth-child(1) { left: 0; top: 0; width: 28px; height: 28px; }
.work-dots span:nth-child(2) { left: 40px; top: -22px; width: 12px; height: 12px; }
.work-dots span:nth-child(3) { left: 46px; top: 22px; width: 18px; height: 18px; }

.case { padding-top: 32px; padding-bottom: 32px; }
.case-last { padding-bottom: 104px; }
.case-panel {
  border-radius: 36px; padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.case-tag { margin: 0; display: inline-block; background: var(--white); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.case-title { margin: 18px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; }
.case-tagline { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.case-body { margin: 18px 0 0; }
.case-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.case-point { display: flex; gap: 14px; align-items: flex-start; }
.case-point p { margin: 0; }
.case-num {
  flex: none; width: 28px; height: 28px; border-radius: 999px; color: var(--white);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.case-link { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ChickenWing case */
.case-cw .case-panel { background: #EAF6FE; }
.case-cw .case-copy { flex: 1 1 440px; min-width: 0; }
.case-cw .case-tag, .case-cw .case-title, .case-cw .case-tagline, .case-cw strong { color: #501E08; }
.case-cw .case-body, .case-cw .case-point p { color: #3F2A1E; }
.case-cw .case-num { background: #E85D04; }
.case-cw .case-link, .case-cw .case-link:hover { color: #501E08; }
.case-cw .case-visual { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 300px; max-width: calc(100% - 24px); background: #1C1C1E; border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(80,30,8,0.22); }
.phone-screen { background: var(--white); border-radius: 36px; overflow: hidden; }
.phone-top { background: #36B6FD; padding: 34px 22px 26px; color: var(--white); }
.phone-top .label { margin: 0; font-size: 13px; font-weight: 600; opacity: 0.95; }
.phone-top .title { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.phone-next {
  margin-top: 14px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.22);
  border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.phone-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.phone-contact { display: flex; align-items: center; gap: 12px; background: #FDF3EC; border-radius: 16px; padding: 12px; }
.phone-avatar {
  width: 40px; height: 40px; border-radius: 999px; background: #F4C170; color: #501E08;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.phone-contact .small { margin: 0; font-size: 12px; color: #7A5A48; }
.phone-contact .name { margin: 0; font-weight: 700; color: #501E08; font-size: 15px; }
.phone-times { display: flex; justify-content: space-between; font-size: 12px; color: #7A5A48; font-weight: 600; }
.phone-bar { margin-top: 6px; height: 8px; background: #F1E6DD; border-radius: 99px; }
.phone-bar span { display: block; width: 58%; height: 8px; background: #E85D04; border-radius: 99px; }
.phone-btn-main {
  margin-top: 6px; background: #E85D04; color: var(--white); font-weight: 700; font-size: 18px;
  padding: 20px; border-radius: 20px; text-align: center; line-height: normal;
}
.phone-btn-alt {
  border: 1.5px solid #E4B397; background: var(--white); color: #501E08; font-weight: 600; font-size: 15px;
  padding: 13px; border-radius: 16px; text-align: center; line-height: normal;
}

/* Happy Home Supply case */
.case-hhs .case-panel { background: #E6F4EF; flex-wrap: wrap-reverse; }
.case-hhs .case-visual { flex: 1 1 560px; min-width: 0; overflow-x: auto; }
.case-hhs .case-copy { flex: 1 1 380px; min-width: 0; }
.case-hhs .case-tag, .case-hhs .case-tagline { color: #1F5C46; }
.case-hhs .case-title, .case-hhs strong { color: #173F31; }
.case-hhs .case-body, .case-hhs .case-point p { color: #2E4A40; }
.case-hhs .case-num { background: #0E7C73; }
.case-hhs .case-link, .case-hhs .case-link:hover { color: #173F31; }
.dash {
  min-width: 560px; background: var(--white); border-radius: 18px; box-shadow: 0 30px 60px rgba(20,70,52,0.18);
  overflow: hidden; border: 1px solid #CFE6DD;
}
.dash-chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #F3F7F5; border-bottom: 1px solid #DCEBE4; }
.dash-chrome span { width: 11px; height: 11px; border-radius: 99px; background: #D9DED9; }
.dash-main { display: flex; }
.dash-side {
  width: 150px; flex: none; background: #1F5C46; color: var(--white); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500;
}
.dash-side .logo { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 16px; }
.dash-side span { padding: 7px 10px; color: #D4E9E0; }
.dash-side .active { background: rgba(255,255,255,0.16); border-radius: 8px; font-weight: 700; color: var(--white); }
.dash-content { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: #FBFDFC; }
.dash-greeting { margin: 0; font-weight: 700; font-size: 17px; color: #173F31; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-stat { border: 1px solid #DCEBE4; border-radius: 12px; padding: 12px; background: var(--white); }
.dash-stat .k { margin: 0; font-size: 11px; color: #4D6B60; font-weight: 600; }
.dash-stat .v { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: #173F31; }
.dash-stat .v.teal { color: #0E7C73; }
.dash-list { border: 1px solid #DCEBE4; border-radius: 12px; background: var(--white); }
.dash-list .head { margin: 0; padding: 10px 14px; font-size: 12px; font-weight: 700; color: #173F31; border-bottom: 1px solid #E7F1EC; }
.dash-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 12px; border-bottom: 1px solid #F0F6F3; }
.dash-row:last-child { border-bottom: 0; }
.dash-row .who { color: #173F31; font-weight: 600; }
.status { font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.status-new { background: #D6F2EE; color: #0B5F58; }
.status-follow { background: #FFF1D6; color: #7A4E00; }
.status-replied { background: #E7EEEB; color: #3C5A4F; }

/* ---------- Approach ---------- */
.approach { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.approach > .container { position: relative; padding-top: 104px; padding-bottom: 104px; }
.approach-dots { right: 110px; top: 104px; }
.approach-dots span:nth-child(1) { left: 0; top: 0; width: 28px; height: 28px; }
.approach-dots span:nth-child(2) { left: 38px; top: -20px; width: 12px; height: 12px; }
.approach-dots span:nth-child(3) { left: 30px; top: 32px; width: 18px; height: 18px; }
.approach .eyebrow { color: var(--accent); }
.approach .section-title { max-width: 760px; }
.steps {
  margin: 56px 0 0; padding: 0; list-style: none; display: grid; gap: 40px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.steps li { border-top: 3px solid var(--accent); padding-top: 22px; }
.step-num { margin: 0; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--highlight2); }
.steps h3 { margin: 8px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.steps li p:last-child { margin: 8px 0 0; color: var(--soft); }

/* ---------- About ---------- */
.about { padding-top: 104px; padding-bottom: 104px; }
.about-copy { max-width: 820px; }
.about h2 {
  margin: 12px 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.03em;
}
.about-lead { margin: 22px 0 0; font-size: 20px; font-weight: 500; }
.about-copy p.body { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 104px; scroll-margin-top: 16px; }
.contact-panel {
  position: relative; background: var(--accent); border-radius: 36px; padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; color: var(--ink);
}
.contact-dots { right: 90px; top: -12px; }
.contact-dots span:nth-child(1) { left: 0; top: 0; width: 24px; height: 24px; }
.contact-dots span:nth-child(2) { left: 30px; top: -18px; width: 12px; height: 12px; }
.contact-dots span:nth-child(3) { left: 36px; top: 14px; width: 16px; height: 16px; }
.contact-copy { flex: 1 1 380px; min-width: 0; }
.contact h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
}
.contact-lede { margin: 18px 0 0; font-size: 19px; }
.contact-methods { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; font-weight: 700; font-size: 18px; }
.contact-methods a, .contact-methods a:hover {
  display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 4px 0;
  overflow-wrap: anywhere;
}
.contact-methods a:hover { text-decoration: underline; }
.contact-methods a.tel { white-space: nowrap; }

.contact-form {
  flex: 1 1 380px; min-width: 0; background: var(--white); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; box-sizing: border-box;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 13px 14px; border: 1.5px solid #CFCCC2;
  border-radius: 12px; background: var(--paper); color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 1px; border-color: var(--ink); }
.contact-form button {
  margin-top: 4px; border: 0; background: var(--ink); color: var(--white); font: inherit; font-weight: 700;
  padding: 16px; border-radius: 999px; cursor: pointer;
}
.contact-form button:hover { background: #2A2A31; }
.contact-form button:disabled { opacity: 0.7; cursor: progress; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDE3DC; color: #7A2412;
  font-size: 15px; font-weight: 600;
}
.form-error a { color: #7A2412; }
/* Spam trap for bots: hidden from people and screen readers */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank-you popup ---------- */
.thanks-dialog {
  box-sizing: border-box; width: min(440px, calc(100% - 32px)); border: 0; border-radius: 28px; padding: 36px 32px 32px;
  background: var(--white); color: var(--ink); text-align: center;
  box-shadow: 0 30px 80px rgba(22,22,26,0.35);
}
.thanks-dialog::backdrop { background: rgba(22,22,26,0.55); }
.thanks-dialog[open] { animation: pop-in 180ms ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .thanks-dialog[open] { animation: none; } }
.thanks-mark {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 999px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.thanks-dialog h2 { margin: 20px 0 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.thanks-dialog p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.thanks-dialog button {
  margin-top: 24px; border: 0; background: var(--ink); color: var(--white); font: inherit; font-weight: 700;
  padding: 14px 32px; border-radius: 999px; cursor: pointer;
}
.thanks-dialog button:hover { background: #2A2A31; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px; font-size: 15px; color: var(--muted);
}
.site-footer .brand-small { display: flex; align-items: center; gap: 10px; }

/* ---------- Simple pages (thanks, 404) ---------- */
.simple-page { min-height: 100vh; display: flex; flex-direction: column; }
.simple-main { box-sizing: border-box; flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; text-align: center; }
.simple-main h1 { margin: 20px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.simple-main p { margin: 16px auto 0; color: var(--muted); font-size: 19px; max-width: 520px; }
.simple-main .btn-accent { display: inline-block; margin-top: 32px; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero-title-dots { width: 56px; height: 80px; }
  .hero-title-dots span:nth-child(1) { left: 0; width: 24px; height: 24px; }
  .hero-title-dots span:nth-child(2) { left: 34px; top: 6px; width: 12px; height: 12px; }
  .hero-title-dots span:nth-child(3) { left: 24px; top: 34px; width: 18px; height: 18px; }
  .hero-title-dots span:nth-child(4) { left: 40px; top: 62px; width: 14px; height: 14px; }
  .hero-art-dots { right: 60px; }
  .card-problem { width: 260px; }
  .card-build { width: 260px; }
  .pill-easy { left: 16px; }
  .services-dots, .work-dots, .approach-dots { right: 72px; top: 60px; }
  .contact-dots { right: 64px; }
}
@media (max-width: 360px) {
  .card-problem, .card-build { width: 230px; }
}

/* The dashboard picture is 560px wide; shrink it to fit instead of cutting it off. */
@media (max-width: 700px) { .dash { zoom: 0.75; } }
@media (max-width: 480px) { .dash { zoom: 0.5; } }
@media (max-width: 360px) { .dash { zoom: 0.4; } }

/* ---------- Products ---------- */
.nav-links a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }
.page-head { padding-top: 72px; padding-bottom: 40px; }
.crumbs { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.page-title {
  margin: 12px 0 0; max-width: 900px; font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em;
}
.product-list { padding-bottom: 104px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.product-card, .product-card:hover {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink);
}
.product-card:hover { border-color: var(--ink); }
.product-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 32px 32px; }
.product-card .case-tag { background: #E3EAFD; color: #1F3FA8; }
.product-title { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.product-text { margin-top: 10px; color: var(--muted); }
.product-card .case-link { margin-top: 20px; }
.gallery-wrap { padding-top: 40px; padding-bottom: 40px; }
.gallery-note { margin: 12px 0 0; color: var(--muted); }
.gallery { margin-top: 36px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 18px; }
.gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.gallery figcaption { margin-top: 12px; font-size: 16px; color: var(--muted); }
.packages-wrap { padding-top: 64px; padding-bottom: 104px; scroll-margin-top: 16px; }
.packages { margin-top: 36px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.package-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.package-name { margin: 0; font-weight: 700; font-size: 14px; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.1em; }
.package-card h3 { margin: 10px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.package-plus { margin: 16px 0 0; font-weight: 600; }
.package-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.package-card li + li { margin-top: 6px; }
.cta-band {
  margin-top: 56px; background: var(--accent); border-radius: 36px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.cta-band .btn-accent { background: var(--ink); color: var(--white); }
