/* ==========================================================================
   Rachel Sorkin — static site styles

   Values are taken 1:1 from the original WordPress build:
   - the theme options stylesheets (style_dynamic.css + style_dynamic_responsive.css)
   - Bridge theme stylesheet.min.css / responsive.min.css (base values)
   - WPBakery vc_custom_* rules and inline style="" attributes on the original pages
   - the theme's custom CSS block on the original home page

   Breakpoints (Bridge): 1200 / 1024 (slider) / 1000 (mobile header, titles)
                         / 768 (columns stack) / 600 / 480
   ========================================================================== */

/* Montserrat + Raleway: theme fonts. Lato, Open Sans, Indie Flower, Oswald were
   enqueued by LayerSlider/Timetable; kept as variables but not loaded by default. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* Brand palette */
  --color-accent: #ff1e00;            /* link hovers, buttons, icons, selection */
  --color-black: #000000;             /* nav links, button outline, footer top */
  --color-ink: #0a0a0a;               /* testimonial author */
  --color-heading: #303030;           /* h2–h5, sticky nav */
  --color-heading-alt: #292929;       /* h6 */
  --color-text: #545454;              /* body + paragraphs */
  --color-muted: #818181;             /* footer text, form text */
  --color-white: #ffffff;
  --color-footer-bottom: #1b1b1b;
  --color-rule: #eaeaea;              /* default .separator / mobile menu dividers */
  --color-rule-alt: #e8e8e8;          /* about page divider */
  --color-shadow: #dddddd;            /* gallery/slider drop shadow */
  --color-nav-arrow: #b4b4b4;         /* portfolio prev/next */
  --color-nav-arrow-border: #e5e5e5;
  --color-nav-arrow-hover: #e3e3e3;
  --color-mobile-icon: #777777;       /* mobile menu button on dark header */
  --color-header-sticky: rgba(255, 255, 255, 0.97);
  --color-shader: rgba(21, 21, 21, 0.78);   /* portfolio hover overlay */

  /* Font families */
  --font-body: "Montserrat", sans-serif;
  --font-alt: "Raleway", sans-serif;
  --font-lato: "Lato", sans-serif;
  --font-open-sans: "Open Sans", sans-serif;
  --font-indie: "Indie Flower", cursive;
  --font-oswald: "Oswald", sans-serif;

  /* Type scale */
  --fs-body: 14px;
  --lh-body: 26px;
  --fs-h1: 30px;
  --fs-h2: 35px;
  --fs-h3: 28px;
  --fs-h4: 18px;
  --fs-h5: 15px;
  --fs-h6: 14px;
  --fs-small: 12px;
  --fs-nav: 13px;
  --fs-title: 35px;                   /* .title.title_size_large h1 */
  --lh-title: 40px;

  /* Layout */
  --container: 1100px;
  --header-h: 80px;
  --header-h-sticky: 60px;
  --header-h-mobile: 100px;
  --header-pad-x: 45px;
  --title-h: 500px;
  --btn-h: 39px;
  --content-top: 60px;                /* .default_template_holder / .page_container_inner (>=1000px) */

  /* Motion (Bridge timings) */
  --ease-link: 0.1s linear;
  --ease-shader: cubic-bezier(0.785, 0.135, 0.15, 0.86);
  --ease-zoom: cubic-bezier(0.21, 1, 0.12, 1);
  --ease-zoom-out: cubic-bezier(0.23, 1, 0.12, 1);
  --ease-text: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; height: auto; }
::selection { background: var(--color-accent); color: var(--color-white); }

/* ---------- Typography ----------
   Bridge with bridge-core active: headings carry no default margin; p keeps 20px. */
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-heading); letter-spacing: 1px; }
h1 { font-size: var(--fs-h1); line-height: 1.25em; font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.385em; font-weight: 700; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); line-height: 40px; font-weight: 600; }
h4 { font-size: var(--fs-h4); line-height: 30px; font-weight: 800; }
h5 { font-size: var(--fs-h5); line-height: 1.571em; font-weight: 600; text-transform: uppercase; }
h6 { font-size: var(--fs-h6); line-height: 1.538em; font-weight: 600; color: var(--color-heading-alt); }
p { margin: 20px 0; color: var(--color-text); font-size: var(--fs-body); letter-spacing: 0.5px; }

