/* Sama kujunduskeel mis fotoportaalil (arvo-theme/arvo/style.css päise reeglid). */
@font-face { font-family: "Space Grotesk"; font-weight: 400 600; font-display: swap; src: url(fonts/space-grotesk-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 400 600; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Instrument Sans"; font-weight: 400 600; font-display: swap; src: url(fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-weight: 400 600; font-display: swap; src: url(fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

@font-face { font-family: "Onest"; font-weight: 400 600; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
	--ink: #1e262b;
	--ink-soft: rgba(30, 38, 43, .68);
	--line: rgba(30, 38, 43, .14);
	--paper: #f5f5f4;
	--bg: #fff;
	--side: clamp(20px, 4.2vw, 64px);
	--space: clamp(72px, 10vw, 150px);
	--radius: 14px;
	--head: "Space Grotesk", "Onest", system-ui, sans-serif;
	--body: "Instrument Sans", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.025rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.label { font: 500 .8rem/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .875rem/1 var(--body); letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--ink); transition: background-color .2s, color .2s; }
.pill:hover { background: transparent; color: var(--ink); }
.pill--line { background: transparent; color: inherit; border-color: currentColor; }
.pill--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--small { min-height: 44px; padding: 0 20px; }
.arrow::after { content: "→"; font-size: 1.15em; }

/* Päis */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--side); border-bottom: 1px solid var(--line); }
.logo { font: 600 1.125rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.logo span { font-weight: 400; opacity: .6; padding: 0 .14em; }
.nav { display: flex; align-items: center; gap: 34px; font: 500 .96rem/1 var(--body); }
.nav a:not(.pill) { position: relative; padding: 8px 0; }
.nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .25s; }
.nav a:not(.pill):hover::after { right: 0; }
.nav sup { font-size: .6em; opacity: .6; margin-left: 3px; }
@media (max-width: 700px) { .header { padding-top: 16px; padding-bottom: 16px; } .nav { gap: 18px; } .nav a:not(.pill) { display: none; } }

.section { padding: var(--space) var(--side); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); row-gap: 40px; }

/* Ava */
.hero { padding: clamp(48px, 7vw, 104px) var(--side) clamp(56px, 7vw, 96px); }
.hero__text { grid-column: 1 / 9; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 6rem); margin-top: 22px; max-width: 11.5em; }
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__image { grid-column: 9 / -1; border-radius: var(--radius); overflow: hidden; align-self: stretch; min-height: 420px; position: relative; background: var(--paper); }
.hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 900px) { .hero__text, .hero__image { grid-column: 1 / -1; } .hero__image { min-height: 0; aspect-ratio: 4 / 3; } }

/* Tegevused */
.acts { padding-top: 0; }
.acts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-bottom: 28px; }
.acts__head h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); }
.acts__head p { color: var(--ink-soft); max-width: 28em; }
.acts__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.act { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: clamp(26px, 3.2vw, 44px) 0; border-bottom: 1px solid var(--line); transition: background-color .2s, padding .25s; }
a.act:hover, a.act:focus-visible { background: var(--paper); padding-left: 20px; padding-right: 20px; }
.act__n { grid-column: 1 / 2; font: 500 .8rem/1 var(--body); color: var(--ink-soft); align-self: start; padding-top: .9em; }
.act__name { grid-column: 2 / 7; }
.act__name h3 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); }
.act__name .label { display: block; margin-top: 12px; }
.act__desc { grid-column: 7 / 11; color: var(--ink-soft); max-width: 26em; }
.act__go { grid-column: 11 / -1; justify-self: end; text-align: right; font: 500 .9rem/1.3 var(--body); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.act__go::after { content: "↗"; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.1rem; transition: background-color .2s, color .2s, border-color .2s; }
a.act:hover .act__go::after { background: var(--ink); border-color: var(--ink); color: #fff; }
.act--soon { color: var(--ink-soft); }
.act--soon h3 { color: var(--ink); opacity: .45; }
.act--soon .act__go::after { content: none; }
.soon { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: 500 .8rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1100px) { .act__go span:not(.soon) { display: none; } }
@media (max-width: 800px) {
	.act { row-gap: 14px; }
	.act__name { grid-column: 2 / 11; }
	.act__go { grid-column: 11 / -1; grid-row: 1; align-self: start; }
	.act__desc { grid-column: 2 / -1; }
	.act--soon .act__go { grid-column: 2 / -1; grid-row: auto; justify-self: start; }
}

/* Pildiriba */
.band { margin: 0; padding: 0 var(--side); }
.band img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius); }
.band figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }
.band figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 700px) { .band img { aspect-ratio: 16 / 10; } }

