:root {
  --bg: #f7f3ea;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fffaf0;
  --ink: #162126;
  --ink-muted: #4f5d64;
  --line: rgba(22, 33, 38, 0.12);
  --brand: #0f3d3e;
  --brand-strong: #0b2c2d;
  --accent: #d48638;
  --accent-soft: #efd7bb;
  --shadow: 0 18px 50px rgba(12, 34, 35, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 134, 56, 0.14), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(15, 61, 62, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f5ee 0%, #efe8dd 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1001;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(247, 243, 234, 0.72);
  border-bottom: 1px solid rgba(22, 33, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #12575a);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.brand-tag {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.site-nav a:hover,
.contact-card a:hover {
  color: var(--brand);
}

.desktop-only {
  display: inline-flex;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 100px;
}

.hero {
  padding: 64px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: 'Syne', sans-serif;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
}

.hero-text,
.service-card p,
.project-card p,
.contact-copy p,
.contact-row {
  color: var(--ink-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.button-small {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 13px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-points li,
.project-tags li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.panel {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.panel-browser {
  inset: 0 40px 80px 0;
  padding: 22px;
}

.browser-bar {
  display: flex;
  gap: 8px;
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(79, 93, 100, 0.25);
}

.browser-content {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.metric-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 33, 38, 0.08);
}

.metric-card.accent {
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.92), rgba(18, 87, 90, 0.92));
  color: #fff;
}

.metric-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.metric-label {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: inherit;
  opacity: 0.84;
}

.panel-phone {
  right: 0;
  bottom: 0;
  width: 250px;
  padding: 18px;
}

.phone-screen {
  min-height: 350px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface-strong), #f4ead7);
}

.phone-chip {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 61, 62, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-title {
  margin-top: 20px;
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  line-height: 1.05;
}

.phone-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.phone-list span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 61, 62, 0.13);
}

.phone-list span:nth-child(2) {
  width: 82%;
}

.phone-list span:nth-child(3) {
  width: 64%;
}

.phone-button {
  width: 100%;
  height: 54px;
  margin-top: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #e0a25f);
}

.ribbon {
  padding: 12px 0;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ribbon-grid div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(22, 33, 38, 0.08);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.75), rgba(255, 255, 255, 0.35));
  pointer-events: none;
}

.section-alt > .container {
  position: relative;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.service-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

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

.service-card,
.project-card,
.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(22, 33, 38, 0.08);
  box-shadow: var(--shadow);
}

.service-card h3,
.project-card h3 {
  margin: 0 0 12px;
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.project-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.project-card.featured {
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.96), rgba(18, 87, 90, 0.9));
  color: #fff;
}

.project-card.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.project-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.project-card.featured .project-tags li {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 18px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-key {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 33, 38, 0.1);
  color: var(--ink-muted);
  font-size: 14px;
}

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

  .hero-visual {
    min-height: 420px;
  }

  .panel-browser {
    inset: 0 20px 40px 0;
  }

  .panel-phone {
    width: 220px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .desktop-only {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 360px;
  }

  .panel-browser {
    inset: 0 12px 30px 0;
  }

  .panel-phone {
    width: 190px;
    padding: 12px;
  }

  .phone-screen {
    min-height: 280px;
  }

  .contact-row,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
