/* ─── Home page specific styles ─── */
/* Inherits base styles from case-study.css */

/* Section tag */
.hm-section__tag {
  display: block;
  color: var(--cs-accent);
  font-size: 16px;
  font-weight: 400;
  font-family: 'Onest', sans-serif;
  line-height: 1;
}

.hm-section__tag + .hm-section__title {
  margin-top: 8px;
}

.hm-section__title {
  font-family: 'Onest', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cs-text);
  margin: 0;
}

/* ─── Hero Bento ─── */
.hm-hero {
  padding: 40px 0 80px;
}

.hm-hero__bento {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  background: url('../Figma/placeholder_hero1.webp') center/cover no-repeat;
  border-radius: 28px;
  padding: 80px 0 80px 80px;
  min-height: 500px;
  overflow: hidden;
}

/* ─── Hero Blob Background ─── */
.hm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.hm-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0' in='noise' result='gray'/%3E%3CfeColorMatrix type='luminanceToAlpha' in='gray' result='luma'/%3E%3CfeComponentTransfer in='luma' result='inv'%3E%3CfeFuncA type='linear' slope='-1' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeFlood flood-color='%23060508' flood-opacity='1' result='bg'/%3E%3CfeComposite in='bg' in2='inv' operator='in'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 2;
}

.hm-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  z-index: 1;
}

.hm-hero__blob--1 {
  width: 65%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, #ff0080 0%, #cc0060 40%, transparent 70%);
  top: -30%;
  left: -15%;
  opacity: 0.9;
  animation: hm-blob-1 9s ease-in-out infinite;
}

.hm-hero__blob--2 {
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 55% 45%, #00ff88 0%, #00cc66 40%, transparent 70%);
  top: -25%;
  right: -5%;
  opacity: 0.75;
  animation: hm-blob-2 12s ease-in-out infinite;
}

@keyframes hm-blob-1 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(110px, 75px) scale(1.13); }
  45%  { transform: translate(-55px, 35px) scale(0.87); }
  70%  { transform: translate(45px, -55px) scale(1.09); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes hm-blob-2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-90px, 60px) scale(0.88); }
  55%  { transform: translate(70px, -45px) scale(1.15); }
  80%  { transform: translate(-30px, 40px) scale(0.93); }
  100% { transform: translate(0, 0) scale(1); }
}

.hm-hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hm-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hm-hero__pill {
  padding: 8px 18px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 1000px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Spline Sans', sans-serif;
  letter-spacing: 0.3px;
}

.hm-hero__title {
  font-family: 'Onest', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin: 0;
}

.hm-hero__name {
  color: white;
}

.hm-hero__highlight {
  background: linear-gradient(135deg, var(--cs-accent), #08ADFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hm-hero__desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0;
}

.hm-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 1000px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
  font-size: 18px;
  line-height: 1;
}

.btn__icon svg {
  display: block;
}

.hm-btn:hover .btn__icon {
  transform: translateX(4px);
}

.hm-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 62px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: white;
  background:
    radial-gradient(ellipse 45.58% 139.58% at 49.66% -0%, rgba(0, 34, 255, 0.20) 0%, rgba(0, 34, 255, 0) 100%),
    radial-gradient(ellipse 50.51% 97.60% at 49.49% 105.82%, rgba(96, 229, 229, 0.20) 0%, rgba(0, 43, 153, 0.20) 90%);
  box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.12), 0px 0px 14.3px rgba(0, 233.75, 255, 0), 0px 3px 2.9px rgba(21, 33, 91, 0);
  outline: 1px solid rgba(0, 217, 255, 0.6);
  outline-offset: -1px;
  backdrop-filter: blur(2px);
  transition: background 0.3s ease-out, box-shadow 0.3s ease-out, outline-color 0.3s ease-out, color 0.3s ease-out;
}

.hm-btn--primary:hover {
  background:
    radial-gradient(ellipse 45.58% 139.58% at 49.66% -0%, rgba(0, 34, 255, 0.45) 0%, rgba(0, 34, 255, 0) 100%),
    radial-gradient(ellipse 50.51% 97.60% at 49.49% 105.82%, rgba(96, 229, 229, 0.45) 0%, rgba(0, 43, 153, 0.45) 90%);
  box-shadow: inset 0 0 14px rgba(0, 217, 255, 0.6), 0px 0px 14.3px rgba(0, 233.75, 255, 0.18), 0px 3px 2.9px rgba(21, 33, 91, 0.23);
  outline-color: rgba(0, 217, 255, 0.9);
  color: white;
}

