/* Dividiam public site. Look based on "Modern" by TemplatesJungle (free for commercial use). */

:root {
  --accent: #E46129;
  --accent-dark: #c44e1c;
  --navy: #0E2630;
  --navy-2: #163542;
  --ink: #111;
  --text: #6b6b6b;
  --text-light: rgba(255, 255, 255, .72);
  --line: #e6e6e6;
  --grey: #f1f1f1;
  --white: #fff;
  --heading: "Arvo", Georgia, serif;
  --body: "Lato", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--dark { background: var(--navy); color: var(--text-light); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--grey { background: var(--grey); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Section heads: small label with the orange dash, big title ---------- */
.sh { margin-bottom: clamp(32px, 5vw, 56px); }
.sh__kick {
  display: inline-block; position: relative; padding-left: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
}
.sh__kick::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; border-top: 2px solid var(--accent); }
.sh__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: 1.05; margin: .25em 0 0; }
.sh--light .sh__kick { color: var(--white); }
.sh--light .sh__title { color: var(--white); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; padding: 1.15em 2.4em; margin-top: .6em;
  background: var(--accent); color: var(--white); border: 0; border-radius: 4px;
  font: 700 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s;
}
.btn:hover { background: var(--navy); }
.section--dark .btn:hover { background: var(--white); color: var(--navy); }
.btn--full { display: block; width: 100%; text-align: center; }
.line-link {
  position: relative; display: inline-block; padding-right: 70px;
  color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.line-link::after { content: ""; position: absolute; right: 0; top: 50%; width: 54px; border-top: 2px solid currentColor; transition: width .3s; }
.line-link:hover::after { width: 30px; }

/* ---------- Top bar and overlay menu ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 22px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.brand--dark { color: var(--ink); }
.menu-btn {
  position: fixed; top: 22px; right: var(--gutter); z-index: 130;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(14, 38, 48, .55); border: 0; border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s;
}
.menu-btn:hover { background: var(--accent); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 20px; height: 2px; background: var(--white); transition: transform .3s, top .3s, background .3s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.nav-open .menu-btn__bars { background: transparent; }
.nav-open .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 110; background: var(--navy); color: var(--text-light);
  clip-path: circle(0 at calc(100% - var(--gutter) - 24px) 46px);
  visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
  overflow-y: auto;
}
.nav-open { overflow: hidden; }
.nav-open .overlay { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 46px); visibility: visible; transition: clip-path .8s var(--ease); }
.overlay__inner {
  min-height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 120px var(--gutter) 60px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center;
}
.overlay__list { list-style: none; margin: 0; padding: 0; }
.overlay__list li { overflow: hidden; }
.overlay__list a {
  position: relative; display: inline-block; padding: 2px 4px;
  font-family: var(--heading); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.2;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .55);
  transform: translateX(80px); opacity: 0; transition: color .2s, transform .5s ease, opacity .4s ease;
}
.overlay__list a::after { content: ""; position: absolute; left: 0; right: 100%; top: 54%; height: 4px; background: var(--accent); transition: right .25s; }
.overlay__list a:hover, .overlay__list a[aria-current] { color: var(--white); }
.overlay__list a:hover::after, .overlay__list a[aria-current]::after { right: 0; }
.nav-open .overlay__list a { transform: none; opacity: 1; }
.nav-open .overlay__list li:nth-child(1) a { transition-delay: .35s; }
.nav-open .overlay__list li:nth-child(2) a { transition-delay: .42s; }
.nav-open .overlay__list li:nth-child(3) a { transition-delay: .49s; }
.nav-open .overlay__list li:nth-child(4) a { transition-delay: .56s; }
.overlay__info { opacity: 0; transition: opacity .4s .6s; }
.nav-open .overlay__info { opacity: 1; }
.overlay__info h2 { color: var(--white); font-size: 1.6rem; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .icon { margin-top: .3em; color: var(--accent); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-list--big li { font-size: 1.15rem; margin-bottom: 26px; }
.overlay .contact-list a, .section--dark .contact-list a { color: var(--white); }

/* ---------- Home slider ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--navy); overflow: hidden; }
.hero--blank { height: 40vh; }
/* --py is set by site.js while scrolling: the slide moves slower than the page (parallax). */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translate3d(0, var(--py, 0px), 0); transition: opacity 1s ease, visibility 0s 1s; will-change: transform; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .slide__media { transform: scale(1); }
.slide__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 38, 48, .45) 0%, rgba(14, 38, 48, .25) 45%, rgba(14, 38, 48, .7) 100%); }
.slide__content {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; color: var(--white);
}
.slide__kick { font-size: 14px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px; color: rgba(255, 255, 255, .85); }
.slide__title { color: var(--white); font-size: clamp(2.6rem, 1rem + 7vw, 6.4rem); line-height: 1; text-transform: uppercase; margin-bottom: 36px; }
.slide__title .letter { display: inline-block; opacity: 0; transform: translateX(40px); }
.slide.is-active .slide__title .letter { animation: letter-in 1.1s cubic-bezier(.19, 1, .22, 1) forwards; animation-delay: calc(var(--i) * 30ms + .2s); }
@keyframes letter-in { to { opacity: 1; transform: none; } }
.hero__controls { position: absolute; right: 0; bottom: 0; z-index: 3; display: flex; align-items: stretch; background: var(--white); }
.hero__count { display: flex; align-items: center; padding: 0 22px; font-size: 14px; letter-spacing: .1em; color: var(--text); }
.hero__count b { color: var(--ink); }
.hero__controls button { width: 72px; height: 72px; display: grid; place-items: center; border: 0; background: var(--white); color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.hero__controls button + button { border-left: 1px solid var(--line); }
.hero__controls button:hover { background: var(--accent); color: var(--white); }
.hero__controls .icon { width: 22px; height: 22px; }

/* ---------- Two columns: image and text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split--single { grid-template-columns: minmax(0, 760px); }
.split__img { margin: 0; position: relative; }
.split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__img::after { content: ""; position: absolute; z-index: -1; left: -24px; bottom: -24px; width: 60%; height: 60%; background: var(--grey); }
.lead p { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.about-teaser .split { grid-template-areas: "text img"; }
.about-teaser .split__img { grid-area: img; }
.about-teaser .split__text { grid-area: text; }
.about-teaser .split--single { grid-template-areas: "text"; }

/* ---------- Project grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 14px; margin: -12px 0 44px; }
.pill {
  padding: .7em 1.7em; border-radius: 2em; border: 1px solid rgba(17, 17, 17, .25); background: transparent; color: var(--ink);
  font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.is-on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.section--dark .pill { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.section--dark .pill:hover { border-color: var(--accent); color: var(--accent); }
.section--dark .pill.is-on { color: var(--white); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card[hidden] { display: none; }
.card a { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--navy-2); }
.card__media img, .card__blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s ease, opacity .4s; }
.card a:hover .card__media img { transform: scale(1.06); opacity: .85; }
.card__text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(14, 38, 48, .88));
  color: var(--white);
}
.card__text h3 { color: var(--white); font-size: 1.3rem; margin: 0 0 2px; transition: color .2s; }
.card__text p { margin: 0; font-size: 14px; letter-spacing: .06em; color: rgba(255, 255, 255, .8); }
.card a:hover h3 { color: var(--accent); }

/* ---------- Services ---------- */
.services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 6vw, 90px); counter-reset: s; }
.services__list--2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.services__list--1 { grid-template-columns: minmax(0, 560px); }
.services__list li { position: relative; padding-top: 40px; isolation: isolate; }
.services__num {
  position: absolute; z-index: -1; top: -18px; left: -14px;
  font-family: var(--heading); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--accent); opacity: .16;
}
.services__list h3 { font-size: 1.5rem; }
.services__list p { line-height: 1.9; }

