:root,
[data-theme="light"] {
  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .8rem + .35vw, 1rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + .75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.4rem + 4.5vw, 5.5rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --color-bg: #f3f1ec;
  --color-surface: #f8f7f3;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ebe7e0;
  --color-border: rgba(40, 37, 29, .12);
  --color-divider: rgba(40, 37, 29, .08);
  --color-text: #171717;
  --color-text-muted: #5f5b55;
  --color-text-faint: #8a847d;
  --color-text-inverse: #f6f5f1;
  --color-primary: #0f766e;
  --color-primary-hover: #0b5d57;
  --color-primary-highlight: rgba(15, 118, 110, .12);
  --radius-sm: .5rem;
  --radius-md: .875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(23, 23, 23, .05);
  --shadow-md: 0 10px 30px rgba(23, 23, 23, .08);
  --shadow-lg: 0 25px 60px rgba(23, 23, 23, .12);
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --content: 1200px;
  --grid-svg: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0v40M0 0h40' stroke='rgba(15,118,110,0.15)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}



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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  background-image: var(--grid-svg);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -55px;
  background: var(--color-surface-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  position: relative;
  scroll-margin-top: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .95rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: .18s ease;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.btn-secondary:hover {
  background: var(--color-surface-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--color-bg) 84%, transparent);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  border-bottom-color: var(--color-divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  background-color: #34d399;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.brand-mark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 2rem);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-surface);
}

.hero {
  padding: clamp(var(--space-12), 4vw, var(--space-20)) 0 var(--space-24);
  overflow: hidden;
  position: relative;
  z-index: 1;
  min-height: 100vh; 
  display: flex;
  align-items: center;
}


.hero-copy h1 {
  font-family: var(--font-display);
  line-height: .95;
  letter-spacing: -.04em;
  max-width: 1000px;
  font-size: var(--text-3xl);
}

.hero-copy span {
  background: linear-gradient(135deg, var(--color-primary) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin-top: var(--space-6);
  max-width: 58ch;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}


@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  text-align: center;
}

.section-head h2 {
  font-size: 2rem;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -.03em;
  font-size: 4rem;
  max-width: 800px;
  text-align: left;
}

.section-head p {
  max-width: 56ch;
  color: var(--color-text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
}

.service-large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.service-large h3,
.service-card h3,
.work-card h3 {
  font-size: var(--text-lg);
  letter-spacing: -.03em;
}

.service-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.service-card p,
.service-large p,
.work-card p,
.about-card p,
.contact-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: .5rem;
}

.intro {
  font-weight: bold;
  color:#000
}

.service-icon,
.about-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 2rem;
  background: var(--color-primary-highlight);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.work-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.work-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface-2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.work-card.half {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}

.work-card h4 {
  margin: 1rem 0;
  font-size: var(--text-md);
  font-weight: 500;
}



/* Abstract visual blocks for portfolio cards */
.work-visual-abstract {
  height: 250px;
  background: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center
}

.work-visual-abstract img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 250px;
}


.goblin-bg img {
  padding: 3rem;
}


.abstract-shape {
  position: absolute;
  background: var(--color-primary);
  opacity: 0.1;
  border-radius: 50%;
}

.work-copy {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-copy h3 {
  margin-bottom: 32px;
  line-height: 1.2;
  font-size: 24px;
}

.work-copy p {
  margin-bottom: var(--space-5);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
  margin-bottom: var(--space-5);
}

.tag {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem .7rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
}

.case-study-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: color 0.2s ease;
  margin-top: 1rem;
}

.case-study-link:hover {
  color: var(--color-primary);
}

.about-card {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
}

.process {
  display: grid;
  gap: var(--space-5);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.process-step:first-child {
  padding-top: 0;
  border-top: none;
}

.process-step span {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-text);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 700;
}

