:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --black: #101010;
  --charcoal: #1d1d1d;
  --graphite: #2f2f2f;
  --mid-grey: #6f6f6f;
  --light-grey: #ebebeb;
  --border: #d4d4d4;
  --header-height: 88px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.11);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--black);
  background: linear-gradient(to bottom, #ffffff 0%, #fbfbfb 100%);
  font-family: Cambria, Cochin, Georgia, "Times New Roman", serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  position: relative;
  cursor: pointer;
}

button {
  touch-action: manipulation;
  position: relative;
  cursor: pointer;
}

button,
a.btn,
.menu-toggle,
.chat-toggle,
.nav a,
.social-links a {
  min-height: 44px;
}

.nav a::after {
  pointer-events: none;
}

.contact-info a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3100;
  background: #f5f5f5;
  border-bottom: 1px solid #d0d0d0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  background: transparent;
}

.logo-container img {
  height: 90px;
  width: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.2);
  background: transparent;
}

.brand-text {
  font-size: 1.14rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: 2rem;
}

.nav a {
  font-size: 0.96rem;
  color: var(--graphite);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.nav-quote {
  display: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--black);
  transform: translateY(-1px);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.74rem 1.35rem;
  min-height: 44px;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.btn-header {
  margin-left: auto;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: #f8f8f8;
  color: #1b1b1b;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: 1;
  background: #ececec;
  transform: translateY(-1px);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-header:hover,
.btn-header:focus-visible {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.2);
}

main {
  padding-top: var(--header-height);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  padding: 5.5rem 0;
  background: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(17, 17, 17, 0.62));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  pointer-events: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.footer-email {
  margin: 0.5rem 0 0;
}

.footer-email a {
  color: #e8e8e8;
  text-decoration: underline;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 4.7vw, 4.1rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 640px;
  font-size: clamp(1.03rem, 2.1vw, 1.24rem);
  letter-spacing: 0.03em;
  color: #e6e6e6;
}

.btn-hero {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.btn-hero:hover,
.btn-hero:focus-visible {
  background: #ebebeb;
  transform: translateY(-2px);
}

.section {
  padding: 6rem 0;
}

.section-contact {
  padding-bottom: calc(6rem + 96px);
}

.section h2 {
  margin: 0 0 2.2rem;
  text-align: center;
  font-size: clamp(1.7rem, 2.9vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.services,
.projects {
  background: var(--off-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.45rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  color: #4a4a4a;
}

.about-content {
  max-width: 900px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.4rem 2rem;
}

.about p {
  margin: 0;
  color: #444444;
  font-size: 1.08rem;
}

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

.project-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.project-grid img:hover {
  transform: translateY(-3px) scale(1.01);
  filter: saturate(0.95);
  box-shadow: var(--shadow-card);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.3rem;
  align-items: start;
}

.contact-info p {
  margin: 0 0 12px;
  color: #4b4b4b;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.hidden-field {
  display: none;
}

.form-success-message {
  margin: 0.8rem 0 0;
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: #1f1f1f;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  padding: 0.74rem 0.85rem;
  margin-bottom: 0.95rem;
  background: #fcfcfc;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #333333;
  outline-offset: 1px;
}

.btn-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.site-footer {
  background: #0f0f0f;
  color: #dbdbdb;
  text-align: center;
  padding: 1.25rem 0;
  border-top: 1px solid #1d1d1d;
}

.footer-social {
  margin-top: 0.85rem;
}

.footer-social a {
  background: #191919;
  border-color: #303030;
  color: #f1f1f1;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: #2a2a2a;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 3200;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
  pointer-events: none;
}

.chat-toggle span,
.social-links svg,
.social-links path {
  pointer-events: none;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .card,
  .project-grid img,
  .btn {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 84px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .btn-header {
    display: none;
  }

  .header-social {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-left: 0;
    margin-top: 0.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 3050;
  }

  .nav.open {
    display: flex !important;
  }

  .nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0;
  }

  .nav-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid #1d1d1d;
    background: #111111;
    color: #ffffff !important;
    margin-top: 0.35rem;
  }

  .hero {
    min-height: 78vh;
    padding: 4.2rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-layout {
    padding: 0 0.25rem;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 44px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .brand {
    max-width: calc(100% - 56px);
  }

  .brand-text {
    font-size: clamp(0.78rem, 3vw, 1rem);
    white-space: normal;
    line-height: 1.2;
  }

  .logo-container img {
    height: clamp(52px, 14vw, 72px);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.55rem);
  }

  .hero p {
    font-size: clamp(0.95rem, 4vw, 1.08rem);
    margin-bottom: 1.6rem;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

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

  .section {
    padding: 4.8rem 1rem;
  }
}

.chat-widget {
  position: fixed !important;
  right: 1.25rem !important;
  bottom: 1rem !important;
  left: auto !important;
  top: auto !important;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  pointer-events: none;
}

.chat-widget > * {
  pointer-events: auto;
}

.chat-widget-notice {
  margin: 0;
  padding: 0.62rem 0.85rem;
  max-width: min(268px, calc(100vw - 2.5rem));
  font-size: 0.82rem;
  line-height: 1.45;
  color: #1a1a1a;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.chat-widget-notice[hidden] {
  display: none !important;
}

.chat-toggle {
  border: 1px solid #202020;
  background: #101010;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.chat-toggle:hover,
.chat-toggle:focus-visible {
  background: #232323;
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.24);
}

.chat-toggle-icon {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .section-contact {
    padding-bottom: calc(5rem + 92px);
  }

  .chat-widget {
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    gap: 0.35rem;
  }

  .chat-widget-notice {
    max-width: min(252px, calc(100vw - 1.75rem));
    font-size: 0.8rem;
    padding: 0.55rem 0.72rem;
  }

  .chat-toggle {
    padding: 0.58rem 0.92rem;
    font-size: 0.84rem;
  }
}
