:root {
  --bg: #f7f6f2;
  --bg-elev: rgba(255, 255, 255, 0.82);
  --bg-soft: rgba(85, 107, 47, 0.06);
  --text: rgba(17, 24, 39, 0.96);
  --muted: rgba(17, 24, 39, 0.7);
  --muted-2: rgba(17, 24, 39, 0.55);
  --border: rgba(17, 24, 39, 0.12);
  --ring: rgba(85, 107, 47, 0.45);
  --shadow: 0 28px 110px rgba(17, 24, 39, 0.18);
  --shadow-soft: 0 18px 60px rgba(17, 24, 39, 0.12);

  --accent: #556b2f;
  --accent-2: #445624;
  --accent-3: #6b7d3f;

  --radius: 16px;
  --radius-lg: 22px;
  --max: 1120px;
  --gutter: 20px;

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  z-index: -1;
}

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

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 50;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  transition: background 180ms ease, border-color 180ms ease;
  border-bottom: 1px solid transparent;
}

.site-header[data-elevated="true"] {
  background: rgba(247, 246, 242, 0.9);
  border-bottom-color: rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.12);
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(85, 107, 47, 0.08);
  color: rgba(17, 24, 39, 0.96);
}

.main {
  outline: none;
}

.hero {
  padding: 62px 0 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.hero-copy {
  padding: 4px 0;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.82rem;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-title .js-brand-name {
  color: rgba(17, 24, 39, 0.98);
  text-shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 54ch;
  white-space: pre-line;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: rgba(255, 255, 255, 0.96);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
}

.hero-pills {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(85, 107, 47, 0.22);
  background: rgba(85, 107, 47, 0.08);
  color: rgba(17, 24, 39, 0.78);
  font-size: 0.92rem;
}

.hero-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
}

.mini-kicker {
  display: block;
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mini-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  padding-top: 4px;
}

.masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 981px) {
  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry .shot:first-child {
    grid-column: 1 / -1;
  }

  .masonry .shot:first-child img {
    height: 240px;
  }

  .masonry .shot:not(:first-child) img {
    height: 170px;
  }
}

.shot {
  position: relative;
  border: 1px solid var(--border);
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 110px rgba(17, 24, 39, 0.22);
}

.shot img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.shot-glow {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.12);
  opacity: 0.85;
}

.visual-badge {
  position: absolute;
  left: 14px;
  bottom: -12px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.badge-title {
  display: block;
  font-weight: 700;
}

.badge-sub {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.section {
  padding: 64px 0;
}

.section-contrast {
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid rgba(17, 24, 39, 0.08);
}

.section-soft {
  background: rgba(85, 107, 47, 0.04);
  border-block: 1px solid rgba(17, 24, 39, 0.08);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  display: block;
  width: 78px;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: var(--accent);
  opacity: 0.75;
  box-shadow: 0 16px 60px rgba(85, 107, 47, 0.12);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.6;
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(85, 107, 47, 0.35);
  text-underline-offset: 3px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.16);
}

@supports (backdrop-filter: blur(12px)) {
  .card,
  .step,
  .about-card,
  .contact-card,
  .contact-form,
  .mini-card,
  .stat,
  .portfolio-card,
  .shot,
  .contact-link,
  .visual-badge,
  .fab {
    backdrop-filter: blur(12px);
  }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(85, 107, 47, 0.12);
  border: 1px solid rgba(85, 107, 47, 0.22);
  color: var(--accent);
  margin-bottom: 12px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.portfolio-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: saturate(1.06);
  transform: scale(1.01);
  transition: transform 180ms ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.portfolio-caption {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step {
  display: flex;
  gap: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.16);
}

.step-num {
  font-weight: 750;
  letter-spacing: 0.1em;
  color: var(--accent);
  min-width: 48px;
}

.step-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

.about-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
}

.about-text {
  margin: 14px 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  align-items: start;
}

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
}

.contact-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.1);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.contact-link::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 10px;
  flex: none;
  margin-top: 2px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: var(--accent);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.14);
}

