/* =================================================================
   BURRI STUDIO — CONTATTI (final section, rebuilt from mockup)
   Left: narrative + primary email card. Right: 3 channel cards.
   ================================================================= */

section.ct-section {
  position: relative; overflow: hidden; background: var(--bg);
  padding: var(--section-py) 0;
}
.ct-section .container { position: relative; z-index: 2; }

/* ── Ambient atmosphere (full-section geometric network) ── */
.ct-atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Living procedural vein network — lines draw, pulse, dissolve, regenerate */
.ct-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ct-vein {
  fill: none; stroke: rgba(52,120,246,0.038); stroke-width: 0.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  animation: ctVein var(--d, 30s) ease-in-out var(--del, 0s) infinite;
}
.ct-vein--bright { stroke: rgba(110,165,255,0.048); }
@keyframes ctVein {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  10%  { opacity: 0.72; }
  46%  { stroke-dashoffset: 0; opacity: 0.88; }
  62%  { opacity: 0.55; }
  74%  { opacity: 0.80; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Premium blue light reflection sweeping across the section */
.ct-sweep {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 48%;
  background: radial-gradient(ellipse 55% 75% at 50% 50%, rgba(80,140,255,0.04), rgba(80,140,255,0.012) 45%, transparent 72%);
  filter: blur(46px);
  opacity: 0; pointer-events: none;
  animation: ctSweep 7s ease-in-out infinite;
}
@keyframes ctSweep {
  0%   { transform: translateX(-70%); opacity: 0; }
  12%  { opacity: 1; }
  38%  { transform: translateX(170%); opacity: 0; }
  100% { transform: translateX(170%); opacity: 0; }
}

/* Subtle film noise */
.ct-noise {
  position: absolute; inset: 0; opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Standard divider matching other sections */
.ct-bar {
  width: 48px; height: 3px; background: var(--ice);
  margin: 26px 0 28px; box-shadow: 0 0 8px var(--ice-glow);
}

.ct-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: start;
}

/* ── Left narrative ── */
.ct-title {
  font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
  color: var(--text); margin: 0;
}
.ct-title .ct-blue { color: var(--ice); }
.ct-copy { font-family: var(--font-body); font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--text-2); margin: 0 0 16px; max-width: 460px; }
.ct-copy .ct-hi { color: var(--ice); }
.ct-copy-strong { font-family: var(--font-body); font-size: 17px; font-weight: 400; color: var(--text); margin: 0 0 36px; }
.ct-copy-strong .ct-hi { color: var(--ice); }

/* Primary email card — horizontal: icon · text block · arrow */
.ct-primary {
  display: flex; flex-direction: row; align-items: center; gap: 20px;
  padding: 22px 26px; border-radius: 16px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--hairline);
  text-decoration: none; color: inherit; max-width: 480px;
  transition: border-color 0.4s var(--ease-out), background 0.4s, transform 0.4s, box-shadow 0.4s;
}
.ct-primary:hover {
  border-color: rgba(52,120,246,0.5); background: rgba(52,120,246,0.06);
  transform: translateY(-2px); box-shadow: 0 24px 52px -28px rgba(0,0,0,0.8), 0 0 28px -12px var(--ice-glow);
}
.ct-primary-ico {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ice); flex-shrink: 0;
}
.ct-primary-ico svg { width: 50px; height: 50px; display: block; }
.ct-primary-txt {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.ct-primary-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em; line-height: 1.25;
}
.ct-primary-sub {
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--text-2); line-height: 1.45;
}
.ct-primary-arrow {
  color: var(--ice); transition: transform 0.45s var(--ease-out);
  display: inline-flex; flex-shrink: 0;
}
.ct-primary-arrow svg { width: 22px; height: 22px; display: block; }

/* ── Right: two channel cards (Instagram + Discord) — independent column ── */
.ct-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-self: start; }
.ct-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006));
  border: 1px solid var(--hairline);
  text-decoration: none; color: inherit;
  transition: border-color 0.4s var(--ease-out), background 0.4s, transform 0.4s, box-shadow 0.4s;
}
.ct-card:hover {
  border-color: rgba(52,120,246,0.4); transform: translateY(-4px);
  box-shadow: 0 28px 56px -30px rgba(0,0,0,0.8), 0 0 30px -14px var(--ice-glow);
}
.ct-card-ico { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--ice); }
.ct-card-ico svg { width: 46px; height: 46px; }
.ct-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.ct-card h3::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ice); opacity: 0.7; margin: 12px auto 16px; }
.ct-card p { font-family: var(--font-body); font-size: 13.5px; font-weight: 300; line-height: 1.6; color: var(--text-2); margin: 0 0 22px; }
.ct-card-link {
  margin-top: auto; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--ice); display: inline-flex; align-items: center; gap: 7px;
}
.ct-card-link svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.ct-card:hover .ct-card-link svg { transform: translateX(4px); }

/* Primary card is now a button — reset native styles */
button.ct-primary { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.ct-primary-arrow { transition: transform 0.45s var(--ease-out); }
.ct-primary[aria-expanded="true"] .ct-primary-arrow { transform: rotate(180deg); }

/* Inline expanding form (below primary email card) */
.ct-form-wrap {
  display: grid; grid-template-rows: 0fr; margin-top: 0;
  transition: grid-template-rows 0.55s var(--ease-out), margin-top 0.55s var(--ease-out);
}
.ct-form-wrap.is-open { grid-template-rows: 1fr; margin-top: 14px; }
.ct-form-inner { overflow: hidden; }
.ct-form {
  border: 1px solid var(--hairline); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.5s var(--ease-out) 0.1s;
}
.ct-form-wrap.is-open .ct-form { opacity: 1; transform: translateY(0); }
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-4);
}
.ct-field input, .ct-field textarea {
  font-family: var(--font-body); font-size: 14px; font-weight: 300; color: var(--text);
  background: rgba(255,255,255,0.025); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 12px 14px; outline: none;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.ct-field input:focus, .ct-field textarea:focus {
  border-color: rgba(52,120,246,0.55); background: rgba(52,120,246,0.04);
}
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-submit {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: var(--ice); border: none; border-radius: 100px;
  padding: 14px 28px; cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s;
}
.ct-submit svg { width: 14px; height: 14px; }
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px var(--ice-glow); }
.ct-submit:disabled { opacity: 0.7; cursor: default; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ct-vein, .ct-sweep { animation: none; }
  .ct-vein { stroke-dashoffset: 0; opacity: 0.5; }
}

/* ── Minimal copyright footer ── */
footer.ct-footer {
  max-height: 60px; display: flex; align-items: center; justify-content: center;
  padding: 20px var(--pad-x); background: var(--bg); border-top: 1px solid var(--hairline);
}
footer.ct-footer span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-4); text-align: center; }
footer.ct-footer .ct-hi { color: var(--ice-soft); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ct-grid { grid-template-columns: 1fr; gap: 48px; }
  .ct-copy, .ct-primary { max-width: none; }
  .ct-arcs { opacity: 0.3; }
}
@media (max-width: 600px) {
  .ct-cards { grid-template-columns: 1fr; }
}
