/*
Theme Name: Panu Torstila Liquid Glass
Theme URI: https://panutorstila.fi/
Author: Panu Torstila
Description: Technical liquid-glass portfolio theme for operations, automation, and support systems work.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: panu-liquid
*/

:root {
  --ink: #f7fbff;
  --muted: rgba(247, 251, 255, 0.72);
  --line: rgba(255, 255, 255, 0.22);
  --cyan: #72e4ff;
  --blue: #6ea8ff;
  --green: #9dffcb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #05070b;
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

body,
button,
input,
textarea {
  font-family: "Manrope", Arial, sans-serif;
}

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

.site-bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(114, 228, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(110, 168, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(5, 7, 11, 0.58), rgba(5, 7, 11, 0.96)),
    url("assets/IMG_4213.JPG");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  inset: 0;
  position: fixed;
  z-index: -2;
}

.site-bg::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  opacity: 0.55;
  position: absolute;
}

.shell {
  margin: 0 auto;
  max-width: 1220px;
  padding: 24px;
}

.nav {
  align-items: center;
  backdrop-filter: blur(28px) saturate(170%);
  background: rgba(7, 10, 18, 0.48);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 14px 22px;
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(114, 228, 255, 0.1));
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(114, 228, 255, 0.72);
  display: block;
  height: 10px;
  width: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.hamburger {
  align-items: center;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 44px;
}

.hamburger span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
  width: 17px;
}

.hamburger span:nth-child(2) {
  width: 12px;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: block;
  min-height: calc(100vh - 120px);
  padding: 84px 0 48px;
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  align-items: center;
  color: var(--green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 20px var(--green);
  content: "";
  height: 9px;
  width: 9px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 820px;
}

.gradient-text {
  background: linear-gradient(100deg, #fff, var(--cyan) 48%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: rgba(247, 251, 255, 0.8);
  font-size: 20px;
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, rgba(114, 228, 255, 0.9), rgba(110, 168, 255, 0.82));
  border-color: rgba(255, 255, 255, 0.44);
  color: #061018;
}

.button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-signature {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero-signature img,
.site-footer img {
  filter: invert(1) contrast(1.2);
  object-fit: contain;
  opacity: 0.58;
}

.hero-signature img {
  height: 38px;
  width: 132px;
}

.hero-signature span {
  color: rgba(247, 251, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.glass-panel {
  backdrop-filter: blur(30px) saturate(175%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.status-panel {
  align-self: center;
  overflow: hidden;
  padding: 22px;
}

.system-card {
  background: linear-gradient(145deg, rgba(5, 7, 11, 0.8), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  min-height: 360px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.system-card::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.42;
  position: absolute;
}

.system-card::after {
  background: radial-gradient(circle at 70% 24%, rgba(114, 228, 255, 0.14), transparent 34%);
  content: "";
  inset: 0;
  position: absolute;
}

.system-topline,
.system-node {
  position: relative;
  z-index: 1;
}

.system-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.system-topline span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-topline strong {
  color: var(--muted);
  font-size: 12px;
}

.system-node {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  margin-bottom: 12px;
  padding: 16px;
}

.system-node strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.system-node span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.metric {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
}

.section {
  padding: 60px 0;
}

.section-header {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin: 0;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  max-width: 470px;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  padding: 4px 0 18px;
}

.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-card {
  flex: 0 0 min(78%, 860px);
  overflow: hidden;
  position: relative;
}

.project-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.project-body {
  padding: 24px;
}

.tag {
  color: var(--cyan);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.project-body h3 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.project-body p,
.capability p,
.contact-panel p {
  color: var(--muted);
}

.project-body p {
  font-size: 16px;
  margin: 0;
}

.carousel-controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 8px;
}

.carousel-buttons {
  display: flex;
  gap: 10px;
}

.carousel-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: 22px;
  height: 44px;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 44px;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  background: rgba(255, 255, 255, 0.24);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
  width: 8px;
}

.carousel-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(114, 228, 255, 0.9);
  width: 28px;
}

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

.proof-strip {
  grid-column: 1 / -1;
}

.proof-card {
  align-items: center;
  display: flex;
  gap: 22px;
  padding: 24px 28px;
}

.proof-card strong {
  color: var(--cyan);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
}

.proof-card span {
  color: rgba(247, 251, 255, 0.82);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  max-width: 720px;
}

.toolbox {
  grid-column: 1 / -1;
}

.capability,
.toolkit {
  padding: 26px;
}

.capability h3,
.toolkit h2 {
  font-size: 28px;
  margin: 0 0 20px;
}

.capability p {
  margin: 0 0 20px;
}

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

.chips span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 13px;
}

.contact-section {
  min-height: calc(100vh - 180px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  max-width: 660px;
  padding: 28px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--ink);
  font-size: 16px;
  padding: 13px 14px;
  resize: vertical;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(114, 228, 255, 0.12);
  outline: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 30px;
  padding: 26px 0 10px;
}

.site-footer img {
  height: 30px;
  width: 112px;
}

@media (max-width: 900px) {
  .site-bg {
    background-attachment: scroll;
    background-position: 58% top;
    background-size: auto 100vh;
  }

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

  .hero {
    min-height: auto;
    padding: 64px 0 42px;
  }

  .status-panel {
    align-self: stretch;
  }

  .project-card {
    flex-basis: 86%;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    background: rgba(7, 10, 18, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    min-width: 210px;
    padding: 10px;
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 14px;
  }

  .site-bg {
    background:
      radial-gradient(circle at 20% 10%, rgba(114, 228, 255, 0.22), transparent 34%),
      linear-gradient(180deg, rgba(5, 7, 11, 0.42), rgba(5, 7, 11, 0.97) 62%),
      url("assets/IMG_4213.JPG");
    background-attachment: scroll;
    background-position: 52% top;
    background-repeat: no-repeat;
    background-size: auto 64vh;
  }

  .nav {
    border-radius: 22px;
    padding: 12px 12px 12px 16px;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    gap: 18px;
    padding-top: 46px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  .lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero-signature img {
    height: 32px;
    width: 118px;
  }

  .system-card {
    min-height: auto;
    padding: 18px;
  }

  .system-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .glass-panel {
    border-radius: 24px;
  }

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

  .proof-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .proof-card span {
    font-size: 16px;
  }

  .project-card {
    flex-basis: 100%;
  }

  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .project-body {
    padding: 18px;
  }

  .project-body h3 {
    font-size: 24px;
  }

  .carousel-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 42px 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
