:root {
  --navy: #071b3f;
  --navy-2: #0d2b5f;
  --blue: #145cff;
  --sky: #eaf2ff;
  --mint: #dff6ef;
  --amber: #f3b640;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --ink: #10213f;
  --muted: #5d6b82;
  --line: #dbe3ef;
  --shadow: 0 24px 70px rgba(7, 27, 63, 0.12);
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.8;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 56px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 239, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 250px;
  max-width: 48vw;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav .nav-contact {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.site-nav .nav-contact::after {
  display: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
}

.menu-button span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform 180ms ease, top 180ms ease;
}

.menu-button span:first-child {
  top: 16px;
}

.menu-button span:last-child {
  top: 26px;
}

.menu-button[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(42deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-42deg);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 46%, #ecf4ff 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.hero::before {
  position: absolute;
  top: -260px;
  right: -160px;
  width: 620px;
  height: 620px;
  content: "";
  border: 18px solid rgba(20, 92, 255, 0.14);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 54px;
  align-items: center;
  min-height: 720px;
  padding: 94px 56px 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3.15rem, 4.6vw, 3.75rem);
  line-height: 1.22;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 2.65rem;
  line-height: 1.34;
}

h3 {
  color: var(--navy);
  line-height: 1.45;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 700;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(20, 92, 255, 0.24);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: #b9c8dd;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-tags li,
.support-list li {
  min-height: 38px;
  padding: 6px 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 92, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 18px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.hero-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 9px 14px;
  color: #fff;
  background: rgba(7, 27, 63, 0.86);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 900;
}

.section {
  padding: 96px 56px;
}

.section-heading {
  max-width: 820px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-weight: 700;
}

.intro {
  padding-top: 62px;
  padding-bottom: 62px;
  background: var(--navy);
}

.intro-inner {
  max-width: 980px;
  margin: 0 auto;
}

.intro p {
  margin-bottom: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

.services {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 27, 63, 0.08);
}

.service-card.feature:first-child {
  border-top-color: var(--amber);
}

.service-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
}

.service-label {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.service-card p:not(.service-label) {
  color: var(--muted);
  font-weight: 700;
}

.service-card a {
  position: absolute;
  bottom: 30px;
  left: 34px;
  color: var(--blue);
  font-weight: 900;
}

.family-ai {
  background: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.learning-list {
  display: grid;
  gap: 14px;
}

.learning-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.learning-list span {
  color: var(--blue);
  font-weight: 900;
}

.learning-list h3,
.learning-list p {
  margin-bottom: 0;
}

.learning-list p {
  grid-column: 2;
}

.learning-list p {
  color: var(--muted);
  font-weight: 700;
}

.notice-band {
  max-width: 1060px;
  margin: 44px auto 0;
  padding: 24px 28px;
  background: var(--mint);
  border-left: 5px solid #26a982;
  border-radius: 8px;
}

.notice-band p {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 800;
}

.business-ai {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}

.business-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  color: #fff;
}

.business-panel h2,
.business-panel .eyebrow {
  color: #fff;
}

.business-panel p:not(.eyebrow) {
  color: #dce7f8;
  font-weight: 700;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.other-support {
  background: #fff;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.compact-grid article {
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.portfolio {
  background: var(--sky);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}

.credentials-stack {
  display: grid;
  gap: 22px;
  padding-top: 120px;
  padding-bottom: calc((100% - 44px) / 3.55 + 22px);
}

.badge-area {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 3.55 / 1;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 27, 63, 0.08);
}

.badge-area img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.badge-area h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.badge-area p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.portfolio-banner-link {
  display: block;
  overflow: hidden;
  margin: 28px 0 22px;
  background: var(--navy);
  border: 1px solid rgba(7, 27, 63, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 27, 63, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-banner-link:hover {
  box-shadow: 0 22px 58px rgba(7, 27, 63, 0.18);
  transform: translateY(-2px);
}

.portfolio-banner-link img {
  width: 100%;
  aspect-ratio: 3.55 / 1;
  object-fit: cover;
}

.seo-results-banner {
  position: relative;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 108px;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 3.55 / 1;
  margin: 0;
  padding: 20px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 48%, rgba(255, 255, 255, 0.58), transparent 20%),
    radial-gradient(circle at 30% 18%, rgba(62, 139, 255, 0.34), transparent 32%),
    linear-gradient(90deg, #dceeff 0%, #8bbcff 18%, #2d68c8 37%, #0b3472 62%, #031833 100%),
    var(--navy);
  border: 1px solid rgba(7, 27, 63, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 27, 63, 0.12);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.seo-results-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.24;
}

.seo-results-banner::after {
  content: "SEO RESULTS";
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
}

.seo-results-banner:hover {
  box-shadow: 0 22px 58px rgba(7, 27, 63, 0.18);
  transform: translateY(-2px);
}

.seo-results-banner > * {
  position: relative;
  z-index: 1;
}

.seo-banner-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 21, 62, 0.26)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.5));
}

