:root {
  --accent: #547f00;
  --accent-dark: #426600;
  --accent-text: #547f00;
  --accent-soft: #f3f9e7;
  --ink: #101210;
  --muted: #56616a;
  --line: rgba(141, 207, 0, 0.25);
  --surface: #ffffff;
  --shadow-sm: 0 12px 30px rgba(15, 24, 10, 0.1);
  --shadow-lg: 0 30px 70px rgba(15, 24, 10, 0.16);
  --container: 1240px;
  --header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #edf0e9;
  box-shadow: 0 5px 18px rgba(17, 25, 12, 0.035);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  max-width: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 76px;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(23px, 2.35vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--header-height);
  color: #090b08;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  color: var(--accent);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu {
  display: none;
}

/* Shared typography and controls */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--accent);
}

.split-title {
  display: inline-block;
  position: relative;
  margin: 0 0 25px;
  padding-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: 0.015em;
  line-height: 1.08;
  text-transform: uppercase;
}

.split-title::before,
.split-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
}

.split-title::before {
  left: 0;
  width: 100%;
  background: var(--accent);
}

.split-title::after {
  left: 0;
  width: 42%;
  background: var(--ink);
}

.split-title span,
.split-title strong {
  display: block;
}

.split-title span {
  font-weight: 600;
}

.split-title strong {
  color: var(--accent);
  font-weight: 800;
}

.section-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(141, 207, 0, 0.25);
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 14px 29px rgba(116, 172, 0, 0.29);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: #48534c;
}

.button-secondary:hover {
  background: var(--accent-soft);
  border-color: rgba(141, 207, 0, 0.48);
}

.section-watermark {
  position: absolute;
  top: 38px;
  right: -18px;
  z-index: 0;
  color: rgba(141, 207, 0, 0.065);
  font-size: clamp(50px, 7vw, 112px);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 0.9;
  pointer-events: none;
  white-space: nowrap;
}

/* Closing-project hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 790px;
  display: flex;
  align-items: center;
  background: linear-gradient(110deg, #fff 0%, #fff 39%, #f4f8eb 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -9%;
  width: 62%;
  height: 78%;
  background: radial-gradient(ellipse at center, rgba(141, 207, 0, 0.09), transparent 68%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(141, 207, 0, 0.035) 0 1px, transparent 1px 28px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100% - 56px));
  display: grid;
  grid-template-columns: minmax(400px, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(60px, 5vw, 84px);
  align-items: center;
  padding-block: 88px;
}

.hero-copy {
  min-width: 0;
  animation: fade-up 650ms ease both;
}

.hero-brandline {
  position: relative;
  display: table;
  margin: 0 0 43px;
  padding-bottom: 14px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}

.hero-brandline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 66px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 32px;
  padding-bottom: 24px;
  font-size: clamp(62px, 4.45vw, 96px);
  letter-spacing: -0.02em;
  line-height: 0.93;
  text-transform: uppercase;
}

.hero h1::before,
.hero h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 4px;
}

.hero h1::before {
  left: 0;
  width: 100%;
  background: var(--accent);
}

.hero h1::after {
  left: 0;
  width: 44%;
  background: var(--ink);
}

.hero-title-top,
.hero h1 strong {
  display: block;
}

.hero-title-top {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 400;
}

.hero h1 strong {
  color: var(--accent);
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.hero h1 strong span {
  display: block;
}

.hero-lead {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.video-card {
  position: relative;
  min-width: 0;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: fade-in 800ms 120ms ease both;
}

.video-card::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -14px;
  width: 14px;
  height: 39%;
  background: var(--accent);
}

.video-card::after {
  content: "";
  position: absolute;
  right: 21px;
  bottom: -7px;
  width: 31%;
  height: 7px;
  background: var(--accent);
}

.video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 51px;
  padding: 0 2px 14px;
}

.video-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-inline: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.video-heading strong {
  color: #909a92;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d0f0c;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Intro section */
.home-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(78px, 8vw, 116px);
  background: linear-gradient(115deg, #fff 0%, #fff 46%, #f7faef 100%);
  border-bottom: 1px solid var(--line);
}

.home-intro::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 250px;
  height: 6px;
  background: var(--accent);
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 78px);
  align-items: center;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding-inline: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: #59625c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list li:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.intro-visual {
  position: relative;
  margin: 0;
}

.intro-visual::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: -18px;
  left: -18px;
  z-index: -1;
  border: 1px solid rgba(141, 207, 0, 0.32);
}

.intro-visual::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 44%;
  height: 7px;
  background: var(--accent);
}

.intro-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(141, 207, 0, 0.18);
  box-shadow: var(--shadow-lg);
}

.intro-visual figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-visual figcaption strong {
  color: var(--accent-dark);
}

