/* Typefaces */
@font-face {
  font-family: Barlow Condensed;
  src: url("../fonts/barlow-condensed-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url("../fonts/dm-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

/* Colors, spacing and typography */
:root {
  --ink: #192329;
  --muted: #505a5f;
  --yellow: #ffce36;
  --red: #c93a26;
  --blue: #0047bc;
  --paper: #f8f8f5;
  --line: #cdd0cb;
  --body: "DM Sans",Arial,sans-serif;
  --title: "Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --max: 1380px;
  --pad: clamp(20px,5.6vw,90px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

button,summary {
  font: inherit;
}

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

.wrap {
  width: min(100%,var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

:focus-visible {
  outline: 3px solid #1673ff;
  outline-offset: 5px;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 20;
  top: .5rem;
  left: .5rem;
  background: white;
  color: black;
  padding: .5rem;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

/* Header and navigation */
.header {
  position: relative;
  z-index: 5;
  background: var(--paper);
}

.head-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: clamp(18px,3vw,48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .64rem;
  flex-shrink: 0;
  color: #162028;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: auto;
}

.brand>span {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: .011em;
  line-height: .84;
}

.brand small {
  display: block;
  font: 700 .58rem/1 var(--body);
  letter-spacing: .205em;
  margin-top: 5px;
}

.main-nav,.head-actions,.languages {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: clamp(18px,2.7vw,40px);
  margin-left: auto;
  font-weight: 650;
  font-size: .94rem;
}

.main-nav a:hover,.mobile-nav a:hover,.foot a:hover {
  color: var(--blue);
}

.head-actions {
  gap: clamp(15px,2.3vw,36px);
}

.languages {
  gap: 5px;
  letter-spacing: .04em;
  font-size: .80rem;
}

.languages a,.languages b {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

.languages span {
  color: #8d9291;
}

.languages b {
  font-weight: 800;
}

.languages a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-nav,.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 2px;
  font-size: .94rem;
  font-weight: 750;
}

.contact-nav {
  padding: .68rem 1.2rem;
  background: var(--ink);
  color: white;
}

.contact-nav:hover,.black:hover {
  background: #303e49;
  text-decoration: none;
}

.menu-toggle,.mobile-nav {
  display: none;
}

/* Hero */
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #233642;
  color: #fff;
}

.hero-media,.hero-media:after,.hero-media picture,.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -1;
  overflow: hidden;
}

.hero-media picture {
  top: -7%;
  height: 114%;
  transform: translate3d(0,var(--shift,0px),0);
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 53%;
}

.hero-media:after {
  content: "";
  background: linear-gradient(90deg,rgba(11,22,31,.90) 0%,rgba(13,24,32,.76) 29%,rgba(13,23,30,.31) 62%,rgba(13,23,30,.06) 100%),linear-gradient(0deg,rgba(10,20,27,.78),transparent 25%);
}

.hero-inner {
  min-height: clamp(535px,43.8vw,660px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy {
  padding-top: clamp(56px,4.7vw,85px);
  padding-bottom: 42px;
}

.eyebrow,.location,.hero-base>a,.project summary small,figcaption {
  font-size: .77rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.eyebrow i {
  width: 28px;
  height: 3px;
  background: var(--yellow);
  display: block;
  flex: none;
}

.eyebrow.dark i {
  background: var(--red);
}

.slash {
  opacity: .65;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3,.big-phone,.project summary strong {
  font-family: var(--title);
  font-weight: 700;
}

h1,h2,h3 {
  text-transform: uppercase;
}

h1 {
  font-size: clamp(5.4rem,8.9vw,8.7rem);
  line-height: .86;
  letter-spacing: -.016em;
  margin: .21em 0 .16em;
}

h1 em,h2 em {
  color: var(--yellow);
  font-style: normal;
}

h2 em {
  color: var(--red);
}

.intro {
  max-width: 41ch;
  font-size: clamp(1.02rem,1.23vw,1.2rem);
  line-height: 1.48;
  color: #f5f5f0;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 1.5rem;
}

.btn {
  min-height: 46px;
  padding: .7rem 1.32rem;
}

.primary {
  background: var(--yellow);
  color: #1b211f;
}

.primary:hover {
  background: #ffde6c;
  text-decoration: none;
}

.underlink {
  font-weight: 650;
  border-bottom: 1px solid #d3d9db;
  padding: 4px 0;
  line-height: 1.3;
  font-size: .94rem;
}

.underlink:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  text-decoration: none;
}

.hero-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #ffffff67;
  padding: 17px 0 18px;
  color: #fff;
}

.hero-base>a,.location {
  font-size: .71rem;
  letter-spacing: .12em;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.location i {
  width: 11px;
  height: 11px;
  position: relative;
  border: 1.7px solid var(--yellow);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.location i:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--yellow);
}

/* Services */
.section {
  padding-block: clamp(62px,6vw,105px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading>p {
  max-width: 39ch;
  color: var(--muted);
  line-height: 1.52;
  padding-bottom: .18em;
}

h2 {
  font-size: clamp(3.4rem,5.3vw,5.6rem);
  line-height: .94;
  letter-spacing: -.015em;
  margin-top: .17em;
}

.services {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(16px,2.2vw,36px);
}

.service-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.77;
  object-fit: cover;
}

.service h3 {
  font-size: clamp(1.65rem,2.55vw,2.8rem);
  line-height: 1.05;
  margin: 18px 0 7px;
}

.service p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 43ch;
}

.service details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.service summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .15rem .7rem 0;
  font-size: .90rem;
  font-weight: 700;
}

summary:hover {
  color: var(--blue);
}

.plus {
  width: 15px;
  height: 15px;
  flex: none;
  position: relative;
  display: inline-block;
}

.plus:before,.plus:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1.8px;
  background: currentColor;
  top: calc(50% - .9px);
  left: 0;
}

.plus:after {
  transform: rotate(90deg);
}

details[open]>summary .plus:after {
  transform: none;
}

.service details p {
  padding: 0 .45em .8em 0;
}

/* Selected projects */
.work-section {
  background: #14232d;
  color: var(--paper);
  padding-block: clamp(70px,6.7vw,110px);
}

.work-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(36px,6vw,100px);
}

.work-heading h2 em {
  color: var(--yellow);
}

.work-heading>p:last-child {
  margin-top: 1.25rem;
  max-width: 32ch;
  color: #d4dde1;
}

.project {
  border-top: 1px solid #66747b;
}

.project:last-child {
  border-bottom: 1px solid #66747b;
}

.project summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.project summary small {
  font-size: .71rem;
  letter-spacing: .13em;
  color: #bac7ce;
  display: block;
  margin-bottom: 3px;
}

.project summary strong {
  font-size: clamp(1.45rem,2.3vw,2.3rem);
  line-height: 1.06;
}

.project-town {
  margin-left: auto;
  white-space: nowrap;
  color: #d3dadd;
  font-size: .86rem;
}

.project .plus {
  color: var(--yellow);
}

.project p {
  margin: -.26rem 0 1.15rem;
  max-width: 53ch;
  color: #dae1e5;
}

.project summary:hover {
  color: var(--yellow);
}

/* Company history */
.about {
  display: grid;
  grid-template-columns: minmax(200px,.78fr) 1.22fr;
  gap: clamp(40px,8.5vw,145px);
  align-items: center;
}

.about figure {
  width: min(100%,395px);
  justify-self: end;
}

.about img {
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: .7rem;
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  font-size: .69rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.about h2 {
  margin-bottom: .26em;
}

.about p:not(.eyebrow) {
  margin-top: .72rem;
  max-width: 54ch;
  color: var(--muted);
}

/* Contact */
.contact {
  background: var(--yellow);
  padding-block: clamp(58px,5.5vw,95px);
}

.contact .eyebrow i {
  background: var(--ink);
}

.contact h2 em {
  color: var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 6%;
}

.contact-info {
  text-align: left;
}

.big-phone {
  font-size: clamp(2rem,3.1vw,3.3rem);
  line-height: 1.17;
  display: block;
  width: max-content;
}

.mail {
  font-size: clamp(.98rem,1.35vw,1.22rem);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-info>p {
  margin: 1rem 0;
  max-width: 40ch;
}

.black {
  background: var(--ink);
  color: white;
}

/* Footer */
.foot {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.foot p,.foot>a:last-child {
  font-size: .85rem;
}

.foot p {
  margin-left: auto;
  color: var(--muted);
}

.foot>a:last-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive layouts */
@media (max-width:850px) {
  .main-nav {
    gap: 16px;
  }
  .head-inner {
    gap: 16px;
  }
  .head-actions {
    gap: 16px;
  }
  .header .brand img {
    width: 36px;
  }
  .hero-inner {
    min-height: 530px;
  }
  .work-grid {
    grid-template-columns: .67fr 1.33fr;
    gap: 24px;
  }
  .about {
    gap: 35px;
  }
}

@media (max-width:720px) {
  :root {
    --pad: clamp(20px,5vw,36px);
  }
  .head-inner {
    min-height: 70px;
  }
  .header .brand {
    gap: 7px;
  }
  .brand>span {
    font-size: 1.45rem;
  }
  .brand small {
    font-size: .5rem;
  }
  .header .brand img {
    width: 32px;
  }
  .main-nav,.contact-nav {
    display: none;
  }
  .head-actions {
    margin-left: auto;
    gap: 13px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: var(--ink);
    color: white;
    padding: 9px 11px;
    border-radius: 2px;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
  }
  .menu-toggle i {
    width: 13px;
    height: 7px;
    border-block: 1.5px solid currentColor;
  }
  .menu-toggle[aria-expanded=true] i {
    height: 2px;
    border-bottom: 0;
  }
  .mobile-nav.visible {
    display: grid;
    position: absolute;
    top: 100%;
    width: 100%;
    background: var(--paper);
    padding-block: 8px 16px;
    box-shadow: 0 15px 24px #18232c29;
  }
  .mobile-nav a {
    padding: 8px 0;
    font-weight: 650;
  }
  html:not(.js) .menu-toggle {
    display: none;
  }
  html:not(.js) .mobile-nav {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    padding-bottom: 12px;
  }
  html:not(.js) .mobile-nav a {
    padding: 0;
    font-size: .88rem;
  }
  .hero-inner {
    min-height: clamp(515px,79vh,585px);
  }
  .hero-copy {
    padding-block: 65px 40px;
  }
  .hero-media:after {
    background: linear-gradient(90deg,#0e1a24d9,#10212ca8 51%,#13222d55),linear-gradient(0deg,#0f1d26a6,transparent 23%);
  }
  h1 {
    font-size: clamp(4.1rem,10.8vw,5.55rem);
    margin: .27em 0 .25em;
  }
  .hero-links {
    margin-top: 1.5rem;
    gap: 20px;
  }
  .hero-base {
    padding-block: 14px;
    gap: 10px;
  }
  .hero-base>a,.location {
    font-size: .61rem;
    letter-spacing: .06em;
  }
  .eyebrow {
    font-size: .70rem;
    gap: 9px;
  }
  .eyebrow i {
    width: 23px;
  }
  .section-heading {
    display: block;
  }
  .section-heading>p {
    margin-top: .9rem;
    padding: 0;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .service-image {
    aspect-ratio: 2.15;
  }
  .service h3 {
    font-size: 2.07rem;
    margin: 13px 0 5px;
  }
  .service details {
    margin-top: .65rem;
  }
  .work-grid,.about,.contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .work-heading h2 br {
    display: none;
  }
  .work-heading h2 br:after {
    content: ' ';
  }
  .work-heading>p:last-child {
    margin-top: .75rem;
    max-width: 41ch;
  }
  .project-town {
    font-size: .76rem;
  }
  .project summary strong {
    font-size: 1.49rem;
  }
  .project p {
    padding-right: .5rem;
  }
  .about figure {
    justify-self: start;
    width: min(100%,362px);
    order: 2;
  }
  .foot {
    flex-wrap: wrap;
    gap: .9rem 1.3rem;
    padding-block: 23px;
  }
  .foot p {
    margin-left: auto;
  }
  .foot>a:last-child {
    margin-left: auto;
  }
}

@media (max-width:380px) {
  .head-actions {
    gap: 7px;
  }
  .hero-base {
    align-items: flex-start;
  }
  .hero-base>a {
    max-width: 45%;
    text-align: right;
  }
  .project-town {
    display: none;
  }
  .project .plus {
    margin-left: auto;
  }
  .header .brand img {
    width: 27px;
  }
  .languages {
    font-size: .72rem;
  }
  .hero-links {
    gap: 15px;
  }
  .btn {
    padding: .66rem 1rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-media picture {
    transform: none!important;
  }
}

.contact-info .jr-contact {
  font-weight: 600;
  font-size: .94rem;
  margin: .65rem 0;
}

.jr-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
