:root {
  --ink: #211a15;
  --soft-ink: #5f564e;
  --cream: #fff8ed;
  --paper: #f7ead6;
  --charcoal: #151311;
  --espresso: #322018;
  --copper: #b66f38;
  --gold: #d7a95f;
  --sage: #7e9277;
  --teal: #184e4c;
  --wine: #712f3c;
  --line-dark: rgba(33, 26, 21, 0.14);
  --line-light: rgba(255, 248, 237, 0.18);
  --shadow: 0 26px 70px rgba(25, 18, 12, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 78, 76, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(24, 78, 76, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
}

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

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

p {
  color: var(--soft-ink);
  line-height: 1.75;
}

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 50;
  padding: 0 22px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  min-height: 74px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 8px;
  background: rgba(21, 19, 17, 0.82);
  box-shadow: 0 18px 54px rgba(21, 19, 17, 0.24);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: var(--charcoal);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cream), var(--gold) 48%, var(--copper));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(215, 169, 95, 0.26);
}

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

.brand-copy strong {
  color: var(--cream);
  font-size: 1rem;
}

.brand-copy small {
  color: rgba(255, 248, 237, 0.64);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(255, 248, 237, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
  background: var(--gold);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--cream);
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  overflow: hidden;
}

section[id] {
  scroll-margin-top: 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  min-height: 100vh;
  padding: 142px clamp(20px, 6vw, 86px) 80px;
  background:
    radial-gradient(circle at 16% 20%, rgba(126, 146, 119, 0.26), transparent 30rem),
    linear-gradient(135deg, var(--cream), #f1ddbd 54%, #d8c2a3);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7.5vw, 7.8rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-lead {
  max-width: 660px;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--cream);
  background: var(--charcoal);
  box-shadow: 0 18px 42px rgba(21, 19, 17, 0.2);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(33, 26, 21, 0.16);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-stats span {
  display: grid;
  min-width: 148px;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(33, 26, 21, 0.12);
  border-radius: 8px;
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.38);
}

.hero-stats strong {
  color: var(--ink);
  font-size: 1.25rem;
}

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

.photo-panel {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(540px, 100%);
  height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 19, 17, 0.08), rgba(21, 19, 17, 0.48)),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1200&q=80") center / cover;
  box-shadow: var(--shadow);
}

.dashboard-card,
.code-card {
  position: absolute;
  border: 1px solid rgba(255, 248, 237, 0.28);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(21, 19, 17, 0.84);
  box-shadow: 0 20px 56px rgba(21, 19, 17, 0.28);
  backdrop-filter: blur(18px);
}

.dashboard-card {
  right: 22px;
  bottom: 28px;
  width: min(360px, 76%);
  padding: 22px;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dash-top span {
  color: rgba(255, 248, 237, 0.72);
  font-weight: 800;
}

.dash-top strong {
  color: var(--gold);
  font-size: 2rem;
}

.dash-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.dash-bars span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
}

.dash-bars span:nth-child(2) {
  width: 78%;
}

.dash-bars span:nth-child(3) {
  width: 56%;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dash-grid span {
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 248, 237, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.code-card {
  left: 0;
  top: 88px;
  max-width: 310px;
  padding: 22px;
}

.code-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.code-card strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

.services,
.work,
.domains,
.contact {
  padding: 126px clamp(20px, 6vw, 86px) 86px;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 38px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
}

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

.service-card,
.domain-card {
  min-height: 318px;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 40px rgba(33, 26, 21, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.domain-card:hover {
  transform: translateY(-8px);
  border-color: rgba(24, 78, 76, 0.38);
  box-shadow: var(--shadow);
}

.service-card span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  border-radius: 50%;
  color: var(--cream);
  font-weight: 900;
  background: var(--teal);
}

.service-card.is-featured {
  color: var(--cream);
  background: linear-gradient(145deg, var(--charcoal), var(--espresso));
}

.service-card.is-featured p {
  color: rgba(255, 248, 237, 0.72);
}

.service-card.is-featured span {
  color: var(--charcoal);
  background: var(--gold);
}

.work {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 84px);
  background: var(--charcoal);
  color: var(--cream);
}

.work .eyebrow {
  color: var(--gold);
}

.work p {
  color: rgba(255, 248, 237, 0.72);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line-light);
}

.timeline span {
  color: var(--gold);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.domains {
  background:
    linear-gradient(135deg, rgba(126, 146, 119, 0.18), transparent 28rem),
    var(--paper);
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.domain-tags span,
.domain-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
}

.domain-tags span {
  color: var(--cream);
  background: var(--teal);
}

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

.domain-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  background: rgba(255, 248, 237, 0.72);
}

.domain-status {
  margin-bottom: 34px;
  color: var(--teal);
  background: rgba(24, 78, 76, 0.12);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.domain-card a {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.domain-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.domain-offer strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
}

.domain-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--cream) !important;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.16), transparent 34%),
    var(--teal);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 34px rgba(21, 19, 17, 0.22);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.domain-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 237, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.domain-button span,
.domain-button svg {
  position: relative;
  z-index: 1;
}

.domain-button svg {
  width: 30px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-button:hover {
  color: var(--cream) !important;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.2), transparent 34%),
    #206b67;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 20px 42px rgba(24, 78, 76, 0.28);
  transform: translateY(-3px);
}

.domain-button:hover::before {
  transform: translateX(120%);
}

.contact {
  background: linear-gradient(145deg, var(--cream), #ead8bd);
}

.contact-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid rgba(33, 26, 21, 0.12);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.contact-panel a:not(.button) {
  color: var(--teal);
  font-weight: 900;
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 6vw, 86px);
  padding: 70px clamp(20px, 6vw, 86px) 34px;
  color: var(--cream);
  background: var(--charcoal);
}

.footer-brand {
  margin-bottom: 22px;
}

.site-footer p {
  max-width: 560px;
  color: rgba(255, 248, 237, 0.66);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 248, 237, 0.76);
  font-weight: 800;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 248, 237, 0.62);
  font-weight: 800;
}

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.floating-contact a {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--teal);
  box-shadow: 0 16px 36px rgba(21, 19, 17, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-contact a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(21, 19, 17, 0.28);
}

.floating-contact a:nth-child(2) {
  color: var(--charcoal);
  background: var(--gold);
}

.floating-contact a:last-child {
  color: white;
  background: #25d366;
}

.floating-contact svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-contact .email-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

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

@media (max-width: 720px) {
  .site-header {
    inset: 12px 0 auto;
    padding: 0 12px;
  }

  .nav-shell {
    min-height: 70px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: calc(100% + 10px) 12px auto;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    background: rgba(21, 19, 17, 0.94);
    box-shadow: 0 18px 44px rgba(21, 19, 17, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px 16px;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 58px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  .hero-stats {
    display: grid;
  }

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

  .photo-panel {
    height: 390px;
  }

  .code-card {
    top: 28px;
    max-width: 250px;
  }

  .dashboard-card {
    right: 8px;
    bottom: 6px;
    width: min(330px, 82%);
  }

  .services,
  .work,
  .domains,
  .contact {
    padding: 98px 18px 58px;
  }

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

  .service-card,
  .domain-card {
    min-height: auto;
  }

  .service-card span {
    margin-bottom: 34px;
  }

  .domain-offer {
    align-items: stretch;
    flex-direction: column;
  }

  .domain-button {
    width: 100%;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 54px 18px 92px;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
  }

  .floating-contact a {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
