.home {
  --paper: #f7f3ec;
  --ink: #15231f;
  --accent: #a6371b;
  --accent-dark: #812613;
  --line: #dbd0c2;
  --grey: #4d5b51;
  --white: #fffaf3;
}
.home .site-header > .button { border-color: #b29c8a; }
.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 4.6vw, 5rem);
  padding-block: clamp(1.75rem, 4.8vw, 4.5rem);
}
.home-hero h1 {
  font-size: clamp(4rem, 7.2vw, 7rem);
  max-width: 10ch;
  line-height: .91;
  text-wrap: initial;
}
.home-hero h1 em {
  display: block;
  font: italic 400 1.12em/.83 var(--serif);
  letter-spacing: -.045em;
  margin-top: .06em;
}
.home-hero .lede { margin-block: 1.65rem 1.45rem; max-width: 30rem; }
.home-hero .eyebrow { margin-bottom: 1.25rem; }
.home-device-stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1.06;
  isolation: isolate;
  border-radius: .65rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 89% 3%, #f4efdc, transparent 60%),
    linear-gradient(145deg, #cadcce, #aabfb1);
}
.home-device-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#48624c14 1px, transparent 1px),
    linear-gradient(90deg, #48624c14 1px, transparent 1px);
  background-size: 6% 6%;
  mask-image: linear-gradient(145deg, #000, transparent 70%);
}
.hero-browser, .hero-phone {
  position: absolute;
  overflow: hidden;
  color: #24352c;
  background: #faf7ed;
  font-family: var(--heading);
}
.hero-browser {
  width: 76%;
  top: 12%;
  left: 6.5%;
  border: 1px solid #637b69;
  border-radius: 1.8cqw;
  box-shadow: 0 3cqw 7cqw #243c2c43;
}
.hero-browser-bar {
  height: 4cqw;
  min-height: 13px;
  display: flex;
  align-items: center;
  gap: .75cqw;
  padding-inline: 2cqw;
  background: #ebede5;
  border-bottom: 1px solid #d9dfd0;
}
.hero-browser-bar i { width: .72cqw; height: .72cqw; background: #84968a; border-radius: 50%; }
.hero-browser-bar span { flex: 0 1 38%; height: 42%; margin-inline: auto; border-radius: .65cqw; background: #dce2d6; }
.hero-site-nav, .hero-screen-footer {
  display: flex;
  gap: .45rem;
  justify-content: space-between;
  align-items: center;
  padding: 2.05cqw 3.3cqw;
  color: #3d5748;
  font-size: 1.72cqw;
  line-height: 1.25;
}
.hero-site-nav b { font-size: 1.95cqw; letter-spacing: .07em; }
.hero-site-nav { border-bottom: 1px solid #dbe0d1; }
.hero-screen-copy { padding: 2.4cqw 3.3cqw 2.8cqw; }
.hero-screen-copy span { display: block; margin-bottom: .9cqw; color: #4b6356; font-size: 1.65cqw; }
.hero-screen-copy strong {
  display: block;
  font: 400 7.1cqw/.87 var(--serif);
  letter-spacing: -.024em;
}
.hero-screen-image { display: block; width: 100%; height: 31cqw; object-fit: cover; object-position: 58% 50%; }
.hero-screen-footer { border-top: 1px solid #dbe0d1; }
.hero-screen-footer b { color: #24352c; }
.hero-phone {
  width: 29%;
  right: 5%;
  bottom: 7%;
  border: .8cqw solid #1d2d25;
  border-radius: 3.4cqw;
  padding-top: 1.55cqw;
  padding-bottom: 1.2cqw;
  box-shadow: 0 2.8cqw 6.5cqw #182c214d;
}
.hero-phone-camera {
  width: 6.2cqw;
  height: 1.1cqw;
  border-radius: 1cqw;
  background: #1d2d25;
  margin: .1cqw auto .55cqw;
}
.hero-phone .hero-site-nav, .hero-phone .hero-screen-footer { padding: 1.3cqw 1.6cqw; }
.hero-phone .hero-site-nav b { font-size: 1.58cqw; }
.hero-menu-lines { width: 2.5cqw; height: .9cqw; border-block: 1px solid currentColor; }
.hero-phone .hero-screen-copy { padding: 2.08cqw 1.6cqw; }
.hero-phone .hero-screen-copy span { font-size: 1.4cqw; margin-bottom: .65cqw; }
.hero-phone .hero-screen-copy strong { font-size: 4.3cqw; }
.hero-phone .hero-screen-image { height: 26cqw; object-position: 64% center; }
.hero-phone .hero-screen-footer { font-size: 1.45cqw; }
.home-services {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.2rem, 5vw, 4.8rem) clamp(2.75rem, 5.8vw, 5.7rem);
  scroll-margin-block-start: 1rem;
}
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem 2rem; margin-bottom: 1.45rem; }
.home-section-head p { margin-top: .65rem; }
.home-text-link { font-weight: 700; color: var(--accent-dark); text-underline-offset: .3em; }
.home-text-link:hover { color: var(--ink); }
.home-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.home-service-grid a {
  display: block;
  padding: clamp(1.15rem, 2.8vw, 2.1rem);
  min-height: 13rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: .55rem;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.home-service-grid a:hover { border-color: var(--accent); background: #fff3e9; }
.home-service-grid h3 { margin-block: .85rem .5rem; font-size: clamp(1.35rem, 2.5vw, 2.05rem); }
.home-service-grid p { color: var(--grey); }
.service-shape {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  place-content: center;
  gap: .22rem;
  border-radius: .45rem;
  background: #f7dec9;
  color: var(--accent-dark);
}
.service-shape i { width: 1.34rem; height: .26rem; background: currentColor; border-radius: 2px; }
.shape-page i:first-child { height: .55rem; }
.shape-catalogue { grid-template-columns: repeat(2, auto); background: #dbe7d9; color: #235843; }
.shape-catalogue i { width: .53rem; height: .53rem; }
.shape-workflow { background: #eee1cd; color: #6d542c; }
.shape-workflow i:first-child { width: .58rem; }
.shape-workflow i:nth-child(2) { width: .95rem; }
.home-library { padding-block: clamp(2.65rem, 5vw, 5rem); background: #1b2a24; color: #fff5e9; }
.home-library .home-section-head p { color: #d5dfd3; }
.home-library .button { color: #fff5e9; border-color: #a0ada0; }
.home-library .button:hover { color: var(--ink); background: #fff5e9; }
.home-library :focus-visible { outline-color: #ffc8aa; }
.home-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.home-library-grid a { display: block; overflow: hidden; border: 1px solid #56665b; border-radius: .5rem; text-decoration: none; background: #23372e; }
.home-library-grid img { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.home-library-grid span { display: block; padding: .6rem .8rem; font-weight: 700; }
.home-library-grid a:hover span { color: #ffc8aa; }
.home-profile { display: grid; grid-template-columns: minmax(13rem, .7fr) 1fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.home-profile .portrait { max-width: 20rem; width: 100%; justify-self: center; }
.home-profile h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.home-profile .lede { margin-block: 1rem 1.2rem; }
.home-contact { display: flex; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding: clamp(1.3rem, 4vw, 3rem); background: #f3ddce; border-radius: .65rem; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.home-contact h2 { font-size: clamp(1.8rem, 3.8vw, 3.25rem); }
.home-contact p { margin-top: .6rem; }
.home-contact .button { flex-shrink: 0; }
@media (max-width: 1000px) {
  .home-hero { gap: 1.7rem; }
  .home-hero h1 { font-size: clamp(3.35rem, 7.75vw, 5.1rem); }
}
@media (max-width: 720px) {
  .home-hero, .home-profile { grid-template-columns: 1fr; }
  .home-hero { gap: 1.55rem; }
  .home-hero h1 { font-size: clamp(3.1rem, 11.6vw, 5.2rem); }
  .home-hero .lede { margin-block: 1.15rem; }
  .home-device-stage { aspect-ratio: 1.09; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-service-grid a { min-height: 0; }
  .home-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-profile .portrait { width: min(85%, 330px); grid-row: 2; }
  .home-section-head, .home-contact { align-items: start; flex-direction: column; }
}
@media (max-width: 460px) {
  .home-library-grid { grid-template-columns: 1fr; }
}