.seo-banner-logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.seo-banner-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.seo-banner-subtitle {
  color: #d8b86a;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.seo-banner-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(2.2rem, 3.55vw, 3.28rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.seo-banner-icons {
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 9px;
  justify-content: end;
  opacity: 0.94;
}

.seo-icon {
  position: relative;
  width: 48px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
}

.seo-icon.search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.seo-icon.search::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 25px;
  width: 13px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.seo-icon.article::before,
.seo-icon.article::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
}

.seo-icon.article::before {
  top: 14px;
  box-shadow: 0 9px 0 rgba(255, 255, 255, 0.72), 0 18px 0 rgba(255, 255, 255, 0.5);
}

.seo-icon.article::after {
  display: none;
}

.seo-icon.graph::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 7px;
  height: 12px;
  background: #fff;
  box-shadow: 12px -7px 0 rgba(255, 255, 255, 0.78), 24px -15px 0 rgba(20, 92, 255, 0.95);
}

.seo-icon.pencil::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 27px;
  height: 4px;
  background: #fff;
  border-radius: 999px;
  transform: rotate(-38deg);
}

.seo-icon.pencil::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid #d8b86a;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: rotate(-38deg);
}

.faq {
  background: #fff;
}

.faq-list {
  max-width: 940px;
  margin-top: 34px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 34px 22px 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 900;
}

.faq-list p {
  margin: -2px 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.contact {
  background: var(--soft);
}

.contact-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 27, 63, 0.08);
}

.contact-inner p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
}

