* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f2ea;
  --text: #161616;
  --muted: #6d675f;
  --card: #fffaf2;
  --line: rgba(22, 22, 22, 0.12);
  --accent: #1f2a44;
  --accent-2: #d8b88f;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 72px 6vw 96px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 13px 22px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
}

.btn.secondary:hover,
.btn.small:hover {
  background: var(--text);
  color: var(--bg);
}

.btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

.btn.full {
  width: 100%;
}

.hero-card {
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(31, 42, 68, 0.08);
}

.hero-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.hero-card li:last-child {
  border-bottom: 0;
}

.section {
  padding: 88px 6vw;
  border-top: 1px solid var(--line);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
}

.portfolio-image {
  min-height: 260px;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #e8d8c3;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-image.alt {
  background: #c9d3d0;
}

.portfolio-image.dark {
  background: #1f2a44;
  color: #f7f2ea;
}

.portfolio-info {
  padding: 22px;
}

.portfolio-info p,
.service-grid p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.service-grid > div {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.contact p {
  max-width: 620px;
}

footer {
  padding: 28px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 120px rgba(0,0,0,.22);
}

dialog::backdrop {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  padding: 32px;
}

.close {
  position: absolute;
  right: 20px;
  top: 18px;
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
  color: var(--muted);
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  font: inherit;
}

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

.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero,
  .portfolio-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .section-head,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    display: none;
  }
}