.hm-btn--outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.2s ease;
}

.hm-btn--outline:hover {
  background: white;
  color: #0a0a23;
  border-color: white;
}

/* Hero visual (Spline 3D) */
.hm-hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  border-radius: 0 28px 28px 0;
}

.hm-hero__visual iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hm-hero__visual-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-hero__visual.iframe-ready iframe {
  opacity: 1;
  visibility: visible;
}

/* ─── About ─── */
.hm-about {
  padding: 100px 0;
}

.hm-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.hm-about__left {
  display: flex;
  flex-direction: column;
}

.hm-about__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hm-about__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hm-about__content p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin: 0;
  font-family: 'Spline Sans', sans-serif;
}

.hm-about__content strong {
  color: var(--cs-text);
  font-weight: 700;
}

.hm-about__muted {
  color: #999 !important;
  font-style: italic;
}

.hm-about__stats {
  display: flex;
  gap: 16px;
  padding-top: 32px;
  margin-top: 16px;
  width: 100%;
}

.hm-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: #F8FAFF;
  border: 1px solid var(--cs-border);
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 120px;
  aspect-ratio: 1;
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hm-stat__bg {
  position: absolute;
  right: -20px;
  bottom: 10px;
  width: 144px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hm-stat__icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  z-index: 1;
}

.hm-stat__number {
  font-family: 'Onest', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cs-accent);
  line-height: 1;
}

.hm-stat__label {
  font-family: 'Spline Sans', sans-serif;
  font-size: 12px;
  color: #888;
}

/* ─── Work ─── */
.hm-work {
  padding: 100px 0;
  background: #F8FAFF;
}

.hm-work__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.hm-work__pill {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 28px;
  background: white;
  border-radius: 1000px;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 8px 32px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.hm-work__pill:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 4px 16px rgba(28, 78, 254, 0.15);
}

.hm-work__pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hm-work__pill-text span:first-child {
  color: #1B1F24;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Onest', sans-serif;
  line-height: 1.2;
  white-space: nowrap;
}

.hm-work__pill-email {
  color: var(--cs-accent);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Onest', sans-serif;
  text-decoration: underline;
  line-height: 1.5;
  white-space: nowrap;
}

.hm-work__pill-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hm-work__pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hm-work__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hm-work__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0;
}

.hm-work__row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-work__row-tags span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 1000px;
  background: var(--cs-tag-bg);
  color: var(--cs-tag-text);
  font-family: 'Spline Sans', sans-serif;
}

.hm-work__row-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px;
}

.hm-work__row-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.hm-work__row-bottom h3 {
  font-family: 'Onest', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--cs-text);
}

.hm-work__row-num {
  color: var(--cs-accent);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  display: block;
  font-family: 'Onest', sans-serif;
  line-height: 1;
}

.hm-work__row-body p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin: 0;
  font-family: 'Spline Sans', sans-serif;
  max-width: 480px;
}

.hm-work__row-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 1000px;
  border: 1px solid #A0ADDD;
  color: var(--cs-text);
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
  transition: color 0.2s 0.1s;
}

.hm-work__row-cta svg {
  display: block;
}

.hm-work__row-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--cs-text);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: -1;
}

.hm-work__row-cta:hover {
  color: white;
}

.hm-work__row-cta:hover::before {
  opacity: 1;
}

.hm-work__row-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  will-change: transform;
  align-self: end;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-visible .hm-work__row-img {
  transform: translateY(0);
}

/* ─── About Tags (draggable) ─── */
.hm-about__tags {
  flex: 1;
  display: flex;
  margin-top: 16px;
}

.hm-about__tags-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  background: #F8FAFF url('../assets/Backgreound1.svg') center/90% no-repeat;
  border: 1px solid var(--cs-border);
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
}