.profile {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  padding: 92px 56px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.profile-photo {
  overflow: hidden;
  background: #eef1f5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.profile-copy h2 {
  margin-bottom: 8px;
}

.profile-copy h2 span {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 1.1rem;
}

.profile-title {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.profile-copy > p:not(.eyebrow):not(.profile-title) {
  max-width: 720px;
  color: var(--muted);
  font-weight: 700;
}

.profile-info {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.profile-info div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-info dt {
  color: var(--muted);
  font-weight: 900;
}

.profile-info dd {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-info a {
  color: var(--blue);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 56px;
  color: #fff;
  background: var(--navy);
}

.footer-brand {
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
}

.site-footer p {
  margin: 0;
  color: #d7e2f5;
  font-weight: 700;
}

.portfolio-page {
  background: var(--soft);
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 90px 56px 76px;
  background:
    linear-gradient(90deg, rgba(20, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #eaf2ff 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.portfolio-hero h1 {
  font-size: clamp(3.2rem, 5.4vw, 5.4rem);
}

.portfolio-hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.portfolio-hero-banner {
  overflow: hidden;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-hero-banner img {
  width: 100%;
  aspect-ratio: 3.55 / 1;
  object-fit: cover;
}

.portfolio-showcase {
  background: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.work-card {
  min-height: 360px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
}

.work-no {
  color: var(--blue);
  font-weight: 900;
}

.work-card h3 {
  min-height: 68px;
  margin-bottom: 12px;
  font-size: 1.42rem;
}

.work-card p:not(.work-no) {
  color: var(--muted);
  font-weight: 700;
}

.work-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.work-card li {
  padding: 5px 10px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.portfolio-samples {
  background: var(--sky);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.sample-card {
  display: grid;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sample-card:hover {
  border-color: rgba(20, 92, 255, 0.35);
  box-shadow: 0 26px 68px rgba(5, 26, 65, 0.16);
  transform: translateY(-3px);
}

.sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f7fb;
  object-fit: cover;
}

.sample-card div {
  padding: 20px;
}

.sample-label {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.sample-card p:not(.sample-label) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.portfolio-link-panel,
.youtube-panel {
  display: grid;
  gap: 22px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-link-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 38px;
}

.portfolio-link-panel h3,
.youtube-panel h2 {
  margin-bottom: 8px;
}

.portfolio-link-panel p:not(.sample-label),
.youtube-panel p {
  color: var(--muted);
  font-weight: 700;
}

.ad-samples-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
}

.youtube-panel {
  align-content: center;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(7, 29, 65, 0.94), rgba(7, 29, 65, 0.78)),
    var(--navy);
  color: #fff;
}

.youtube-panel .sample-label,
.youtube-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.youtube-panel .button {
  width: fit-content;
}

.ad-gallery-section {
  background: #fff;
}

.ad-gallery-section.alt {
  background: var(--sky);
}

.ad-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.ad-sample-card {
  display: grid;
  overflow: hidden;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(5, 26, 65, 0.09);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ad-sample-card:hover {
  border-color: rgba(20, 92, 255, 0.36);
  box-shadow: 0 24px 62px rgba(5, 26, 65, 0.16);
  transform: translateY(-3px);
}

.ad-sample-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f8fc;
  object-fit: contain;
}

.ad-sample-card span {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-contact {
  background: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 18px 22px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-contact {
    margin-top: 16px;
    justify-content: center;
    border-bottom: 0;
  }

  .hero-grid,
  .portfolio-hero,
  .split-layout,
  .business-panel,
  .portfolio-layout,
  .portfolio-link-panel,
  .ad-samples-hero,
  .profile {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 72px 22px 62px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .section,
  .profile {
    padding: 76px 22px;
  }

  .service-grid,
  .compact-grid,
  .work-grid,
  .sample-grid,
  .ad-gallery {
    grid-template-columns: 1fr;
  }


  .profile {
    gap: 34px;
  }

  .credentials-stack {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 208px;
  }

  .hero-grid {
    gap: 30px;
  }

  h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-lead,
  .intro p {
    font-size: 1rem;
  }

  .hero-visual img {
    min-height: 300px;
  }

  .button {
    width: 100%;
  }

  .service-card {
    min-height: 360px;
    padding: 28px;
  }

  .service-card a {
    left: 28px;
  }

  .learning-list article,
  .badge-area,
  .profile-info div {
    grid-template-columns: 1fr;
  }

  .badge-area {
    aspect-ratio: auto;
    min-height: 230px;
  }

  .learning-list p {
    grid-column: 1;
  }

  .badge-area img {
    width: 132px;
    height: 132px;
  }

  .support-list {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    padding: 30px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 22px;
  }

  .portfolio-hero {
    padding: 66px 22px 60px;
    grid-template-columns: 1fr;
  }

  .portfolio-hero h1 {
    font-size: 2.7rem;
  }

  .portfolio-hero-banner img {
    min-height: 110px;
  }

  .seo-results-banner {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 150px;
    padding: 18px;
  }

  .seo-results-banner::after,
  .seo-banner-icons {
    display: none;
  }

  .seo-banner-logo {
    width: 78px;
    height: 78px;
  }

  .seo-banner-logo img {
    width: 78px;
    height: 78px;
  }

  .seo-banner-subtitle {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .seo-banner-title {
    font-size: 1.72rem;
  }

  .sample-card div {
    padding: 18px;
  }

  .portfolio-link-panel,
  .youtube-panel {
    padding: 24px;
  }

  .youtube-panel .button {
    width: 100%;
  }

}

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

  .reveal,
  .button,
  .site-nav {
    transition: none;
  }
}
