/* =========================================================
THE YEN HOUSE
CARGO-NATIVE HELVETICA EDITORIAL SYSTEM
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfaf7;
  color: #111111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #111111;
  color: #fbfaf7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.52;
}

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


/* =========================================================
HEADER
========================================================= */

.tyh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 70px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 24px;
  align-items: center;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.tyh-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.tyh-location {
  text-align: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #77736c;
}

.tyh-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================================================
HERO
========================================================= */

.tyh-hero {
  width: 100%;
  padding: 22px 24px 0 24px;
}


/* =========================================================
CARGO-NATIVE HERO GALLERY
========================================================= */

.tyh-hero-media {
  position: relative;
  width: 100%;
  min-height: 620px;
  height: 82vh;
  max-height: 980px;
  overflow: hidden;
  background: #e5e3df;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}


/*
The temporary message disappears once you remove it
and insert Cargo's native slideshow here.
*/

.tyh-gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #77736c;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/*
Any Cargo image gallery placed directly inside the hero
will fill the hero container.
*/

.tyh-hero-media > .image-gallery {
  width: 100% !important;
  height: 100% !important;
  min-height: 620px !important;
  margin: 0 !important;
}


/*
Cargo 3 native gallery support.
*/

.tyh-hero-media gallery-component {
  width: 100% !important;
  height: 100% !important;
  min-height: 620px !important;
  display: block !important;
}


/*
Images inside the hero gallery.
*/

.tyh-hero-media media-item {
  width: 100% !important;
  height: 100% !important;
}

.tyh-hero-media media-item::part(media) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tyh-hero-media .image-gallery img {
  width: 100% !important;
  height: 82vh !important;
  min-height: 620px !important;
  max-height: 980px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}


/* =========================================================
HERO META
========================================================= */

.tyh-hero-info {
  padding: 14px 2px 0 2px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 24px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #77736c;
}

.tyh-hero-info-right {
  text-align: right;
}


/* =========================================================
INTRO
========================================================= */

.tyh-intro {
  width: 100%;
  padding: 105px 24px 120px 24px;
  display: grid;
  grid-template-columns: 0.8fr 2fr 0.8fr;
  gap: 50px;
}

.tyh-intro-label {
  padding-top: 8px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #77736c;
}

.tyh-intro-statement {
  max-width: 1000px;
  font-size: 56px;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tyh-intro-services {
  padding-top: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  color: #77736c;
}


/* =========================================================
WORK HEADER
========================================================= */

.tyh-work-header {
  width: 100%;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #77736c;
}

.tyh-work-header > div:first-child {
  color: #111111;
  font-weight: 600;
}

.tyh-align-right {
  text-align: right;
}


/* =========================================================
HORIZONTAL RULES
========================================================= */

hr {
  margin: 0 24px !important;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  height: 1px;
  background: transparent;
}


/* =========================================================
PROJECT ROW
========================================================= */

hr + [grid-row] {
  width: 100%;
  padding: 18px 24px 20px 24px !important;
  min-height: 165px;
  transition: background 0.25s ease;
}

hr + [grid-row]:hover {
  background: rgba(255, 255, 255, 0.44);
}


/* =========================================================
PROJECT TITLES
========================================================= */

hr + [grid-row] > [grid-col]:nth-child(1) {
  padding-right: 30px !important;
}

hr + [grid-row] > [grid-col]:nth-child(1) b {
  display: block;
  max-width: 270px;
  margin-bottom: 7px;
  font-size: 22px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.tyh-date {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #77736c !important;
}


/* =========================================================
PROJECT DESCRIPTION
========================================================= */

hr + [grid-row] > [grid-col]:nth-child(2) {
  max-width: 480px;
  padding-right: 38px !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.72);
}


/* =========================================================
PROJECT TAGS
========================================================= */

hr + [grid-row] > [grid-col]:nth-child(3) {
  padding-right: 22px !important;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #77736c;
}

hr + [grid-row] > [grid-col]:nth-child(3) a {
  color: #77736c;
}

hr + [grid-row] > [grid-col]:nth-child(3) a:hover {
  color: #111111;
  opacity: 1;
}


/* =========================================================
PROJECT GALLERY PLACEHOLDER
========================================================= */

.tyh-project-gallery-slot {
  width: 100%;
  min-height: 145px;
  background: #efede8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #928f88;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================================================
CARGO PROJECT GALLERIES
========================================================= */

/*
Once you delete "ADD PROJECT GALLERY"
and insert a Cargo gallery in that column,
Cargo owns all images.
*/

hr + [grid-row] > [grid-col]:nth-child(4) .image-gallery {
  width: 100% !important;
}

hr + [grid-row] > [grid-col]:nth-child(4) gallery-component {
  width: 100% !important;
}

hr + [grid-row] > [grid-col]:nth-child(4) media-item {
  width: 100%;
}

hr + [grid-row] > [grid-col]:nth-child(4) img {
  object-fit: cover;
}


/* =========================================================
STUDIO
========================================================= */

.tyh-studio {
  width: 100%;
  margin-top: 110px;
  padding: 35px 24px 130px 24px;
  display: grid;
  grid-template-columns: 0.8fr 3fr;
  gap: 45px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.tyh-studio-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #77736c;
}

.tyh-studio-copy {
  max-width: 1300px;
  font-size: 78px;
  font-weight: 300;
  line-height: 0.91;
  letter-spacing: -0.07em;
}


/* =========================================================
CAPABILITIES
========================================================= */

.tyh-capabilities {
  width: 100%;
  padding: 0 24px;
}

.tyh-capability {
  display: grid;
  grid-template-columns: 0.8fr 3fr;
  gap: 45px;
  padding: 17px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.tyh-capability:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.tyh-capability > div:first-child {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #77736c;
}

.tyh-capability > div:last-child {
  font-size: 48px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}


/* =========================================================
CONTACT
========================================================= */

.tyh-contact {
  width: 100%;
  padding: 160px 24px 65px 24px;
}

.tyh-contact-label {
  margin-bottom: 25px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #77736c;
}

.tyh-contact-title {
  max-width: 1500px;
  font-size: 145px;
  font-weight: 300;
  line-height: 0.75;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.tyh-contact-grid {
  margin-top: 80px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tyh-contact-main {
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}


/* =========================================================
FOOTER
========================================================= */

.tyh-footer {
  width: 100%;
  padding: 17px 24px 30px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #77736c;
}

.tyh-footer > div:last-child {
  text-align: right;
}


/* =========================================================
LAPTOP
========================================================= */

@media (max-width: 1100px) {

  .tyh-header {
    grid-template-columns: 1fr 1fr;
  }

  .tyh-location {
    display: none;
  }

  .tyh-intro {
    grid-template-columns: 1fr 2fr;
  }

  .tyh-intro-statement {
    font-size: 44px;
  }

  .tyh-intro-services {
    grid-column: 2 / 3;
  }

  .tyh-studio-copy {
    font-size: 62px;
  }

  .tyh-contact-title {
    font-size: 105px;
  }

}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 700px) {

  .tyh-header {
    position: relative;
    min-height: 0;
    padding: 14px;
    display: block;
  }

  .tyh-brand {
    font-size: 20px;
  }

  .tyh-nav {
    margin-top: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .tyh-hero {
    padding: 10px 14px 0 14px;
  }

  .tyh-hero-media {
    height: 76vh;
    min-height: 500px;
    border-radius: 12px;
  }

  .tyh-gallery-placeholder {
    min-height: 500px;
  }

  .tyh-hero-media > .image-gallery {
    min-height: 500px !important;
  }

  .tyh-hero-media gallery-component {
    min-height: 500px !important;
  }

  .tyh-hero-media .image-gallery img {
    height: 76vh !important;
    min-height: 500px !important;
  }

  .tyh-hero-info {
    grid-template-columns: 1fr 1fr;
  }

  .tyh-hero-info > div:nth-child(2) {
    display: none;
  }

  .tyh-intro {
    padding: 65px 14px 75px 14px;
    display: block;
  }

  .tyh-intro-label {
    margin-bottom: 28px;
  }

  .tyh-intro-statement {
    font-size: 40px;
  }

  .tyh-intro-services {
    margin-top: 35px;
  }

  .tyh-work-header {
    padding: 18px 14px;
    grid-template-columns: 1fr 1fr;
  }

  .tyh-work-header > div:nth-child(2) {
    display: none;
  }

  hr {
    margin: 0 14px !important;
  }

  hr + [grid-row] {
    display: block !important;
    min-height: 0;
    padding: 18px 14px 40px 14px !important;
  }

  hr + [grid-row] > [grid-col] {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 16px;
  }

  hr + [grid-row] > [grid-col]:nth-child(1) b {
    max-width: none;
    font-size: 27px;
  }

  hr + [grid-row] > [grid-col]:nth-child(2) {
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
  }

  .tyh-project-gallery-slot {
    min-height: 220px;
  }

  .tyh-studio {
    margin-top: 70px;
    padding: 35px 14px 90px 14px;
    display: block;
  }

  .tyh-studio-label {
    margin-bottom: 35px;
  }

  .tyh-studio-copy {
    font-size: 46px;
  }

  .tyh-capabilities {
    padding: 0 14px;
  }

  .tyh-capability {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .tyh-capability > div:last-child {
    font-size: 34px;
  }

  .tyh-contact {
    padding: 110px 14px 65px 14px;
  }

  .tyh-contact-title {
    font-size: 70px;
  }

  .tyh-contact-grid {
    margin-top: 55px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tyh-contact-main {
    font-size: 27px;
  }

  .tyh-footer {
    padding: 17px 14px 30px 14px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tyh-footer > div:last-child {
    text-align: left;
  }

}