/* Polymorph — site styles */
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --muted: #475063;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --soft: #f1f4f8;
  --line: #0f172a;
  --white: #ffffff;
  --radius: 10px;
  --max: 1160px;
  --header-h: 88px;
}

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

html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { margin: 0 0 1em; }

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e3e7ee;
}
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 64px; min-height: var(--header-h); }
.brand img { width: 230px; height: auto; }
.main-nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: 10px 16px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem;
}
.main-nav a:hover { background: var(--soft); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  padding: 16px 28px; border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: var(--white);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.btn-light:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Sections */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.section-head p { font-size: 1.2rem; }

/* Hero */
.hero { padding: 24px 0 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: #0b1a33 url("/images/hero.webp") center / cover no-repeat;
  min-height: 600px; display: flex; align-items: center;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 17, 36, 0.86) 0%, rgba(8, 17, 36, 0.62) 55%, rgba(8, 17, 36, 0.35) 100%);
}
.hero-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; }
.hero-content { position: relative; padding: 72px 0 72px 64px; color: var(--white); }
.hero-tiles { position: relative; list-style: none; margin: 0; padding: 48px 48px 48px 0; display: grid; gap: 16px; }
.tile { height: 132px; perspective: 900px; border-radius: 8px; }
.tile:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.tile-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 0.6s ease; }
.tile:hover .tile-inner, .tile:focus .tile-inner { transform: rotateY(180deg); }
.tile-front, .tile-back {
  position: absolute; inset: 0; border-radius: 8px; padding: 18px 22px;
  display: flex; flex-direction: column; justify-content: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.tile-front { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.tile-big { font-size: 2.4rem; font-weight: 800; line-height: 1.05; }
.tile-small { font-size: 1.05rem; font-weight: 500; }
.tile-back { transform: rotateY(180deg); background: var(--white); color: var(--ink); }
.hero .tile-back p { font-size: 1rem; line-height: 1.45; margin: 0; max-width: none; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); margin-bottom: 0.45em; }
.hero-content p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 680px; margin-bottom: 1.6em; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { position: relative; height: 380px; perspective: 1200px; border-radius: 6px; cursor: default; }
.card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s ease; }
.card:hover .card-inner, .card:focus .card-inner, .card:focus-within .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; inset: 0; border-radius: 6px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card-front {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px;
  background-color: var(--ink); background-size: cover; background-position: center;
}
.card-front::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 45% at center, rgba(8, 17, 36, 0.5) 0%, rgba(8, 17, 36, 0.12) 100%);
}
.card-front h3 { position: relative; color: var(--white); font-size: 2.1rem; line-height: 1.12; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 2px 14px rgba(0, 0, 0, 0.6); }
.card-back {
  transform: rotateY(180deg); background: var(--white); border: 1.5px solid var(--line);
  padding: 36px 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.card-back-title { font-weight: 800; font-size: 1.45rem; line-height: 1.2; margin: 0 0 0.7em; }
.card-back p:last-child { margin: 0; }
.bg-coatings { background-image: url("/images/services/coatings.webp"); }
.bg-adhesives { background-image: url("/images/services/adhesives.webp"); }
.bg-elastomers { background-image: url("/images/services/elastomers.webp"); }
.bg-molding { background-image: url("/images/services/molding.webp"); }
.bg-troubleshooting { background-image: url("/images/services/troubleshooting.webp"); }
.bg-cost { background-image: url("/images/services/cost.webp"); }

/* Training */
.training { background: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.split .btn { margin-top: 12px; }
.training-img { margin-top: 32px; border-radius: var(--radius); width: 100%; }

/* About */
.about .section-head { margin-bottom: 56px; }
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.founder img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4em; }
.founder h3 { font-size: 2rem; margin-bottom: 0.15em; }
.role { color: var(--blue-dark); font-weight: 600; margin-bottom: 1em; }
.about-blocks { max-width: 860px; margin: 88px auto 0; text-align: center; display: grid; gap: 56px; }
.about-blocks h3 { font-size: 2rem; }
.industries-section { padding-bottom: 40px; }
.industries { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.industry {
  position: relative; overflow: hidden; height: 168px; border-radius: 8px;
  border: 1.5px solid #c9d1de; background: var(--soft); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.industry:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.industry svg { width: 44px; height: 44px; fill: none; stroke: var(--blue-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.industry-name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.industry-desc {
  position: absolute; inset: 0; margin: 0; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: var(--blue); color: var(--white); font-size: 1rem; line-height: 1.5;
  transform: translateY(101%); transition: transform 0.35s ease;
}
.industry-desc strong { font-size: 1.1rem; }
.industry:hover .industry-desc, .industry:focus .industry-desc { transform: translateY(0); }

/* Guarantee */
.guarantee { background: var(--blue); color: var(--white); text-align: center; }
.guarantee img { width: 110px; margin: 0 auto 24px; }
.guarantee p { font-size: 1.3rem; max-width: 640px; margin: 0 auto 1.6em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-details a { font-weight: 600; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 1.05rem; }
.req { color: #b42318; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  border: 1.5px solid #7a8396; border-radius: 6px; padding: 14px 16px; background: var(--white); width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hint { font-size: 0.95rem; color: var(--muted); margin: 0; }
.form .btn { width: 100%; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: #067647; }
.form-status.err { color: #b42318; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1.5px solid var(--line); padding: 56px 0 40px; text-align: center; }
.site-footer .container { display: grid; justify-items: center; gap: 22px; }
.footer-logo { width: 200px; }
.social { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.social a { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--blue); color: var(--white); }
.social a:hover { background: var(--ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer p { margin: 0; font-size: 1rem; }

/* Simple page */
.page-content { max-width: 860px; padding-top: 80px; padding-bottom: 100px; }
.page-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* Responsive */
@media (max-width: 1000px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; gap: 0; }
  .hero-content { padding: 56px 40px 8px; }
  .hero-tiles { padding: 16px 40px 48px; grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder { grid-template-columns: 260px 1fr; gap: 36px; }
}
@media (max-width: 1150px) and (min-width: 721px) {
  .header-inner { gap: 24px; }
  .brand img { width: 190px; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 8px 10px; font-size: 1rem; }
}
@media (max-width: 720px) {
  :root { --header-h: 124px; }
  body { font-size: 18px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; padding-bottom: 8px; }
  .brand img { width: 190px; }
  .main-nav { width: calc(100% + 24px); margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { gap: 0; flex-wrap: nowrap; }
  .main-nav a { padding: 8px 11px; font-size: 1rem; white-space: nowrap; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 12px; }
  .hero .container { padding: 0 12px; }
  .hero-card { min-height: 0; }
  .hero-content { padding: 48px 24px 8px; }
  .hero-tiles { padding: 16px 24px 32px; grid-template-columns: 1fr; gap: 12px; }
  .tile { height: 116px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { height: 320px; }
  .industries { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .industry { height: 176px; padding: 16px; }
  .industry svg { width: 36px; height: 36px; }
  .industry-name { font-size: 1rem; }
  .industry-desc { padding: 14px; font-size: 0.9rem; line-height: 1.4; }
  .industry-desc strong { font-size: 0.95rem; }
  .card-front h3 { font-size: 1.8rem; }
  .founder { grid-template-columns: 1fr; text-align: left; }
  .founder img { max-width: 320px; }
  .about-blocks { margin-top: 64px; gap: 44px; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.page-content h2 { font-size: 1.8rem; margin-top: 1.4em; }
.page-content ul { padding-left: 1.2em; }
.page-content li { margin-bottom: 0.4em; }
