/* ==========================================================================
   v6: the hero stays, everything else gets calmer and more personal.
   One idea carries the page: things step out of a slanted frame,
   the way Obaida does in the hero.
   ========================================================================== */

/* ---------- Work: projects step out of the frame ---------- */
.work .lead, .help .lead { max-width: 18ch; }
.pieces { display: grid; gap: clamp(72px, 10vw, 150px); margin-top: clamp(40px, 5vw, 76px); }
.piece {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: center;
}
@media (min-width: 901px) {
  .piece:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .piece:nth-child(even) .piece__visual { order: 2; }
}

.piece__visual { position: relative; display: block; aspect-ratio: 16 / 11; }
.frame { position: absolute; inset: 0 5% 7% 5%; width: 90%; height: 93%; overflow: visible; }
.frame__fill { fill: var(--c, var(--green)); }
.frame__line {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
/* The outline sits a little off, like a print that didn't line up */
.frame--line { transform: translate(9px, -9px); }
.piece__desk {
  position: absolute;
  left: 2%;
  top: 17%;
  width: 78%;
  height: auto;
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow: 0 30px 46px -30px rgba(35, 31, 32, 0.65);
}
.piece__phonewrap { position: absolute; right: 4%; bottom: 0; width: 19.5%; }
.piece__phone {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--ink);
  border-radius: 13px;
  box-shadow: 0 26px 36px -22px rgba(35, 31, 32, 0.7);
}
/* A wider search panel instead of a phone */
.piece__panelwrap { position: absolute; right: 2%; bottom: 0; width: 37%; }
.piece__panel {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow: 0 26px 36px -22px rgba(35, 31, 32, 0.7);
}
/* Printed cards: they use rotate, so the entrance animation can use transform */
.piece__card { position: absolute; height: auto; box-shadow: 0 26px 40px -20px rgba(35, 31, 32, 0.75); }
.piece__card--1 { left: 13%; top: 27%; width: 28%; rotate: -7deg; }
.piece__card--2 { right: 12%; top: 8%; width: 28%; rotate: 6deg; }
.piece__card--3 { left: 28.5%; top: 7%; width: 44%; }
/* A project without its own screens: the cover image, cut to the same frame */
.piece__cover {
  position: absolute;
  inset: 0 5% 7% 5%;
  width: 90%;
  height: 93%;
  object-fit: cover;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

.piece__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -0.015em; color: var(--night); text-wrap: balance; }
.piece__name a { transition: color 0.3s var(--ease); }
.piece__name a:hover { color: var(--red); }
.piece__note { max-width: 36ch; margin-top: 18px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; text-wrap: pretty; }
.piece__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 26px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 0.3s var(--ease); }
.textlink:hover { color: var(--red-text); }

/* ---------- Style range: the posters and one line, nothing else ---------- */
@media (min-width: 901px) { .styles { --ph: clamp(360px, calc(100svh - 322px), 660px); } }
.styles .styles__intro { margin-top: 0; }
.styles .pcard__meta { font-family: var(--f-body); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.styles .styles__foot { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; }

/* ---------- What I can help you with ---------- */
.help .svc-index { border-top: 1px solid var(--ink); }
.help .svx__title { text-transform: none; }
.help .svx__text { max-width: 42ch; font-size: clamp(17px, 1.3vw, 19px); }
@media (min-width: 901px) {
  .help .svx { grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); align-items: center; }
  .help .svx__title { grid-column: 1; grid-row: 1; }
  .help .svx__text { grid-column: 2; grid-row: 1; align-self: center; }
}

