/*
  This stylesheet defines the presentation for the demo photography website.
  Feel free to customise colours, fonts, spacing and responsive behaviour.
  Variables defined on the ``:root`` selector act like global settings that
  cascade throughout the document.  Changing these values will update the
  overall look without having to search through the file.
*/

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/roboto/roboto-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-color: #d5d4ca;      /* light background used on most sections */
  --dark-bg: #151515;       /* dark background used for the newsletter footer */
  --dark-blue: #0a1937;     /* dark blue background, same as pictures */
  --primary-color: #000000; /* primary text colour */
  --accent-color: #ffffff;  /* accent colour for inverted text */
  --header-bg: #c6c5bc;     /* solid header background */
  --subtle-bg: rgba(21, 21, 21, 0.08);
  --font-primary: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Basic resets to remove default spacing and set global font family */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
}

/* Full-bleed title backgrounds can create 1-2px viewport overflow on desktop. */
.home-page,
.projects-page {
  overflow-x: hidden;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Layout: make footer stick to bottom without extra top gap */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
/* Contact page: left-half subtle background between header and footer */
.contact-page {
  --contact-split: 50%;
}

.contact-page main {
  background: linear-gradient(90deg, var(--subtle-bg) 0 var(--contact-split), transparent var(--contact-split) 100%);
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.home-page header { background-color: var(--bg-color); }
.contact-page header {
  background: linear-gradient(90deg, var(--header-bg) 0 var(--contact-split, 50%), var(--bg-color) var(--contact-split, 50%) 100%);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Ensure logo link looks like brand text on every page */
header .logo { color: var(--primary-color); text-decoration: none; }
header .logo:visited { color: var(--primary-color); }
header .logo:hover { opacity: 0.7; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.7;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Shared helpers */
.page-title {
  font-size: 2.4rem;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

/* Keep semantic heading for SEO without changing the visual layout. */
.seo-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-button {
  display: block;
  width: 100%;
  max-width: 1800px;
  margin: 2.5rem auto 0;
  padding: clamp(0.95rem, 1.5vw, 1.5rem) 0.75rem;
  border: 2.5px solid var(--dark-blue);
  background: var(--bg-color);
  color: var(--dark-blue);
  font-size: clamp(1.45rem, 2.6vw, 2.5rem);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(9, 20, 40, 0.16),
    0 2px 8px rgba(9, 20, 40, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.cta-button:hover {
  background: var(--bg-color);
  transform: translateY(-3px);
  box-shadow:
    0 16px 34px rgba(9, 20, 40, 0.2),
    0 4px 12px rgba(9, 20, 40, 0.14);
}

@media (hover: none) {
  .cta-button:hover {
    transform: none;
    background: var(--bg-color);
    box-shadow:
      0 10px 24px rgba(9, 20, 40, 0.16),
      0 2px 8px rgba(9, 20, 40, 0.12);
  }
}

.reveal-ready [data-scroll-reveal] {
  --reveal-x: 0;
  --reveal-y: 18px;
  opacity: 0;
  visibility: hidden;
  translate: var(--reveal-x) var(--reveal-y);
  transition:
    opacity 0.52s ease,
    translate 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.52s;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0.52s;
  will-change: opacity, translate;
}

.legal-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-content h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 2rem 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

.legal-content p {
  max-width: 76ch;
  margin: 0.45rem 0;
}

.legal-updated {
  font-weight: 700;
}

.privacy-note {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.84;
}

.reveal-ready [data-scroll-reveal][data-reveal-direction="left"] {
  --reveal-x: -18px;
}

.reveal-ready [data-scroll-reveal][data-reveal-direction="right"] {
  --reveal-x: 18px;
}

.reveal-ready [data-scroll-reveal].is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0s;
}

.audience-section {
  max-width: 1580px;
  margin: 4.2rem auto 3.5rem;
  padding: 0 1.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 620px));
  justify-content: center;
  gap: 3rem;
}

.audience-card {
  position: relative;
  border: 2px solid rgba(10, 25, 55, 0.28);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.2) 0%,
    var(--bg-color) 42%,
    rgba(10, 25, 55, 0.05) 100%
  );
  color: var(--dark-blue);
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(9, 20, 40, 0.14),
    0 2px 8px rgba(9, 20, 40, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(10, 25, 55, 0.88), rgba(10, 25, 55, 0.42));
}

.audience-card:hover {
  border-color: var(--dark-blue);
  transform: translateY(-4px);
  box-shadow:
    0 16px 32px rgba(9, 20, 40, 0.18),
    0 4px 12px rgba(9, 20, 40, 0.12);
}

.audience-card:hover .audience-card-title {
  color: var(--dark-blue);
}

.audience-card-title {
  margin: 0;
  padding: 1rem 1.25rem 0.75rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  text-align: left;
  color: rgba(10, 25, 55, 0.84);
  border-bottom: 1px solid rgba(10, 25, 55, 0.2);
  transition: color 0.2s ease;
}

.audience-list {
  margin: 1rem 1.25rem 1.3rem;
  padding-left: 0;
  list-style: none;
  font-size: clamp(1.12rem, 1.55vw, 1.5rem);
  line-height: 1.55;
}

.audience-list li {
  position: relative;
  padding-left: 1.05rem;
  color: rgba(10, 25, 55, 0.72);
  transition: color 0.2s ease;
}

.audience-card:hover .audience-list li {
  color: var(--dark-blue);
}

.audience-list li:hover {
  color: var(--dark-blue);
}

.audience-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0.02em;
  color: rgba(10, 25, 55, 0.82);
}

.audience-list li + li {
  margin-top: 0.55rem;
}

.audience-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: auto 1.25rem 1.25rem;
  width: calc(100% - 2.5rem);
  max-width: 350px;
  min-width: 0;
  padding: 0.82rem 1.1rem;
  border: 2px solid rgba(10, 25, 55, 0.72);
  border-radius: 8px;
  background: var(--bg-color);
  color: rgba(10, 25, 55, 0.72);
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow:
    0 6px 16px rgba(9, 20, 40, 0.14),
    0 2px 6px rgba(9, 20, 40, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.audience-contact-btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 900;
  font-size: 1.08em;
  line-height: 1;
  transform: translateY(-0.06em);
  transition: transform 0.2s ease;
}

.audience-card:hover .audience-contact-btn {
  border-color: var(--dark-blue);
  color: var(--dark-blue);
  background: var(--bg-color);
}

.audience-contact-btn:hover {
  background: var(--bg-color);
  color: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
}

.audience-contact-btn:hover::after {
  transform: translate(3px, -0.08em);
}

@media (max-width: 980px) {
  .audience-grid {
    grid-template-columns: minmax(0, 620px);
    gap: 2rem;
  }
}

@media (hover: none) {
  .audience-card:hover {
    transform: none;
    box-shadow:
      0 10px 24px rgba(9, 20, 40, 0.14),
      0 2px 8px rgba(9, 20, 40, 0.1);
  }

  .audience-contact-btn:hover {
    transform: none;
  }
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.5rem;
  font-weight: 600;
}

.form-status.success { color: #1a7f37; }
.form-status.error { color: #a00; }

header {
  transition: transform 1s ease, box-shadow 1.2s ease;
}

header.nav-hide {
  transform: translateY(-110%);
  box-shadow: none;
}

/* Hero section */
.hero {
  padding: 4rem 2rem;
  text-align: left;
}

.home-page .hero {
  padding-top: 0;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
  max-width: 1800px;
  margin: 0 auto;
  margin-top: -6rem
}

.home-page .hero-container {
  margin-top: 0;
}

.home-page .hero-text {
  margin-top: 0;
}

@media (min-width: 1025px) {
  .home-page .hero-container {
    align-items: flex-start;
  }

  .home-page .hero .hello-container {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .home-page .hero-text .hello {
    line-height: 1;
  }
}

.hero-image img {
  width: 670px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-text {
  flex: 1;
  /* Allow the text to expand to match the width of the gallery below */
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  
  margin-top: 1.2rem
}

.hello-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.hero-text .hello {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  white-space: nowrap;
}

.hello-line {
  flex: 1;
  height: 2px;
  background: currentColor;
  margin-left: 2rem;
  display: block;
}

.hero-text hr {
  margin: 0.5rem 0 1rem;
  border: none;
  border-top: 1px solid var(--primary-color);
  width: 100%;
}

.hero-text h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5.2vw, 5rem);
  margin: 0 0 2.5rem;
  line-height: 1.15;
  margin-top: 1.5rem
}

.hero-text h1 em,
.hero-text p em {
  font-style: italic;
}

.hero-text p {
  font-size: clamp(1.15rem, 2.6vw, 2.5rem);
  line-height: 1.3;
  margin: 0 0 1rem 0;
  text-align: justify;
  margin-top: 1.5rem
}

.hero-bottom-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.hero-bottom-line {
  flex: 1;
  height: 2px;
  background: currentColor;
  display: block;
  margin-top: 2.2rem
}

.hero-bottom-container .down-arrow {
  margin-left: 2rem;
  margin-top: -1rem;
  font-size: 3rem;
  animation: bounce 2s infinite;
}


/* Recent work */
.recent-work {
  padding: 2rem 2rem;
  text-align: center;
  margin-top: -3rem;
}

.recent-work .section-title {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 0 auto 2rem;
  padding: 2.25rem 1rem;
  max-width: 1800px;
  width: 100%;
  position: relative;
  isolation: isolate;
}

.recent-work .section-title::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background-image: url("/assets/cim_grafika3.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: -1;
}

.recent-work h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4.2vw, 4rem);
  color: var(--dark-blue);
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1800px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item .image-container {
  width: 100%;
}

/* Home page gallery cards: subtle depth for a cleaner premium look */
.home-page .recent-work .gallery-item .image-container {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  padding: 0.45rem;
  box-shadow:
    0 10px 24px rgba(9, 20, 40, 0.16),
    0 2px 8px rgba(9, 20, 40, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.home-page .recent-work .gallery-item .image-container:hover {
  transform: translateY(-4px);
  background: var(--subtle-bg);
  box-shadow:
    0 16px 34px rgba(9, 20, 40, 0.2),
    0 4px 12px rgba(9, 20, 40, 0.14);
}

@media (hover: none) {
  .home-page .recent-work .gallery-item .image-container:hover {
    transform: none;
    background: var(--bg-color);
    box-shadow:
      0 10px 24px rgba(9, 20, 40, 0.16),
      0 2px 8px rgba(9, 20, 40, 0.12);
  }
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.home-page .recent-work .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Image container for hover effects */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.overlay-text {
  display: block;
  width: 100%;
  font-weight: bold;
  text-align: center;
  color: var(--dark-blue);
  font-size: clamp(1rem, 1.9vw, 2.1rem);
  padding: 1rem;
  line-height: 1.4;
}
.overlay-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

/* FAQ section */
.faq {
  padding: 4rem 2rem;
  padding-bottom: 1.5rem;
  background-color: var(--dark-bg);
  color: var(--accent-color);
  text-align: center;
}

.faq h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.faq p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.faq form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.faq input[type='email'] {
  padding: 0.75rem 1rem;
  flex: 1 0 250px;
  max-width: 350px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.faq button,
.faq .faq-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent-color);
  background-color: transparent;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
}

.faq button:hover,
.faq .faq-button:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
}

.faq .credits {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #999;
}

.faq .credits a {
  color: inherit;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 1615px) and (min-width: 1025px) {
  .home-page .hero-container {
    display: grid;
    grid-template-columns: minmax(420px, 620px) minmax(0, 1fr);
    column-gap: 2rem;
    row-gap: 0.8rem;
    align-items: start;
  }

  .home-page .hero-image {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .home-page .hero-image img {
    width: min(620px, 100%);
    max-width: none;
  }

  .home-page .hero-text {
    display: contents;
  }

  .home-page .hero-text > .hello-container {
    grid-column: 2;
    grid-row: 1;
  }

  .home-page .hero-text > h1 {
    grid-column: 2;
    grid-row: 2;
  }

  .home-page .hero-text > .hero-bottom-container {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 0;
  }

  .home-page .hero-text > p {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    margin-top: 0.5rem;
  }

  .home-page .hero-bottom-line {
    margin-top: 0.4rem;
  }

  .home-page .hero-bottom-container .down-arrow {
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 0.9rem 1.25rem;
  }

  nav ul {
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
  }

  .hero {
    padding: 3rem 1.2rem;
  }

  .hero-container {
    margin-top: -2.5rem;
    gap: 1.5rem;
  }

  .hello-line {
    margin-left: 1.1rem;
  }

  .recent-work {
    margin-top: -1.5rem;
    padding: 1.6rem 1.2rem;
  }

  .recent-work .section-title {
    min-height: 96px;
    padding: 1.4rem 0.8rem;
  }

}

@media (max-width: 768px) {
  .hero {
    padding: 2.4rem 1rem;
  }

  .home-page .hero {
    padding-top: 0;
    padding-bottom: 0.2rem;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    gap: 1.5rem;
  }

  .home-page .hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
  }

  .home-page .hero-text {
    display: contents;
  }

  .home-page .hero-text > .hello-container {
    grid-row: 1;
    margin-bottom: 0.15rem;
  }

  .home-page .hero-text > h1 {
    grid-row: 2;
    margin-top: 0.05rem;
    margin-bottom: 0.15rem;
  }

  .home-page .hero-image {
    grid-row: 3;
    justify-self: center;
    width: 100%;
  }

  .home-page .hero-image img {
    width: min(560px, 100%);
  }

  .home-page .hero-text > p {
    grid-row: 4;
    margin-top: 0.05rem;
  }

  .home-page .hero-text > .hero-bottom-container {
    grid-row: 5;
    margin-top: 0;
    margin-bottom: -0.2rem;
  }

  .home-page .hero-bottom-line {
    margin-top: 0.15rem;
  }

  .home-page .hero-bottom-container .down-arrow {
    margin-top: -0.1rem;
  }

  .hero-text {
    margin-top: 0;
  }

  .hero-text h1 {
    font-size: 1.95rem;
    margin-bottom: 1.4rem;
  }

  .hero-text p {
    font-size: 1.18rem;
    text-align: left;
    margin-top: 0.8rem;
  }

  .hero-bottom-line {
    margin-top: 1.2rem;
  }

  .hero-bottom-container .down-arrow {
    margin-left: 1rem;
    font-size: 2.2rem;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  header {
    gap: 0.55rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
  }

  header .logo {
    font-size: clamp(0.9rem, 3.8vw, 1.08rem);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  header nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
  }

  header nav ul {
    min-width: max-content;
    width: auto;
    gap: clamp(0.35rem, 1.8vw, 0.85rem);
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  header nav a {
    font-size: clamp(0.86rem, 2.6vw, 0.98rem);
    min-height: 0;
    white-space: nowrap;
    align-items: center;
  }

  header nav li:last-child a img {
    height: 16px !important;
    position: relative !important;
    top: 0 !important;
    vertical-align: middle !important;
  }

  .recent-work {
    padding: 1.4rem 1rem;
    margin-top: -1rem;
  }

  .home-page .recent-work {
    padding-top: 1rem;
    margin-top: -1.35rem;
  }

  .recent-work .section-title {
    min-height: 88px;
    padding: 1.2rem 0.7rem;
    margin-bottom: 1.1rem;
  }

  .home-page .recent-work h2 {
    font-size: clamp(1.25rem, 5.4vw, 1.8rem);
  }

  .audience-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    gap: 1.5rem;
  }

  .audience-card {
    min-height: 0;
  }

  .audience-card-title {
    font-size: 1.5rem;
    padding: 0.9rem 1rem 0.7rem;
  }

  .audience-list {
    font-size: 1.15rem;
    margin: 0.9rem 1rem 1.1rem;
  }

  .audience-contact-btn {
    font-size: 1.02rem;
    width: calc(100% - 2rem);
    margin: auto 1rem 1rem;
  }

  .faq {
    padding: 2.2rem 1rem 1rem;
  }

  .faq h2 {
    font-size: 1.7rem;
  }

  .faq .faq-columns {
    display: block !important;
  }

  .home-page .faq .faq-bottom-row {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  .faq .faq-columns > div,
  .faq .faq-bottom-row > div {
    min-width: 0 !important;
    margin-bottom: 0.9rem;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(1) {
    order: 2;
    text-align: center !important;
    margin-bottom: 0.2rem;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(2) {
    order: 1;
    width: 100%;
    max-width: 340px;
    margin-bottom: 0.35rem;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(3) {
    display: none;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(1) img {
    margin-top: 0 !important;
    max-width: 72px !important;
  }

  .faq .faq-button {
    max-width: 320px;
    margin: 0 auto;
  }

  .redact-page .form-row > label,
  .convert-page .form-row > label {
    min-width: 0;
    width: 100%;
  }

  .redact-page .actions,
  .convert-page .actions {
    flex-wrap: wrap;
  }

  #redact-form .form-row div[style*="flex-wrap: nowrap"] {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 787px) {
  .home-page .faq .faq-columns {
    display: block !important;
    text-align: center;
  }

  .home-page .faq .faq-columns > div {
    min-width: 0 !important;
    max-width: 760px;
    margin: 0 auto 1rem;
    text-align: center !important;
  }

  .home-page .faq .faq-bottom-row {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  .home-page .faq .faq-bottom-row > div {
    min-width: 0 !important;
    text-align: center !important;
    margin: 0 auto 0.6rem;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(1) {
    order: 2;
    margin-bottom: 0.1rem;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(2) {
    order: 1;
    width: 100%;
    max-width: 340px;
    margin-bottom: 0.3rem;
  }

  .home-page .faq .faq-bottom-row > div:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  header {
    padding: 0.6rem 0.7rem;
  }

  header .logo {
    font-size: clamp(0.84rem, 4vw, 0.98rem);
  }

  header nav ul {
    gap: 0.45rem;
  }

  header nav a {
    font-size: 0.85rem;
  }

  header nav li:last-child a img {
    height: 14px !important;
  }

  .cta-button {
    margin-top: 1.4rem;
  }

  .audience-contact-btn {
    width: calc(100% - 2.2rem);
    min-width: 0;
  }

  .redact-page .form-row,
  .convert-page .form-row {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .home-page .recent-work h2 {
    font-size: clamp(1.15rem, 5.8vw, 1.6rem);
  }
}

@media (max-width: 500px) {
  .home-page .recent-work h2 {
    font-size: clamp(1.02rem, 6.2vw, 1.35rem);
  }
}

/* Bouncing arrow animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Projects page specific styles */
.projects-page .page-container { max-width: 1800px; width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.projects-page .category-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 1.8rem 0; }
.projects-page .category-tab {
  padding: 0.95rem 1rem;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  font-size: clamp(1.05rem, 2vw, 2rem);
  border: 2.5px solid var(--dark-blue);
  background: var(--bg-color);
  color: var(--dark-blue);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow:
    0 10px 24px rgba(9, 20, 40, 0.16),
    0 2px 8px rgba(9, 20, 40, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}
.projects-page .category-tab:hover {
  background: var(--subtle-bg);
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(9, 20, 40, 0.2),
    0 4px 12px rgba(9, 20, 40, 0.14);
}
.projects-page .category-tab:focus-visible {
  outline: 2px solid rgba(10, 25, 55, 0.72);
  outline-offset: 2px;
}
.projects-page .projects { padding-top: 0.3rem; font-size: 1.25rem; }
.projects-page .category-title {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  margin: 0 0 1.25rem 0;
  max-width: none;
  padding: 2.25rem 1rem;
  text-align: center;
  border-radius: 0;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 3rem);
  position: relative;
  isolation: isolate;
  text-transform: uppercase;
  color: var(--dark-blue);
}

.projects-page .category-title::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background-image: url("/assets/cim_grafika3.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: -1;
}
.projects-page .project-row {
  --project-media-top-offset: 4.5rem;
  --project-details-nudge: 0rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  flex-wrap: nowrap;
}
.projects-page .project-media { flex: 0 0 50vw; display: block; position: relative; padding-top: var(--project-media-top-offset); }
.projects-page .project-media img { width: 100%; max-width: 50vw; height: auto; display: block; margin-top: 0; }
.projects-page .project-media video { width: 100%; max-width: 50vw; height: auto; display: block; margin-top: 0; }
.projects-page .project-media.is-playing video { transform: translateY(2rem); }
.projects-page header .logo { color: var(--primary-color); text-decoration: none; }
.projects-page header .logo:visited { color: var(--primary-color); }
.projects-page header .logo:hover { opacity: 0.7; }
.projects-page .project-details {
  flex: 1 1 auto;
  max-width: none;
  font-size: 1.25rem;
  margin-top: calc(var(--project-media-top-offset) + var(--project-details-nudge));
  padding: 0.9rem 1rem 1rem;
  border-radius: 10px;
  background: var(--bg-color);
  box-shadow:
    0 10px 24px rgba(9, 20, 40, 0.16),
    0 2px 8px rgba(9, 20, 40, 0.12);
}
/* Per-row fine tuning: set --project-details-nudge to move the right text box up/down. */
.projects-page #kozmu,
.projects-page #kereso,
.projects-page #redakcio,
.projects-page #hatter,
.projects-page #ai-jelentes,
.projects-page #ai-megbeszeles {
  --project-details-nudge: 0rem;
}
.projects-page #kozmu { --project-details-nudge: 1.3rem; }
.projects-page #kereso { --project-details-nudge: -1rem; }
.projects-page #redakcio { --project-details-nudge: -1.5rem; }
.projects-page #ai-jelentes { --project-details-nudge: -3rem; }


.projects-page .project-details a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.projects-page .project-details a:visited { color: var(--primary-color); }
.projects-page .project-details h3 { margin: 0 0 0.5rem 0; text-align: left; font-size: 1.8rem; }
.projects-page .media-title {
  position: absolute;
  top: 0.5rem;
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  font-weight: 700;
  margin: 0;
  padding: 0.25rem 0.5rem;
  background: var(--bg-color);
  border-radius: 4px;
  z-index: 1;
  color: var(--dark-blue);
  text-decoration: none;
}
.projects-page .media-title .title-text {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.projects-page .media-title .no-underline { text-decoration: none; }
.projects-page .field { margin: 0; }
.projects-page .project-details .field + .field { margin-top: 0.75rem; }
.projects-page .project-details .field:nth-of-type(2) { margin-top: 0.75rem; }
.projects-page .project-details .field:nth-of-type(3) { margin-top: 0.75rem; }
.projects-page .field .label { font-weight: 800; margin-bottom: 0; font-size: 1.3rem; text-align: justify; }
.projects-page .field .label.label-body { font-weight: 400; }
.projects-page .field .box { display: none; }
.projects-page .project-row:first-of-type .project-details .field:first-of-type { margin-top: 0; }
.projects-page .project-row:nth-of-type(2) .project-details .field:first-of-type { margin-top: 0; }
/* Adjust only the third article (Hasznos scriptek) */
.projects-page .projects .project-row:nth-of-type(3) { --project-media-top-offset: 6rem; }
.projects-page .projects .project-row:nth-of-type(3) .project-details .field:first-of-type { margin-top: 0; }
.projects-page .projects .project-row:nth-of-type(4) { --project-media-top-offset: 2rem; }
.projects-page .projects .project-row:nth-of-type(4) .project-details .field:first-of-type { margin-top: 0; }
.projects-page #ai-jelentes { --project-media-top-offset: 5.5rem; }
.projects-page .back-link { margin-top: 2rem; text-align: center; }
.projects-page .scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 2px solid var(--subtle-bg);
  border-radius: 50%;
  background: transparent;
  color: var(--header-bg);
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.1;
  text-decoration: none;
  display: grid;
  place-items: center;
  z-index: 30;
  padding-bottom: 0.05rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.projects-page .scroll-top-btn:hover {
  color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.projects-footer-cta .cta-row {
  max-width: 1300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.8rem;
}

.projects-footer-cta .projects-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-cta.projects-footer-cta {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.projects-footer-cta .projects-cta-item {
  position: relative;
  display: inline-flex;
}

.projects-footer-cta a.btn {
  margin: 0;
  align-self: auto;
  text-transform: uppercase;
  min-width: 0;
  width: 100%;
  max-width: 440px;
  padding: 1.5rem 2.8rem;
  white-space: nowrap;
  justify-self: center;
}

.projects-footer-cta a.btn::after {
  content: " \2192";
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-0.08em);
  transition: transform 0.2s ease;
}

.projects-footer-cta a.btn:hover::after {
  transform: translate(3px, -0.08em);
}

.projects-footer-cta .projects-cta-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.9rem);
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: min(92vw, 450px);
  padding: 1rem 1.1rem;
  border: 2px solid var(--dark-blue);
  border-radius: 6px;
  background: var(--bg-color);
  color: #000;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.projects-footer-cta .projects-cta-tooltip ul {
  margin: 0;
  padding-left: 1.2rem;
}

.projects-footer-cta .projects-cta-tooltip li {
  margin: 0.2rem 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.projects-footer-cta .projects-cta-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--bg-color);
}

.projects-footer-cta .projects-cta-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--dark-blue);
}

.projects-footer-cta .projects-cta-item:hover .projects-cta-tooltip,
.projects-footer-cta .projects-cta-item:focus-within .projects-cta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
  .footer-cta.projects-footer-cta .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .projects-footer-cta .projects-cta-tooltip {
    width: min(92vw, 380px);
  }

  .footer-cta.projects-footer-cta .projects-cta-item,
  .footer-cta.projects-footer-cta .projects-footer-center {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-cta.projects-footer-cta .projects-footer-center {
    order: 2;
    max-width: 420px;
    justify-content: center;
    gap: 1.25rem;
  }

  .footer-cta.projects-footer-cta .projects-cta-item:first-child {
    order: 1;
  }

  .footer-cta.projects-footer-cta .projects-cta-item:last-child {
    order: 3;
  }

  .footer-cta.projects-footer-cta .logo-wrap {
    display: flex;
    justify-content: center;
  }

  .projects-page .scroll-top-btn {
    position: static;
    right: auto;
    bottom: auto;
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.58);
    color: var(--accent-color);
    line-height: 1;
    padding-bottom: 0;
    flex: 0 0 auto;
  }

  .projects-page .scroll-top-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
  }
}

@media (max-width: 560px) {
  .projects-footer-cta a.btn {
    white-space: normal;
    padding: 1rem 1.2rem;
  }
}

@media (hover: none) {
  .projects-footer-cta .projects-cta-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-footer-cta .projects-cta-tooltip {
    transition: none;
  }

  .reveal-ready [data-scroll-reveal],
  .reveal-ready [data-scroll-reveal].is-visible,
  .reveal-ready [data-scroll-reveal][data-reveal-direction="left"],
  .reveal-ready [data-scroll-reveal][data-reveal-direction="right"] {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: none;
  }
}

.projects-footer-cta .projects-cta-item:focus-within a.btn {
  background: var(--accent-color);
  color: var(--dark-bg);
}

@media (min-width: 1888px) {
  .projects-page .scroll-top-btn {
    right: calc((101.5vw - 1800px) / 4 - 22px);
  }
}

@media (max-width: 1100px) {
  .projects-page .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.5rem 0;
  }

  .projects-page .category-tabs .category-tab:last-child {
    grid-column: 1 / -1;
  }

  .projects-page .project-row { flex-direction: column; }
  .projects-page .project-media { flex: 1 1 auto; padding-top: 0; }
  .projects-page .project-media img,
  .projects-page .project-media video { max-width: 100%; }
  .projects-page .media-title { position: static; display: inline-block; margin-bottom: 0.5rem; }
  .projects-page .project-details {
    margin-top: 0;
    font-size: 1.1rem;
    padding: 1rem;
    box-shadow:
      0 10px 24px rgba(9, 20, 40, 0.16),
      0 2px 8px rgba(9, 20, 40, 0.12);
  }
  .projects-page .field .label { font-size: 1.15rem; }
  .projects-page .project-details .field:nth-of-type(2),
  .projects-page .project-details .field:nth-of-type(3) { margin-top: 0.65rem; }
  .projects-page .project-row:first-of-type .project-details .field:first-of-type,
  .projects-page .project-row:nth-of-type(2) .project-details .field:first-of-type,
  .projects-page .projects .project-row:nth-of-type(3) .project-details .field:first-of-type,
  .projects-page .projects .project-row:nth-of-type(4) .project-details .field:first-of-type { margin-top: 0; }
}

@media (max-width: 768px) {
  .projects-page .page-container {
    padding: 0 1rem;
  }

  .projects-page .category-tabs {
    grid-template-columns: 1fr;
    margin: 1.2rem 0;
  }

  .projects-page .category-title {
    min-height: 84px;
    padding: 1rem 0.7rem;
  }

  .projects-page .category-title#osszetett {
    font-size: clamp(1.5rem, 4vw, 1.45rem);
    line-height: 1.15;
  }

  .projects-page .project-details {
    font-size: 1.05rem;
    padding: 0.8rem 0.85rem;
    border-radius: 10px;
  }

  .projects-page .field .label {
    font-size: 1.05rem;
    text-align: left;
  }

  .projects-page .media-title {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    line-height: 1.3;
  }

  .projects-page .scroll-top-btn {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }
}

/* About page specific styles */
.about-page { max-width: 1800px; margin: 0 auto; padding: 0.8rem 1.3rem 0; }
.about-page .page-title { display: none; }
.about-hero { display: flex; gap: 1.7rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.about-img { flex: 0 0 400px; display: flex; justify-content: center; }
.about-img img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.about-text { flex: 1 1 460px; min-width: 320px; }
.about-line { height: 2px; background: currentColor; display: block; margin: 0.45rem 0; }
.about-text p { margin: 0; font-size: 1.3rem; line-height: 1.6; text-align: justify; }
@media (max-width: 768px) { .about-img { flex: 1 1 100%; } .about-text { flex: 1 1 100%; } }

/* About page wide text */
.about-full { margin-top: 1rem; }
.about-full p { margin: 0; font-size: 1.6rem; line-height: 1.7; text-align: center; }

/* About page footer CTA */
.footer-cta {
  padding: 0.75rem 1rem 2rem 1rem;
  background-color: var(--dark-bg);
  color: var(--accent-color);
}
.footer-cta .cta-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.footer-cta .logo-wrap { display: flex; align-items: center; }
.footer-cta .logo-wrap img { max-width: 70px; width: 100%; height: auto; display: block; }
.footer-cta a.btn {
  padding: 1.5rem 6rem;
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  min-width: 280px;
  text-align: center;
}
.footer-cta a.btn:hover {
  background: var(--accent-color);
  color: var(--dark-bg);
}

@media (max-width: 768px) {
  .footer-cta .cta-row {
    gap: 1rem;
  }

  .footer-cta a.btn {
    padding: 1rem 1.5rem;
    min-width: 0;
    width: 100%;
    max-width: 420px;
    font-size: 1.2rem;
  }
}

/* Contact page specific styles */
.contact-page .contact { padding: 1.4rem 2rem 0; background: transparent; }
.contact-page .contact-container { max-width: 1800px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.contact-page .contact-left { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.contact-page .contact-card { border: none; padding: 0rem; background: transparent; display: inline-block; width: fit-content; max-width: 100%; }
.contact-page .contact-card h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 8rem); text-align: left; line-height: 0.95; display: block; width: 100%; padding-bottom: 0.4rem; border-bottom: 3px solid var(--primary-color); }
.contact-page .contact-card h1 .second-line { display: inline-block; text-indent: 4.3ch; }
.contact-page .contact-card .contact-subtitle { margin: 0.6rem 0 0; font-size: clamp(1.2rem, 2.3vw, 1.96rem); font-weight: 500; display: block; width: 100%; padding-bottom: 0.2rem; border-bottom: 3px solid var(--primary-color); }
.contact-page .contact-card .contact-subtitle .arrow { display: inline-block; transform: translateY(-0.1em); }
.contact-page .contact-notes { margin: 0; padding-left: 1.2rem; font-size: clamp(1.05rem, 1.8vw, 1.5rem); }
.contact-page .contact-notes li { margin: 0.4rem 0; }

.contact-page .contact-form { display: grid; gap: 1.1rem; margin-top: clamp(6rem, 17vh, 8rem); }
.contact-page .field { display: grid; gap: 0rem; }
.contact-page .label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-page .field input[type="text"],
.contact-page .field input[type="email"],
.contact-page .field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  background: transparent;
  padding: 0.52rem 0.4rem;
  font-size: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-page .field textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-page .field:hover input[type="text"],
.contact-page .field:hover input[type="email"],
.contact-page .field:hover textarea,
.contact-page .field:focus-within input[type="text"],
.contact-page .field:focus-within input[type="email"],
.contact-page .field:focus-within textarea {
  background-color: var(--subtle-bg);
}
.contact-page .field input[type="text"]:focus,
.contact-page .field input[type="email"]:focus,
.contact-page .field textarea:focus {
  outline: none;
}
.contact-page .send-btn {
  justify-self: start;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border: none;
  border-bottom: 2px solid rgba(21, 21, 21, 0.45);
  background: transparent;
  color: rgba(21, 21, 21, 0.45);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-page .send-btn:hover {
  background: var(--subtle-bg);
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
@media (max-width: 1625px) and (min-width: 901px) {
  .contact-page {
    --contact-split: calc(5rem + ((100vw - 6rem) * 1.1 / 2.1));
  }
}

@media (max-width: 900px) {
  .contact-page .contact { padding: 1rem; }
  .contact-page .contact-container { grid-template-columns: 1fr; }
  .contact-page .contact-left {
    background: var(--subtle-bg);
    margin: -1rem -1rem 0;
    padding: 1rem 1rem 1.25rem;
  }
  .contact-page .contact-form { margin-top: 0.5rem; }
  .contact-page .contact-notes { padding-left: 1rem; }
  .contact-page .send-btn { justify-self: stretch; width: 100%; }
  .contact-page .contact-card h1 { font-size: clamp(2.8rem, 9vw, 4.2rem); }
  .contact-page .contact-card h1 .second-line { text-indent: 0; }
  .contact-page .contact-card .contact-subtitle { font-size: 1.35rem; }
  .contact-page main { background: transparent; }
  .contact-page header { background: var(--header-bg); }
}

@media (max-width: 600px) {
  .contact-page .contact-card h1 { font-size: clamp(2.6rem, 11vw, 3.2rem); }
  .contact-page .contact-card h1 .second-line { text-indent: 0; }
  .contact-page .contact-card .contact-subtitle { font-size: 1.2rem; }
}

/* Workflow footer */
.workflow-footer { background: var(--dark-bg); color: var(--accent-color); padding: 1.4rem 1rem; }
.workflow-container { max-width: 1800px; margin: 0 auto; text-align: center; }
.workflow-steps {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 1rem;
}
.workflow-step { display: inline-flex; align-items: center; }
.workflow-arrow { display: inline-flex; align-items: center; transform: translateY(-0.1em); }
.workflow-break { flex-basis: 100%; height: 0; }
.workflow-step--final { text-decoration: underline; text-underline-offset: 0.15em; }

@media (max-width: 768px) {
  .workflow-footer {
    padding: 1.35rem 1rem 1.55rem;
  }

  .workflow-container {
    max-width: 430px;
  }

  .workflow-steps {
    counter-reset: workflow-step;
    display: grid;
    gap: 0.55rem;
    justify-content: stretch;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.28;
  }

  .workflow-step {
    counter-increment: workflow-step;
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .workflow-step::before {
    content: counter(workflow-step, decimal-leading-zero);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.65;
    text-align: right;
  }

  .workflow-arrow,
  .workflow-break {
    display: none;
  }

  .workflow-step--final {
    margin-top: 0.2rem;
  }
}

.projects-page .media-title .arrow { display: inline-block; transform: translateY(-0.1em); }

/* 404 page */
.not-found-page body {
  background: var(--bg-color);
}

.not-found-main {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem) 1.5rem;
}

.not-found-hero {
  width: min(100%, 1480px);
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 5rem);
}

.not-found-code {
  color: var(--dark-blue);
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: 0;
  opacity: 0.16;
}

.not-found-content {
  color: var(--primary-color);
}

.not-found-line {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 0.75rem 0;
}

.not-found-kicker {
  margin: 1rem 0 0.35rem;
  color: var(--dark-blue);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.not-found-content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.not-found-content p {
  max-width: 760px;
  margin: 1.25rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.2rem;
}

.not-found-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  min-width: 10rem;
  padding: 0.9rem 1.35rem;
  border: 2px solid var(--dark-blue);
  border-radius: 6px;
  color: var(--dark-blue);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.not-found-btn--primary,
.not-found-btn:hover {
  background: var(--dark-blue);
  color: var(--accent-color);
}

.not-found-btn:hover {
  transform: translateY(-2px);
}

.not-found-footer {
  padding: 1.2rem 1rem;
}

.not-found-footer .note {
  margin: 0;
  color: var(--accent-color);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  text-align: center;
}

@media (max-width: 768px) {
  .not-found-main {
    padding: 2rem 1rem 2.5rem;
  }

  .not-found-hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .not-found-code {
    font-size: clamp(6rem, 34vw, 9rem);
  }

  .not-found-content p {
    font-size: 1.08rem;
  }

  .not-found-actions {
    display: grid;
  }

  .not-found-btn {
    width: 100%;
  }
}

