﻿:root {
  --bg: #f6f2ea;
  --bg-alt: #eef4f1;
  --ink: #0f1716;
  --muted: #5a5651;
  --accent: #2b6f66;
  --accent-strong: #1e4f4a;
  --accent-warm: #f0b95c;
  --surface: #ffffff;
  --surface-muted: #f4efe7;
  --border: rgba(15, 23, 22, 0.12);
  --shadow: 0 25px 60px rgba(15, 23, 22, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
  --font-body: "Work Sans", "Trebuchet MS", "Verdana", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #fbf7f1 0%, var(--bg-alt) 45%, #f8efe2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 111, 102, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

body::before {
  top: -140px;
  right: -160px;
}

body::after {
  bottom: -200px;
  left: -160px;
  background: radial-gradient(circle, rgba(240, 185, 92, 0.22), transparent 70%);
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: -999px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0 10px;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 1.2px;
  box-shadow: 0 10px 20px rgba(43, 111, 102, 0.25);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.section {
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 120%;
  height: 70%;
  transform: translateX(-50%);
  background: linear-gradient(130deg, rgba(43, 111, 102, 0.14), rgba(240, 185, 92, 0.14));
  border-radius: 999px;
  z-index: 0;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  margin: 0 0 12px;
}

.hero-copy .brand {
  display: block;
  color: var(--accent);
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin: 0 0 12px;
}

.seo-blurb {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 18px 35px rgba(43, 111, 102, 0.25);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.link {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.link:hover,
.link:focus-visible {
  border-bottom-color: var(--ink);
}

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

.hero-previews {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-preview {
  position: relative;
}

.hero-preview-main {
  max-width: 360px;
}

.hero-preview-secondary {
  position: absolute;
  right: -12px;
  bottom: -24px;
  width: min(260px, 72%);
  transform: rotate(-2deg);
}

.hero-preview .project-preview {
  margin-bottom: 0;
  box-shadow: 0 24px 50px rgba(15, 23, 22, 0.18);
}

.hero-visual .preview-hero {
  height: 70px;
}

.hero-visual .preview-columns span {
  height: 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(43, 111, 102, 0.12));
}

.timeline-item {
  position: relative;
  padding: 0 0 0 52px;
}

.timeline-content {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 22, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover .timeline-content,
.timeline-item:focus-within .timeline-content {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(43, 111, 102, 0.12);
}

.timeline-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-content h3 {
  margin: 0 0 6px;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  gap: 16px;
}

.project-card {
  display: block;
  padding: 16px 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 22, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card:focus-visible {
  outline: 2px solid rgba(43, 111, 102, 0.6);
  outline-offset: 4px;
}

.project-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-muted);
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 22, 0) 55%, rgba(15, 23, 22, 0.35) 100%);
  pointer-events: none;
}

.project-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #f0ede6;
}

.project-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: lowercase;
  color: #fff;
  background: rgba(15, 23, 22, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.project-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 22, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--surface-muted));
  margin-bottom: 16px;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(15, 23, 22, 0.04);
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 22, 0.2);
}

.preview-url {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.6px;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}

.preview-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 231, 0.95));
}

.preview-hero {
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(43, 111, 102, 0.28), rgba(15, 23, 22, 0.05));
}

.preview-lines {
  display: grid;
  gap: 6px;
}

.preview-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 22, 0.12);
}

.preview-lines span:last-child {
  width: 65%;
}

.preview-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-columns span {
  height: 28px;
  border-radius: 10px;
  background: rgba(15, 23, 22, 0.08);
}

.preview-cta {
  width: 42%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43, 111, 102, 0.7), rgba(240, 185, 92, 0.7));
}

.project-card h3 {
  margin: 0 0 8px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 22, 0.06);
}

.contact-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card a {
  font-weight: 600;
  color: var(--accent);
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(43, 111, 102, 0.3);
  background: rgba(43, 111, 102, 0.08);
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.contact-pill span:last-child {
  word-break: break-word;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(43, 111, 102, 0.18);
}

.contact-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.muted {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 22, 0.08);
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
}

input,
textarea {
  font: inherit;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 22, 0.2);
  background: rgba(255, 255, 255, 0.9);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 111, 102, 0.2);
}

.is-invalid {
  border-color: #c3463d;
  box-shadow: 0 0 0 3px rgba(195, 70, 61, 0.15);
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 0.85rem;
}

.form-status[data-state="error"] {
  color: #c3463d;
}

.form-status[data-state="success"] {
  color: var(--accent);
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
  border-bottom-color: currentColor;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 22, 0.45);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.modal-close {
  border: 1px solid rgba(15, 23, 22, 0.2);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.modal-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.modal-body p {
  margin: 0;
}

.is-modal-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

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

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .section-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

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

  .timeline::before {
    top: 16px;
    left: 6%;
    right: 6%;
    height: 2px;
    width: auto;
  }

  .timeline-item {
    padding: 40px 0 0;
    text-align: center;
  }

  .timeline-dot {
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
  }

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

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 140px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    order: 3;
    flex-wrap: wrap;
    row-gap: 8px;
    letter-spacing: 1.2px;
  }

  .btn-small {
    order: 2;
  }

  .hero-visual {
    display: none;
  }

  .hero-previews {
    gap: 12px;
  }

  .hero-preview-secondary {
    position: static;
    transform: none;
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