/* ---------- About: one story and four facts ---------- */
.about .about__grid { margin-top: 0; }
.about .about__lead { font-weight: 400; }
.about .about__years { text-transform: none; letter-spacing: 0; font-size: 18px; }
.about .facts { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
.about .facts > div { padding-block: 14px; }
.about .facts dt { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; }
.about .facts dd { margin-top: 2px; font-family: var(--f-body); font-weight: 600; font-size: 17px; letter-spacing: 0; line-height: 1.4; }

/* ---------- Contact ---------- */
.contact .contact__big { text-transform: none; line-height: 0.95; }
.contact .contact__left { align-items: start; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact .btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.contact .btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.contact .contact__list .label { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; }
.contact .contact__list a::before, .contact .contact__list div::before { display: none; }
.contact .contact__list a, .contact .contact__list div { grid-template-columns: 110px minmax(0, 1fr) 18px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .piece { grid-template-columns: minmax(0, 1fr); }
  .frame--line { transform: translate(6px, -6px); }
  .piece__phone { border-width: 3px; border-radius: 10px; }
  .contact__actions { width: 100%; }
}
@media (max-width: 520px) {
  .contact .contact__list a, .contact .contact__list div { grid-template-columns: minmax(0, 1fr) 18px; }
  .contact .contact__list .label { grid-column: 1; grid-row: 1; }
  .contact .contact__list b { grid-column: 1; grid-row: 2; }
  .contact .contact__list svg { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Project page: the same frame as on the front page ---------- */
.pvisual { width: min(100%, 1040px); margin-inline: auto; }

/* ---------- Type: Archivo Black for headings and Inter for text, as on the infographic.
   ---------- */
.help .svx__title { font-family: var(--f-display); font-size: clamp(32px, 4.3vw, 70px); line-height: 1; letter-spacing: -0.02em; }
.contact .contact__big { font-family: var(--f-display); font-size: clamp(58px, 13.6vw, 224px); letter-spacing: -0.035em; }
.phead .phead__title { font-family: var(--f-display); font-size: clamp(38px, 5.6vw, 90px); line-height: 1; letter-spacing: -0.02em; text-transform: none; }
.pcontent h2, .pcontent h3 { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 42px); letter-spacing: -0.015em; }
.contact .contact__big { margin-bottom: 0.1em; }

/* ---------- Phones and tablets: each service is a title with its text below ---------- */
@media (max-width: 900px) {
  .help .svx { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .help .svx__title, .help .svx__text { grid-column: 1; grid-row: auto; }
}

/* ---------- All projects and the next project link ---------- */
.parchive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parchive .slot__frame { aspect-ratio: 16 / 10; }
.parchive .slot__title, .pnext .pnext__title { text-transform: none; }
@media (max-width: 520px) { .parchive { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   v6.2
   ========================================================================== */

/* ---------- Hero: one font, less text and more space between each part ---------- */
.hero .hero__copy { width: min(100%, 520px); padding-bottom: clamp(44px, 8vh, 84px); }
.hero .hero__title { font-family: var(--f-display); font-size: clamp(56px, 6.7vw, 104px); line-height: 0.95; letter-spacing: -0.04em; }
.hero .hero__tag { margin-top: clamp(22px, 3vh, 32px); font-size: 20px; }
.hero .hero__intro { max-width: 32ch; margin-top: 12px; font-size: 18px; }
.hero .hero__actions { margin-top: clamp(28px, 4vh, 40px); }
.hero .hero__sign { border-bottom: 0; line-height: 1; }
.hero .hero__sign--copy { margin-top: 30px; }
.hero .hero__sign--art { display: none; }
.hero .hero__strip-in .motion-toggle { margin-left: auto; }
@media (min-width: 1280px) {
  .hero .hero__sign--copy { display: none; }
  .hero .hero__sign--art { display: block; position: absolute; z-index: 2; right: 0; bottom: clamp(40px, 8vh, 80px); margin: 0; font-size: clamp(74px, 6.6vw, 104px); rotate: -7deg; }
}
@media (max-width: 820px) {
  .hero .hero__title { font-size: clamp(50px, 15.4vw, 112px); }
  .hero .hero__copy { width: 100%; padding-bottom: 12px; }
  .hero .hero__intro { max-width: 36ch; }
}

/* ---------- Many styles: each piece is one image ---------- */
.styles .styles__intro { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.styles .styles__text { font-size: clamp(17px, 1.3vw, 19px); }
.styles .poster { display: block; object-fit: cover; border-radius: 4px; }
@media (max-width: 900px) { .styles .styles__intro { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- What I do: outlined means not learned yet ---------- */
.help .svx--next .svx__title { color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.help .svx--next:hover .svx__title { color: transparent; }
@media (forced-colors: active) { .help .svx--next .svx__title { color: CanvasText; -webkit-text-stroke: 0; } }

/* ---------- Off the clock ---------- */
.off { background: var(--ink); color: var(--cream); }
.off__head { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.2; }
.off__jp { color: #f08a76; font-family: var(--f-jp); font-weight: 700; font-size: 0.8em; }
.off__list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.5em; margin: clamp(24px, 3vw, 42px) 0 0; padding: 0; list-style: none; font-family: var(--f-display); font-size: clamp(33px, 5vw, 80px); line-height: 1.16; letter-spacing: -0.025em; }
.off__list .is-love span { color: #f08a76; }
.off__list small { margin-left: 0.1em; font-family: var(--f-body); font-style: italic; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: 0; white-space: nowrap; color: #cfc8bd; }

/* Room for the bottom of the g, which the title animation used to cut off */
.hero .hero__title .ln { padding-bottom: 0.24em; margin-bottom: -0.24em; }
/* On phones and tablets the title starts below the outlined name */
@media (max-width: 820px) { .hero .hero__copy { padding-top: calc(16vw + 78px); } }
/* Six services fit on one screen */
@media (min-width: 901px) {
  .help .svx { padding-block: clamp(12px, 1.9vh, 22px); }
  .help .svx__title { font-size: clamp(30px, 3.5vw, 56px); }
}