/* ---------- Call to action ---------- */
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.cta__inner .sh { margin-bottom: 0; }

/* ---------- Inner page title band ---------- */
.banner { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--navy); overflow: hidden; }
.banner--plain { min-height: 46vh; }
.banner--tall { min-height: 88vh; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.banner__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 38, 48, .55), rgba(14, 38, 48, .35) 40%, rgba(14, 38, 48, .85)); }
.banner__content { position: relative; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 90px); }
.banner .sh { margin-bottom: 0; }
.banner .sh__title { font-size: clamp(2.6rem, 1.2rem + 5vw, 5.4rem); text-transform: uppercase; }
.banner__sub { color: var(--text-light); font-size: 1.15rem; margin: 18px 0 0; max-width: 36em; }

/* ---------- Project page ---------- */
.project__intro { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 7vw, 100px); margin-bottom: clamp(48px, 7vw, 90px); }
.facts { margin: 0; border-top: 2px solid var(--accent); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.facts dd { margin: 4px 0 0; color: var(--ink); font-family: var(--heading); font-size: 1.15rem; }
.project__text { font-size: 1.1rem; max-width: 40em; }
.project__text p:first-child { font-weight: 700; color: var(--ink); font-size: 1.2rem; }
.embed { position: relative; aspect-ratio: 16 / 9; margin-bottom: 28px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery__row { margin-bottom: 28px; }
.gallery__row--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery__item { margin: 0; }
.gallery__item a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform .7s ease; }
.gallery__item a:hover img { transform: scale(1.025); }
.gallery__item video { width: 100%; }
.pager { border-top: 1px solid var(--line); }
.pager__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.pager a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); font-family: var(--heading); font-size: 1.15rem; }
.pager a small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.pager a:hover { color: var(--accent); }
.pager .icon { width: 28px; height: 28px; }
.pager__next { justify-content: flex-end; text-align: right; }
.pager__all { font-family: var(--body) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- About ---------- */
.prose p:first-child { font-weight: 700; color: var(--ink); font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 120px); }
.form label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.form .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-light); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 15px 18px;
  font: 400 17px/1.5 var(--body); color: var(--white); background: transparent;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 0; transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form ::placeholder { color: rgba(255, 255, 255, .45); }
