/* === FONT === */
@font-face {
  font-family: 'Aeonik';
  src: url('fonts/Aeonik.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-accent: #ffffff;
  --color-border: #111111;
  --color-muted: #111111;
  --font-main: 'Aeonik', sans-serif;
  --max-width: 1400px;
  --gutter: 48px;
  --gutter-sm: 24px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* === HEADER === */
.tff-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.tff-header.scrolled {
  border-bottom-color: var(--color-border);
}

.tff-logo img {
  height: 18px;
  width: auto;
}

.tff-header-contact {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  transition: color 0.2s;
}

.tff-header-contact:hover {
  color: var(--color-text);
}

/* === HERO === */
.tff-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tff-hero-tagline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.tff-hero-sub {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  color: var(--color-muted);
}

/* === SECTION SHARED === */
.tff-section {
  padding: 80px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tff-section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* === FEATURED WORK GRID === */
.tff-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tff-work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tff-work-item-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #e8e8e8;
}

.tff-work-item:hover .tff-work-item-image {
  transform: scale(1.03);
}

.tff-work-item-info {
  padding: 16px 0 32px;
}

.tff-work-item-title {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.tff-work-item-meta {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* === ACCENT SECTION === */
.tff-accent-section {
  background-color: var(--color-accent);
}

.tff-accent-inner {
  padding: 100px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tff-accent-heading {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  max-width: 640px;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}

.tff-accent-body {
  font-size: 15px;
  line-height: 1.75;
  max-width: 700px;
  color: #444;
}

/* === SERVICES SECTION === */
.tff-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.tff-service-item-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
  margin-bottom: 20px;
}

.tff-service-item-title {
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.tff-service-item-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* === CONTACT === */
.tff-contact {
  padding: 100px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  border-top: 1px solid var(--color-border);
}

.tff-contact-address {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-muted);
}

.tff-contact-address a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.2s;
}

.tff-contact-address a:hover {
  border-color: var(--color-text);
}

.tff-footer-logo img {
  height: 16px;
  width: auto;
  opacity: 0.4;
  justify-self: end;
}

/* === PLACEHOLDER (no image set) === */
.tff-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tff-placeholder span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .tff-work-grid,
  .tff-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tff-contact {
    grid-template-columns: 1fr;
  }

  .tff-footer-logo img {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .tff-work-grid,
  .tff-services-grid {
    grid-template-columns: 1fr;
  }

  .tff-header {
    padding: 16px var(--gutter-sm);
  }
}