.intro-visual figcaption span {
  color: var(--muted);
  font-weight: 700;
}

/* Other projects */
.other-projects {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 8vw, 112px);
  background: linear-gradient(180deg, #fff 0%, #f6faed 100%);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.center-heading {
  position: relative;
  z-index: 1;
  display: table;
  margin: 0 auto 45px;
  text-align: center;
}

.center-heading .eyebrow {
  justify-content: center;
}

.center-heading .eyebrow::after {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--accent);
}

.center-heading .split-title {
  margin-bottom: 0;
  font-size: clamp(31px, 3.3vw, 48px);
}

.center-heading .split-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.projects-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 5 / 3;
  background: #dce6d6;
  border: 1px solid rgba(141, 207, 0, 0.18);
  box-shadow: var(--shadow-sm);
  color: #fff;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 26%, rgba(7, 12, 5, 0.76) 100%);
}

.project-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 38%;
  height: 5px;
  background: var(--accent);
  transition: width 220ms ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
}

.project-overlay small {
  display: table;
  margin-bottom: 9px;
  padding: 7px 10px;
  background: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-overlay strong {
  display: block;
  font-size: clamp(18px, 1.25vw, 24px);
  letter-spacing: 0.025em;
  line-height: 1.12;
  text-transform: uppercase;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 207, 0, 0.45);
  box-shadow: 0 22px 45px rgba(15, 24, 10, 0.17);
}

.project-card:hover img {
  transform: scale(1.045);
}

.project-card:hover::after {
  width: 72%;
}

/* Footer */
.site-footer {
  --accent: #8dcf00;
  --accent-dark: #74ac00;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 1px;
  background:
    linear-gradient(115deg, rgba(141, 207, 0, 0.025), transparent 32%),
    #10130f;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--accent) 82%, transparent);
}

.site-footer::after {
  content: "RAJPARK";
  position: absolute;
  right: -0.04em;
  bottom: -0.08em;
  color: #fff;
  font-size: clamp(92px, 15vw, 260px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  opacity: 0.018;
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  top: -310px;
  left: -290px;
  width: 650px;
  height: 650px;
  border: 92px solid rgba(141, 207, 0, 0.028);
  border-radius: 50%;
  pointer-events: none;
}

.footer-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: -38px;
  padding: 38px 44px;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    #171c15;
  border: 1px solid rgba(141, 207, 0, 0.36);
  border-top: 4px solid var(--accent);
  color: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(141, 207, 0, 0.04) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.footer-cta > * {
  position: relative;
  z-index: 1;
}

.footer-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.footer-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2.5vw, 37px);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-transform: uppercase;
}

.footer-cta p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.button-footer {
  flex: 0 0 auto;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(141, 207, 0, 0.2);
}

.button-footer:hover {
  background: #fff;
  border-color: #fff;
  color: #151a13;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.footer-cta-mark {
  position: absolute;
  top: 50%;
  right: 270px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.025);
  font-size: 118px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, 0.8fr) minmax(300px, 1.05fr);
  gap: clamp(24px, 3.5vw, 54px);
  padding-block: 76px 70px;
}

