/* =====================================================
   Turun Datatekniikka Oy — bento-grid layout
   ===================================================== */

:root {
  --ink:        #0D0F14;
  --ink-2:      #181B24;
  --paper:      #F6F3EC;
  --paper-2:    #EAE5D8;
  --spark:      #0080FF;
  --ember:      #FF5500;
  --jade:       #00EEC4;
  --violet:     #C46EFF;

  --gap:    8px;
  --radius: 18px;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ================================================
   FULLSCREEN 3D CANVAS
   ================================================ */

#bento-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================
   BENTO GRID
   ================================================ */

.bento {
  display: grid;
  width: 100dvw;
  height: 100dvh;
  padding: var(--gap);
  gap: var(--gap);

  /* 4 saraketta, 3 riviä */
  grid-template-columns: 1.25fr 1fr 1.1fr 1fr;
  grid-template-rows: 1.35fr 1fr 1fr;

  grid-template-areas:
    "brand  canvas canvas  ai"
    "analyysi canvas canvas data"
    "kone   kone   vis     contact";
}

/* ================================================
   CELL — perustyyli
   ================================================ */

.cell {
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ================================================
   BRÄNDI
   ================================================ */

.cell--brand {
  grid-area: brand;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--paper);
  justify-content: space-between;
}

.brand-logo {
  color: var(--paper);
  flex-shrink: 0;
}

.brand-body {
  margin-top: auto;
}

.brand-name {
  font-family: var(--f-display);
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.brand-name__pre {
  display: block;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.brand-name__main {
  display: block;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 700;
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-top: 5px;
}

.brand-domain {
  font-family: var(--f-mono);
  font-size: 11px;
  opacity: 0.25;
  letter-spacing: 0.06em;
  margin-top: 18px;
}

/* ================================================
   3D CANVAS
   ================================================ */

.cell--canvas {
  grid-area: canvas;
  background: #0D0F14;
  padding: 0;
  justify-content: flex-end;
}

.cell--canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.canvas-label {
  position: relative;
  z-index: 2;
  padding: 18px 22px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.22);
  pointer-events: none;
}

/* ================================================
   TEKOÄLY
   ================================================ */

.cell--ai {
  grid-area: ai;
  background: var(--spark);
  color: var(--paper);
  justify-content: space-between;
}

/* ================================================
   DATA-ANALYYSI
   ================================================ */

.cell--analyysi {
  grid-area: analyysi;
  background: var(--paper);
  color: var(--ink);
  justify-content: space-between;
}

/* ================================================
   DATANHALLINTA
   ================================================ */

.cell--data {
  grid-area: data;
  background: var(--ember);
  color: var(--paper);
  justify-content: space-between;
}

/* ================================================
   KONEOPPIMINEN
   ================================================ */

.cell--kone {
  grid-area: kone;
  background: #0F0A24;
  border: 1px solid rgba(155, 95, 255, 0.15);
  color: #E8D9FF;
  justify-content: space-between;
}

/* ================================================
   VISUALISOINTI
   ================================================ */

.cell--vis {
  grid-area: vis;
  background: #BDFCE8;
  color: #063826;
  justify-content: space-between;
}

/* ================================================
   YHTEYSTIEDOT
   ================================================ */

.cell--contact {
  grid-area: contact;
  background: var(--paper);
  color: var(--ink);
  justify-content: flex-start;
}

/* ================================================
   CELL TYPOGRAFIA
   ================================================ */

.cell-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.38;
  flex-shrink: 0;
}

.cell-title {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  hyphens: auto;
}

.cell--kone .cell-title {
  font-size: clamp(20px, 2vw, 30px);
}

.cell-body {
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.55;
  opacity: 0.7;
  margin-top: auto;
}

/* ================================================
   YHTEYSTIEDOT
   ================================================ */

.cell-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 14px;
}

.contact-email {
  font-family: var(--f-display);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--spark);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: break-word;
  transition: opacity 0.15s;
}

.contact-email:hover { opacity: 0.7; }

.contact-location {
  font-family: var(--f-mono);
  font-size: 11px;
  opacity: 0.35;
  margin-top: auto;
  padding-top: 16px;
}