a {
  color: var(--color-heading);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease-link);
}

a:hover,
a:focus-visible { color: var(--color-accent); }

.text-bio { font-size: 20px; line-height: 1.4em; letter-spacing: 0.04em; font-weight: normal; }   /* inline span inside a 14/26 p, as in the original */
.text-center { text-align: center; }
.text-highlight { background-color: var(--color-accent); color: var(--color-white); }

/* <p>&nbsp;</p> spacers from the WordPress editor: one empty 26px line + p margins */
.spacer { height: var(--lh-body); margin: 20px 0; }

/* .separator.normal — 1px rule, 10px margins */
hr { height: 1px; margin: 10px 0; border: 0; background-color: var(--color-rule); }

/* .separator.small (accent under headings) */
.separator { display: block; width: 91px; height: 1px; margin: 10px auto 20px; background-color: var(--color-muted); border: 0; }

/* ---------- Layout system (replaces vc_row / vc_col-sm-*) ----------
   .container            → .container_inner / .section_inner (1100px grid)
   .row                  → .vc_row-fluid / .vc_inner (15px gutters each side)
   .col-12 / -8 / -6 / -4 / -3  → .vc_col-sm-12 / -8 / -6 / -4 / -3
   Columns stack below 768px, matching WPBakery's "sm" breakpoint. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-inline: -15px;
}

.row > * { grid-column: span 12; min-width: 0; padding-inline: 15px; }

@media (min-width: 768px) {
  .col-12 { grid-column: span 12; }
  .col-8  { grid-column: span 8; }
  .col-6  { grid-column: span 6; }
  .col-4  { grid-column: span 4; }
  .col-3  { grid-column: span 3; }
}

/* ---------- Buttons (.qbutton) ----------
   Bridge's .qbutton is box-sizing: initial!important, so height/line-height
   39px exclude the 2px borders: 43px tall. <=768px: 14px sides, and links
   (a.qbutton) drop to 38px (42px tall); input/button submits keep 39px. */
.btn {
  display: inline-block;
  box-sizing: content-box;
  height: var(--btn-h);
  padding: 0 23px;
  border: 2px solid var(--color-black);
  border-radius: 0;
  background-color: transparent;
  color: var(--color-black);
  font: 700 13px/var(--btn-h) var(--font-body);
  letter-spacing: 2px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ease-link), background-color var(--ease-link), border-color var(--ease-link);
}

.btn:hover,
.btn:focus-visible {
  color: var(--color-white);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--light { color: var(--color-white); border-color: var(--color-white); }
button.btn { line-height: 36px; }                 /* input.qbutton (kept for any future submit button) */
.btn--small { height: 30px; padding: 0 17px; font-size: 10px; line-height: 30px; }

/* ---------- Utilities / icons ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--color-black); color: var(--color-white); }
.skip-link:focus { top: 16px; color: var(--color-white); }

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Header (Bridge "stick" type) ----------
   80px header overlaying the top of the page that scrolls away with it; past
   the sticky threshold (100px, or the hero height on home) it becomes a fixed
   60px bar parked at top: -120px, then slides down (.is-sticky-in, +100ms). */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--header-pad-x);
  background-color: var(--color-white);
  transition: all 0.2s ease;
}

.site-header.is-transparent { background-color: transparent; }   /* home, over the hero */
.site-header.is-sticky {
  position: fixed;
  top: -120px;
  height: var(--header-h-sticky);
  background-color: var(--color-header-sticky);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.11);
  transition: all 0.33s cubic-bezier(0.694, 0.0482, 0.335, 1);
}

.site-header.is-sticky.is-sticky-in { top: 0; }
.site-main > :first-child:not(.hero):not(.page-title) { margin-top: var(--header-h); }
.site-main:focus { outline: none; }