.footer-main > * + * {
  padding-left: clamp(28px, 3vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.footer-brand-panel > p {
  max-width: 320px;
  margin: 26px 0 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.75;
}

.footer-brand img {
  width: auto;
  height: 118px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
  padding: 0 11px;
  background: rgba(141, 207, 0, 0.07);
  border: 1px solid rgba(141, 207, 0, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-status span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(141, 207, 0, 0.11);
}

.footer-contact {
  display: grid;
  gap: 17px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.footer-contact div {
  display: grid;
  gap: 3px;
}

.footer-contact small {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact span,
.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact a,
.footer-column a,
.back-to-top {
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-contact a:hover,
.footer-column a:hover,
.back-to-top:hover {
  color: var(--accent);
}

.footer-column h2 {
  position: relative;
  margin: 0 0 27px;
  padding-bottom: 16px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-column h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--accent);
}

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

.footer-column li {
  line-height: 1.35;
}

.footer-column a {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.footer-column a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 0.9;
}

.footer-column a:hover {
  transform: translateX(3px);
}

.footer-social {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.footer-social-title {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-column .footer-social-link {
  display: grid;
  width: 44px;
  height: 44px;
  padding-left: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-column .footer-social-link::before {
  content: none;
  display: none;
}

.footer-column .footer-social-link:hover,
.footer-column .footer-social-link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.footer-social-facebook {
  --social-icon: url("/vendor/bootstrap-icons/facebook.svg");
}

.footer-social-instagram {
  --social-icon: url("/vendor/bootstrap-icons/instagram.svg");
}

.footer-column .footer-social-facebook:hover,
.footer-column .footer-social-facebook:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
}

.footer-column .footer-social-instagram:hover,
.footer-column .footer-social-instagram:focus-visible {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
  border-color: #d94685;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.24);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  width: calc(100% - 48px);
  max-width: none;
  min-height: 68px;
}

.footer-copyright {
  padding-left: max(0px, calc((100vw - var(--container)) / 2 - 24px));
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.footer-bottom small a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-bottom small a:hover {
  color: #fff;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  width: auto;
  margin-left: auto;
  text-align: right;
}

.footer-bottom-right small {
  position: absolute;
  right: max(0px, calc((100vw - var(--container)) / 2 - 24px));
  text-align: right;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  justify-self: end;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.back-to-top span {
  color: var(--accent);
  font-size: 15px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1280px) {
  .footer-bottom-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 48px);
    width: min(54vw, 650px);
  }

  .footer-bottom-right small {
    position: static;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    max-width: none;
  }

  .desktop-nav ul {
    gap: 22px;
  }

  .hero-grid {
    gap: 48px;
  }

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

  .project-overlay strong {
    font-size: 22px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.05fr) minmax(210px, 0.78fr) minmax(280px, 1fr);
    gap: 24px;
  }

  .footer-main > * + * {
    padding-left: 27px;
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 5px 0 12px;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .menu-icon {
    display: grid;
    gap: 4px;
    width: 25px;
  }

  .menu-icon i {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu[open] .menu-icon i:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu[open] .menu-icon i:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu[open] .menu-icon i:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: 100%;
    right: -24px;
    left: -24px;
    display: grid;
    padding: 12px 24px 20px;
    background: #fff;
    border-top: 1px solid #edf0e9;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 35px rgba(15, 24, 10, 0.13);
  }

  .mobile-menu nav a {
    padding: 12px 4px;
    border-bottom: 1px solid #eef1eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .mobile-menu nav a.is-active {
    color: var(--accent-dark);
  }

  .hero {
    min-height: auto;
  }

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

  .hero-copy {
    max-width: 710px;
  }

  .hero h1 strong {
    white-space: normal;
  }

  .video-card {
    width: 100%;
  }

  .intro-copy {
    max-width: 710px;
  }

  .intro-visual {
    width: calc(100% - 18px);
    margin-left: 18px;
  }

  .footer-cta {
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-block: 54px;
  }

  .footer-main > * {
    padding-block: 34px;
  }

  .footer-main > * + * {
    padding-left: 34px;
  }

  .footer-brand-panel {
    grid-column: 1 / -1;
    padding-top: 0;
    padding-bottom: 44px;
  }

  .footer-main > :nth-child(2),
  .footer-main > :nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
  }

  .footer-main > :nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-bottom-inner {
    flex-wrap: wrap;
    width: min(var(--container), calc(100% - 48px));
    padding-block: 18px;
  }

  .footer-copyright {
    padding-left: 0;
  }

  .footer-bottom-right {
    display: flex;
    width: 100%;
    margin-left: 0;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom-right small {
    position: static;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(100% - 34px, var(--container));
  }

  .brand img {
    width: auto;
    height: 62px;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .mobile-menu nav {
    right: -17px;
    left: -17px;
    padding-inline: 17px;
  }

  .hero-grid {
    gap: 42px;
    padding-block: 56px 64px;
  }

  .hero-brandline {
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 56px);
  }

  .hero-lead,
  .section-lead {
    font-size: 15px;
  }

  .button-row,
  .button-row .button,
  .hero-copy > .button {
    width: 100%;
  }

  .video-card {
    padding: 11px;
  }

  .video-card::before {
    display: none;
  }

  .video-heading {
    display: block;
    min-height: 0;
  }

  .video-heading strong {
    display: block;
    margin-top: 10px;
  }

  .home-intro,
  .other-projects {
    padding-block: 65px;
  }

  .split-title {
    font-size: clamp(31px, 9vw, 44px);
  }

  .feature-list {
    display: grid;
  }

  .feature-list li {
    justify-content: center;
  }

  .section-watermark {
    top: 22px;
    right: -85px;
    font-size: 54px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-overlay strong {
    font-size: 20px;
  }

  .footer-cta {
    display: block;
    padding: 27px 22px;
  }

  .footer-cta .button {
    width: 100%;
    margin-top: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 42px 44px;
  }

  .footer-brand-panel {
    grid-column: auto;
  }

  .footer-main > *,
  .footer-main > * + * {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 0;
  }

  .footer-main > :first-child {
    padding-top: 0;
    border-top: 0;
  }

  .footer-bottom-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding-block: 17px;
  }

  .footer-bottom-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .back-to-top {
    align-self: flex-start;
    justify-self: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
