/* Ifland Visuals — static site */

:root {
  --bg: #ffffff;
  --bg-dark: #0b0c10;
  --bg-ink: #111318;
  --bg-muted: #f4f5f7;
  --text: #1a1c22;
  --text-muted: #5c6370;
  --text-on-dark: #ffffff;
  --text-soft-dark: rgba(255, 255, 255, 0.78);
  --accent: #2f6fed;
  --accent-hover: #1f56c7;
  --border: rgba(17, 19, 24, 0.08);
  --header-h: 72px;
  --max: 1120px;
  --font: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s var(--ease);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: grid;
  align-items: end;
  color: var(--text-on-dark);
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 16, 0.35) 0%,
    rgba(11, 12, 16, 0.72) 55%,
    rgba(11, 12, 16, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 820px;
  animation: rise 0.9s var(--ease) both;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft-dark);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--text-soft-dark);
}

.hero__lead strong {
  color: #fff;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  background: var(--bg-ink);
  color: var(--text-on-dark);
}

.section__header {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section__header h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__header .eyebrow {
  color: var(--text-muted);
}

.section--dark .section__header .eyebrow {
  color: var(--text-soft-dark);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service {
  padding: 1.75rem 1.5rem;
  border-top: 2px solid var(--text);
  background: transparent;
}

.service h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: #fff;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.project-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  transform: translateY(4px);
  transition: transform 0.35s var(--ease);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover h3 {
  transform: translateY(0);
}

.project-card:hover {
  color: #fff;
}

/* Testimonials */
.testimonials {
  position: relative;
}

.testimonial-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 220px;
}

.testimonial {
  display: none;
  animation: fade 0.45s var(--ease);
}

.testimonial.is-active {
  display: block;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-soft-dark);
}

.testimonial cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.testimonial cite span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  color: var(--text-soft-dark);
  font-size: 0.85rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.slider-dot.is-active {
  background: #fff;
}

/* Contact */
.contact {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.contact .lede {
  margin: 0;
  color: var(--text-soft-dark);
  max-width: 28rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  padding: 0.85rem 0;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #fff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 1rem 1.5rem;
  background: #fff;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-soft-dark);
}

.form-status.is-error {
  color: #ffb4b4;
}

.form-status.is-success {
  color: #b8f5c8;
}

.turnstile-wrap {
  min-height: 65px;
}

/* Portfolio page */
.page-hero {
  padding: 4rem 0 2.5rem;
  background: var(--bg-muted);
}

.page-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.project-detail__hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--bg-dark);
}

.project-detail__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.project-detail__hero .container {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
}

.project-detail__hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.project-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  padding: 3.5rem 0 2rem;
}

@media (max-width: 800px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.project-layout p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0;
}

.project-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.project-meta li {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.project-meta strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.project-gallery {
  display: grid;
  gap: 1rem;
  padding-bottom: 4rem;
}

.project-gallery img {
  width: 100%;
  background: var(--bg-muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__content,
  .testimonial,
  .project-card img {
    animation: none !important;
    transition: none !important;
  }
}
