:root {
  --color-ice-blue: #DDF3FF;
  --color-ice-blue-deep: #A9D8F2;
  --color-lavender-blue: #C9C7F8;
  --color-lavender-blue-deep: #8E8AD8;
  --color-white: #FFFFFF;
  --color-snow: #F8FBFF;
  --color-navy: #243457;
  --color-text: #23304F;
  --color-muted: #6D7A96;
  --color-border: #DDE3F2;
  --color-ruby: #E25578;
  --color-ruby-deep: #C93E63;
  --color-ruby-soft: #F8D9E2;
  --font-base: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --shadow-soft: 0 14px 34px rgba(36, 52, 87, .10);
  --shadow-card: 0 10px 26px rgba(36, 52, 87, .08);
  --shadow-ruby: 0 12px 26px rgba(226, 85, 120, .24);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.75;
  background:
    radial-gradient(circle at 8% 6%, rgba(221, 243, 255, .96), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(201, 199, 248, .56), transparent 30%),
    radial-gradient(circle at 82% 86%, rgba(248, 217, 226, .48), transparent 26%),
    linear-gradient(180deg, #fff 0%, #F8FBFF 48%, #F6F4FF 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .4;
  background-image:
    linear-gradient(rgba(36, 52, 87, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 52, 87, .03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 74%);
}

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

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

button {
  font-family: inherit;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 920px;
}

.section-pad {
  padding: 88px 0;
}

.section-tint {
  background: rgba(255, 255, 255, .35);
  border-block: 1px solid rgba(221, 227, 242, .55);
}

.page-bg-orb,
.page-bg-gem {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.page-bg-orb {
  border-radius: 50%;
  filter: blur(6px);
}

.orb-1 {
  width: 260px;
  height: 260px;
  right: -90px;
  top: 110px;
  background: rgba(201, 199, 248, .38);
}

.orb-2 {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: 90px;
  background: rgba(221, 243, 255, .66);
}

.page-bg-gem,
.logo-gem,
.mini-gem,
.thumb-gem {
  background:
    radial-gradient(circle at 30% 24%, #fff2f6 0%, #ffd0dc 17%, transparent 26%),
    linear-gradient(135deg, #ff9eb5, var(--color-ruby), var(--color-ruby-deep));
  clip-path: polygon(50% 0%, 90% 25%, 100% 60%, 72% 100%, 28% 100%, 0% 60%, 10% 25%);
  box-shadow: 0 4px 12px rgba(226, 85, 120, .26);
}

.page-bg-gem {
  width: 34px;
  height: 34px;
  opacity: .18;
}

.gem-1 {
  right: 11vw;
  top: 26vh;
  transform: rotate(18deg);
}

.gem-2 {
  left: 8vw;
  top: 62vh;
  transform: rotate(-18deg) scale(.74);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 20px;
  pointer-events: none;
}

.header-shell {
  width: min(100%, var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .94);
  box-shadow: 0 14px 28px rgba(36, 52, 87, .10);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  transition: .22s ease;
}

.site-header.is-scrolled .header-shell {
  box-shadow: 0 18px 34px rgba(36, 52, 87, .14);
  background: rgba(255, 255, 255, .88);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-navy);
  font-weight: 900;
  letter-spacing: .03em;
  white-space: nowrap;
}

.logo-gem {
  width: 18px;
  height: 18px;
}

.mini-gem {
  display: inline-block;
  width: 13px;
  height: 13px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.global-nav a {
  font-size: .82rem;
  font-weight: 900;
  color: var(--color-navy);
  padding: 8px 10px;
  border-radius: var(--radius-full);
  transition: .22s;
}

.global-nav a:hover {
  color: var(--color-ruby);
  background: rgba(226, 85, 120, .10);
}

.global-nav .nav-contact {
  background: linear-gradient(135deg, var(--color-ruby), var(--color-ruby-deep));
  color: var(--color-white);
  box-shadow: var(--shadow-ruby);
}

.global-nav .nav-contact:hover {
  color: var(--color-white);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(221, 243, 255, .74);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-navy);
  border-radius: 999px;
  transition: .22s;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  padding-top: 132px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(72vw, 900px);
  height: min(72vw, 900px);
  right: -16vw;
  top: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.96) 0 12%, transparent 13%),
    radial-gradient(circle, rgba(221,243,255,.92) 0 34%, rgba(201,199,248,.42) 56%, transparent 70%);
  opacity: .82;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  gap: 26px;
  align-items: center;
}

.hero-copy {
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ruby);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.center-eyebrow {
  justify-content: center;
}

.hero h1 {
  color: var(--color-navy);
  font-size: clamp(1.9rem, 3.9vw, 3.2rem);
  line-height: 1.28;
  letter-spacing: .02em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero-lead {
  color: var(--color-muted);
  font-weight: 700;
  font-size: 1rem;
  max-width: 720px;
  margin-inline: auto;
  text-wrap: pretty;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: .22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-ruby), var(--color-ruby-deep));
  color: var(--color-white);
  box-shadow: var(--shadow-ruby);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(226, 85, 120, .30);
}

.btn-secondary {
  background: rgba(255, 255, 255, .88);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-ruby);
  color: var(--color-ruby);
  transform: translateY(-2px);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}

