:root {
  --bg: #f7fbfd;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f8fb;
  --line: rgba(15, 40, 60, 0.1);
  --text: #102033;
  --muted: #5c6f82;
  --mint: #0077a2;
  --mint-deep: #005f82;
  --gold: #0077a2;
  --shadow: 0 24px 60px rgba(16, 55, 80, 0.1);
  --radius: 22px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(0, 119, 162, 0.1), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(0, 119, 162, 0.06), transparent 28%),
    linear-gradient(rgba(16, 55, 80, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 55, 80, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-position: center, center, 0 0, 0 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--mint);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.grain,
.orb {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.orb {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}

.orb-a {
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, #b7e4f3 0%, transparent 70%);
}

.orb-b {
  bottom: 8vh;
  left: -14vw;
  background: radial-gradient(circle, #d7eef6 0%, transparent 70%);
}

.site-header,
main,
.site-footer,
.mobile-nav {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(247, 251, 253, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.header-inner,
.section,
.hero,
.footer-inner,
.copyright,
.marquee {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: #4d6275;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, #1a8bb5, var(--mint));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 119, 162, 0.22);
}

.btn-primary:hover {
  background: var(--mint-deep);
}

.btn-ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 119, 162, 0.4);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  padding: 88px 0 56px;
}

.hero-copy {
  max-width: none;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px 64px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0, 119, 162, 0.45);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(0, 119, 162, 0);
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  max-width: none;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--mint);
}

.lede,
.section-intro p,
.about-copy p,
.contact-copy > p,
.case-body p,
.service-body p {
  color: var(--muted);
}

.lede {
  max-width: none;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.hero-stats div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.hero-stats div:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-stats dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.queue-preview {
  position: relative;
  width: min(100%, 420px);
}

.queue-glow {
  position: absolute;
  inset: 32px;
  border-radius: 28px;
  background: rgba(14, 165, 233, 0.22);
  filter: blur(36px);
}

.queue-card {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(7, 89, 133, 0.12);
  backdrop-filter: blur(16px);
  animation: floaty 6s ease-in-out infinite;
}

.queue-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.queue-wait {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.queue-wait svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.queue-name {
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.queue-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.queue-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.queue-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
  animation: liveping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes liveping {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

.queue-tickets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  align-items: stretch;
}

.queue-ticket {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
}

.queue-ticket p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.queue-ticket strong {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.queue-ticket.yours {
  background: linear-gradient(160deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.queue-ticket.yours p {
  color: rgba(255, 255, 255, 0.8);
}

.queue-ticket.serving {
  background: #f8fafc;
  color: #0f172a;
}

.queue-ticket.serving p {
  color: #64748b;
}

.queue-progress {
  margin-top: 24px;
}

.queue-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.queue-progress-meta span:first-child {
  color: #334155;
  font-weight: 700;
}

.queue-progress-meta span:last-child {
  color: #64748b;
}

.queue-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.queue-bar b {
  display: block;
  width: 90%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.queue-clinic {
  margin-top: 24px;
  color: #475569;
  font-size: 16px;
}

.queue-preview-compact {
  width: min(100%, 340px);
}

.queue-preview-compact .queue-card {
  padding: 22px;
  animation: none;
}

.queue-preview-compact .queue-name {
  font-size: 1.25rem;
}

.queue-preview-compact .queue-ticket {
  min-height: 108px;
  padding: 16px;
}

.queue-preview-compact .queue-ticket strong {
  font-size: 2rem;
  line-height: 1;
}

.device {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.device-bar p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.dots,
.dots::before,
.dots::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
}

.dots {
  position: relative;
  display: block;
  box-shadow: 14px 0 0 #f5c542, 28px 0 0 #3ddc97;
}

.live {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(126, 226, 198, 0.12);
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-body {
  padding: 18px;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.kpi,
.queue {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.kpi {
  padding: 16px;
}

.kpi span,
.queue-head span,
.float-card span,
.card-kicker,
.section-index,
.story-label,
.panel-label,
.case-type,
.contact-details span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.kpi small {
  color: var(--muted);
  font-size: 12px;
}

.queue {
  padding: 8px 8px 10px;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 10px 8px;
}

.queue-head h3 {
  font-size: 15px;
}

.queue li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
}

.queue li + li {
  margin-top: 4px;
}

.queue li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(126, 226, 198, 0.14);
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.avatar.gold {
  background: rgba(212, 175, 119, 0.16);
  color: var(--gold);
}

.queue strong {
  display: block;
  font-size: 14px;
}

.queue em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tag-mint {
  background: rgba(126, 226, 198, 0.14);
  color: var(--mint);
}

.float-card {
  position: absolute;
  z-index: 2;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.float-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.float-a {
  top: 8%;
  left: -8%;
  animation: floaty 6s ease-in-out infinite;
}

.float-b {
  right: -6%;
  bottom: 14%;
  animation: floaty 7s ease-in-out infinite reverse;
}

@keyframes floaty {
  50% {
    transform: translateY(-10px);
  }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  width: 100%;
  max-width: none;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 18px 0;
  animation: ticker 28s linear infinite;
}

.marquee-track span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "✦";
  margin-right: 48px;
  color: var(--mint);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 108px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 64px;
  align-items: start;
  max-width: none;
  margin-bottom: 56px;
}

.section-intro .section-index {
  grid-column: 1 / -1;
}

.section-intro h2 {
  margin-bottom: 0;
}

.section-index,
.story-label,
.panel-label {
  margin-bottom: 16px;
}

.section h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 20px;
}

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.card,
.about-panel,
.service,
.case,
.inquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 55, 80, 0.06);
}

.card {
  padding: 28px;
  min-height: 240px;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.card:hover,
.service:hover,
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 119, 162, 0.28);
  background: var(--surface-2);
}

.card-wide {
  background:
    radial-gradient(circle at top right, rgba(0, 119, 162, 0.1), transparent 46%),
    var(--surface);
}

.card h3,
.service h3,
.case h3,
.reasons h3 {
  font-size: 1.35rem;
  margin: 12px 0 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip-row li {
  padding: 7px 11px;
  border: 1px solid rgba(0, 119, 162, 0.18);
  border-radius: 999px;
  background: #eef7fb;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.about-panel,
.inquiry {
  padding: 28px;
}

.reasons li + li {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.service {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 28px;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--mint);
}

.meta {
  margin-top: 14px;
  font-size: 0.95rem;
}

.cases {
  display: grid;
  gap: 20px;
}

.case {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
}

.case-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.case-visual img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(16, 55, 80, 0.12);
}

.case-visual-a {
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 119, 162, 0.12), transparent 40%),
    linear-gradient(160deg, #e8f5fb, #f7fbfd);
}

.case-visual-b {
  background:
    radial-gradient(circle at 70% 80%, rgba(0, 119, 162, 0.1), transparent 42%),
    linear-gradient(160deg, #eef6fa, #ffffff);
}

.ops-preview {
  width: min(100%, 340px);
}

.ops-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(7, 89, 133, 0.12);
  backdrop-filter: blur(16px);
}

.ops-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops-kicker {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.ops-title {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ops-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.ops-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 108px;
  padding: 16px;
  border-radius: 18px;
}

.ops-tile p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.ops-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.ops-tile.now {
  background: linear-gradient(160deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.ops-tile.now p {
  color: rgba(255, 255, 255, 0.8);
}

.ops-tile.was {
  background: #f8fafc;
  color: #0f172a;
}

.ops-tile.was p {
  color: #64748b;
}

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

.ops-depts div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.ops-depts span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-depts strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.ops-foot {
  margin: 18px 0 0;
  color: #475569;
  font-size: 14px;
}

.case-body {
  padding: 32px;
}

.impact {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--mint);
  background: rgba(0, 119, 162, 0.08);
  color: var(--text) !important;
}

.contact {
  padding-bottom: 80px;
}

.contact-details {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.contact-details li {
  display: grid;
  gap: 6px;
}

.contact-details a,
.contact-details strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-details a:hover {
  color: var(--mint);
}

.phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full,
.inquiry .btn,
.form-status {
  grid-column: 1 / -1;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7fbfd;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background-color: #f7fbfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235c6f82' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(0, 119, 162, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 119, 162, 0.12);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #ef8a8a;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--mint);
}

.form-status.is-error {
  color: #ef8a8a;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 14px;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-inner nav a:hover {
  color: var(--text);
}

.copyright {
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;
    position: sticky;
    top: var(--header-h);
    z-index: 29;
    padding: 18px 20px 24px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-nav.is-open,
  .mobile-nav:not([hidden]) {
    display: grid;
    gap: 16px;
  }

  .mobile-nav a {
    font-size: 1.15rem;
    font-weight: 700;
  }

  .hero,
  .bento,
  .about-grid,
  .contact-grid,
  .case,
  .inquiry {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-main,
  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section,
  .hero,
  .footer-inner,
  .copyright {
    width: min(1180px, calc(100% - 28px));
  }

  .section {
    padding: 80px 0;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-inner nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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