.hm-about__tags-glow {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
  height: 90%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hm-about__tags-glow.visible {
  opacity: 1;
}

.hm-about__tags-glow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hm-about__tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: color-mix(in srgb, var(--tag-clr) 5%, white);
  border: 1px solid color-mix(in srgb, var(--tag-clr) 60%, white);
  border-radius: 1000px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-text);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1;
  will-change: transform;
  box-shadow: 0 0 4px color-mix(in srgb, var(--tag-clr) 12%, transparent), 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.hm-about__tag-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tag-clr);
  flex-shrink: 0;
}

.hm-about__tag:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hm-about__tag.dragging {
  cursor: grabbing;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ─── Web Design ─── */
.hm-webdesign {
  padding: 96px 0;
}

.hm-webdesign__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  margin-bottom: 48px;
}

.hm-webdesign__header-right p {
  color: #6B7280;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 420px;
  margin: 0;
}

.hm-webdesign__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hm-webdesign__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.hm-webdesign__card-body {
  padding: 0;
}

.hm-webdesign__card-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1A1C23;
  margin: 0 0 8px;
}

.hm-webdesign__card-body p {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

.hm-webdesign__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #E8ECF8;
  border-radius: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.hm-webdesign__card-img img,
.hm-webdesign__card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Gallery ─── */
.hm-gallery {
  padding: 100px 0 0;
  margin-bottom: 24px;
}

.hm-gallery__header {
  margin-bottom: 48px;
}

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

.hm-gallery__card {
  border-radius: 21px;
  padding: 40px;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cs-border);
}


.hm-gallery__card:hover {
  transform: scale(1.02);
}

.hm-gallery__card--solid {
  background: #F6F8FF;
}
.hm-gallery__card--solid .hm-gallery__card-body {
  color: var(--cs-text);
}
.hm-gallery__card--solid .hm-gallery__card-body h3 {
  color: var(--cs-text);
}
.hm-gallery__card--solid .hm-gallery__card-body p {
  color: var(--cs-text-muted);
  opacity: 1;
}

.hm-gallery__card--wide {
  grid-row: span 2;
}

.hm-gallery__card-body {
  position: relative;
  z-index: 1;
  color: white;
}

.hm-gallery__card-body h3 {
  font-family: 'Onest', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hm-gallery__card-body p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
  font-family: 'Spline Sans', sans-serif;
}

.hm-gallery__card-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cs-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.hm-gallery__card-arrow svg {
  display: block;
}

.hm-gallery__card:hover .hm-gallery__card-arrow {
  opacity: 1;
  transform: translateY(0);
}

.hm-gallery__card-arrow--wip {
  cursor: default;
  overflow: hidden;
  justify-content: flex-end;
  padding-right: 10px;
  box-sizing: border-box;
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.hm-gallery__card:hover .hm-gallery__card-arrow.hm-gallery__card-arrow--wip {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
.hm-gallery__card-arrow--wip .arrow-icon { transition: transform 0.3s; flex-shrink: 0; }
.hm-gallery__card-arrow--wip:hover { width: 140px; border-radius: 1000px; padding: 0 14px 0 12px; gap: 6px; }
.hm-gallery__card-arrow--wip:hover .wip-text { opacity: 1 !important; }
.hm-gallery__card-arrow--wip:hover .arrow-icon { transform: rotate(180deg); }
.hm-gallery__card--branding {
  cursor: default;
  background: #121215 url('../Figma/brandign.webp') center / cover no-repeat;
}
.hm-gallery__card--branding .wip-text { font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; }

/* ─── Contact Bento ─── */
.hm-contact {
  padding: 0 0 100px;
}

.hm-contact__bento {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--cs-card-bg);
  border: 1px solid var(--cs-border);
  border-radius: 28px;
  padding: 24px 24px 24px 56px;
  overflow: hidden;
}

.hm-contact__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hm-contact__title {
  font-family: 'Onest', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--cs-text);
}

.hm-contact__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cs-text-muted);
  margin: 0;
  font-family: 'Spline Sans', sans-serif;
  max-width: 420px;
}

.hm-contact__email {
  font-family: 'Onest', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cs-accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
  padding-bottom: 4px;
  display: inline-block;
}

.hm-contact__email:hover {
  border-bottom-color: var(--cs-accent);
}

.hm-contact__right {
  flex: 1;
  height: 469px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--cs-card-bg);
}

