/* ==========================================================================
   Hudson & Co — main stylesheet
   Matches the original Elementor build: desktop > 1024px, tablet 768–1024px, mobile < 768px.
   ========================================================================== */

:root {
  --bg: #0f0f10;
  --white: #eaeaea;
  --grey: #b3b3b3;
  --grey-80: rgba(179, 179, 179, 0.8);
  --grey-60: rgba(179, 179, 179, 0.6);
  --font: "paralucent", sans-serif;
  /* Page side padding: 100px at 1440px and wider, shrinking smoothly to 20px at 375px */
  --pad: clamp(20px, calc(20px + (100vw - 375px) * 0.0751174), 100px);
  /* Layout grid (drawn faintly in the background, see .page-grid).
     Base unit is 10px: spacing on the site should be multiples of 10. */
  --max: 1600px;          /* widest the content gets */
  --cols: 12;             /* columns between the padding lines (8 tablet, 4 mobile) */
  --gutter: 20px;         /* gap between cards/columns in layouts */
  --row: 50px;            /* horizontal line spacing */
  --grid-line: rgba(255, 255, 255, 0.05);
  --grid-line-half: rgba(255, 255, 255, 0.022);   /* fainter lines halfway between */
}
@media (max-width: 1024px) { :root { --cols: 8; } }
@media (max-width: 767px)  { :root { --cols: 4; } }

/* Press G to show the grid brightly while checking alignment */
html.show-grid { --grid-line: rgba(242, 0, 0, 0.55); --grid-line-half: rgba(242, 0, 0, 0.25); }

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

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.15;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: #333;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout grid --------------------------------------------------------------
   Lines at both screen edges, at the content edges (the page padding), and at equal
   column divisions in between (12 desktop, 8 tablet, 4 mobile). Horizontal lines every
   --row, scrolling with the page. Everything built on the padding sits on a line. */
.page-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  container-type: inline-size;   /* lets the lines use the page's real width (no scrollbar) */
}
.page-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  --edge: max(var(--pad), (100cqw - var(--max)) / 2);   /* where content starts */
  --cw: calc(100cqw - 2 * var(--edge));                  /* content width */
  --col: calc(var(--cw) / var(--cols));                 /* equal column width */
  background-image:
    /* screen edges and content edges */
    linear-gradient(to right,
      var(--grid-line) 0 1px, transparent 1px var(--edge),
      var(--grid-line) var(--edge) calc(var(--edge) + 1px), transparent calc(var(--edge) + 1px) calc(100% - var(--edge) - 1px),
      var(--grid-line) calc(100% - var(--edge) - 1px) calc(100% - var(--edge)), transparent calc(100% - var(--edge)) calc(100% - 1px),
      var(--grid-line) calc(100% - 1px)),
    /* equal column divisions between the content edges */
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px var(--col)),
    /* horizontal lines */
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    /* fainter half-column lines, inside the content area */
    repeating-linear-gradient(to right, var(--grid-line-half) 0 1px, transparent 1px var(--col)),
    /* fainter half-row lines */
    linear-gradient(to bottom, var(--grid-line-half) 1px, transparent 1px);
  background-size:
    100% 100%,
    calc(var(--col) * (var(--cols) - 2) + 1px) 100%,
    100% var(--row),
    calc(var(--col) * (var(--cols) - 1) + 1px) 100%,
    100% var(--row);
  background-position:
    0 0,
    calc(var(--edge) + var(--col)) 0,
    0 0,
    calc(var(--edge) + var(--col) / 2) 0,
    0 calc(var(--row) / 2);
  background-repeat: no-repeat, no-repeat, repeat-y, no-repeat, repeat-y;
}

h1, h2, h3, p { margin: 0; font-weight: inherit; }
a { color: inherit; text-decoration: none; background-color: transparent; }
img { border-style: none; height: auto; max-width: 100%; }

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--white);
  color: var(--bg);
}

/* Fade in, as Elementor's fadeIn entrance animation ---------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.js .fade { visibility: hidden; }
.js .fade.is-in { visibility: visible; animation: fadeIn 2s ease; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 11px 20px 12px 14px;
  border: 1px solid var(--grey);
  border-radius: 2px;
  background-color: rgba(15, 15, 16, 0);
  color: var(--grey);
  fill: var(--grey);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  transition: transform 0.5s ease-out;
}
.btn--text { padding: 11px 20px 12px 20px; }
.btn:hover,
.btn:focus {
  transform: translateY(-8px);
  background-color: var(--white);
  color: var(--bg);
  fill: var(--bg);
}
.btn__inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}
.btn__icon { display: flex; align-items: center; }
.btn__icon svg { width: 1em; height: auto; }

.btn-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 50px var(--pad);
}
.site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
.site-header__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.site-header__col--end { align-items: flex-end; }
.site-header__logo {
  font-size: 18px;
  font-weight: 300;
  line-height: 18px;
  color: #fff;
}
.site-header__logo a { color: var(--white); }

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: round(down, 100dvh, var(--row));
  padding: 0 var(--pad);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 720px;
  max-width: 100%;
}
.hero__title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 56px;
  font-weight: 400;
  line-height: 60px;
  color: var(--white);
}
.hero__title span {
  color: var(--grey);
  opacity: 0.6;
  font-weight: 300;
}
.hero__lead {
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  color: var(--grey);
}

/* Sections ---------------------------------------------------------------- */

