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

:root {
  --bg:      #F8F5F0;
  --bg2:     #F2EDE6;
  --bg3:     #EDE6DC;
  --text:    #1C1814;
  --muted:   #6B6158;
  --rule:    #E4DDD5;
  --forest:  #2D6A55;
  --forest2: #3D8A6E;
  --amber:   #B87333;
  --amber2:  #C98040;
  --sage:    #8BAF9A;
  --white:   #FFFFFF;
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
address { font-style: normal; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: 120px 0; }
section + section { border-top: 1px solid var(--rule); }

/* ── NAV ── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(248, 245, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-wordmark {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-link {
  grid-column: 3;
  justify-self: end;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover { color: var(--forest); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--amber);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  color: var(--text);
}

h1 em {
  font-style: italic;
  color: var(--forest);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 60px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--forest);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--forest2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(45,106,85,0.35);
  color: var(--forest);
}

.btn-ghost + .btn {
  margin-left: 16px;
}

.btn-ghost:hover {
  background: rgba(45,106,85,0.06);
  border-color: var(--forest);
  transform: translateY(-1px);
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  animation: fadeUp 0.6s 0.5s ease both;
}

.scroll-hint:hover {
  color: var(--forest);
  transform: translateX(-50%) translateY(2px);
}

.scroll-hint-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── SERVICES ── */
#services h2, #work h2, #about h2, #contact h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

#services h2 { margin-bottom: 20px; max-width: 560px; }
#services h2 em { font-style: italic; color: var(--amber); }

.services-intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 64px;
  max-width: 600px;
}

.services-table {
  border-top: 1px solid var(--rule);
}

.service-row {
  display: grid;
  grid-template-columns: 48px 260px 1fr;
  gap: 0 56px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 0.2s;
}

.service-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--amber);
  padding-top: 4px;
}

.service-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--forest);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(184,115,51,0.35);
  padding: 3px 9px;
}

/* ── WORK ── */
#work h2 { margin-bottom: 72px; }

.work-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  padding: 60px 0;
  border-top: 1px solid var(--rule);
}

.work-item:last-child { border-bottom: 1px solid var(--rule); }

.work-client {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--amber);
  margin: 0 0 10px;
  line-height: 1.25;
}

.work-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
}

.work-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.work-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 4px;
}

.work-stat span {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.05em;
}

/* ── INLINE LINK ── */
.inline-link {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid rgba(45,106,85,0.3);
  transition: color 0.2s, border-color 0.2s;
}

.inline-link:hover {
  color: var(--forest2);
  border-bottom-color: var(--forest2);
}

.inline-link--amber {
  color: var(--amber);
  border-bottom-color: rgba(184,115,51,0.3);
}

.inline-link--amber:hover {
  color: var(--amber2);
  border-bottom-color: var(--amber2);
}

/* ── ABOUT ── */
#about { background: var(--bg2); }
#contact { background: var(--bg2); }

.about-header {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 72px;
  align-items: center;
}

.about-portrait-wrap {
  display: flex;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
}

.about-body {
  grid-column: 1;
  grid-row: 1;
}

.about-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 5px var(--rule);
  filter: grayscale(10%);
}

#about h2 { margin-bottom: 24px; }

.about-body { padding-top: 0; }

.about-p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 72px;
  padding-top: 48px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.stat-item {
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--rule);
  padding-left: 40px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── CONTACT ── */
#contact {
  text-align: center;
}

.contact-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}

#contact h2 {
  max-width: 600px;
  margin: 0 auto 20px;
}

#contact h2 em { font-style: italic; color: var(--forest); }

.contact-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 52px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--forest); }


.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--forest); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
h1            { animation: fadeUp 0.6s 0.12s ease both; }
.hero-sub     { animation: fadeUp 0.6s 0.22s ease both; }
.hero-ctas    { animation: fadeUp 0.6s 0.32s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .container { padding: 0 24px; }
  nav { padding: 20px 24px; }
  section { padding: 80px 0; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .work-item { grid-template-columns: 1fr; gap: 28px; }
  .about-header { display: block; }
  .about-portrait-wrap { float: right; display: block; margin-left: 20px; margin-bottom: 12px; grid-column: unset; grid-row: unset; }
  .about-portrait { width: 88px; height: 88px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item + .stat-item { border-left: none; padding-left: 0; border-top: none; padding-top: 0; margin-top: 0; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 40px; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 32px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
