/* Page layouts and responsive breakpoints */
.hero {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .container {
  position: relative;
  min-height: 545px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.hero-copy {
  padding-block: 60px;
  position: relative;
  z-index: 3;
  padding-right: 30px;
}
.hero-copy h1 {
  max-width: 590px;
  font-size: clamp(34px, 3.4vw, 50px);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-copy p {
  font-size: 17px;
  max-width: 460px;
  color: #cbd0e5;
  line-height: 1.9;
  margin-top: 25px;
}
.hero-copy .button-row {
  margin-top: 33px;
}
.hero-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  color: #d2d7e9;
}
.hero-portrait {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: calc(50vw + 15px);
  max-width: 1200px;
  background: #ded1f6;
  overflow: hidden;
}
.hero-portrait img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, #00093c25, transparent);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#27aae13d 0.7px, transparent 0.7px);
  background-size: 19px 19px;
  z-index: -1;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 60%);
}
.geo {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}
.geo-circle {
  width: 115px;
  height: 115px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  top: 40px;
  left: calc(52% - 58px);
}
.geo-cross {
  width: 65px;
  height: 65px;
  top: 75px;
  right: 5%;
  border: 1px solid var(--orange);
  transform: rotate(45deg);
  clip-path: polygon(
    0 30%,
    30% 30%,
    30% 0,
    70% 0,
    70% 30%,
    100% 30%,
    100% 70%,
    70% 70%,
    70% 100%,
    30% 100%,
    30% 70%,
    0 70%
  );
  background: linear-gradient(135deg, #f7941d70, #27aae180);
}
.geo-line {
  left: 20px;
  bottom: 0;
  width: 160px;
  height: 80px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--orange);
  transform: skew(-40deg);
}
.hero-director-tag {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: calc(52% + 24px);
  font-size: 12px;
  color: var(--navy);
  background: #ffffffbd;
  backdrop-filter: blur(12px);
  border-radius: 7px;
  padding: 10px 15px;
}
.hero-director-tag strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}
.intro-strip {
  padding-block: 27px;
  border-bottom: 1px solid var(--line);
}
.intro-strip .container {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.intro-strip .intro-tag {
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
}
.intro-strip .skill-pill {
  display: flex;
  align-items: center;
  gap: 9px;
}
.skill-pill span {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
}
.home-services {
  padding-top: 78px;
}
.service-bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 20px;
}
.service-bento .service-card:first-child {
  grid-row: span 2;
  background: var(--blue);
  padding: 30px;
}
.service-bento .service-card:first-child h3 {
  font-size: 27px;
}
.service-bento .service-card:first-child .service-art {
  width: 90%;
  height: 210px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: auto;
}
.service-bento .service-card {
  min-height: 0;
}
.service-bento .service-card:last-child {
  grid-column: span 2;
}
.service-bento .service-card:last-child .service-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}
.home-works {
  padding-top: 5px;
}
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px 28px;
}
.studio-section {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.studio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(#27aae13b 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.studio-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.studio-grid h2 {
  font-size: clamp(28px, 3.5vw, 43px);
}
.studio-grid p {
  color: #b9c2dd;
  font-size: 17px;
  margin-top: 25px;
  line-height: 1.9;
}
.studio-grid .text-link {
  margin-top: 30px;
}
.studio-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.studio-value {
  border-top: 1px solid #ffffff30;
  padding-top: 22px;
}
.studio-value .value-number {
  font-size: 32px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: -0.05em;
}
.studio-value h3 {
  font-size: 17px;
  margin-top: 13px;
}
.studio-value p {
  font-size: 14px;
  margin-top: 10px;
}
.director-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}
.director-image {
  border-radius: var(--radius);
  aspect-ratio: 1.25;
  object-fit: cover;
  object-position: 60% center;
}
.director-copy p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}
.director-sign {
  margin-top: 28px;
  font-weight: 600;
  font-size: 17px;
}
.director-sign small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-top: 6px;
}
.portfolio-controls {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 34px;
}
.filter-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.filter-btn {
  background: white;
  border: 1px solid var(--line);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  transition:
    background 0.25s,
    color 0.25s;
}
.filter-btn:hover {
  border-color: var(--orange);
}
.filter-btn.is-active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.portfolio-search {
  min-width: 200px;
  max-width: 250px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 14px;
  background: white;
}
.portfolio-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.detail-hero {
  background: var(--navy);
  color: white;
  overflow: hidden;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 65px;
  align-items: center;
  padding-block: 50px 65px;
}
.detail-grid p {
  margin: 24px 0;
  color: #cbd0e2;
  font-size: 17px;
}
.detail-grid .tags {
  margin-block: 25px;
}
.detail-grid .tag {
  border-color: #ffffff30;
}
.detail-art {
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 20px;
  width: 100%;
}
.detail-project-cover {
  border-radius: 20px;
  padding: 25px;
  background: var(--lilac);
}
.detail-project-cover .browser-mock {
  aspect-ratio: 1.5;
  transform: rotate(-3deg);
  height: auto;
}
.detail-project-cover img {
  height: 100%;
  aspect-ratio: 1.55;
}
.detail-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 55px;
}
.detail-aside {
  align-self: start;
  position: sticky;
  top: 25px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 25px;
  font-size: 15px;
}
.detail-aside h3 {
  font-size: 17px;
  margin-bottom: 18px;
}
.detail-aside a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.detail-aside a:hover {
  color: var(--orange);
}
.detail-section {
  margin-bottom: 55px;
}
.detail-section h2 {
  margin-bottom: 22px;
}
.detail-section p {
  color: var(--muted);
  margin-bottom: 18px;
}
.check-list {
  display: grid;
  gap: 15px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  color: var(--muted);
}
.check-list li::before {
  content: '↗';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
}
.gallery {
  display: grid;
  gap: 28px;
}
.gallery figure {
  margin: 0;
  padding: 24px;
  background: var(--blue);
  border-radius: var(--radius);
}
.gallery img {
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 10px 30px #00093c15;
}
.gallery figcaption {
  font-size: 14px;
  margin-top: 15px;
  color: var(--muted);
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 35px;
}
.contact-channel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 16px;
}
.contact-channel img {
  width: 31px;
  height: 31px;
}
.contact-channel:hover {
  border-color: var(--cyan);
}
.contacts-grid .cta-box {
  display: block;
  padding: 30px;
}
.error-page {
  padding: 90px 0;
  text-align: center;
}
.error-number {
  font-size: clamp(100px, 25vw, 260px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.1em;
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
}
.error-page h1 {
  margin: 30px 0 20px;
}
.error-page p {
  max-width: 510px;
  margin: 0 auto 30px;
}
.legal-note {
  padding: 20px;
  border-left: 3px solid var(--orange);
  background: white;
  margin-top: 30px;
  font-size: 16px;
  color: var(--muted);
}
@media (min-width: 1800px) {
  .hero-copy h1 {
    font-size: 52px;
  }
  .hero .container {
    min-height: 570px;
  }
}
@media (max-width: 1020px) {
  .hero .container {
    min-height: 510px;
  }
  .hero-copy h1 {
    font-size: 37px;
  }
  .hero-copy .btn {
    font-size: 14px;
    padding: 13px 15px;
    gap: 13px;
  }
  .studio-grid {
    gap: 45px;
  }
  .service-bento {
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-rows: 245px 245px;
  }
  .service-bento .service-card {
    padding: 22px;
  }
  .service-bento .service-card:last-child .service-body {
    gap: 20px;
  }
  .detail-body {
    grid-template-columns: 190px 1fr;
    gap: 35px;
  }
  .detail-grid {
    gap: 35px;
  }
  .contacts-grid {
    gap: 35px;
  }
}
@media (max-width: 800px) {
  .hero .container {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 48px 0 35px;
    max-width: 560px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-portrait {
    position: relative;
    left: auto;
    width: calc(100% + 48px);
    height: 420px;
    margin-left: -24px;
  }
  .hero-portrait img {
    object-position: center 55%;
  }
  .hero-director-tag {
    left: 0;
    bottom: 20px;
  }
  .geo-circle {
    top: 280px;
    left: auto;
    right: -30px;
  }
  .hero-grid {
    mask-image: linear-gradient(#000 0%, #000 45%, transparent 65%);
  }
  .geo-cross {
    top: auto;
    bottom: 45px;
    right: 20px;
  }
  .intro-strip .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 25px;
  }
  .intro-strip .intro-tag {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
  }
  .service-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .service-bento .service-card:first-child {
    grid-row: span 2;
  }
  .service-bento .service-card:last-child {
    grid-column: 1/-1;
  }
  .service-bento .service-card {
    min-height: 230px;
  }
  .service-bento .service-card:first-child .service-art {
    height: 240px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .director-grid {
    gap: 35px;
  }
  .director-copy p {
    font-size: 15px;
  }
  .portfolio-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .portfolio-search {
    max-width: none;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .detail-grid h1 {
    font-size: 34px;
  }
  .detail-body {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    display: none;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .detail-project-cover {
    padding: 15px;
  }
  .works-grid {
    gap: 25px 20px;
  }
}
@media (max-width: 540px) {
  .hero-copy h1 {
    font-size: 33px;
  }
  .hero-copy {
    padding-block: 38px 30px;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .hero-copy .button-row {
    margin-top: 25px;
    gap: 10px;
  }
  .hero-copy .btn {
    min-height: 48px;
  }
  .hero-portrait {
    height: 320px;
    width: calc(100% + 32px);
    margin-left: -16px;
  }
  .hero-portrait img {
    object-position: 62% center;
  }
  .hero-director-tag {
    font-size: 11px;
    max-width: 210px;
    bottom: 15px;
  }
  .hero-director-tag strong {
    font-size: 13px;
  }
  .hero-copy .eyebrow {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .geo-circle {
    width: 75px;
    height: 75px;
    top: 300px;
    right: -27px;
  }
  .geo-cross {
    width: 45px;
    height: 45px;
    bottom: 50px;
  }
  .intro-strip {
    padding-block: 22px;
  }
  .intro-strip .container {
    font-size: 12px;
    gap: 9px 16px;
  }
  .home-services {
    padding-top: 48px;
  }
  .service-bento {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .service-bento .service-card:first-child,
  .service-bento .service-card:last-child {
    grid-column: auto;
    grid-row: auto;
  }
  .service-bento .service-card:first-child {
    min-height: 330px;
  }
  .service-bento .service-card:first-child .service-art {
    height: 150px;
    width: 65%;
    position: absolute;
    right: -10px;
    bottom: 20px;
  }
  .service-bento .service-card:first-child p {
    max-width: 200px;
  }
  .service-bento .service-card:first-child .card-arrow {
    width: 160px;
  }
  .service-bento .service-card {
    min-height: 220px;
    padding: 25px;
  }
  .service-bento .service-card:last-child .service-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-works {
    padding-top: 0;
  }
  .studio-values {
    gap: 25px 18px;
  }
  .studio-value .value-number {
    font-size: 29px;
  }
  .director-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .director-image {
    aspect-ratio: 1.4;
  }
  .director-copy p {
    font-size: 16px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    padding-block: 25px 35px;
  }
  .detail-grid h1 {
    font-size: 33px;
  }
  .detail-grid p {
    font-size: 16px;
    margin: 18px 0;
  }
  .detail-art {
    max-height: 280px;
    object-fit: contain;
    background: var(--paper);
  }
  .filter-btn {
    font-size: 13px;
    padding: 9px 12px;
  }
  .gallery figure {
    padding: 15px;
  }
  .contacts-grid {
    gap: 30px;
  }
  .contact-channels {
    gap: 10px;
  }
  .contact-channel {
    padding: 15px 10px;
    gap: 8px;
    font-size: 14px;
  }
  .contact-channel img {
    width: 24px;
    height: 24px;
  }
  .detail-section {
    margin-bottom: 35px;
  }
  .check-list li {
    font-size: 16px;
  }
}