.section {
  position: relative;
  padding: 0 var(--pad);
  margin: 300px 0 50px;
  transform: translateY(-150px);
}
.section.work { margin-top: 0; }
.section.cta { margin-bottom: 100px; }

.section__inner {
  display: flex;
  flex-direction: column;
  max-width: 1600px;
  margin: 0 auto;
  gap: 20px;
}
.services .section__inner { gap: 50px; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
  max-width: 100%;
}
.stack--about { width: 800px; }
.stack--services { width: 650px; }
.stack--cta { width: 720px; }

.title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 56px;
  font-weight: 400;
  line-height: 60px;
  color: var(--white);
}
.text {
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  color: var(--grey-80);
}
.text--mb10 { margin-bottom: 10px; }
.text--mb30 { margin-bottom: 30px; }

.label,
.project__name,
.card__title {
  text-align: start;
  font-size: 20px;
  font-weight: 300;
  line-height: 20px;
  color: var(--white);
}
.label::before,
.project__name::before,
.card__title::before { content: "// "; }

/* Work -------------------------------------------------------------------- */

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}
.project {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.project img {
  display: block;
  width: auto;
  border: 1px solid var(--grey);
  border-radius: 2px;
  transition: transform 0.5s ease-out;
}
.project img:hover { transform: translateY(-8px); }
.project__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project__services {
  text-align: start;
  font-size: 20px;
  font-weight: 300;
  line-height: 20px;
  color: var(--grey);
  opacity: 0.6;
}

/* Services ---------------------------------------------------------------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 40px;
  border: 1px solid rgba(179, 179, 179, 0.6);
  border-radius: 2px;
  cursor: default;
  transition: border-color 0.5s;
}
.card:hover { border-color: var(--white); }
.card__text {
  text-align: start;
  font-size: 20px;
  font-weight: 300;
  line-height: 26px;
  color: var(--grey);
  opacity: 0.6;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  position: relative;
  padding: 50px var(--pad);
}
.site-footer__inner {
  display: flex;
  flex-direction: row;
  max-width: 1600px;
  margin: 0 auto;
}
.site-footer__left { flex: 1 1 0; min-width: 0; }
.site-footer__right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
}
.site-footer p {
  font-size: 18px;
  font-weight: 300;
  line-height: 14px;
  color: var(--grey-60);
  cursor: default;
}
.site-footer a { color: var(--grey-60); transition: color 0.5s; cursor: pointer; }
.site-footer a:hover,
.site-footer a:focus { color: var(--white); }

/* Contact ----------------------------------------------------------------- */

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--pad);
}
.contact__inner {
  width: 100%;
  max-width: 501px;
  margin: 0 auto;
}
.contact__title {
  margin-bottom: 15px;
  text-align: start;
  font-size: 32px;
  font-weight: 400;
  line-height: 32px;
  color: var(--white);
}
.contact__intro { margin-bottom: 30px; }
.contact__intro p {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
  color: var(--grey);
}
.contact__intro p:last-child { margin-bottom: 0; }

.field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 15px;
}
.field label {
  display: inline-block;
  padding-bottom: 5px;
  font-size: 18px;
  font-weight: 300;
  line-height: 32px;
  color: #fff;
}
.field--required label::after {
  content: " *";
  color: red;
  padding-inline-start: 0.2em;
}
.field input,
.field textarea {
  display: block;
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  min-height: 33px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--white);
  border-radius: 2px;
  background-color: var(--white);
  color: var(--bg);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 300;
  line-height: 32px;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field textarea:focus { outline: 0; box-shadow: none; }
.field input::placeholder,
.field textarea::placeholder { color: inherit; font-family: inherit; opacity: 0.6; }
.field textarea { height: 138px; }

.field-spacer { height: 1px; margin-bottom: 15px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.submit {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--grey);
  border-radius: 2px;
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
}
.submit:hover,
.submit:focus { background-color: var(--white); color: var(--bg); }

.form-message {
  margin: 10px 0;
  font-family: "aktiv-grotesk", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 32px;
}
.form-message--success { color: #5cb85c; }
.form-message--error { color: #d9534f; }


/* Policy pages (privacy, cookies) ------------------------------------------ */

.policy {
  position: relative;
  padding: 50px var(--pad);
  margin-bottom: 200px;
  transform: translateY(141px);
}
.policy__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.policy__sec { display: flex; flex-direction: column; }
.policy__title {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 400;
  line-height: 32px;
  color: var(--white);
}
.policy__heading {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  color: var(--white);
}
.policy__text {
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: var(--grey);
}
.policy__text p { margin-bottom: 10px; }
.policy__text a { color: var(--grey); }
.policy__text a:hover,
.policy__text a:focus { color: var(--white); }
.policy__text ul,
.cs-text ul { margin: 0; padding-left: 40px; }
/* 15px in total: the last item's 5px collapses into Elementor's 15px widget margin */
.policy--cookie .policy__list { margin-bottom: 10px; }
.policy--cookie .policy__list p { margin-bottom: 5px; }
.policy__btn { margin-top: 10px; }

/* Case study (Chasing Cards) ---------------------------------------------- */

.cs {
  position: relative;
  padding: 50px var(--pad);
  margin-bottom: 200px;
  transform: translateY(141px);
}
.cs__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
}
.cs-head,
.cs-hero,
.cs-text,
.cs-box { display: flex; flex-direction: column; max-width: 100%; }
.cs-head { width: 500px; }
.cs-head__title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 32px;
  color: var(--white);
}
.cs-head__sub {
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: var(--grey);
}
.cs-head__sub p { margin-bottom: 10px; }

