﻿:root {
  --bg: #f7f7f4;
  --text: #161616;
  --muted: #5c5c58;
  --line: rgba(22, 22, 22, 0.18);
  --line-strong: rgba(22, 22, 22, 0.88);
  --accent: #0d63f3;
  --shell: min(1180px, calc(100vw - 30px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, sans-serif;
  background:
    linear-gradient(180deg, rgba(13, 99, 243, 0.04), transparent 28%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.grid-skin {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 22, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 18px 0 28px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero,
.signal,
.services,
.contact {
  margin-top: 20px;
}

.hero { margin-top: 0; }

.hero-layout,
.signal,
.service-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.hero-layout {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.frame {
  border: 1px solid var(--line-strong);
  background: rgba(247, 247, 244, 0.72);
  position: relative;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero-copy,
.signal-copy,
.signal-note,
.service-card,
.contact-copy,
.contact-form {
  padding: 26px;
}

.hero-copy {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-visual {
  min-height: 560px;
  overflow: hidden;
}

.hero-visual img,
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(247, 247, 244, 0.82);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow,
.mini-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow { color: var(--accent); }
.mini-label { color: var(--muted); }

h1,
h2,
h3 {
  margin: 0;
  font-family: Outfit, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 6.8vw, 6.4rem);
  line-height: 0.92;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 0.98;
}

h3 { font-size: 1.16rem; }

.lead,
.signal-copy p,
.signal-note p,
.service-card p,
.contact-copy p,
.form-note {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-weight: 800;
  transition: transform 160ms ease;
  will-change: transform;
}

.primary {
  background: var(--accent);
  color: #f7fbff;
}

.ghost {
  background: rgba(247, 247, 244, 0.72);
}

.signal {
  grid-template-columns: 1.1fr 0.9fr;
}

.signal-note strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-no {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.contact-grid {
  grid-template-columns: 0.42fr 0.58fr;
}

.contact-copy,
.contact-form {
  min-height: 100%;
}

.contact-form {
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--line-strong);
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  padding: 0.95rem 1rem;
}

textarea {
  min-height: 136px;
  resize: vertical;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.tilt-card {
  will-change: transform;
  transition: transform 160ms ease;
}

@media (max-width: 980px) {
  .hero-layout,
  .signal,
  .service-grid,
  .contact-grid,
  .row.two {
    grid-template-columns: 1fr;
  }

  .contact-form {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .hero-copy,
  .hero-visual {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(1180px, calc(100vw - 18px));
    padding: 10px 0 20px;
  }

  .meta-row {
    flex-direction: column;
    gap: 4px;
  }

  .hero-copy,
  .signal-copy,
  .signal-note,
  .service-card,
  .contact-copy,
  .contact-form {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  h2 {
    max-width: none;
  }

  .button {
    width: 100%;
  }
}
