:root {
  --teal: #156d7d;
  --beige: #ebe2d9;
  --beige-dark: #d9c9b8;
  --gold: #e5c06b;
  --blue: #869ed0;
  --ink: #1f2a2e;
  --ink-soft: #4a5559;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Mulish", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }

.sans { font-family: var(--sans); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--teal);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 1000;
}

.wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 109, 125, 0.1);
}
#header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.25s ease;
}
.nav-list a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--teal);
  color: var(--teal) !important;
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--teal); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(21, 109, 125, 0.1);
  padding: 8px 24px 20px;
}
.mobile-nav a {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .nav-list { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--beige) 0%, #fff 100%);
  padding: 140px 0 60px;
  position: relative;
}
#hero h1 {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#hero h1 strong {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: 0.01em;
}
#hero .role {
  font-family: var(--sans);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 300;
  color: var(--teal);
}
#hero .role-sub {
  font-family: var(--sans);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--ink-soft);
}
.rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 8px auto 28px;
}
.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--teal), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 14px 32px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--beige); }
.text-center { text-align: center; }

h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  margin: 0 0 24px;
}
.title-lg { font-size: clamp(30px, 4.2vw, 40px); }
.title-md { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 28px; }
.underline { position: relative; padding-bottom: 16px; }
.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--gold);
}
.text-center .underline::after { left: 50%; transform: translateX(-50%); }
.uppercase { text-transform: uppercase; letter-spacing: 0.04em; }

.intro {
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.portrait {
  border-radius: 8px;
  box-shadow: 0 24px 48px -24px rgba(21, 109, 125, 0.35);
}
.grid-2 p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-family: var(--sans);
  font-weight: 300;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

.stack-grid {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.stack-grid li {
  text-align: center;
  padding: 28px 16px;
  border-radius: 12px;
  background: var(--beige);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stack-grid li:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 32px -20px rgba(21, 109, 125, 0.3);
}
.stack-grid img { margin: 0 auto 16px; }
.stack-grid h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
.stack-grid p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 980px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stack-grid { grid-template-columns: 1fr; }
}

.project-list, .service-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.project-list li, .service-list li {
  background: #fff;
  border: 1px solid rgba(21, 109, 125, 0.12);
  border-radius: 10px;
  padding: 24px 28px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.section.alt .project-list li { background: #fff; }
.project-list li strong, .service-list li strong { color: var(--ink); }
.service-list { counter-reset: svc; }
.service-list li {
  position: relative;
  padding-left: 56px;
}
.service-list li::before {
  counter-increment: svc;
  content: counter(svc);
  position: absolute;
  left: 20px;
  top: 22px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  font-size: 18px;
}

#contact .wrapper { max-width: 520px; }
#contact img { margin: 0 auto 20px; }

/* Floating CTA */
body { padding-bottom: 88px; }
.btn.floating {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(21, 109, 125, 0.5);
}
.btn.floating:hover { background: var(--ink); }

/* Footer */
#footer {
  padding: 32px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
