:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #4b5563;
  --muted2: #6b7280;
  --border: rgba(17,17,17,.10);
  --panel: #ffffff;
  --shadow: 0 12px 30px rgba(17,17,17,.08);
  --radius: 18px;
  --max: 1100px;

  --brand: #6d28d9;  /* purple */
  --brand2:#a855f7;  /* magenta */
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

header{
  position: sticky; top:0; z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px; }
.links{ display:flex; gap:18px; color: #111; font-weight:600; }
.links a{ padding:8px 10px; border-radius: 10px; }
.links a:hover{ background: rgba(17,17,17,.05); }

.burger{
  display:none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
}
@media (max-width: 860px){
  .links{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
}
.mobile{ display:none; padding: 0 0 14px 0; }
.mobile.open{ display:block; }
.mobile a{
  display:block;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  margin-top: 10px;
  font-weight: 600;
}
.mobile a:hover{ background: rgba(17,17,17,.05); }

section{ padding: 70px 0; }
.section-title{
  text-align:center;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.05rem);
  margin:0 0 10px 0;
}
.section-sub{
  text-align:center;
  margin:0 auto 32px auto;
  color: var(--muted);
  max-width: 80ch;
}

/* Hero */
.hero{ padding: 30px 0 0 0; }
.hero-wrap{
  min-height: 560px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(0deg, rgba(255,255,255,.92), rgba(255,255,255,.45)),
    url("hero.avif");
  background-size: cover;
  background-position:center;
}
.hero-inner{
  text-align:center;
  width:min(900px, calc(100% - 40px));
  padding: 0 0 30px 0;
}
.hero-h1{
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.05;
  margin: 0 0 12px 0;
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.6rem);
}
.hero-kicker{
  margin: 0 auto 22px auto;
  color: rgba(17,17,17,.78);
  max-width: 90ch;
  font-size: 1.04rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.12);
  background: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(17,17,17,.10);
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border-color: rgba(109,40,217,.25);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

/* About */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pad{ padding: 24px; }
.img-card{
  min-height: 340px;
  background:
    url("about.avif");
  background-size: cover;
  background-position:center;
}

/* Services */
.services{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.service{
  grid-column: span 6;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.service h3{ margin:0 0 8px 0; font-size: 1.05rem; }
.service p{ margin:0; color: var(--muted); }
@media (max-width: 900px){
  .service{ grid-column: span 12; }
}


/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:start;
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

label{ display:block; font-size:.92rem; color: var(--muted); font-weight:600; margin-bottom:6px; }
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
}
textarea{ min-height: 120px; resize: vertical; }

.notice{ margin: 10px 0 0 0; color: var(--muted2); font-size:.92rem; }
.notice.ok{ color: #0f766e; }
.notice.err{ color: #b91c1c; }

.contact-list{ display:grid; gap: 10px; color: var(--muted); }
.contact-list b{ color: var(--text); }

footer{
  padding: 28px 0 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted2);
}
.foot{ display:flex; justify-content:space-between; align-items:center; gap: 14px; flex-wrap:wrap; }

/* Philosophy v2 (text-only, responsive) */
#philosophy .section-title{
  text-align: left;
  margin-bottom: 16px;
}

.philo-lead{
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  font-weight: 700;
  color: #111;
  max-width: 64ch;
  margin: 0 0 22px 0;
}

.philo-note{
  font-size: clamp(.95rem, .9rem + .3vw, 1.05rem);
  line-height: 1.6;
  color: rgba(17,17,17,.78);
  max-width: 70ch;
  margin: 0;
}
@media (max-width: 768px){
  .philo-lead,
  .philo-note{
    max-width: 100%;
  }
}
