/* elizaibarraweb.com · Packing House: grading table, calibration rule, grade stamp */

:root {
  --paper: #f2efe6;
  --ink: #1b1c18;
  --gray: #5c6055;
  --green: #2f6b4f;
  --line: #d9d6c7;
  --panel: #faf7ef;
  --display: 'Darker Grotesque', 'Arial Narrow', sans-serif;
  --text: 'Karla', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.96;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 20;
}
.skip:focus { left: 12px; top: 12px; color: var(--paper); }

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-family: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.main-nav a.btn {
  color: var(--paper);
  background: var(--green);
  border: 1px solid var(--green);
  padding: 9px 15px;
  letter-spacing: 0.1em;
}
.main-nav a.btn:visited { color: var(--paper); }
.main-nav a.btn:hover,
.main-nav a.btn:focus {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* ------------------------------------------------------------------ hero */

.hero { padding: 54px 0 62px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.hero-text { grid-column: 1 / 5; padding-top: 96px; }

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 22px;
}

.hero-title {
  font-size: 68px;
  line-height: 0.96;
  margin: 0 0 24px;
}
.hero-title span { display: block; }

.hero-lead {
  max-width: 28ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
}

.hero-photo {
  grid-column: 5 / 13;
  margin: 0 calc(-32px - (100vw - 1200px) / 2) 0 0;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-rule {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
}

/* ------------------------------------------------------- rule and stamp */

.ruler {
  width: 360px;
  height: 12px;
  border-top: 1px solid var(--ink);
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 24px);
  background-size: 100% 10px, 100% 6px;
  background-repeat: repeat-x, repeat-x;
  background-position: 0 0, 0 0;
}

.ruler-sm {
  width: 180px;
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 36px);
  background-size: 100% 10px, 100% 6px;
}

.ruler-240 { width: 240px; }

.stamp {
  width: 132px;
  height: 64px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-6deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--text);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
}
.stamp b { font-weight: 500; }
.stamp b:nth-child(2) { color: var(--green); }

/* -------------------------------------------------------------- sections */

.section { padding: 54px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding-top: 40px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 30px;
}
.section-num {
  font-family: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gray);
}
.section-num.num-accent { color: var(--green); }
.section-head h2 { font-size: 38px; }
.section-dek {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray);
  max-width: 40ch;
  text-align: right;
}

/* ------------------------------------------------------------- partners */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 176px);
  gap: 14px;
}

.partner-card {
  position: relative;
  width: 176px;
  height: 132px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 8px;
  text-decoration: none;
}
.partner-card:hover { border-color: var(--green); }
.partner-card img {
  width: 122px;
  height: 73px;
  object-fit: contain;
  object-position: center;
}
.partner-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.partner-num {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray);
  line-height: 1;
}
.partner-card:first-child .partner-num { color: var(--green); }

.conveyor {
  margin-top: 12px;
  height: 8px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 24px);
  background-size: 100% 6px;
  background-repeat: repeat-x;
}

/* --------------------------------------------------------------- profile */

.profile { width: 760px; max-width: 100%; }

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  border-bottom: 1px solid var(--line);
}
.profile-row:first-child { border-top: 1px solid var(--line); }

.grade-bar { display: flex; gap: 6px; flex: 0 0 auto; }
.grade-bar i { width: 4px; height: 4px; background: var(--line); display: block; }
.profile-row:first-child .grade-bar i { background: var(--green); }

.profile-label {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.profile-leader {
  flex: 1 1 auto;
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 3px, transparent 3px 7px);
  background-size: 100% 1px;
  background-repeat: repeat-x;
}

.profile-value {
  flex: 0 0 auto;
  font-size: 15px;
  font-family: var(--text);
  color: var(--ink);
  text-align: right;
}

/* ----------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-figure { position: relative; margin: 0; }
.about-figure img {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-figure .stamp {
  position: absolute;
  left: -20px;
  top: 254px;
  background: var(--paper);
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-size: 16px;
}
.about-copy p { max-width: 42ch; }
.about-note {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
  max-width: 60ch;
}

/* ---------------------------------------------------------------- career */

