/* ------------------------------------------------------------
   Tech Meister LLC — Landing page
   Design tokens
   ------------------------------------------------------------ */
:root {
  --ink: #2F343C;          /* slate / dark background */
  --text: #24272D;         /* body text */
  --muted: #4A4F58;        /* secondary text */
  --muted-on-dark: #B8BDC4;
  --soft-on-dark: #D9DBDE;
  --paper: #F4F1EA;        /* page background */
  --paper-2: #ECEAE5;      /* alternate section background */
  --line: #DCD6CA;         /* rules */
  --card: #FFFFFF;
  --accent: #AA7045;       /* copper */
  --accent-hover: #8C5A36;
  --accent-on-dark: #C9A07A;
  --hero-em: #D2A272;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-head: 'Zen Kaku Gothic New', sans-serif;
  --container: 1120px;
  --gutter: 24px;
  --section-pad: clamp(64px, 9vw, 112px);
  --scroll-offset: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
a:hover { color: var(--accent-hover); }

img { display: block; }

p { text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
}

section { scroll-margin-top: var(--scroll-offset); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

/* Section heading ------------------------------------------------ */
.label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section-title {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 40px;
}
.on-dark .label { color: var(--accent-on-dark); }
.on-dark .section-title { color: var(--paper); }

/* Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 241, 234, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
}
.brand img {
  height: 40px;
  width: 120px;
  object-fit: contain;
  margin-left: -10px;
  flex: none;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 4px;
}
.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--accent-hover);
}

/* Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}
.hero-mark {
  position: absolute;
  right: max(24px, calc((100% - 1120px) / 2));
  top: 50%;
  transform: translateY(-50%);
  height: min(62%, 420px);
  width: auto;
  opacity: 0.14;
  filter: brightness(2.2);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.hero-kicker {
  margin: 0 0 20px;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.22em;
  color: var(--accent-on-dark);
  font-weight: 500;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}
.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--hero-em);
}
.hero-lead {
  margin: 28px 0 0;
  max-width: 600px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
  color: var(--soft-on-dark);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline {
  border: 1px solid var(--accent-on-dark);
  color: var(--paper);
}
.btn-outline:hover {
  background: rgba(201, 160, 122, 0.15);
  color: #fff;
}

/* Services ------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
}
.card .num {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.card h3 {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.card .desc {
  margin: 0 0 20px;
  color: var(--muted);
}
.dot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}
.dot-list li {
  display: flex;
  gap: 10px;
}
.dot-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 13px;
}
.card .more {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.card .more:hover { color: var(--accent-hover); }

/* Products ------------------------------------------------------- */
.products {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-list {
  display: grid;
  gap: 32px;
}
.product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.product-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.product-head h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
}
.badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  line-height: 1.9;
}
.product-body .desc {
  margin: 0 0 24px;
  color: var(--muted);
}
.btn-dark {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.btn-dark:hover { background: var(--accent); color: #fff; }
.product-shot {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  border: 0;
  margin: 0;
  display: block;
  width: 100%;
  font: inherit;
}
.product-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.product-shot.is-dark { background: var(--ink); }
.product-shot.is-light {
  background: var(--paper-2);
  border-left: 1px solid var(--line);
}

/* Strengths ------------------------------------------------------ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(240px, 45%)), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.strength {
  background: var(--paper);
  padding: 32px 28px;
}
.strength .num {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.strength h3 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.strength p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Use cases ------------------------------------------------------ */
.cases {
  background: var(--ink);
  color: var(--paper);
}
.cases .section-title { margin-bottom: 16px; }
.cases-lead {
  margin: 0 0 40px;
  max-width: 640px;
  color: var(--muted-on-dark);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.case {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 160, 122, 0.35);
  border-radius: 6px;
  padding: 28px 26px;
}
.case .who {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-on-dark);
}
.case .quote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
}

/* Company -------------------------------------------------------- */
.company-table {
  margin: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(96px, 160px) 1fr;
  border-top: 1px solid var(--line);
}
.company-table dt,
.company-table dd {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.company-table dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

/* Contact -------------------------------------------------------- */
.contact {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.contact .container { text-align: center; }
.contact .section-title { margin-bottom: 20px; }
.contact-lead {
  margin: 0 auto 32px;
  max-width: 560px;
  color: var(--muted);
}
.btn-mail {
  display: inline-block;
  padding: 16px 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
}
.btn-mail:hover { background: var(--accent); color: #fff; }

/* Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-on-dark);
  font-size: 12px;
}
.site-footer .container {
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.footer-brand img {
  height: 36px;
  width: 108px;
  object-fit: contain;
  margin-left: -9px;
  flex: none;
}
.footer-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.04em;
}

/* Lightbox ------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 4vw, 48px);
  border: 0;
  background: rgba(36, 39, 45, 0.88);
  color: var(--paper);
  cursor: zoom-out;
}
.lightbox::backdrop { background: transparent; }
.lightbox:not([open]) { display: none; }
.lightbox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 241, 234, 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