#contact-shader-mount {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#contact-shader-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
#contact-send-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 2;
  width: 55%;
  max-width: 320px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  animation: sendFadeIn 1s ease 0.5s forwards;
  color: var(--cs-accent);
}
#contact-send-icon svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
@keyframes sendFadeIn {
  to { opacity: 1; }
}

.hm-contact__linkedin {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--cs-text);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--cs-border);
  border-radius: 100px;
  transition: all 0.2s ease;
}

.hm-contact__linkedin:hover {
  background: var(--cs-text);
  color: var(--cs-bg);
  border-color: var(--cs-text);
}

.hm-contact__linkedin svg {
  flex-shrink: 0;
}

.hm-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hm-contact__email-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--cs-text);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--cs-border);
  border-radius: 100px;
  transition: all 0.2s ease;
}

.hm-contact__email-btn:hover {
  background: var(--cs-text);
  color: var(--cs-bg);
  border-color: var(--cs-text);
}

.hm-contact__email-btn svg {
  flex-shrink: 0;
}

.hm-contact__or {
  font-family: 'Spline Sans', sans-serif;
  font-size: 13px;
  color: var(--cs-text-muted);
}

/* ─── Mobile ─── */
@media (max-width: 1024px) {
  .hm-hero__bento {
    grid-template-columns: 1fr;
    padding: 0;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(6,14,24,0.7) 0%, rgba(6,14,24,0.15) 40%, rgba(6,14,24,0.65) 100%),
      url('../Figma/placeholder_hero1.webp') center/cover no-repeat;
  }
  .hm-hero__text { padding: 48px 48px 36px; gap: 24px; }
  .hm-hero__pills { gap: 12px; }
  .hm-hero__pill { padding: 8px 18px; font-size: 14px; }
  .hm-hero__title { font-size: 44px; letter-spacing: -0.02em; line-height: 1.12; }
  .hm-hero__desc { font-size: 17px; line-height: 1.65; }
  .hm-hero__actions { flex-direction: column; gap: 14px; margin-top: 4px; }
  .hm-btn,
  .hm-btn--primary,
  .hm-btn--outline { justify-content: center; padding: 16px 28px; font-size: 15px; }
  .hm-hero__visual { position: relative; width: 100%; height: 400px; border-radius: 0 0 28px 28px; }
  .hm-hero__visual iframe,
  .hm-hero__visual.iframe-ready iframe {
    display: none;
  }
  .hm-hero__visual-img { display: block; }

  .hm-about { padding: 80px 0; }
  .hm-about__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hm-about__tags-box { min-height: 320px; }
  .hm-about__stats { gap: 32px; }

  .hm-work { padding: 80px 0; }
  .hm-gallery { padding: 80px 0 0; }
  .hm-contact { padding: 0 0 80px; }
  .hm-section__title { font-size: 36px; }
  .hm-work__pill-text span:first-child { font-size: 13px; }
  .hm-work__pill-email { font-size: 13px; }
  .hm-work__pill-avatar { width: 36px; height: 36px; }
}