.belt-row { border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.belt-row + .belt-row { margin-top: 44px; }

.belt-item {
  position: relative;
  padding: 14px 16px 0 0;
}
.belt-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.belt-item .year {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}
.belt-item .what {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 170px;
}
.belt-item .what b { font-weight: 500; }
.belt-item .year.year-accent { color: var(--green); }

/* --------------------------------------------------------------- gallery */

.gallery-row { display: flex; gap: 20px; }
.gallery-row-top { align-items: flex-end; }
.gallery-row-bottom { align-items: flex-start; margin-top: 40px; margin-left: 60px; }

.frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  z-index: 2;
}
.frame img { display: block; object-fit: cover; }

.w380 { width: 380px; }
.w380 img { width: 380px; height: 253px; }
.w340 { width: 340px; }
.w340 img { width: 340px; height: 227px; }
.w300 { width: 300px; }
.w300 img { width: 300px; height: 200px; }
.w240 { width: 240px; }
.w240 img { width: 240px; height: 360px; }
.w300sq { width: 300px; }
.w300sq img { width: 300px; height: 300px; }

/* ---------------------------------------------------------------- social */

.social-grid { display: grid; grid-template-columns: repeat(4, 260px); gap: 16px; }
.social-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 14px;
  text-decoration: none;
}
.social-tag:hover { border-color: var(--green); }
.social-platform {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.social-handle { font-size: 13px; color: var(--ink); }
.social-tag:hover .social-handle { color: var(--green); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: 66px;
  border-top: 1px solid var(--line);
  padding: 0 0 38px;
}
.footer-rule { padding-top: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 32px;
  align-items: start;
  padding-top: 26px;
}
.footer-brand .brand-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-brand .brand-line { font-size: 12px; color: var(--gray); }

.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 12px;
}
.language-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  padding: 2px 0;
}
.language-nav a:hover { color: var(--green); text-decoration: underline; }
.language-nav a[aria-current="page"] { color: var(--green); border-bottom: 1px solid var(--green); }
.language-nav span { color: var(--line); }

.footer-legal {
  margin: 0;
  font-size: 12px;
  color: var(--gray);
  text-align: right;
  max-width: 300px;
}
.footer-note {
  margin: 26px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--gray);
  max-width: 92ch;
}

/* ------------------------------------------------------------ inner page */

.page-top { padding: 56px 0 38px; border-bottom: 1px solid var(--line); }
.page-top .kicker { margin-bottom: 18px; }
.page-top h1 { font-size: 76px; margin-bottom: 20px; }
.page-top .page-lead { max-width: 56ch; font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0; }
.page-top .ruler { margin-top: 30px; width: 300px; }

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  padding: 50px 0 10px;
  align-items: start;
}

.prose h2 {
  font-size: 30px;
  margin: 38px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; letter-spacing: 0.02em; }
.prose p { max-width: 66ch; }
.prose ul { margin: 0 0 18px; padding-left: 18px; }
.prose li { margin-bottom: 8px; max-width: 64ch; }

.pull {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 20px;
  margin: 26px 0;
  font-size: 19px;
  line-height: 1.5;
  max-width: 46ch;
}
.pull cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.plate {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 20px 8px;
  margin-bottom: 28px;
}
.plate h2 { font-size: 18px; letter-spacing: 0.08em; margin: 0 0 14px; border: 0; padding: 0; }
.plate dl { margin: 0; }
.plate .row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px dotted var(--line);
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.45;
}
.plate .row:first-of-type { border-top: 0; }
.plate dt {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 3px;
}
.plate dd { margin: 0; color: var(--ink); }

.page-side .stamp { margin: 18px 0 0 6px; }
.fact-note { font-size: 11px; line-height: 1.5; color: var(--gray); margin-top: 10px; }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.tl li:last-child { border-bottom: 1px solid var(--line); }
.tl .when {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
}
.tl .what { font-size: 15px; line-height: 1.55; }