/* ================================================
   YHTEYSTIEDOT - desc
   ================================================ */

.contact-desc {
  font-family: var(--f-body);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: auto;
}

/* ================================================
   CELL ARROW
   ================================================ */

.cell-arrow {
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  margin-top: auto;
  align-self: flex-end;
  font-family: var(--f-display);
}

/* ================================================
   HOVER — klikattavat solut
   ================================================ */

[data-section] {
  cursor: pointer;
  transition: filter 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

[data-section]:hover {
  transform: scale(1.015);
}

[data-section]:hover .cell-arrow {
  opacity: 0.6;
  transform: translateX(0);
}

[data-section]:active {
  transform: scale(0.978);
  transition-duration: 0.10s;
}

.cell--ai:hover       { filter: brightness(1.08); }
.cell--analyysi:hover { filter: brightness(0.96); }
.cell--data:hover     { filter: brightness(1.08); }
.cell--kone:hover     { filter: brightness(1.12); }
.cell--vis:hover      { filter: brightness(0.96); }

/* ================================================
   DETAIL OVERLAY
   ================================================ */

.detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--detail-bg, var(--ink));
  color: var(--detail-color, var(--paper));
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.detail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

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

.detail.is-open .detail-inner > * {
  animation: detailFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.detail.is-open .detail-inner > *:nth-child(1) { animation-delay: 0.12s; }
.detail.is-open .detail-inner > *:nth-child(2) { animation-delay: 0.22s; }
.detail.is-open .detail-inner > *:nth-child(3) { animation-delay: 0.32s; }
.detail.is-open .detail-inner > *:nth-child(4) { animation-delay: 0.40s; }
.detail.is-open .detail-inner > *:nth-child(5) { animation-delay: 0.47s; }
.detail.is-open .detail-inner > *:nth-child(6) { animation-delay: 0.54s; }

.detail-back {
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 24px;
  padding: 9px 18px 9px 14px;
  margin: clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 28px) 0;
  cursor: pointer;
  transition: background 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.detail-back:hover {
  background: rgba(0, 0, 0, 0.24);
}

.detail-inner {
  flex: 1;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 8vw, 120px) clamp(60px, 8vw, 100px);
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
}

.detail-lead-wrap {
  display: flex;
  flex-direction: column;
}

.detail-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.4;
  margin-bottom: 10px;
}

.detail-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.detail-lead {
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.65;
  opacity: 0.68;
  max-width: 620px;
  margin-top: 22px;
  font-family: var(--f-body);
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.detail-heading {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 18px;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.detail-list li {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  opacity: 0.85;
  padding-left: 20px;
  position: relative;
  line-height: 1.35;
}

.detail-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.35;
  font-weight: 400;
}

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

.detail-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.18);
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.detail-tag:nth-child(4n+1) { border-color: rgba(0,  128,255, 0.40); }
.detail-tag:nth-child(4n+2) { border-color: rgba(255, 85,  0, 0.40); }
.detail-tag:nth-child(4n+3) { border-color: rgba(196,110,255, 0.40); }
.detail-tag:nth-child(4n+4) { border-color: rgba(0,  238,196, 0.40); }

/* ================================================
   DETAIL DEMO CANVAS
   ================================================ */

.detail-demo {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demo-canvas-wrap {
  margin-left: calc(-1 * clamp(24px, 8vw, 120px));
  margin-right: calc(-1 * clamp(24px, 8vw, 120px));
  position: relative;
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.demo-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ember, #FF4A1F);
  opacity: 0.85;
  flex-shrink: 0;
}

.demo-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--detail-color, #fff);
  letter-spacing: -0.02em;
}

.demo-desc {
  font-family: var(--f-body);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
  opacity: 0.65;
  max-width: 60ch;
  margin-top: 4px;
}

.demo-canvas {
  display: block;
  width: 100%;
  height: clamp(360px, 52vh, 560px);
  background: #070910;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: crosshair;
}

