/* =============================================================
   FRCI | Web Design Portfolio page
   Loaded only on the Web Design Portfolio template.
   Everything is scoped under .ws-page so it can't affect the
   site header, footer or any other page.
   ============================================================= */

.ws-page {
  --ws-ink: #10141c;
  --ws-teal: #15ab99;
  --ws-teal-dark: #108f80;
  --ws-grey: #b6b8ba;
  --ws-line: #dcdcdc;
  --ws-white: #ffffff;
  --ws-radius: 6px;
  --ws-gutter: clamp(16px, 5vw, 97px);

  font-family: "Inter Tight", "Segoe UI", Arial, sans-serif;
  color: var(--ws-ink);
  -webkit-font-smoothing: antialiased;
}

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

.ws-page img { display: block; max-width: 100%; height: auto; }
.ws-page a { color: inherit; text-decoration: none; }

.ws-container {
  width: 100%;
  max-width: calc(1726px + 2 * var(--ws-gutter));
  margin: 0 auto;
  padding: 0 var(--ws-gutter);
}

.ws-sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- Buttons ---------- */
.ws-page .ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  height: 51px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--ws-radius);
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.ws-btn__icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ws-page .ws-btn--dark { background: var(--ws-ink); color: var(--ws-white); }
.ws-page .ws-btn--dark:hover { background: var(--ws-teal); }
.ws-page .ws-btn--outline { background: transparent; color: var(--ws-teal); border-color: var(--ws-teal); }
.ws-page .ws-btn--outline:hover { background: var(--ws-teal); color: var(--ws-white); }

/* ---------- Section 1: Hero ---------- */
.ws-hero { padding: 69px 0 90px; }
.ws-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 752fr) minmax(0, 757fr);
  gap: 122px;
  align-items: center;
  max-width: calc(1631px + 2 * var(--ws-gutter));
}
.ws-hero__media img {
  width: 100%;
  aspect-ratio: 752 / 600;
  object-fit: cover;
  border-radius: var(--ws-radius);
}
.ws-page .ws-eyebrow {
  margin: 0 0 98px;
  font-size: 15px; color: var(--ws-grey);
}
.ws-page .ws-hero__title {
  margin: 0;
  font-size: clamp(32px, 2.25vw, 43px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ws-ink);
}
.ws-page .ws-hero__subtitle {
  margin: 6px 0 80px;
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 500; color: var(--ws-teal);
}
.ws-hero__text {
  margin: 0 0 42px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ws-grey);
}
.ws-page .ws-hero__text p {
  margin: 0 0 1em; color: inherit; font-size: inherit; line-height: inherit;
}
.ws-page .ws-hero__text p:last-child { margin-bottom: 0; }
.ws-page .ws-hero__text strong,
.ws-page .ws-hero__text b { color: var(--ws-ink); font-weight: 500; }
.ws-hero__buttons { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Section 2: Portfolio ---------- */
.ws-portfolio { scroll-margin-top: 24px; }
.ws-portfolio > .ws-container {
  position: relative;
  padding-top: 112px;
  padding-bottom: 250px;
}
/* divider sits inside the gutter, not edge to edge */
.ws-portfolio > .ws-container::before {
  content: ""; position: absolute; top: 0;
  left: var(--ws-gutter); right: var(--ws-gutter);
  height: 1px; background: var(--ws-line);
}

.ws-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 54px;
}
.ws-project__media {
  overflow: hidden;
  border-radius: var(--ws-radius);
  background: var(--ws-ink);
}
.ws-project__media img {
  width: 100%;
  aspect-ratio: 557 / 419;
  object-fit: cover;
  transition: transform .5s ease;
}
.ws-project:hover .ws-project__media img,
.ws-project:focus-within .ws-project__media img { transform: scale(1.04); }

.ws-project__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
  font-size: 17px;
}
.ws-page .ws-project__name {
  margin: 0; font-size: inherit; font-weight: 500; line-height: 1.3; color: var(--ws-ink);
}
.ws-page .ws-project__visit {
  font-weight: 500; text-transform: uppercase;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s, color .2s;
}
.ws-project:hover .ws-project__visit,
.ws-project:focus-within .ws-project__visit { opacity: 1; transform: none; }
.ws-page .ws-project__visit:hover { color: var(--ws-teal); }
.ws-project__tag { justify-self: end; text-align: right; color: var(--ws-grey); }
.ws-page .ws-project__case {
  display: inline-block; margin-top: 10px;
  font-size: 15px; font-weight: 500; color: var(--ws-teal);
}
.ws-page .ws-project__case:hover { text-decoration: underline; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1400px) {
  .ws-hero__inner { gap: 64px; }
  .ws-page .ws-eyebrow { margin-bottom: 48px; }
  .ws-page .ws-hero__subtitle { margin-bottom: 40px; }
}

@media (max-width: 1080px) {
  .ws-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .ws-page .ws-eyebrow { margin-bottom: 24px; }
  .ws-portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-portfolio > .ws-container { padding-top: 72px; padding-bottom: 120px; }
}

@media (max-width: 680px) {
  .ws-hero { padding: 24px 0 56px; }
  .ws-page .ws-hero__subtitle { margin-bottom: 24px; }
  .ws-hero__buttons { flex-direction: column; gap: 12px; }
  .ws-page .ws-hero__buttons .ws-btn { justify-content: center; }
  .ws-portfolio__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .ws-project__meta { font-size: 15px; grid-template-columns: 1fr auto; }
  .ws-page .ws-project__visit { display: none; }
  .ws-portfolio > .ws-container { padding-bottom: 80px; }
}

/* touch screens have no hover: keep "Visit website" visible */
@media (hover: none) and (min-width: 681px) {
  .ws-page .ws-project__visit { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-page * { transition: none !important; }
}

        