/* ═══════════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --cream:       #F5F3EE;
  --cream-alt:   #EDEADB;
  --ink:         #1A1916;
  --ink-2:       #5E5D59;
  --ink-3:       #9A9894;
  --green:       #1C3D30;
  --green-mid:   #2A6251;
  --border:      #DEDAD3;
  --white:       #FFFFFF;

  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'Figtree', system-ui, sans-serif;

  --container:   1160px;
  --nav-h:       66px;
  --section-pad: 72px;
}

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

html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: var(--ff-body); background: var(--cream); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   SHARED UTILITIES
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--cream-alt);
}

.section-header {
  margin-bottom: 52px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-intro {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 580px;
}

.work-block-intro {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn--primary {
  padding: 11px 22px;
  background: var(--green);
  color: var(--white);
}

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



.btn--light {
  padding: 12px 24px;
  background: var(--white);
  color: var(--green);
  font-size: 13px;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--cream);
  transition: background 0.3s, box-shadow 0.3s;
}

#nav.scrolled {
  background: rgba(245, 243, 238, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(26, 25, 22, 0.18);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green-mid);
  transition: width 0.22s ease;
}

.nav-logo:hover {
  color: var(--green-mid);
}

.nav-logo:hover::after {
  width: 100%;
}


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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green-mid);
  transition: width 0.22s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: opacity 0.2s, transform 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 24px 32px 28px;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  padding-top: var(--nav-h);
  display: flex;
  align-items: flex-start;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 20px;
  display: block;
}

.hero-text h1 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-socials {
  display: flex;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.social-pill--linkedin {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.social-pill--linkedin:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.social-pill--github {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.social-pill--github:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

/* Photo */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.photo-frame {
  border: 5px solid var(--green);
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
}

.hero-photo {
  display: block;
  width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 70% top;
}

/* ═══════════════════════════════════════════════════════════
   PROBLEMS
   ═══════════════════════════════════════════════════════════ */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.problem-card {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.problem-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.problem-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.problem-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-item {
  background: var(--cream);
  padding: 36px 28px;
  transition: background 0.2s;
}

.service-item:hover {
  background: var(--white);
}

.service-num {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 300;
  color: var(--green-mid);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 16px;
}

.service-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   WORK
   ═══════════════════════════════════════════════════════════ */
.work-block {
  margin-bottom: 56px;
}

.work-block:last-child {
  margin-bottom: 0;
}

.work-block-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.work-stack-note {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 18px;
}

.cards-grid {
  display: grid;
  gap: 18px;
}

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

.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}


.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-sector {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(28, 61, 48, 0.07);
  padding: 3px 8px;
  border-radius: 2px;
}

.card-type {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}

.card-foot {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.card-tools {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
}



/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.section--contact {
  background: var(--green);
  text-align: center;
}

.contact-inner {
  max-width: 540px;
  margin: 0 auto;
}


.contact-heading {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}

.contact-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 32px;
}



/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--ink);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}


/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Hero staggered load */
.hero-child {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — tablet (≤ 960px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 32px;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    justify-content: flex-start;
  }

  .photo-frame .hero-photo {
    width: 220px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — mobile (≤ 640px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }

  .nav-links,
  .nav-right > .btn--nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .container {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 36px 20px;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    border-radius: 4px;
  }

  .cards-grid--3,
  .cards-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero-child {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  [data-reveal] {
    transition-duration: 0.01ms;
  }

}