.site-logo img { height: auto; width: auto; max-height: 41px; transition: opacity 0.6s ease-in-out; }
.site-logo .logo-light { display: none; }
.site-header.is-transparent:not(.is-sticky) .logo-dark { display: none; }
.site-header.is-transparent:not(.is-sticky) .logo-light { display: block; }

.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav .menu { display: flex; }
.site-nav li { position: relative; }

.menu > li > a {
  display: block;
  padding: 0 17px;
  line-height: var(--header-h);
  color: var(--color-black);
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out, line-height 0.2s ease;
}

.menu > li > a:hover { color: var(--color-black); opacity: 0.8; }
.site-header.is-sticky .menu > li > a { line-height: var(--header-h-sticky); color: var(--color-heading); }
.site-header.is-transparent:not(.is-sticky) .menu > li > a { color: var(--color-white); }

/* Dropdown submenus: hover / keyboard focus on desktop, tap toggle on mobile */
.submenu-toggle { display: none; }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  background-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 6px 20px; color: var(--color-muted); line-height: 22px; }
.submenu a:hover { color: var(--color-white); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-mobile-icon);
  font-size: 20px;
  cursor: pointer;
}

.menu-toggle:hover { opacity: 0.8; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero slider (home: #qode-home-slider-4) ----------
   Full-screen slide, pattern overlay, Ken Burns "zoom_center" over 30s,
   skrollr parallax (layer -500px over 1440px scroll, text fades over 300px). */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.hero__layer { position: absolute; inset: 0; will-change: transform; }

.hero__image {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transform-origin: center center;
}

.hero__pattern { position: absolute; inset: 0; z-index: 2; background: url("../images/pattern.png") 0 0 repeat; }

.hero__content { position: relative; z-index: 12; width: 100%; will-change: opacity, transform; }

.hero__inner {
  width: 68%;
  margin-left: 16%;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: text-from-bottom 1.5s var(--ease-text) 1 both;
}

.hero__title {
  margin: 10px 0 20px;
  color: var(--color-white);
  font-size: 46px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
}

.hero__title span { padding: 10px; }

.hero .btn {
  width: 120px;
  margin: 10px 0 0;
  border-color: var(--color-white);
  color: var(--color-white);
  text-align: center;
}

.hero .btn + .btn { margin-left: 10px; }

.hero .btn:hover,
.hero .btn:focus-visible { color: var(--color-white); background-color: var(--color-accent); border-color: var(--color-accent); }

@keyframes text-from-bottom {
  0%, 50% { opacity: 0; transform: translate(0, 15%); }
  100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

@media (min-width: 1001px) {
  .hero__image { height: 110%; }
  .js-motion .hero__image { animation: hero-zoom 30s cubic-bezier(0.37, 0, 0.63, 1) forwards; }  /* jQuery "swing" */
}

/* ---------- Page title (.title.title_size_large.has_fixed_background) ----------
   Desktop: fixed background scaled to 100% of the viewport width, parallax via
   background-position (main.js). <=1000px: background dropped, the inline
   image is shown at its natural ratio (plus its 20px margin-bottom from the
   theme's ".title img" rule) with the title centered over it. */
.page-title {
  position: relative;
  height: var(--title-h);
  background-position: center 0;
  background-repeat: no-repeat;
  background-size: 100% auto;                     /* theme custom CSS: background-size:100%!important */
}

.js-motion .page-title { background-attachment: fixed; }
.page-title__image { display: none; width: 100%; }

.page-title__holder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  text-align: center;
}

.page-title h1 {
  margin: 0;
  color: var(--color-white);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.page-title .subtitle { display: block; margin: 0; color: var(--color-white); font-weight: 500; letter-spacing: normal; }
.page-title__holder > * { width: 100%; max-width: var(--container); }   /* text sits in .container_inner */

/* ---------- 404 (Bridge .page_not_found: centered, h2 32px, 40/20 and 15/35 margins, 83px below) ---------- */
.page-not-found { margin-bottom: 83px; text-align: center; }
.page-not-found h2 { margin: 40px 0 20px; font-size: 32px; }
.page-not-found p { margin: 15px 0 35px; }

/* ---------- Home: feature icons (q_icon_with_title small center) ---------- */
/* Explicit px box (nothing here depends on scroll, vh or JS): separator
   80 + 1 + 10 above / column padding-bottom 40 below, opaque white like
   .vc_row.boticons so the hero layer can never show through. */
.home-features { position: relative; box-sizing: border-box; margin: 0; padding: 91px 0 40px; background-color: var(--color-white); }
.home-features .row { margin-inline: -15px; }
.home-features .row > * { padding-inline: 30px; } /* vc_custom_16145740* */
.feature { box-sizing: border-box; margin: 0; padding: 0 0 45px; text-align: center; } /* icon_text_inner 18 + separator 26 + 1 */
.feature__icon { display: block; margin: 0 auto 24px; color: var(--color-accent); font-size: 28px; transition: color 0.3s ease-in-out; }   /* .icon_holder: 28px glyph in a 32px line box + 20px */
.feature__icon:hover { color: var(--color-black); }   /* data-icon-hover-color="#000000" */
.feature__icon--pencil,
.feature__icon--file-text { width: 0.8571em; }   /* glyph advance 1536 / 1792 em (24px at fa-2x) */
.feature__icon--users { width: 1.0714em; }       /* 1920 / 1792 em (30px) */
.feature h4 { margin: 0; color: var(--color-black); font-weight: 800; }
.feature p { margin: 0; color: var(--color-black); }

/* ---------- Home: parallax band (.parallax_section_holder, data-speed="1") ---------- */
.parallax {
  height: 100vh;
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: 100%;
  overflow: hidden;
}

.js-motion .parallax { background-attachment: fixed; }

/* ---------- Home: selected work + clients ---------- */
.home-work { display: flow-root; padding: 45px 35px 0; }             /* vc_custom_1507955816493 (35px top, 50px sides on a -15px row) + 10px vc_empty_space */
.home-work__more { margin: 50px 0; text-align: center; }
.home-clients { padding-bottom: 75px; }          /* 75px vc_empty_space */

/* Client logos (.qode_carousels, 5 visible, 2px gap). No JS / reduced motion:
   a swipeable strip. With JS (.is-carousel), main.js steps one logo every 5s
   over 1s (carouFredSel: scroll.items 1, duration 1000, circular), looping
   seamlessly over cloned logos. */
.logos-viewport { --logos-visible: 5; --logos-gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; }
.logos { display: flex; gap: var(--logos-gap); margin: 0; padding: 0; list-style: none; }
/* carouFredSel sizes each item floor(width / visible) - 2px margin: 5 / 4 / 3 / 2 visible (see Responsive) */
.logos li {
  flex: 0 0 calc(100% / var(--logos-visible) - var(--logos-gap));
  flex-basis: calc(round(down, 100% / var(--logos-visible) + 0.01px, 1px) - var(--logos-gap));   /* +0.01px: 600 × 33.33% must floor to 200, not 199 */
  scroll-snap-align: start;
}
.logos img { width: 100%; }
.logos-viewport.is-carousel { overflow: hidden; scroll-snap-type: none; }
.logos-viewport.is-carousel .logos { will-change: transform; }
.logos-viewport.is-carousel .logos.is-animating { transition: transform 1s cubic-bezier(0.37, 0, 0.63, 1); }   /* jQuery "swing" */

/* ---------- Project gallery (Bridge justified gallery, spacing 0) ----------
   main.js computes justified rows (rowHeight 250/300, last row "nojustify");
   the flex rules below are the no-JS fallback. */
.gallery { --row-h: 250px; display: flex; flex-wrap: wrap; }
.gallery--tall { --row-h: 300px; }

.project-card {
  position: relative;
  display: block;
  flex: var(--ar, 1) 1 calc(var(--ar, 1) * var(--row-h));
  aspect-ratio: var(--ar, 1);
  overflow: hidden;
  animation: card-show 0.8s ease both;
}

.gallery.is-justified .project-card { flex: none; aspect-ratio: auto; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }

.project-card__shader {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--color-shader);
  opacity: 0;
}

.project-card__icon {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 15px;
  opacity: 0;
}

@keyframes card-show {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Home: "subtle_vertical_hover" — dark shader fades in, round link icon rises 4px */
.project-card--subtle .project-card__shader { transition: opacity 0.3s var(--ease-shader); }

.project-card--subtle .project-card__icon {
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
  border-radius: 100px;
  transform: translateY(4px);
  transition: transform 0.4s ease-out, background-color 0.2s ease-out, color 0.2s ease-out;
}

.project-card--subtle:hover .project-card__shader,
.project-card--subtle:focus-visible .project-card__shader { opacity: 1; }

.project-card--subtle:hover .project-card__icon,
.project-card--subtle:focus-visible .project-card__icon { opacity: 1; transform: translateY(0); }

/* Work: "slow_zoom" — image creeps from 1.01 to 1.1 over 5s, square link icon bottom-left */
.project-card--zoom img { transform: scale(1.01); transition: transform 2s var(--ease-zoom-out); }
.project-card--zoom .project-card__shader { background-color: rgba(0, 0, 0, 0.01); transition: opacity 5s var(--ease-zoom); }
.project-card--zoom .project-card__icon { bottom: 0; left: 0; transition: opacity 0.3s, background-color 0.4s, color 0.4s; }
.project-card--zoom:hover img,
.project-card--zoom:focus-visible img { transform: scale(1.1); transition: transform 5s var(--ease-zoom); }
.project-card--zoom:hover .project-card__shader,
.project-card--zoom:hover .project-card__icon,
.project-card--zoom:focus-visible .project-card__icon { opacity: 1; }
.project-card--zoom .project-card__icon:hover { background-color: var(--color-white); color: var(--color-black); }

/* ---------- Work page ---------- */
.work-grid { padding: calc(var(--content-top) + 22px) 0 101px; }   /* 60 + separator 21/1; separator 50/1/50 */

/* ---------- Portfolio single (portfolio_template_1/5) ---------- */
.project { padding-top: var(--content-top); }
.project-media > * { margin: 0 0 26px; }   /* 18px + 8px to match the original spacing */
.project-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.shadow { box-shadow: 0 2px 20px var(--color-shadow); }

.project-body { display: grid; grid-template-columns: 75% 25%; }
.project-body:has(> :only-child) { grid-template-columns: 100%; }
.project-text { display: flow-root; margin-bottom: 40px; padding-right: 20px; }
.project-body:has(> :only-child) .project-text { padding-right: 0; }
.project-text .row--offset { margin-top: 60px; }
.project-text .row--offset-sm { margin-top: 20px; }
.project-meta { padding-left: 20px; }
.project-meta .info { padding-bottom: 9px; margin-bottom: 9px; }
.project-meta h6 { margin: 0; }
.project-meta .info__category { margin: 0; }

.project-nav {
  position: relative;
  display: flex;
  justify-content: center;
  height: calc(42px + 8px + 50px);
  padding: 8px 0 50px;                             /* 68px from content to the arrows (was 88px) */
  line-height: 35px;
  text-align: center;
}

.project-nav__prev { position: absolute; left: 0; }
.project-nav__next { position: absolute; right: 0; }

.project-nav__prev a,
.project-nav__next a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 11px 0 0;
  border: 2px solid var(--color-nav-arrow-border);
  border-radius: 4px;
  color: var(--color-nav-arrow);
  font-size: 21px;
  transition: all 0.3s ease-in-out;
}

.project-nav__prev a:hover,
.project-nav__next a:hover { color: var(--color-heading); background-color: var(--color-nav-arrow-hover); border-color: var(--color-nav-arrow-hover); }
.project-nav__all a { display: block; margin-top: 11px; color: var(--color-nav-arrow); font-size: 19px; line-height: 0; transition: color 0.3s ease-in-out; }
.project-nav__all a:hover { color: var(--color-heading); }

/* ---------- About ---------- */
.about > .container,
.about > .container > div:not(.row) { display: flow-root; }   /* container_inner + each vc_row clears its own margins */
.about__intro { margin: 110px 0 20px; }          /* row 60 + text column 50 / 20 */
.about__bio { padding-top: 20px; font-size: 20px; line-height: 1.4em; letter-spacing: 0.04em; }   /* div.bio + vc_custom_1731730167353: p inherits the 28px line */
.about__gap { height: 90px; }                    /* measured: 120px from bio to rule incl. p 20 + rule 10 */
hr.about__rule { margin: 10px 0 0; background-color: var(--color-rule-alt); }   /* bottom margin collapses into the 80px below */
.about__heading { margin: 80px 0; }              /* vc_custom_1507953880211 */
.about__extras { padding-left: 50px !important; } /* vc_custom_1507943616429 */
.about__education { margin: 60px 0; }            /* vc_custom_1731731059675 */

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

/* Testimonials carousel (testimonials_c_carousel, auto-rotate 5s). Without JS
   the quotes stay stacked; main.js adds .is-carousel + the controls. Slides
   share one grid cell so the box keeps the tallest quote's height. */
.testimonials-carousel.is-carousel .testimonials { gap: 0; }
.testimonials-carousel.is-carousel .testimonial {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0.6s;
}
.testimonials-carousel.is-carousel .testimonial.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s;
}

.testimonials__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 50px 0 60px; }   /* flex-control-nav margin-top 50 */
.testimonials__dots { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.testimonials__dot {
  display: block;
  width: 19px;                                     /* 9px dot + 5px margins, as a larger hit area */
  height: 19px;
  padding: 5px;
  border: 0;
  background: none;
  cursor: pointer;
}
.testimonials__dot::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background-color: #cfcfcf; transition: background-color 0.2s ease; }
.testimonials__dot:hover::before,
.testimonials__dot[aria-current="true"]::before { background-color: var(--color-heading); }
.testimonials__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-nav-arrow);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.testimonials__arrow:hover { color: var(--color-heading); }
.testimonials__dot:focus-visible,
.testimonials__arrow:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.testimonial { padding: 60px 45px; background-color: var(--color-white); text-align: center; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: 16px; }
.testimonial__author { margin-top: 21px; color: var(--color-ink); font-size: var(--fs-small); font-weight: 500; }