.demo-canvas-wrap::before,
.demo-canvas-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}
.demo-canvas-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--detail-bg, #000) 0%, transparent 100%);
}
.demo-canvas-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, var(--detail-bg, #000) 0%, transparent 100%);
}

.demo-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  opacity: 0.28;
  text-align: right;
}

/* ================================================
   DETAIL EMPOR CTA
   ================================================ */

.detail-empor {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 66, 255, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(24px, 3vw, 36px);
}

.detail-empor__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 20px;
}

.detail-empor__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.detail-empor__brand {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 14px;
}

.detail-empor__desc {
  font-family: var(--f-body);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.65;
  opacity: 0.65;
  max-width: 500px;
}

.detail-empor__cta {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.detail-empor__cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}

/* ================================================
   PRICE SECTION
   ================================================ */

.price-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-item {
  padding: 20px 24px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-item__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-item__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.38;
  flex-shrink: 0;
}

.price-item__name {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.2;
  flex: 1;
}

.price-item__note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: 0.65;
  white-space: nowrap;
}

.price-item__tiers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.price-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  flex: 1;
  min-width: 130px;
}

.price-tier--l {
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-color: color-mix(in srgb, currentColor 28%, transparent);
}

.price-tier--l .price-tier__badge {
  opacity: 0.85;
}

.price-tier__badge {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.5;
}

.price-tier__value {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.price-tier__value small {
  font-size: 0.62em;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 2px;
  letter-spacing: 0;
}

.price-item--custom .price-item__custom {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: -0.01em;
}

/* Package cards (tietoa-sivu) */

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

.package-card {
  padding: 20px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.package-card__label {
  font-family: var(--f-display);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.package-card__desc {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.45;
}

.package-card__price {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: -0.02em;
}

.price-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.45;
  margin-top: 4px;
}

/* Firewall tier cards */

.fw-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fw-tier {
  padding: 20px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fw-tier--highlight {
  background: color-mix(in srgb, currentColor 11%, transparent);
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  position: relative;
}

.fw-tier--highlight::before {
  content: 'SUOSITELTU';
  position: absolute;
  top: -1px;
  right: 16px;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  background: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 0 0 6px 6px;
  opacity: 0.7;
}

.fw-tier__top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fw-tier__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.4;
}

.fw-tier__label {
  font-family: var(--f-display);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fw-tier__where {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  opacity: 0.5;
  text-transform: uppercase;
}

.fw-tier__features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.fw-tier__features li {
  font-family: var(--f-body);
  font-size: 13px;
  opacity: 0.75;
  padding-left: 14px;
  position: relative;
}

.fw-tier__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.fw-tier__price {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

/* Trust bar */

.trust-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 7px 16px;
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.trust-icon {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .fw-tier-grid {
    grid-template-columns: 1fr;
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
  .price-item__tiers {
    flex-direction: column;
  }
  .price-tier {
    min-width: 0;
  }
}

/* CTA-nappi detail-näkymässä */
.detail-cta-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.detail-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--detail-color, var(--paper));
  color: var(--detail-bg, var(--ink));
  font-family: var(--f-display);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.15s;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.detail-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.30);
  opacity: 0.90;
}

/* ================================================
   DETAIL RESPONSIVE
   ================================================ */

@media (max-width: 640px) {
  .detail-cols {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   TABLET (2 saraketta)
   ================================================ */

@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }

  .bento {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "brand   ai"
      "canvas  canvas"
      "analyysi data"
      "kone    kone"
      "vis     contact";
  }

  .cell--canvas { min-height: 300px; }
  .cell--canvas canvas { height: 300px !important; }
}

/* ================================================
   MOBIILI (1 sarake)
   ================================================ */

@media (max-width: 520px) {
  :root { --gap: 6px; --radius: 14px; }

  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "canvas"
      "ai"
      "analyysi"
      "data"
      "kone"
      "vis"
      "contact";
  }

  .cell--canvas { min-height: 260px; }
  .cell--canvas canvas { height: 260px !important; }
  .cell { min-height: 140px; }
  .cell--brand { min-height: 160px; }
  .cell--contact { min-height: 140px; }
}