.hero-note span {
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 7px 11px;
  color: var(--color-navy);
  font-weight: 900;
  font-size: .78rem;
  backdrop-filter: blur(8px);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.hero-gem-backdrop {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.98) 0 14%, transparent 15%),
    radial-gradient(circle, rgba(221,243,255,.95) 0 34%, rgba(201,199,248,.58) 56%, transparent 72%);
  filter: drop-shadow(0 26px 44px rgba(36, 52, 87, .10));
}

.hero-gem-accent {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(221,243,255,.48), rgba(201,199,248,.32));
  clip-path: polygon(50% 0%, 86% 20%, 100% 60%, 70% 100%, 30% 100%, 0% 60%, 14% 20%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 16px 34px rgba(36,52,87,.10);
}

.hero-gem-accent-1 {
  width: 70px;
  height: 108px;
  right: 34px;
  top: 92px;
  transform: rotate(16deg);
}

.hero-gem-accent-2 {
  width: 56px;
  height: 82px;
  left: 34px;
  top: 220px;
  transform: rotate(-18deg);
}

.hero-gem-accent-3 {
  width: 46px;
  height: 66px;
  right: 94px;
  bottom: 92px;
  transform: rotate(-10deg);
}

.character-gem {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  height: 600px;
  clip-path: polygon(50% 0%, 84% 12%, 100% 42%, 82% 100%, 18% 100%, 0% 42%, 16% 12%);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(221,243,255,.40) 34%, rgba(201,199,248,.30) 72%, rgba(255,255,255,.48)),
    radial-gradient(circle at 46% 28%, rgba(255,255,255,.94), transparent 24%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 28px 60px rgba(36,52,87,.16);
  overflow: hidden;
}

.character-gem::before {
  content: "";
  position: absolute;
  inset: 16px;
  clip-path: polygon(50% 0%, 84% 12%, 100% 42%, 82% 100%, 18% 100%, 0% 42%, 16% 12%);
  border: 1px solid rgba(255,255,255,.74);
  background:
    linear-gradient(120deg, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(255deg, rgba(255,255,255,.26), transparent 34%);
  z-index: 2;
  pointer-events: none;
}

.character-gem::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 13%;
  width: 28%;
  height: 62%;
  background: linear-gradient(120deg, rgba(255,255,255,.40), transparent 72%);
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
}

.character-gem-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.character-gem-inner img {
  width: 112%;
  max-width: none;
  height: auto;
  object-fit: cover;
  object-position: center top;
  transform: translateY(24px) scale(1.05);
  filter: drop-shadow(0 24px 22px rgba(36, 52, 87, .14));
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 36px rgba(36,52,87,.12);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 13px 15px;
}

.hero-floating-card span {
  display: block;
  color: var(--color-ruby);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-floating-card strong {
  display: block;
  color: var(--color-navy);
  font-size: .92rem;
  margin-top: 2px;
  text-wrap: balance;
}

.hero-card-left {
  left: 0;
  top: 126px;
}

.hero-card-right {
  right: 0;
  bottom: 170px;
}

.section-title {
  margin-bottom: 26px;
}

.section-title.center {
  text-align: center;
}

.section-title span {
  display: block;
  color: var(--color-ruby);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 2px;
}

.section-title h2 {
  color: var(--color-navy);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
  text-wrap: balance;
}

.section-title.center::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-ruby), var(--color-ruby-soft));
}