@media (max-width: 768px) {
  .hm-webdesign__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hm-webdesign__header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .hm-webdesign__header-right p {
    max-width: none;
  }
  .hm-webdesign__card {
    align-items: flex-start;
    text-align: left;
  }
  .hm-webdesign__card-img {
    width: 100%;
  }
  .hm-gallery__grid { grid-template-columns: 1fr; }
  .hm-gallery__card--wide { grid-row: auto; }
  .hm-gallery__card-arrow { opacity: 1; transform: translateY(0); }

  .hm-about__stats { flex-wrap: wrap; gap: 12px; }
  .hm-stat { flex: 1; min-width: 100px; padding: 16px 20px; }
  .hm-stat__icon { position: static; top: auto; left: auto; margin-bottom: auto; margin-top: 8px; }
  .hm-stat__number { font-size: 28px; }

  .hm-work__header { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .hm-work__pill-text { align-items: flex-start; }
  .hm-work__pill-text span:first-child { font-size: 14px; }
  .hm-work__pill-email { font-size: 13px; }
  .hm-work__pill-avatar { width: 44px; height: 44px; }
  .hm-work__pill { gap: 10px; padding: 6px 6px 6px 24px; }
  .hm-work__list { gap: 24px; }
  .hm-work__row { grid-template-columns: 1fr; }
  .hm-work__row-body { padding: 24px; gap: 18px; }
  .hm-work__row-tags { gap: 6px; }
  .hm-work__row-tags span { font-size: 12px; padding: 4px 12px; }
  .hm-work__row-bottom h3 { font-size: 34px; }
  .hm-work__row-num { font-size: 28px; }
  .hm-work__row-bottom { gap: 12px; }
  .hm-work__row-body p { font-size: 14px; line-height: 1.6; }
  .hm-work__row-cta { font-size: 13px; }


  .hm-contact { padding: 0 0 64px; }
  .hm-contact__bento { flex-direction: column; gap: 24px; padding: 40px; }
  .hm-contact__right { width: 100%; height: 300px; }
  .hm-contact__title { font-size: 28px; }
  .hm-contact__email { font-size: 18px; }
  .hm-contact__actions { flex-direction: column; width: 100%; align-items: center; }
  .hm-contact__email-btn,
  .hm-contact__linkedin { width: 100%; justify-content: center; box-sizing: border-box; }
  .hm-contact__or { margin: -4px 0; }
}

@media (max-width: 480px) {
  .hm-section__title { font-size: 28px; margin: 8px 0 0; }
  .hm-hero { padding: 16px 0 36px; }
  .hm-hero__bento { border-radius: 16px; }
  .hm-hero__text { padding: 28px 24px 24px; gap: 18px; }
  .hm-hero__pills { gap: 8px; }
  .hm-hero__pill { padding: 6px 14px; font-size: 12px; }
  .hm-hero__title { font-size: 34px; letter-spacing: -0.02em; line-height: 1.15; }
  .hm-hero__desc { font-size: 15px; line-height: 1.65; }
  .hm-hero__actions { flex-direction: column; gap: 10px; margin-top: 2px; }
  .hm-btn,
  .hm-btn--primary,
  .hm-btn--outline { justify-content: center; padding: 14px 24px; font-size: 14px; }
  .hm-hero__visual { height: 320px; }

  .hm-about { padding: 40px 0; }
  .hm-about__tags-box { min-height: 260px; border-radius: 14px; }
  .hm-about__tag { padding: 8px 18px; font-size: 13px; }
  .hm-about__content p { font-size: 15px; }
  .hm-about__stats { gap: 10px; padding-top: 24px; }
  .hm-stat { padding: 14px 16px; min-width: 80px; }
  .hm-stat__icon { position: static; top: auto; left: auto; margin-bottom: auto; margin-top: 10px; }
  .hm-stat__number { font-size: 24px; }
  .hm-stat__label { font-size: 11px; }

  .hm-work { padding: 40px 0; }
  .hm-work__pill { gap: 6px; padding: 4px 4px 4px 18px; }
  .hm-work__pill-text { align-items: flex-start; }
  .hm-work__pill-text span:first-child { font-size: 14px; }
  .hm-work__pill-email { font-size: 13px; }
  .hm-work__pill-avatar { width: 32px; height: 32px; }
  .hm-work__row { border-radius: 20px; }
  .hm-work__row-body { padding: 20px; gap: 12px; }
  .hm-work__row-tags span { font-size: 11px; padding: 4px 10px; }
  .hm-work__row-bottom h3 { font-size: 26px; }
  .hm-work__row-num { font-size: 22px; }

  .hm-gallery { padding: 40px 0 0; }
  .hm-gallery__header { margin-bottom: 24px; }
  .hm-gallery__grid { gap: 12px; }
  .hm-gallery__card { padding: 24px; min-height: 160px; border-radius: 16px; }
  .hm-gallery__card-body h3 { font-size: 22px; }
  .hm-gallery__card-body p { font-size: 13px; }

  .hm-contact { padding: 0 0 40px; }
  .hm-contact__bento { padding: 24px 16px; gap: 16px; }
  .hm-contact__right { height: 200px; }
  .hm-contact__title { font-size: 24px; }
  .hm-contact__desc { font-size: 15px; }
  .hm-contact__email { font-size: 16px; }
  .hm-contact__actions { flex-direction: column; width: 100%; align-items: center; }
  .hm-contact__email-btn,
  .hm-contact__linkedin { width: 100%; justify-content: center; box-sizing: border-box; }
  .hm-contact__or { margin: -4px 0; }
}


