/* Homepage-only design. Other pages keep css/style.css. */

:root {
  --ink: #1b1916;
  --muted: #5f584f;
  --paper: #f4f0e8;
  --card: #fffdfb;
  --line: rgba(27, 25, 22, 0.12);
  --red: #b31d22;
  --red-deep: #8c1218;
  --gold: #f0b429;
  --gold-deep: #d89a12;
  --hire-ink: #1a1406;
  --shadow: 0 18px 50px rgba(27, 25, 22, 0.12);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(179, 29, 34, 0.06), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

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

button,
input {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.sticky-stack {
  position: sticky;
  top: 0;
  z-index: 40;
}

.hire-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hire-bar:hover .hire-cta {
  background: var(--hire-ink);
  color: #fff;
}

.live,
.live-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-inline {
  background: rgba(179, 29, 34, 0.16);
  color: var(--red);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(179, 29, 34, 0.7);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(179, 29, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 29, 34, 0);
  }
}

.hire-text {
  font-size: 15px;
}

.hire-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-header {
  position: relative;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 14px;
}

.logo img {
  height: 72px;
  width: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  flex: 1;
  min-width: 0;
  margin-top: 18px;
  border-top: 0;
}

.site-nav > ul {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav li:hover > a {
  color: var(--red);
  background: rgba(166, 31, 31, 0.06);
}

.site-nav li {
  position: relative;
  list-style: none;
}

.site-nav .sub {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav li:hover > .sub,
.site-nav li:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav .sub a {
  padding: 10px 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex: 0 0 auto;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}

.hero {
  position: relative;
  height: calc(100svh - 210px);
  min-height: 520px;
  background: #1b1916;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.28) 0%, rgba(18, 16, 14, 0.08) 46%, rgba(18, 16, 14, 0.45) 100%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.05), rgba(18, 16, 14, 0.35));
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - var(--wrap)) / 2));
  bottom: 72px;
  width: min(460px, calc(100% - 48px));
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h2,
.section-title,
.vacancy h2,
.concept-copy h2,
.news-copy h3 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
}

.hero-copy p,
.prose p,
.concept-copy p,
.news-copy p,
.tagline {
  color: var(--muted);
}

.hero-copy p {
  margin: 0 0 18px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100% - var(--wrap)) / 2));
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--red);
  transform: scale(1.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red-deep);
}

.vacancy {
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(179, 29, 34, 0.35), transparent 60%),
    #171512;
  color: #f7f1e6;
}

.vacancy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.vacancy h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  color: #fff;
}

.btn-urgent {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(179, 29, 34, 0.28);
}

.btn-urgent:hover,
.btn-urgent:focus-visible {
  background: var(--red-deep);
  color: #fff;
}

.tagline-band {
  padding: 42px 0 0;
}

.tagline {
  margin: 0;
  max-width: 820px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 460;
  line-height: 1.35;
  color: var(--ink);
}

.welcome {
  padding: 54px 0 20px;
}

.welcome-grid,
.concept,
.news-card,
.updates-inner {
  display: grid;
  gap: 36px;
}

.welcome-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 68px);
}

.section-title span {
  font-style: italic;
  color: var(--red);
}

.prose p {
  margin: 0 0 14px;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.photo-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.concept {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 28px 0 10px;
}

.concept-media {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.concept-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.concept-copy h2,
.services-head h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.news {
  padding: 36px 0 10px;
}

.news-card {
  grid-template-columns: 280px 1fr;
  align-items: center;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(27, 25, 22, 0.05);
}

.news-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
}

.date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  line-height: 1;
}

.date-badge .day {
  font-family: var(--serif);
  font-size: 24px;
}

.date-badge .month {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-copy h3 {
  margin: 0 0 8px;
  font-size: 32px;
}

.news-copy h3 a:hover {
  color: var(--red);
}

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.services {
  padding: 48px 0 20px;
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.services-head p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

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

.service-grid li:nth-child(-n + 4) {
  grid-column: span 3;
}

.service-grid li:nth-child(n + 5) {
  grid-column: span 4;
}

.service-grid a {
  position: relative;
  display: block;
  height: 230px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
}

.service-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0) 35%, rgba(18, 16, 14, 0.88) 100%);
}

.service-grid span {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.service-grid a:hover img,
.service-grid a:focus-visible img {
  transform: scale(1.06);
}

.updates {
  padding: 36px 0 64px;
}

.updates-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.updates h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 520;
}

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

.email-row {
  display: flex;
  gap: 8px;
}

.texttab {
  width: min(360px, 70vw);
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}

.texttab:focus {
  outline: 2px solid var(--red);
  border-color: transparent;
}

.emailButton {
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.emailButton:hover,
.emailButton:focus-visible {
  background: var(--red-deep);
}

.site-footer {
  background: #141311;
  color: #f3eee6;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

.footer-address {
  margin: 0;
  font-style: normal;
  line-height: 1.7;
  color: rgba(243, 238, 230, 0.86);
}

.ftrlogo {
  display: block;
  width: 280px;
  height: 88px;
  border-radius: 16px;
  background: #9f9f9f url("../images/ftr-logo.jpg") center / cover no-repeat;
}

.copyright {
  margin: 0;
  padding: 14px 16px 22px;
  text-align: center;
  color: #8d877e;
  font-size: 13px;
}

.copyright a:hover {
  color: #fff;
}

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

  .site-nav,
  .header-tools {
    margin-top: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 12px 16px 20px;
    background: #fffdfb;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
    min-width: 0;
  }

}

@media (max-width: 860px), (max-height: 760px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-media {
    position: relative;
    height: 42vh;
    min-height: 220px;
  }

  .hero-slide::after {
    height: 42vh;
    min-height: 220px;
    bottom: auto;
    background: linear-gradient(180deg, rgba(18, 16, 14, 0.08), rgba(18, 16, 14, 0.28));
  }

  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -36px 16px 20px;
  }

  .hero-dots {
    top: 16px;
    right: 20px;
    bottom: auto;
    left: auto;
  }
}

@media (max-width: 860px) {
  .welcome-grid,
  .concept,
  .news-card,
  .updates-inner,
  .vacancy-inner,
  .footer-top,
  .services-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .vacancy-inner,
  .footer-top,
  .services-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid li,
  .service-grid li:nth-child(-n + 4),
  .service-grid li:nth-child(n + 5) {
    grid-column: span 6;
  }

  .hero-copy {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 64px;
  }

  .photo-frame,
  .photo-frame img,
  .concept-media,
  .concept-media img {
    min-height: 260px;
  }

  .email-row {
    width: 100%;
    flex-direction: column;
  }

  .texttab {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .service-grid li,
  .service-grid li:nth-child(-n + 4),
  .service-grid li:nth-child(n + 5) {
    grid-column: span 12;
  }

  .hire-text {
    text-align: center;
  }

  .header-row,
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