/* ---------- Contact ---------- */
/* The form column was removed: the details are the page's only column. The
   bottom padding keeps the 50px the form used to leave above the footer. */
.contact { padding-top: var(--content-top); padding-bottom: 50px; }
.contact__details hr { height: 1px; margin: 6px 0; background: transparent; }   /* separator transparent 6/6 */
.contact .social { gap: 16px; align-items: center; }
.contact .social a { color: var(--color-text); font-size: 18.67px; }   /* fa-lg */
.contact .social a:hover { color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer { font-family: var(--font-body); }

.footer-top {
  padding: 72px 0 52px;
  background-color: var(--color-black);
  color: var(--color-muted);
  font-weight: 600;
}

/* .four_columns: 4 × 25%, no gutter; .column_inner + widget offsets put the
   text 0 / 20 / 20 / 20px into each column. */
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.footer-grid > :nth-child(1) { padding-right: 15px; }
.footer-grid > :nth-child(2) { padding: 0 10px 0 20px; }
.footer-grid > :nth-child(3) { padding: 0 5px 0 20px; }
.footer-grid > :nth-child(4) { padding-left: 20px; }
.footer-top h5 { margin: 0 0 22px; color: var(--color-white); font-weight: 700; }
.footer-top p, .footer-top a { font-weight: 600; }
.footer-top a { color: var(--color-muted); transition: color 0.2s ease-in-out; }
.footer-top a:hover { color: var(--color-white); }
.footer-top ul { margin: 0; padding: 0; list-style: none; }
.footer-top nav li { padding-bottom: 17px; line-height: 22px; }   /* widget_nav_menu li: 22 + 17 = 39px */
.footer-logo { width: 100px; margin: 19px 0 8px; }   /* separator 8 + 1 + 10 above; inline-image baseline gap below */
.footer-top .footer-contact { margin-bottom: 2px; padding-bottom: 13px; }   /* trailing separator 12 + 1 + 2 (the 2px collapses away once columns stack) */
/* Inline text + icon lines like the original textwidget (<br>-separated),
   breaking long words so narrow columns wrap instead of overflowing. */
.footer-contact li { line-height: 26px; overflow-wrap: break-word; }
.footer-contact .icon { width: 0.8571em; margin: 3px 6px 0 0; font-size: 18px; vertical-align: top; }   /* .fa-lg-footer: FA 4.7 glyph, 1536/1792 em */
.footer-contact .icon--pin { width: 0.5714em; margin: 3px 7px 0 3px; }                                 /* .fa-lg-footer-location: 1024/1792 em */
.social { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer-top .social { gap: 20px; align-items: center; }   /* two icons: even 20px spacing */
.social a { display: block; font-size: 17px; transition: color 0.3s ease; }
/* Solid FA 4.7 glyphs (fa-lg): width = glyph advance / 1792 em */
.icon--linkedin,
.icon--instagram { width: 0.8571em; }   /* 1536 */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  background-color: var(--color-footer-bottom);
  color: var(--color-muted);
  font-size: var(--fs-small);
  line-height: 22px;
  text-align: center;
}

.footer-bottom p { margin: 0; color: var(--color-text); font-size: inherit; letter-spacing: normal; }   /* .footer_bottom span: #545454, no tracking */

/* Bridge #back_to_top: a 52px circle with a 2px #e8e8e8 ring (56px overall),
   transparent fill, 22px fa-arrow-up in #b0b0b0; hover fills the ring
   colour and turns the arrow accent red. */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 65px;
  z-index: 100;
  display: grid;
  place-items: center;
  box-sizing: content-box;
  width: 52px;
  height: 52px;
  border: 2px solid #e8e8e8;
  border-radius: 50%;
  background-color: transparent;
  color: #b0b0b0;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.back-to-top .icon--arrow-up { width: 0.9286em; }   /* 1664 / 1792 em (20.4px) */
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover,
.back-to-top:focus-visible { background-color: #e8e8e8; color: var(--color-accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1921px) {
  .parallax { background-size: cover; }
}

@media (max-width: 1200px) {
  :root { --container: 950px; }
}

@media (max-width: 1024px) {
  .hero { height: 575px; }                       /* #qode-home-slider-4 */
  .hero .btn { height: 31px; font-size: 12px; line-height: 31px; }   /* .carousel .qbutton */
}

/* Mobile header + titles (Bridge switches at 1000px) */
@media (max-width: 1000px) {
  :root { --container: 768px; --content-top: 0px; }    /* .default_template_holder: no top padding <1000px */
  .work-grid { padding-top: 52px; }                    /* .page_container_inner 30px + separator 21/1 */

  .site-header,
  .site-header.is-sticky,
  .site-header.is-transparent {
    position: relative;
    top: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: var(--header-h-mobile) auto;
    align-items: center;
    height: auto;
    background-color: var(--color-white);
  }

  .site-main > :first-child:not(.hero):not(.page-title) { margin-top: 0; }
  .menu-toggle { display: grid; grid-row: 1; grid-column: 1; justify-self: start; margin-left: -12px; }
  .site-logo { grid-row: 1; grid-column: 2; }
  .site-logo img { height: 40px; max-height: none; }
  .site-header .logo-dark { display: block !important; }
  .site-header .logo-light { display: none !important; }

  /* nav.mobile_menu: in-flow panel that slides open under the header bar */
  .site-nav {
    display: grid;
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, visibility 0s 0.3s;
  }

  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s ease; }
  .site-nav > .menu { min-height: 0; overflow: hidden; }
  .site-nav .menu { flex-direction: column; width: var(--container); max-width: 100%; margin: 0 auto -1px; }
  .site-nav li { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--color-rule); }
  .site-nav li:last-child { border: 0; }
  .site-nav li > a { flex: 1; }

  .site-header .menu > li > a,
  .site-header.is-sticky .menu > li > a,
  .site-header.is-transparent:not(.is-sticky) .menu > li > a {
    padding: 10px 0;
    color: var(--color-black);
    font-size: 13px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    transition: all 0.2s ease;
  }

  .site-header .menu > li > a:hover,
  .site-header .menu > li > a[aria-current="page"],
  .site-header.is-transparent:not(.is-sticky) .menu > li > a:hover,
  .site-header.is-transparent:not(.is-sticky) .menu > li > a[aria-current="page"] { color: var(--color-accent); }   /* home: outrank the white desktop link rule */

  .submenu-toggle { display: grid; place-items: center; width: 50px; height: 46px; border: 0; background: none; color: #888; cursor: pointer; }
  .submenu-toggle .icon { transition: transform 0.2s; }
  .has-submenu.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
  .submenu { position: static; display: none; width: 100%; min-width: 0; padding: 0; background: none; opacity: 1; visibility: visible; transform: none; border-top: 1px solid var(--color-rule); }
  .has-submenu.is-open > .submenu { display: block; }
  .submenu li { margin-left: 20px; }
  .submenu a { padding: 10px 0; color: var(--color-black); font-size: 13px; line-height: 26px; }

  /* Titles: background off, inline image on, title centered over it */
  :root { --fs-title: 40px; --lh-title: 50px; }
  .page-title { height: auto; background: none !important; }
  .page-title__image { display: block; margin-bottom: 20px; }
  .page-title__holder { padding: 0; }

  .hero__image { animation: none !important; }
  .parallax { background-size: cover; background-position: 50% 50%; }   /* deliberate: Bridge keeps 100% auto here, leaving a blank gap under the image on portrait screens */
  .logos-viewport { --logos-visible: 4; }

  .project-media iframe { aspect-ratio: 16 / 9; }
}