.center-text {
  text-align: center;
}

.glass-card,
.contact-box,
.service-card,
.skill-card,
.timeline-box,
.work-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.about-card,
.contact-box,
.legal-card {
  border-radius: var(--radius-lg);
  padding: 30px;
}

.about-card {
  text-align: left;
}

.about-card h3,
.contact-box h2,
.legal-card h3 {
  color: var(--color-navy);
  font-size: 1.4rem;
  line-height: 1.45;
  margin-bottom: 14px;
  text-wrap: balance;
}

.about-card p,
.contact-box p,
.legal-card p {
  color: var(--color-muted);
  font-weight: 700;
  margin-top: 10px;
  text-wrap: pretty;
}

.legal-card h3 {
  font-size: 1.02rem;
  margin-top: 18px;
  margin-bottom: 6px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--color-muted);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 22px 20px 22px 48px;
  min-height: 170px;
  transition: .22s;
}

.service-card:hover,
.skill-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 28px;
  width: 16px;
  height: 16px;
  background:
    radial-gradient(circle at 30% 24%, #fff2f6 0%, #ffd0dc 17%, transparent 26%),
    linear-gradient(135deg, #ff9eb5, var(--color-ruby), var(--color-ruby-deep));
  clip-path: polygon(50% 0%, 90% 25%, 100% 60%, 72% 100%, 28% 100%, 0% 60%, 10% 25%);
}

.service-card h3,
.skill-card h3,
.work-card h3,
.timeline-box h3 {
  color: var(--color-navy);
  font-size: 1.08rem;
  line-height: 1.45;
  margin-bottom: 8px;
  text-wrap: balance;
}

.service-card p,
.skill-card p,
.timeline-box p,
.work-card p {
  color: var(--color-muted);
  font-weight: 700;
  font-size: .94rem;
  text-wrap: pretty;
}

.works-slider {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 58px 44px;
}

.works-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.works-slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, .8, .24, 1);
  will-change: transform;
}

.works-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.work-thumb {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.92), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(226,85,120,.16), transparent 22%),
    linear-gradient(135deg, rgba(221, 243, 255, .88), rgba(201, 199, 248, .62));
}

.work-thumb-inner {
  position: relative;
}

.thumb-label {
  display: inline-block;
  color: var(--color-ruby);
  font-weight: 900;
  font-size: .74rem;
  letter-spacing: .14em;
  margin-bottom: 10px;
}

.work-thumb strong {
  display: block;
  color: var(--color-navy);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  text-wrap: balance;
}

.thumb-gem {
  width: 44px;
  height: 44px;
  margin: 18px auto 0;
  opacity: .76;
}

.work-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.work-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(221, 243, 255, .88);
  color: var(--color-navy);
  font-size: .76rem;
  font-weight: 900;
}

.work-detail {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.work-detail div {
  padding: 12px 13px;
  background: rgba(248, 251, 255, .74);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.work-detail dt {
  color: var(--color-navy);
  font-weight: 900;
  font-size: .84rem;
}

.work-detail dd {
  color: var(--color-muted);
  font-weight: 700;
  font-size: .9rem;
}

.work-detail a {
  color: var(--color-ruby);
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.work-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(226, 85, 120, .08);
  border-left: 4px solid var(--color-ruby);
}

.work-card-coming {
  opacity: .92;
}

.slider-button {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: rgba(255,255,255,.84);
  color: var(--color-navy);
  box-shadow: 0 14px 28px rgba(36,52,87,.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  transition: .22s;
}

.slider-button:hover {
  background: linear-gradient(135deg, var(--color-ruby), var(--color-ruby-deep));
  color: var(--color-white);
  box-shadow: var(--shadow-ruby);
}

.slider-button[disabled] {
  opacity: .45;
  cursor: default;
}

.slider-button-prev {
  left: 0;
}

.slider-button-next {
  right: 0;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 9px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 52, 87, .22);
  cursor: pointer;
  transition: .22s;
}

.slider-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--color-ruby), var(--color-ruby-soft));
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-num {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-ruby), var(--color-ruby-deep));
  color: var(--color-white);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(226, 85, 120, .20);
}