.contact-link.js-whatsapp-link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 12.05c0 4.42-3.58 8-8 8a7.94 7.94 0 0 1-4.1-1.13L4 20l1.12-3.7A7.94 7.94 0 0 1 4 12.05c0-4.42 3.58-8 8-8s8 3.58 8 8Z' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M9.2 8.6c.1-.23.2-.25.38-.25h.35c.11 0 .25.04.38.29.13.25.45 1.09.49 1.17.04.08.07.19.01.3-.06.12-.09.19-.18.3-.09.11-.19.24-.27.32-.09.09-.18.18-.08.35.1.17.46.75.99 1.22.68.6 1.25.79 1.42.87.17.08.27.07.37-.04.1-.11.42-.49.53-.66.11-.17.22-.14.37-.08.15.06.97.46 1.13.54.16.08.27.12.31.19.04.07.04.41-.1.81-.14.4-.8.79-1.1.84-.3.05-.67.07-1.08-.07-.25-.08-.57-.19-.98-.37a8.04 8.04 0 0 1-2.72-2.1 4.52 4.52 0 0 1-.94-1.57c-.1-.32-.01-.73.21-.96.2-.21.45-.53.52-.65.06-.12.03-.23-.01-.32-.04-.09-.35-.84-.48-1.15-.12-.3-.24-.25-.33-.25h-.28' fill='white' opacity='.9'/%3E%3C/svg%3E");
}

.contact-link.js-phone-link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.2 4.8h2.1c.6 0 1.1.4 1.2 1l.6 2.6c.1.5-.1 1-.5 1.3l-1.2.9c.8 1.5 1.9 2.6 3.4 3.4l.9-1.2c.3-.4.8-.6 1.3-.5l2.6.6c.6.1 1 .6 1 1.2v2.1c0 .7-.6 1.3-1.3 1.3-7.2 0-13-5.8-13-13 0-.7.6-1.3 1.3-1.3Z' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-link.js-email-link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 7.5h14c.8 0 1.5.7 1.5 1.5v8c0 .8-.7 1.5-1.5 1.5H5c-.8 0-1.5-.7-1.5-1.5V9c0-.8.7-1.5 1.5-1.5Z' stroke='white' stroke-width='1.6'/%3E%3Cpath d='M5 9l7 5 7-5' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.contact-link.js-maps-link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21s6-4.2 6-10a6 6 0 1 0-12 0c0 5.8 6 10 6 10Z' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M12 13.2a2.2 2.2 0 1 0 0-4.4 2.2 2.2 0 0 0 0 4.4Z' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E");
}

.contact-link.js-instagram-link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 3.8h10A3.2 3.2 0 0 1 20.2 7v10A3.2 3.2 0 0 1 17 20.2H7A3.2 3.2 0 0 1 3.8 17V7A3.2 3.2 0 0 1 7 3.8Z' stroke='white' stroke-width='1.6'/%3E%3Cpath d='M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z' stroke='white' stroke-width='1.6'/%3E%3Cpath d='M17.2 6.8h.01' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(85, 107, 47, 0.06);
  border-color: rgba(85, 107, 47, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 20px 64px rgba(17, 24, 39, 0.14);
}

.contact-note {
  margin: 14px 0 0;
  line-height: 1.6;
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 650;
  color: var(--text);
}

input,
textarea {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  font: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(85, 107, 47, 0.55);
  box-shadow: inset 0 0 0 1px rgba(85, 107, 47, 0.22);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-help {
  margin: 14px 0 0;
  min-height: 22px;
}

.site-footer {
  padding: 38px 0 48px;
}

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

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.footer-brand-text {
  display: grid;
}

.footer-name {
  font-weight: 700;
}

.footer-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-note {
  margin: 10px 0 0;
}

.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(85, 107, 47, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fab[hidden] {
  display: none;
}

.fab:hover,
.fab:focus-visible {
  transform: translateY(-2px);
  background: rgba(85, 107, 47, 0.08);
  border-color: rgba(85, 107, 47, 0.38);
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.18);
}

.fab-icon svg {
  width: 18px;
  height: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.lightbox[data-open="true"] {
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.lightbox-panel {
  position: relative;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(85, 107, 47, 0.08);
  transform: translateY(-1px);
}

.lightbox-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  height: min(640px, calc(100vh - 24px));
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(85, 107, 47, 0.06);
}

.lightbox-meta {
  padding: 18px 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
}

.lightbox-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

.lightbox-actions {
  display: grid;
  gap: 12px;
}

.lightbox-nav {
  display: flex;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .shot img {
    height: 160px;
  }

  .visual-badge {
    position: static;
    margin-top: 12px;
  }

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

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

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

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

  .lightbox-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .lightbox-img {
    height: min(46vh, 360px);
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero-mini {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .section {
    padding: 56px 0;
  }

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

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

  .portfolio-card img {
    height: 180px;
  }

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

  .shot img {
    height: 140px;
  }

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

  .fab {
    right: 14px;
    bottom: 14px;
    padding: 12px 12px;
  }

  .fab-text {
    display: none;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 16px;
  }

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

  .portfolio-card img {
    height: 240px;
  }
}

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

  .btn,
  .reveal,
  .card,
  .step,
  .shot,
  .mini-card,
  .portfolio-card,
  .contact-link,
  .fab,
  .portfolio-card img {
    transition: none;
  }
}