@media (max-width: 800px) {
  .hero__inner { margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 768px) {
  :root { --container: 600px; --fs-title: 30px; --lh-title: 40px; }
  .logos-viewport { --logos-visible: 3; }
  .btn { padding-inline: 14px; }
  a.btn { height: 38px; line-height: 38px; }
  .hero .btn { height: 27px; font-size: 11px; line-height: 27px; }
  .home-features .row > * { padding-inline: 30px; }
}

@media (max-width: 767px) {
  .about__gap { height: 31px; }                  /* unfloated columns: bio→rule margins collapse to 61px */
  .about__extras > :last-child { margin-bottom: 0; }   /* stacked: Experience starts flush, as measured */
}

@media (max-width: 567px) {
  .hero .btn { height: 23px; font-size: 10px; line-height: 23px; }
}

@media (max-width: 600px) {
  :root { --container: 420px; --fs-title: 25px; --lh-title: 35px; }
  h2 { font-size: 20px; }                        /* style_dynamic_responsive.css */
  .page-title .subtitle { margin: 0; }

  /* two_columns_* and four_columns stack at 600px */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :nth-child(n) { padding: 0; margin-bottom: 50px; }   /* widget 25 + column 25 */
  .footer-grid > :last-child { margin-bottom: 25px; }                /* widget margin only */
  .footer-top .footer-contact { margin-bottom: 0; }
  .project-body { grid-template-columns: 100%; }
  .project-text { padding-right: 0; }
  .project-meta { padding-left: 0; }

  .hero__inner { width: auto; margin-inline: 20px; }   /* keeps the 68% slide text from crowding */
}

@media (max-width: 480px) {
  :root { --container: 300px; --header-pad-x: 25px; --fs-title: 20px; --lh-title: 25px; }
  .hero__title { font-size: 32px; line-height: 44px; }   /* 46/64 desktop ratio */
  .footer-top .container { max-width: none; padding-inline: 25px; }
  .footer-bottom { min-height: 0; line-height: 35px; }   /* .footer_bottom: 35px line, no 53px height */
  .logos-viewport { --logos-visible: 2; }
}

@media (max-width: 470px) {
  .parallax { height: 150px; min-height: 300px; background-size: auto 800px; background-position: -300px center; }
}

@media (max-width: 420px) {
  :root { --header-pad-x: 15px; }
  .footer-top .container { padding-inline: 15px; }
}

@media (max-width: 320px) {
  .hero .btn { height: 20px; font-size: 9px; line-height: 20px; }
}

@media (max-width: 350px) {
  .container { max-width: 95%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .page-title, .parallax { background-attachment: scroll !important; }
}