.form__error { padding: 14px 18px; border-left: 3px solid var(--accent); background: rgba(228, 97, 41, .12); color: var(--white); }
.notice { padding: 32px; border: 1px solid rgba(255, 255, 255, .25); }
.empty { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(72px, 9vw, 110px); }
.footer__cols { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 48px; }
.footer__col h2 { font-size: 1.35rem; margin-bottom: 28px; }
.footer__col p { line-height: 1.9; margin-top: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { position: relative; text-decoration: none; transition: padding .3s, color .3s; }
.footer__links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; border-top: 2px solid var(--accent); transition: width .3s; }
.footer__links a:hover { padding-left: 24px; color: var(--ink); }
.footer__links a:hover::before { width: 14px; }
.footer .contact-list a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 18px; }
.footer__social a { color: var(--text); }
.footer__social a:hover { color: var(--accent); }
.footer__social .icon { width: 26px; height: 26px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 70px; padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 20, 26, .96); }
.lightbox::backdrop { background: rgba(8, 20, 26, .9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 60px 70px; cursor: zoom-out; }
.lightbox button { position: absolute; border: 0; background: none; color: var(--white); cursor: pointer; font: 700 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.lightbox button:hover { color: var(--accent); }
.lb-close { top: 22px; right: 26px; padding: 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 54px !important; padding: 10px 18px; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__list { grid-template-columns: 1fr; gap: 56px; max-width: 640px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .split, .about-teaser .split { grid-template-columns: 1fr; grid-template-areas: "img" "text"; }
  .split__img img { aspect-ratio: 4 / 3; }
  .split__img::after { left: -12px; bottom: -12px; }
  .overlay__inner { grid-template-columns: 1fr; align-content: center; gap: 40px; }
  .project__intro, .contact, .cta__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .pager__inner { grid-template-columns: 1fr 1fr; }
  .pager__all { display: none !important; }
}
@media (max-width: 600px) {
  .topbar { padding-top: 24px; }
  .brand { font-size: 18px; letter-spacing: .18em; }
  .menu-btn { top: 16px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .gallery__row--pair { grid-template-columns: 1fr; gap: 20px; }
  .gallery__row { margin-bottom: 20px; }
  .hero__controls button { width: 58px; height: 58px; }
  .hero__count { padding: 0 16px; }
  .footer__cols { grid-template-columns: 1fr; }
  .lightbox img { padding: 56px 8px; }
  .pager a { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .slide__title .letter { opacity: 1; transform: none; }
}