.contact-wrap {
  padding: var(--space-10);
  border-radius: calc(var(--radius-xl) * 1.1);
  background: linear-gradient(135deg, #0f766e 0%, #34d399 100%);
  color: #f6f4ef;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: end;
  box-shadow: var(--shadow-lg);
}

.contact-wrap p {
  color: rgba(246, 244, 239, .76);
  max-width: 50ch;
}

.contact-card {
  display: grid;
  gap: var(--space-4);
}

.contact-line {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: rgba(246, 244, 239, .84);
  font-size: var(--text-sm);
}

.site-footer {
  padding: var(--space-8) 0 var(--space-10);
  color: var(--color-text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

.delay-800 {
  transition-delay: 0.8s;
}

.delay-1000 {
  transition-delay: 1.0s;
}

.dash-delta {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transition-delay: 0s !important;
  }
}

@media (max-width: 1100px) {



  .services-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }





  .work-card.half {
    grid-column: span 12;
  }

  .contact-wrap {
    align-items: start;
  }
}

@media (max-width: 760px) {
  
  .section-head h2 {
    font-size: 2rem;
  }




  .section {
    padding: clamp(var(--space-8), 8vw, var(--space-16)) 0;
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .hero-centered {
  text-align: center;
  padding-top: clamp(var(--space-16), 10vw, var(--space-24));
  min-height: 75vh;
  display: flex;
  align-items: center;
}

  .hero-copy h1 {
    max-width: 12ch;
    
  }

  .hero-centered .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero-centered h1 {
  /* Increased max-width slightly for balance, and significantly scaled up the font size */
  max-width: 14ch; 
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); 
  line-height: 0.95;
  margin-inline: auto;
  
}

.hero-centered p {
  font-size: var(--text-lg);
  max-width: 55ch;
  margin-top: var(--space-6);
}

.hero-centered .hero-actions {
  justify-content: center;
  margin-top: var(--space-8);
}

  .section-head,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-wrap {
    padding: var(--space-8);
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.visible,
  .btn-primary:hover {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.service-card,
.service-large,
.work-card,
.about-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.service-large:hover,
.work-card:hover,
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-highlight);
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-inline: auto;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-8));
}

.timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-node {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-line {
  width: 2px;
  flex-grow: 1;
  background: var(--color-divider);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}

.timeline-step:last-child .timeline-line {
  display: none;
}

.timeline-content {
  padding-top: .6rem;
  padding-bottom: var(--space-12);
}

.timeline-step:last-child .timeline-content {
  padding-bottom: 0;
}

.timeline-content h3 {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  letter-spacing: -.03em;
  margin-bottom: var(--space-3);
}

.timeline-content p {
  color: var(--color-text-muted);
  max-width: 55ch;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .timeline-node {
    width: 2.75rem;
    height: 2.75rem;
    font-size: var(--text-lg);
  }

  .timeline-content {
    padding-top: .25rem;
    padding-bottom: var(--space-8);
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(246, 244, 239, 0.9);
  margin-bottom: var(--space-2);
}

.status-dot {
  width: 12px;
  height: 12px;
  background-color: #a7f3d0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(167, 243, 208, 0.7);
  animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(167, 243, 208, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(167, 243, 208, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(167, 243, 208, 0);
  }
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #f6f4ef;
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.contact-email:hover {
  border-bottom-color: #f6f4ef;
  opacity: 0.9;
}

.contact-email svg {
  opacity: 0.8;
}

/* --- Hero Grid Layout --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Creates two equal columns */
  align-items: center;            /* Vertically centers the items */
  gap: clamp(2rem, 6vw, 4rem);    /* Responsive gap between text and image */
}

.hero-visual {
  width: 100%;
  max-width: 650px;
  margin-left: auto;
}
@media (max-width: 900px) {
  .hero {
    /* Set height to exact visible screen minus the 84px header */
    height: calc(100dvh - 84px);
    min-height: auto;
    /* Reduce top/bottom padding to maximize inner space */
    padding: 0 0 var(--space-12) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    /* Define rows: image takes remaining space (1fr), text takes what it needs (auto) */
    grid-template-rows: 1fr auto; 
    height: 100%;
    gap: var(--space-4); /* Reduce gap to save space */
    text-align: center;
  }

  .hero-visual {
    order: -1;
    max-width: 100%;
    max-height: 100%; /* Prevent container from growing */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Force the SVG graphic to scale down so it doesn't push the text off-screen */
  .hero-visual svg {
    max-height: auto;
    width: auto;
  }
  
  .hero-copy h1 {
    text-align: center;  
    margin: 0 auto; 
    width: 100%;
    display: block;
    /* Slightly scale down font on very small mobile devices to ensure fit */
    font-size: clamp(2.5rem, 10vw, 4rem); 
      font-size: 52px;
  }

  .intro {
    display: none;
  }
  
  .hero-actions {
    justify-content: center;
    margin-top: var(--space-6);
  }
}

/* Contact Form Styles */
.contact-form {
  display: grid;
  gap: var(--space-5);
  background: var(--color-surface-2);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Make textareas vertically resizable only */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-faint);
}

/* Custom focus states to match your primary theme color */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
  background: var(--color-surface-2);
}

/* Override the default button styling slightly for the form */
.contact-form .btn {
  margin-top: var(--space-2);
  width: 100%;
}

.contact h1 {
  font-size: 3.5rem;
  font-family: var(--font-display);
}

.contact p {
  margin-bottom: 2rem;
}