.timeline-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-align: left;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card {
  border-radius: var(--radius-md);
  padding: 22px;
  transition: .22s;
  text-align: left;
}

.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.skill-tags span {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(221, 243, 255, .78);
  color: var(--color-navy);
  font-size: .78rem;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.72);
}

.contact-box {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 84% 18%, rgba(226, 85, 120, .12), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(221, 243, 255, .46));
}

.site-footer {
  background:
    radial-gradient(circle at 80% 20%, rgba(226,85,120,.14), transparent 24%),
    linear-gradient(135deg, #243457, #1e2945);
  color: rgba(255, 255, 255, .86);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr .95fr;
  gap: 30px;
}

.footer-logo {
  color: var(--color-white);
  margin-bottom: 14px;
}

.site-footer p {
  text-wrap: pretty;
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  margin-top: 6px;
}

.site-footer a:hover {
  color: var(--color-ruby-soft);
}

.footer-bottom {
  color: rgba(255, 255, 255, .7);
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-gem-backdrop {
    width: 500px;
    height: 500px;
  }

  .character-gem {
    width: min(100%, 470px);
    height: 560px;
  }

  .service-grid,
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .works-slider {
    padding: 0 0 58px;
  }

  .works-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-thumb {
    min-height: 210px;
  }

  .slider-button {
    top: auto;
    bottom: 2px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .slider-button-prev {
    left: calc(50% - 94px);
  }

  .slider-button-next {
    right: calc(50% - 94px);
  }

  .slider-dots {
    bottom: 14px;
  }
}

@media (max-width: 980px) {
  .global-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    width: 100%;
    text-align: center;
  }

  .menu-button {
    display: block;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .section-pad {
    padding: 64px 0;
  }

  .hero {
    padding-top: 110px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.72rem;
  }

  .hero-lead {
    font-size: .96rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-gem-backdrop {
    width: 380px;
    height: 380px;
  }

  .hero-gem-accent,
  .hero-floating-card {
    display: none;
  }

  .character-gem {
    width: min(100%, 340px);
    height: 410px;
  }

  .character-gem::before {
    inset: 10px;
  }

  .character-gem-inner img {
    width: 118%;
    transform: translateY(16px) scale(1.05);
  }

  .service-grid,
  .skill-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 46px 1fr;
  }

  .about-card,
  .contact-box,
  .legal-card,
  .work-content {
    padding: 22px;
  }

  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .header-shell {
    border-radius: var(--radius-lg);
  }
}


@media (max-width: 620px) {
  .site-logo-image img {
    height: 38px;
    max-width: 170px;
  }

  .footer-logo.site-logo-image img {
    height: 48px;
    max-width: 220px;
  }
}


/* ===== v8: larger header logo and favicon cache fix ===== */
.header-shell {
  min-height: 82px;
}

.site-logo-image {
  line-height: 0;
  flex: 0 0 auto;
}

.site-logo-image img {
  display: block;
  width: auto;
  height: 62px;
  max-width: 300px;
  object-fit: contain;
}

.footer-logo.site-logo-image img {
  height: 68px;
  max-width: 320px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .16));
}

@media (max-width: 980px) {
  .site-logo-image img {
    height: 54px;
    max-width: 250px;
  }
}

@media (max-width: 620px) {
  .header-shell {
    min-height: 72px;
  }

  .site-logo-image img {
    height: 44px;
    max-width: 200px;
  }

  .footer-logo.site-logo-image img {
    height: 54px;
    max-width: 240px;
  }
}


/* ===== v9 final logo sizing override ===== */
.header-shell {
  min-height: 96px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.site-logo-image {
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.site-logo-image img {
  display: block !important;
  width: 220px !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}

.footer-logo.site-logo-image img {
  width: 260px !important;
  height: auto !important;
  max-width: none !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .16));
}

@media (max-width: 980px) {
  .site-logo-image img {
    width: 190px !important;
  }
}

@media (max-width: 620px) {
  .header-shell {
    min-height: 78px !important;
  }

  .site-logo-image img {
    width: 150px !important;
  }

  .footer-logo.site-logo-image img {
    width: 210px !important;
  }
}