.years { margin: 0; }
.years .yr {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 64px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.years .yr:last-child { border-bottom: 1px solid var(--line); }
.years .y {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.years .bar {
  height: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}
.years .bar span {
  display: block;
  height: 100%;
  background: var(--green);
}
.years .n { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.years .n small { display: block; font-size: 10px; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }

.awards { margin: 0; }
.awards .aw {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
.awards .aw:last-child { border-bottom: 1px solid var(--line); }
.awards .yr { font-family: var(--display); font-weight: 700; font-size: 16px; }
.awards .tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  padding-top: 3px;
}
.awards .tag.win { color: var(--green); font-weight: 500; }

.studios { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.studios li {
  border: 1px solid var(--line);
  padding: 4px 9px;
  font-size: 12px;
  color: var(--ink);
  background: var(--panel);
}

.faq { margin: 0; }
.faq .qa { border-top: 1px solid var(--line); padding: 20px 0; }
.faq .qa:last-child { border-bottom: 1px solid var(--line); }
.faq dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.faq dd { margin: 0; font-size: 15px; line-height: 1.65; max-width: 68ch; }

.inline-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.55;
  max-width: 70ch;
}

/* -------------------------------------------------------------- 404 page */

.nf { padding: 96px 0 40px; }
.nf-code {
  font-family: var(--display);
  font-weight: 700;
  font-size: 120px;
  line-height: 0.9;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.nf h1 { font-size: 44px; margin-bottom: 18px; }
.nf p { max-width: 52ch; }
.nf .ruler { margin: 28px 0; }
.nf a.btn-line {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nf a.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1240px) {
  .hero-photo { margin-right: -32px; }
  .partner-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .partner-card { width: auto; }
  .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social-tag { width: auto; }
}

@media (max-width: 1024px) {
  .hero { padding-top: 40px; }
  .hero-text { grid-column: 1 / 6; padding-top: 72px; }
  .hero-photo { grid-column: 6 / 13; }
  .hero-title { font-size: 56px; }
  .hero-lead { max-width: 30ch; }

  .partner-grid { grid-template-columns: repeat(3, 176px); }
  .partner-card { width: 176px; }

  .about-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .about-figure img { width: 260px; height: 390px; }
  .about-figure .stamp { width: 108px; height: 52px; font-size: 8px; top: 226px; }

  .belt-row { grid-template-columns: repeat(3, 1fr); }
  .belt-item { padding-bottom: 22px; }

  .gallery-row { flex-wrap: wrap; }
  .gallery-row-bottom { margin-left: 0; }

  .page-body { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .page-top h1 { font-size: 60px; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .main-nav { width: 100%; gap: 8px 14px; flex-wrap: wrap; padding-bottom: 2px; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-text { padding-top: 0; order: 1; }
  .hero-photo { order: 2; margin-right: -32px; width: calc(100% + 32px); }
  .hero-rule { order: 3; }
  .hero-title { font-size: 56px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { grid-template-columns: 1fr; gap: 0; }
  .page-body { grid-template-columns: 1fr; }
  .plate { max-width: 420px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { padding: 0 20px; }
  .hero { padding: 28px 0 44px; }
  .hero-photo { margin-right: -20px; width: calc(100% + 20px); }
  .hero-title { font-size: 48px; }
  .hero-lead { max-width: 34ch; }
  .hero-rule .ruler { width: 240px; }
  .section { padding: 40px 0; }
  .section-head { flex-wrap: wrap; gap: 10px 14px; }
  .section-head h2 { font-size: 30px; }
  .section-dek { margin-left: 0; text-align: left; max-width: 100%; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-card { width: auto; height: 128px; }
  .partner-card img { width: 100%; max-width: 122px; height: 66px; }
  .conveyor { display: none; }
  .profile-row { gap: 10px; }
  .profile-value { font-size: 14px; }
  .about-figure img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .about-figure .stamp { position: static; transform: rotate(-6deg); margin-top: 18px; background: transparent; }
  .belt-row { grid-template-columns: 1fr; }
  .belt-row + .belt-row { margin-top: 0; }
  .belt-item { padding: 16px 0 16px 18px; border-top: 1px solid var(--line); }
  .belt-row { border-top: 0; }
  .belt-item::before { top: 22px; width: 6px; height: 6px; }
  .gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-row-top .frame:nth-child(3) { grid-column: 1 / -1; }
  .gallery-row-bottom { margin-top: 12px; }
  .frame, .w380, .w340, .w300, .w240, .w300sq { width: 100%; }
  .frame img, .w380 img, .w340 img, .w300 img, .w240 img, .w300sq img { width: 100%; height: auto; }
  .social-grid { grid-template-columns: 1fr; }
  .social-tag { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-legal { text-align: left; white-space: normal; }
  .page-top { padding: 36px 0 28px; }
  .page-top h1 { font-size: 44px; }
  .page-top .page-lead { font-size: 17px; }
  .tl li { grid-template-columns: 1fr; gap: 4px; }
  .years .yr { grid-template-columns: 60px minmax(0, 1fr) 48px; gap: 10px; }
  .awards .aw { grid-template-columns: 52px minmax(0, 1fr); }
  .awards .tag { grid-column: 2; }
  .nf-code { font-size: 84px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
