:root {
  --bg-0: #f4f0ea;
  --bg-1: #ebe4da;
  --navy-0: #0d2744;
  --navy-1: #143556;
  --navy-2: #1a4468;
  --navy-card: #ffffff;
  --navy-card-hover: #fff8f1;
  --ink: #0d2744;
  --muted: #5c6f86;
  --orange: #f27a2a;
  --orange-hot: #e86a14;
  --orange-deep: #c4540d;
  --line: rgba(13, 39, 68, 0.12);
  --radius: 0;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Syne", "Figtree", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(242, 122, 42, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 45% at 110% 80%, rgba(13, 39, 68, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at -10% 85%, rgba(242, 122, 42, 0.1), transparent 55%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg-0) 45%, var(--bg-1) 100%);
  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -120px;
  top: 18%;
  border-radius: 58% 42% 48% 52% / 46% 54% 46% 54%;
  background: radial-gradient(circle at 35% 35%, rgba(242, 122, 42, 0.14), transparent 70%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: 8%;
  border-radius: 42% 58% 55% 45% / 52% 40% 60% 48%;
  background: radial-gradient(circle at 60% 40%, rgba(13, 39, 68, 0.08), transparent 68%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 1.75rem, 430px);
  margin: 0 auto;
  padding: 2.85rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.brand {
  text-align: center;
  padding: 0.25rem 0 0.5rem;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  width: 100%;
}

.brand__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}

.brand__qr {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0.35rem;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.brand__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.brand__logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 240px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

.brand__vcard {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.brand__vcard:hover {
  background: var(--orange-deep);
}

.brand__vcard span {
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand__desc {
  margin: 0 auto 0.65rem;
  max-width: 34ch;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}

.brand__address {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.brand__mark {
  display: none;
}

.brand__name {
  display: none;
}

.brand__tag {
  display: none;
}

.section-label {
  width: 100%;
  margin: 0.55rem 0 -0.15rem;
  padding: 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-hot);
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 122, 42, 0.55), transparent);
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
}

.link-row .link {
  min-width: 0;
}

.copy-btn {
  width: 44px;
  height: 100%;
  min-height: 70px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--orange-deep);
  filter: none;
  outline: none;
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn.is-copied {
  background: #1fa855;
  color: #fff;
  border-color: transparent;
}

.company .copy-btn {
  width: 40px;
  min-height: 40px;
  height: 40px;
  align-self: center;
  flex-shrink: 0;
}

.company__head {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 0.95rem;
}

.company__head .company__title {
  margin: 0;
}

.company__row {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 0.55rem;
  align-items: center;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1.4rem;
  left: auto;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(120%);
  padding: 0.7rem 1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast__icon {
  flex-shrink: 0;
  display: block;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(0);
}

.toast.is-out {
  opacity: 0;
  transform: translateX(120%);
}

.link {
  --d: 0ms;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 70px;
  padding: 0.75rem 1rem 0.75rem 0.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--navy-card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(13, 39, 68, 0.08);
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d);
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange-deep));
  opacity: 0.85;
}

.links .link:nth-child(1) { --d: 50ms; }
.links .link:nth-child(2) { --d: 90ms; }
.links .link:nth-child(3) { --d: 130ms; }
.links .link:nth-child(4) { --d: 170ms; }
.links .link:nth-child(5) { --d: 210ms; }
.links .link:nth-child(6) { --d: 250ms; }
.links .link:nth-child(7) { --d: 290ms; }
.links .link:nth-child(8) { --d: 330ms; }

.link:hover,
.link:focus-visible {
  transform: translateY(-3px) scale(1.01);
  background: var(--navy-card-hover);
  border-color: rgba(242, 122, 42, 0.45);
  box-shadow:
    0 14px 28px rgba(13, 39, 68, 0.12),
    0 0 0 1px rgba(242, 122, 42, 0.12);
  outline: none;
}

.link:active {
  transform: translateY(-1px) scale(1);
}

.link__icon {
  width: 50px;
  height: 50px;
  margin-left: 0.2rem;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #f3f6f9;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 46, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.link__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.link__icon:has(img[src*="mcaris-logo"]) {
  background: transparent;
  padding: 2px;
}

.link__icon:has(img[src*="mcaris-logo"]) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link__icon--glyph {
  background: linear-gradient(145deg, #fff4e8, #ffe0c2);
  color: var(--orange-deep);
}

.link--wa .link__icon--glyph {
  background: #25d366;
  color: #fff;
}

.link--maps .link__icon--glyph {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.link__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.link__text strong {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.link__text em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__arrow {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.link:hover .link__arrow {
  transform: translateX(3px);
  background: var(--orange-deep);
}

.company {
  width: 100%;
  padding: 1.1rem 1rem 1.15rem;
  background: var(--navy-card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(13, 39, 68, 0.08);
  border-left: 4px solid var(--orange);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.company__title {
  margin: 0;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.company__grid {
  margin: 0;
  display: grid;
  gap: 0.75rem 0.85rem;
}

.company__grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-hot);
}

.company__grid dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}

.company__grid a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 122, 42, 0.45);
}

.company__grid a:hover {
  color: var(--orange-hot);
}

.company__map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--orange);
  border: 0;
}

.company__map:hover {
  background: var(--orange-deep);
  filter: none;
}

.company__map-frame {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #e8eef4;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.company__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.foot {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  line-height: 1.45;
  max-width: 36ch;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

.foot span {
  position: relative;
  padding-bottom: 0.35rem;
  display: inline-block;
}

.foot span::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: var(--orange);
  opacity: 0.55;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(24px, -18px) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .link,
  .foot,
  .section-label {
    animation: none;
  }
  .bg::before,
  .bg::after {
    animation: none;
  }
  .link,
  .link__arrow {
    transition: none;
  }
}