/* Minust */
.about__head { grid-column: 1 / 6; }
.about__head h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); margin-top: 18px; }
.about__body { grid-column: 7 / -1; }
.about__body p { font-size: 1.1rem; line-height: 1.6; max-width: 34em; }
.about__body p + p { margin-top: 1.1em; }
.facts { margin: 48px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .8rem/1.6 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding-top: .15em; }
.facts dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; border-radius: var(--radius); overflow: hidden; }
.stat { padding: 34px 30px 30px; background: var(--ink); color: #fff; }
.stat + .stat { background: var(--paper); color: var(--ink); }
.stat b { display: block; font: 500 clamp(2.4rem, 4vw, 3.6rem)/1 var(--head); letter-spacing: -.05em; margin-bottom: 14px; }
.stat span { font-size: .96rem; opacity: .8; }
@media (max-width: 900px) { .about__head, .about__body { grid-column: 1 / -1; } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Ajajoon */
.path { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 56px); }
.path__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.path__item { position: relative; padding: 34px 24px 0 0; border-top: 1px solid var(--ink); }
.path__item::before { content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); }
.path__item--now::before { background: var(--ink); }
.path__item b { display: block; font: 500 clamp(1.9rem, 3.2vw, 2.9rem)/1 var(--head); letter-spacing: -.05em; }
.path__years { display: block; margin: 10px 0 26px; font: 500 .8rem/1.3 var(--body); letter-spacing: .04em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.path__item p { font: 500 1.1rem/1.3 var(--head); letter-spacing: -.03em; }
.path__org { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .96rem; }
a.path__org { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 900px) {
	.path__list { grid-template-columns: 1fr; margin-left: 5px; }
	.path__item { border-top: 0; border-left: 1px solid var(--ink); padding: 0 0 36px 28px; }
	.path__item:last-child { padding-bottom: 0; border-left-color: transparent; }
	.path__item::before { left: -6px; top: 4px; }
	.path__years { margin-bottom: 12px; }
}

/* Kontaktiread */
.contact { padding-top: 0; padding-bottom: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(130px, 13vw, 190px); padding: 28px 0; border-top: 1px solid var(--line); }
.row .label { align-self: flex-start; padding-top: 14px; color: var(--ink); }
.row__big { font: 500 clamp(1.5rem, 4vw, 3.6rem)/1.12 var(--head); letter-spacing: -.045em; text-align: right; }
.row__big a { white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.row__big a:hover { background-size: 100% 1px; }
.row__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 700px) { .row { flex-direction: column; align-items: flex-start; min-height: 0; gap: 14px; padding: 26px 0 34px; } .row .label { padding-top: 0; } .row__big { text-align: left; } .row__links { justify-content: flex-start; } }

/* Jalus */
.footer { background: var(--paper); padding: 28px var(--side); margin-top: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-soft); }
.footer__bottom b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* Keelevalik */
.lang { display: inline-flex; gap: 2px; font: 500 .85rem/1 var(--body); letter-spacing: .04em; }
.lang a { display: inline-grid; place-items: center; min-width: 36px; min-height: 44px; color: var(--ink-soft); }
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; }
.nav .lang a { display: inline-grid; padding: 0; }
.nav .lang a::after { content: none; }
.act--nolink .act__go::after { content: none; }
@media (max-width: 420px) { .header .pill { display: none; } }