.cs-hero { width: 900px; margin: 25px 0 50px; }
.cs-media { text-align: center; }
.cs-media img { display: inline-block; vertical-align: middle; }
.cs-hero img { border-radius: 2px; }

.cs-text { width: 800px; }
.cs-text__label {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 300;
  line-height: 24px;
  color: var(--white);
}
.cs-text__body {
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: var(--grey);
}
.cs-text__body p { margin-bottom: 10px; }
.cs-text__btn { margin-top: 20px; }

.cs-box {
  width: 1000px;
  margin: 40px 0 50px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--grey);
  border-radius: 2px;
  background-color: rgba(179, 179, 179, 0.05);
}
.cs-logo img { display: block; }
.cs-box--logo {
  min-height: 562px;
  background-size: cover;
}
.cs-logo { margin: 0 25px 35px 0; }
.cs-logo img { width: 100%; height: 150px; border-radius: 2px; }
.cs-box--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 50px;
  padding: 100px;
}
.cs-box--cards > div { width: 100%; }
.cs-box--cards img {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 #000;
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  .section,
  .section.cta { margin-bottom: 0; }
  .stack--about,
  .stack--cta { width: 100%; }
  .work__grid,
  .services__grid { grid-template-columns: 1fr; }

  .cs { padding: 20px var(--pad); }
  .cs-head { padding: 0 30px; }
  .cs-hero { width: 100%; margin: 0 0 20px; }
  .cs-text { width: 100%; padding: 0 30px; }
  .cs-box { width: 100%; margin: 10px 0 20px; }
  .cs-box--logo { min-height: 500px; }
  .cs-box--cards { min-height: 500px; padding: 40px; justify-items: center; align-items: center; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .contact__inner { max-width: 533px; }
}

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 767px) {


  .site-header { padding: 20px var(--pad); }
  .btn { font-size: 14px; line-height: 14px; padding: 10px 16px 10px 12px; }
  .btn--text { padding: 10px 14px; }

  .hero__title { margin-bottom: 0; font-size: 29px; line-height: 32px; }
  .hero__lead { margin-bottom: 10px; font-size: 16px; line-height: 22px; }

  .section { margin-top: 150px; transform: translateY(-100px); }
  .section.work { margin-top: 0; }
  .services .section__inner { gap: 20px; }
  .stack--services { width: 100%; }

  .title { margin-bottom: 0; font-size: 29px; line-height: 32px; }
  .text { font-size: 16px; line-height: 22px; }
  .text--mb10,
  .text--mb30 { margin-bottom: 10px; }
  .text--m-mb0 { margin-bottom: 0; }
  .text--m-mb10 { margin-bottom: 10px; }

  .project__services { line-height: 24px; }
  .card__text { line-height: 24px; }

  .site-footer { padding: 20px var(--pad); }
  .site-footer__left { flex: 0 0 40%; }
  .site-footer__right { flex: 0 0 60%; gap: 20px; }
  .site-footer p { font-size: 12px; }

  .contact { padding: 150px var(--pad) 20px; }
  .contact__inner { max-width: none; }

  .policy--privacy { padding: 20px var(--pad); }
  .policy--privacy .policy__title { margin-bottom: 5px; font-size: 29px; line-height: 32px; }
  .policy--privacy .policy__text { font-size: 18px; line-height: 24px; }
  .policy--cookie .policy__title { margin-bottom: 0; font-size: 29px; line-height: 32px; }
  .policy--cookie .policy__text { line-height: 24px; }
  .policy__btn .btn--text { padding: 10px 14px; }

  .cs { transform: translateY(100px); }
  .cs-head { padding: 0; }
  .cs-head__title { font-size: 29px; line-height: 32px; }
  .cs-head__sub { margin-bottom: -5px; font-size: 16px; line-height: 22px; }
  .cs-hero { margin: 0 0 10px; }
  .cs-text { padding: 0; }
  .cs-text__body { font-size: 16px; line-height: 22px; }
  .cs-box { margin: 0 0 10px; }
  .cs-box--logo { min-height: 0; padding: 50px; }
  .cs-logo { margin: 0 10px 15px 0; }
  .cs-logo img { height: 80px; }
  .cs-box--cards { min-height: 0; gap: 10px; padding: 20px; margin: 0; }
  .cs-box--cards img { border-radius: 2px; }
}
